@byok-sdk/client 0.10.0 → 0.10.2

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.
@@ -12839,6 +12839,7 @@ var TaskRunner = class {
12839
12839
  gitLease,
12840
12840
  gitBaseline,
12841
12841
  summaryParts: [],
12842
+ finalTextParts: [],
12842
12843
  batcher: new ProgressBatcher(
12843
12844
  (seq, events) => {
12844
12845
  const projected = active.egressEnabled ? this.deps.agentEgress?.projectLatestValue({
@@ -13144,6 +13145,9 @@ var TaskRunner = class {
13144
13145
  if (event.type === "usage") {
13145
13146
  active.lastUsage = event;
13146
13147
  }
13148
+ if (event.type === "tool_use" || event.type === "tool_result" || event.type === "needs_approval") {
13149
+ active.finalTextParts.length = 0;
13150
+ }
13147
13151
  if (event.type === "needs_approval") {
13148
13152
  active.batcher.flush();
13149
13153
  const { taskId } = active;
@@ -13177,7 +13181,8 @@ var TaskRunner = class {
13177
13181
  this.sendAgentMessageRecord(outbox, record);
13178
13182
  return;
13179
13183
  }
13180
- const body = finalOutput.trim();
13184
+ const finalTextRun = active.finalTextParts.join("").trim();
13185
+ const body = finalTextRun !== "" ? finalTextRun : finalOutput.trim();
13181
13186
  if (outbox === void 0 || active.agentRef === void 0) {
13182
13187
  active.pendingMessageCompletion = void 0;
13183
13188
  await this.fail(active.taskId, "required Agent message lane is unavailable for this task", false);
@@ -13221,6 +13226,7 @@ var TaskRunner = class {
13221
13226
  }
13222
13227
  if (event.type === "progress") {
13223
13228
  active.summaryParts.push(event.text);
13229
+ active.finalTextParts.push(event.text);
13224
13230
  }
13225
13231
  if (event.type === "artifact") {
13226
13232
  if (active.agentRef !== void 0 && this.deps.agentEgress !== void 0) {
@@ -18080,7 +18086,7 @@ function createServiceLifecycle(def, opts = {}) {
18080
18086
 
18081
18087
  // src/bin/official-release.ts
18082
18088
  var OFFICIAL_LOCAL_AGENT_RELEASE = resolveLocalAgentReleaseIdentity({
18083
- version: "0.10.0"
18089
+ version: "0.10.2"
18084
18090
  });
18085
18091
 
18086
18092
  // src/bin/config.ts