@ai-matrx/desktop-protocol 0.21.71 → 0.21.72

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-lURX04tj.cjs';
5
- export { i as isDesktopProtocolError } from './models-lURX04tj.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-BSiPIgIc.cjs';
5
+ export { i as isDesktopProtocolError } from './models-BSiPIgIc.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-lURX04tj.js';
5
- export { i as isDesktopProtocolError } from './models-lURX04tj.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-BSiPIgIc.js';
5
+ export { i as isDesktopProtocolError } from './models-BSiPIgIc.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-TKQNS7QK.js";
15
+ } from "./chunk-server-FFLYSQUY.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -385,6 +385,7 @@ __export(src_exports, {
385
385
  DownloadRow: () => DownloadRow,
386
386
  EVENTS: () => EVENTS,
387
387
  EXCLUDED_TOOLS: () => EXCLUDED_TOOLS,
388
+ ElsewhereInstance: () => ElsewhereInstance,
388
389
  EndMsg: () => EndMsg,
389
390
  EndReason: () => EndReason,
390
391
  EntitiesNerParams: () => EntitiesNerParams,
@@ -918,7 +919,7 @@ module.exports = __toCommonJS(src_exports);
918
919
  var import_zod = require("zod");
919
920
  var import_uuid = require("@ai-matrx/kit/uuid");
920
921
  var PROTOCOL_MAJOR = 1;
921
- var PROTOCOL_MINOR = 70;
922
+ var PROTOCOL_MINOR = 71;
922
923
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
923
924
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
924
925
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2928,6 +2929,20 @@ var AppInstance = import_zod15.z.strictObject({
2928
2929
  /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
2929
2930
  missing: import_zod15.z.array(InstanceGap).max(3).optional()
2930
2931
  });
2932
+ var ElsewhereInstance = import_zod15.z.strictObject({
2933
+ app_key: AppKey,
2934
+ /** Its key on its own computer ("main", or its name). */
2935
+ key: import_zod15.z.string().max(120),
2936
+ main: import_zod15.z.boolean(),
2937
+ /** The computer it is on, by its name in Devices. */
2938
+ computer: import_zod15.z.string().max(200),
2939
+ /** Its data folder, as that computer shows it (a label: it is not on this computer). */
2940
+ folder: import_zod15.z.string().max(1024).nullable(),
2941
+ account_id: import_zod15.z.string().max(200).nullable(),
2942
+ account: import_zod15.z.string().max(320).nullable(),
2943
+ /** When that computer last read it. */
2944
+ seen_ms: epochMs.nullable()
2945
+ });
2931
2946
  var AccountResetSource = import_zod15.z.enum(["app", "usage_history", "your_list"]);
2932
2947
  var AccountGap = import_zod15.z.enum(["email", "plan", "usage"]);
2933
2948
  var AppAccount = import_zod15.z.strictObject({
@@ -2969,7 +2984,13 @@ var AppsInstancesListResult = import_zod15.z.strictObject({
2969
2984
  /** The rows are right but something around them failed; shown, never hidden. */
2970
2985
  problem: import_zod15.z.string().max(400).optional(),
2971
2986
  as_of_ms: epochMs.optional(),
2972
- refreshing: import_zod15.z.boolean().optional()
2987
+ refreshing: import_zod15.z.boolean().optional(),
2988
+ /** 1.71: this computer's name (the Computer of every `instances` row). */
2989
+ computer: import_zod15.z.string().max(200).optional(),
2990
+ /** 1.71: the person's instances on their other computers, from the database (read only). */
2991
+ elsewhere: import_zod15.z.array(ElsewhereInstance).max(500).optional(),
2992
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's alone. */
2993
+ shared_problem: import_zod15.z.string().max(200).optional()
2973
2994
  });
2974
2995
  var AppsAccountsListParams = import_zod15.z.strictObject({ app_key: AppKey, fresh: import_zod15.z.boolean().optional() });
2975
2996
  var AppsAccountsListResult = import_zod15.z.strictObject({
@@ -2977,7 +2998,9 @@ var AppsAccountsListResult = import_zod15.z.strictObject({
2977
2998
  accounts: import_zod15.z.array(AppAccount).max(500),
2978
2999
  problem: import_zod15.z.string().max(400).optional(),
2979
3000
  as_of_ms: epochMs.optional(),
2980
- refreshing: import_zod15.z.boolean().optional()
3001
+ refreshing: import_zod15.z.boolean().optional(),
3002
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's memory alone. */
3003
+ shared_problem: import_zod15.z.string().max(200).optional()
2981
3004
  });
2982
3005
  var AppsWindowsSetAccountParams = import_zod15.z.strictObject({ app_key: AppKey, window: ChatPlace, email: import_zod15.z.string().min(3).max(320) });
2983
3006
  var AppsWindowsForgetParams = import_zod15.z.strictObject({ app_key: AppKey, window: ChatPlace });
@@ -5947,6 +5970,7 @@ var NAMED_SCHEMAS = {
5947
5970
  InstanceGap,
5948
5971
  AppInstall,
5949
5972
  AppInstance,
5973
+ ElsewhereInstance,
5950
5974
  AccountResetSource,
5951
5975
  AccountGap,
5952
5976
  AppAccount,
@@ -6771,9 +6795,9 @@ var FIELDS_SINCE = {
6771
6795
  CodingSearchHit: { accountId: "1.57" },
6772
6796
  AppInstance: { missing: "1.63" },
6773
6797
  AppsInstancesListParams: { fresh: "1.51" },
6774
- AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
6798
+ AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51", computer: "1.71", elsewhere: "1.71", shared_problem: "1.71" },
6775
6799
  AppsAccountsListParams: { fresh: "1.51" },
6776
- AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51" },
6800
+ AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51", shared_problem: "1.71" },
6777
6801
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
6778
6802
  AppsAccountsUsageResult: { problem: "1.12" },
6779
6803
  AppsAccountsResetsResult: { problem: "1.12" },
@@ -7069,7 +7093,7 @@ function forPeer(op, part, value, version) {
7069
7093
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
7070
7094
 
7071
7095
  // src/contract.ts
7072
- var CONTRACT_SHA256 = "96b575595965374c3a48335602d5cbdab06f87fc261d2e38e1c3ebca6f17a9dc";
7096
+ var CONTRACT_SHA256 = "d7962e1bed0f5ee4ffc1ccdf8b6c3694cfdced1904cc6b8c819f366e19af0ffe";
7073
7097
 
7074
7098
  // src/close-policy.ts
7075
7099
  var CLOSE_RULES = {