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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u-foo",
3
- "version": "2.3.28",
3
+ "version": "2.3.29",
4
4
  "description": "Multi-Agent Workspace Protocol. Just add u. claude → uclaude, codex → ucodex.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://ufoo.dev",
@@ -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
- const DEFAULT_MAX_NATIVE_TOOL_CALLS = 12;
13
- const DEFAULT_MAX_NATIVE_TOOL_ERRORS = 1;
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();