Download src/plugin-sdk/agent-harness-tool-runtime.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugin-sdk/agent-harness-tool-runtime.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/plugin-sdk/agent-harness-tool-runtime.ts
-
curl -L -o agent-harness-tool-runtime.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugin-sdk/agent-harness-tool-runtime.ts
1.57 kB
| /** | |
| * Focused runtime SDK subpath for native harness tool-surface routing. | |
| * | |
| * Keep tool-search and code-mode dependencies out of the lightweight harness | |
| * lifecycle facade used during plugin startup. | |
| */ | |
| import { | |
| createAgentHarnessToolSurfaceRuntimeCore, | |
| type AgentHarnessToolSurfaceRuntime as CoreAgentHarnessToolSurfaceRuntime, | |
| } from "../agents/harness/tool-surface-bridge.js"; | |
| export { getCoreTtsToolResultMediaUrls } from "../agents/tools/tts-tool-result-provenance.js"; | |
| export { consumeTrustedToolNoStartError } from "../agents/tool-result-error.js"; | |
| export { | |
| acknowledgeInternalToolResult, | |
| copyInternalToolResultState, | |
| } from "../agents/runtime/internal-hooks.js"; | |
| type OpenClawCodingToolsOptions = NonNullable< | |
| Parameters<typeof import("./agent-harness.js").createOpenClawCodingTools>[0] | |
| >; | |
| export type AgentHarnessToolSurfaceRuntime = Omit< | |
| CoreAgentHarnessToolSurfaceRuntime, | |
| "toolSearchCatalogExecutor" | "toolSearchCatalogRef" | |
| > & { | |
| toolSearchCatalogExecutor: OpenClawCodingToolsOptions["toolSearchCatalogExecutor"]; | |
| toolSearchCatalogRef: OpenClawCodingToolsOptions["toolSearchCatalogRef"]; | |
| }; | |
| export type AgentHarnessToolSurfaceRuntimeParams = Omit< | |
| Parameters<typeof createAgentHarnessToolSurfaceRuntimeCore>[0], | |
| "executeTool" | |
| > & { | |
| executeTool: NonNullable<OpenClawCodingToolsOptions["toolSearchCatalogExecutor"]>; | |
| }; | |
| export function createAgentHarnessToolSurfaceRuntime( | |
| params: AgentHarnessToolSurfaceRuntimeParams, | |
| ): AgentHarnessToolSurfaceRuntime { | |
| return createAgentHarnessToolSurfaceRuntimeCore(params); | |
| } | |