deepseek-coder-agent-cli 1.0.31 → 1.0.33
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.
|
@@ -51,16 +51,16 @@ import { theme } from '../ui/theme.js';
|
|
|
51
51
|
import { startNewRun } from '../tools/fileChangeTracker.js';
|
|
52
52
|
import { onSudoPasswordNeeded, offSudoPasswordNeeded, provideSudoPassword } from '../core/sudoPasswordManager.js';
|
|
53
53
|
// Timeout constants for attack tournament - balanced for model response time
|
|
54
|
-
const ATTACK_AGENT_STEP_TIMEOUT_MS =
|
|
55
|
-
const ATTACK_REASONING_TIMEOUT_MS =
|
|
54
|
+
const ATTACK_AGENT_STEP_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes per agent step
|
|
55
|
+
const ATTACK_REASONING_TIMEOUT_MS = 90 * 1000; // 90 seconds max for reasoning-only before forcing action
|
|
56
56
|
// No tournament timeout - continues until success
|
|
57
57
|
const MIN_SUCCESS_SCORE = 5; // Minimum score to consider tournament successful
|
|
58
58
|
const ATTACK_ENV_FLAG = process.env['AGI_ENABLE_ATTACKS'] === '1';
|
|
59
59
|
const MAX_TOURNAMENT_ROUNDS = 8; // Safety cap to avoid runaway loops
|
|
60
60
|
// Timeout constants for regular prompt processing (reasoning models like DeepSeek)
|
|
61
|
-
//
|
|
62
|
-
const PROMPT_REASONING_TIMEOUT_MS =
|
|
63
|
-
const PROMPT_STEP_TIMEOUT_MS =
|
|
61
|
+
// Balanced to allow thinking but prevent getting stuck in planning loops
|
|
62
|
+
const PROMPT_REASONING_TIMEOUT_MS = 90 * 1000; // 90 seconds max for reasoning-only without action
|
|
63
|
+
const PROMPT_STEP_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes per event step
|
|
64
64
|
/**
|
|
65
65
|
* Iterate over an async iterator with a timeout per iteration.
|
|
66
66
|
* If no event is received within the timeout, yields a special timeout marker.
|