ft-scout 9.4.9 → 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 (302) 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/agentEngine.js +12 -1
  34. package/bin/src/engine/agentState.d.ts +154 -0
  35. package/bin/src/engine/browser/browserController.d.ts +155 -0
  36. package/bin/src/engine/browser/index.d.ts +2 -0
  37. package/bin/src/engine/checkpoints/checkpointManager.d.ts +48 -0
  38. package/bin/src/engine/computer/computerController.d.ts +130 -0
  39. package/bin/src/engine/computer/computerController.js +34 -15
  40. package/bin/src/engine/computer/computerDiagnostic.d.ts +31 -0
  41. package/bin/src/engine/computer/index.d.ts +4 -0
  42. package/bin/src/engine/computer/mockComputer.d.ts +62 -0
  43. package/bin/src/engine/computer/operatorHud.d.ts +30 -0
  44. package/bin/src/engine/computer/scoutDriver.cs +85 -20
  45. package/bin/src/engine/git.d.ts +20 -0
  46. package/bin/src/engine/llm.d.ts +92 -0
  47. package/bin/src/engine/llm.js +298 -273
  48. package/bin/src/engine/planner.d.ts +21 -0
  49. package/bin/src/engine/planner.js +12 -4
  50. package/bin/src/engine/runtime/agentRuntime.d.ts +111 -0
  51. package/bin/src/engine/runtime/agentRuntime.js +12 -1
  52. package/bin/src/engine/runtime/index.d.ts +2 -0
  53. package/bin/src/engine/safety.d.ts +55 -0
  54. package/bin/src/engine/scanners.d.ts +2 -0
  55. package/bin/src/engine/subagents/subagentManager.d.ts +29 -0
  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 +4 -4
  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/auth.js +13 -0
  84. package/bin/src/utils/branding.d.ts +2 -0
  85. package/bin/src/utils/branding.js +1 -1
  86. package/bin/src/utils/claudeUI.d.ts +101 -0
  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/qrBridge.d.ts +33 -0
  98. package/bin/src/utils/qrBridge.js +1 -1
  99. package/bin/src/utils/razorpay.d.ts +48 -0
  100. package/bin/src/utils/rules.d.ts +24 -0
  101. package/bin/src/utils/session.d.ts +32 -0
  102. package/bin/src/utils/updateCheck.d.ts +3 -0
  103. package/package.json +14 -4
  104. package/.firebase/hosting.d2Vi.cache +0 -16
  105. package/.firebaserc +0 -14
  106. package/.mcp-config.json +0 -19
  107. package/.mft-mcp-config.json +0 -29
  108. package/.scoutrules +0 -13
  109. package/bin/src/commands/agent.d.ts.map +0 -1
  110. package/bin/src/commands/agent.js.map +0 -1
  111. package/bin/src/commands/audit.d.ts.map +0 -1
  112. package/bin/src/commands/audit.js.map +0 -1
  113. package/bin/src/commands/authCommand.d.ts.map +0 -1
  114. package/bin/src/commands/authCommand.js.map +0 -1
  115. package/bin/src/commands/benchmark.d.ts.map +0 -1
  116. package/bin/src/commands/benchmark.js.map +0 -1
  117. package/bin/src/commands/brief.d.ts.map +0 -1
  118. package/bin/src/commands/brief.js.map +0 -1
  119. package/bin/src/commands/checkpoint.d.ts.map +0 -1
  120. package/bin/src/commands/checkpoint.js.map +0 -1
  121. package/bin/src/commands/configCommand.d.ts.map +0 -1
  122. package/bin/src/commands/configCommand.js.map +0 -1
  123. package/bin/src/commands/dashboard.d.ts.map +0 -1
  124. package/bin/src/commands/dashboard.js.map +0 -1
  125. package/bin/src/commands/history.d.ts.map +0 -1
  126. package/bin/src/commands/history.js.map +0 -1
  127. package/bin/src/commands/init.d.ts.map +0 -1
  128. package/bin/src/commands/init.js.map +0 -1
  129. package/bin/src/commands/login.d.ts.map +0 -1
  130. package/bin/src/commands/login.js.map +0 -1
  131. package/bin/src/commands/logout.d.ts.map +0 -1
  132. package/bin/src/commands/logout.js.map +0 -1
  133. package/bin/src/commands/mcp.d.ts.map +0 -1
  134. package/bin/src/commands/mcp.js.map +0 -1
  135. package/bin/src/commands/owners.d.ts.map +0 -1
  136. package/bin/src/commands/owners.js.map +0 -1
  137. package/bin/src/commands/plan.d.ts.map +0 -1
  138. package/bin/src/commands/plan.js.map +0 -1
  139. package/bin/src/commands/pr.d.ts.map +0 -1
  140. package/bin/src/commands/pr.js.map +0 -1
  141. package/bin/src/commands/quota.d.ts.map +0 -1
  142. package/bin/src/commands/quota.js.map +0 -1
  143. package/bin/src/commands/recommend.d.ts.map +0 -1
  144. package/bin/src/commands/recommend.js.map +0 -1
  145. package/bin/src/commands/risky.d.ts.map +0 -1
  146. package/bin/src/commands/risky.js.map +0 -1
  147. package/bin/src/commands/setup.d.ts.map +0 -1
  148. package/bin/src/commands/setup.js.map +0 -1
  149. package/bin/src/commands/signup.d.ts.map +0 -1
  150. package/bin/src/commands/signup.js.map +0 -1
  151. package/bin/src/commands/switchCommand.d.ts.map +0 -1
  152. package/bin/src/commands/switchCommand.js.map +0 -1
  153. package/bin/src/commands/undo.d.ts.map +0 -1
  154. package/bin/src/commands/undo.js.map +0 -1
  155. package/bin/src/commands/watch.d.ts.map +0 -1
  156. package/bin/src/commands/watch.js.map +0 -1
  157. package/bin/src/commands/web.d.ts.map +0 -1
  158. package/bin/src/commands/web.js.map +0 -1
  159. package/bin/src/discovery/config.d.ts.map +0 -1
  160. package/bin/src/discovery/config.js.map +0 -1
  161. package/bin/src/discovery/display.d.ts.map +0 -1
  162. package/bin/src/discovery/display.js.map +0 -1
  163. package/bin/src/discovery/messages.d.ts.map +0 -1
  164. package/bin/src/discovery/messages.js.map +0 -1
  165. package/bin/src/discovery/signals.d.ts.map +0 -1
  166. package/bin/src/discovery/signals.js.map +0 -1
  167. package/bin/src/engine/actionVerifier.d.ts.map +0 -1
  168. package/bin/src/engine/actionVerifier.js.map +0 -1
  169. package/bin/src/engine/agentEngine.d.ts.map +0 -1
  170. package/bin/src/engine/agentEngine.js.map +0 -1
  171. package/bin/src/engine/agentState.d.ts.map +0 -1
  172. package/bin/src/engine/agentState.js.map +0 -1
  173. package/bin/src/engine/browser/browserController.d.ts.map +0 -1
  174. package/bin/src/engine/browser/browserController.js.map +0 -1
  175. package/bin/src/engine/browser/index.d.ts.map +0 -1
  176. package/bin/src/engine/browser/index.js.map +0 -1
  177. package/bin/src/engine/checkpoints/checkpointManager.d.ts.map +0 -1
  178. package/bin/src/engine/checkpoints/checkpointManager.js.map +0 -1
  179. package/bin/src/engine/computer/computerController.d.ts.map +0 -1
  180. package/bin/src/engine/computer/computerController.js.map +0 -1
  181. package/bin/src/engine/computer/computerDiagnostic.d.ts.map +0 -1
  182. package/bin/src/engine/computer/computerDiagnostic.js.map +0 -1
  183. package/bin/src/engine/computer/index.d.ts.map +0 -1
  184. package/bin/src/engine/computer/index.js.map +0 -1
  185. package/bin/src/engine/computer/mockComputer.d.ts.map +0 -1
  186. package/bin/src/engine/computer/mockComputer.js.map +0 -1
  187. package/bin/src/engine/computer/operatorHud.d.ts.map +0 -1
  188. package/bin/src/engine/computer/operatorHud.js.map +0 -1
  189. package/bin/src/engine/computer/scout_driver.exe +0 -0
  190. package/bin/src/engine/git.d.ts.map +0 -1
  191. package/bin/src/engine/git.js.map +0 -1
  192. package/bin/src/engine/llm.d.ts.map +0 -1
  193. package/bin/src/engine/llm.js.map +0 -1
  194. package/bin/src/engine/planner.d.ts.map +0 -1
  195. package/bin/src/engine/planner.js.map +0 -1
  196. package/bin/src/engine/runtime/agentRuntime.d.ts.map +0 -1
  197. package/bin/src/engine/runtime/agentRuntime.js.map +0 -1
  198. package/bin/src/engine/runtime/index.d.ts.map +0 -1
  199. package/bin/src/engine/runtime/index.js.map +0 -1
  200. package/bin/src/engine/safety.d.ts.map +0 -1
  201. package/bin/src/engine/safety.js.map +0 -1
  202. package/bin/src/engine/scanners.d.ts.map +0 -1
  203. package/bin/src/engine/scanners.js.map +0 -1
  204. package/bin/src/engine/scoutAudioRecorder.cs +0 -215
  205. package/bin/src/engine/scout_audio_recorder.exe +0 -0
  206. package/bin/src/engine/subagents/subagentManager.d.ts.map +0 -1
  207. package/bin/src/engine/subagents/subagentManager.js.map +0 -1
  208. package/bin/src/engine/toolRegistry.d.ts.map +0 -1
  209. package/bin/src/engine/toolRegistry.js.map +0 -1
  210. package/bin/src/engine/verifier.d.ts.map +0 -1
  211. package/bin/src/engine/verifier.js.map +0 -1
  212. package/bin/src/engine/voiceEngine.d.ts.map +0 -1
  213. package/bin/src/engine/voiceEngine.js.map +0 -1
  214. package/bin/src/engine/web.d.ts.map +0 -1
  215. package/bin/src/engine/web.js.map +0 -1
  216. package/bin/src/engine/workspace/agentWorkspace.d.ts.map +0 -1
  217. package/bin/src/engine/workspace/agentWorkspace.js.map +0 -1
  218. package/bin/src/engine/workspace/index.d.ts.map +0 -1
  219. package/bin/src/engine/workspace/index.js.map +0 -1
  220. package/bin/src/index.d.ts.map +0 -1
  221. package/bin/src/index.js.map +0 -1
  222. package/bin/src/mcp/client.d.ts.map +0 -1
  223. package/bin/src/mcp/client.js.map +0 -1
  224. package/bin/src/mcp/cloudSync.d.ts.map +0 -1
  225. package/bin/src/mcp/cloudSync.js.map +0 -1
  226. package/bin/src/mcp/discovery.d.ts.map +0 -1
  227. package/bin/src/mcp/discovery.js.map +0 -1
  228. package/bin/src/mcp/health.d.ts.map +0 -1
  229. package/bin/src/mcp/health.js.map +0 -1
  230. package/bin/src/mcp/index.d.ts.map +0 -1
  231. package/bin/src/mcp/index.js.map +0 -1
  232. package/bin/src/mcp/manager.d.ts.map +0 -1
  233. package/bin/src/mcp/manager.js.map +0 -1
  234. package/bin/src/mcp/permissions.d.ts.map +0 -1
  235. package/bin/src/mcp/permissions.js.map +0 -1
  236. package/bin/src/mcp/persistence.d.ts.map +0 -1
  237. package/bin/src/mcp/persistence.js.map +0 -1
  238. package/bin/src/mcp/recovery.d.ts.map +0 -1
  239. package/bin/src/mcp/recovery.js.map +0 -1
  240. package/bin/src/mcp/telemetry.d.ts.map +0 -1
  241. package/bin/src/mcp/telemetry.js.map +0 -1
  242. package/bin/src/mcp/toolRouter.d.ts.map +0 -1
  243. package/bin/src/mcp/toolRouter.js.map +0 -1
  244. package/bin/src/mcp/transport.d.ts.map +0 -1
  245. package/bin/src/mcp/transport.js.map +0 -1
  246. package/bin/src/mcp/types.d.ts.map +0 -1
  247. package/bin/src/mcp/types.js.map +0 -1
  248. package/bin/src/server/server.d.ts.map +0 -1
  249. package/bin/src/server/server.js.map +0 -1
  250. package/bin/src/utils/admin.d.ts.map +0 -1
  251. package/bin/src/utils/admin.js.map +0 -1
  252. package/bin/src/utils/auditLogger.d.ts.map +0 -1
  253. package/bin/src/utils/auditLogger.js.map +0 -1
  254. package/bin/src/utils/auth.d.ts.map +0 -1
  255. package/bin/src/utils/auth.js.map +0 -1
  256. package/bin/src/utils/branding.d.ts.map +0 -1
  257. package/bin/src/utils/branding.js.map +0 -1
  258. package/bin/src/utils/claudeUI.d.ts.map +0 -1
  259. package/bin/src/utils/claudeUI.js.map +0 -1
  260. package/bin/src/utils/config.d.ts.map +0 -1
  261. package/bin/src/utils/config.js.map +0 -1
  262. package/bin/src/utils/email.d.ts.map +0 -1
  263. package/bin/src/utils/email.js.map +0 -1
  264. package/bin/src/utils/firebaseAuth.d.ts.map +0 -1
  265. package/bin/src/utils/firebaseAuth.js.map +0 -1
  266. package/bin/src/utils/holoseneAuth.d.ts.map +0 -1
  267. package/bin/src/utils/holoseneAuth.js.map +0 -1
  268. package/bin/src/utils/interruptHandler.d.ts.map +0 -1
  269. package/bin/src/utils/interruptHandler.js.map +0 -1
  270. package/bin/src/utils/language.d.ts.map +0 -1
  271. package/bin/src/utils/language.js.map +0 -1
  272. package/bin/src/utils/logger.d.ts.map +0 -1
  273. package/bin/src/utils/logger.js.map +0 -1
  274. package/bin/src/utils/markdown.d.ts.map +0 -1
  275. package/bin/src/utils/markdown.js.map +0 -1
  276. package/bin/src/utils/payment.d.ts.map +0 -1
  277. package/bin/src/utils/payment.js.map +0 -1
  278. package/bin/src/utils/pricing.d.ts.map +0 -1
  279. package/bin/src/utils/pricing.js.map +0 -1
  280. package/bin/src/utils/qrBridge.d.ts.map +0 -1
  281. package/bin/src/utils/qrBridge.js.map +0 -1
  282. package/bin/src/utils/razorpay.d.ts.map +0 -1
  283. package/bin/src/utils/razorpay.js.map +0 -1
  284. package/bin/src/utils/rules.d.ts.map +0 -1
  285. package/bin/src/utils/rules.js.map +0 -1
  286. package/bin/src/utils/session.d.ts.map +0 -1
  287. package/bin/src/utils/session.js.map +0 -1
  288. package/bin/src/utils/updateCheck.d.ts.map +0 -1
  289. package/bin/src/utils/updateCheck.js.map +0 -1
  290. package/downloads/invoice-2026-03.pdf +0 -1
  291. package/firebase.json +0 -74
  292. package/front-terrain-cli-1.0.0.tgz +0 -0
  293. package/web/ScoutFavicon.png +0 -0
  294. package/web/ScoutOGImage.png +0 -0
  295. package/web/app.js +0 -4510
  296. package/web/ft-logo.png +0 -0
  297. package/web/og-image.png +0 -0
  298. package/web/robots.txt +0 -24
  299. package/web/site.webmanifest +0 -16
  300. package/web/sitemap-tryscout.xml +0 -47
  301. package/web/sitemap.xml +0 -47
  302. package/web/styles.css +0 -3436
@@ -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
@@ -152,6 +152,9 @@ namespace Scout.ComputerControl
152
152
  out PROCESS_INFORMATION lpProcessInformation
153
153
  );
154
154
 
155
+ [DllImport("kernel32.dll", SetLastError = true)]
156
+ public static extern bool CloseHandle(IntPtr hObject);
157
+
155
158
  public const uint MOUSEEVENTF_MOVE = 0x0001;
156
159
  public const uint MOUSEEVENTF_LEFTDOWN = 0x0002;
157
160
  public const uint MOUSEEVENTF_LEFTUP = 0x0004;
@@ -543,17 +546,22 @@ namespace Scout.ComputerControl
543
546
  }
544
547
 
545
548
  public static bool LaunchApp(string appName, out int pid)
549
+ {
550
+ return LaunchApp(appName, null, out pid);
551
+ }
552
+
553
+ public static bool LaunchApp(string appName, string appArgs, out int pid)
546
554
  {
547
555
  pid = 0;
556
+ if (string.IsNullOrEmpty(appName)) return false;
557
+
548
558
  try
549
559
  {
550
- STARTUPINFO si = new STARTUPINFO();
551
- si.cb = Marshal.SizeOf(si);
552
- si.lpDesktop = @"WinSta0\Default";
553
- PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
560
+ string targetApp = appName.Trim();
561
+ string targetArgs = appArgs ?? "";
554
562
 
555
- string cmd = appName;
556
- if (appName.IndexOf("blender", StringComparison.OrdinalIgnoreCase) >= 0)
563
+ // Blender candidate discovery if app is blender
564
+ if (targetApp.IndexOf("blender", StringComparison.OrdinalIgnoreCase) >= 0)
557
565
  {
558
566
  string[] blenderCandidates = new string[]
559
567
  {
@@ -567,32 +575,82 @@ namespace Scout.ComputerControl
567
575
  {
568
576
  if (File.Exists(bPath))
569
577
  {
570
- cmd = bPath;
578
+ targetApp = bPath;
571
579
  break;
572
580
  }
573
581
  }
574
582
  }
575
- else if (!cmd.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
583
+
584
+ // 1. Primary: Use Windows Shell (ShellExecuteEx via Process.Start with UseShellExecute = true).
585
+ // This correctly activates modern Windows Store / UWP apps (like Windows 11 Notepad, Calculator, Terminal),
586
+ // App Execution Aliases, and Win32 applications completely detached from this console process so they persist.
587
+ try
576
588
  {
577
- cmd += ".exe";
589
+ ProcessStartInfo psi = new ProcessStartInfo();
590
+ psi.FileName = targetApp;
591
+ if (!string.IsNullOrEmpty(targetArgs))
592
+ {
593
+ psi.Arguments = targetArgs;
594
+ }
595
+ psi.UseShellExecute = true;
596
+ Process p = Process.Start(psi);
597
+ if (p != null)
598
+ {
599
+ try { pid = p.Id; } catch { }
600
+ return true;
601
+ }
578
602
  }
603
+ catch { }
579
604
 
580
- bool ok = CreateProcess(null, cmd, IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi);
581
- if (ok)
605
+ // 1b. If targetApp doesn't end with .exe, try targetApp + ".exe" via ShellExecute
606
+ if (!targetApp.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
582
607
  {
583
- pid = pi.dwProcessId;
584
- return true;
608
+ try
609
+ {
610
+ ProcessStartInfo psi = new ProcessStartInfo();
611
+ psi.FileName = targetApp + ".exe";
612
+ if (!string.IsNullOrEmpty(targetArgs))
613
+ {
614
+ psi.Arguments = targetArgs;
615
+ }
616
+ psi.UseShellExecute = true;
617
+ Process p = Process.Start(psi);
618
+ if (p != null)
619
+ {
620
+ try { pid = p.Id; } catch { }
621
+ return true;
622
+ }
623
+ }
624
+ catch { }
585
625
  }
586
626
 
587
- // Fallback to Process.Start with UseShellExecute
627
+ // 2. Fallback: CreateProcess with DETACHED_PROCESS and CREATE_NEW_PROCESS_GROUP
588
628
  try
589
629
  {
590
- ProcessStartInfo psi = new ProcessStartInfo(appName);
591
- psi.UseShellExecute = true;
592
- Process p = Process.Start(psi);
593
- if (p != null)
630
+ STARTUPINFO si = new STARTUPINFO();
631
+ si.cb = Marshal.SizeOf(si);
632
+ si.dwFlags = 1; // STARTF_USESHOWWINDOW
633
+ si.wShowWindow = 1; // SW_SHOWNORMAL
634
+ PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
635
+
636
+ string cmd = targetApp;
637
+ if (!cmd.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) && !File.Exists(cmd))
594
638
  {
595
- pid = p.Id;
639
+ cmd += ".exe";
640
+ }
641
+ if (!string.IsNullOrEmpty(targetArgs))
642
+ {
643
+ cmd = "\"" + cmd + "\" " + targetArgs;
644
+ }
645
+
646
+ const uint DETACHED_PROCESS = 0x00000008;
647
+ const uint CREATE_NEW_PROCESS_GROUP = 0x00000200;
648
+ bool ok = CreateProcess(null, cmd, IntPtr.Zero, IntPtr.Zero, false, DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP, IntPtr.Zero, null, ref si, out pi);
649
+ if (ok)
650
+ {
651
+ pid = pi.dwProcessId;
652
+ if (pi.hProcess != IntPtr.Zero) CloseHandle(pi.hProcess);
653
+ if (pi.hThread != IntPtr.Zero) CloseHandle(pi.hThread);
596
654
  return true;
597
655
  }
598
656
  }
@@ -1169,8 +1227,15 @@ namespace Scout.ComputerControl
1169
1227
  if (act == "launch" || act == "open_app")
1170
1228
  {
1171
1229
  string app = args.Length > 0 ? args[0] : "";
1230
+ string appArgs = "";
1231
+ if (args.Length > 1)
1232
+ {
1233
+ string[] remArgs = new string[args.Length - 1];
1234
+ Array.Copy(args, 1, remArgs, 0, remArgs.Length);
1235
+ appArgs = string.Join(" ", remArgs);
1236
+ }
1172
1237
  int pid;
1173
- bool ok = LaunchApp(app, out pid);
1238
+ bool ok = LaunchApp(app, appArgs, out pid);
1174
1239
  return string.Format("{{\"success\":{0},\"action\":\"launch\",\"app\":{1},\"pid\":{2}}}",
1175
1240
  ok ? "true" : "false", JsonEscape(app), pid);
1176
1241
  }
@@ -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
@@ -0,0 +1,92 @@
1
+ import OpenAI from 'openai';
2
+ export declare function getClientForModel(modelName: string): OpenAI;
3
+ export declare const openai: OpenAI;
4
+ export declare const AGENT_MODEL_FALLBACKS: string[];
5
+ export declare const INIT_MODEL_FALLBACKS: string[];
6
+ export declare const WEB_MODEL_FALLBACKS: string[];
7
+ export declare const MODEL_FALLBACKS: string[];
8
+ export declare const NVIDIA_INCEPTION_MODELS: string[];
9
+ export declare function showInceptionBadgeIfNeeded(tier?: string): void;
10
+ export declare function getTierPrioritizedFallbackChain(baseChain: string[]): string[];
11
+ export declare function getActiveModelInfo(): {
12
+ primaryModel: string | undefined;
13
+ currentActiveModel: string;
14
+ fallbackChain: string[];
15
+ lastFallbackInfo: {
16
+ previousModel: string;
17
+ fallbackModel: string;
18
+ reason: string;
19
+ timestamp: Date;
20
+ } | null;
21
+ };
22
+ export declare function getModelDecommissionInfo(model: string): {
23
+ decommissioned: boolean;
24
+ decommissionDate?: string;
25
+ };
26
+ export declare function isQuotaExceededError(err: any): boolean;
27
+ export declare function sanitizeMessage(msg: any): any;
28
+ export declare function sanitizeMessages(messages: any[]): any[];
29
+ export declare function callOpenAIWithRetry<T>(fn: (model: string) => Promise<T>, maxRetries?: number, initialDelayMs?: number, customFallbackChain?: string[]): Promise<T>;
30
+ export declare function generateRepoSummary(projectName: string, filesList: string[], packageJsonContent: string, language?: string, native?: boolean): Promise<{
31
+ summary: string;
32
+ entryPoint: string;
33
+ readOrder: string[];
34
+ painPoints: string[];
35
+ architectureDiagram?: string;
36
+ }>;
37
+ export declare function explainCodebaseRisks(file: string, lineRanges: string[], commitMsgs: string[], language?: string, native?: boolean): Promise<string>;
38
+ export declare function askRepoQuestion(question: string, projectName: string, filesList: string[], manifestContent: string, chatHistory?: Array<{
39
+ role: 'user' | 'assistant';
40
+ content: string;
41
+ }>, options?: {
42
+ useWeb?: boolean | undefined;
43
+ webContext?: string | undefined;
44
+ language?: string | undefined;
45
+ native?: boolean | undefined;
46
+ }): Promise<string>;
47
+ export declare function generateCodeScanReport(projectName: string, filesList: string[], codeSample: string, language?: string, native?: boolean): Promise<Array<{
48
+ id: number;
49
+ title: string;
50
+ file: string;
51
+ severity: 'high' | 'medium' | 'low';
52
+ description: string;
53
+ }>>;
54
+ export declare function generateCodeRecommendations(projectName: string, filesList: string[], codeSample: string, language?: string, native?: boolean): Promise<string>;
55
+ export declare function generateFeaturePlan(idea: string, projectName: string, filesList: string[], language?: string, native?: boolean): Promise<string>;
56
+ export declare function cleanAndParseJsonPayload(rawContent: string): any;
57
+ export declare function extractCodeFromRawResponse(rawContent: string): string | undefined;
58
+ export interface CodeFixResult {
59
+ targetFile: string;
60
+ problem: string;
61
+ howFixed: string;
62
+ fixedCode: string;
63
+ }
64
+ export declare function generateCodeFix(userPrompt: string, projectName: string, filesList: string[], targetFile: string, currentFileContent: string, language?: string, native?: boolean): Promise<CodeFixResult>;
65
+ export declare function identifyTargetFiles(userPrompt: string, projectName: string, filesList: string[], language?: string, native?: boolean): Promise<string[]>;
66
+ export interface MultiFileFixItem {
67
+ targetFile: string;
68
+ problem?: string | undefined;
69
+ howFixed?: string | undefined;
70
+ fixedCode: string;
71
+ }
72
+ export interface MultiCodeFixResult {
73
+ problem: string;
74
+ howFixed: string;
75
+ files: MultiFileFixItem[];
76
+ }
77
+ export declare function generateMultiCodeFix(userPrompt: string, projectName: string, filesList: string[], targetFilesMap: Record<string, string>, language?: string, native?: boolean, onProgress?: (completed: number, total: number, currentFile: string) => void): Promise<MultiCodeFixResult>;
78
+ export interface CodeGenResult {
79
+ targetFile: string;
80
+ description: string;
81
+ code: string;
82
+ }
83
+ export declare function generateCodeFile(filePath: string, userPrompt: string, projectName: string, filesList: string[], language?: string, native?: boolean): Promise<CodeGenResult>;
84
+ export interface CommandAnalysisResult {
85
+ command: string;
86
+ exitCode: number;
87
+ rootCause: string;
88
+ suggestedFix: string;
89
+ targetFileToFix?: string;
90
+ }
91
+ export declare function analyzeCommandError(command: string, exitCode: number, output: string, projectName: string, filesList: string[], language?: string, native?: boolean): Promise<CommandAnalysisResult>;
92
+ //# sourceMappingURL=llm.d.ts.map