@ai-matrx/desktop-protocol 0.17.9 → 0.17.10

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 = 14;
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_-]+$/);
@@ -1376,7 +1376,16 @@ var ChatRow = import_zod12.z.strictObject({
1376
1376
  /** 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
1377
  app_project: ChatAppProject.optional(),
1378
1378
  /** 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()
1379
+ tokens: nonNegInt.optional(),
1380
+ /**
1381
+ * 1.14: the chat's own title before the person's rename (the one title rule, `@ai-matrx/coding-sessions/sessions`);
1382
+ * `title` is what to show (`title_override` when set, else this).
1383
+ */
1384
+ original_title: import_zod12.z.string().max(1e3).optional(),
1385
+ /** 1.14: where `original_title` came from (app record, remembered, custom-title, ai-title, agent-name, summary, first-prompt, last-prompt). */
1386
+ title_source: import_zod12.z.string().min(1).max(40).optional(),
1387
+ /** 1.14: the person's rename inside Matrx (Coding Sessions), applied once by the row builder; absent = none. */
1388
+ title_override: import_zod12.z.string().min(1).max(300).optional()
1380
1389
  });
1381
1390
  var ChatFamily = import_zod12.z.strictObject({
1382
1391
  id: ChatId,
@@ -2692,7 +2701,7 @@ var FIELDS_SINCE = {
2692
2701
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
2693
2702
  AppsAccountsUsageResult: { problem: "1.12" },
2694
2703
  AppsAccountsResetsResult: { problem: "1.12" },
2695
- ChatRow: { app_project: "1.13", tokens: "1.13" },
2704
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14" },
2696
2705
  AccountUsage: { plan: "1.13", credits: "1.13" }
2697
2706
  };
2698
2707
  var NULL_SINCE = {
@@ -2821,7 +2830,7 @@ function forPeer(op, part, value, version) {
2821
2830
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
2822
2831
 
2823
2832
  // src/contract.ts
2824
- var CONTRACT_SHA256 = "753a2852af693308e321d475e3cab2487f6ab96b2c19bbc2fc5525ad3c26bb55";
2833
+ var CONTRACT_SHA256 = "274e5bac7ae2a9b7a8027a6c356f54654cd1ed91cf2363711a21ff821a33a676";
2825
2834
 
2826
2835
  // src/close-policy.ts
2827
2836
  var CLOSE_RULES = {