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,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,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
|
}
|
|
@@ -594,19 +602,30 @@ if ($act -eq "move") {
|
|
|
594
602
|
const argsStr = args.join(' ');
|
|
595
603
|
try {
|
|
596
604
|
if (process.platform === 'win32') {
|
|
597
|
-
const driverRes = await this.runDriverAction('launch', [appName]);
|
|
605
|
+
const driverRes = await this.runDriverAction('launch', args.length > 0 ? [appName, argsStr] : [appName]);
|
|
598
606
|
if (!driverRes || !driverRes.success) {
|
|
607
|
+
const spawnDetached = (cmd, a = []) => {
|
|
608
|
+
try {
|
|
609
|
+
const child = spawn('cmd.exe', ['/c', 'start', '""', cmd, ...a], {
|
|
610
|
+
detached: true,
|
|
611
|
+
stdio: 'ignore',
|
|
612
|
+
windowsHide: true,
|
|
613
|
+
});
|
|
614
|
+
child.unref();
|
|
615
|
+
}
|
|
616
|
+
catch { }
|
|
617
|
+
};
|
|
599
618
|
if (appLower === 'code' || appLower === 'vscode') {
|
|
600
|
-
|
|
619
|
+
spawnDetached('code', argsStr ? [argsStr] : []);
|
|
601
620
|
}
|
|
602
621
|
else if (appLower === 'explorer' || appLower === 'file explorer') {
|
|
603
|
-
|
|
622
|
+
spawnDetached('explorer', [argsStr || '.']);
|
|
604
623
|
}
|
|
605
624
|
else if (appLower === 'notepad') {
|
|
606
|
-
|
|
625
|
+
spawnDetached('notepad', argsStr ? [argsStr] : []);
|
|
607
626
|
}
|
|
608
627
|
else if (appLower === 'terminal' || appLower === 'cmd' || appLower === 'powershell') {
|
|
609
|
-
|
|
628
|
+
spawnDetached('powershell', argsStr ? [argsStr] : []);
|
|
610
629
|
}
|
|
611
630
|
else if (appLower.includes('blender')) {
|
|
612
631
|
const candidatePaths = [
|
|
@@ -639,7 +658,7 @@ if ($act -eq "move") {
|
|
|
639
658
|
await execAsync(`powershell -NoProfile -Command "Start-Process '${resolvedBlender}' ${pyArg} -WindowStyle Minimized"`);
|
|
640
659
|
}
|
|
641
660
|
else {
|
|
642
|
-
|
|
661
|
+
spawnDetached(appName, argsStr ? [argsStr] : []);
|
|
643
662
|
}
|
|
644
663
|
}
|
|
645
664
|
else if (appLower === 'chrome' || appLower === 'google chrome' || appLower === 'google-chrome') {
|
|
@@ -650,10 +669,10 @@ if ($act -eq "move") {
|
|
|
650
669
|
].filter(Boolean);
|
|
651
670
|
const resolvedChrome = chromeCandidates.find((p) => fs.existsSync(p));
|
|
652
671
|
if (resolvedChrome) {
|
|
653
|
-
|
|
672
|
+
spawnDetached(resolvedChrome, argsStr ? [argsStr] : []);
|
|
654
673
|
}
|
|
655
674
|
else {
|
|
656
|
-
|
|
675
|
+
spawnDetached('chrome', argsStr ? [argsStr] : []);
|
|
657
676
|
}
|
|
658
677
|
}
|
|
659
678
|
else if (appLower === 'edge' || appLower === 'msedge' || appLower === 'microsoft edge') {
|
|
@@ -663,10 +682,10 @@ if ($act -eq "move") {
|
|
|
663
682
|
];
|
|
664
683
|
const resolvedEdge = edgeCandidates.find((p) => fs.existsSync(p));
|
|
665
684
|
if (resolvedEdge) {
|
|
666
|
-
|
|
685
|
+
spawnDetached(resolvedEdge, argsStr ? [argsStr] : []);
|
|
667
686
|
}
|
|
668
687
|
else {
|
|
669
|
-
|
|
688
|
+
spawnDetached('msedge', argsStr ? [argsStr] : []);
|
|
670
689
|
}
|
|
671
690
|
}
|
|
672
691
|
else if (appLower === 'brave' || appLower === 'brave browser') {
|
|
@@ -676,20 +695,20 @@ if ($act -eq "move") {
|
|
|
676
695
|
].filter(Boolean);
|
|
677
696
|
const resolvedBrave = braveCandidates.find((p) => fs.existsSync(p));
|
|
678
697
|
if (resolvedBrave) {
|
|
679
|
-
|
|
698
|
+
spawnDetached(resolvedBrave, argsStr ? [argsStr] : []);
|
|
680
699
|
}
|
|
681
700
|
else {
|
|
682
|
-
|
|
701
|
+
spawnDetached('brave', argsStr ? [argsStr] : []);
|
|
683
702
|
}
|
|
684
703
|
}
|
|
685
704
|
else if (appLower === 'calc' || appLower === 'calculator') {
|
|
686
|
-
|
|
705
|
+
spawnDetached('calc');
|
|
687
706
|
}
|
|
688
707
|
else if (appLower === 'mspaint' || appLower === 'paint') {
|
|
689
|
-
|
|
708
|
+
spawnDetached('mspaint');
|
|
690
709
|
}
|
|
691
710
|
else {
|
|
692
|
-
|
|
711
|
+
spawnDetached(appName, argsStr ? [argsStr] : []);
|
|
693
712
|
}
|
|
694
713
|
}
|
|
695
714
|
this.expectedApplication = appName;
|
|
@@ -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
|