Files
openclaw/src/plugin-sdk/agent-harness-tool-runtime.ts
Peter Steinberger c7e7ac2728 refactor: remove expired plugin compatibility surfaces (#111451)
* docs(secrets): remove retired web credential paths

* refactor(web): remove retired provider compatibility paths

* refactor(providers): delete retired compatibility routes

* refactor(secrets): remove retired credential aliases

* refactor(plugin-sdk): delete retired compatibility surfaces

* docs(plugin-sdk): remove retired migration guidance

* chore(plugin-sdk): refresh rebased surface budgets

* chore(plugin-sdk): refresh API removal baseline

* refactor(compat): migrate retired internal callers

* chore(plugin-sdk): refresh current-main baselines

* test(config): migrate plugin-owned secret assertions

* test(gateway): narrow plugin secret refs

* fix(plugin-sdk): preserve private boundary type identity

* chore(compat): remove stale sweep references

* chore(lint): lower max-lines budget

* refactor(secrets): remove unused web helper

* build(plugin-sdk): drop removed compat entries

* chore(plugin-sdk): refresh rebased API baseline

* chore(plugin-sdk): use Linux API baseline hash

* fix(plugin-sdk): preserve private bundled build entries

* fix(plugin-sdk): package private runtime facades

* fix(plugins): preserve external credential contracts
2026-07-19 11:04:48 -07:00

36 lines
1.3 KiB
TypeScript

/**
* 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 {
createAgentHarnessToolSurfaceRuntime as createCoreAgentHarnessToolSurfaceRuntime,
type AgentHarnessToolSurfaceRuntime as CoreAgentHarnessToolSurfaceRuntime,
} from "../agents/harness/tool-surface-bridge.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 createCoreAgentHarnessToolSurfaceRuntime>[0],
"executeTool"
> & {
executeTool: NonNullable<OpenClawCodingToolsOptions["toolSearchCatalogExecutor"]>;
};
export function createAgentHarnessToolSurfaceRuntime(
params: AgentHarnessToolSurfaceRuntimeParams,
): AgentHarnessToolSurfaceRuntime {
return createCoreAgentHarnessToolSurfaceRuntime(params);
}