@ai-matrx/desktop-protocol 0.17.10 → 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 = 14;
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). */
@@ -1382,10 +1383,12 @@ var ChatRow = import_zod12.z.strictObject({
1382
1383
  * `title` is what to show (`title_override` when set, else this).
1383
1384
  */
1384
1385
  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(),
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(),
1387
1388
  /** 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()
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()
1389
1392
  });
1390
1393
  var ChatFamily = import_zod12.z.strictObject({
1391
1394
  id: ChatId,
@@ -2701,7 +2704,7 @@ var FIELDS_SINCE = {
2701
2704
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
2702
2705
  AppsAccountsUsageResult: { problem: "1.12" },
2703
2706
  AppsAccountsResetsResult: { problem: "1.12" },
2704
- ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14" },
2707
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15" },
2705
2708
  AccountUsage: { plan: "1.13", credits: "1.13" }
2706
2709
  };
2707
2710
  var NULL_SINCE = {
@@ -2830,7 +2833,7 @@ function forPeer(op, part, value, version) {
2830
2833
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
2831
2834
 
2832
2835
  // src/contract.ts
2833
- var CONTRACT_SHA256 = "274e5bac7ae2a9b7a8027a6c356f54654cd1ed91cf2363711a21ff821a33a676";
2836
+ var CONTRACT_SHA256 = "91060640a08d25f693f4d90384da7225299ab8fd287b665ca7d36f226d641267";
2834
2837
 
2835
2838
  // src/close-policy.ts
2836
2839
  var CLOSE_RULES = {