@ai-matrx/desktop-protocol 0.21.96 → 0.21.97

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/client.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { BackoffOptions } from '@ai-matrx/data/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
3
3
  import { z } from 'zod';
4
- import { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-CW7-r8m4.cjs';
4
+ import { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-njYABA-y.cjs';
5
5
  import { Welcome, CloseOutcome, OPS, StreamMeta, EndReason, EVENTS, ClientType, ModelsTranscribeResult, TranscriptionModelId, MlProgress } from './index.cjs';
6
- export { i as isDesktopProtocolError } from './models-CW7-r8m4.cjs';
6
+ export { i as isDesktopProtocolError } from './models-njYABA-y.cjs';
7
7
  import { FrameHeader } from './frame.cjs';
8
8
 
9
9
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { BackoffOptions } from '@ai-matrx/data/realtime';
2
2
  export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
3
3
  import { z } from 'zod';
4
- import { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-CW7-r8m4.js';
4
+ import { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-njYABA-y.js';
5
5
  import { Welcome, CloseOutcome, OPS, StreamMeta, EndReason, EVENTS, ClientType, ModelsTranscribeResult, TranscriptionModelId, MlProgress } from './index.js';
6
- export { i as isDesktopProtocolError } from './models-CW7-r8m4.js';
6
+ export { i as isDesktopProtocolError } from './models-njYABA-y.js';
7
7
  import { FrameHeader } from './frame.js';
8
8
 
9
9
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  closeRule,
3
3
  knows
4
- } from "./chunk-server-46JNNDT7.js";
4
+ } from "./chunk-server-MNB4WODI.js";
5
5
  import {
6
6
  CloseCode,
7
7
  CoreToClientMsg,
@@ -12,7 +12,7 @@ import {
12
12
  PROTOCOL_MAJOR,
13
13
  PROTOCOL_MINOR,
14
14
  Welcome
15
- } from "./chunk-server-IHK7SYRO.js";
15
+ } from "./chunk-server-SQTXV4JW.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
@@ -28,7 +28,7 @@ var registry = null;
28
28
  var registryLoad = null;
29
29
  function loadRegistry() {
30
30
  if (registry) return Promise.resolve(registry);
31
- registryLoad ??= import("./chunk-server-UNRE6WGX.js").then((m) => registry = m);
31
+ registryLoad ??= import("./chunk-server-WRHH3K5T.js").then((m) => registry = m);
32
32
  return registryLoad;
33
33
  }
34
34
  var WS_OPEN = 1;
package/dist/index.cjs CHANGED
@@ -1053,7 +1053,7 @@ module.exports = __toCommonJS(src_exports);
1053
1053
  var import_zod = require("zod");
1054
1054
  var import_uuid = require("@ai-matrx/kit/uuid");
1055
1055
  var PROTOCOL_MAJOR = 1;
1056
- var PROTOCOL_MINOR = 90;
1056
+ var PROTOCOL_MINOR = 91;
1057
1057
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
1058
1058
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
1059
1059
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1145,8 +1145,11 @@ var ErrorReason = import_zod2.z.enum([
1145
1145
  // 1.76 (REASONS_SINCE): models.llm.chat (1.88: models.embed names the same two)
1146
1146
  "model_not_running",
1147
1147
  // NOT_FOUND (nothing runs) or RESOURCE_BUSY (another model runs): start this model first
1148
- "model_server_unreachable"
1148
+ "model_server_unreachable",
1149
1149
  // RESOURCE_GONE (retryable): llama-server did not answer on this computer
1150
+ // 1.91 (REASONS_SINCE): models.llm.chat with start_if_stopped when another model answers a live chat
1151
+ "busy_with_another_chat"
1152
+ // RESOURCE_BUSY (retryable): the loaded model is answering another chat now; data.chat_title names it
1150
1153
  ]);
1151
1154
  var FsPatchEditFailure = import_zod2.z.strictObject({ edit_index: nonNegInt, reason: import_zod2.z.string().max(300) });
1152
1155
  var ProtocolErrorBody = import_zod2.z.strictObject({
@@ -1162,6 +1165,8 @@ var ProtocolErrorBody = import_zod2.z.strictObject({
1162
1165
  settings_url: import_zod2.z.string().max(512).optional(),
1163
1166
  // PERMISSION_DENIED_OS deep link
1164
1167
  retry_after_ms: nonNegInt.optional(),
1168
+ /** (1.91) busy_with_another_chat: the title of the chat the loaded model is answering now, in words a person reads. */
1169
+ chat_title: import_zod2.z.string().max(200).optional(),
1165
1170
  limit_bytes: nonNegInt.optional(),
1166
1171
  /** fs.patch when every edit failed (CONFLICT, patch_no_match / patch_ambiguous): the daemon's 422 `failures`. */
1167
1172
  edits_failed: import_zod2.z.array(FsPatchEditFailure).max(256).optional(),
@@ -7969,7 +7974,7 @@ var FIELDS_SINCE = {
7969
7974
  MlProgress: { audio: "1.81" },
7970
7975
  ModelsLlmStartParams: { gpu_layers: "1.48", threads: "1.48", load_timeout_s: "1.48", slot: "1.88" },
7971
7976
  FsPatchResult: { edits_applied: "1.1", edits_failed: "1.1" },
7972
- "ProtocolErrorBody.data": { edits_failed: "1.1" },
7977
+ "ProtocolErrorBody.data": { edits_failed: "1.1", chat_title: "1.91" },
7973
7978
  "RelayCallResponse|0": { protocol_version: "1.1" },
7974
7979
  "RelayCallResponse|1": { protocol_version: "1.1" },
7975
7980
  WindowInfo: { app: "1.7", pid: "1.7" },
@@ -8062,7 +8067,8 @@ var REASONS_SINCE = {
8062
8067
  awaiting_confirmation: "1.28",
8063
8068
  tool_disabled_on_device: "1.34",
8064
8069
  model_not_running: "1.76",
8065
- model_server_unreachable: "1.76"
8070
+ model_server_unreachable: "1.76",
8071
+ busy_with_another_chat: "1.91"
8066
8072
  };
8067
8073
  var PERMISSIONS_SINCE = {
8068
8074
  reminders: "1.41",
@@ -8317,7 +8323,7 @@ function forPeer(op, part, value, version) {
8317
8323
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
8318
8324
 
8319
8325
  // src/contract.ts
8320
- var CONTRACT_SHA256 = "c506c1188555e5a6810a0fb4c8517ee0b7328c66f5b4ddcf7eb1fe55bc737914";
8326
+ var CONTRACT_SHA256 = "1dc738d732177d91c3e399ac8a3651395dfab3e7310df69171d64648c1010909";
8321
8327
 
8322
8328
  // src/close-policy.ts
8323
8329
  var CLOSE_RULES = {