File size: 1,566 Bytes
5c2a829 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | /**
* 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);
}
|