@standardagents/builder 0.29.0 → 0.29.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.
@@ -13126,7 +13126,10 @@ var init_ThreadStateImpl = __esm({
13126
13126
  data: { deferred: true, toolCallId }
13127
13127
  };
13128
13128
  }
13129
- const local = await this._threadInstance.callClientTool(request);
13129
+ const local = await this._threadInstance.callClientTool(
13130
+ request,
13131
+ canPark && toolCallId ? { toolCallId, side } : void 0
13132
+ );
13130
13133
  if (local.ok || !this.isNoClient(local)) return local;
13131
13134
  const env2 = this._threadInstance.env;
13132
13135
  if (env2?.AGENT_BUILDER_THREAD) {
@@ -13173,7 +13176,9 @@ var init_ThreadStateImpl = __esm({
13173
13176
  error: "This thread runtime cannot open client streams. Client streaming requires the DurableThread bridge."
13174
13177
  };
13175
13178
  }
13176
- const local = await instance.openClientStream(request);
13179
+ const wakeUserId = this._metadata.user_id ?? null;
13180
+ const withWake = (threadId) => wakeUserId ? { ...request, wake: { threadId, userId: wakeUserId } } : request;
13181
+ const local = await instance.openClientStream(withWake(this._metadata.id));
13177
13182
  if (local.ok || !this.isNoClient(local)) return local;
13178
13183
  const env2 = this._threadInstance.env;
13179
13184
  if (!env2?.AGENT_BUILDER_THREAD) return local;
@@ -13184,7 +13189,7 @@ var init_ThreadStateImpl = __esm({
13184
13189
  try {
13185
13190
  const stub = env2.AGENT_BUILDER_THREAD.get(env2.AGENT_BUILDER_THREAD.idFromName(parentId));
13186
13191
  if (typeof stub.proxyStreamOpen === "function") {
13187
- const opened = await stub.proxyStreamOpen(request);
13192
+ const opened = await stub.proxyStreamOpen(withWake(parentId));
13188
13193
  if (opened.ok && opened.id) {
13189
13194
  return { ok: true, duplex: this.buildProxyDuplex(stub, opened.id) };
13190
13195
  }
@@ -66556,7 +66561,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
66556
66561
  });
66557
66562
 
66558
66563
  // src/version.ts
66559
- var BUILDER_VERSION = "0.29.0".length > 0 ? "0.29.0" : "dev";
66564
+ var BUILDER_VERSION = "0.29.2".length > 0 ? "0.29.2" : "dev";
66560
66565
 
66561
66566
  // src/api/diagnostics.get.ts
66562
66567
  init_LLMRequest();