@livx.cc/agentx 0.99.87 → 0.99.91
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/cli.js +38 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9316,7 +9316,7 @@ var SUSPECT = [
|
|
|
9316
9316
|
/\bwe(?: have|'ve)\b|\bwe (?:already )?(?:responded|replied|dispatched|used|called|did|gave|said|asked)\b/i,
|
|
9317
9317
|
/\bno (?:further|more|other)\b/i,
|
|
9318
9318
|
/\[\s*task\b|\bt\d+\b|\bwait(?:ing)? for (?:the )?(?:events?|results?|task)\b/i,
|
|
9319
|
-
|
|
9319
|
+
/[\p{L}\p{N}.!?…]\s*\{\s*"|\bwhat:\s*"/u,
|
|
9320
9320
|
/\b(?:last|previous) (?:response|reply|message|turn)\b|\bthe (?:conversation|transcript|context)\b/i
|
|
9321
9321
|
];
|
|
9322
9322
|
var STRICT = [
|
|
@@ -9333,6 +9333,12 @@ var STRICT = [
|
|
|
9333
9333
|
// its own protocol: using its tools, tool-call syntax, task events
|
|
9334
9334
|
new RegExp(String.raw`(?:\b[Ww]e(?: need to| should| must| have to| will|'ll)|\b[Ll]et'?s|^[Ss]hould|^[Nn]ow we should) (?:call|use|do|dispatch(?: to)?|invoke) (?:the )?${TOOL}\b`),
|
|
9335
9335
|
new RegExp(String.raw`\b(?:[Ww]e (?:called|dispatched)|responded with) ${TOOL}\b|\b${TOOL}\s*\{|\bwhat:\s*"|\b${TOOL} (?:tool )?(?:brief|call|args?|arguments)\b`),
|
|
9336
|
+
// telegraphic self-instruction naming its own tool ("Use Act with brief to search npm.", "Then dispatch Act.") and
|
|
9337
|
+
// tool-call arguments glued onto the text ("One sentence ack.{"brief":…}" — harmony lost the call's recipient;
|
|
9338
|
+
// agentx sessions 20260713-124250, 20261012-225902). A JSON block printed for the listener follows whitespace.
|
|
9339
|
+
// "Use <Tool>" only in the planning shape (with/to/punctuation next) — "Use Act two of the play…" is speech.
|
|
9340
|
+
new RegExp(String.raw`^(?:Use|Call|Invoke) ${TOOL}(?= with\b| to\b|\s*[.,;:]|\s*$)|^(?:(?:Then|Now|So) )?[Dd]ispatch(?: to)? (?:the )?${TOOL}\b`),
|
|
9341
|
+
/[\p{L}\p{N}.!?…]\{\s*"\w+"\s*:/u,
|
|
9336
9342
|
/\bwait(?:ing)? for (?:the )?(?:events?|t\d+)\b|\bt\d+ (?:completed|failed)\b|\[\s*task\b/i
|
|
9337
9343
|
];
|
|
9338
9344
|
var SENTENCE_END = new RegExp(`[.!?\u2026]+["')\\]]*(?:\\s|(?=\\p{Lu}|\\[))`, "gu");
|