@arbidocs/sdk 0.3.14 → 0.3.16

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.cjs CHANGED
@@ -577,6 +577,14 @@ async function streamSSE(response, callbacks = {}) {
577
577
  callbacks.onError?.(message);
578
578
  },
579
579
  // ARBI-specific events (dot-prefixed from server)
580
+ "arbi.message_queued": (raw) => {
581
+ const data = JSON.parse(raw);
582
+ if (data.user_message) {
583
+ userMessage = data.user_message;
584
+ callbacks.onUserMessage?.(data.user_message);
585
+ }
586
+ callbacks.onMessageQueued?.(data);
587
+ },
580
588
  "arbi.agent_step": (raw) => {
581
589
  const data = JSON.parse(raw);
582
590
  const label = formatAgentStepLabel(data);