@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.cjs CHANGED
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
144
144
  var import_zod = require("zod");
145
145
  var import_uuid = require("@ai-matrx/kit/uuid");
146
146
  var PROTOCOL_MAJOR = 1;
147
- var PROTOCOL_MINOR = 62;
147
+ var PROTOCOL_MINOR = 63;
148
148
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
149
149
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
150
150
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -3067,7 +3067,13 @@ var ChatRow = import_zod30.z.strictObject({
3067
3067
  /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
3068
3068
  title_sync: ChatTitleSync.optional(),
3069
3069
  /** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
3070
- moved: import_zod30.z.array(ChatMove).max(50).optional()
3070
+ moved: import_zod30.z.array(ChatMove).max(50).optional(),
3071
+ /**
3072
+ * 1.63: the instance the chat belongs to: the one whose folder holds it (read only; nothing is
3073
+ * moved). Claude: the side window holding its newest record copy (main mirrors every window), else
3074
+ * main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
3075
+ */
3076
+ home: ChatPlace.optional()
3071
3077
  });
3072
3078
  var ChatFamily = import_zod30.z.strictObject({
3073
3079
  id: ChatId,
@@ -3607,6 +3613,7 @@ var AppInstall = import_zod32.z.strictObject({
3607
3613
  location: import_zod32.z.string().max(1024),
3608
3614
  version: import_zod32.z.string().max(80).nullable()
3609
3615
  });
3616
+ var InstanceGap = import_zod32.z.enum(["account", "email", "version"]);
3610
3617
  var AppInstance = import_zod32.z.strictObject({
3611
3618
  app_key: AppKey,
3612
3619
  /** "main", or the instance's name: the same key every window action takes. */
@@ -3632,7 +3639,9 @@ var AppInstance = import_zod32.z.strictObject({
3632
3639
  open_chats: nonNegInt,
3633
3640
  launched_ms: epochMs.nullable(),
3634
3641
  quit_ms: epochMs.nullable(),
3635
- first_launch_ms: epochMs.nullable()
3642
+ first_launch_ms: epochMs.nullable(),
3643
+ /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
3644
+ missing: import_zod32.z.array(InstanceGap).max(3).optional()
3636
3645
  });
3637
3646
  var AccountResetSource = import_zod32.z.enum(["app", "usage_history", "your_list"]);
3638
3647
  var AccountGap = import_zod32.z.enum(["email", "plan", "usage"]);
@@ -4805,6 +4814,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4805
4814
  // 1.60: each closed window's reopen outcome in a restart_verify copy.
4806
4815
  ["apps.chats.copy_to_account", [["restart", "CopyRestart"]]],
4807
4816
  ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4817
+ // 1.63: what an instance record still lacks.
4818
+ ["apps.instances.list", [["instances", "AppInstance"]]],
4808
4819
  ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
4809
4820
  ["coding.providers", [["providers", "CodingProviderStatus"]]],
4810
4821
  // 1.57: the account a coding record belongs to.