@blade-hq/agent-client 2610.0.0-beta.77 → 2610.0.0-beta.79
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 +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1244,6 +1244,10 @@ function buildContextTurn(entry, sequence) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
// src/shared/projection/builder.ts
|
|
1247
|
+
function backgroundTaskStatus(payload) {
|
|
1248
|
+
const tasks = Array.isArray(payload.tasks) ? payload.tasks : [];
|
|
1249
|
+
return tasks.some((task) => isRecord(task) && (["failed", "cancelled", "lost"].includes(String(task.status)) || typeof task.exit_code === "number" && task.exit_code !== 0)) ? "error" : "done";
|
|
1250
|
+
}
|
|
1247
1251
|
function acknowledgeTurnEvents(acknowledge) {
|
|
1248
1252
|
acknowledge?.();
|
|
1249
1253
|
}
|
|
@@ -1668,7 +1672,7 @@ var ClientProjectionBuilder = class {
|
|
|
1668
1672
|
this.nextTurnId("bg:tasks_completed"),
|
|
1669
1673
|
loopId,
|
|
1670
1674
|
"bg:tasks_completed",
|
|
1671
|
-
|
|
1675
|
+
backgroundTaskStatus(payload),
|
|
1672
1676
|
`Background tasks completed (${count})`,
|
|
1673
1677
|
detail || null,
|
|
1674
1678
|
{ task_ids: taskIds, count }
|
|
@@ -2010,6 +2014,7 @@ var ClientProjectionBuilder = class {
|
|
|
2010
2014
|
skill_id: optStr(payload.skill_id),
|
|
2011
2015
|
description: optStr(payload.description),
|
|
2012
2016
|
parent_fork_tool_call_id: optStr(payload.parent_fork_tool_call_id),
|
|
2017
|
+
...typeof payload.run_status === "string" ? { run_status: payload.run_status } : {},
|
|
2013
2018
|
ok
|
|
2014
2019
|
};
|
|
2015
2020
|
if (state) {
|
|
@@ -6796,7 +6801,7 @@ function resolveServiceUrl(endpoints, name, path = "") {
|
|
|
6796
6801
|
|
|
6797
6802
|
// src/version.ts
|
|
6798
6803
|
var SDK_NAME = "agent-client";
|
|
6799
|
-
var SDK_VERSION = true ? "2610.0.0-beta.
|
|
6804
|
+
var SDK_VERSION = true ? "2610.0.0-beta.79" : "1.1.1";
|
|
6800
6805
|
|
|
6801
6806
|
// src/commands/protocol.ts
|
|
6802
6807
|
function isCommandEnvelope(value) {
|