@kynver-app/openclaw-agent-os 0.1.39 → 0.1.40

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/index.js CHANGED
@@ -1352,6 +1352,7 @@ var COMPACT_TOOL_COMMAND_LINE_RE = /^(?:>\s*)?🛠️\s*(?:(?:(?:elevated|pty)\b
1352
1352
  var BARE_TOOL_STATUS_LINE_RE = /^(?:`{1,2}\s*)?🛠️\s*(?:Exec|Read|Edit|Write|Patch|Search|Open|Click|Find|Screenshot|Update Plan|Shell|Command)(?:\s*\([^)]*\))?\s*`{0,2}$/iu;
1353
1353
  var PLAIN_TOOL_PROGRESS_LINE_RE = /^print lines \d+(?:-\d+)?(?:\s+from\s+\S.*)?$/i;
1354
1354
  var CODEX_SEARCH_SCAFFOLD_LINE_RE = /^(?:search\s+)?<{4,}\|={4,}\|/i;
1355
+ var TOOL_AGENT_SCOPE_RE = /\(in\s+[~\/]|\(agent\)/i;
1355
1356
  function normalizeLineForToolFilter(line) {
1356
1357
  return line.trim().replace(/^`+|`+$/g, "").trim();
1357
1358
  }
@@ -1374,6 +1375,7 @@ function isRawInternalToolFailureLine(line) {
1374
1375
  if (PLAIN_TOOL_PROGRESS_LINE_RE.test(trimmed)) return true;
1375
1376
  if (CODEX_SEARCH_SCAFFOLD_LINE_RE.test(trimmed)) return true;
1376
1377
  if (/^🛠️\s+/u.test(normalized) && /\bfailed\b/i.test(normalized)) return true;
1378
+ if (/^(?:>\s*)?🛠️/u.test(trimmed) && TOOL_AGENT_SCOPE_RE.test(trimmed)) return true;
1377
1379
  return false;
1378
1380
  }
1379
1381
  function filterDirectChatOutboundContent(content) {