@ai-matrx/desktop-protocol 0.21.61 → 0.21.62

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-DbcCVlya.cjs';
5
- export { i as isDesktopProtocolError } from './models-DbcCVlya.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-yHB4kGxD.cjs';
5
+ export { i as isDesktopProtocolError } from './models-yHB4kGxD.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-DbcCVlya.js';
5
- export { i as isDesktopProtocolError } from './models-DbcCVlya.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-yHB4kGxD.js';
5
+ export { i as isDesktopProtocolError } from './models-yHB4kGxD.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-OQM4XFUL.js";
15
+ } from "./chunk-server-EQCCXWD7.js";
16
16
  import {
17
17
  DesktopProtocolError,
18
18
  FRAME_VERSION,
package/dist/index.cjs CHANGED
@@ -498,6 +498,7 @@ __export(src_exports, {
498
498
  InputSetKeyboardSettingsParams: () => InputSetKeyboardSettingsParams,
499
499
  InputTypeTextParams: () => InputTypeTextParams,
500
500
  InputTypeTextResult: () => InputTypeTextResult,
501
+ InstanceGap: () => InstanceGap,
501
502
  InstanceStatus: () => InstanceStatus,
502
503
  LEGACY_ACTIONS: () => LEGACY_ACTIONS,
503
504
  LEGACY_DISPATCHERS: () => LEGACY_DISPATCHERS,
@@ -906,7 +907,7 @@ module.exports = __toCommonJS(src_exports);
906
907
  var import_zod = require("zod");
907
908
  var import_uuid = require("@ai-matrx/kit/uuid");
908
909
  var PROTOCOL_MAJOR = 1;
909
- var PROTOCOL_MINOR = 62;
910
+ var PROTOCOL_MINOR = 63;
910
911
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
911
912
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
912
913
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2278,7 +2279,13 @@ var ChatRow = import_zod13.z.strictObject({
2278
2279
  /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
2279
2280
  title_sync: ChatTitleSync.optional(),
2280
2281
  /** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
2281
- moved: import_zod13.z.array(ChatMove).max(50).optional()
2282
+ moved: import_zod13.z.array(ChatMove).max(50).optional(),
2283
+ /**
2284
+ * 1.63: the instance the chat belongs to: the one whose folder holds it (read only; nothing is
2285
+ * moved). Claude: the side window holding its newest record copy (main mirrors every window), else
2286
+ * main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
2287
+ */
2288
+ home: ChatPlace.optional()
2282
2289
  });
2283
2290
  var ChatFamily = import_zod13.z.strictObject({
2284
2291
  id: ChatId,
@@ -2818,6 +2825,7 @@ var AppInstall = import_zod15.z.strictObject({
2818
2825
  location: import_zod15.z.string().max(1024),
2819
2826
  version: import_zod15.z.string().max(80).nullable()
2820
2827
  });
2828
+ var InstanceGap = import_zod15.z.enum(["account", "email", "version"]);
2821
2829
  var AppInstance = import_zod15.z.strictObject({
2822
2830
  app_key: AppKey,
2823
2831
  /** "main", or the instance's name: the same key every window action takes. */
@@ -2843,7 +2851,9 @@ var AppInstance = import_zod15.z.strictObject({
2843
2851
  open_chats: nonNegInt,
2844
2852
  launched_ms: epochMs.nullable(),
2845
2853
  quit_ms: epochMs.nullable(),
2846
- first_launch_ms: epochMs.nullable()
2854
+ first_launch_ms: epochMs.nullable(),
2855
+ /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
2856
+ missing: import_zod15.z.array(InstanceGap).max(3).optional()
2847
2857
  });
2848
2858
  var AccountResetSource = import_zod15.z.enum(["app", "usage_history", "your_list"]);
2849
2859
  var AccountGap = import_zod15.z.enum(["email", "plan", "usage"]);
@@ -5776,6 +5786,7 @@ var NAMED_SCHEMAS = {
5776
5786
  AppsChatsProbeParams,
5777
5787
  AppsChatsProbeResult,
5778
5788
  InstanceStatus,
5789
+ InstanceGap,
5779
5790
  AppInstall,
5780
5791
  AppInstance,
5781
5792
  AccountResetSource,
@@ -6587,6 +6598,7 @@ var FIELDS_SINCE = {
6587
6598
  CodingDiscoveredChat: { accountId: "1.57" },
6588
6599
  CodingRecentRow: { accountId: "1.57" },
6589
6600
  CodingSearchHit: { accountId: "1.57" },
6601
+ AppInstance: { missing: "1.63" },
6590
6602
  AppsInstancesListParams: { fresh: "1.51" },
6591
6603
  AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
6592
6604
  AppsAccountsListParams: { fresh: "1.51" },
@@ -6594,7 +6606,7 @@ var FIELDS_SINCE = {
6594
6606
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
6595
6607
  AppsAccountsUsageResult: { problem: "1.12" },
6596
6608
  AppsAccountsResetsResult: { problem: "1.12" },
6597
- ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62" },
6609
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63" },
6598
6610
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
6599
6611
  ResourcesDisk: { name: "1.17" },
6600
6612
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
@@ -6720,6 +6732,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
6720
6732
  // 1.60: each closed window's reopen outcome in a restart_verify copy.
6721
6733
  ["apps.chats.copy_to_account", [["restart", "CopyRestart"]]],
6722
6734
  ["apps.windows.list", [["windows", "AppWindowInfo"]]],
6735
+ // 1.63: what an instance record still lacks.
6736
+ ["apps.instances.list", [["instances", "AppInstance"]]],
6723
6737
  ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
6724
6738
  ["coding.providers", [["providers", "CodingProviderStatus"]]],
6725
6739
  // 1.57: the account a coding record belongs to.
@@ -6834,7 +6848,7 @@ function forPeer(op, part, value, version) {
6834
6848
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
6835
6849
 
6836
6850
  // src/contract.ts
6837
- var CONTRACT_SHA256 = "97c41c25ab3b377c9b93f67090e17faf7ce85671b031c93748e8e20504752010";
6851
+ var CONTRACT_SHA256 = "c161897b36fd5da0d5892a08466479f4fa495fc79a9efc2956f32e0cd6e461b6";
6838
6852
 
6839
6853
  // src/close-policy.ts
6840
6854
  var CLOSE_RULES = {