@adhdev/daemon-core 0.6.55 → 0.6.57

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 CHANGED
@@ -2575,6 +2575,8 @@ interface CliScripts {
2575
2575
  /** Lightweight status detection (high-frequency polling) → AgentStatus string */
2576
2576
  detectStatus?: (input: {
2577
2577
  tail: string;
2578
+ screenText?: string;
2579
+ rawBuffer?: string;
2578
2580
  }) => string | null;
2579
2581
  /** Parse approval modal from PTY output → ModalInfo | null */
2580
2582
  parseApproval?: (input: {
@@ -2603,6 +2605,8 @@ interface CliProviderModule {
2603
2605
  name: string;
2604
2606
  category: 'cli';
2605
2607
  binary: string;
2608
+ sendDelayMs?: number;
2609
+ sendKey?: string;
2606
2610
  spawn: {
2607
2611
  command: string;
2608
2612
  args: string[];
@@ -2659,6 +2663,12 @@ declare class ProviderCliAdapter implements CliAdapter {
2659
2663
  private approvalExitTimeout;
2660
2664
  private settleTimer;
2661
2665
  private settledBuffer;
2666
+ private submitPendingUntil;
2667
+ private responseSettleIgnoreUntil;
2668
+ private responseEpoch;
2669
+ private submitRetryTimer;
2670
+ private submitRetryUsed;
2671
+ private submitRetryPromptSnippet;
2662
2672
  private resizeSuppressUntil;
2663
2673
  private statusHistory;
2664
2674
  private cliScripts;
@@ -2673,6 +2683,8 @@ declare class ProviderCliAdapter implements CliAdapter {
2673
2683
  private setStatus;
2674
2684
  private readonly timeouts;
2675
2685
  private readonly approvalKeys;
2686
+ private readonly sendDelayMs;
2687
+ private readonly sendKey;
2676
2688
  constructor(provider: CliProviderModule, workingDir: string, extraArgs?: string[]);
2677
2689
  /** Inject CLI scripts after construction (e.g. when resolved by ProviderLoader) */
2678
2690
  setCliScripts(scripts: CliScripts): void;
@@ -2682,6 +2694,7 @@ declare class ProviderCliAdapter implements CliAdapter {
2682
2694
  spawn(): Promise<void>;
2683
2695
  private handleOutput;
2684
2696
  private scheduleSettle;
2697
+ private armApprovalExitTimeout;
2685
2698
  private evaluateSettled;
2686
2699
  private finishResponse;
2687
2700
  private runDetectStatus;
@@ -2957,6 +2970,7 @@ declare class DevServer {
2957
2970
  private readBody;
2958
2971
  /** GET /api/cli/status — list all running CLI/ACP instances with state */
2959
2972
  private handleCliStatus;
2973
+ private findCliTarget;
2960
2974
  /** POST /api/cli/launch — launch a CLI agent { type, workingDir?, args? } */
2961
2975
  private handleCliLaunch;
2962
2976
  /** POST /api/cli/send — send message to a running CLI { type, text } */