summaryrefslogtreecommitdiffhomepage
path: root/packages/host-bin
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/host-bin
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/host-bin')
-rw-r--r--packages/host-bin/package.json1
-rw-r--r--packages/host-bin/src/main.ts5
-rw-r--r--packages/host-bin/tsconfig.json1
3 files changed, 7 insertions, 0 deletions
diff --git a/packages/host-bin/package.json b/packages/host-bin/package.json
index a3e24c8..4ce63a9 100644
--- a/packages/host-bin/package.json
+++ b/packages/host-bin/package.json
@@ -8,6 +8,7 @@
"@dispatch/storage-sqlite": "workspace:*",
"@dispatch/conversation-store": "workspace:*",
"@dispatch/auth-apikey": "workspace:*",
+ "@dispatch/credential-store": "workspace:*",
"@dispatch/provider-openai-compat": "workspace:*",
"@dispatch/session-orchestrator": "workspace:*",
"@dispatch/transport-http": "workspace:*",
diff --git a/packages/host-bin/src/main.ts b/packages/host-bin/src/main.ts
index 4e4b3e4..d766e46 100644
--- a/packages/host-bin/src/main.ts
+++ b/packages/host-bin/src/main.ts
@@ -2,6 +2,7 @@ import { mkdirSync } from "node:fs";
import { dirname } from "node:path";
import { extension as authApikeyExt } from "@dispatch/auth-apikey";
import { extension as conversationStoreExt } from "@dispatch/conversation-store";
+import { createCredentialStoreExtension } from "@dispatch/credential-store";
import { createJournalSink } from "@dispatch/journal-sink";
import {
type ConfigAccess,
@@ -54,6 +55,10 @@ const CORE_EXTENSIONS: readonly Extension[] = [
authApikeyExt,
providerOpenaiCompatExt,
toolReadFileExt,
+ // MVP single hardcoded credential; future work makes it config/TOML-driven.
+ createCredentialStoreExtension({
+ credentials: [{ name: "opencode", providerId: "openai-compat" }],
+ }),
sessionOrchestratorExt,
transportHttpExt,
];
diff --git a/packages/host-bin/tsconfig.json b/packages/host-bin/tsconfig.json
index a811c47..70ff95c 100644
--- a/packages/host-bin/tsconfig.json
+++ b/packages/host-bin/tsconfig.json
@@ -7,6 +7,7 @@
{ "path": "../storage-sqlite" },
{ "path": "../conversation-store" },
{ "path": "../auth-apikey" },
+ { "path": "../credential-store" },
{ "path": "../provider-openai-compat" },
{ "path": "../session-orchestrator" },
{ "path": "../transport-http" }