@ai-matrx/desktop-protocol 0.21.27 → 0.21.28

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
@@ -485,6 +485,7 @@ __export(src_exports, {
485
485
  StackStateResult: () => StackStateResult,
486
486
  StackStopParams: () => StackStopParams,
487
487
  StackTone: () => StackTone,
488
+ StaleTitleWindow: () => StaleTitleWindow,
488
489
  StreamMeta: () => StreamMeta,
489
490
  StreamMsg: () => StreamMsg,
490
491
  SysinfoGetParams: () => SysinfoGetParams,
@@ -581,7 +582,7 @@ module.exports = __toCommonJS(src_exports);
581
582
  var import_zod = require("zod");
582
583
  var import_uuid = require("@ai-matrx/kit/uuid");
583
584
  var PROTOCOL_MAJOR = 1;
584
- var PROTOCOL_MINOR = 32;
585
+ var PROTOCOL_MINOR = 33;
585
586
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
586
587
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
587
588
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -2033,6 +2034,12 @@ var TitleMismatch = import_zod14.z.strictObject({
2033
2034
  windows: import_zod14.z.array(ChatPlace).max(200),
2034
2035
  differs_in: import_zod14.z.array(TitleCopies).max(200)
2035
2036
  });
2037
+ var StaleTitleWindow = import_zod14.z.strictObject({
2038
+ window: ChatPlace,
2039
+ /** First and latest time (ms) it was seen writing an old name back. */
2040
+ since_ms: nonNegInt,
2041
+ last_ms: nonNegInt
2042
+ });
2036
2043
  var AppsChatsTitlesCheckParams = import_zod14.z.strictObject({ app_key: AppKey });
2037
2044
  var AppsChatsTitlesCheckResult = import_zod14.z.strictObject({
2038
2045
  app_key: AppKey,
@@ -2041,7 +2048,9 @@ var AppsChatsTitlesCheckResult = import_zod14.z.strictObject({
2041
2048
  /** Chats with a different name in some window (or in Matrx). */
2042
2049
  chats_with_a_different_name: nonNegInt,
2043
2050
  copies_to_write: nonNegInt,
2044
- chats: import_zod14.z.array(TitleMismatch).max(5e3)
2051
+ chats: import_zod14.z.array(TitleMismatch).max(5e3),
2052
+ /** Windows that keep writing old names back (each is fixed every pass; reloading it, Cmd+R, stops it). Since 1.33. */
2053
+ stale_windows: import_zod14.z.array(StaleTitleWindow).max(200).optional()
2045
2054
  });
2046
2055
  var AppsChatsTitlesPushParams = import_zod14.z.strictObject({ app_key: AppKey, chat_id: ChatId.optional(), dry_run: import_zod14.z.boolean().optional() });
2047
2056
  var AppsChatsTitlesPushResult = import_zod14.z.strictObject({
@@ -3940,6 +3949,7 @@ var NAMED_SCHEMAS = {
3940
3949
  AppsChatsOpenParams,
3941
3950
  TitleCopies,
3942
3951
  TitleMismatch,
3952
+ StaleTitleWindow,
3943
3953
  AppsChatsTitlesCheckParams,
3944
3954
  AppsChatsTitlesCheckResult,
3945
3955
  AppsChatsTitlesPushParams,
@@ -4065,7 +4075,8 @@ var FIELDS_SINCE = {
4065
4075
  AppsSpendResult: { days: "1.24" },
4066
4076
  AppsWindowsUpdateStateResult: { closed_by_update: "1.27" },
4067
4077
  AppsProjectsToWindowParams: { pin: "1.32" },
4068
- AppsProjectsToWindowResult: { pin: "1.32" }
4078
+ AppsProjectsToWindowResult: { pin: "1.32" },
4079
+ AppsChatsTitlesCheckResult: { stale_windows: "1.33" }
4069
4080
  };
4070
4081
  var NULL_SINCE = {
4071
4082
  "RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
@@ -4201,7 +4212,7 @@ function forPeer(op, part, value, version) {
4201
4212
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
4202
4213
 
4203
4214
  // src/contract.ts
4204
- var CONTRACT_SHA256 = "ee8e6c98c76f3557f832157e3b2b21bb23ebb74b67b79151f3b9ff788f5273ee";
4215
+ var CONTRACT_SHA256 = "04a029fc56c9405f376906fc981659997f4617c98bd0b88bb052d1f6d587a7a2";
4205
4216
 
4206
4217
  // src/close-policy.ts
4207
4218
  var CLOSE_RULES = {