@standardagents/builder 0.29.0 → 0.29.1

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.
@@ -13173,7 +13173,9 @@ var init_ThreadStateImpl = __esm({
13173
13173
  error: "This thread runtime cannot open client streams. Client streaming requires the DurableThread bridge."
13174
13174
  };
13175
13175
  }
13176
- const local = await instance.openClientStream(request);
13176
+ const wakeUserId = this._metadata.user_id ?? null;
13177
+ const withWake = (threadId) => wakeUserId ? { ...request, wake: { threadId, userId: wakeUserId } } : request;
13178
+ const local = await instance.openClientStream(withWake(this._metadata.id));
13177
13179
  if (local.ok || !this.isNoClient(local)) return local;
13178
13180
  const env2 = this._threadInstance.env;
13179
13181
  if (!env2?.AGENT_BUILDER_THREAD) return local;
@@ -13184,7 +13186,7 @@ var init_ThreadStateImpl = __esm({
13184
13186
  try {
13185
13187
  const stub = env2.AGENT_BUILDER_THREAD.get(env2.AGENT_BUILDER_THREAD.idFromName(parentId));
13186
13188
  if (typeof stub.proxyStreamOpen === "function") {
13187
- const opened = await stub.proxyStreamOpen(request);
13189
+ const opened = await stub.proxyStreamOpen(withWake(parentId));
13188
13190
  if (opened.ok && opened.id) {
13189
13191
  return { ok: true, duplex: this.buildProxyDuplex(stub, opened.id) };
13190
13192
  }
@@ -66556,7 +66558,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
66556
66558
  });
66557
66559
 
66558
66560
  // src/version.ts
66559
- var BUILDER_VERSION = "0.29.0".length > 0 ? "0.29.0" : "dev";
66561
+ var BUILDER_VERSION = "0.29.1".length > 0 ? "0.29.1" : "dev";
66560
66562
 
66561
66563
  // src/api/diagnostics.get.ts
66562
66564
  init_LLMRequest();