@moxt-ai/mobius 0.0.385 → 0.0.386

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.
@@ -3,7 +3,7 @@ import {
3
3
  __export,
4
4
  __using,
5
5
  package_default
6
- } from "./chunk-VNT3WUWZ.js";
6
+ } from "./chunk-Z6JG65YI.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -64749,6 +64749,10 @@ ${message.api_refusal_explanation}` : "";
64749
64749
  failActive(RequestError5.authRequired(errorKindData(message.error)));
64750
64750
  break;
64751
64751
  }
64752
+ if (message.type === "assistant" && message.parent_tool_use_id === null && message.error === "model_not_found") {
64753
+ failActive(RequestError5.internalError(errorKindData(message.error), "The selected model is unavailable"));
64754
+ break;
64755
+ }
64752
64756
  let content;
64753
64757
  if (message.type === "assistant" && message.parent_tool_use_id === null) {
64754
64758
  const blocks = message.message.content;
@@ -93105,17 +93109,17 @@ var RuntimeSessionEventPublisher = class {
93105
93109
  if (connection.kind !== "connected" || connection.socket !== socket || socket.readyState !== WebSocket9.OPEN) {
93106
93110
  return;
93107
93111
  }
93108
- let attempted = 0;
93112
+ let sent = 0;
93109
93113
  for (const batch of this.#pending) {
93110
93114
  const encoded = encodeDaemonToServiceMessage({ events: batch.events, kind: SESSION_EVENT_KIND });
93111
93115
  if (socket.bufferedAmount + Buffer.byteLength(encoded, "utf8") > MAX_BUFFERED_BYTES) {
93112
93116
  socket.close(LOCAL_BACKPRESSURE_CLOSE_CODE, "Live event transport overloaded");
93113
93117
  break;
93114
93118
  }
93115
- attempted += 1;
93116
- this.#pendingBytes -= batch.bytes;
93117
93119
  try {
93118
93120
  socket.send(encoded);
93121
+ sent += 1;
93122
+ this.#pendingBytes -= batch.bytes;
93119
93123
  for (const answer of batch.firstAnswers) {
93120
93124
  console.info(
93121
93125
  JSON.stringify({
@@ -93131,10 +93135,11 @@ var RuntimeSessionEventPublisher = class {
93131
93135
  }
93132
93136
  } catch {
93133
93137
  console.warn("Live Session output could not be sent", { code: "live_event_send_failed" });
93138
+ socket.close(LOCAL_BACKPRESSURE_CLOSE_CODE, "Live event handoff failed");
93134
93139
  break;
93135
93140
  }
93136
93141
  }
93137
- this.#pending.splice(0, attempted);
93142
+ this.#pending.splice(0, sent);
93138
93143
  if (this.#pending.length === 0) {
93139
93144
  this.#overflowReported = false;
93140
93145
  }
@@ -93595,4 +93600,4 @@ export {
93595
93600
  * MIT Licensed
93596
93601
  *)
93597
93602
  */
93598
- //# sourceMappingURL=chunk-OXXJU5VO.js.map
93603
+ //# sourceMappingURL=chunk-FVYSQLQL.js.map