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
3030 } from "../mcp/session-store";
3131 import { selfHostPlugins } from "../plugins";
3232 import { ErrorCaptureLive } from "../observability";
33+import { closeSelfHostAppsSubsystem } from "../apps";
34+import { makeSelfHostAppsSyncRoute } from "../apps-route";
3335
3436 // ===========================================================================
3537 // Self-host TEST harness — the throwaway composition tests use to exercise the
@@ -202,6 +204,7 @@ export const makeSelfHostTestApp = async ( · 166 unmodified lines
202204 },
203205 extensions: {
204206 routes: [
207+ makeSelfHostAppsSyncRoute({ identity: options.identity, db: dbHandle }),
205208 HttpApiSwagger.layer(composePluginApi(selfHostPlugins).prefix("/api"), { path: "/docs" }),
206209 ],
207210 },
@@ -217,6 +220,7 @@ export const makeSelfHostTestApp = async ( · 9 unmodified lines
217220 handler: web.handler,
218221 dispose: async () => {
219222 await web.dispose();
223+ await closeSelfHostAppsSubsystem();
220224 await sessionStore.close();
221225 await dbHandle.close();
222226 },