summaryrefslogtreecommitdiffhomepage
path: root/packages/transport-http/src/extension.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-05 21:20:12 +0900
committerAdam Malczewski <[email protected]>2026-06-05 21:20:12 +0900
commit7fb3269c698ae583ea7997ce206c4ae252fd3218 (patch)
tree247d03408ecccd633290ea56b1b08811ebe460ec /packages/transport-http/src/extension.ts
parent4283d1f8a0bc3953e65962a2364c903d0015f047 (diff)
downloaddispatch-7fb3269c698ae583ea7997ce206c4ae252fd3218.tar.gz
dispatch-7fb3269c698ae583ea7997ce206c4ae252fd3218.zip
feat(backend): credential-store + model selection/catalog (GET /models) + per-turn cwd through orchestrator/transport/host-bin
Diffstat (limited to 'packages/transport-http/src/extension.ts')
-rw-r--r--packages/transport-http/src/extension.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/transport-http/src/extension.ts b/packages/transport-http/src/extension.ts
index 3ed98a8..e9613c5 100644
--- a/packages/transport-http/src/extension.ts
+++ b/packages/transport-http/src/extension.ts
@@ -1,7 +1,7 @@
import type { Extension, HostAPI, Manifest } from "@dispatch/kernel";
import type { Hono } from "hono";
import { createApp } from "./app.js";
-import { sessionOrchestratorHandle } from "./seam.js";
+import { credentialStoreHandle, sessionOrchestratorHandle } from "./seam.js";
export const manifest: Manifest = {
id: "transport-http",
@@ -9,9 +9,9 @@ export const manifest: Manifest = {
version: "0.0.0",
apiVersion: "^0.1.0",
trust: "bundled",
- dependsOn: ["session-orchestrator"],
+ dependsOn: ["credential-store", "session-orchestrator"],
capabilities: { network: true },
- contributes: { routes: ["/chat", "/health"] },
+ contributes: { routes: ["/chat", "/health", "/models"] },
activation: "eager",
};
@@ -21,7 +21,8 @@ export interface CreateServerOptions {
export function createServer(host: HostAPI, _opts?: CreateServerOptions): Hono {
const orchestrator = host.getService(sessionOrchestratorHandle);
- return createApp({ orchestrator });
+ const credentialStore = host.getService(credentialStoreHandle);
+ return createApp({ orchestrator, credentialStore });
}
export const extension: Extension = {