@bolt-cli/cli 0.15.3 → 0.15.4

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/lib/agent.js CHANGED
@@ -43,8 +43,9 @@ you to restate the intent with these tools (usually bash).
43
43
 
44
44
  Call format is strict: emit every tool call ONLY as a fenced \`\`\`tool
45
45
  block. Never as XML or chat-template syntax (<tool>, <tool_call>,
46
- <function>, <function_calls>, <invoke>), never as bare JSON outside a
47
- fence, and never wrapped in 自知 or similar markup - the operator-visible
46
+ <function>, <function_calls>, <invoke>, <dots_function_call> or any other
47
+ relay-native call tag), never as bare JSON outside a fence, and never
48
+ wrapped in 自知 or similar markup - the operator-visible
48
49
  channel reads fenced blocks, and anything else reaches them as raw garbage.
49
50
  Never send an empty reply: if you have nothing to add, state in one
50
51
  sentence that the task is complete.
package/lib/toolparse.js CHANGED
@@ -48,8 +48,14 @@ const RESERVED_ATTR_KEYS = new Set(["id", "type", "index", "session"]);
48
48
  const THINK_TAGS = ["thinking", "thought", "scratchpad", "reasoning", "think"];
49
49
 
50
50
  // XML-family tags that carry one call each. "function_calls" is a wrapper
51
- // whose children are parsed recursively.
52
- const XML_TAGS = ["function_calls", "tool_call", "tool_use", "function_call", "function", "tool", "invoke"];
51
+ // whose children are parsed recursively. Some relays emit their native call
52
+ // tag instead of the instructed fence (e.g. <dots_function_call>); those are
53
+ // part of the same family — parse them as calls and keep them off the
54
+ // operator's screen, including when the call body is empty.
55
+ const XML_TAGS = [
56
+ "dots_function_calls", "dots_function_call", "dots_tool_call", "dots_tool_use", "dots_invoke",
57
+ "function_calls", "tool_call", "tool_use", "function_call", "function", "tool", "invoke",
58
+ ];
53
59
 
54
60
  const str = (v) => (typeof v === "string" && v.trim() ? v.trim() : null);
55
61
  const firstOf = (obj, keys) => {
@@ -302,7 +308,7 @@ function xmlToCall(attrs, body) {
302
308
  }
303
309
  // No name but a nested call block (or nothing at all): recurse — the
304
310
  // parameters collected here belong to the inner call, parsed whole.
305
- const hasNestedCall = /<(?:antml:)?(?:function_calls|tool_call|tool_use|function_call|function|tool|invoke)\b/.test(trimmed);
311
+ const hasNestedCall = /<(?:antml:)?(?:dots_function_calls|dots_function_call|dots_tool_call|dots_tool_use|dots_invoke|function_calls|tool_call|tool_use|function_call|function|tool|invoke)\b/.test(trimmed);
306
312
  if (!name && (hasNestedCall || !found)) return { recurse: true };
307
313
  if (!name) return { ok: false, error: "no tool name in block" };
308
314
  // Name without parameters while a nested call block sits inside: the real
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolt-cli/cli",
3
- "version": "0.15.3",
3
+ "version": "0.15.4",
4
4
  "description": "Bolt terminal CLI — authorized testing and tool-building from your terminal or VS Code.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "commonjs",