u-foo 2.3.28 → 2.3.29
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/package.json +1 -1
- package/src/code/nativeRunner.js +5 -2
package/package.json
CHANGED
package/src/code/nativeRunner.js
CHANGED
|
@@ -9,8 +9,11 @@ const { getBashToolDescription } = require("./prompts/toolDescriptions/bash");
|
|
|
9
9
|
const CORE_TOOL_NAMES = new Set(["read", "write", "edit", "bash"]);
|
|
10
10
|
const DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
11
11
|
const DEFAULT_ANTHROPIC_BASE_URL = "https://api.anthropic.com/v1";
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// Claude Code SDK defaults to no turn limit; built-in agents cap at 30 (DreamTask)
|
|
13
|
+
// to 200 (fork). We count individual tool calls (not turns), so 100 leaves headroom
|
|
14
|
+
// for non-trivial tasks while still catching runaway loops. Override via env.
|
|
15
|
+
const DEFAULT_MAX_NATIVE_TOOL_CALLS = 100;
|
|
16
|
+
const DEFAULT_MAX_NATIVE_TOOL_ERRORS = 5;
|
|
14
17
|
|
|
15
18
|
function nowMs() {
|
|
16
19
|
return Date.now();
|