Skip to content

Commit ac447d2

Browse files
committed
refactor(doctor): remove unused execution facade exports
The direct policy/type imports leave two internal re-exports without any production consumer. Remove them and have the existing selection test import policy from its implementation owner. This resolves the unchanged hard-zero export guard without changing selection behavior, test assertions, mocks, SDK contracts, or deadlines.
1 parent 36a3709 commit ac447d2

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/agents/agent-bundle-mcp-tools.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/** Public facade for bundle MCP tool materialization and session-scoped runtime management. */
2-
export type { McpToolCatalogDiagnostic } from "./agent-bundle-mcp-types.js";
32
export {
43
disposeAllSessionMcpRuntimes,
54
getOrCreateSessionMcpRuntime,

‎src/agents/harness/selection.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ import { callGatewayTool } from "../tools/gateway.js";
5151
import type { SystemAgentToolOptions } from "../tools/system-agent-tool.js";
5252
import { maybeCompactAgentHarnessSession as maybeCompactAgentHarnessSessionImpl } from "./compaction.js";
5353
import type { ContextEngineLogicalTurnLease } from "./context-engine-logical-turn.js";
54+
import { resolveAgentHarnessPolicy } from "./policy.js";
5455
import { clearAgentHarnesses, registerAgentHarness } from "./registry.js";
5556
import {
5657
agentHarnessBuildsOpenClawTools,
5758
agentHarnessExposesOpenClawTools,
58-
resolveAgentHarnessPolicy,
5959
resolveAvailableAgentHarnessPolicy,
6060
resolvePluginHarnessPolicyToolsAllow,
6161
runAgentHarnessAttempt,

‎src/agents/harness/selection.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ import {
5959
import type { AgentHarness, AgentHarnessSupport, AgentHarnessSupportContext } from "./types.js";
6060

6161
const log = createSubsystemLogger("agents/harness");
62-
export { resolveAgentHarnessPolicy } from "./policy.js";
6362
export { resolveAvailableAgentHarnessPolicy } from "./availability.js";
6463

6564
type AgentHarnessSelectionParams = {

0 commit comments

Comments
 (0)