@adhdev/daemon-core 0.6.53 → 0.6.55
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 +76 -34
- package/dist/index.js +714 -271
- package/dist/index.js.map +1 -1
- package/package.json +1 -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 +267 -251
- package/src/cli-adapters/terminal-screen.ts +268 -0
- package/src/commands/chat-commands.ts +41 -15
- package/src/commands/cli-manager.ts +4 -2
- package/src/daemon/dev-server.ts +245 -35
- package/src/providers/acp-provider-instance.ts +1 -1
- package/src/providers/cli-provider-instance.ts +21 -8
- 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,6 +2564,40 @@ 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
|
+
}) => string | null;
|
|
2579
|
+
/** Parse approval modal from PTY output → ModalInfo | null */
|
|
2580
|
+
parseApproval?: (input: {
|
|
2581
|
+
buffer: string;
|
|
2582
|
+
rawBuffer?: string;
|
|
2583
|
+
tail: string;
|
|
2584
|
+
}) => {
|
|
2585
|
+
message: string;
|
|
2586
|
+
buttons: string[];
|
|
2587
|
+
} | null;
|
|
2588
|
+
/** Produce a cli-specific prompt from a dashboard action payload */
|
|
2589
|
+
resolveAction?: (data: any) => string;
|
|
2590
|
+
/** Custom scripts */
|
|
2591
|
+
[name: string]: ((input: any) => any) | undefined;
|
|
2592
|
+
}
|
|
2593
|
+
interface CliScriptInput {
|
|
2594
|
+
buffer: string;
|
|
2595
|
+
rawBuffer: string;
|
|
2596
|
+
recentBuffer: string;
|
|
2597
|
+
screenText: string;
|
|
2598
|
+
messages: CliChatMessage[];
|
|
2599
|
+
partialResponse: string;
|
|
2600
|
+
}
|
|
2568
2601
|
interface CliProviderModule {
|
|
2569
2602
|
type: string;
|
|
2570
2603
|
name: string;
|
|
@@ -2576,12 +2609,6 @@ interface CliProviderModule {
|
|
|
2576
2609
|
shell: boolean;
|
|
2577
2610
|
env: Record<string, string>;
|
|
2578
2611
|
};
|
|
2579
|
-
patterns: {
|
|
2580
|
-
prompt: RegExp[];
|
|
2581
|
-
generating: RegExp[];
|
|
2582
|
-
approval: RegExp[];
|
|
2583
|
-
ready: RegExp[];
|
|
2584
|
-
};
|
|
2585
2612
|
timeouts?: {
|
|
2586
2613
|
/** PTY output batch transmit interval (default 50ms) */
|
|
2587
2614
|
ptyFlush?: number;
|
|
@@ -2597,10 +2624,9 @@ interface CliProviderModule {
|
|
|
2597
2624
|
maxResponse?: number;
|
|
2598
2625
|
/** shutdown after kill wait (default 1000ms) */
|
|
2599
2626
|
shutdownGrace?: number;
|
|
2600
|
-
/** Output settle debounce before evaluating
|
|
2627
|
+
/** Output settle debounce before evaluating status (default 300ms) */
|
|
2601
2628
|
outputSettle?: number;
|
|
2602
2629
|
};
|
|
2603
|
-
cleanOutput(raw: string, lastUserInput?: string): string;
|
|
2604
2630
|
}
|
|
2605
2631
|
declare class ProviderCliAdapter implements CliAdapter {
|
|
2606
2632
|
private extraArgs;
|
|
@@ -2610,6 +2636,7 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2610
2636
|
private provider;
|
|
2611
2637
|
private ptyProcess;
|
|
2612
2638
|
private messages;
|
|
2639
|
+
private structuredMessages;
|
|
2613
2640
|
private currentStatus;
|
|
2614
2641
|
private onStatusChange;
|
|
2615
2642
|
private responseBuffer;
|
|
@@ -2620,7 +2647,6 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2620
2647
|
private idleTimeout;
|
|
2621
2648
|
private ready;
|
|
2622
2649
|
private startupBuffer;
|
|
2623
|
-
/** After spawn: briefly skip generating/settle so splash/redraw does not flip status; not used to gate sendMessage */
|
|
2624
2650
|
private startupParseGate;
|
|
2625
2651
|
private spawnAt;
|
|
2626
2652
|
private onPtyDataCallback;
|
|
@@ -2635,23 +2661,44 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2635
2661
|
private settledBuffer;
|
|
2636
2662
|
private resizeSuppressUntil;
|
|
2637
2663
|
private statusHistory;
|
|
2664
|
+
private cliScripts;
|
|
2665
|
+
/** Full accumulated ANSI-stripped PTY output */
|
|
2666
|
+
private accumulatedBuffer;
|
|
2667
|
+
/** Full accumulated raw PTY output (with ANSI) */
|
|
2668
|
+
private accumulatedRawBuffer;
|
|
2669
|
+
/** Current visible terminal screen snapshot */
|
|
2670
|
+
private terminalScreen;
|
|
2671
|
+
/** Max accumulated buffer size (last 50KB) */
|
|
2672
|
+
private static readonly MAX_ACCUMULATED_BUFFER;
|
|
2638
2673
|
private setStatus;
|
|
2639
2674
|
private readonly timeouts;
|
|
2640
2675
|
private readonly approvalKeys;
|
|
2641
2676
|
constructor(provider: CliProviderModule, workingDir: string, extraArgs?: string[]);
|
|
2677
|
+
/** Inject CLI scripts after construction (e.g. when resolved by ProviderLoader) */
|
|
2678
|
+
setCliScripts(scripts: CliScripts): void;
|
|
2642
2679
|
setServerConn(serverConn: any): void;
|
|
2643
2680
|
setOnStatusChange(callback: () => void): void;
|
|
2644
2681
|
setOnPtyData(callback: (data: string) => void): void;
|
|
2645
2682
|
spawn(): Promise<void>;
|
|
2646
2683
|
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
2684
|
private scheduleSettle;
|
|
2652
2685
|
private evaluateSettled;
|
|
2653
2686
|
private finishResponse;
|
|
2687
|
+
private runDetectStatus;
|
|
2688
|
+
private runParseApproval;
|
|
2654
2689
|
getStatus(): CliSessionStatus;
|
|
2690
|
+
/**
|
|
2691
|
+
* Script-based full parse — returns ReadChatResult.
|
|
2692
|
+
* Called by command handler / dashboard for rich content rendering.
|
|
2693
|
+
*/
|
|
2694
|
+
getScriptParsedStatus(): any;
|
|
2695
|
+
/** Whether this adapter has CLI scripts loaded */
|
|
2696
|
+
hasCliScripts(): boolean;
|
|
2697
|
+
/**
|
|
2698
|
+
* Resolves an action (like 'fix' lint error) from the dashboard.
|
|
2699
|
+
* Uses resolveAction script if available, otherwise falls back to standard text.
|
|
2700
|
+
*/
|
|
2701
|
+
resolveAction(data: any): Promise<void>;
|
|
2655
2702
|
sendMessage(text: string): Promise<void>;
|
|
2656
2703
|
getPartialResponse(): string;
|
|
2657
2704
|
cancel(): void;
|
|
@@ -2660,17 +2707,8 @@ declare class ProviderCliAdapter implements CliAdapter {
|
|
|
2660
2707
|
isProcessing(): boolean;
|
|
2661
2708
|
isReady(): boolean;
|
|
2662
2709
|
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
2710
|
resolveModal(buttonIndex: number): void;
|
|
2669
2711
|
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
2712
|
getDebugState(): Record<string, any>;
|
|
2675
2713
|
}
|
|
2676
2714
|
|
|
@@ -2902,8 +2940,12 @@ declare class DevServer {
|
|
|
2902
2940
|
private handleFindCommon;
|
|
2903
2941
|
private handleFindByText;
|
|
2904
2942
|
private handleDomContext;
|
|
2943
|
+
private getDefaultAutoImplReference;
|
|
2944
|
+
private resolveAutoImplReference;
|
|
2945
|
+
private loadAutoImplReferenceScripts;
|
|
2905
2946
|
private handleAutoImplement;
|
|
2906
2947
|
private buildAutoImplPrompt;
|
|
2948
|
+
private buildCliAutoImplPrompt;
|
|
2907
2949
|
private handleAutoImplSSE;
|
|
2908
2950
|
private handleAutoImplCancel;
|
|
2909
2951
|
private sendAutoImplSSE;
|