ft-scout 9.5.1 → 9.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -18
- package/bin/src/commands/agent.d.ts +41 -0
- package/bin/src/commands/agent.js +155 -19
- 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 +20 -0
- package/bin/src/commands/benchmark.js +120 -97
- 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 -14
- 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 +8 -0
- 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/git.d.ts +20 -0
- package/bin/src/engine/llm.d.ts +92 -0
- package/bin/src/engine/planner.d.ts +21 -0
- package/bin/src/engine/runtime/agentRuntime.d.ts +111 -0
- package/bin/src/engine/runtime/agentRuntime.js +3 -6
- 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 +106 -0
- package/bin/src/engine/subagents/subagentManager.js +275 -3
- 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 +5 -5
- 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/branding.d.ts +2 -0
- package/bin/src/utils/branding.js +1 -1
- package/bin/src/utils/claudeUI.d.ts +131 -0
- package/bin/src/utils/claudeUI.js +138 -4
- 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/pricing.js +0 -1
- 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 +17 -7
- 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/.test-ft/mcp_activity.json +0 -23
- package/.test-ft/mcp_credentials.enc +0 -1
- package/.test-ft/mcp_servers.json +0 -1
- 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,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
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IComputerController } from './computerController.js';
|
|
2
|
+
export interface DiagnosticReport {
|
|
3
|
+
timestamp: string;
|
|
4
|
+
platform: string;
|
|
5
|
+
screen: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
activeWindow?: string | undefined;
|
|
9
|
+
screenshotPath?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
mouse: {
|
|
12
|
+
initialPosition: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
};
|
|
16
|
+
testTarget: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
moveSuccess: boolean;
|
|
21
|
+
actualPositionAfterMove: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
clickSuccess: boolean;
|
|
26
|
+
};
|
|
27
|
+
overallSuccess: boolean;
|
|
28
|
+
errors: string[];
|
|
29
|
+
}
|
|
30
|
+
export declare function runComputerDiagnostic(controller?: IComputerController): Promise<DiagnosticReport>;
|
|
31
|
+
//# sourceMappingURL=computerDiagnostic.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { IComputerController, ScreenCaptureResult, ComputerActionResult, UIInspectionResult } from './computerController.js';
|
|
2
|
+
export declare class MockComputerController implements IComputerController {
|
|
3
|
+
activeWindow: string;
|
|
4
|
+
expectedApplication: string | null;
|
|
5
|
+
openWindows: string[];
|
|
6
|
+
actionLog: Array<{
|
|
7
|
+
action: string;
|
|
8
|
+
args: any;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
}>;
|
|
11
|
+
screenWidth: number;
|
|
12
|
+
screenHeight: number;
|
|
13
|
+
currentX: number;
|
|
14
|
+
currentY: number;
|
|
15
|
+
shouldFailNext: boolean;
|
|
16
|
+
failMessage: string;
|
|
17
|
+
constructor(initialWindow?: string);
|
|
18
|
+
setExpectedApplication(app: string | null): void;
|
|
19
|
+
getExpectedApplication(): string | null;
|
|
20
|
+
setNextFailure(_action?: string, message?: string): void;
|
|
21
|
+
private log;
|
|
22
|
+
screenshot(): Promise<ScreenCaptureResult>;
|
|
23
|
+
click(x: number, y: number, options?: {
|
|
24
|
+
button?: 'left' | 'right' | 'middle';
|
|
25
|
+
clicks?: number;
|
|
26
|
+
}): Promise<ComputerActionResult>;
|
|
27
|
+
leftClick(x: number, y: number): Promise<ComputerActionResult>;
|
|
28
|
+
rightClick(x: number, y: number): Promise<ComputerActionResult>;
|
|
29
|
+
doubleClick(x: number, y: number): Promise<ComputerActionResult>;
|
|
30
|
+
mouseDown(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
|
|
31
|
+
mouseUp(x?: number, y?: number, button?: 'left' | 'right' | 'middle'): Promise<ComputerActionResult>;
|
|
32
|
+
type(text: string): Promise<ComputerActionResult>;
|
|
33
|
+
keyPress(key: string): Promise<ComputerActionResult>;
|
|
34
|
+
hotkey(keys: string[]): Promise<ComputerActionResult>;
|
|
35
|
+
scroll(deltaX: number, deltaY: number): Promise<ComputerActionResult>;
|
|
36
|
+
mouseMove(x: number, y: number): Promise<ComputerActionResult>;
|
|
37
|
+
move(x: number, y: number): Promise<ComputerActionResult>;
|
|
38
|
+
drag(fromX: number, fromY: number, toX: number, toY: number): Promise<ComputerActionResult>;
|
|
39
|
+
wait(ms: number): Promise<void>;
|
|
40
|
+
getMousePosition(): Promise<{
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
}>;
|
|
44
|
+
runDiagnostic(): Promise<ComputerActionResult>;
|
|
45
|
+
openApplication(appName: string, args?: string[]): Promise<ComputerActionResult>;
|
|
46
|
+
closeApplication(appName: string): Promise<ComputerActionResult>;
|
|
47
|
+
switchWindow(windowTitleOrApp: string): Promise<ComputerActionResult>;
|
|
48
|
+
getWindowBounds(windowTitleOrApp: string): Promise<{
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
} | null>;
|
|
54
|
+
inspectUI(): Promise<UIInspectionResult>;
|
|
55
|
+
getActionLog(): Array<{
|
|
56
|
+
action: string;
|
|
57
|
+
args: any;
|
|
58
|
+
timestamp: string;
|
|
59
|
+
}>;
|
|
60
|
+
clearLog(): void;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=mockComputer.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scout Visual Operator HUD
|
|
3
|
+
* High-tech visual feedback spotlight, crosshair, and aura overlay for Windows Desktop.
|
|
4
|
+
* Provides transparent, click-through visual ripples when Scout clicks, types, or inspects the screen.
|
|
5
|
+
*/
|
|
6
|
+
export declare class OperatorHud {
|
|
7
|
+
private static instance;
|
|
8
|
+
private hudEnabled;
|
|
9
|
+
private auraProcess;
|
|
10
|
+
private scriptDir;
|
|
11
|
+
private constructor();
|
|
12
|
+
static getInstance(): OperatorHud;
|
|
13
|
+
setEnabled(enabled: boolean): void;
|
|
14
|
+
isEnabled(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Start the continuous high-tech neon aura border around the screen
|
|
17
|
+
*/
|
|
18
|
+
startAura(statusText?: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Stop the screen border aura
|
|
21
|
+
*/
|
|
22
|
+
stopAura(): void;
|
|
23
|
+
showDesktopAura(statusText?: string): void;
|
|
24
|
+
hideDesktopAura(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Show a futuristic ripple/beacon crosshair at click coordinates (x, y)
|
|
27
|
+
*/
|
|
28
|
+
showClickBeacon(x: number, y: number, label?: string): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=operatorHud.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface OwnerInfo {
|
|
2
|
+
author: string;
|
|
3
|
+
commits: number;
|
|
4
|
+
percentage: number;
|
|
5
|
+
lastTouched: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function getFileOwners(filePath: string): Promise<OwnerInfo[]>;
|
|
8
|
+
export interface PrOptions {
|
|
9
|
+
branchPrefix: 'fix' | 'create' | 'agent';
|
|
10
|
+
title: string;
|
|
11
|
+
affectedFiles: string[];
|
|
12
|
+
commitMessage: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function createPullRequest(options: PrOptions): Promise<{
|
|
15
|
+
branchName: string;
|
|
16
|
+
prUrl?: string | undefined;
|
|
17
|
+
ghCreated?: boolean | undefined;
|
|
18
|
+
message: string;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=git.d.ts.map
|
|
@@ -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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TaskPlanStep } from './agentState.js';
|
|
2
|
+
export interface StructuredPlan extends Array<TaskPlanStep> {
|
|
3
|
+
objective: string;
|
|
4
|
+
steps: TaskPlanStep[];
|
|
5
|
+
estimatedTotalSteps: number;
|
|
6
|
+
canRunConcurrently: boolean;
|
|
7
|
+
parallelGroups: number[][];
|
|
8
|
+
}
|
|
9
|
+
export interface SimpleAppActionResult {
|
|
10
|
+
isSimple: boolean;
|
|
11
|
+
action?: 'open' | 'close' | 'switch';
|
|
12
|
+
appName?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function checkSimpleAppAction(objective: string): SimpleAppActionResult;
|
|
15
|
+
export declare class TaskPlanner {
|
|
16
|
+
createPlan(objective: string, contextFiles?: string[]): StructuredPlan;
|
|
17
|
+
computeParallelGroups(steps: TaskPlanStep[]): number[][];
|
|
18
|
+
getParallelExecutableGroups(stepsOrPlan: TaskPlanStep[] | StructuredPlan): number[][];
|
|
19
|
+
refinePlanOnRecovery(currentSteps: TaskPlanStep[], failingStepId: number, alternativeDescription: string): TaskPlanStep[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=planner.d.ts.map
|