@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/CHANGELOG.md CHANGED
@@ -2,15 +2,29 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ - **Protocol 1.63 — a chat's instance, and what an instance record lacks (2026-10-21).** `ChatRow.home` (`ChatPlace`): the instance whose folder holds the chat, read only (Claude: the side window holding its newest record copy, else main; Codex: the home whose database holds it). `AppInstance.missing` (`InstanceGap[]`: account / email / version): what the record still lacks after Matrx filled what it remembered (Matrx 2 ledger D10). Optional; stripped for a 1.62 peer by `forPeer`. Consumer action: none.
5
6
  - **Protocol 1.62 — moves as records (2026-10-20).** `ChatRow.moved` (`ChatMove[]`, newest first: `kind` move / copy, `from`, `to`, `at_ms`, `back_at_ms`): every Move and Copy of a chat between instances as Matrx recorded it, so a screen reads where a chat went and whether it came back from the record, never from a project named "From X". Optional; stripped for a 1.61 peer by `forPeer`. Consumer action: none.
6
7
  - **Protocol 1.61 — where a chat's title shows (2026-10-20).** `ChatRow.title_sync` (`ChatTitleSync`: `state` synced / not_synced / unsupported, and a `note`): the title facet's sync state for the chat's app, so a screen can say honestly whether the app shows the person's name. Optional; stripped for a 1.60 peer by `forPeer`. Consumer action: none.
7
8
  - **Shared code ships once per side (2026-10-18).** Built `splitting: false`, the root, `/frame` and `/client` each carried their own copy of 44 shared modules. ESM now builds them in one split pass (`chunk-server-*.js`, no banner); `/react` builds alone, stamped. CJS unsplit; declarations per group. ESM JS 610,843 -> 398,722 bytes; root + `/client` together 597 KB -> 390 KB; `/frame` stays zod-free (6 KB); every entry's export names identical (ESM and CJS). Guard: `../scripts/check-ships-once.mjs`, run in `build`. Consumer action: none.
8
9
 
9
- ## 0.21.61
10
+ ## 0.21.62
10
11
 
11
12
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
12
13
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
13
14
 
15
+ ## 0.21.61
16
+
17
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
18
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
19
+ Diff: `git diff 97978bd752 e86170a22e -- apps/shared/desktop-protocol/src`
20
+
21
+ Changed shipped source files (5):
22
+ - `apps/shared/desktop-protocol/src/contract.ts`
23
+ - `apps/shared/desktop-protocol/src/schema/apps-chats.ts`
24
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
25
+ - `apps/shared/desktop-protocol/src/schema/registry.ts`
26
+ - `apps/shared/desktop-protocol/src/versioning.ts`
27
+
14
28
  ## 0.21.60
15
29
 
16
30
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -6,7 +6,7 @@ import {
6
6
  import { z } from "zod";
7
7
  import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
8
8
  var PROTOCOL_MAJOR = 1;
9
- var PROTOCOL_MINOR = 62;
9
+ var PROTOCOL_MINOR = 63;
10
10
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
11
11
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
12
12
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1251,7 +1251,13 @@ var ChatRow = z13.strictObject({
1251
1251
  /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
1252
1252
  title_sync: ChatTitleSync.optional(),
1253
1253
  /** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
1254
- moved: z13.array(ChatMove).max(50).optional()
1254
+ moved: z13.array(ChatMove).max(50).optional(),
1255
+ /**
1256
+ * 1.63: the instance the chat belongs to: the one whose folder holds it (read only; nothing is
1257
+ * moved). Claude: the side window holding its newest record copy (main mirrors every window), else
1258
+ * main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
1259
+ */
1260
+ home: ChatPlace.optional()
1255
1261
  });
1256
1262
  var ChatFamily = z13.strictObject({
1257
1263
  id: ChatId,
@@ -1791,6 +1797,7 @@ var AppInstall = z15.strictObject({
1791
1797
  location: z15.string().max(1024),
1792
1798
  version: z15.string().max(80).nullable()
1793
1799
  });
1800
+ var InstanceGap = z15.enum(["account", "email", "version"]);
1794
1801
  var AppInstance = z15.strictObject({
1795
1802
  app_key: AppKey,
1796
1803
  /** "main", or the instance's name: the same key every window action takes. */
@@ -1816,7 +1823,9 @@ var AppInstance = z15.strictObject({
1816
1823
  open_chats: nonNegInt,
1817
1824
  launched_ms: epochMs.nullable(),
1818
1825
  quit_ms: epochMs.nullable(),
1819
- first_launch_ms: epochMs.nullable()
1826
+ first_launch_ms: epochMs.nullable(),
1827
+ /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
1828
+ missing: z15.array(InstanceGap).max(3).optional()
1820
1829
  });
1821
1830
  var AccountResetSource = z15.enum(["app", "usage_history", "your_list"]);
1822
1831
  var AccountGap = z15.enum(["email", "plan", "usage"]);
@@ -4749,6 +4758,7 @@ var NAMED_SCHEMAS = {
4749
4758
  AppsChatsProbeParams,
4750
4759
  AppsChatsProbeResult,
4751
4760
  InstanceStatus,
4761
+ InstanceGap,
4752
4762
  AppInstall,
4753
4763
  AppInstance,
4754
4764
  AccountResetSource,
@@ -5560,6 +5570,7 @@ var FIELDS_SINCE = {
5560
5570
  CodingDiscoveredChat: { accountId: "1.57" },
5561
5571
  CodingRecentRow: { accountId: "1.57" },
5562
5572
  CodingSearchHit: { accountId: "1.57" },
5573
+ AppInstance: { missing: "1.63" },
5563
5574
  AppsInstancesListParams: { fresh: "1.51" },
5564
5575
  AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
5565
5576
  AppsAccountsListParams: { fresh: "1.51" },
@@ -5567,7 +5578,7 @@ var FIELDS_SINCE = {
5567
5578
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
5568
5579
  AppsAccountsUsageResult: { problem: "1.12" },
5569
5580
  AppsAccountsResetsResult: { problem: "1.12" },
5570
- 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" },
5581
+ 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" },
5571
5582
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
5572
5583
  ResourcesDisk: { name: "1.17" },
5573
5584
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
@@ -5693,6 +5704,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
5693
5704
  // 1.60: each closed window's reopen outcome in a restart_verify copy.
5694
5705
  ["apps.chats.copy_to_account", [["restart", "CopyRestart"]]],
5695
5706
  ["apps.windows.list", [["windows", "AppWindowInfo"]]],
5707
+ // 1.63: what an instance record still lacks.
5708
+ ["apps.instances.list", [["instances", "AppInstance"]]],
5696
5709
  ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
5697
5710
  ["coding.providers", [["providers", "CodingProviderStatus"]]],
5698
5711
  // 1.57: the account a coding record belongs to.
@@ -6161,6 +6174,7 @@ export {
6161
6174
  AppsChatsCopyToAccountResult,
6162
6175
  InstanceStatus,
6163
6176
  AppInstall,
6177
+ InstanceGap,
6164
6178
  AppInstance,
6165
6179
  AccountResetSource,
6166
6180
  AccountGap,
@@ -6682,4 +6696,4 @@ export {
6682
6696
  closeRule,
6683
6697
  isTerminalClose
6684
6698
  };
6685
- //# sourceMappingURL=chunk-server-OQM4XFUL.js.map
6699
+ //# sourceMappingURL=chunk-server-EQCCXWD7.js.map