ft-scout 9.5.1 → 9.5.2

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 (299) hide show
  1. package/README.md +12 -18
  2. package/bin/src/commands/agent.d.ts +41 -0
  3. package/bin/src/commands/audit.d.ts +2 -0
  4. package/bin/src/commands/authCommand.d.ts +2 -0
  5. package/bin/src/commands/benchmark.d.ts +2 -0
  6. package/bin/src/commands/brief.d.ts +4 -0
  7. package/bin/src/commands/checkpoint.d.ts +7 -0
  8. package/bin/src/commands/configCommand.d.ts +7 -0
  9. package/bin/src/commands/dashboard.d.ts +5 -0
  10. package/bin/src/commands/history.d.ts +2 -0
  11. package/bin/src/commands/init.d.ts +8 -0
  12. package/bin/src/commands/login.d.ts +10 -0
  13. package/bin/src/commands/logout.d.ts +6 -0
  14. package/bin/src/commands/mcp.d.ts +49 -0
  15. package/bin/src/commands/owners.d.ts +2 -0
  16. package/bin/src/commands/plan.d.ts +2 -0
  17. package/bin/src/commands/pr.d.ts +11 -0
  18. package/bin/src/commands/quota.d.ts +2 -0
  19. package/bin/src/commands/recommend.d.ts +5 -0
  20. package/bin/src/commands/risky.d.ts +10 -0
  21. package/bin/src/commands/setup.d.ts +2 -0
  22. package/bin/src/commands/signup.d.ts +8 -0
  23. package/bin/src/commands/switchCommand.d.ts +3 -0
  24. package/bin/src/commands/undo.d.ts +2 -0
  25. package/bin/src/commands/watch.d.ts +12 -0
  26. package/bin/src/commands/web.d.ts +8 -0
  27. package/bin/src/discovery/config.d.ts +10 -0
  28. package/bin/src/discovery/display.d.ts +3 -0
  29. package/bin/src/discovery/messages.d.ts +4 -0
  30. package/bin/src/discovery/signals.d.ts +16 -0
  31. package/bin/src/engine/actionVerifier.d.ts +69 -0
  32. package/bin/src/engine/agentEngine.d.ts +110 -0
  33. package/bin/src/engine/agentState.d.ts +154 -0
  34. package/bin/src/engine/browser/browserController.d.ts +155 -0
  35. package/bin/src/engine/browser/index.d.ts +2 -0
  36. package/bin/src/engine/checkpoints/checkpointManager.d.ts +48 -0
  37. package/bin/src/engine/computer/computerController.d.ts +130 -0
  38. package/bin/src/engine/computer/computerController.js +8 -0
  39. package/bin/src/engine/computer/computerDiagnostic.d.ts +31 -0
  40. package/bin/src/engine/computer/index.d.ts +4 -0
  41. package/bin/src/engine/computer/mockComputer.d.ts +62 -0
  42. package/bin/src/engine/computer/operatorHud.d.ts +30 -0
  43. package/bin/src/engine/git.d.ts +20 -0
  44. package/bin/src/engine/llm.d.ts +92 -0
  45. package/bin/src/engine/planner.d.ts +21 -0
  46. package/bin/src/engine/runtime/agentRuntime.d.ts +111 -0
  47. package/bin/src/engine/runtime/index.d.ts +2 -0
  48. package/bin/src/engine/safety.d.ts +55 -0
  49. package/bin/src/engine/scanners.d.ts +2 -0
  50. package/bin/src/engine/subagents/subagentManager.d.ts +29 -0
  51. package/bin/src/engine/toolRegistry.d.ts +38 -0
  52. package/bin/src/engine/verifier.d.ts +47 -0
  53. package/bin/src/engine/voiceEngine.d.ts +26 -0
  54. package/bin/src/engine/web.d.ts +22 -0
  55. package/bin/src/engine/workspace/agentWorkspace.d.ts +112 -0
  56. package/bin/src/engine/workspace/index.d.ts +2 -0
  57. package/bin/src/index.d.ts +2 -0
  58. package/bin/src/index.js +4 -4
  59. package/bin/src/mcp/client.d.ts +62 -0
  60. package/bin/src/mcp/client.js +1 -1
  61. package/bin/src/mcp/cloudSync.d.ts +19 -0
  62. package/bin/src/mcp/discovery.d.ts +22 -0
  63. package/bin/src/mcp/health.d.ts +13 -0
  64. package/bin/src/mcp/index.d.ts +16 -0
  65. package/bin/src/mcp/manager.d.ts +113 -0
  66. package/bin/src/mcp/permissions.d.ts +18 -0
  67. package/bin/src/mcp/persistence.d.ts +44 -0
  68. package/bin/src/mcp/persistence.js +8 -1
  69. package/bin/src/mcp/recovery.d.ts +19 -0
  70. package/bin/src/mcp/telemetry.d.ts +15 -0
  71. package/bin/src/mcp/toolRouter.d.ts +23 -0
  72. package/bin/src/mcp/transport.d.ts +60 -0
  73. package/bin/src/mcp/types.d.ts +130 -0
  74. package/bin/src/server/server.d.ts +6 -0
  75. package/bin/src/utils/admin.d.ts +84 -0
  76. package/bin/src/utils/auditLogger.d.ts +18 -0
  77. package/bin/src/utils/auth.d.ts +132 -0
  78. package/bin/src/utils/branding.d.ts +2 -0
  79. package/bin/src/utils/branding.js +1 -1
  80. package/bin/src/utils/claudeUI.d.ts +101 -0
  81. package/bin/src/utils/config.d.ts +46 -0
  82. package/bin/src/utils/email.d.ts +36 -0
  83. package/bin/src/utils/firebaseAuth.d.ts +19 -0
  84. package/bin/src/utils/holoseneAuth.d.ts +18 -0
  85. package/bin/src/utils/interruptHandler.d.ts +32 -0
  86. package/bin/src/utils/language.d.ts +13 -0
  87. package/bin/src/utils/logger.d.ts +2 -0
  88. package/bin/src/utils/markdown.d.ts +19 -0
  89. package/bin/src/utils/payment.d.ts +81 -0
  90. package/bin/src/utils/pricing.d.ts +26 -0
  91. package/bin/src/utils/qrBridge.d.ts +33 -0
  92. package/bin/src/utils/qrBridge.js +1 -1
  93. package/bin/src/utils/razorpay.d.ts +48 -0
  94. package/bin/src/utils/rules.d.ts +24 -0
  95. package/bin/src/utils/session.d.ts +32 -0
  96. package/bin/src/utils/updateCheck.d.ts +3 -0
  97. package/package.json +14 -4
  98. package/.firebase/hosting.d2Vi.cache +0 -16
  99. package/.firebaserc +0 -14
  100. package/.mcp-config.json +0 -19
  101. package/.mft-mcp-config.json +0 -29
  102. package/.scoutrules +0 -13
  103. package/.test-ft/mcp_activity.json +0 -23
  104. package/.test-ft/mcp_credentials.enc +0 -1
  105. package/.test-ft/mcp_servers.json +0 -1
  106. package/bin/src/commands/agent.d.ts.map +0 -1
  107. package/bin/src/commands/agent.js.map +0 -1
  108. package/bin/src/commands/audit.d.ts.map +0 -1
  109. package/bin/src/commands/audit.js.map +0 -1
  110. package/bin/src/commands/authCommand.d.ts.map +0 -1
  111. package/bin/src/commands/authCommand.js.map +0 -1
  112. package/bin/src/commands/benchmark.d.ts.map +0 -1
  113. package/bin/src/commands/benchmark.js.map +0 -1
  114. package/bin/src/commands/brief.d.ts.map +0 -1
  115. package/bin/src/commands/brief.js.map +0 -1
  116. package/bin/src/commands/checkpoint.d.ts.map +0 -1
  117. package/bin/src/commands/checkpoint.js.map +0 -1
  118. package/bin/src/commands/configCommand.d.ts.map +0 -1
  119. package/bin/src/commands/configCommand.js.map +0 -1
  120. package/bin/src/commands/dashboard.d.ts.map +0 -1
  121. package/bin/src/commands/dashboard.js.map +0 -1
  122. package/bin/src/commands/history.d.ts.map +0 -1
  123. package/bin/src/commands/history.js.map +0 -1
  124. package/bin/src/commands/init.d.ts.map +0 -1
  125. package/bin/src/commands/init.js.map +0 -1
  126. package/bin/src/commands/login.d.ts.map +0 -1
  127. package/bin/src/commands/login.js.map +0 -1
  128. package/bin/src/commands/logout.d.ts.map +0 -1
  129. package/bin/src/commands/logout.js.map +0 -1
  130. package/bin/src/commands/mcp.d.ts.map +0 -1
  131. package/bin/src/commands/mcp.js.map +0 -1
  132. package/bin/src/commands/owners.d.ts.map +0 -1
  133. package/bin/src/commands/owners.js.map +0 -1
  134. package/bin/src/commands/plan.d.ts.map +0 -1
  135. package/bin/src/commands/plan.js.map +0 -1
  136. package/bin/src/commands/pr.d.ts.map +0 -1
  137. package/bin/src/commands/pr.js.map +0 -1
  138. package/bin/src/commands/quota.d.ts.map +0 -1
  139. package/bin/src/commands/quota.js.map +0 -1
  140. package/bin/src/commands/recommend.d.ts.map +0 -1
  141. package/bin/src/commands/recommend.js.map +0 -1
  142. package/bin/src/commands/risky.d.ts.map +0 -1
  143. package/bin/src/commands/risky.js.map +0 -1
  144. package/bin/src/commands/setup.d.ts.map +0 -1
  145. package/bin/src/commands/setup.js.map +0 -1
  146. package/bin/src/commands/signup.d.ts.map +0 -1
  147. package/bin/src/commands/signup.js.map +0 -1
  148. package/bin/src/commands/switchCommand.d.ts.map +0 -1
  149. package/bin/src/commands/switchCommand.js.map +0 -1
  150. package/bin/src/commands/undo.d.ts.map +0 -1
  151. package/bin/src/commands/undo.js.map +0 -1
  152. package/bin/src/commands/watch.d.ts.map +0 -1
  153. package/bin/src/commands/watch.js.map +0 -1
  154. package/bin/src/commands/web.d.ts.map +0 -1
  155. package/bin/src/commands/web.js.map +0 -1
  156. package/bin/src/discovery/config.d.ts.map +0 -1
  157. package/bin/src/discovery/config.js.map +0 -1
  158. package/bin/src/discovery/display.d.ts.map +0 -1
  159. package/bin/src/discovery/display.js.map +0 -1
  160. package/bin/src/discovery/messages.d.ts.map +0 -1
  161. package/bin/src/discovery/messages.js.map +0 -1
  162. package/bin/src/discovery/signals.d.ts.map +0 -1
  163. package/bin/src/discovery/signals.js.map +0 -1
  164. package/bin/src/engine/actionVerifier.d.ts.map +0 -1
  165. package/bin/src/engine/actionVerifier.js.map +0 -1
  166. package/bin/src/engine/agentEngine.d.ts.map +0 -1
  167. package/bin/src/engine/agentEngine.js.map +0 -1
  168. package/bin/src/engine/agentState.d.ts.map +0 -1
  169. package/bin/src/engine/agentState.js.map +0 -1
  170. package/bin/src/engine/browser/browserController.d.ts.map +0 -1
  171. package/bin/src/engine/browser/browserController.js.map +0 -1
  172. package/bin/src/engine/browser/index.d.ts.map +0 -1
  173. package/bin/src/engine/browser/index.js.map +0 -1
  174. package/bin/src/engine/checkpoints/checkpointManager.d.ts.map +0 -1
  175. package/bin/src/engine/checkpoints/checkpointManager.js.map +0 -1
  176. package/bin/src/engine/computer/computerController.d.ts.map +0 -1
  177. package/bin/src/engine/computer/computerController.js.map +0 -1
  178. package/bin/src/engine/computer/computerDiagnostic.d.ts.map +0 -1
  179. package/bin/src/engine/computer/computerDiagnostic.js.map +0 -1
  180. package/bin/src/engine/computer/index.d.ts.map +0 -1
  181. package/bin/src/engine/computer/index.js.map +0 -1
  182. package/bin/src/engine/computer/mockComputer.d.ts.map +0 -1
  183. package/bin/src/engine/computer/mockComputer.js.map +0 -1
  184. package/bin/src/engine/computer/operatorHud.d.ts.map +0 -1
  185. package/bin/src/engine/computer/operatorHud.js.map +0 -1
  186. package/bin/src/engine/computer/scout_driver.exe +0 -0
  187. package/bin/src/engine/git.d.ts.map +0 -1
  188. package/bin/src/engine/git.js.map +0 -1
  189. package/bin/src/engine/llm.d.ts.map +0 -1
  190. package/bin/src/engine/llm.js.map +0 -1
  191. package/bin/src/engine/planner.d.ts.map +0 -1
  192. package/bin/src/engine/planner.js.map +0 -1
  193. package/bin/src/engine/runtime/agentRuntime.d.ts.map +0 -1
  194. package/bin/src/engine/runtime/agentRuntime.js.map +0 -1
  195. package/bin/src/engine/runtime/index.d.ts.map +0 -1
  196. package/bin/src/engine/runtime/index.js.map +0 -1
  197. package/bin/src/engine/safety.d.ts.map +0 -1
  198. package/bin/src/engine/safety.js.map +0 -1
  199. package/bin/src/engine/scanners.d.ts.map +0 -1
  200. package/bin/src/engine/scanners.js.map +0 -1
  201. package/bin/src/engine/scoutAudioRecorder.cs +0 -215
  202. package/bin/src/engine/scout_audio_recorder.exe +0 -0
  203. package/bin/src/engine/subagents/subagentManager.d.ts.map +0 -1
  204. package/bin/src/engine/subagents/subagentManager.js.map +0 -1
  205. package/bin/src/engine/toolRegistry.d.ts.map +0 -1
  206. package/bin/src/engine/toolRegistry.js.map +0 -1
  207. package/bin/src/engine/verifier.d.ts.map +0 -1
  208. package/bin/src/engine/verifier.js.map +0 -1
  209. package/bin/src/engine/voiceEngine.d.ts.map +0 -1
  210. package/bin/src/engine/voiceEngine.js.map +0 -1
  211. package/bin/src/engine/web.d.ts.map +0 -1
  212. package/bin/src/engine/web.js.map +0 -1
  213. package/bin/src/engine/workspace/agentWorkspace.d.ts.map +0 -1
  214. package/bin/src/engine/workspace/agentWorkspace.js.map +0 -1
  215. package/bin/src/engine/workspace/index.d.ts.map +0 -1
  216. package/bin/src/engine/workspace/index.js.map +0 -1
  217. package/bin/src/index.d.ts.map +0 -1
  218. package/bin/src/index.js.map +0 -1
  219. package/bin/src/mcp/client.d.ts.map +0 -1
  220. package/bin/src/mcp/client.js.map +0 -1
  221. package/bin/src/mcp/cloudSync.d.ts.map +0 -1
  222. package/bin/src/mcp/cloudSync.js.map +0 -1
  223. package/bin/src/mcp/discovery.d.ts.map +0 -1
  224. package/bin/src/mcp/discovery.js.map +0 -1
  225. package/bin/src/mcp/health.d.ts.map +0 -1
  226. package/bin/src/mcp/health.js.map +0 -1
  227. package/bin/src/mcp/index.d.ts.map +0 -1
  228. package/bin/src/mcp/index.js.map +0 -1
  229. package/bin/src/mcp/manager.d.ts.map +0 -1
  230. package/bin/src/mcp/manager.js.map +0 -1
  231. package/bin/src/mcp/permissions.d.ts.map +0 -1
  232. package/bin/src/mcp/permissions.js.map +0 -1
  233. package/bin/src/mcp/persistence.d.ts.map +0 -1
  234. package/bin/src/mcp/persistence.js.map +0 -1
  235. package/bin/src/mcp/recovery.d.ts.map +0 -1
  236. package/bin/src/mcp/recovery.js.map +0 -1
  237. package/bin/src/mcp/telemetry.d.ts.map +0 -1
  238. package/bin/src/mcp/telemetry.js.map +0 -1
  239. package/bin/src/mcp/toolRouter.d.ts.map +0 -1
  240. package/bin/src/mcp/toolRouter.js.map +0 -1
  241. package/bin/src/mcp/transport.d.ts.map +0 -1
  242. package/bin/src/mcp/transport.js.map +0 -1
  243. package/bin/src/mcp/types.d.ts.map +0 -1
  244. package/bin/src/mcp/types.js.map +0 -1
  245. package/bin/src/server/server.d.ts.map +0 -1
  246. package/bin/src/server/server.js.map +0 -1
  247. package/bin/src/utils/admin.d.ts.map +0 -1
  248. package/bin/src/utils/admin.js.map +0 -1
  249. package/bin/src/utils/auditLogger.d.ts.map +0 -1
  250. package/bin/src/utils/auditLogger.js.map +0 -1
  251. package/bin/src/utils/auth.d.ts.map +0 -1
  252. package/bin/src/utils/auth.js.map +0 -1
  253. package/bin/src/utils/branding.d.ts.map +0 -1
  254. package/bin/src/utils/branding.js.map +0 -1
  255. package/bin/src/utils/claudeUI.d.ts.map +0 -1
  256. package/bin/src/utils/claudeUI.js.map +0 -1
  257. package/bin/src/utils/config.d.ts.map +0 -1
  258. package/bin/src/utils/config.js.map +0 -1
  259. package/bin/src/utils/email.d.ts.map +0 -1
  260. package/bin/src/utils/email.js.map +0 -1
  261. package/bin/src/utils/firebaseAuth.d.ts.map +0 -1
  262. package/bin/src/utils/firebaseAuth.js.map +0 -1
  263. package/bin/src/utils/holoseneAuth.d.ts.map +0 -1
  264. package/bin/src/utils/holoseneAuth.js.map +0 -1
  265. package/bin/src/utils/interruptHandler.d.ts.map +0 -1
  266. package/bin/src/utils/interruptHandler.js.map +0 -1
  267. package/bin/src/utils/language.d.ts.map +0 -1
  268. package/bin/src/utils/language.js.map +0 -1
  269. package/bin/src/utils/logger.d.ts.map +0 -1
  270. package/bin/src/utils/logger.js.map +0 -1
  271. package/bin/src/utils/markdown.d.ts.map +0 -1
  272. package/bin/src/utils/markdown.js.map +0 -1
  273. package/bin/src/utils/payment.d.ts.map +0 -1
  274. package/bin/src/utils/payment.js.map +0 -1
  275. package/bin/src/utils/pricing.d.ts.map +0 -1
  276. package/bin/src/utils/pricing.js.map +0 -1
  277. package/bin/src/utils/qrBridge.d.ts.map +0 -1
  278. package/bin/src/utils/qrBridge.js.map +0 -1
  279. package/bin/src/utils/razorpay.d.ts.map +0 -1
  280. package/bin/src/utils/razorpay.js.map +0 -1
  281. package/bin/src/utils/rules.d.ts.map +0 -1
  282. package/bin/src/utils/rules.js.map +0 -1
  283. package/bin/src/utils/session.d.ts.map +0 -1
  284. package/bin/src/utils/session.js.map +0 -1
  285. package/bin/src/utils/updateCheck.d.ts.map +0 -1
  286. package/bin/src/utils/updateCheck.js.map +0 -1
  287. package/downloads/invoice-2026-03.pdf +0 -1
  288. package/firebase.json +0 -74
  289. package/front-terrain-cli-1.0.0.tgz +0 -0
  290. package/web/ScoutFavicon.png +0 -0
  291. package/web/ScoutOGImage.png +0 -0
  292. package/web/app.js +0 -4510
  293. package/web/ft-logo.png +0 -0
  294. package/web/og-image.png +0 -0
  295. package/web/robots.txt +0 -24
  296. package/web/site.webmanifest +0 -16
  297. package/web/sitemap-tryscout.xml +0 -47
  298. package/web/sitemap.xml +0 -47
  299. package/web/styles.css +0 -3436
@@ -0,0 +1,154 @@
1
+ export interface TaskPlanStep {
2
+ id: number;
3
+ description: string;
4
+ category?: 'api' | 'browser' | 'computer' | 'file' | 'general' | undefined;
5
+ toolName?: string | undefined;
6
+ status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
7
+ dependencies?: number[] | undefined;
8
+ canParallelize?: boolean | undefined;
9
+ result?: string | undefined;
10
+ completedAt?: string | undefined;
11
+ }
12
+ export interface TaskObservation {
13
+ step: number;
14
+ timestamp: string;
15
+ tool: string;
16
+ action?: string | undefined;
17
+ target?: string | undefined;
18
+ resultSummary: string;
19
+ result?: string | undefined;
20
+ verified: boolean;
21
+ activeApplication?: string | null | undefined;
22
+ activeUrl?: string | null | undefined;
23
+ }
24
+ export interface TaskArtifact {
25
+ id: string;
26
+ filename: string;
27
+ name?: string | undefined;
28
+ path: string;
29
+ source: string;
30
+ createdAt: string;
31
+ taskId: string;
32
+ type?: string | undefined;
33
+ description?: string | undefined;
34
+ application?: string | undefined;
35
+ verified: boolean;
36
+ sizeBytes?: number | undefined;
37
+ mimeType?: string | undefined;
38
+ }
39
+ export interface TaskError {
40
+ step: number;
41
+ timestamp: string;
42
+ tool?: string | undefined;
43
+ message: string;
44
+ recoveryAttempted?: string | undefined;
45
+ recovered: boolean;
46
+ }
47
+ export interface PendingAction {
48
+ id: string;
49
+ tool: string;
50
+ args: Record<string, any>;
51
+ riskLevel: 'low' | 'medium' | 'high' | 'critical';
52
+ riskReason: string;
53
+ requestedAt: string;
54
+ }
55
+ export interface AutonomousTaskState {
56
+ task_id: string;
57
+ taskId: string;
58
+ objective: string;
59
+ goal: string;
60
+ plan: TaskPlanStep[];
61
+ current_step: number;
62
+ currentStep: number;
63
+ completed_steps: number[];
64
+ observations: TaskObservation[];
65
+ available_tools: string[];
66
+ active_application: string | null;
67
+ active_url: string | null;
68
+ active_window?: string | null | undefined;
69
+ artifacts: TaskArtifact[];
70
+ errors: TaskError[];
71
+ pending_action: PendingAction | null;
72
+ verification_status: 'pending' | 'verified' | 'failed' | null;
73
+ status: 'planning' | 'running' | 'executing' | 'waiting_approval' | 'recovering' | 'completed' | 'failed' | 'paused';
74
+ created_at: string;
75
+ updated_at: string;
76
+ completed_at?: string | undefined;
77
+ metadata?: Record<string, any> | undefined;
78
+ }
79
+ export declare class TaskStateManager {
80
+ private state;
81
+ private workspaceDir;
82
+ private tasksDir;
83
+ private stateFilePath;
84
+ constructor(taskIdOrDir?: string, objective?: string, workspaceDir?: string);
85
+ private ensureDirectories;
86
+ createTaskState(goal: string): AutonomousTaskState;
87
+ getState(): AutonomousTaskState;
88
+ getCurrentState(): AutonomousTaskState;
89
+ setObjective(objective: string): void;
90
+ setAvailableTools(tools: string[]): void;
91
+ setPlan(steps: Array<string | (Omit<TaskPlanStep, 'status'> & {
92
+ status?: TaskPlanStep['status'];
93
+ })>): void;
94
+ updatePlan(steps: TaskPlanStep[]): void;
95
+ startStep(stepNumber: number, description?: string): void;
96
+ advanceStep(stepNumber: number): void;
97
+ completeStep(stepNumber: number, resultSummary?: string): void;
98
+ updateStepStatus(stepNumber: number, status: TaskPlanStep['status']): void;
99
+ failStep(stepNumber: number, errorMessage: string): void;
100
+ addObservation(tool: string, resultSummary: string, verified?: boolean, target?: string): void;
101
+ recordObservation(obs: {
102
+ step?: number | undefined;
103
+ action?: string | undefined;
104
+ tool?: string | undefined;
105
+ result?: string | undefined;
106
+ resultSummary?: string | undefined;
107
+ verified?: boolean | undefined;
108
+ target?: string | undefined;
109
+ timestamp?: string | undefined;
110
+ }): void;
111
+ recordArtifact(artifact: {
112
+ name?: string | undefined;
113
+ filename?: string | undefined;
114
+ path: string;
115
+ type?: string | undefined;
116
+ description?: string | undefined;
117
+ application?: string | undefined;
118
+ source?: string | undefined;
119
+ verified?: boolean | undefined;
120
+ sizeBytes?: number | undefined;
121
+ mimeType?: string | undefined;
122
+ }): TaskArtifact;
123
+ getArtifacts(): TaskArtifact[];
124
+ setActiveApplication(appName: string | null): void;
125
+ setActiveUrl(url: string | null): void;
126
+ setActiveWindow(windowTitle: string | null): void;
127
+ recordError(message: string, tool?: string | undefined, recoveryAttempted?: string | undefined, recovered?: boolean): void;
128
+ setPendingAction(action: PendingAction | null): void;
129
+ setVerificationStatus(status: 'pending' | 'verified' | 'failed' | null): void;
130
+ setStatus(status: AutonomousTaskState['status']): void;
131
+ updateStatus(status: AutonomousTaskState['status']): void;
132
+ touch(): void;
133
+ saveCheckpoint(): void;
134
+ static loadTaskState(taskId: string, workspaceDir?: string): AutonomousTaskState | null;
135
+ static listSavedTasks(workspaceDir?: string): Array<{
136
+ id: string;
137
+ taskId: string;
138
+ objective: string;
139
+ goal: string;
140
+ status: string;
141
+ updatedAt: string;
142
+ }>;
143
+ resumeFromState(savedState: AutonomousTaskState): void;
144
+ listSavedTasks(): Array<{
145
+ id: string;
146
+ taskId: string;
147
+ objective: string;
148
+ goal: string;
149
+ status: string;
150
+ updatedAt: string;
151
+ }>;
152
+ loadTaskState(taskId: string): AutonomousTaskState | null;
153
+ }
154
+ //# sourceMappingURL=agentState.d.ts.map
@@ -0,0 +1,155 @@
1
+ export interface BrowserActionResult {
2
+ success: boolean;
3
+ output: string;
4
+ url?: string | undefined;
5
+ title?: string | undefined;
6
+ status?: number | undefined;
7
+ details?: Record<string, any> | undefined;
8
+ }
9
+ export interface InteractiveElement {
10
+ ref: number;
11
+ tag: string;
12
+ text: string;
13
+ type?: string | undefined;
14
+ name?: string | undefined;
15
+ id?: string | undefined;
16
+ href?: string | undefined;
17
+ placeholder?: string | undefined;
18
+ value?: string | undefined;
19
+ selector: string;
20
+ }
21
+ export interface BrowserTab {
22
+ id: string;
23
+ url: string;
24
+ title: string;
25
+ }
26
+ export interface IBrowserController {
27
+ navigate(url: string, isHistoryNav?: boolean): Promise<BrowserActionResult>;
28
+ go_back(): Promise<BrowserActionResult>;
29
+ go_forward(): Promise<BrowserActionResult>;
30
+ refresh(): Promise<BrowserActionResult>;
31
+ screenshot(): Promise<BrowserActionResult>;
32
+ click(selectorOrText: string): Promise<BrowserActionResult>;
33
+ type(selectorOrText: string, text: string): Promise<BrowserActionResult>;
34
+ select(selector: string, value: string): Promise<BrowserActionResult>;
35
+ scroll(direction: 'up' | 'down' | 'left' | 'right', amount?: number): Promise<BrowserActionResult>;
36
+ extract_content(selector?: string): Promise<BrowserActionResult>;
37
+ download_file(urlOrSelector: string, destPath?: string): Promise<BrowserActionResult>;
38
+ upload_file(selector: string, filePath: string): Promise<BrowserActionResult>;
39
+ inspect_page(): Promise<{
40
+ success: boolean;
41
+ url: string;
42
+ title: string;
43
+ elements: InteractiveElement[];
44
+ summary: string;
45
+ }>;
46
+ get_active_tab(): Promise<BrowserTab | null>;
47
+ get_tabs(): Promise<BrowserTab[]>;
48
+ switch_tab(tabId: string): Promise<BrowserActionResult>;
49
+ close_tab(tabId: string): Promise<BrowserActionResult>;
50
+ }
51
+ /**
52
+ * SemanticBrowserController: High-agency DOM-based semantic browser
53
+ * that can navigate, inspect interactive elements, extract text, and download files.
54
+ */
55
+ export declare class SemanticBrowserController implements IBrowserController {
56
+ private tabs;
57
+ private activeTabId;
58
+ private tabHistories;
59
+ private pageCache;
60
+ private workspaceDir;
61
+ constructor(workspaceDir?: string);
62
+ navigate(url: string, isHistoryNav?: boolean): Promise<BrowserActionResult>;
63
+ go_back(): Promise<BrowserActionResult>;
64
+ go_forward(): Promise<BrowserActionResult>;
65
+ refresh(): Promise<BrowserActionResult>;
66
+ screenshot(): Promise<BrowserActionResult>;
67
+ click(selectorOrText: string): Promise<BrowserActionResult>;
68
+ type(selectorOrText: string, text: string): Promise<BrowserActionResult>;
69
+ select(selector: string, value: string): Promise<BrowserActionResult>;
70
+ scroll(direction: 'up' | 'down' | 'left' | 'right', amount?: number): Promise<BrowserActionResult>;
71
+ extract_content(selector?: string): Promise<BrowserActionResult>;
72
+ download_file(urlOrSelector: string, destPath?: string): Promise<BrowserActionResult>;
73
+ upload_file(selector: string, filePath: string): Promise<BrowserActionResult>;
74
+ inspect_page(): Promise<{
75
+ success: boolean;
76
+ url: string;
77
+ title: string;
78
+ elements: InteractiveElement[];
79
+ summary: string;
80
+ }>;
81
+ get_active_tab(): Promise<BrowserTab | null>;
82
+ get_tabs(): Promise<BrowserTab[]>;
83
+ switch_tab(tabId: string): Promise<BrowserActionResult>;
84
+ close_tab(tabId: string): Promise<BrowserActionResult>;
85
+ private parseInteractiveElements;
86
+ }
87
+ /**
88
+ * MockBrowserController: Fast, deterministic in-memory browser controller
89
+ * with pre-configured simulated pages (e.g. Gmail with Acme invoice, competitor site)
90
+ * for 100% reliable offline testing and scenario validation.
91
+ */
92
+ export declare class MockBrowserController implements IBrowserController {
93
+ currentUrl: string;
94
+ currentTitle: string;
95
+ historyPast: string[];
96
+ historyFuture: string[];
97
+ mockPages: Map<string, {
98
+ title: string;
99
+ html: string;
100
+ elements: InteractiveElement[];
101
+ files?: Record<string, string>;
102
+ }>;
103
+ downloadedFiles: Array<{
104
+ filename: string;
105
+ path: string;
106
+ content: string;
107
+ }>;
108
+ actionLog: Array<{
109
+ action: string;
110
+ params: any;
111
+ }>;
112
+ private workspaceDir;
113
+ constructor(workspaceDir?: string);
114
+ private setupDefaultMockPages;
115
+ navigate(url: string, isHistoryNav?: boolean): Promise<BrowserActionResult>;
116
+ go_back(): Promise<BrowserActionResult>;
117
+ go_forward(): Promise<BrowserActionResult>;
118
+ refresh(): Promise<BrowserActionResult>;
119
+ screenshot(): Promise<BrowserActionResult>;
120
+ click(selectorOrText: string | number): Promise<BrowserActionResult>;
121
+ type(selectorOrText: string, text: string): Promise<BrowserActionResult>;
122
+ select(selector: string, value: string): Promise<BrowserActionResult>;
123
+ scroll(direction: 'up' | 'down' | 'left' | 'right', amount?: number): Promise<BrowserActionResult>;
124
+ extract_content(selector?: string): Promise<BrowserActionResult>;
125
+ download_file(urlOrSelector: string, destPath?: string): Promise<BrowserActionResult>;
126
+ downloadInvoice(url: string, destPath?: string): Promise<{
127
+ success: boolean;
128
+ filename: string;
129
+ path: string;
130
+ }>;
131
+ upload_file(selector: string, filePath: string): Promise<BrowserActionResult>;
132
+ inspect_page(): Promise<{
133
+ success: boolean;
134
+ url: string;
135
+ title: string;
136
+ elements: InteractiveElement[];
137
+ summary: string;
138
+ }>;
139
+ get_active_tab(): Promise<BrowserTab | null>;
140
+ get_tabs(): Promise<BrowserTab[]>;
141
+ switch_tab(tabId: string): Promise<BrowserActionResult>;
142
+ close_tab(tabId: string): Promise<BrowserActionResult>;
143
+ getDOM(): Promise<{
144
+ url: string;
145
+ title: string;
146
+ elements: InteractiveElement[];
147
+ }>;
148
+ clickElement(selectorOrText: string | number): Promise<BrowserActionResult>;
149
+ getDownloadedFiles(): Promise<Array<{
150
+ filename: string;
151
+ path: string;
152
+ content?: string;
153
+ }>>;
154
+ }
155
+ //# sourceMappingURL=browserController.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './browserController.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Scout Interactive Time-Machine & Auto-Checkpoints
3
+ * Manages atomic project snapshots before agent tool mutations and enables instant rollback.
4
+ */
5
+ export interface CheckpointFileSnapshot {
6
+ path: string;
7
+ content: string;
8
+ existed: boolean;
9
+ }
10
+ export interface Checkpoint {
11
+ id: string;
12
+ timestamp: string;
13
+ label: string;
14
+ gitHead?: string | undefined;
15
+ files: CheckpointFileSnapshot[];
16
+ step?: number | undefined;
17
+ taskId?: string | undefined;
18
+ }
19
+ export interface RollbackResult {
20
+ success: boolean;
21
+ checkpointId: string;
22
+ restoredFiles: string[];
23
+ removedFiles: string[];
24
+ error?: string | undefined;
25
+ }
26
+ export declare class CheckpointManager {
27
+ private static instance;
28
+ private workspaceDir;
29
+ private checkpointDir;
30
+ private indexFile;
31
+ private constructor();
32
+ static getInstance(workspaceDir?: string): CheckpointManager;
33
+ private ensureDir;
34
+ private getGitHead;
35
+ /**
36
+ * Create a checkpoint snapshot of specified files (or recently modified files)
37
+ */
38
+ createCheckpoint(label: string, targetFilePaths?: string[], step?: number, taskId?: string): Checkpoint;
39
+ /**
40
+ * List all checkpoints from index
41
+ */
42
+ listCheckpoints(): any[];
43
+ /**
44
+ * Rollback workspace to a specific checkpoint (or the most recent one if id is omitted)
45
+ */
46
+ rollback(checkpointId?: string): RollbackResult;
47
+ }
48
+ //# sourceMappingURL=checkpointManager.d.ts.map
@@ -0,0 +1,130 @@
1
+ export interface ScreenCaptureResult {
2
+ path?: string;
3
+ base64?: string;
4
+ width: number;
5
+ height: number;
6
+ activeWindow?: string;
7
+ timestamp: string;
8
+ }
9
+ export interface ComputerActionResult {
10
+ success: boolean;
11
+ output: string;
12
+ action?: string | undefined;
13
+ coordinates?: {
14
+ x: number;
15
+ y: number;
16
+ } | undefined;
17
+ button?: 'left' | 'right' | 'middle' | undefined;
18
+ from?: {
19
+ x: number;
20
+ y: number;
21
+ } | undefined;
22
+ to?: {
23
+ x: number;
24
+ y: number;
25
+ } | undefined;
26
+ error?: string | undefined;
27
+ recoverable?: boolean | undefined;
28
+ activeWindow?: string | undefined;
29
+ expectedWindow?: string | undefined;
30
+ details?: Record<string, any> | undefined;
31
+ }
32
+ export interface UIInspectionResult {
33
+ activeWindow: string;
34
+ windows: string[];
35
+ focusedElement?: string;
36
+ }
37
+ export interface IComputerController {
38
+ screenshot(): Promise<ScreenCaptureResult>;
39
+ click(x: number, y: number, options?: {
40
+ button?: 'left' | 'right' | 'middle';
41
+ clicks?: number;
42
+ }): Promise<ComputerActionResult>;
43
+ leftClick(x: number, y: number): Promise<ComputerActionResult>;
44
+ rightClick(x: number, y: number): Promise<ComputerActionResult>;
45
+ doubleClick(x: number, y: number): Promise<ComputerActionResult>;
46
+ mouseDown(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
47
+ mouseUp(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
48
+ type(text: string): Promise<ComputerActionResult>;
49
+ keyPress(key: string): Promise<ComputerActionResult>;
50
+ hotkey(keys: string[]): Promise<ComputerActionResult>;
51
+ scroll(deltaX: number, deltaY: number): Promise<ComputerActionResult>;
52
+ mouseMove(x: number, y: number): Promise<ComputerActionResult>;
53
+ move(x: number, y: number): Promise<ComputerActionResult>;
54
+ drag(fromX: number, fromY: number, toX: number, toY: number): Promise<ComputerActionResult>;
55
+ wait(ms: number): Promise<void>;
56
+ openApplication(appName: string, args?: string[]): Promise<ComputerActionResult>;
57
+ closeApplication(appName: string): Promise<ComputerActionResult>;
58
+ switchWindow(windowTitleOrApp: string): Promise<ComputerActionResult>;
59
+ getWindowBounds?(windowTitleOrApp: string): Promise<{
60
+ x: number;
61
+ y: number;
62
+ width: number;
63
+ height: number;
64
+ } | null>;
65
+ inspectUI(): Promise<UIInspectionResult>;
66
+ getMousePosition(): Promise<{
67
+ x: number;
68
+ y: number;
69
+ }>;
70
+ runDiagnostic(): Promise<ComputerActionResult>;
71
+ setExpectedApplication?(app: string | null): void;
72
+ getExpectedApplication?(): string | null;
73
+ }
74
+ export declare class SystemComputerController implements IComputerController {
75
+ private workspaceDir;
76
+ private screenshotsDir;
77
+ private expectedApplication;
78
+ private activeWindow;
79
+ private driverExePath;
80
+ private driverInitAttempted;
81
+ constructor(workspaceDir?: string);
82
+ setExpectedApplication(app: string | null): void;
83
+ getExpectedApplication(): string | null;
84
+ /**
85
+ * Resolves or builds the native scout_driver.exe for Windows.
86
+ */
87
+ private ensureDriver;
88
+ /**
89
+ * Runs an action using native driver or fallback.
90
+ */
91
+ private runDriverAction;
92
+ /**
93
+ * Reliable PowerShell fallback with thread input desktop attachment
94
+ */
95
+ private runPowerShellFallback;
96
+ screenshot(): Promise<ScreenCaptureResult>;
97
+ click(x: number, y: number, options?: {
98
+ button?: 'left' | 'right' | 'middle';
99
+ clicks?: number;
100
+ }): Promise<ComputerActionResult>;
101
+ leftClick(x: number, y: number): Promise<ComputerActionResult>;
102
+ rightClick(x: number, y: number): Promise<ComputerActionResult>;
103
+ doubleClick(x: number, y: number): Promise<ComputerActionResult>;
104
+ mouseDown(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
105
+ mouseUp(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
106
+ mouseMove(x: number, y: number): Promise<ComputerActionResult>;
107
+ move(x: number, y: number): Promise<ComputerActionResult>;
108
+ drag(startX: number, startY: number, endX: number, endY: number): Promise<ComputerActionResult>;
109
+ scroll(deltaX: number, deltaY: number): Promise<ComputerActionResult>;
110
+ getMousePosition(): Promise<{
111
+ x: number;
112
+ y: number;
113
+ }>;
114
+ runDiagnostic(): Promise<ComputerActionResult>;
115
+ type(text: string): Promise<ComputerActionResult>;
116
+ keyPress(key: string): Promise<ComputerActionResult>;
117
+ hotkey(keys: string[]): Promise<ComputerActionResult>;
118
+ wait(ms: number): Promise<void>;
119
+ openApplication(appName: string, args?: string[]): Promise<ComputerActionResult>;
120
+ closeApplication(appName: string): Promise<ComputerActionResult>;
121
+ switchWindow(windowTitleOrApp: string): Promise<ComputerActionResult>;
122
+ getWindowBounds(windowTitleOrApp: string): Promise<{
123
+ x: number;
124
+ y: number;
125
+ width: number;
126
+ height: number;
127
+ } | null>;
128
+ inspectUI(): Promise<UIInspectionResult>;
129
+ }
130
+ //# sourceMappingURL=computerController.d.ts.map
@@ -132,6 +132,14 @@ export class SystemComputerController {
132
132
  };
133
133
  }
134
134
  }
135
+ if (process.platform !== 'win32') {
136
+ return {
137
+ success: false,
138
+ output: 'Desktop GUI automation is currently supported on Windows. macOS and Linux native driver support is coming soon.',
139
+ error: 'unsupported_platform',
140
+ recoverable: false,
141
+ };
142
+ }
135
143
  // PowerShell fallback with input desktop attachment
136
144
  return await this.runPowerShellFallback(action, strArgs);
137
145
  }
@@ -0,0 +1,31 @@
1
+ import type { IComputerController } from './computerController.js';
2
+ export interface DiagnosticReport {
3
+ timestamp: string;
4
+ platform: string;
5
+ screen: {
6
+ width: number;
7
+ height: number;
8
+ activeWindow?: string | undefined;
9
+ screenshotPath?: string | undefined;
10
+ };
11
+ mouse: {
12
+ initialPosition: {
13
+ x: number;
14
+ y: number;
15
+ };
16
+ testTarget: {
17
+ x: number;
18
+ y: number;
19
+ };
20
+ moveSuccess: boolean;
21
+ actualPositionAfterMove: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ clickSuccess: boolean;
26
+ };
27
+ overallSuccess: boolean;
28
+ errors: string[];
29
+ }
30
+ export declare function runComputerDiagnostic(controller?: IComputerController): Promise<DiagnosticReport>;
31
+ //# sourceMappingURL=computerDiagnostic.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './computerController.js';
2
+ export * from './mockComputer.js';
3
+ export * from './computerDiagnostic.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,62 @@
1
+ import type { IComputerController, ScreenCaptureResult, ComputerActionResult, UIInspectionResult } from './computerController.js';
2
+ export declare class MockComputerController implements IComputerController {
3
+ activeWindow: string;
4
+ expectedApplication: string | null;
5
+ openWindows: string[];
6
+ actionLog: Array<{
7
+ action: string;
8
+ args: any;
9
+ timestamp: string;
10
+ }>;
11
+ screenWidth: number;
12
+ screenHeight: number;
13
+ currentX: number;
14
+ currentY: number;
15
+ shouldFailNext: boolean;
16
+ failMessage: string;
17
+ constructor(initialWindow?: string);
18
+ setExpectedApplication(app: string | null): void;
19
+ getExpectedApplication(): string | null;
20
+ setNextFailure(_action?: string, message?: string): void;
21
+ private log;
22
+ screenshot(): Promise<ScreenCaptureResult>;
23
+ click(x: number, y: number, options?: {
24
+ button?: 'left' | 'right' | 'middle';
25
+ clicks?: number;
26
+ }): Promise<ComputerActionResult>;
27
+ leftClick(x: number, y: number): Promise<ComputerActionResult>;
28
+ rightClick(x: number, y: number): Promise<ComputerActionResult>;
29
+ doubleClick(x: number, y: number): Promise<ComputerActionResult>;
30
+ mouseDown(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
31
+ mouseUp(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
32
+ type(text: string): Promise<ComputerActionResult>;
33
+ keyPress(key: string): Promise<ComputerActionResult>;
34
+ hotkey(keys: string[]): Promise<ComputerActionResult>;
35
+ scroll(deltaX: number, deltaY: number): Promise<ComputerActionResult>;
36
+ mouseMove(x: number, y: number): Promise<ComputerActionResult>;
37
+ move(x: number, y: number): Promise<ComputerActionResult>;
38
+ drag(fromX: number, fromY: number, toX: number, toY: number): Promise<ComputerActionResult>;
39
+ wait(ms: number): Promise<void>;
40
+ getMousePosition(): Promise<{
41
+ x: number;
42
+ y: number;
43
+ }>;
44
+ runDiagnostic(): Promise<ComputerActionResult>;
45
+ openApplication(appName: string, args?: string[]): Promise<ComputerActionResult>;
46
+ closeApplication(appName: string): Promise<ComputerActionResult>;
47
+ switchWindow(windowTitleOrApp: string): Promise<ComputerActionResult>;
48
+ getWindowBounds(windowTitleOrApp: string): Promise<{
49
+ x: number;
50
+ y: number;
51
+ width: number;
52
+ height: number;
53
+ } | null>;
54
+ inspectUI(): Promise<UIInspectionResult>;
55
+ getActionLog(): Array<{
56
+ action: string;
57
+ args: any;
58
+ timestamp: string;
59
+ }>;
60
+ clearLog(): void;
61
+ }
62
+ //# sourceMappingURL=mockComputer.d.ts.map
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Scout Visual Operator HUD
3
+ * High-tech visual feedback spotlight, crosshair, and aura overlay for Windows Desktop.
4
+ * Provides transparent, click-through visual ripples when Scout clicks, types, or inspects the screen.
5
+ */
6
+ export declare class OperatorHud {
7
+ private static instance;
8
+ private hudEnabled;
9
+ private auraProcess;
10
+ private scriptDir;
11
+ private constructor();
12
+ static getInstance(): OperatorHud;
13
+ setEnabled(enabled: boolean): void;
14
+ isEnabled(): boolean;
15
+ /**
16
+ * Start the continuous high-tech neon aura border around the screen
17
+ */
18
+ startAura(statusText?: string): void;
19
+ /**
20
+ * Stop the screen border aura
21
+ */
22
+ stopAura(): void;
23
+ showDesktopAura(statusText?: string): void;
24
+ hideDesktopAura(): void;
25
+ /**
26
+ * Show a futuristic ripple/beacon crosshair at click coordinates (x, y)
27
+ */
28
+ showClickBeacon(x: number, y: number, label?: string): void;
29
+ }
30
+ //# sourceMappingURL=operatorHud.d.ts.map
@@ -0,0 +1,20 @@
1
+ export interface OwnerInfo {
2
+ author: string;
3
+ commits: number;
4
+ percentage: number;
5
+ lastTouched: string;
6
+ }
7
+ export declare function getFileOwners(filePath: string): Promise<OwnerInfo[]>;
8
+ export interface PrOptions {
9
+ branchPrefix: 'fix' | 'create' | 'agent';
10
+ title: string;
11
+ affectedFiles: string[];
12
+ commitMessage: string;
13
+ }
14
+ export declare function createPullRequest(options: PrOptions): Promise<{
15
+ branchName: string;
16
+ prUrl?: string | undefined;
17
+ ghCreated?: boolean | undefined;
18
+ message: string;
19
+ }>;
20
+ //# sourceMappingURL=git.d.ts.map