History

Add GitHub sync and self-host custom tools wiring

Rhys Sullivan committed 4 months ago

Commit 275446e1 parent 41eb3ae19 files · +1665 −40Browse files

Showing the changes to apps/host-selfhost/src/testing (1 of 19 files). Show all

Unified · Split

apps/host-selfhost/src/testing/test-app.ts+4−0
@@ -30,6 +30,8 @@ import { · 29 unmodified lines
30} from "../mcp/session-store";30} from "../mcp/session-store";
31import { selfHostPlugins } from "../plugins";31import { selfHostPlugins } from "../plugins";
32import { ErrorCaptureLive } from "../observability";32import { ErrorCaptureLive } from "../observability";
33import { closeSelfHostAppsSubsystem } from "../apps";
34import { makeSelfHostAppsSyncRoute } from "../apps-route";
33 35
34// ===========================================================================36// ===========================================================================
35// Self-host TEST harness — the throwaway composition tests use to exercise the37// Self-host TEST harness — the throwaway composition tests use to exercise the
@@ -202,6 +204,7 @@ export const makeSelfHostTestApp = async ( · 166 unmodified lines
202 },204 },
203 extensions: {205 extensions: {
204 routes: [206 routes: [
207 makeSelfHostAppsSyncRoute({ identity: options.identity, db: dbHandle }),
205 HttpApiSwagger.layer(composePluginApi(selfHostPlugins).prefix("/api"), { path: "/docs" }),208 HttpApiSwagger.layer(composePluginApi(selfHostPlugins).prefix("/api"), { path: "/docs" }),
206 ],209 ],
207 },210 },
@@ -217,6 +220,7 @@ export const makeSelfHostTestApp = async ( · 9 unmodified lines
217 handler: web.handler,220 handler: web.handler,
218 dispose: async () => {221 dispose: async () => {
219 await web.dispose();222 await web.dispose();
223 await closeSelfHostAppsSubsystem();
220 await sessionStore.close();224 await sessionStore.close();
221 await dbHandle.close();225 await dbHandle.close();
222 },226 },