diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 13:11:29 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 13:11:29 +0900 |
| commit | 8a4a624d16422467a8e85434c674bb591877e8ea (patch) | |
| tree | 54052da00bbc580742913e5c031b7cc1b160db19 /packages/host-bin | |
| parent | d23de3254374d4d63c8e15c6ab9311c3c6f4da5b (diff) | |
| download | dispatch-8a4a624d16422467a8e85434c674bb591877e8ea.tar.gz dispatch-8a4a624d16422467a8e85434c674bb591877e8ea.zip | |
feat(tool-web-search): Firecrawl-backed web search tool
New standard tool extension with one tool web_search supporting 4 modes
(search, scrape, crawl, map) against a self-hosted Firecrawl instance.
Pure core: validateArgs (discriminated union by mode) + format* functions
+ truncateOutput. Injected edge: FirecrawlClient (injectable fetchFn/sleep/now,
AbortSignal.any for per-request timeout + caller cancellation). concurrencySafe
true, capabilities network. 38 tests, zero vi.mock.
Live-verified: umans-glm-5.2 called web_search → real Firecrawl results (also
the first live Umans API call).
Diffstat (limited to 'packages/host-bin')
| -rw-r--r-- | packages/host-bin/package.json | 1 | ||||
| -rw-r--r-- | packages/host-bin/src/main.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/host-bin/package.json b/packages/host-bin/package.json index 63b78bc..5f7d0e7 100644 --- a/packages/host-bin/package.json +++ b/packages/host-bin/package.json @@ -21,6 +21,7 @@ "@dispatch/tool-shell": "workspace:*", "@dispatch/tool-edit-file": "workspace:*", "@dispatch/tool-write-file": "workspace:*", + "@dispatch/tool-web-search": "workspace:*", "@dispatch/journal-sink": "workspace:*", "@dispatch/lsp": "workspace:*", "@dispatch/surface-loaded-extensions": "workspace:*", diff --git a/packages/host-bin/src/main.ts b/packages/host-bin/src/main.ts index 1928a8a..1c122de 100644 --- a/packages/host-bin/src/main.ts +++ b/packages/host-bin/src/main.ts @@ -32,6 +32,7 @@ import { extension as throughputStoreExt } from "@dispatch/throughput-store"; import { extension as toolEditFileExt } from "@dispatch/tool-edit-file"; import { extension as toolReadFileExt } from "@dispatch/tool-read-file"; import { extension as toolShellExt } from "@dispatch/tool-shell"; +import { extension as toolWebSearchExt } from "@dispatch/tool-web-search"; import { extension as toolWriteFileExt } from "@dispatch/tool-write-file"; import { createTransportHttpExtension } from "@dispatch/transport-http"; import { createTransportWsExtension } from "@dispatch/transport-ws"; @@ -75,6 +76,7 @@ const CORE_EXTENSIONS: readonly Extension[] = [ toolReadFileExt, toolShellExt, toolWriteFileExt, + toolWebSearchExt, throughputStoreExt, messageQueueExt, sessionOrchestratorExt, |
