openclaw / src /plugin-sdk /agent-harness-tool-runtime.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
5c2a829 verified
Raw History Blame Contribute Delete
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);
}