deepseek-coder-agent-cli 1.0.71 → 1.0.73

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.
@@ -1 +1 @@
1
- {"version":3,"file":"interactiveShell.d.ts","sourceRoot":"","sources":["../../src/headless/interactiveShell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA0LH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAOD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDzF"}
1
+ {"version":3,"file":"interactiveShell.d.ts","sourceRoot":"","sources":["../../src/headless/interactiveShell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA2LH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAOD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDzF"}
@@ -22,6 +22,7 @@ import { promisify } from 'node:util';
22
22
  import chalk from 'chalk';
23
23
  import gradientString from 'gradient-string';
24
24
  import { initializeFlowProtection, getFlowProtection } from '../core/flowProtection.js';
25
+ import { getHITL } from '../core/hitl.js';
25
26
  // Stub functions (antiTermination removed)
26
27
  const initializeProtection = (_config) => { };
27
28
  const enterCriticalSection = (_name) => { };
@@ -443,6 +444,7 @@ class InteractiveShell {
443
444
  onCtrlC: (info) => this.handleCtrlC(info),
444
445
  onToggleAutoContinue: () => this.handleAutoContinueToggle(),
445
446
  onToggleThinking: () => this.handleThinkingToggle(),
447
+ onToggleHITL: () => this.handleHITLToggle(),
446
448
  });
447
449
  // Register cleanup callback for graceful shutdown
448
450
  onShutdown(() => {
@@ -3860,6 +3862,12 @@ Any text response is a failure. Only tool calls are accepted.`;
3860
3862
  this.promptController?.setStatusMessage(`Thinking: ${thinkingLabel}`);
3861
3863
  setTimeout(() => this.promptController?.setStatusMessage(null), 1500);
3862
3864
  }
3865
+ handleHITLToggle() {
3866
+ const mode = this.promptController?.getModeToggleState().hitlMode ?? 'off';
3867
+ getHITL().updateConfig({ autoPause: mode === 'on' });
3868
+ this.promptController?.setStatusMessage(`HITL: ${mode}`);
3869
+ setTimeout(() => this.promptController?.setStatusMessage(null), 1500);
3870
+ }
3863
3871
  handleCtrlC(info) {
3864
3872
  const now = Date.now();
3865
3873
  // Reset count if more than 2 seconds since last Ctrl+C