deepseek-coder-agent-cli 1.0.66 → 1.0.68

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 CHANGED
@@ -1,3 +1,5 @@
1
+ So Cursor and Antigravity both have potential fundamental correctness in existing as a coding agent due to the existence of an editor however Codex CLI and Gemini CLI have no reasons to exist at all.
2
+
1
3
  Bo's report to Congress - https://media.defense.gov/2026/Jan/12/2003855671/-1/-1/0/ARTIFICIAL-INTELLIGENCE-STRATEGY-FOR-THE-DEPARTMENT-OF-WAR.PDF
2
4
 
3
5
  https://media.defense.gov/2025/Dec/23/2003849070/-1/-1/1/ANNUAL-REPORT-TO-CONGRESS-MILITARY-AND-SECURITY-DEVELOPMENTS-INVOLVING-THE-PEOPLES-REPUBLIC-OF-CHINA-2025.PDF
@@ -1 +1 @@
1
- {"version":3,"file":"interactiveShell.d.ts","sourceRoot":"","sources":["../../src/headless/interactiveShell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAgLH,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;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"}
@@ -61,28 +61,38 @@ const MIN_SUCCESS_SCORE = 5; // Minimum score to consider tournament successful
61
61
  const ATTACK_ENV_FLAG = process.env['AGI_ENABLE_ATTACKS'] === '1';
62
62
  const MAX_TOURNAMENT_ROUNDS = 8; // Safety cap to avoid runaway loops
63
63
  // Timeout constants for regular prompt processing (reasoning models like DeepSeek)
64
- // Balanced to allow thinking but prevent getting stuck in planning loops
64
+ // DISABLED: Step timeout removed to allow models to take as long as needed
65
65
  const PROMPT_REASONING_TIMEOUT_MS = 60 * 1000; // 60 seconds max for reasoning-only without action
66
- const PROMPT_STEP_TIMEOUT_MS = 2 * 60 * 1000; // 2 minutes per event step (covers most command executions)
66
+ const PROMPT_STEP_TIMEOUT_MS = Infinity; // Disabled - no step timeout
67
67
  const HITL_TOOL_PREFIX = 'HITL_';
68
68
  const isHitlToolName = (toolName) => toolName.startsWith(HITL_TOOL_PREFIX);
69
69
  /**
70
70
  * Iterate over an async iterator with a timeout per iteration.
71
71
  * If no event is received within the timeout, yields a special timeout marker.
72
72
  * Emits timeout markers without aborting the underlying iterator.
73
+ * Pass Infinity to disable timeouts entirely.
73
74
  */
74
75
  async function* iterateWithTimeout(iterator, timeoutMs, onTimeout) {
75
76
  const asyncIterator = iterator[Symbol.asyncIterator]();
76
77
  let pending = null;
77
78
  let done = false;
78
- const effectiveTimeoutMs = Number.isFinite(timeoutMs) && timeoutMs > 0 ? timeoutMs : 1000;
79
+ // If timeout is Infinity or not a positive finite number, disable timeout entirely
80
+ const timeoutDisabled = !Number.isFinite(timeoutMs) || timeoutMs <= 0;
79
81
  try {
80
82
  while (true) {
81
83
  if (!pending) {
82
84
  pending = asyncIterator.next();
83
85
  }
84
- const timeoutPromise = new Promise((resolve) => setTimeout(() => resolve({ __timeout: true }), effectiveTimeoutMs));
85
- const result = await Promise.race([pending, timeoutPromise]);
86
+ let result;
87
+ if (timeoutDisabled) {
88
+ // No timeout - just wait for the next value
89
+ result = await pending;
90
+ }
91
+ else {
92
+ // Race between pending result and timeout
93
+ const timeoutPromise = new Promise((resolve) => setTimeout(() => resolve({ __timeout: true }), timeoutMs));
94
+ result = await Promise.race([pending, timeoutPromise]);
95
+ }
86
96
  if ('__timeout' in result) {
87
97
  onTimeout?.();
88
98
  yield result;