diff options
| author | Adam Malczewski <[email protected]> | 2026-06-05 01:14:29 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-05 01:14:29 +0900 |
| commit | 64e9688cc27ceea6eba442d156868d82d7aafb75 (patch) | |
| tree | 412b00ae47a98d3f1e46a953798122c750e8abde /packages/host-bin/src | |
| parent | 7fca88f2ef9cf6eb9c8679844419241a12dd670f (diff) | |
| download | dispatch-64e9688cc27ceea6eba442d156868d82d7aafb75.tar.gz dispatch-64e9688cc27ceea6eba442d156868d82d7aafb75.zip | |
feat(tool-read-file): add read_file tool extension + wire into host-bin
First TOOL extension (standard tier, fs capability). Pure-core/shell split with
workdir containment (realpath symlink guard). host-bin registers it in
CORE_EXTENSIONS; flows into runTurn via session-orchestrator's resolveTools.
Verified: typecheck clean, 214 tests pass (was 185), biome clean. Live curl
against flash produced a real tool-call + tool-result round-trip with correct
final answer. Proves the kernel tool-dispatch loop end-to-end (plan ยง3.3).
Diffstat (limited to 'packages/host-bin/src')
| -rw-r--r-- | packages/host-bin/src/main.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/host-bin/src/main.ts b/packages/host-bin/src/main.ts index fe36e80..e26b8c6 100644 --- a/packages/host-bin/src/main.ts +++ b/packages/host-bin/src/main.ts @@ -19,6 +19,7 @@ import { import { extension as providerOpenaiCompatExt } from "@dispatch/provider-openai-compat"; import { extension as sessionOrchestratorExt } from "@dispatch/session-orchestrator"; import { createSqliteStorage, extension as storageSqliteExt } from "@dispatch/storage-sqlite"; +import { extension as toolReadFileExt } from "@dispatch/tool-read-file"; import { createServer, extension as transportHttpExt } from "@dispatch/transport-http"; import { configMapToAccess, envToConfigMap } from "./config.js"; @@ -93,6 +94,7 @@ const CORE_EXTENSIONS: readonly Extension[] = [ conversationStoreExt, authApikeyExt, providerOpenaiCompatExt, + toolReadFileExt, sessionOrchestratorExt, transportHttpExt, ]; |
