@standardagents/builder 0.27.3 → 0.27.5

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/runtime.js CHANGED
@@ -16093,6 +16093,9 @@ var DurableThread = class _DurableThread extends DurableObject {
16093
16093
  codeExecutionBridges = /* @__PURE__ */ new Map();
16094
16094
  constructor(ctx, env) {
16095
16095
  super(ctx, env);
16096
+ ctx.setWebSocketAutoResponse(
16097
+ new WebSocketRequestResponsePair("stream_ping", "stream_pong")
16098
+ );
16096
16099
  this.alarmQueue = new AlarmQueue(ctx);
16097
16100
  this.alarmQueue.setExecutor(
16098
16101
  async (method, args, itemId) => {
@@ -22314,6 +22317,9 @@ var DurableAgentBuilder = class extends DurableObject {
22314
22317
  eventSockets = /* @__PURE__ */ new Set();
22315
22318
  constructor(ctx, env) {
22316
22319
  super(ctx, env);
22320
+ ctx.setWebSocketAutoResponse(
22321
+ new WebSocketRequestResponsePair("stream_ping", "stream_pong")
22322
+ );
22317
22323
  const sockets = ctx.getWebSockets();
22318
22324
  for (const ws of sockets) {
22319
22325
  const attachment = ws.deserializeAttachment();