diff options
| author | Adam Malczewski <[email protected]> | 2026-06-05 21:20:12 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-05 21:20:12 +0900 |
| commit | 7fb3269c698ae583ea7997ce206c4ae252fd3218 (patch) | |
| tree | 247d03408ecccd633290ea56b1b08811ebe460ec /packages/transport-http/src/extension.ts | |
| parent | 4283d1f8a0bc3953e65962a2364c903d0015f047 (diff) | |
| download | dispatch-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.ts | 9 |
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 = { |
