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,60 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Transports
3
+ * Implements Streamable HTTP and stdio local process transports for MCP JSON-RPC 2.0.
4
+ */
5
+ export interface IMCPTransport {
6
+ connect(): Promise<void>;
7
+ disconnect(): Promise<void>;
8
+ sendRequest<T = unknown>(method: string, params?: Record<string, unknown> | unknown[], timeoutMs?: number): Promise<T>;
9
+ sendNotification(method: string, params?: Record<string, unknown> | unknown[]): Promise<void>;
10
+ onNotification(listener: (method: string, params: unknown) => void): void;
11
+ isConnected(): boolean;
12
+ getTransportType(): 'http' | 'stdio';
13
+ }
14
+ /**
15
+ * Streamable HTTP Transport
16
+ * Communicates with remote or local HTTP MCP servers using JSON-RPC 2.0 over HTTP.
17
+ */
18
+ export declare class HttpMcpTransport implements IMCPTransport {
19
+ private endpoint;
20
+ private headers;
21
+ private connected;
22
+ private requestId;
23
+ private notificationListeners;
24
+ constructor(endpoint: string, headers?: Record<string, string>);
25
+ getTransportType(): 'http';
26
+ isConnected(): boolean;
27
+ onNotification(listener: (method: string, params: unknown) => void): void;
28
+ connect(): Promise<void>;
29
+ disconnect(): Promise<void>;
30
+ sendRequest<T = unknown>(method: string, params?: Record<string, unknown> | unknown[], timeoutMs?: number): Promise<T>;
31
+ sendNotification(method: string, params?: Record<string, unknown> | unknown[]): Promise<void>;
32
+ }
33
+ /**
34
+ * stdio Local Process Transport
35
+ * Spawns a local MCP server child process communicating over stdin/stdout with newline-delimited or Content-Length framed JSON-RPC 2.0.
36
+ */
37
+ export declare class StdioMcpTransport implements IMCPTransport {
38
+ private command;
39
+ private args;
40
+ private env;
41
+ private process;
42
+ private connected;
43
+ private requestId;
44
+ private pendingRequests;
45
+ private notificationListeners;
46
+ private stdoutBuffer;
47
+ private stderrBuffer;
48
+ constructor(command: string, args?: string[], env?: Record<string, string>);
49
+ getTransportType(): 'stdio';
50
+ isConnected(): boolean;
51
+ onNotification(listener: (method: string, params: unknown) => void): void;
52
+ getStderrDiagnostics(): string;
53
+ connect(): Promise<void>;
54
+ disconnect(): Promise<void>;
55
+ private handleStdoutData;
56
+ private parseJsonRpcPayload;
57
+ sendRequest<T = unknown>(method: string, params?: Record<string, unknown> | unknown[], timeoutMs?: number): Promise<T>;
58
+ sendNotification(method: string, params?: Record<string, unknown> | unknown[]): Promise<void>;
59
+ }
60
+ //# sourceMappingURL=transport.d.ts.map
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Scout MCP Ecosystem - Type Definitions
3
+ * Standards-compliant Model Context Protocol (MCP) types and internal Scout representations.
4
+ */
5
+ export type MCPTransportType = 'http' | 'stdio';
6
+ export type MCPAuthType = 'none' | 'api-key' | 'bearer' | 'oauth';
7
+ export type MCPServerStatus = 'connected' | 'connecting' | 'disconnected' | 'reconnecting' | 'degraded' | 'error' | 'unauthorized';
8
+ export type MCPPermissionLevel = 'read' | 'write' | 'destructive' | 'admin';
9
+ export interface MCPServerPermissions {
10
+ enabled: boolean;
11
+ allowedTools: string[];
12
+ disabledTools: string[];
13
+ requireConfirmationForDestructive: boolean;
14
+ autoApproveSafe: boolean;
15
+ }
16
+ export interface MCPDiscoveredTool {
17
+ name: string;
18
+ originalName: string;
19
+ qualifiedName: string;
20
+ description: string;
21
+ inputSchema: {
22
+ type: 'object';
23
+ properties?: Record<string, unknown> | undefined;
24
+ required?: string[] | undefined;
25
+ [key: string]: unknown;
26
+ };
27
+ serverId: string;
28
+ serverName: string;
29
+ enabled: boolean;
30
+ permissionLevel: MCPPermissionLevel;
31
+ requiresApproval: boolean;
32
+ annotations?: {
33
+ readOnly?: boolean | undefined;
34
+ destructive?: boolean | undefined;
35
+ category?: string | undefined;
36
+ tags?: string[] | undefined;
37
+ [key: string]: unknown;
38
+ } | undefined;
39
+ }
40
+ export interface MCPServerCapabilities {
41
+ tools?: {
42
+ listChanged?: boolean | undefined;
43
+ } | undefined;
44
+ resources?: {
45
+ subscribe?: boolean | undefined;
46
+ listChanged?: boolean | undefined;
47
+ } | undefined;
48
+ prompts?: {
49
+ listChanged?: boolean | undefined;
50
+ } | undefined;
51
+ logging?: Record<string, unknown> | undefined;
52
+ experimental?: Record<string, unknown> | undefined;
53
+ }
54
+ export interface MCPServerHealth {
55
+ status: MCPServerStatus;
56
+ latencyMs?: number | undefined;
57
+ lastCheckedAt?: string | undefined;
58
+ error?: string | undefined;
59
+ }
60
+ export interface MCPServerConfig {
61
+ id: string;
62
+ name: string;
63
+ description?: string | undefined;
64
+ transport: MCPTransportType;
65
+ endpoint?: string | undefined;
66
+ command?: string | undefined;
67
+ args?: string[] | undefined;
68
+ env?: Record<string, string> | undefined;
69
+ authType: MCPAuthType;
70
+ authHeader?: string | undefined;
71
+ hasSecret?: boolean | undefined;
72
+ status: MCPServerStatus;
73
+ health: MCPServerHealth;
74
+ capabilities?: MCPServerCapabilities | undefined;
75
+ tools: MCPDiscoveredTool[];
76
+ permissions: MCPServerPermissions;
77
+ userId?: string | undefined;
78
+ userEmail?: string | undefined;
79
+ createdAt: string;
80
+ updatedAt: string;
81
+ lastConnectedAt?: string | undefined;
82
+ lastActivityAt?: string | undefined;
83
+ }
84
+ export interface MCPToolResult {
85
+ serverId: string;
86
+ serverName: string;
87
+ toolName: string;
88
+ invocationId: string;
89
+ startedAt: string;
90
+ completedAt: string;
91
+ status: 'success' | 'error' | 'timeout' | 'blocked';
92
+ inputSummary: string;
93
+ outputSummary: string;
94
+ result: unknown;
95
+ error?: string | undefined;
96
+ executionDurationMs: number;
97
+ }
98
+ export interface MCPActivityEvent {
99
+ id: string;
100
+ timestamp: string;
101
+ serverId: string;
102
+ serverName: string;
103
+ toolName: string;
104
+ status: 'success' | 'error' | 'blocked' | 'timeout';
105
+ summary: string;
106
+ durationMs: number;
107
+ error?: string | undefined;
108
+ }
109
+ export interface MCPJsonRpcRequest {
110
+ jsonrpc: '2.0';
111
+ id: string | number;
112
+ method: string;
113
+ params?: Record<string, unknown> | unknown[] | undefined;
114
+ }
115
+ export interface MCPJsonRpcResponse {
116
+ jsonrpc: '2.0';
117
+ id: string | number;
118
+ result?: unknown;
119
+ error?: {
120
+ code: number;
121
+ message: string;
122
+ data?: unknown;
123
+ };
124
+ }
125
+ export interface MCPJsonRpcNotification {
126
+ jsonrpc: '2.0';
127
+ method: string;
128
+ params?: Record<string, unknown> | unknown[] | undefined;
129
+ }
130
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,6 @@
1
+ import http from 'http';
2
+ export declare function startDashboardServer(port?: number): Promise<{
3
+ server: http.Server;
4
+ url: string;
5
+ }>;
6
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1,84 @@
1
+ export declare function getAdminSecretKey(): string;
2
+ export declare function isWhitelistedAdminEmail(email?: string | null): boolean;
3
+ export interface AdminAuthSession {
4
+ adminToken: string;
5
+ expiresAt: number;
6
+ email?: string;
7
+ }
8
+ export declare function generateAdminToken(email?: string): string;
9
+ export declare function verifyAdminToken(token?: string | null): {
10
+ valid: boolean;
11
+ email?: string;
12
+ error?: string;
13
+ };
14
+ export declare function verifyAdminAuth(headersOrPasskey: {
15
+ authorization?: string;
16
+ 'x-admin-key'?: string;
17
+ passkey?: string;
18
+ }): boolean;
19
+ export interface AdminUserView {
20
+ userId: string;
21
+ email: string;
22
+ currentTier: string;
23
+ creditsUsed: number;
24
+ creditsTotal: number;
25
+ usagePercent: number;
26
+ renewAt: string;
27
+ lastResetAt: string;
28
+ cancelAtPeriodEnd: boolean;
29
+ pendingDowngrade: string | null;
30
+ byokEnabled: boolean;
31
+ isAdmin: boolean;
32
+ }
33
+ export declare function getAdminUsersList(): AdminUserView[];
34
+ export interface UpdateUserParams {
35
+ email: string;
36
+ currentTier?: string | undefined;
37
+ creditsTotal?: number | undefined;
38
+ creditsUsed?: number | undefined;
39
+ renewAt?: string | undefined;
40
+ byokEnabled?: boolean | undefined;
41
+ resetCredits?: boolean | undefined;
42
+ }
43
+ export declare function updateAdminUser(params: UpdateUserParams): AdminUserView;
44
+ export declare function deleteAdminUser(email: string): boolean;
45
+ export declare function getAdminDashboardStats(): {
46
+ totalUsers: number;
47
+ tierCounts: {
48
+ free: number;
49
+ pro: number;
50
+ team: number;
51
+ enterprise: number;
52
+ };
53
+ credits: {
54
+ used: number;
55
+ allocated: number;
56
+ };
57
+ revenue: {
58
+ mrrUSD: number;
59
+ mrrINR: number;
60
+ arrUSD: number;
61
+ targetMrrUSD: number;
62
+ mrrProgressPercent: number;
63
+ arpuUSD: number;
64
+ payingUsers: number;
65
+ };
66
+ pricing: Record<import("./pricing.js").PlanTier, import("./pricing.js").PricingTierConfig>;
67
+ };
68
+ export interface EnterpriseLicenseInfo {
69
+ orgName: string;
70
+ seats: number;
71
+ tier: 'team' | 'enterprise';
72
+ allowedDomain?: string | undefined;
73
+ issuedAt: string;
74
+ expiresAt: string;
75
+ licenseKey: string;
76
+ }
77
+ export declare function generateEnterpriseLicense(params: {
78
+ orgName: string;
79
+ seats: number;
80
+ tier?: 'team' | 'enterprise' | undefined;
81
+ allowedDomain?: string | undefined;
82
+ validDays?: number | undefined;
83
+ }): EnterpriseLicenseInfo;
84
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1,18 @@
1
+ export interface AuditEvent {
2
+ id: string;
3
+ timestamp: string;
4
+ action: string;
5
+ tier: string;
6
+ user?: string | undefined;
7
+ details?: Record<string, any> | undefined;
8
+ status?: 'success' | 'failed' | 'warning' | undefined;
9
+ }
10
+ /**
11
+ * Appends an audit event to ~/.ft/audit.log if the user's tier has audit_logging enabled.
12
+ */
13
+ export declare function logAuditEvent(action: string, details?: Record<string, any> | undefined, status?: 'success' | 'failed' | 'warning'): boolean;
14
+ /**
15
+ * Retrieves recent audit logs from ~/.ft/audit.log
16
+ */
17
+ export declare function getAuditLogs(limit?: number): AuditEvent[];
18
+ //# sourceMappingURL=auditLogger.d.ts.map
@@ -0,0 +1,132 @@
1
+ export interface UserProfile {
2
+ id: string;
3
+ email: string;
4
+ name: string;
5
+ username?: string;
6
+ createdAt: string;
7
+ }
8
+ export interface AuthConfig {
9
+ token: string | null;
10
+ refreshToken?: string | null | undefined;
11
+ tenantId?: string | null | undefined;
12
+ provider?: 'firebase' | 'holosene' | string | null | undefined;
13
+ user: UserProfile | null;
14
+ loggedInAt: string | null;
15
+ creditsUsed?: number | undefined;
16
+ creditsTotal?: number | undefined;
17
+ currentTier?: string | undefined;
18
+ renewAt?: string | null | undefined;
19
+ cancelAtPeriodEnd?: boolean | undefined;
20
+ pendingDowngrade?: string | null | undefined;
21
+ paidTier?: string | null | undefined;
22
+ byokEnabled?: boolean | undefined;
23
+ customLlmProvider?: string | undefined;
24
+ customApiKey?: string | undefined;
25
+ customBaseUrl?: string | undefined;
26
+ resetCredits?: boolean | undefined;
27
+ transactionId?: string | undefined;
28
+ lastPaymentId?: string | undefined;
29
+ lastOrderId?: string | undefined;
30
+ paymentProvider?: string | undefined;
31
+ _sig?: string | undefined;
32
+ }
33
+ export declare const SESSIONS_FILE: string;
34
+ export interface SavedAccountSession {
35
+ user: UserProfile;
36
+ token: string;
37
+ refreshToken?: string | null | undefined;
38
+ tenantId?: string | null | undefined;
39
+ provider?: 'firebase' | 'holosene' | string | null | undefined;
40
+ loggedInAt: string | null;
41
+ currentTier: string;
42
+ creditsUsed: number;
43
+ creditsTotal: number;
44
+ renewAt?: string | null | undefined;
45
+ cancelAtPeriodEnd?: boolean | undefined;
46
+ pendingDowngrade?: string | null | undefined;
47
+ paidTier?: string | null | undefined;
48
+ byokEnabled?: boolean | undefined;
49
+ customLlmProvider?: string | undefined;
50
+ customApiKey?: string | undefined;
51
+ customBaseUrl?: string | undefined;
52
+ lastActiveAt?: string | undefined;
53
+ }
54
+ export declare const TIER_RANK: Record<string, number>;
55
+ export declare const TIER_CREDIT_LIMITS: Record<string, number>;
56
+ export declare const TIER_SESSION_LIMITS: Record<string, number>;
57
+ export interface UserAccountLedger {
58
+ userId: string;
59
+ email: string;
60
+ currentTier: string;
61
+ creditsUsed: number;
62
+ creditsTotal: number;
63
+ renewAt: string;
64
+ lastResetAt: string;
65
+ cancelAtPeriodEnd?: boolean | undefined;
66
+ pendingDowngrade?: string | null | undefined;
67
+ paidTier?: string | null | undefined;
68
+ transactionId?: string | undefined;
69
+ byokEnabled?: boolean | undefined;
70
+ customLlmProvider?: string | undefined;
71
+ customApiKey?: string | undefined;
72
+ customBaseUrl?: string | undefined;
73
+ _sig?: string | undefined;
74
+ }
75
+ export declare function generateRecordSignature(record: Omit<UserAccountLedger, '_sig'>): string;
76
+ export declare function verifyRecordIntegrity(record: UserAccountLedger): boolean;
77
+ export declare function generateAuthSignature(config: AuthConfig): string;
78
+ export declare function verifyAuthIntegrity(config: AuthConfig): boolean;
79
+ export declare function loadAccountsLedger(): Record<string, UserAccountLedger>;
80
+ export declare function saveAccountsLedger(ledger: Record<string, UserAccountLedger>): void;
81
+ export declare function loadAuthConfig(): AuthConfig;
82
+ export declare function saveAuthConfig(config: AuthConfig): void;
83
+ export declare function loadAccountSessions(): Record<string, SavedAccountSession>;
84
+ export declare function saveAccountSessions(sessions: Record<string, SavedAccountSession>): void;
85
+ export declare function listAccountSessions(): SavedAccountSession[];
86
+ export declare function switchActiveAccount(emailOrKey: string): AuthConfig;
87
+ export declare function removeAccountSession(emailOrKey: string): {
88
+ remainingCount: number;
89
+ nextActive?: AuthConfig;
90
+ };
91
+ export declare function clearAllSessions(): void;
92
+ export declare function clearAuthConfig(): void;
93
+ export declare function isLoggedIn(): boolean;
94
+ export declare function getAuthToken(): string | null;
95
+ export declare function getCurrentUser(): UserProfile | null;
96
+ export declare function getNextRenewalDate(config?: AuthConfig): Date;
97
+ export declare function formatRenewalDate(date: Date): string;
98
+ export interface ConsumeCreditResult {
99
+ success: boolean;
100
+ isByok: boolean;
101
+ remaining: number;
102
+ isLowCredit?: boolean;
103
+ reason?: string;
104
+ renewalFormatted?: string;
105
+ renewalDate?: Date;
106
+ }
107
+ export declare function consumeCredit(amount?: number): ConsumeCreditResult;
108
+ export interface TierAccessResult {
109
+ allowed: boolean;
110
+ reason?: string;
111
+ renewalFormatted?: string;
112
+ renewalDate?: Date;
113
+ }
114
+ export declare function checkTierAccess(feature: 'agent' | 'risky' | 'audit'): TierAccessResult;
115
+ export declare function getTierSessionLimit(tier?: string): number;
116
+ export declare function canStartNewSession(currentActiveCount: number, tier?: string): {
117
+ allowed: boolean;
118
+ limit: number;
119
+ current: number;
120
+ reason?: string;
121
+ };
122
+ export type TierCapability = 'autonomous_features' | 'scratchpad' | 'continuous_screen' | 'audit_logging' | 'window_isolation' | 'nvidia_inception_models' | 'team_knowledge_graph' | 'pr_risk_gatekeeper' | 'unlimited_sessions';
123
+ export declare function checkTierFeatureCapability(capability: TierCapability, tierOverride?: string): {
124
+ allowed: boolean;
125
+ requiredTier: string;
126
+ currentTier: string;
127
+ reason?: string;
128
+ };
129
+ export declare function isProOrHigher(tierOverride?: string): boolean;
130
+ export declare function canUseAutonomousFeatures(tierOverride?: string): boolean;
131
+ export declare function canUseScratchpad(tierOverride?: string): boolean;
132
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function renderBranding(version?: string): string;
2
+ //# sourceMappingURL=branding.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import chalk from 'chalk';
2
- export function renderBranding(version = '9.5.1') {
2
+ export function renderBranding(version = '9.5.4') {
3
3
  const logo = chalk.cyan.bold(' ███████╗████████╗') + ' ' + chalk.cyan.bold('███████╗ ██████╗ ██████╗ ██╗ ██╗████████╗') + '\n' +
4
4
  chalk.cyan.bold(' ██╔════╝╚══██╔══╝') + ' ' + chalk.cyan.bold('██╔════╝ ██╔════╝██╔═══██╗ ██║ ██║╚══██╔══╝') + '\n' +
5
5
  chalk.cyan.bold(' █████╗ ██║ ') + ' ' + chalk.cyan.bold(' ███████╗ ██║ ██║ ██║ ██║ ██║ ██║ ') + '\n' +
@@ -0,0 +1,131 @@
1
+ export interface StepTelemetry {
2
+ step: number;
3
+ maxSteps: number;
4
+ startTimeMs: number;
5
+ tokensConsumed: number;
6
+ modelName?: string;
7
+ userTier: string;
8
+ }
9
+ export interface ToolArgsRecord {
10
+ path?: string;
11
+ content?: string;
12
+ target?: string;
13
+ replacement?: string;
14
+ edits?: unknown[];
15
+ command?: string;
16
+ cmd?: string;
17
+ query?: string;
18
+ pattern?: string;
19
+ url?: string;
20
+ action?: string;
21
+ appName?: string;
22
+ app?: string;
23
+ x?: number;
24
+ y?: number;
25
+ text?: string;
26
+ windowTitleOrApp?: string;
27
+ selectorOrText?: string;
28
+ role?: string;
29
+ task?: string;
30
+ question?: string;
31
+ summary?: string;
32
+ startLine?: number;
33
+ endLine?: number;
34
+ [key: string]: unknown;
35
+ }
36
+ export interface ToolCallUIParams {
37
+ name: string;
38
+ args: ToolArgsRecord;
39
+ step: number;
40
+ }
41
+ export interface ToolResultUIParams {
42
+ name: string;
43
+ args?: ToolArgsRecord;
44
+ result: string;
45
+ durationMs: number;
46
+ success?: boolean;
47
+ }
48
+ export interface TaskCompletedUIParams {
49
+ objective: string;
50
+ summary: string;
51
+ modifiedFiles: string[];
52
+ steps: number;
53
+ maxSteps: number;
54
+ totalTokens: number;
55
+ totalToolCalls: number;
56
+ elapsedSecs: number;
57
+ userTier: string;
58
+ }
59
+ /**
60
+ * Renders Claude Code-style Step Banner:
61
+ * ╭── ● Step 2 ── Scout Operating ──────────── ⏱ 1.2s • 3,250 tok • PRO ─╮
62
+ */
63
+ export declare function renderStepHeader(telemetry: StepTelemetry): void;
64
+ /**
65
+ * Renders Claude Code-style Collapsible / Styled Thought Reasoning Box:
66
+ * ╭── 💭 Scout Reasoning ──────────────────────────────────────────────────
67
+ * │ Analyzing workspace files to identify the missing dependency...
68
+ * ╰────────────────────────────────────────────────────────────────────────
69
+ */
70
+ export declare function renderThoughtBox(thought: string, step?: number): void;
71
+ /**
72
+ * Renders Claude Code-style Rich Tool Call Invocation Block:
73
+ * ╭── 📖 Read File ── src/engine/agentEngine.ts ───────────────────────────
74
+ * │ Path: src/engine/agentEngine.ts (lines 1450-1500)
75
+ * ╰────────────────────────────────────────────────────────────────────────
76
+ */
77
+ export declare function renderToolCall(params: ToolCallUIParams): void;
78
+ /**
79
+ * Renders Claude Code-style Tool Output / Result Box:
80
+ * ╰── ✔ Success (0.04s) • 42 lines read ────────────────────────────────────
81
+ */
82
+ export declare function renderToolResult(params: ToolResultUIParams): void;
83
+ /**
84
+ * Renders Claude Code-style Comprehensive Task Completion Card:
85
+ * ╭────────────────────────────────────────────────────────────────────────╮
86
+ * │ ✔ TASK COMPLETED SUCCESSFULLY │
87
+ * ├────────────────────────────────────────────────────────────────────────┤
88
+ * │ 🎯 Objective: Fix bug in agentEngine.ts │
89
+ * │ 📋 Summary: Synchronized scratchpad memory and disk │
90
+ * │ │
91
+ * │ 📁 Modified Files (3): │
92
+ * │ • bin/src/engine/agentEngine.ts │
93
+ * │ • bin/src/engine/workspace/agentWorkspace.ts │
94
+ * │ • test/agent.test.ts │
95
+ * │ │
96
+ * │ ⏱ Duration: 4.2s • Steps: 3 • Tokens: 4,120 │
97
+ * │ 🛡️ Tier: PRO (Unlimited multi-step autonomy) │
98
+ * ╰────────────────────────────────────────────────────────────────────────╯
99
+ */
100
+ export declare function renderTaskCompletedCard(params: TaskCompletedUIParams): void;
101
+ export interface TeamSwarmCardParams {
102
+ objective: string;
103
+ architectSummary?: string | undefined;
104
+ coderSummary?: string | undefined;
105
+ testerSummary?: string | undefined;
106
+ modifiedFiles: string[];
107
+ totalSteps: number;
108
+ durationMs: number;
109
+ tier?: string | undefined;
110
+ }
111
+ /**
112
+ * Renders Claude Code-style Multi-Agent Swarm Collaborative Completion Card (Grok Bot Relay)
113
+ */
114
+ export declare function renderTeamSwarmCard(params: TeamSwarmCardParams): void;
115
+ export interface CrossAppSwarmCardParams {
116
+ objective: string;
117
+ sourceApp?: string | undefined;
118
+ targetApp?: string | undefined;
119
+ researcherSummary?: string | undefined;
120
+ operatorSummary?: string | undefined;
121
+ verifierSummary?: string | undefined;
122
+ modifiedFiles: string[];
123
+ totalSteps: number;
124
+ durationMs: number;
125
+ tier?: string | undefined;
126
+ }
127
+ /**
128
+ * Renders Claude Code-style Cross-App Multi-Agent Swarm Collaborative Completion Card (Strawberry-style)
129
+ */
130
+ export declare function renderCrossAppSwarmCard(params: CrossAppSwarmCardParams): void;
131
+ //# sourceMappingURL=claudeUI.d.ts.map