@adhdev/daemon-core 0.6.53 → 0.6.56
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/dist/index.d.ts +84 -34
- package/dist/index.js +631 -305
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/providers/_builtin/_helpers/index.js +26 -26
- package/providers/_builtin/cli/aider-cli/provider.json +37 -0
- package/providers/_builtin/cli/aider-cli/scripts/1.0/detect_status.js +20 -0
- package/providers/_builtin/cli/aider-cli/scripts/1.0/parse_approval.js +10 -0
- package/providers/_builtin/cli/aider-cli/scripts/1.0/parse_output.js +49 -0
- package/providers/_builtin/cli/aider-cli/scripts/1.0/scripts.js +7 -0
- package/providers/_builtin/cli/claude-cli/provider.json +9 -2
- package/providers/_builtin/cli/claude-cli/scripts/1.0/detect_status.js +31 -0
- package/providers/_builtin/cli/claude-cli/scripts/1.0/parse_approval.js +38 -0
- package/providers/_builtin/cli/claude-cli/scripts/1.0/parse_output.js +164 -0
- package/providers/_builtin/cli/claude-cli/scripts/1.0/scripts.js +42 -0
- package/providers/_builtin/cli/codex-cli/provider.json +9 -2
- package/providers/_builtin/cli/codex-cli/scripts/1.0/detect_status.js +20 -0
- package/providers/_builtin/cli/codex-cli/scripts/1.0/parse_approval.js +15 -0
- package/providers/_builtin/cli/codex-cli/scripts/1.0/parse_output.js +68 -0
- package/providers/_builtin/cli/codex-cli/scripts/1.0/scripts.js +11 -0
- package/providers/_builtin/cli/cursor-cli/provider.json +37 -0
- package/providers/_builtin/cli/cursor-cli/scripts/1.0/detect_status.js +19 -0
- package/providers/_builtin/cli/cursor-cli/scripts/1.0/parse_approval.js +10 -0
- package/providers/_builtin/cli/cursor-cli/scripts/1.0/parse_output.js +48 -0
- package/providers/_builtin/cli/cursor-cli/scripts/1.0/scripts.js +7 -0
- package/providers/_builtin/cli/gemini-cli/provider.json +9 -2
- package/providers/_builtin/cli/gemini-cli/scripts/1.0/detect_status.js +26 -0
- package/providers/_builtin/cli/gemini-cli/scripts/1.0/parse_approval.js +22 -0
- package/providers/_builtin/cli/gemini-cli/scripts/1.0/parse_output.js +71 -0
- package/providers/_builtin/cli/gemini-cli/scripts/1.0/scripts.js +12 -0
- package/providers/_builtin/cli/github-copilot-cli/provider.json +37 -0
- package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/detect_status.js +19 -0
- package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/parse_approval.js +9 -0
- package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/parse_output.js +48 -0
- package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/scripts.js +7 -0
- package/providers/_builtin/cli/goose-cli/provider.json +37 -0
- package/providers/_builtin/cli/goose-cli/scripts/1.0/detect_status.js +20 -0
- package/providers/_builtin/cli/goose-cli/scripts/1.0/parse_approval.js +10 -0
- package/providers/_builtin/cli/goose-cli/scripts/1.0/parse_output.js +48 -0
- package/providers/_builtin/cli/goose-cli/scripts/1.0/scripts.js +7 -0
- package/providers/_builtin/cli/opencode-cli/provider.json +37 -0
- package/providers/_builtin/cli/opencode-cli/scripts/1.0/detect_status.js +15 -0
- package/providers/_builtin/cli/opencode-cli/scripts/1.0/parse_approval.js +9 -0
- package/providers/_builtin/cli/opencode-cli/scripts/1.0/parse_output.js +48 -0
- package/providers/_builtin/cli/opencode-cli/scripts/1.0/scripts.js +7 -0
- package/providers/_builtin/extension/cline/scripts/1.0/focus_editor.js +5 -5
- package/providers/_builtin/extension/cline/scripts/1.0/list_chats.js +11 -11
- package/providers/_builtin/extension/cline/scripts/1.0/list_models.js +6 -6
- package/providers/_builtin/extension/cline/scripts/1.0/list_modes.js +5 -5
- package/providers/_builtin/extension/cline/scripts/1.0/new_session.js +12 -12
- package/providers/_builtin/extension/cline/scripts/1.0/open_panel.js +7 -7
- package/providers/_builtin/extension/cline/scripts/1.0/read_chat.js +29 -29
- package/providers/_builtin/extension/cline/scripts/1.0/resolve_action.js +19 -19
- package/providers/_builtin/extension/cline/scripts/1.0/send_message.js +15 -15
- package/providers/_builtin/extension/cline/scripts/1.0/set_mode.js +4 -4
- package/providers/_builtin/extension/cline/scripts/1.0/set_model.js +4 -4
- package/providers/_builtin/extension/cline/scripts/1.0/switch_session.js +21 -21
- package/providers/_builtin/extension/codex/scripts/1.0/explore_controls_webview.js +2 -2
- package/providers/_builtin/extension/codex/scripts/1.0/list_models.js +1 -1
- package/providers/_builtin/extension/codex/scripts/1.0/list_modes.js +1 -1
- package/providers/_builtin/extension/codex/scripts/1.0/new_session.js +2 -2
- package/providers/_builtin/extension/codex/scripts/1.0/read_chat.js +6 -6
- package/providers/_builtin/extension/codex/scripts/1.0/resolve_action.js +3 -3
- package/providers/_builtin/extension/codex/scripts/1.0/set_model.js +1 -1
- package/providers/_builtin/ide/antigravity/scripts/1.0/focus_editor.js +2 -2
- package/providers/_builtin/ide/antigravity/scripts/1.0/list_chats.js +19 -19
- package/providers/_builtin/ide/antigravity/scripts/1.0/list_models.js +1 -1
- package/providers/_builtin/ide/antigravity/scripts/1.0/list_modes.js +1 -1
- package/providers/_builtin/ide/antigravity/scripts/1.0/new_session.js +17 -17
- package/providers/_builtin/ide/antigravity/scripts/1.0/read_chat.js +41 -41
- package/providers/_builtin/ide/antigravity/scripts/1.0/resolve_action.js +6 -6
- package/providers/_builtin/ide/antigravity/scripts/1.0/send_message.js +13 -13
- package/providers/_builtin/ide/antigravity/scripts/1.0/set_model.js +1 -1
- package/providers/_builtin/ide/antigravity/scripts/1.0/switch_session.js +13 -13
- package/providers/_builtin/ide/cursor/scripts/1.0/dismiss_notification.js +3 -3
- package/providers/_builtin/ide/cursor/scripts/1.0/focus_editor.js +1 -1
- package/providers/_builtin/ide/cursor/scripts/1.0/list_models.js +12 -12
- package/providers/_builtin/ide/cursor/scripts/1.0/list_modes.js +5 -5
- package/providers/_builtin/ide/cursor/scripts/1.0/list_notifications.js +2 -2
- package/providers/_builtin/ide/cursor/scripts/1.0/list_sessions.js +5 -5
- package/providers/_builtin/ide/cursor/scripts/1.0/new_session.js +1 -1
- package/providers/_builtin/ide/cursor/scripts/1.0/open_panel.js +3 -3
- package/providers/_builtin/ide/cursor/scripts/1.0/read_chat.js +9 -9
- package/providers/_builtin/ide/cursor/scripts/1.0/resolve_action.js +4 -4
- package/providers/_builtin/ide/cursor/scripts/1.0/send_message.js +5 -5
- package/providers/_builtin/ide/cursor/scripts/1.0/set_mode.js +4 -4
- package/providers/_builtin/ide/cursor/scripts/1.0/set_model.js +12 -12
- package/providers/_builtin/ide/cursor/scripts/1.0/switch_session.js +2 -2
- package/providers/_builtin/ide/kiro/scripts/1.0/focus_editor.js +2 -2
- package/providers/_builtin/ide/kiro/scripts/1.0/open_panel.js +7 -7
- package/providers/_builtin/ide/kiro/scripts/1.0/resolve_action.js +3 -3
- package/providers/_builtin/ide/kiro/scripts/1.0/send_message.js +4 -4
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_list_sessions.js +2 -2
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_new_session.js +5 -5
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_read_chat.js +13 -13
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_resolve_action.js +1 -1
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_send_message.js +8 -8
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_set_mode.js +1 -1
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_set_model.js +1 -1
- package/providers/_builtin/ide/kiro/scripts/1.0/webview_switch_session.js +3 -3
- package/providers/_builtin/ide/pearai/.tmp/after_rich.json +157 -0
- package/providers/_builtin/ide/pearai/.tmp/after_rich_raw.json +161 -0
- package/providers/_builtin/ide/pearai/.tmp/after_switch.json +592 -0
- package/providers/_builtin/ide/pearai/.tmp/after_switch_raw.json +596 -0
- package/providers/_builtin/ide/pearai/.tmp/home_dump_raw.json +176 -0
- package/providers/_builtin/ide/pearai/.tmp/items_raw.json +778 -0
- package/providers/_builtin/ide/pearai/.tmp/webview_dump.json +157 -0
- package/providers/_builtin/ide/pearai/.tmp/webview_dump_raw.json +161 -0
- package/providers/_builtin/ide/pearai/provider.json +1 -3
- package/providers/_builtin/ide/pearai/scripts/1.0/focus_editor.js +12 -16
- package/providers/_builtin/ide/pearai/scripts/1.0/list_models.js +45 -0
- package/providers/_builtin/ide/pearai/scripts/1.0/list_modes.js +44 -0
- package/providers/_builtin/ide/pearai/scripts/1.0/list_sessions.js +82 -27
- package/providers/_builtin/ide/pearai/scripts/1.0/new_session.js +26 -43
- package/providers/_builtin/ide/pearai/scripts/1.0/open_panel.js +10 -33
- package/providers/_builtin/ide/pearai/scripts/1.0/read_chat.js +169 -0
- package/providers/_builtin/ide/pearai/scripts/1.0/resolve_action.js +47 -41
- package/providers/_builtin/ide/pearai/scripts/1.0/scripts.js +36 -7
- package/providers/_builtin/ide/pearai/scripts/1.0/send_message.js +97 -22
- package/providers/_builtin/ide/pearai/scripts/1.0/set_mode.js +51 -0
- package/providers/_builtin/ide/pearai/scripts/1.0/set_model.js +54 -0
- package/providers/_builtin/ide/pearai/scripts/1.0/switch_session.js +81 -0
- package/providers/_builtin/ide/trae/scripts/1.0/focus_editor.js +2 -2
- package/providers/_builtin/ide/trae/scripts/1.0/list_chats.js +2 -2
- package/providers/_builtin/ide/trae/scripts/1.0/new_session.js +4 -4
- package/providers/_builtin/ide/trae/scripts/1.0/open_panel.js +6 -6
- package/providers/_builtin/ide/trae/scripts/1.0/read_chat.js +13 -13
- package/providers/_builtin/ide/trae/scripts/1.0/resolve_action.js +3 -3
- package/providers/_builtin/ide/trae/scripts/1.0/send_message.js +11 -11
- package/providers/_builtin/ide/trae/scripts/1.0/switch_session.js +2 -2
- package/providers/_builtin/ide/windsurf/scripts/1.0/focus_editor.js +6 -6
- package/providers/_builtin/ide/windsurf/scripts/1.0/list_chats.js +4 -4
- package/providers/_builtin/ide/windsurf/scripts/1.0/list_sessions.js +6 -6
- package/providers/_builtin/ide/windsurf/scripts/1.0/new_session.js +9 -9
- package/providers/_builtin/ide/windsurf/scripts/1.0/open_panel.js +6 -6
- package/providers/_builtin/ide/windsurf/scripts/1.0/resolve_action.js +8 -8
- package/providers/_builtin/ide/windsurf/scripts/1.0/switch_session.js +8 -8
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/focus_editor.js +6 -6
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/list_chats.js +12 -12
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/new_session.js +15 -15
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/open_panel.js +10 -10
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/read_chat.js +33 -33
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/resolve_action.js +6 -6
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/send_message.js +16 -16
- package/providers/_builtin/ide/windsurf/scripts/1.0.bak/switch_session.js +7 -7
- package/providers/_builtin/registry.json +76 -3
- package/src/cli-adapters/provider-cli-adapter.ts +312 -258
- package/src/cli-adapters/terminal-screen.ts +95 -0
- package/src/commands/chat-commands.ts +41 -15
- package/src/commands/cli-manager.ts +4 -2
- package/src/daemon/dev-server.ts +306 -62
- package/src/providers/acp-provider-instance.ts +1 -1
- package/src/providers/cli-provider-instance.ts +23 -9
- package/src/providers/provider-loader.ts +3 -2
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_list_models.js +0 -43
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_list_modes.js +0 -35
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_list_sessions.js +0 -62
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_new_session.js +0 -49
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_read_chat.js +0 -92
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_resolve_action.js +0 -59
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_send_message.js +0 -72
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_set_mode.js +0 -36
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_set_model.js +0 -36
- package/providers/_builtin/ide/pearai/scripts/1.0/webview_switch_session.js +0 -34
package/dist/index.d.ts
CHANGED
|
@@ -2535,20 +2535,19 @@ declare const DEFAULT_DAEMON_PORT = 19222;
|
|
|
2535
2535
|
declare const DAEMON_WS_PATH = "/ipc";
|
|
2536
2536
|
|
|
2537
2537
|
/**
|
|
2538
|
-
* ProviderCliAdapter —
|
|
2538
|
+
* ProviderCliAdapter — Script-based CLI Adapter
|
|
2539
2539
|
*
|
|
2540
|
-
*
|
|
2541
|
-
*
|
|
2540
|
+
* All CLI providers use versioned scripts (like IDE providers).
|
|
2541
|
+
* Scripts are Node.js functions that receive PTY buffer data and return structured results.
|
|
2542
2542
|
*
|
|
2543
|
-
*
|
|
2544
|
-
*
|
|
2545
|
-
*
|
|
2546
|
-
*
|
|
2547
|
-
*
|
|
2548
|
-
*
|
|
2549
|
-
*
|
|
2550
|
-
*
|
|
2551
|
-
* cleanOutput(raw, lastUserInput): string
|
|
2543
|
+
* Required scripts in scripts/{version}/scripts.js:
|
|
2544
|
+
* - detectStatus(input) → AgentStatus string ('idle' | 'generating' | 'waiting_approval')
|
|
2545
|
+
* - parseOutput(input) → ReadChatResult { messages, status, activeModal, ... }
|
|
2546
|
+
* - parseApproval(input) → ModalInfo | null
|
|
2547
|
+
*
|
|
2548
|
+
* provider.json contract:
|
|
2549
|
+
* type, name, category: 'cli', binary, spawn, approvalKeys
|
|
2550
|
+
* compatibility: [{ ideVersion, scriptDir }] ← versioned scripts
|
|
2552
2551
|
*/
|
|
2553
2552
|
|
|
2554
2553
|
interface CliChatMessage {
|
|
@@ -2565,23 +2564,55 @@ interface CliSessionStatus {
|
|
|
2565
2564
|
buttons: string[];
|
|
2566
2565
|
} | null;
|
|
2567
2566
|
}
|
|
2567
|
+
/**
|
|
2568
|
+
* CLI Script Functions.
|
|
2569
|
+
* Unlike IDE scripts (which return JS code strings for CDP evaluate),
|
|
2570
|
+
* CLI scripts are Node.js functions that receive PTY buffer data and return structured results.
|
|
2571
|
+
*/
|
|
2572
|
+
interface CliScripts {
|
|
2573
|
+
/** Full PTY buffer → ReadChatResult (messages, status, activeModal) */
|
|
2574
|
+
parseOutput?: (input: CliScriptInput) => any;
|
|
2575
|
+
/** Lightweight status detection (high-frequency polling) → AgentStatus string */
|
|
2576
|
+
detectStatus?: (input: {
|
|
2577
|
+
tail: string;
|
|
2578
|
+
screenText?: string;
|
|
2579
|
+
rawBuffer?: string;
|
|
2580
|
+
}) => string | null;
|
|
2581
|
+
/** Parse approval modal from PTY output → ModalInfo | null */
|
|
2582
|
+
parseApproval?: (input: {
|
|
2583
|
+
buffer: string;
|
|
2584
|
+
rawBuffer?: string;
|
|
2585
|
+
tail: string;
|
|
2586
|
+
}) => {
|
|
2587
|
+
message: string;
|
|
2588
|
+
buttons: string[];
|
|
2589
|
+
} | null;
|
|
2590
|
+
/** Produce a cli-specific prompt from a dashboard action payload */
|
|
2591
|
+
resolveAction?: (data: any) => string;
|
|
2592
|
+
/** Custom scripts */
|
|
2593
|
+
[name: string]: ((input: any) => any) | undefined;
|
|
2594
|
+
}
|
|
2595
|
+
interface CliScriptInput {
|
|
2596
|
+
buffer: string;
|
|
2597
|
+
rawBuffer: string;
|
|
2598
|
+
recentBuffer: string;
|
|
2599
|
+
screenText: string;
|
|
2600
|
+
messages: CliChatMessage[];
|
|
2601
|
+
partialResponse: string;
|
|
2602
|
+
}
|
|
2568
2603
|
interface CliProviderModule {
|
|
2569
2604
|
type: string;
|
|
2570
2605
|
name: string;
|
|
2571
2606
|
category: 'cli';
|
|
2572
2607
|
binary: string;
|
|
2608
|
+
sendDelayMs?: number;
|
|
2609
|
+
sendKey?: string;
|
|
2573
2610
|
spawn: {
|
|
2574
2611
|
command: string;
|
|
2575
2612
|
args: string[];
|
|
2576
2613
|
shell: boolean;
|
|
2577
2614
|
env: Record<string, string>;
|
|
2578
2615
|
};
|
|
2579
|
-
patterns: {
|
|
2580
|
-
prompt: RegExp[];
|
|
2581
|
-
generating: RegExp[];
|
|
2582
|
-
approval: RegExp[];
|
|
2583
|
-
ready: RegExp[];
|
|
2584
|
-
};
|
|
2585
2616
|
timeouts?: {
|
|
2586
2617
|
/** PTY output batch transmit interval (default 50ms) */
|
|
2587
2618
|
ptyFlush?: number;
|
|
@@ -2597,10 +2628,9 @@ interface CliProviderModule {
|
|
|
2597
2628
|
maxResponse?: number;
|
|
2598
2629
|
/** shutdown after kill wait (default 1000ms) */
|
|
2599
2630
|
shutdownGrace?: number;
|
|
2600
|
-
/** Output settle debounce before evaluating
|
|
2631
|
+
/** Output settle debounce before evaluating status (default 300ms) */
|
|
2601
2632
|
outputSettle?: number;
|
|
2602
2633
|
};
|
|
2603
|
-
cleanOutput(raw: string, lastUserInput?: string): string;
|
|
2604
2634
|
}
|
|
2605
2635
|
declare class ProviderCliAdapter implements CliAdapter {
|
|
2606
2636
|
private extraArgs;
|
|
@@ -2610,6 +2640,7 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2610
2640
|
private provider;
|
|
2611
2641
|
private ptyProcess;
|
|
2612
2642
|
private messages;
|
|
2643
|
+
private structuredMessages;
|
|
2613
2644
|
private currentStatus;
|
|
2614
2645
|
private onStatusChange;
|
|
2615
2646
|
private responseBuffer;
|
|
@@ -2620,7 +2651,6 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2620
2651
|
private idleTimeout;
|
|
2621
2652
|
private ready;
|
|
2622
2653
|
private startupBuffer;
|
|
2623
|
-
/** After spawn: briefly skip generating/settle so splash/redraw does not flip status; not used to gate sendMessage */
|
|
2624
2654
|
private startupParseGate;
|
|
2625
2655
|
private spawnAt;
|
|
2626
2656
|
private onPtyDataCallback;
|
|
@@ -2633,25 +2663,49 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2633
2663
|
private approvalExitTimeout;
|
|
2634
2664
|
private settleTimer;
|
|
2635
2665
|
private settledBuffer;
|
|
2666
|
+
private submitPendingUntil;
|
|
2636
2667
|
private resizeSuppressUntil;
|
|
2637
2668
|
private statusHistory;
|
|
2669
|
+
private cliScripts;
|
|
2670
|
+
/** Full accumulated ANSI-stripped PTY output */
|
|
2671
|
+
private accumulatedBuffer;
|
|
2672
|
+
/** Full accumulated raw PTY output (with ANSI) */
|
|
2673
|
+
private accumulatedRawBuffer;
|
|
2674
|
+
/** Current visible terminal screen snapshot */
|
|
2675
|
+
private terminalScreen;
|
|
2676
|
+
/** Max accumulated buffer size (last 50KB) */
|
|
2677
|
+
private static readonly MAX_ACCUMULATED_BUFFER;
|
|
2638
2678
|
private setStatus;
|
|
2639
2679
|
private readonly timeouts;
|
|
2640
2680
|
private readonly approvalKeys;
|
|
2681
|
+
private readonly sendDelayMs;
|
|
2682
|
+
private readonly sendKey;
|
|
2641
2683
|
constructor(provider: CliProviderModule, workingDir: string, extraArgs?: string[]);
|
|
2684
|
+
/** Inject CLI scripts after construction (e.g. when resolved by ProviderLoader) */
|
|
2685
|
+
setCliScripts(scripts: CliScripts): void;
|
|
2642
2686
|
setServerConn(serverConn: any): void;
|
|
2643
2687
|
setOnStatusChange(callback: () => void): void;
|
|
2644
2688
|
setOnPtyData(callback: (data: string) => void): void;
|
|
2645
2689
|
spawn(): Promise<void>;
|
|
2646
2690
|
private handleOutput;
|
|
2647
|
-
/**
|
|
2648
|
-
* Fired after output goes quiet for outputSettle ms.
|
|
2649
|
-
* Evaluates the stabilised buffer for approval, prompt (idle), or timeout.
|
|
2650
|
-
*/
|
|
2651
2691
|
private scheduleSettle;
|
|
2652
2692
|
private evaluateSettled;
|
|
2653
2693
|
private finishResponse;
|
|
2694
|
+
private runDetectStatus;
|
|
2695
|
+
private runParseApproval;
|
|
2654
2696
|
getStatus(): CliSessionStatus;
|
|
2697
|
+
/**
|
|
2698
|
+
* Script-based full parse — returns ReadChatResult.
|
|
2699
|
+
* Called by command handler / dashboard for rich content rendering.
|
|
2700
|
+
*/
|
|
2701
|
+
getScriptParsedStatus(): any;
|
|
2702
|
+
/** Whether this adapter has CLI scripts loaded */
|
|
2703
|
+
hasCliScripts(): boolean;
|
|
2704
|
+
/**
|
|
2705
|
+
* Resolves an action (like 'fix' lint error) from the dashboard.
|
|
2706
|
+
* Uses resolveAction script if available, otherwise falls back to standard text.
|
|
2707
|
+
*/
|
|
2708
|
+
resolveAction(data: any): Promise<void>;
|
|
2655
2709
|
sendMessage(text: string): Promise<void>;
|
|
2656
2710
|
getPartialResponse(): string;
|
|
2657
2711
|
cancel(): void;
|
|
@@ -2660,17 +2714,8 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2660
2714
|
isProcessing(): boolean;
|
|
2661
2715
|
isReady(): boolean;
|
|
2662
2716
|
writeRaw(data: string): void;
|
|
2663
|
-
/**
|
|
2664
|
-
* Resolve an approval modal by navigating to the button at `buttonIndex` and pressing Enter.
|
|
2665
|
-
* Index 0 = first option (already selected by default — just Enter).
|
|
2666
|
-
* Index N = press Arrow Down N times, then Enter.
|
|
2667
|
-
*/
|
|
2668
2717
|
resolveModal(buttonIndex: number): void;
|
|
2669
2718
|
resize(cols: number, rows: number): void;
|
|
2670
|
-
/**
|
|
2671
|
-
* Full debug state — exposes all internal buffers, status, and patterns for debugging.
|
|
2672
|
-
* Used by DevServer /api/cli/debug endpoint.
|
|
2673
|
-
*/
|
|
2674
2719
|
getDebugState(): Record<string, any>;
|
|
2675
2720
|
}
|
|
2676
2721
|
|
|
@@ -2902,8 +2947,12 @@ declare class DevServer {
|
|
|
2902
2947
|
private handleFindCommon;
|
|
2903
2948
|
private handleFindByText;
|
|
2904
2949
|
private handleDomContext;
|
|
2950
|
+
private getDefaultAutoImplReference;
|
|
2951
|
+
private resolveAutoImplReference;
|
|
2952
|
+
private loadAutoImplReferenceScripts;
|
|
2905
2953
|
private handleAutoImplement;
|
|
2906
2954
|
private buildAutoImplPrompt;
|
|
2955
|
+
private buildCliAutoImplPrompt;
|
|
2907
2956
|
private handleAutoImplSSE;
|
|
2908
2957
|
private handleAutoImplCancel;
|
|
2909
2958
|
private sendAutoImplSSE;
|
|
@@ -2915,6 +2964,7 @@ declare class DevServer {
|
|
|
2915
2964
|
private readBody;
|
|
2916
2965
|
/** GET /api/cli/status — list all running CLI/ACP instances with state */
|
|
2917
2966
|
private handleCliStatus;
|
|
2967
|
+
private findCliTarget;
|
|
2918
2968
|
/** POST /api/cli/launch — launch a CLI agent { type, workingDir?, args? } */
|
|
2919
2969
|
private handleCliLaunch;
|
|
2920
2970
|
/** POST /api/cli/send — send message to a running CLI { type, text } */
|