import { type MCPTool } from './types.js'; import { type RouterEmbedderKind } from '../ruvector/router-embedder.js'; /** * Strip extended-thinking blocks from text before it enters a learning * trajectory (hermes-agent think_scrubber pattern). Claude models with extended * thinking emit // blocks; if those land in a * trajectory's action/result text, the DISTILL step embeds reasoning-token * content that does not generalize, contaminating pattern confidence. Boundary- * gated: only strips well-formed paired tags, leaving prose that merely mentions * the tag names untouched. */ export declare function scrubReasoningBlocks(text: string): string; /** Test hook: drop the cached semantic index so the next route rebuilds it. */ export declare function resetSemanticRouterForTests(): void; /** * Confidence for a task nothing matched (#3567). It must rank below every real * signal: keyword hits are >= 0.8, learned outcomes >= 0.7, and a semantic * match is only eligible above 0.4. Matches the helper router's 0.3 fall-through. */ export declare const NO_MATCH_CONFIDENCE = 0.3; export interface TaskAgentSuggestion { agents: string[]; confidence: number; /** false when no keyword or learned pattern matched; the agents are a default, not a decision. */ matched: boolean; reason?: 'no-match-default'; note?: string; } /** True when the task has at least one letter or digit in any script. */ export declare function hasRoutableText(task: string): boolean; /** Exported for tests. */ export declare function suggestAgentsForTask(task: string): TaskAgentSuggestion; export declare const hooksPreEdit: MCPTool; export declare const hooksPostEdit: MCPTool; export declare const hooksPreCommand: MCPTool; export declare const hooksPostCommand: MCPTool; export declare const hooksRoute: MCPTool; /** Result of {@link routeTaskForBench}. */ export interface BenchRouteResult { primaryAgent: string; confidence: number; /** Matched pattern name, or 'keyword-fallback'. */ pattern: string; /** Embedder actually used ('hash' if MiniLM was requested but unavailable). */ embedder: RouterEmbedderKind; embedderReason?: string; /** routing.method of the underlying route ('semantic-native' | 'semantic-pure-js' | 'keyword'). */ method: string; } /** * INTERNAL / BENCH-ONLY (ADR-391). Not a public API; may change without notice. * * Routes `task` through the same local path `hooks_route` uses (semantic index + * keyword fallback) with an explicit embedder, without the MCP layer. It skips * the two steps that are neither ADR-391 candidate A nor B: the AgentDB * pre-route (`bridgeRouteTask`, which answers first when its confidence > 0.5) * and the opt-in typesafe wrapper (CLAUDE_FLOW_ROUTER_TYPESAFE). With those * inactive, `primaryAgent` equals `hooks_route`'s `primaryAgent.type`. * * Switching `embedder` between calls rebuilds the index; benchmark in blocks. */ export declare function routeTaskForBench(task: string, opts: { embedder: RouterEmbedderKind; context?: string; }): Promise; export declare const hooksMetrics: MCPTool; export declare const hooksList: MCPTool; export declare const hooksPreTask: MCPTool; export declare const hooksPostTask: MCPTool; export declare const hooksExplain: MCPTool; export declare const hooksPretrain: MCPTool; export declare const hooksBuildAgents: MCPTool; export declare const hooksTransfer: MCPTool; export declare const hooksSessionStart: MCPTool; export declare const hooksSessionEnd: MCPTool; export declare const hooksSessionRestore: MCPTool; export declare const hooksNotify: MCPTool; export declare const hooksInit: MCPTool; export declare const hooksIntelligence: MCPTool; export declare const hooksIntelligenceReset: MCPTool; export declare const hooksTrajectoryStart: MCPTool; export declare const hooksTrajectoryStep: MCPTool; export declare const hooksTrajectoryEnd: MCPTool; export declare const hooksPatternStore: MCPTool; export declare const hooksPatternSearch: MCPTool; export declare const hooksIntelligenceStats: MCPTool; export declare const hooksIntelligenceLearn: MCPTool; export declare const hooksIntelligenceAttention: MCPTool; export declare const hooksWorkerList: MCPTool; export declare const hooksWorkerDispatch: MCPTool; export declare const hooksWorkerStatus: MCPTool; export declare const hooksWorkerDetect: MCPTool; export declare const hooksModelRoute: MCPTool; export declare const hooksModelOutcome: MCPTool; export declare const hooksModelStats: MCPTool; export declare const hooksModelVerify: MCPTool; export declare const hooksCodemod: MCPTool; export declare const hooksWorkerCancel: MCPTool; export declare const hooksTeammateIdle: MCPTool; export declare const hooksTaskCompleted: MCPTool; /** * Unified learning-stats aggregator MCP tool (#2245 → ADR-075). * * One honest call across the four historical stat sources — every sub-view * names its store and a `consistency` block flags relationships that drift. */ export declare const hooksIntelligenceUnifiedStats: MCPTool; export declare const hooksTools: MCPTool[]; export default hooksTools; //# sourceMappingURL=hooks-tools.d.ts.map