deepseek-coder-agent-cli 1.0.66 → 1.0.67
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/headless/interactiveShell.d.ts.map +1 -1
- package/dist/headless/interactiveShell.js +15 -5
- package/dist/headless/interactiveShell.js.map +1 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +2 -0
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +58 -9
- package/dist/ui/UnifiedUIRenderer.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactiveShell.d.ts","sourceRoot":"","sources":["../../src/headless/interactiveShell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
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
|
-
//
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
85
|
-
|
|
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;
|