ft-scout 9.5.1 → 9.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/README.md +36 -18
  2. package/bin/src/commands/agent.d.ts +41 -0
  3. package/bin/src/commands/agent.js +155 -19
  4. package/bin/src/commands/audit.d.ts +2 -0
  5. package/bin/src/commands/authCommand.d.ts +2 -0
  6. package/bin/src/commands/benchmark.d.ts +20 -0
  7. package/bin/src/commands/benchmark.js +120 -97
  8. package/bin/src/commands/brief.d.ts +4 -0
  9. package/bin/src/commands/checkpoint.d.ts +7 -0
  10. package/bin/src/commands/configCommand.d.ts +7 -0
  11. package/bin/src/commands/dashboard.d.ts +5 -0
  12. package/bin/src/commands/history.d.ts +2 -0
  13. package/bin/src/commands/init.d.ts +8 -0
  14. package/bin/src/commands/login.d.ts +10 -0
  15. package/bin/src/commands/logout.d.ts +6 -0
  16. package/bin/src/commands/mcp.d.ts +49 -0
  17. package/bin/src/commands/owners.d.ts +2 -0
  18. package/bin/src/commands/plan.d.ts +2 -0
  19. package/bin/src/commands/pr.d.ts +11 -0
  20. package/bin/src/commands/quota.d.ts +2 -0
  21. package/bin/src/commands/recommend.d.ts +5 -0
  22. package/bin/src/commands/risky.d.ts +10 -0
  23. package/bin/src/commands/setup.d.ts +2 -0
  24. package/bin/src/commands/signup.d.ts +8 -0
  25. package/bin/src/commands/switchCommand.d.ts +3 -0
  26. package/bin/src/commands/undo.d.ts +2 -0
  27. package/bin/src/commands/watch.d.ts +12 -0
  28. package/bin/src/commands/web.d.ts +8 -0
  29. package/bin/src/discovery/config.d.ts +10 -0
  30. package/bin/src/discovery/display.d.ts +3 -0
  31. package/bin/src/discovery/messages.d.ts +4 -0
  32. package/bin/src/discovery/signals.d.ts +16 -0
  33. package/bin/src/engine/actionVerifier.d.ts +69 -0
  34. package/bin/src/engine/agentEngine.d.ts +110 -0
  35. package/bin/src/engine/agentEngine.js +12 -14
  36. package/bin/src/engine/agentState.d.ts +154 -0
  37. package/bin/src/engine/browser/browserController.d.ts +155 -0
  38. package/bin/src/engine/browser/index.d.ts +2 -0
  39. package/bin/src/engine/checkpoints/checkpointManager.d.ts +48 -0
  40. package/bin/src/engine/computer/computerController.d.ts +130 -0
  41. package/bin/src/engine/computer/computerController.js +8 -0
  42. package/bin/src/engine/computer/computerDiagnostic.d.ts +31 -0
  43. package/bin/src/engine/computer/index.d.ts +4 -0
  44. package/bin/src/engine/computer/mockComputer.d.ts +62 -0
  45. package/bin/src/engine/computer/operatorHud.d.ts +30 -0
  46. package/bin/src/engine/git.d.ts +20 -0
  47. package/bin/src/engine/llm.d.ts +92 -0
  48. package/bin/src/engine/planner.d.ts +21 -0
  49. package/bin/src/engine/runtime/agentRuntime.d.ts +111 -0
  50. package/bin/src/engine/runtime/agentRuntime.js +3 -6
  51. package/bin/src/engine/runtime/index.d.ts +2 -0
  52. package/bin/src/engine/safety.d.ts +55 -0
  53. package/bin/src/engine/scanners.d.ts +2 -0
  54. package/bin/src/engine/subagents/subagentManager.d.ts +106 -0
  55. package/bin/src/engine/subagents/subagentManager.js +275 -3
  56. package/bin/src/engine/toolRegistry.d.ts +38 -0
  57. package/bin/src/engine/verifier.d.ts +47 -0
  58. package/bin/src/engine/voiceEngine.d.ts +26 -0
  59. package/bin/src/engine/web.d.ts +22 -0
  60. package/bin/src/engine/workspace/agentWorkspace.d.ts +112 -0
  61. package/bin/src/engine/workspace/index.d.ts +2 -0
  62. package/bin/src/index.d.ts +2 -0
  63. package/bin/src/index.js +5 -5
  64. package/bin/src/mcp/client.d.ts +62 -0
  65. package/bin/src/mcp/client.js +1 -1
  66. package/bin/src/mcp/cloudSync.d.ts +19 -0
  67. package/bin/src/mcp/discovery.d.ts +22 -0
  68. package/bin/src/mcp/health.d.ts +13 -0
  69. package/bin/src/mcp/index.d.ts +16 -0
  70. package/bin/src/mcp/manager.d.ts +113 -0
  71. package/bin/src/mcp/permissions.d.ts +18 -0
  72. package/bin/src/mcp/persistence.d.ts +44 -0
  73. package/bin/src/mcp/persistence.js +8 -1
  74. package/bin/src/mcp/recovery.d.ts +19 -0
  75. package/bin/src/mcp/telemetry.d.ts +15 -0
  76. package/bin/src/mcp/toolRouter.d.ts +23 -0
  77. package/bin/src/mcp/transport.d.ts +60 -0
  78. package/bin/src/mcp/types.d.ts +130 -0
  79. package/bin/src/server/server.d.ts +6 -0
  80. package/bin/src/utils/admin.d.ts +84 -0
  81. package/bin/src/utils/auditLogger.d.ts +18 -0
  82. package/bin/src/utils/auth.d.ts +132 -0
  83. package/bin/src/utils/branding.d.ts +2 -0
  84. package/bin/src/utils/branding.js +1 -1
  85. package/bin/src/utils/claudeUI.d.ts +131 -0
  86. package/bin/src/utils/claudeUI.js +138 -4
  87. package/bin/src/utils/config.d.ts +46 -0
  88. package/bin/src/utils/email.d.ts +36 -0
  89. package/bin/src/utils/firebaseAuth.d.ts +19 -0
  90. package/bin/src/utils/holoseneAuth.d.ts +18 -0
  91. package/bin/src/utils/interruptHandler.d.ts +32 -0
  92. package/bin/src/utils/language.d.ts +13 -0
  93. package/bin/src/utils/logger.d.ts +2 -0
  94. package/bin/src/utils/markdown.d.ts +19 -0
  95. package/bin/src/utils/payment.d.ts +81 -0
  96. package/bin/src/utils/pricing.d.ts +26 -0
  97. package/bin/src/utils/pricing.js +0 -1
  98. package/bin/src/utils/qrBridge.d.ts +33 -0
  99. package/bin/src/utils/qrBridge.js +1 -1
  100. package/bin/src/utils/razorpay.d.ts +48 -0
  101. package/bin/src/utils/rules.d.ts +24 -0
  102. package/bin/src/utils/session.d.ts +32 -0
  103. package/bin/src/utils/updateCheck.d.ts +3 -0
  104. package/package.json +17 -7
  105. package/.firebase/hosting.d2Vi.cache +0 -16
  106. package/.firebaserc +0 -14
  107. package/.mcp-config.json +0 -19
  108. package/.mft-mcp-config.json +0 -29
  109. package/.scoutrules +0 -13
  110. package/.test-ft/mcp_activity.json +0 -23
  111. package/.test-ft/mcp_credentials.enc +0 -1
  112. package/.test-ft/mcp_servers.json +0 -1
  113. package/bin/src/commands/agent.d.ts.map +0 -1
  114. package/bin/src/commands/agent.js.map +0 -1
  115. package/bin/src/commands/audit.d.ts.map +0 -1
  116. package/bin/src/commands/audit.js.map +0 -1
  117. package/bin/src/commands/authCommand.d.ts.map +0 -1
  118. package/bin/src/commands/authCommand.js.map +0 -1
  119. package/bin/src/commands/benchmark.d.ts.map +0 -1
  120. package/bin/src/commands/benchmark.js.map +0 -1
  121. package/bin/src/commands/brief.d.ts.map +0 -1
  122. package/bin/src/commands/brief.js.map +0 -1
  123. package/bin/src/commands/checkpoint.d.ts.map +0 -1
  124. package/bin/src/commands/checkpoint.js.map +0 -1
  125. package/bin/src/commands/configCommand.d.ts.map +0 -1
  126. package/bin/src/commands/configCommand.js.map +0 -1
  127. package/bin/src/commands/dashboard.d.ts.map +0 -1
  128. package/bin/src/commands/dashboard.js.map +0 -1
  129. package/bin/src/commands/history.d.ts.map +0 -1
  130. package/bin/src/commands/history.js.map +0 -1
  131. package/bin/src/commands/init.d.ts.map +0 -1
  132. package/bin/src/commands/init.js.map +0 -1
  133. package/bin/src/commands/login.d.ts.map +0 -1
  134. package/bin/src/commands/login.js.map +0 -1
  135. package/bin/src/commands/logout.d.ts.map +0 -1
  136. package/bin/src/commands/logout.js.map +0 -1
  137. package/bin/src/commands/mcp.d.ts.map +0 -1
  138. package/bin/src/commands/mcp.js.map +0 -1
  139. package/bin/src/commands/owners.d.ts.map +0 -1
  140. package/bin/src/commands/owners.js.map +0 -1
  141. package/bin/src/commands/plan.d.ts.map +0 -1
  142. package/bin/src/commands/plan.js.map +0 -1
  143. package/bin/src/commands/pr.d.ts.map +0 -1
  144. package/bin/src/commands/pr.js.map +0 -1
  145. package/bin/src/commands/quota.d.ts.map +0 -1
  146. package/bin/src/commands/quota.js.map +0 -1
  147. package/bin/src/commands/recommend.d.ts.map +0 -1
  148. package/bin/src/commands/recommend.js.map +0 -1
  149. package/bin/src/commands/risky.d.ts.map +0 -1
  150. package/bin/src/commands/risky.js.map +0 -1
  151. package/bin/src/commands/setup.d.ts.map +0 -1
  152. package/bin/src/commands/setup.js.map +0 -1
  153. package/bin/src/commands/signup.d.ts.map +0 -1
  154. package/bin/src/commands/signup.js.map +0 -1
  155. package/bin/src/commands/switchCommand.d.ts.map +0 -1
  156. package/bin/src/commands/switchCommand.js.map +0 -1
  157. package/bin/src/commands/undo.d.ts.map +0 -1
  158. package/bin/src/commands/undo.js.map +0 -1
  159. package/bin/src/commands/watch.d.ts.map +0 -1
  160. package/bin/src/commands/watch.js.map +0 -1
  161. package/bin/src/commands/web.d.ts.map +0 -1
  162. package/bin/src/commands/web.js.map +0 -1
  163. package/bin/src/discovery/config.d.ts.map +0 -1
  164. package/bin/src/discovery/config.js.map +0 -1
  165. package/bin/src/discovery/display.d.ts.map +0 -1
  166. package/bin/src/discovery/display.js.map +0 -1
  167. package/bin/src/discovery/messages.d.ts.map +0 -1
  168. package/bin/src/discovery/messages.js.map +0 -1
  169. package/bin/src/discovery/signals.d.ts.map +0 -1
  170. package/bin/src/discovery/signals.js.map +0 -1
  171. package/bin/src/engine/actionVerifier.d.ts.map +0 -1
  172. package/bin/src/engine/actionVerifier.js.map +0 -1
  173. package/bin/src/engine/agentEngine.d.ts.map +0 -1
  174. package/bin/src/engine/agentEngine.js.map +0 -1
  175. package/bin/src/engine/agentState.d.ts.map +0 -1
  176. package/bin/src/engine/agentState.js.map +0 -1
  177. package/bin/src/engine/browser/browserController.d.ts.map +0 -1
  178. package/bin/src/engine/browser/browserController.js.map +0 -1
  179. package/bin/src/engine/browser/index.d.ts.map +0 -1
  180. package/bin/src/engine/browser/index.js.map +0 -1
  181. package/bin/src/engine/checkpoints/checkpointManager.d.ts.map +0 -1
  182. package/bin/src/engine/checkpoints/checkpointManager.js.map +0 -1
  183. package/bin/src/engine/computer/computerController.d.ts.map +0 -1
  184. package/bin/src/engine/computer/computerController.js.map +0 -1
  185. package/bin/src/engine/computer/computerDiagnostic.d.ts.map +0 -1
  186. package/bin/src/engine/computer/computerDiagnostic.js.map +0 -1
  187. package/bin/src/engine/computer/index.d.ts.map +0 -1
  188. package/bin/src/engine/computer/index.js.map +0 -1
  189. package/bin/src/engine/computer/mockComputer.d.ts.map +0 -1
  190. package/bin/src/engine/computer/mockComputer.js.map +0 -1
  191. package/bin/src/engine/computer/operatorHud.d.ts.map +0 -1
  192. package/bin/src/engine/computer/operatorHud.js.map +0 -1
  193. package/bin/src/engine/computer/scout_driver.exe +0 -0
  194. package/bin/src/engine/git.d.ts.map +0 -1
  195. package/bin/src/engine/git.js.map +0 -1
  196. package/bin/src/engine/llm.d.ts.map +0 -1
  197. package/bin/src/engine/llm.js.map +0 -1
  198. package/bin/src/engine/planner.d.ts.map +0 -1
  199. package/bin/src/engine/planner.js.map +0 -1
  200. package/bin/src/engine/runtime/agentRuntime.d.ts.map +0 -1
  201. package/bin/src/engine/runtime/agentRuntime.js.map +0 -1
  202. package/bin/src/engine/runtime/index.d.ts.map +0 -1
  203. package/bin/src/engine/runtime/index.js.map +0 -1
  204. package/bin/src/engine/safety.d.ts.map +0 -1
  205. package/bin/src/engine/safety.js.map +0 -1
  206. package/bin/src/engine/scanners.d.ts.map +0 -1
  207. package/bin/src/engine/scanners.js.map +0 -1
  208. package/bin/src/engine/scoutAudioRecorder.cs +0 -215
  209. package/bin/src/engine/scout_audio_recorder.exe +0 -0
  210. package/bin/src/engine/subagents/subagentManager.d.ts.map +0 -1
  211. package/bin/src/engine/subagents/subagentManager.js.map +0 -1
  212. package/bin/src/engine/toolRegistry.d.ts.map +0 -1
  213. package/bin/src/engine/toolRegistry.js.map +0 -1
  214. package/bin/src/engine/verifier.d.ts.map +0 -1
  215. package/bin/src/engine/verifier.js.map +0 -1
  216. package/bin/src/engine/voiceEngine.d.ts.map +0 -1
  217. package/bin/src/engine/voiceEngine.js.map +0 -1
  218. package/bin/src/engine/web.d.ts.map +0 -1
  219. package/bin/src/engine/web.js.map +0 -1
  220. package/bin/src/engine/workspace/agentWorkspace.d.ts.map +0 -1
  221. package/bin/src/engine/workspace/agentWorkspace.js.map +0 -1
  222. package/bin/src/engine/workspace/index.d.ts.map +0 -1
  223. package/bin/src/engine/workspace/index.js.map +0 -1
  224. package/bin/src/index.d.ts.map +0 -1
  225. package/bin/src/index.js.map +0 -1
  226. package/bin/src/mcp/client.d.ts.map +0 -1
  227. package/bin/src/mcp/client.js.map +0 -1
  228. package/bin/src/mcp/cloudSync.d.ts.map +0 -1
  229. package/bin/src/mcp/cloudSync.js.map +0 -1
  230. package/bin/src/mcp/discovery.d.ts.map +0 -1
  231. package/bin/src/mcp/discovery.js.map +0 -1
  232. package/bin/src/mcp/health.d.ts.map +0 -1
  233. package/bin/src/mcp/health.js.map +0 -1
  234. package/bin/src/mcp/index.d.ts.map +0 -1
  235. package/bin/src/mcp/index.js.map +0 -1
  236. package/bin/src/mcp/manager.d.ts.map +0 -1
  237. package/bin/src/mcp/manager.js.map +0 -1
  238. package/bin/src/mcp/permissions.d.ts.map +0 -1
  239. package/bin/src/mcp/permissions.js.map +0 -1
  240. package/bin/src/mcp/persistence.d.ts.map +0 -1
  241. package/bin/src/mcp/persistence.js.map +0 -1
  242. package/bin/src/mcp/recovery.d.ts.map +0 -1
  243. package/bin/src/mcp/recovery.js.map +0 -1
  244. package/bin/src/mcp/telemetry.d.ts.map +0 -1
  245. package/bin/src/mcp/telemetry.js.map +0 -1
  246. package/bin/src/mcp/toolRouter.d.ts.map +0 -1
  247. package/bin/src/mcp/toolRouter.js.map +0 -1
  248. package/bin/src/mcp/transport.d.ts.map +0 -1
  249. package/bin/src/mcp/transport.js.map +0 -1
  250. package/bin/src/mcp/types.d.ts.map +0 -1
  251. package/bin/src/mcp/types.js.map +0 -1
  252. package/bin/src/server/server.d.ts.map +0 -1
  253. package/bin/src/server/server.js.map +0 -1
  254. package/bin/src/utils/admin.d.ts.map +0 -1
  255. package/bin/src/utils/admin.js.map +0 -1
  256. package/bin/src/utils/auditLogger.d.ts.map +0 -1
  257. package/bin/src/utils/auditLogger.js.map +0 -1
  258. package/bin/src/utils/auth.d.ts.map +0 -1
  259. package/bin/src/utils/auth.js.map +0 -1
  260. package/bin/src/utils/branding.d.ts.map +0 -1
  261. package/bin/src/utils/branding.js.map +0 -1
  262. package/bin/src/utils/claudeUI.d.ts.map +0 -1
  263. package/bin/src/utils/claudeUI.js.map +0 -1
  264. package/bin/src/utils/config.d.ts.map +0 -1
  265. package/bin/src/utils/config.js.map +0 -1
  266. package/bin/src/utils/email.d.ts.map +0 -1
  267. package/bin/src/utils/email.js.map +0 -1
  268. package/bin/src/utils/firebaseAuth.d.ts.map +0 -1
  269. package/bin/src/utils/firebaseAuth.js.map +0 -1
  270. package/bin/src/utils/holoseneAuth.d.ts.map +0 -1
  271. package/bin/src/utils/holoseneAuth.js.map +0 -1
  272. package/bin/src/utils/interruptHandler.d.ts.map +0 -1
  273. package/bin/src/utils/interruptHandler.js.map +0 -1
  274. package/bin/src/utils/language.d.ts.map +0 -1
  275. package/bin/src/utils/language.js.map +0 -1
  276. package/bin/src/utils/logger.d.ts.map +0 -1
  277. package/bin/src/utils/logger.js.map +0 -1
  278. package/bin/src/utils/markdown.d.ts.map +0 -1
  279. package/bin/src/utils/markdown.js.map +0 -1
  280. package/bin/src/utils/payment.d.ts.map +0 -1
  281. package/bin/src/utils/payment.js.map +0 -1
  282. package/bin/src/utils/pricing.d.ts.map +0 -1
  283. package/bin/src/utils/pricing.js.map +0 -1
  284. package/bin/src/utils/qrBridge.d.ts.map +0 -1
  285. package/bin/src/utils/qrBridge.js.map +0 -1
  286. package/bin/src/utils/razorpay.d.ts.map +0 -1
  287. package/bin/src/utils/razorpay.js.map +0 -1
  288. package/bin/src/utils/rules.d.ts.map +0 -1
  289. package/bin/src/utils/rules.js.map +0 -1
  290. package/bin/src/utils/session.d.ts.map +0 -1
  291. package/bin/src/utils/session.js.map +0 -1
  292. package/bin/src/utils/updateCheck.d.ts.map +0 -1
  293. package/bin/src/utils/updateCheck.js.map +0 -1
  294. package/downloads/invoice-2026-03.pdf +0 -1
  295. package/firebase.json +0 -74
  296. package/front-terrain-cli-1.0.0.tgz +0 -0
  297. package/web/ScoutFavicon.png +0 -0
  298. package/web/ScoutOGImage.png +0 -0
  299. package/web/app.js +0 -4510
  300. package/web/ft-logo.png +0 -0
  301. package/web/og-image.png +0 -0
  302. package/web/robots.txt +0 -24
  303. package/web/site.webmanifest +0 -16
  304. package/web/sitemap-tryscout.xml +0 -47
  305. package/web/sitemap.xml +0 -47
  306. package/web/styles.css +0 -3436
@@ -0,0 +1,47 @@
1
+ export interface VerificationResult {
2
+ valid: boolean;
3
+ errors: string[];
4
+ output: string;
5
+ referencedFiles?: string[];
6
+ }
7
+ /**
8
+ * Parses raw compiler/terminal output to extract key error blocks and referenced file paths
9
+ */
10
+ export declare function extractErrorDiagnostics(output: string): {
11
+ keyErrors: string[];
12
+ referencedFiles: string[];
13
+ };
14
+ /**
15
+ * Perform automated syntax, type, and compilation check on a target file
16
+ */
17
+ export declare function checkFileSyntax(filePath: string, cwd: string): Promise<VerificationResult>;
18
+ /**
19
+ * Execute custom verification command, project test suite, or package build check
20
+ */
21
+ export declare function runProjectVerification(cwd: string, verifyCmd?: string): Promise<VerificationResult>;
22
+ /**
23
+ * Auto-fix and recheck files iteratively until errors are resolved or max retries reached
24
+ */
25
+ export declare function verifyAndSelfHealFiles(targetFiles: string[], cwd: string, projectName: string, filesList: string[], options?: {
26
+ verifyCmd?: string | undefined;
27
+ maxRetries?: number | undefined;
28
+ language?: string | undefined;
29
+ native?: boolean | undefined;
30
+ }): Promise<{
31
+ success: boolean;
32
+ verifiedFiles: string[];
33
+ remainingErrors: string[];
34
+ }>;
35
+ export interface SmartCommandResult {
36
+ exitCode: number;
37
+ output: string;
38
+ isBackgroundServer: boolean;
39
+ pid?: number | undefined;
40
+ }
41
+ /**
42
+ * Executes a shell command smartly: fast commands return exit code immediately,
43
+ * while persistent server/daemon processes (e.g. node server.js, npm start) are left running in background
44
+ * so Scout Agent does not hang.
45
+ */
46
+ export declare function executeSmartCommand(cmd: string, cwd: string, initialWaitMs?: number, maxWaitMs?: number): Promise<SmartCommandResult>;
47
+ //# sourceMappingURL=verifier.d.ts.map
@@ -0,0 +1,26 @@
1
+ export declare function promptInteractionMode(): Promise<'text'>;
2
+ export interface VoiceOptions {
3
+ async?: boolean;
4
+ rate?: number;
5
+ volume?: number;
6
+ tierOverride?: string;
7
+ voiceId?: string;
8
+ }
9
+ /**
10
+ * Strip markdown formatting, code blocks, URLs, and special characters for clean TTS speech.
11
+ */
12
+ export declare function cleanTextForSpeech(text: string): string;
13
+ /**
14
+ * Text-to-Speech (TTS) audio synthesis has been disabled in Scout.
15
+ * Retained as a safe no-op to preserve backwards compatibility.
16
+ */
17
+ export declare function speakText(_text: string, _options?: VoiceOptions): Promise<void>;
18
+ /**
19
+ * Native Speech-to-Text (STT) directly inside the terminal.
20
+ * Automatically utilizes neural Whisper (OpenAI) for 99.9% accuracy on tech commands,
21
+ * with automatic Voice Activity Detection (VAD) and graceful legacy fallback.
22
+ */
23
+ export declare function listenSpeechToText(options?: {
24
+ timeoutMs?: number;
25
+ }): Promise<string>;
26
+ //# sourceMappingURL=voiceEngine.d.ts.map
@@ -0,0 +1,22 @@
1
+ export interface WebSearchResult {
2
+ title: string;
3
+ url: string;
4
+ snippet: string;
5
+ }
6
+ export interface WebContextResult {
7
+ context: string;
8
+ sources: WebSearchResult[];
9
+ }
10
+ /**
11
+ * Perform a live web search using DuckDuckGo (HTML endpoint) with fallback support for Tavily / Serper API keys if provided in environment.
12
+ */
13
+ export declare function searchWeb(query: string, maxResults?: number): Promise<WebSearchResult[]>;
14
+ /**
15
+ * Fetch text content of a specific webpage
16
+ */
17
+ export declare function fetchWebPage(targetUrl: string, maxLength?: number): Promise<string>;
18
+ /**
19
+ * Build rich formatted web search context string for LLM prompts
20
+ */
21
+ export declare function getWebContext(query: string): Promise<WebContextResult>;
22
+ //# sourceMappingURL=web.d.ts.map
@@ -0,0 +1,112 @@
1
+ import { type AutonomousTaskState, type TaskPlanStep, type TaskObservation, type TaskArtifact, type TaskError, type PendingAction, TaskStateManager } from '../agentState.js';
2
+ export interface ExecutionIntent {
3
+ requiredApplications: string[];
4
+ requiredInteraction: 'computer' | 'browser' | 'code_repo' | 'mixed';
5
+ allowAlternativeTools: boolean;
6
+ targetDestination?: string | undefined;
7
+ targetArtifactName?: string | undefined;
8
+ rationale?: string | undefined;
9
+ }
10
+ export declare function resolveDesktopPath(filename?: string): string;
11
+ export declare function inferExecutionIntent(goal: string): ExecutionIntent;
12
+ export interface WorkspaceEnvironment {
13
+ activeApplication: string | null;
14
+ activeWindow: string | null;
15
+ expectedApplication: string | null;
16
+ activeUrl: string | null;
17
+ cwd: string;
18
+ desktopDir: string;
19
+ platform: string;
20
+ }
21
+ export interface AgentWorkspaceData {
22
+ taskId: string;
23
+ objective: string;
24
+ status: AutonomousTaskState['status'] | 'cancelled';
25
+ plan: TaskPlanStep[];
26
+ currentStep: number;
27
+ completedSteps: number[];
28
+ observations: TaskObservation[];
29
+ environment: WorkspaceEnvironment;
30
+ executionIntent: ExecutionIntent;
31
+ artifacts: TaskArtifact[];
32
+ errors: TaskError[];
33
+ recoveryInfo?: {
34
+ strategy: string;
35
+ reason: string;
36
+ attempt: number;
37
+ } | undefined;
38
+ pendingApproval?: PendingAction | null | undefined;
39
+ constraints: string[];
40
+ scratchpadNotes?: string;
41
+ verificationStatus: 'pending' | 'verified' | 'failed' | null;
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ }
45
+ export declare class AgentWorkspace {
46
+ private data;
47
+ private stateManager;
48
+ private workspaceDir;
49
+ constructor(taskIdOrDir?: string, objective?: string, workspaceDir?: string);
50
+ getStateManager(): TaskStateManager;
51
+ getData(): AgentWorkspaceData;
52
+ getExecutionIntent(): ExecutionIntent;
53
+ setExecutionIntent(intent: ExecutionIntent): void;
54
+ getExpectedApplication(): string | null;
55
+ setExpectedApplication(app: string | null): void;
56
+ validateToolExecution(toolName: string, args: Record<string, any>): {
57
+ allowed: boolean;
58
+ reason?: string;
59
+ };
60
+ setObjective(objective: string): void;
61
+ setPlan(steps: TaskPlanStep[] | string[]): void;
62
+ updatePlan(steps: TaskPlanStep[]): void;
63
+ startStep(stepNumber: number, description?: string): void;
64
+ completeStep(stepNumber: number, summary?: string): void;
65
+ failStep(stepNumber: number, reason: string): void;
66
+ addObservation(obs: {
67
+ tool: string;
68
+ resultSummary: string;
69
+ verified?: boolean;
70
+ target?: string;
71
+ step?: number;
72
+ }): void;
73
+ recordArtifact(artifact: {
74
+ filename?: string;
75
+ name?: string;
76
+ path: string;
77
+ type?: string;
78
+ description?: string;
79
+ application?: string;
80
+ verified?: boolean;
81
+ sizeBytes?: number;
82
+ }): TaskArtifact;
83
+ recordError(message: string, tool?: string, recoveryAttempted?: string, recovered?: boolean): void;
84
+ setRecoveryInfo(info: {
85
+ strategy: string;
86
+ reason: string;
87
+ attempt: number;
88
+ } | undefined): void;
89
+ setActiveApplication(appName: string | null): void;
90
+ setActiveWindow(windowTitle: string | null): void;
91
+ setActiveUrl(url: string | null): void;
92
+ setPendingApproval(pending: PendingAction | null): void;
93
+ setVerificationStatus(status: 'pending' | 'verified' | 'failed' | null): void;
94
+ addConstraint(constraint: string): void;
95
+ setStatus(status: AgentWorkspaceData['status']): void;
96
+ private touch;
97
+ /**
98
+ * Compacts the current structured operational workspace into a concise,
99
+ * high-signal summary string for model injection.
100
+ * Prevents context explosion while keeping key state visible.
101
+ */
102
+ compactWorkspaceForPrompt(): string;
103
+ getScratchpad(): string;
104
+ setScratchpad(notes: string): void;
105
+ clearScratchpad(): void;
106
+ /**
107
+ * Compacts history messages array by keeping the initial context,
108
+ * summarizing middle steps into workspace state, and keeping the latest turns.
109
+ */
110
+ compactHistoryMessages(messages: any[], maxRecentTurns?: number): any[];
111
+ }
112
+ //# sourceMappingURL=agentWorkspace.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './agentWorkspace.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
package/bin/src/index.js CHANGED
@@ -38,13 +38,13 @@ program
38
38
  .name('scout')
39
39
  .alias('ft')
40
40
  .description('FrontTerrain The Onboarding Co-Pilot for New Codebases')
41
- .version('9.5.1');
41
+ .version('9.5.4');
42
42
  // Header UI on execution with FrontTerrain proprietary logo & version auto-checker
43
43
  program.hook('preAction', async (_thisCommand, actionCommand) => {
44
- intro(renderBranding('9.5.1'));
44
+ intro(renderBranding('9.5.4'));
45
45
  const cmdName = actionCommand ? actionCommand.name() : '';
46
46
  if (cmdName !== 'upgrade') {
47
- await checkForUpdates('9.5.1');
47
+ await checkForUpdates('9.5.4');
48
48
  }
49
49
  // Auth Guard: enforce authentication for all commands except login, signup, upgrade, help, dashboard, auth, status, plan, mcp, switch, accounts
50
50
  const EXEMPT_COMMANDS = ['login', 'signin', 'signup', 'register', 'upgrade', 'help', 'dashboard', 'web-ui', 'gui', 'auth', 'status', 'quota', 'usage', 'credits', 'plan', 'pricing', 'subscribe', 'mcp', 'switch', 'accounts', 'account'];
@@ -185,7 +185,7 @@ program
185
185
  .option('-a, --add <idea>', 'Evaluate feasibility & generate step-by-step roadmap for a feature idea')
186
186
  .option('-v, --verify <cmd>', 'Custom verification command (e.g. "npm test" or "npm run build")')
187
187
  .option('-m, --max-retries <number>', 'Maximum self-healing attempt iterations (default 3)')
188
- .option('--steps <number>', 'Maximum autonomous execution steps (default 30)')
188
+ .option('--steps <number>', 'Maximum autonomous execution steps (optional limit)')
189
189
  .option('-y, --yes', 'Automatically retain changes without prompting for review')
190
190
  .option('-l, --lang <language>', 'Language for AI teardowns, explanations, and summaries')
191
191
  .option('--resume <taskId>', 'Resume an existing autonomous task by ID from .ft/tasks/')
@@ -265,7 +265,7 @@ program
265
265
  .command('upgrade')
266
266
  .description('Check for updates and auto-upgrade Scout to the latest version')
267
267
  .action(async () => {
268
- await checkForUpdates('9.5.1', true);
268
+ await checkForUpdates('9.5.4', true);
269
269
  outro(chalk.cyan('Upgrade check complete.'));
270
270
  });
271
271
  program
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Protocol Client
3
+ * Implements JSON-RPC 2.0 handshake, capability negotiation, ping, tool discovery, and tool execution.
4
+ */
5
+ import type { IMCPTransport } from './transport.js';
6
+ import type { MCPServerCapabilities } from './types.js';
7
+ import type { RawMcpToolInput } from './discovery.js';
8
+ export interface MCPInitializeResult {
9
+ protocolVersion: string;
10
+ capabilities: MCPServerCapabilities;
11
+ serverInfo: {
12
+ name: string;
13
+ version?: string | undefined;
14
+ [key: string]: unknown;
15
+ };
16
+ instructions?: string | undefined;
17
+ }
18
+ export interface McpContentPart {
19
+ type?: string | undefined;
20
+ text?: string | undefined;
21
+ data?: string | undefined;
22
+ mimeType?: string | undefined;
23
+ [key: string]: unknown;
24
+ }
25
+ export interface McpCallToolResult {
26
+ content?: McpContentPart[] | string | undefined;
27
+ isError?: boolean | undefined;
28
+ [key: string]: unknown;
29
+ }
30
+ export declare class MCPClient {
31
+ private transport;
32
+ private initialized;
33
+ private serverInfo?;
34
+ private capabilities;
35
+ private protocolVersion;
36
+ constructor(transport: IMCPTransport);
37
+ isConnected(): boolean;
38
+ getServerInfo(): MCPInitializeResult['serverInfo'] | undefined;
39
+ getCapabilities(): MCPServerCapabilities;
40
+ getProtocolVersion(): string;
41
+ /**
42
+ * Connect transport and perform the MCP initialization handshake
43
+ */
44
+ connectAndInitialize(timeoutMs?: number): Promise<MCPInitializeResult>;
45
+ /**
46
+ * Measure ping round-trip latency in milliseconds
47
+ */
48
+ ping(timeoutMs?: number): Promise<number>;
49
+ /**
50
+ * Discover all tools exposed by the MCP server with automatic pagination
51
+ */
52
+ listTools(timeoutMs?: number): Promise<RawMcpToolInput[]>;
53
+ /**
54
+ * Execute an MCP tool via 'tools/call'
55
+ */
56
+ callTool(name: string, args?: Record<string, unknown>, timeoutMs?: number): Promise<unknown>;
57
+ /**
58
+ * Disconnect the client and close transport
59
+ */
60
+ disconnect(): Promise<void>;
61
+ }
62
+ //# sourceMappingURL=client.d.ts.map
@@ -37,7 +37,7 @@ export class MCPClient {
37
37
  },
38
38
  clientInfo: {
39
39
  name: 'scout',
40
- version: '9.5.1',
40
+ version: '9.5.4',
41
41
  },
42
42
  };
43
43
  const result = await this.transport.sendRequest('initialize', initParams, timeoutMs);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Cloud Synchronization Engine
3
+ * Enables direct 2-way synchronization between CLI and https://scout.frontterrain.com/#connections
4
+ * using FrontTerrain Cloud Firestore (no localhost required).
5
+ */
6
+ import type { MCPServerConfig } from './types.js';
7
+ /**
8
+ * Fetch all registered MCP servers from Cloud Firestore
9
+ */
10
+ export declare function fetchMcpServersFromCloud(filterEmail?: string): Promise<MCPServerConfig[]>;
11
+ /**
12
+ * Push an MCP server configuration to Cloud Firestore
13
+ */
14
+ export declare function pushMcpServerToCloud(server: MCPServerConfig): Promise<boolean>;
15
+ /**
16
+ * Delete an MCP server from Cloud Firestore
17
+ */
18
+ export declare function deleteMcpServerFromCloud(serverId: string): Promise<boolean>;
19
+ //# sourceMappingURL=cloudSync.d.ts.map
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Discovery & Tool Normalizer
3
+ * Discovers capabilities, normalizes tool schemas for OpenAI function calling compatibility,
4
+ * and classifies permission boundaries.
5
+ */
6
+ import type { MCPDiscoveredTool, MCPPermissionLevel } from './types.js';
7
+ export declare function normalizeToolSchema(rawSchema: unknown): {
8
+ type: 'object';
9
+ properties: Record<string, unknown>;
10
+ required: string[];
11
+ [key: string]: unknown;
12
+ };
13
+ export declare function classifyPermissionLevel(toolName: string, description?: string): MCPPermissionLevel;
14
+ export interface RawMcpToolInput {
15
+ name?: string | undefined;
16
+ description?: string | undefined;
17
+ inputSchema?: unknown;
18
+ annotations?: Record<string, unknown> | undefined;
19
+ [key: string]: unknown;
20
+ }
21
+ export declare function normalizeMCPTool(rawTool: RawMcpToolInput, serverId: string, serverName: string): MCPDiscoveredTool;
22
+ //# sourceMappingURL=discovery.d.ts.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Health Monitor
3
+ * Probes MCP server connections, tracks latency, and maintains observable health states.
4
+ */
5
+ import type { MCPServerConfig, MCPServerHealth } from './types.js';
6
+ import type { MCPClient } from './client.js';
7
+ export declare class MCPHealthMonitor {
8
+ /**
9
+ * Check health of an active MCP client and compute latency
10
+ */
11
+ static checkHealth(server: MCPServerConfig, client?: MCPClient): Promise<MCPServerHealth>;
12
+ }
13
+ //# sourceMappingURL=health.d.ts.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Public API
3
+ */
4
+ export * from './types.js';
5
+ export * from './persistence.js';
6
+ export * from './transport.js';
7
+ export * from './client.js';
8
+ export * from './discovery.js';
9
+ export * from './permissions.js';
10
+ export * from './toolRouter.js';
11
+ export * from './telemetry.js';
12
+ export * from './health.js';
13
+ export * from './recovery.js';
14
+ export * from './cloudSync.js';
15
+ export * from './manager.js';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Central Connection Manager
3
+ * Coordinates lifecycle, connection pools, tool execution, permissions, health, and persistence.
4
+ */
5
+ import type { MCPServerConfig, MCPDiscoveredTool, MCPToolResult, MCPServerPermissions, MCPServerHealth } from './types.js';
6
+ import { type RoutedToolSelection } from './toolRouter.js';
7
+ export declare class MCPManager {
8
+ private static instance;
9
+ private servers;
10
+ private clients;
11
+ private initialized;
12
+ private watcherDebounceTimer;
13
+ private fileWatcher;
14
+ private constructor();
15
+ static getInstance(): MCPManager;
16
+ private setupFileWatcher;
17
+ destroy(): void;
18
+ /**
19
+ * Synchronize in-memory server configurations with disk storage (~/.ft/mcp_servers.json).
20
+ * Automatically picks up servers added, modified, or removed via CLI or other processes.
21
+ */
22
+ syncWithDisk(): void;
23
+ /**
24
+ * Synchronize with FrontTerrain Cloud Firestore.
25
+ * Pulls servers registered on https://scout.frontterrain.com/#connections directly into local CLI state.
26
+ */
27
+ syncWithCloud(filterEmail?: string): Promise<void>;
28
+ private loadState;
29
+ private persistState;
30
+ /**
31
+ * Find server by ID or case-insensitive Name
32
+ */
33
+ getServer(idOrName: string): MCPServerConfig | undefined;
34
+ /**
35
+ * List all registered MCP servers (with secrets sanitized), optionally filtered by user account
36
+ */
37
+ listServers(filterUserEmail?: string, filterUserId?: string): MCPServerConfig[];
38
+ /**
39
+ * Register a new MCP server configuration and optionally store credentials
40
+ */
41
+ addServer(config: Omit<Partial<MCPServerConfig>, 'permissions'> & {
42
+ name: string;
43
+ transport: 'http' | 'stdio';
44
+ permissions?: Partial<MCPServerPermissions> | undefined;
45
+ }, secret?: string): Promise<MCPServerConfig>;
46
+ /**
47
+ * Remove an MCP server and its stored secrets
48
+ */
49
+ removeServer(idOrName: string): Promise<boolean>;
50
+ /**
51
+ * Create an IMCPTransport instance for the given server config
52
+ */
53
+ private createTransport;
54
+ /**
55
+ * Connect to an MCP server, perform initialize handshake, and discover tools
56
+ */
57
+ connectServer(idOrName: string): Promise<MCPServerConfig>;
58
+ /**
59
+ * Disconnect an active MCP server
60
+ */
61
+ disconnectServer(idOrName: string): Promise<MCPServerConfig>;
62
+ /**
63
+ * Reconnect to an MCP server
64
+ */
65
+ reconnectServer(idOrName: string): Promise<MCPServerConfig>;
66
+ /**
67
+ * Check health and latency for a server, or all connected servers
68
+ */
69
+ checkHealth(idOrName?: string): Promise<Record<string, MCPServerHealth>>;
70
+ /**
71
+ * Retrieve all discovered tools for a server
72
+ */
73
+ getToolsForServer(idOrName: string): MCPDiscoveredTool[];
74
+ /**
75
+ * Retrieve all discovered tools across all servers
76
+ */
77
+ getAllTools(options?: {
78
+ onlyEnabled?: boolean;
79
+ }): MCPDiscoveredTool[];
80
+ /**
81
+ * Enable or disable an individual tool on a server
82
+ */
83
+ setToolEnabled(serverId: string, toolName: string, enabled: boolean): boolean;
84
+ /**
85
+ * Update permissions for an MCP server
86
+ */
87
+ setServerPermissions(serverId: string, permissions: Partial<MCPServerPermissions>): boolean;
88
+ /**
89
+ * Toggle a tool enabled/disabled state for a given server
90
+ */
91
+ toggleTool(serverId: string, toolName: string, enabled?: boolean): MCPServerConfig | undefined;
92
+ /**
93
+ * Route user request to relevant MCP tools
94
+ */
95
+ routeTools(userGoal: string): RoutedToolSelection;
96
+ /**
97
+ * Find tool by either its qualified name (mcp__<serverId>__<toolName>) or its original name.
98
+ */
99
+ findTool(nameOrQualified: string): {
100
+ tool: MCPDiscoveredTool;
101
+ server: MCPServerConfig;
102
+ } | undefined;
103
+ /**
104
+ * Execute an MCP tool by name, handling permissions, connection, retry, and telemetry
105
+ */
106
+ executeTool(nameOrQualified: string, args?: Record<string, unknown>): Promise<MCPToolResult>;
107
+ /**
108
+ * Get recent observable activity
109
+ */
110
+ getActivityLog(limit?: number): import("./types.js").MCPActivityEvent[];
111
+ }
112
+ export declare function getMCPManager(): MCPManager;
113
+ //# sourceMappingURL=manager.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Permission Boundary Engine
3
+ * Enforces server-level and tool-level permission rules before execution or model exposure.
4
+ */
5
+ import type { MCPServerConfig, MCPDiscoveredTool, MCPPermissionLevel } from './types.js';
6
+ export interface MCPPermissionCheckResult {
7
+ allowed: boolean;
8
+ reason?: string;
9
+ requiresApproval: boolean;
10
+ permissionLevel: MCPPermissionLevel;
11
+ }
12
+ export declare class MCPPermissionManager {
13
+ /**
14
+ * Check if a tool can be made available to the agent or executed
15
+ */
16
+ static checkToolAccess(server: MCPServerConfig, tool: MCPDiscoveredTool): MCPPermissionCheckResult;
17
+ }
18
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Persistence & Encrypted Credential Store
3
+ * Manages MCP server definitions and securely encrypts secrets at rest using AES-256-GCM.
4
+ */
5
+ import type { MCPServerConfig } from './types.js';
6
+ /**
7
+ * Encrypt a plaintext string using AES-256-GCM
8
+ */
9
+ export declare function encryptSecret(plainText: string): string;
10
+ /**
11
+ * Decrypt an AES-256-GCM encrypted payload string
12
+ */
13
+ export declare function decryptSecret(encryptedPayload: string): string;
14
+ /**
15
+ * Save an encrypted secret for an MCP server
16
+ */
17
+ export declare function saveServerSecret(serverId: string, secret: string): void;
18
+ /**
19
+ * Retrieve decrypted secret for an MCP server
20
+ */
21
+ export declare function getServerSecret(serverId: string): string | null;
22
+ /**
23
+ * Delete a stored secret for an MCP server
24
+ */
25
+ export declare function deleteServerSecret(serverId: string): void;
26
+ /**
27
+ * Check if a server has an encrypted secret stored
28
+ */
29
+ export declare function hasServerSecret(serverId: string): boolean;
30
+ /**
31
+ * Load all configured MCP servers from disk.
32
+ * Returns null if the file exists but could not be parsed (e.g. transient file lock),
33
+ * preventing accidental memory state purge in sync routines.
34
+ */
35
+ export declare function loadMCPServers(): MCPServerConfig[] | null;
36
+ /**
37
+ * Save MCP servers list to disk atomically to prevent race conditions during reads.
38
+ */
39
+ export declare function saveMCPServers(servers: MCPServerConfig[]): void;
40
+ /**
41
+ * Return a copy of MCPServerConfig safe for client/UI/CLI display (no secrets)
42
+ */
43
+ export declare function sanitizeServerConfig(server: MCPServerConfig): MCPServerConfig;
44
+ //# sourceMappingURL=persistence.d.ts.map
@@ -18,7 +18,14 @@ function getCredentialsFile() {
18
18
  // Derive machine-specific key for local AES-256-GCM encryption
19
19
  function getEncryptionKey() {
20
20
  const machineSalt = 'scout_mcp_secure_v1_encryption_salt';
21
- const machineId = `${os.hostname()}_${os.userInfo().username}_${os.platform()}`;
21
+ let username = 'default_user';
22
+ try {
23
+ username = os.userInfo()?.username || process.env.USER || process.env.USERNAME || 'default_user';
24
+ }
25
+ catch {
26
+ username = process.env.USER || process.env.USERNAME || 'default_user';
27
+ }
28
+ const machineId = `${os.hostname()}_${username}_${os.platform()}`;
22
29
  return crypto.pbkdf2Sync(machineId, machineSalt, 100000, 32, 'sha256');
23
30
  }
24
31
  function ensureDir(dirPath) {
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Failure Recovery & Error Classification
3
+ * Implements bounded recovery, error classification, and user-friendly error formatting.
4
+ */
5
+ export type MCPErrorCategory = 'CONNECTION_LOST' | 'TIMEOUT' | 'AUTHENTICATION_EXPIRED' | 'TOOL_NOT_FOUND' | 'RATE_LIMITED' | 'VALIDATION_ERROR' | 'INTERNAL_ERROR';
6
+ export interface ClassifiedMCPError {
7
+ category: MCPErrorCategory;
8
+ isRecoverable: boolean;
9
+ canRetry: boolean;
10
+ userFriendlyMessage: string;
11
+ originalError: string;
12
+ }
13
+ export declare class MCPRecovery {
14
+ /**
15
+ * Classify an error encountered during MCP communication or tool execution
16
+ */
17
+ static classifyError(err: unknown, serverName: string, isDestructive?: boolean): ClassifiedMCPError;
18
+ }
19
+ //# sourceMappingURL=recovery.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Telemetry & Activity Logger
3
+ * Records observable tool executions and logs without capturing secrets or internal reasoning.
4
+ */
5
+ import type { MCPActivityEvent, MCPToolResult } from './types.js';
6
+ /**
7
+ * Sanitize an object to remove sensitive keys (auth, token, key, secret, password)
8
+ */
9
+ export declare function sanitizeData(data: unknown): unknown;
10
+ export declare class MCPTelemetry {
11
+ static loadActivity(limit?: number): MCPActivityEvent[];
12
+ static recordEvent(event: MCPActivityEvent): void;
13
+ static recordResult(result: MCPToolResult): void;
14
+ }
15
+ //# sourceMappingURL=telemetry.d.ts.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Intelligent Capability & Tool Router
3
+ * Selects only relevant MCP capabilities and tools for a given user goal,
4
+ * preventing context-window bloating and reasoning degradation.
5
+ */
6
+ import type { MCPDiscoveredTool, MCPServerConfig } from './types.js';
7
+ export interface RoutedToolSelection {
8
+ tools: MCPDiscoveredTool[];
9
+ activeServers: string[];
10
+ capabilitiesSummary: string;
11
+ }
12
+ export declare class MCPToolRouter {
13
+ private static readonly MAX_ROUTED_MCP_TOOLS;
14
+ /**
15
+ * Compute a relevance score for a tool based on user goal and context
16
+ */
17
+ private static scoreToolRelevance;
18
+ /**
19
+ * Route user goal to the most relevant MCP tools across all connected servers
20
+ */
21
+ static routeTools(userGoal: string, connectedServers: MCPServerConfig[]): RoutedToolSelection;
22
+ }
23
+ //# sourceMappingURL=toolRouter.d.ts.map