@ai-matrx/desktop-protocol 0.21.60 → 0.21.61
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 +15 -1
- package/dist/{chunk-server-SQA64KFX.js → chunk-server-OQM4XFUL.js} +15 -4
- package/dist/chunk-server-OQM4XFUL.js.map +1 -0
- package/dist/client.cjs +11 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/index.cjs +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -8
- package/dist/index.d.ts +107 -8
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-0lF6-r6a.d.cts → models-DbcCVlya.d.cts} +164 -4
- package/dist/{models-0lF6-r6a.d.ts → models-DbcCVlya.d.ts} +164 -4
- package/dist/react.d.cts +75 -5
- package/dist/react.d.ts +75 -5
- package/generated/desktop-protocol.schema.json +74 -2
- package/package.json +2 -2
- package/dist/chunk-server-SQA64KFX.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
- **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.
|
|
5
6
|
- **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.
|
|
6
7
|
- **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.
|
|
7
8
|
|
|
8
|
-
## 0.21.
|
|
9
|
+
## 0.21.61
|
|
9
10
|
|
|
10
11
|
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.
|
|
11
12
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
|
|
12
13
|
|
|
14
|
+
## 0.21.60
|
|
15
|
+
|
|
16
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
17
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
18
|
+
Diff: `git diff 1c52fd1b8c 97978bd752 -- apps/shared/desktop-protocol/src`
|
|
19
|
+
|
|
20
|
+
Changed shipped source files (5):
|
|
21
|
+
- `apps/shared/desktop-protocol/src/contract.ts`
|
|
22
|
+
- `apps/shared/desktop-protocol/src/schema/apps-chats.ts`
|
|
23
|
+
- `apps/shared/desktop-protocol/src/schema/primitives.ts`
|
|
24
|
+
- `apps/shared/desktop-protocol/src/schema/registry.ts`
|
|
25
|
+
- `apps/shared/desktop-protocol/src/versioning.ts`
|
|
26
|
+
|
|
13
27
|
## 0.21.59
|
|
14
28
|
|
|
15
29
|
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 =
|
|
9
|
+
var PROTOCOL_MINOR = 62;
|
|
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_-]+$/);
|
|
@@ -1191,6 +1191,13 @@ var ChatTitleSource = z13.enum(["app", "app-remembered", "custom-title", "ai-tit
|
|
|
1191
1191
|
var ChatAppGroup = z13.strictObject({ window: ChatPlace, group_id: z13.string().max(120), name: z13.string().max(200) });
|
|
1192
1192
|
var ChatParent = z13.strictObject({ id: ChatId, how: z13.enum(["spawned", "dispatched", "forked"]), title: z13.string().max(1e3).nullable() });
|
|
1193
1193
|
var ChatTitleSync = z13.strictObject({ state: z13.enum(["synced", "not_synced", "unsupported"]), note: z13.string().max(200) });
|
|
1194
|
+
var ChatMove = z13.strictObject({
|
|
1195
|
+
kind: z13.enum(["move", "copy"]),
|
|
1196
|
+
from: ChatPlace.nullable(),
|
|
1197
|
+
to: ChatPlace.nullable(),
|
|
1198
|
+
at_ms: epochMs.nullable(),
|
|
1199
|
+
back_at_ms: epochMs.nullable()
|
|
1200
|
+
});
|
|
1194
1201
|
var ChatRow = z13.strictObject({
|
|
1195
1202
|
id: ChatId,
|
|
1196
1203
|
/** The short id people see (the listing's first 8 characters). */
|
|
@@ -1242,7 +1249,9 @@ var ChatRow = z13.strictObject({
|
|
|
1242
1249
|
/** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
|
|
1243
1250
|
prior_sessions: z13.array(ChatId).max(50).optional(),
|
|
1244
1251
|
/** 1.61: where the title shows (the title facet's sync state for this chat's app). */
|
|
1245
|
-
title_sync: ChatTitleSync.optional()
|
|
1252
|
+
title_sync: ChatTitleSync.optional(),
|
|
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()
|
|
1246
1255
|
});
|
|
1247
1256
|
var ChatFamily = z13.strictObject({
|
|
1248
1257
|
id: ChatId,
|
|
@@ -4732,6 +4741,7 @@ var NAMED_SCHEMAS = {
|
|
|
4732
4741
|
ChatAppGroup,
|
|
4733
4742
|
ChatParent,
|
|
4734
4743
|
ChatTitleSync,
|
|
4744
|
+
ChatMove,
|
|
4735
4745
|
AppsWindowsSetAccountParams,
|
|
4736
4746
|
AppsWindowsForgetParams,
|
|
4737
4747
|
ProbeFact,
|
|
@@ -5557,7 +5567,7 @@ var FIELDS_SINCE = {
|
|
|
5557
5567
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
5558
5568
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
5559
5569
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
5560
|
-
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" },
|
|
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" },
|
|
5561
5571
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
|
|
5562
5572
|
ResourcesDisk: { name: "1.17" },
|
|
5563
5573
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
@@ -6048,6 +6058,7 @@ export {
|
|
|
6048
6058
|
ChatAppGroup,
|
|
6049
6059
|
ChatParent,
|
|
6050
6060
|
ChatTitleSync,
|
|
6061
|
+
ChatMove,
|
|
6051
6062
|
ChatRow,
|
|
6052
6063
|
ChatFamily,
|
|
6053
6064
|
AppsChatsListParams,
|
|
@@ -6671,4 +6682,4 @@ export {
|
|
|
6671
6682
|
closeRule,
|
|
6672
6683
|
isTerminalClose
|
|
6673
6684
|
};
|
|
6674
|
-
//# sourceMappingURL=chunk-server-
|
|
6685
|
+
//# sourceMappingURL=chunk-server-OQM4XFUL.js.map
|