@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/dist/index.cjs CHANGED
@@ -407,7 +407,7 @@ module.exports = __toCommonJS(src_exports);
407
407
  // src/schema/primitives.ts
408
408
  var import_zod = require("zod");
409
409
  var PROTOCOL_MAJOR = 1;
410
- var PROTOCOL_MINOR = 13;
410
+ var PROTOCOL_MINOR = 15;
411
411
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
412
412
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
413
413
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1346,6 +1346,7 @@ var ChatAppProject = import_zod12.z.strictObject({
1346
1346
  id: import_zod12.z.string().min(1).max(200),
1347
1347
  name: import_zod12.z.string().max(200)
1348
1348
  });
1349
+ var ChatTitleSource = import_zod12.z.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
1349
1350
  var ChatRow = import_zod12.z.strictObject({
1350
1351
  id: ChatId,
1351
1352
  /** The short id people see (the listing's first 8 characters). */
@@ -1376,7 +1377,18 @@ var ChatRow = import_zod12.z.strictObject({
1376
1377
  /** 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. */
1377
1378
  app_project: ChatAppProject.optional(),
1378
1379
  /** 1.13: tokens the conversation has used, when the app records it (Codex); absent when not recorded; prices are not on disk. */
1379
- tokens: nonNegInt.optional()
1380
+ tokens: nonNegInt.optional(),
1381
+ /**
1382
+ * 1.14: the chat's own title before the person's rename (the one title rule, `@ai-matrx/coding-sessions/sessions`);
1383
+ * `title` is what to show (`title_override` when set, else this).
1384
+ */
1385
+ original_title: import_zod12.z.string().max(1e3).optional(),
1386
+ /** 1.14: where `original_title` came from (the one rule's sources, strongest first; 1.15: a closed set). */
1387
+ title_source: ChatTitleSource.optional(),
1388
+ /** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
1389
+ title_override: import_zod12.z.string().min(1).max(300).optional(),
1390
+ /** 1.15: the app itself archived it (hidden_in says where and why, in words for people; this is the typed fact). */
1391
+ archived: import_zod12.z.boolean().optional()
1380
1392
  });
1381
1393
  var ChatFamily = import_zod12.z.strictObject({
1382
1394
  id: ChatId,
@@ -2692,7 +2704,7 @@ var FIELDS_SINCE = {
2692
2704
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
2693
2705
  AppsAccountsUsageResult: { problem: "1.12" },
2694
2706
  AppsAccountsResetsResult: { problem: "1.12" },
2695
- ChatRow: { app_project: "1.13", tokens: "1.13" },
2707
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15" },
2696
2708
  AccountUsage: { plan: "1.13", credits: "1.13" }
2697
2709
  };
2698
2710
  var NULL_SINCE = {
@@ -2821,7 +2833,7 @@ function forPeer(op, part, value, version) {
2821
2833
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
2822
2834
 
2823
2835
  // src/contract.ts
2824
- var CONTRACT_SHA256 = "753a2852af693308e321d475e3cab2487f6ab96b2c19bbc2fc5525ad3c26bb55";
2836
+ var CONTRACT_SHA256 = "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
2825
2837
 
2826
2838
  // src/close-policy.ts
2827
2839
  var CLOSE_RULES = {