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.
- package/README.md +12 -18
- package/bin/src/commands/agent.d.ts +41 -0
- package/bin/src/commands/audit.d.ts +2 -0
- package/bin/src/commands/authCommand.d.ts +2 -0
- package/bin/src/commands/benchmark.d.ts +2 -0
- package/bin/src/commands/brief.d.ts +4 -0
- package/bin/src/commands/checkpoint.d.ts +7 -0
- package/bin/src/commands/configCommand.d.ts +7 -0
- package/bin/src/commands/dashboard.d.ts +5 -0
- package/bin/src/commands/history.d.ts +2 -0
- package/bin/src/commands/init.d.ts +8 -0
- package/bin/src/commands/login.d.ts +10 -0
- package/bin/src/commands/logout.d.ts +6 -0
- package/bin/src/commands/mcp.d.ts +49 -0
- package/bin/src/commands/owners.d.ts +2 -0
- package/bin/src/commands/plan.d.ts +2 -0
- package/bin/src/commands/pr.d.ts +11 -0
- package/bin/src/commands/quota.d.ts +2 -0
- package/bin/src/commands/recommend.d.ts +5 -0
- package/bin/src/commands/risky.d.ts +10 -0
- package/bin/src/commands/setup.d.ts +2 -0
- package/bin/src/commands/signup.d.ts +8 -0
- package/bin/src/commands/switchCommand.d.ts +3 -0
- package/bin/src/commands/undo.d.ts +2 -0
- package/bin/src/commands/watch.d.ts +12 -0
- package/bin/src/commands/web.d.ts +8 -0
- package/bin/src/discovery/config.d.ts +10 -0
- package/bin/src/discovery/display.d.ts +3 -0
- package/bin/src/discovery/messages.d.ts +4 -0
- package/bin/src/discovery/signals.d.ts +16 -0
- package/bin/src/engine/actionVerifier.d.ts +69 -0
- package/bin/src/engine/agentEngine.d.ts +110 -0
- package/bin/src/engine/agentEngine.js +12 -1
- package/bin/src/engine/agentState.d.ts +154 -0
- package/bin/src/engine/browser/browserController.d.ts +155 -0
- package/bin/src/engine/browser/index.d.ts +2 -0
- package/bin/src/engine/checkpoints/checkpointManager.d.ts +48 -0
- package/bin/src/engine/computer/computerController.d.ts +130 -0
- package/bin/src/engine/computer/computerController.js +34 -15
- package/bin/src/engine/computer/computerDiagnostic.d.ts +31 -0
- package/bin/src/engine/computer/index.d.ts +4 -0
- package/bin/src/engine/computer/mockComputer.d.ts +62 -0
- package/bin/src/engine/computer/operatorHud.d.ts +30 -0
- package/bin/src/engine/computer/scoutDriver.cs +85 -20
- package/bin/src/engine/git.d.ts +20 -0
- package/bin/src/engine/llm.d.ts +92 -0
- package/bin/src/engine/llm.js +298 -273
- package/bin/src/engine/planner.d.ts +21 -0
- package/bin/src/engine/planner.js +12 -4
- package/bin/src/engine/runtime/agentRuntime.d.ts +111 -0
- package/bin/src/engine/runtime/agentRuntime.js +12 -1
- package/bin/src/engine/runtime/index.d.ts +2 -0
- package/bin/src/engine/safety.d.ts +55 -0
- package/bin/src/engine/scanners.d.ts +2 -0
- package/bin/src/engine/subagents/subagentManager.d.ts +29 -0
- package/bin/src/engine/toolRegistry.d.ts +38 -0
- package/bin/src/engine/verifier.d.ts +47 -0
- package/bin/src/engine/voiceEngine.d.ts +26 -0
- package/bin/src/engine/web.d.ts +22 -0
- package/bin/src/engine/workspace/agentWorkspace.d.ts +112 -0
- package/bin/src/engine/workspace/index.d.ts +2 -0
- package/bin/src/index.d.ts +2 -0
- package/bin/src/index.js +4 -4
- package/bin/src/mcp/client.d.ts +62 -0
- package/bin/src/mcp/client.js +1 -1
- package/bin/src/mcp/cloudSync.d.ts +19 -0
- package/bin/src/mcp/discovery.d.ts +22 -0
- package/bin/src/mcp/health.d.ts +13 -0
- package/bin/src/mcp/index.d.ts +16 -0
- package/bin/src/mcp/manager.d.ts +113 -0
- package/bin/src/mcp/permissions.d.ts +18 -0
- package/bin/src/mcp/persistence.d.ts +44 -0
- package/bin/src/mcp/persistence.js +8 -1
- package/bin/src/mcp/recovery.d.ts +19 -0
- package/bin/src/mcp/telemetry.d.ts +15 -0
- package/bin/src/mcp/toolRouter.d.ts +23 -0
- package/bin/src/mcp/transport.d.ts +60 -0
- package/bin/src/mcp/types.d.ts +130 -0
- package/bin/src/server/server.d.ts +6 -0
- package/bin/src/utils/admin.d.ts +84 -0
- package/bin/src/utils/auditLogger.d.ts +18 -0
- package/bin/src/utils/auth.d.ts +132 -0
- package/bin/src/utils/auth.js +13 -0
- package/bin/src/utils/branding.d.ts +2 -0
- package/bin/src/utils/branding.js +1 -1
- package/bin/src/utils/claudeUI.d.ts +101 -0
- package/bin/src/utils/config.d.ts +46 -0
- package/bin/src/utils/email.d.ts +36 -0
- package/bin/src/utils/firebaseAuth.d.ts +19 -0
- package/bin/src/utils/holoseneAuth.d.ts +18 -0
- package/bin/src/utils/interruptHandler.d.ts +32 -0
- package/bin/src/utils/language.d.ts +13 -0
- package/bin/src/utils/logger.d.ts +2 -0
- package/bin/src/utils/markdown.d.ts +19 -0
- package/bin/src/utils/payment.d.ts +81 -0
- package/bin/src/utils/pricing.d.ts +26 -0
- package/bin/src/utils/qrBridge.d.ts +33 -0
- package/bin/src/utils/qrBridge.js +1 -1
- package/bin/src/utils/razorpay.d.ts +48 -0
- package/bin/src/utils/rules.d.ts +24 -0
- package/bin/src/utils/session.d.ts +32 -0
- package/bin/src/utils/updateCheck.d.ts +3 -0
- package/package.json +14 -4
- package/.firebase/hosting.d2Vi.cache +0 -16
- package/.firebaserc +0 -14
- package/.mcp-config.json +0 -19
- package/.mft-mcp-config.json +0 -29
- package/.scoutrules +0 -13
- package/bin/src/commands/agent.d.ts.map +0 -1
- package/bin/src/commands/agent.js.map +0 -1
- package/bin/src/commands/audit.d.ts.map +0 -1
- package/bin/src/commands/audit.js.map +0 -1
- package/bin/src/commands/authCommand.d.ts.map +0 -1
- package/bin/src/commands/authCommand.js.map +0 -1
- package/bin/src/commands/benchmark.d.ts.map +0 -1
- package/bin/src/commands/benchmark.js.map +0 -1
- package/bin/src/commands/brief.d.ts.map +0 -1
- package/bin/src/commands/brief.js.map +0 -1
- package/bin/src/commands/checkpoint.d.ts.map +0 -1
- package/bin/src/commands/checkpoint.js.map +0 -1
- package/bin/src/commands/configCommand.d.ts.map +0 -1
- package/bin/src/commands/configCommand.js.map +0 -1
- package/bin/src/commands/dashboard.d.ts.map +0 -1
- package/bin/src/commands/dashboard.js.map +0 -1
- package/bin/src/commands/history.d.ts.map +0 -1
- package/bin/src/commands/history.js.map +0 -1
- package/bin/src/commands/init.d.ts.map +0 -1
- package/bin/src/commands/init.js.map +0 -1
- package/bin/src/commands/login.d.ts.map +0 -1
- package/bin/src/commands/login.js.map +0 -1
- package/bin/src/commands/logout.d.ts.map +0 -1
- package/bin/src/commands/logout.js.map +0 -1
- package/bin/src/commands/mcp.d.ts.map +0 -1
- package/bin/src/commands/mcp.js.map +0 -1
- package/bin/src/commands/owners.d.ts.map +0 -1
- package/bin/src/commands/owners.js.map +0 -1
- package/bin/src/commands/plan.d.ts.map +0 -1
- package/bin/src/commands/plan.js.map +0 -1
- package/bin/src/commands/pr.d.ts.map +0 -1
- package/bin/src/commands/pr.js.map +0 -1
- package/bin/src/commands/quota.d.ts.map +0 -1
- package/bin/src/commands/quota.js.map +0 -1
- package/bin/src/commands/recommend.d.ts.map +0 -1
- package/bin/src/commands/recommend.js.map +0 -1
- package/bin/src/commands/risky.d.ts.map +0 -1
- package/bin/src/commands/risky.js.map +0 -1
- package/bin/src/commands/setup.d.ts.map +0 -1
- package/bin/src/commands/setup.js.map +0 -1
- package/bin/src/commands/signup.d.ts.map +0 -1
- package/bin/src/commands/signup.js.map +0 -1
- package/bin/src/commands/switchCommand.d.ts.map +0 -1
- package/bin/src/commands/switchCommand.js.map +0 -1
- package/bin/src/commands/undo.d.ts.map +0 -1
- package/bin/src/commands/undo.js.map +0 -1
- package/bin/src/commands/watch.d.ts.map +0 -1
- package/bin/src/commands/watch.js.map +0 -1
- package/bin/src/commands/web.d.ts.map +0 -1
- package/bin/src/commands/web.js.map +0 -1
- package/bin/src/discovery/config.d.ts.map +0 -1
- package/bin/src/discovery/config.js.map +0 -1
- package/bin/src/discovery/display.d.ts.map +0 -1
- package/bin/src/discovery/display.js.map +0 -1
- package/bin/src/discovery/messages.d.ts.map +0 -1
- package/bin/src/discovery/messages.js.map +0 -1
- package/bin/src/discovery/signals.d.ts.map +0 -1
- package/bin/src/discovery/signals.js.map +0 -1
- package/bin/src/engine/actionVerifier.d.ts.map +0 -1
- package/bin/src/engine/actionVerifier.js.map +0 -1
- package/bin/src/engine/agentEngine.d.ts.map +0 -1
- package/bin/src/engine/agentEngine.js.map +0 -1
- package/bin/src/engine/agentState.d.ts.map +0 -1
- package/bin/src/engine/agentState.js.map +0 -1
- package/bin/src/engine/browser/browserController.d.ts.map +0 -1
- package/bin/src/engine/browser/browserController.js.map +0 -1
- package/bin/src/engine/browser/index.d.ts.map +0 -1
- package/bin/src/engine/browser/index.js.map +0 -1
- package/bin/src/engine/checkpoints/checkpointManager.d.ts.map +0 -1
- package/bin/src/engine/checkpoints/checkpointManager.js.map +0 -1
- package/bin/src/engine/computer/computerController.d.ts.map +0 -1
- package/bin/src/engine/computer/computerController.js.map +0 -1
- package/bin/src/engine/computer/computerDiagnostic.d.ts.map +0 -1
- package/bin/src/engine/computer/computerDiagnostic.js.map +0 -1
- package/bin/src/engine/computer/index.d.ts.map +0 -1
- package/bin/src/engine/computer/index.js.map +0 -1
- package/bin/src/engine/computer/mockComputer.d.ts.map +0 -1
- package/bin/src/engine/computer/mockComputer.js.map +0 -1
- package/bin/src/engine/computer/operatorHud.d.ts.map +0 -1
- package/bin/src/engine/computer/operatorHud.js.map +0 -1
- package/bin/src/engine/computer/scout_driver.exe +0 -0
- package/bin/src/engine/git.d.ts.map +0 -1
- package/bin/src/engine/git.js.map +0 -1
- package/bin/src/engine/llm.d.ts.map +0 -1
- package/bin/src/engine/llm.js.map +0 -1
- package/bin/src/engine/planner.d.ts.map +0 -1
- package/bin/src/engine/planner.js.map +0 -1
- package/bin/src/engine/runtime/agentRuntime.d.ts.map +0 -1
- package/bin/src/engine/runtime/agentRuntime.js.map +0 -1
- package/bin/src/engine/runtime/index.d.ts.map +0 -1
- package/bin/src/engine/runtime/index.js.map +0 -1
- package/bin/src/engine/safety.d.ts.map +0 -1
- package/bin/src/engine/safety.js.map +0 -1
- package/bin/src/engine/scanners.d.ts.map +0 -1
- package/bin/src/engine/scanners.js.map +0 -1
- package/bin/src/engine/scoutAudioRecorder.cs +0 -215
- package/bin/src/engine/scout_audio_recorder.exe +0 -0
- package/bin/src/engine/subagents/subagentManager.d.ts.map +0 -1
- package/bin/src/engine/subagents/subagentManager.js.map +0 -1
- package/bin/src/engine/toolRegistry.d.ts.map +0 -1
- package/bin/src/engine/toolRegistry.js.map +0 -1
- package/bin/src/engine/verifier.d.ts.map +0 -1
- package/bin/src/engine/verifier.js.map +0 -1
- package/bin/src/engine/voiceEngine.d.ts.map +0 -1
- package/bin/src/engine/voiceEngine.js.map +0 -1
- package/bin/src/engine/web.d.ts.map +0 -1
- package/bin/src/engine/web.js.map +0 -1
- package/bin/src/engine/workspace/agentWorkspace.d.ts.map +0 -1
- package/bin/src/engine/workspace/agentWorkspace.js.map +0 -1
- package/bin/src/engine/workspace/index.d.ts.map +0 -1
- package/bin/src/engine/workspace/index.js.map +0 -1
- package/bin/src/index.d.ts.map +0 -1
- package/bin/src/index.js.map +0 -1
- package/bin/src/mcp/client.d.ts.map +0 -1
- package/bin/src/mcp/client.js.map +0 -1
- package/bin/src/mcp/cloudSync.d.ts.map +0 -1
- package/bin/src/mcp/cloudSync.js.map +0 -1
- package/bin/src/mcp/discovery.d.ts.map +0 -1
- package/bin/src/mcp/discovery.js.map +0 -1
- package/bin/src/mcp/health.d.ts.map +0 -1
- package/bin/src/mcp/health.js.map +0 -1
- package/bin/src/mcp/index.d.ts.map +0 -1
- package/bin/src/mcp/index.js.map +0 -1
- package/bin/src/mcp/manager.d.ts.map +0 -1
- package/bin/src/mcp/manager.js.map +0 -1
- package/bin/src/mcp/permissions.d.ts.map +0 -1
- package/bin/src/mcp/permissions.js.map +0 -1
- package/bin/src/mcp/persistence.d.ts.map +0 -1
- package/bin/src/mcp/persistence.js.map +0 -1
- package/bin/src/mcp/recovery.d.ts.map +0 -1
- package/bin/src/mcp/recovery.js.map +0 -1
- package/bin/src/mcp/telemetry.d.ts.map +0 -1
- package/bin/src/mcp/telemetry.js.map +0 -1
- package/bin/src/mcp/toolRouter.d.ts.map +0 -1
- package/bin/src/mcp/toolRouter.js.map +0 -1
- package/bin/src/mcp/transport.d.ts.map +0 -1
- package/bin/src/mcp/transport.js.map +0 -1
- package/bin/src/mcp/types.d.ts.map +0 -1
- package/bin/src/mcp/types.js.map +0 -1
- package/bin/src/server/server.d.ts.map +0 -1
- package/bin/src/server/server.js.map +0 -1
- package/bin/src/utils/admin.d.ts.map +0 -1
- package/bin/src/utils/admin.js.map +0 -1
- package/bin/src/utils/auditLogger.d.ts.map +0 -1
- package/bin/src/utils/auditLogger.js.map +0 -1
- package/bin/src/utils/auth.d.ts.map +0 -1
- package/bin/src/utils/auth.js.map +0 -1
- package/bin/src/utils/branding.d.ts.map +0 -1
- package/bin/src/utils/branding.js.map +0 -1
- package/bin/src/utils/claudeUI.d.ts.map +0 -1
- package/bin/src/utils/claudeUI.js.map +0 -1
- package/bin/src/utils/config.d.ts.map +0 -1
- package/bin/src/utils/config.js.map +0 -1
- package/bin/src/utils/email.d.ts.map +0 -1
- package/bin/src/utils/email.js.map +0 -1
- package/bin/src/utils/firebaseAuth.d.ts.map +0 -1
- package/bin/src/utils/firebaseAuth.js.map +0 -1
- package/bin/src/utils/holoseneAuth.d.ts.map +0 -1
- package/bin/src/utils/holoseneAuth.js.map +0 -1
- package/bin/src/utils/interruptHandler.d.ts.map +0 -1
- package/bin/src/utils/interruptHandler.js.map +0 -1
- package/bin/src/utils/language.d.ts.map +0 -1
- package/bin/src/utils/language.js.map +0 -1
- package/bin/src/utils/logger.d.ts.map +0 -1
- package/bin/src/utils/logger.js.map +0 -1
- package/bin/src/utils/markdown.d.ts.map +0 -1
- package/bin/src/utils/markdown.js.map +0 -1
- package/bin/src/utils/payment.d.ts.map +0 -1
- package/bin/src/utils/payment.js.map +0 -1
- package/bin/src/utils/pricing.d.ts.map +0 -1
- package/bin/src/utils/pricing.js.map +0 -1
- package/bin/src/utils/qrBridge.d.ts.map +0 -1
- package/bin/src/utils/qrBridge.js.map +0 -1
- package/bin/src/utils/razorpay.d.ts.map +0 -1
- package/bin/src/utils/razorpay.js.map +0 -1
- package/bin/src/utils/rules.d.ts.map +0 -1
- package/bin/src/utils/rules.js.map +0 -1
- package/bin/src/utils/session.d.ts.map +0 -1
- package/bin/src/utils/session.js.map +0 -1
- package/bin/src/utils/updateCheck.d.ts.map +0 -1
- package/bin/src/utils/updateCheck.js.map +0 -1
- package/downloads/invoice-2026-03.pdf +0 -1
- package/firebase.json +0 -74
- package/front-terrain-cli-1.0.0.tgz +0 -0
- package/web/ScoutFavicon.png +0 -0
- package/web/ScoutOGImage.png +0 -0
- package/web/app.js +0 -4510
- package/web/ft-logo.png +0 -0
- package/web/og-image.png +0 -0
- package/web/robots.txt +0 -24
- package/web/site.webmanifest +0 -16
- package/web/sitemap-tryscout.xml +0 -47
- package/web/sitemap.xml +0 -47
- 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
|
-
|
|
551
|
-
|
|
552
|
-
si.lpDesktop = @"WinSta0\Default";
|
|
553
|
-
PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
|
|
560
|
+
string targetApp = appName.Trim();
|
|
561
|
+
string targetArgs = appArgs ?? "";
|
|
554
562
|
|
|
555
|
-
|
|
556
|
-
if (
|
|
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
|
-
|
|
578
|
+
targetApp = bPath;
|
|
571
579
|
break;
|
|
572
580
|
}
|
|
573
581
|
}
|
|
574
582
|
}
|
|
575
|
-
|
|
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
|
-
|
|
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
|
-
|
|
581
|
-
if (
|
|
605
|
+
// 1b. If targetApp doesn't end with .exe, try targetApp + ".exe" via ShellExecute
|
|
606
|
+
if (!targetApp.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
|
|
582
607
|
{
|
|
583
|
-
|
|
584
|
-
|
|
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
|
|
627
|
+
// 2. Fallback: CreateProcess with DETACHED_PROCESS and CREATE_NEW_PROCESS_GROUP
|
|
588
628
|
try
|
|
589
629
|
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
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
|
-
|
|
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
|