@ai-matrx/desktop-protocol 0.17.9 → 0.17.11
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 +14 -0
- package/dist/client.cjs +14 -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 +14 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +115 -5
- package/dist/index.d.ts +115 -5
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-G1-Bsz-k.d.cts → models-dIUgWoHB.d.cts} +195 -0
- package/dist/{models-G1-Bsz-k.d.ts → models-dIUgWoHB.d.ts} +195 -0
- package/dist/react.d.cts +91 -0
- package/dist/react.d.ts +91 -0
- package/generated/desktop-protocol.schema.json +31 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.11
|
|
4
|
+
### (protocol 1.15)
|
|
5
|
+
|
|
6
|
+
- `ChatRow.archived` (optional): the app itself archived the chat — the typed fact behind the `hidden_in` words. `ChatRow.title_source` is now the closed set `ChatTitleSource`. Stripped for peers below 1.15 (guard: versioning.test.ts "chat archived 1.15").
|
|
7
|
+
|
|
8
|
+
Consumer action: none for older peers.
|
|
9
|
+
|
|
10
|
+
## 0.17.10
|
|
11
|
+
### (protocol 1.14)
|
|
12
|
+
|
|
13
|
+
- **One title rule.** `ChatRow` gains optional `original_title` (the chat's own title by the rule in `@ai-matrx/coding-sessions/sessions`), `title_source` (where it came from) and `title_override` (the person's rename inside Matrx, applied once by the row builder); `title` stays what to show. Stripped for peers below 1.14 (guard: versioning.test.ts "chat titles 1.14").
|
|
14
|
+
|
|
15
|
+
Consumer action: none for older peers; a row builder sets all three.
|
|
16
|
+
|
|
3
17
|
## 0.17.9
|
|
4
18
|
### (protocol 1.13)
|
|
5
19
|
|
package/dist/client.cjs
CHANGED
|
@@ -143,7 +143,7 @@ var import_zod2 = require("zod");
|
|
|
143
143
|
// src/schema/primitives.ts
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var PROTOCOL_MAJOR = 1;
|
|
146
|
-
var PROTOCOL_MINOR =
|
|
146
|
+
var PROTOCOL_MINOR = 15;
|
|
147
147
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
148
148
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
149
149
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1482,6 +1482,7 @@ var ChatAppProject = import_zod24.z.strictObject({
|
|
|
1482
1482
|
id: import_zod24.z.string().min(1).max(200),
|
|
1483
1483
|
name: import_zod24.z.string().max(200)
|
|
1484
1484
|
});
|
|
1485
|
+
var ChatTitleSource = import_zod24.z.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
|
|
1485
1486
|
var ChatRow = import_zod24.z.strictObject({
|
|
1486
1487
|
id: ChatId,
|
|
1487
1488
|
/** The short id people see (the listing's first 8 characters). */
|
|
@@ -1512,7 +1513,18 @@ var ChatRow = import_zod24.z.strictObject({
|
|
|
1512
1513
|
/** 1.13: the app's own project the chat is grouped under in the app (Codex), read only; absent = none or not an app that groups. */
|
|
1513
1514
|
app_project: ChatAppProject.optional(),
|
|
1514
1515
|
/** 1.13: tokens the conversation has used, when the app records it (Codex); absent when not recorded; prices are not on disk. */
|
|
1515
|
-
tokens: nonNegInt.optional()
|
|
1516
|
+
tokens: nonNegInt.optional(),
|
|
1517
|
+
/**
|
|
1518
|
+
* 1.14: the chat's own title before the person's rename (the one title rule, `@ai-matrx/coding-sessions/sessions`);
|
|
1519
|
+
* `title` is what to show (`title_override` when set, else this).
|
|
1520
|
+
*/
|
|
1521
|
+
original_title: import_zod24.z.string().max(1e3).optional(),
|
|
1522
|
+
/** 1.14: where `original_title` came from (the one rule's sources, strongest first; 1.15: a closed set). */
|
|
1523
|
+
title_source: ChatTitleSource.optional(),
|
|
1524
|
+
/** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
|
|
1525
|
+
title_override: import_zod24.z.string().min(1).max(300).optional(),
|
|
1526
|
+
/** 1.15: the app itself archived it (hidden_in says where and why, in words for people; this is the typed fact). */
|
|
1527
|
+
archived: import_zod24.z.boolean().optional()
|
|
1516
1528
|
});
|
|
1517
1529
|
var ChatFamily = import_zod24.z.strictObject({
|
|
1518
1530
|
id: ChatId,
|