feat: publish Agent Studio integrations and setup guide

This commit is contained in:
Wenxin Duan
2026-09-16 16:32:16 +08:00
parent 2ad089d68a
commit 05e6060490
106 changed files with 4942 additions and 198 deletions
+6 -2
View File
@@ -1,9 +1,9 @@
import { HarnessError, InMemoryEventStore } from "@agent-studio/harness";
import type { FastifyInstance } from "fastify";
import { vi } from "vitest";
import { buildApp } from "../src/app.js";
import { buildApp, type AppDependencies } from "../src/app.js";
export function createTestApp(): {
export function createTestApp(options: { editorForSession?:AppDependencies["editorForSession"]; readReport?: AppDependencies["readReport"]; readEditorFrame?: AppDependencies["readEditorFrame"]; cmsForSession?: AppDependencies["cmsForSession"] } = {}): {
app: FastifyInstance;
session: { startRun: ReturnType<typeof vi.fn>; cancelRun: ReturnType<typeof vi.fn> };
modelStore: {
@@ -60,6 +60,10 @@ export function createTestApp(): {
};
const eventStore = new InMemoryEventStore();
const app = buildApp({
...(options.editorForSession===undefined?{}:{editorForSession:options.editorForSession}),
...(options.readEditorFrame === undefined ? {} : { readEditorFrame: options.readEditorFrame }),
...(options.readReport === undefined ? {} : { readReport: options.readReport }),
...(options.cmsForSession === undefined ? {} : { cmsForSession: options.cmsForSession }),
sessionRegistry: registry,
skillCatalog: { list: () => [{ name: "ads-analysis", description: "Analyze", source: "project", filePath: ".agents/skills/ads-analysis/SKILL.md", diagnostics: [] }] },
modelStore,