zelari-code 0.7.11 → 0.7.12
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/main.bundled.js +12 -7
- package/dist/cli/main.bundled.js.map +2 -2
- package/dist/cli/main.js +1 -1
- package/package.json +2 -2
package/dist/cli/main.bundled.js
CHANGED
|
@@ -18345,6 +18345,7 @@ var init_AgentHarness = __esm({
|
|
|
18345
18345
|
const maxToolCalls = this.config.maxToolCallsPerTurn;
|
|
18346
18346
|
let turnText = "";
|
|
18347
18347
|
const turnToolCalls = [];
|
|
18348
|
+
const turnToolResults = [];
|
|
18348
18349
|
for await (const delta of stream) {
|
|
18349
18350
|
if (this.cancelled) {
|
|
18350
18351
|
const cancelEvent = createBrainEvent("error", this.sessionId, {
|
|
@@ -18393,8 +18394,7 @@ ${cached2}`;
|
|
|
18393
18394
|
});
|
|
18394
18395
|
this.emit(endEvent);
|
|
18395
18396
|
yield endEvent;
|
|
18396
|
-
|
|
18397
|
-
role: "tool",
|
|
18397
|
+
turnToolResults.push({
|
|
18398
18398
|
toolCallId: delta.toolCallId,
|
|
18399
18399
|
content: dupResult
|
|
18400
18400
|
});
|
|
@@ -18425,8 +18425,7 @@ ${cached2}`;
|
|
|
18425
18425
|
});
|
|
18426
18426
|
this.emit(endEvent);
|
|
18427
18427
|
yield endEvent;
|
|
18428
|
-
|
|
18429
|
-
role: "tool",
|
|
18428
|
+
turnToolResults.push({
|
|
18430
18429
|
toolCallId: delta.toolCallId,
|
|
18431
18430
|
content: resultStr
|
|
18432
18431
|
});
|
|
@@ -18441,8 +18440,7 @@ ${cached2}`;
|
|
|
18441
18440
|
});
|
|
18442
18441
|
this.emit(endEvent);
|
|
18443
18442
|
yield endEvent;
|
|
18444
|
-
|
|
18445
|
-
role: "tool",
|
|
18443
|
+
turnToolResults.push({
|
|
18446
18444
|
toolCallId: delta.toolCallId,
|
|
18447
18445
|
content: `[skipped] maxToolCallsPerTurn reached (limit=${maxToolCalls})`
|
|
18448
18446
|
});
|
|
@@ -18456,6 +18454,13 @@ ${cached2}`;
|
|
|
18456
18454
|
...turnToolCalls.length > 0 ? { toolCalls: turnToolCalls } : {}
|
|
18457
18455
|
});
|
|
18458
18456
|
}
|
|
18457
|
+
for (const tr of turnToolResults) {
|
|
18458
|
+
this.config.messages.push({
|
|
18459
|
+
role: "tool",
|
|
18460
|
+
toolCallId: tr.toolCallId,
|
|
18461
|
+
content: tr.content
|
|
18462
|
+
});
|
|
18463
|
+
}
|
|
18459
18464
|
break;
|
|
18460
18465
|
} else if (delta.kind === "error") {
|
|
18461
18466
|
const errEvent = createBrainEvent("error", this.sessionId, {
|
|
@@ -30210,7 +30215,7 @@ function loadSkillMdSkills(projectRoot = process.cwd(), options = {}) {
|
|
|
30210
30215
|
|
|
30211
30216
|
// src/cli/main.ts
|
|
30212
30217
|
init_skills2();
|
|
30213
|
-
var VERSION = "0.7.
|
|
30218
|
+
var VERSION = "0.7.12";
|
|
30214
30219
|
async function backgroundUpdateCheck() {
|
|
30215
30220
|
if (process.env.ANATHEMA_DEV === "1") return;
|
|
30216
30221
|
await new Promise((resolve) => setTimeout(resolve, 3e3));
|