@standardagents/builder 0.27.3 → 0.27.4

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.
@@ -66192,7 +66192,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
66192
66192
  });
66193
66193
 
66194
66194
  // src/version.ts
66195
- var BUILDER_VERSION = "0.27.3".length > 0 ? "0.27.3" : "dev";
66195
+ var BUILDER_VERSION = "0.27.4".length > 0 ? "0.27.4" : "dev";
66196
66196
 
66197
66197
  // src/api/diagnostics.get.ts
66198
66198
  init_LLMRequest();
package/dist/index.js CHANGED
@@ -21416,7 +21416,11 @@ ${packedThreadRouteCode}
21416
21416
  authContext = authResult;
21417
21417
 
21418
21418
  if (routePath.startsWith('/api/threads/')) {
21419
- const threadId = routeMatch.params?.id || routeMatch.params?.threadId;
21419
+ // Packed and user thread endpoints reserve threadId for the owning
21420
+ // thread while nested endpoint parameters may also be named id.
21421
+ // Prefer the explicit thread parameter so /pending/:id and similar
21422
+ // routes authorize against the thread instead of the nested resource.
21423
+ const threadId = routeMatch.params?.threadId || routeMatch.params?.id;
21420
21424
  if (threadId) {
21421
21425
  const agentBuilderId = env.AGENT_BUILDER.idFromName('singleton');
21422
21426
  const agentBuilder = env.AGENT_BUILDER.get(agentBuilderId);