@standardagents/builder 0.38.1 → 0.38.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.
package/dist/index.js CHANGED
@@ -22694,7 +22694,10 @@ ${packedThreadRouteCode}
22694
22694
  // across requests.
22695
22695
  let threadAccess = null;
22696
22696
 
22697
- // Require authentication for all API routes except public ones
22697
+ // Require authentication for all API routes except public ones.
22698
+ // WebSocket tickets are single-use and are consumed here. Controllers
22699
+ // must reuse context.auth (resolveRequestAuth) rather than calling
22700
+ // requireAuth again, or a ticket-only upgrade will 401.
22698
22701
  if (isApiRoute && !publicRoute) {
22699
22702
  const authResult = await requireAuth(request, env);
22700
22703