@ai-matrx/desktop-protocol 0.21.78 → 0.21.79

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,8 +1,8 @@
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 { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-DzJnHq8i.cjs';
5
- export { i as isDesktopProtocolError } from './models-DzJnHq8i.cjs';
4
+ import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-C2VdtixP.cjs';
5
+ export { i as isDesktopProtocolError } from './models-C2VdtixP.cjs';
6
6
  import { FrameHeader } from './frame.cjs';
7
7
 
8
8
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.d.ts CHANGED
@@ -1,8 +1,8 @@
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 { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-DzJnHq8i.js';
5
- export { i as isDesktopProtocolError } from './models-DzJnHq8i.js';
4
+ import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-C2VdtixP.js';
5
+ export { i as isDesktopProtocolError } from './models-C2VdtixP.js';
6
6
  import { FrameHeader } from './frame.js';
7
7
 
8
8
  /** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
package/dist/client.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  Welcome,
13
13
  closeRule,
14
14
  knows
15
- } from "./chunk-server-2NXFL3HJ.js";
15
+ } from "./chunk-server-XQQUJENM.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -943,7 +943,7 @@ module.exports = __toCommonJS(src_exports);
943
943
  var import_zod = require("zod");
944
944
  var import_uuid = require("@ai-matrx/kit/uuid");
945
945
  var PROTOCOL_MAJOR = 1;
946
- var PROTOCOL_MINOR = 76;
946
+ var PROTOCOL_MINOR = 77;
947
947
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
948
948
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
949
949
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -4436,7 +4436,13 @@ var CodingServiceCredentials = import_zod33.z.strictObject({
4436
4436
  access_token: import_zod33.z.string().min(16).max(16384),
4437
4437
  user_id: import_zod33.z.string().regex(import_uuid5.UUID_SHAPE_PATTERN),
4438
4438
  /** The AI Matrx server this app talks to (production, or a local server on the nightly copy). */
4439
- server_url: import_zod33.z.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/)
4439
+ server_url: import_zod33.z.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/),
4440
+ /**
4441
+ * The organization the person works in (the core's active organization): the service sends it as
4442
+ * X-Organization-Id on every AI Matrx request, as the app's own calls do. Absent: the
4443
+ * service sends nothing and says an organization is needed (1.77).
4444
+ */
4445
+ organization_id: import_zod33.z.string().regex(import_uuid5.UUID_SHAPE_PATTERN).optional()
4440
4446
  });
4441
4447
  var CodingHistoryBlocked = import_zod33.z.enum([
4442
4448
  "signed_out",
@@ -7295,7 +7301,7 @@ function forPeer(op, part, value, version) {
7295
7301
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
7296
7302
 
7297
7303
  // src/contract.ts
7298
- var CONTRACT_SHA256 = "2abe47c1779ecfce3c670b9a5ed3d0a85d9c95e7ec1ebe40b13efcfc54156ca2";
7304
+ var CONTRACT_SHA256 = "e6936784e216200e73b062cab45f24fa88014108baecd0f8b7a0b19ea5797fc5";
7299
7305
 
7300
7306
  // src/close-policy.ts
7301
7307
  var CLOSE_RULES = {