@ai-matrx/desktop-protocol 0.21.20 → 0.21.21

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
@@ -522,7 +522,7 @@ module.exports = __toCommonJS(src_exports);
522
522
  var import_zod = require("zod");
523
523
  var import_uuid = require("@ai-matrx/kit/uuid");
524
524
  var PROTOCOL_MAJOR = 1;
525
- var PROTOCOL_MINOR = 26;
525
+ var PROTOCOL_MINOR = 27;
526
526
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
527
527
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
528
528
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1934,7 +1934,12 @@ var AppsWindowsUpdateStateResult = import_zod14.z.strictObject({
1934
1934
  /** When the update became pending (the download's time), when known. */
1935
1935
  since_ms: epochMs.nullable(),
1936
1936
  /** Windows open when the update became pending (or last seen open) that are closed now. */
1937
- closed: import_zod14.z.array(ChatPlace).max(200)
1937
+ closed: import_zod14.z.array(ChatPlace).max(200),
1938
+ /**
1939
+ * Since 1.27: the windows in `closed` that the update itself quit (the app's log records a quit for
1940
+ * the update within a minute of when each was last seen running). Absent: not known.
1941
+ */
1942
+ closed_by_update: import_zod14.z.array(ChatPlace).max(200).optional()
1938
1943
  });
1939
1944
  var AppsWindowsReopenParams = import_zod14.z.strictObject({ app_key: AppKey, windows: import_zod14.z.array(ChatPlace).min(1).max(200) });
1940
1945
  var AppsWindowsReopenResult = import_zod14.z.strictObject({ message: import_zod14.z.string().max(400), opened: import_zod14.z.array(ChatPlace).max(200) });
@@ -3669,7 +3674,8 @@ var FIELDS_SINCE = {
3669
3674
  AudioDevice: { kind: "1.24" },
3670
3675
  ScreenDisplay: { rotation: "1.24", refresh_hz: "1.24", builtin: "1.24" },
3671
3676
  PowerStatusResult: { energy: "1.24" },
3672
- AppsSpendResult: { days: "1.24" }
3677
+ AppsSpendResult: { days: "1.24" },
3678
+ AppsWindowsUpdateStateResult: { closed_by_update: "1.27" }
3673
3679
  };
3674
3680
  var NULL_SINCE = {
3675
3681
  "RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
@@ -3726,7 +3732,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
3726
3732
  ["fs.patch", "FsPatchResult"],
3727
3733
  ["apps.chats.list", "AppsChatsListResult"],
3728
3734
  ["apps.accounts.usage", "AppsAccountsUsageResult"],
3729
- ["apps.accounts.resets", "AppsAccountsResetsResult"]
3735
+ ["apps.accounts.resets", "AppsAccountsResetsResult"],
3736
+ ["apps.windows.update_state", "AppsWindowsUpdateStateResult"]
3730
3737
  ]);
3731
3738
  var NESTED_RESULTS = /* @__PURE__ */ new Map([
3732
3739
  ["apps.chats.list", [["chats", "ChatRow"]]],
@@ -3799,7 +3806,7 @@ function forPeer(op, part, value, version) {
3799
3806
  var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
3800
3807
 
3801
3808
  // src/contract.ts
3802
- var CONTRACT_SHA256 = "42d314c6051a4dde86faa4b606bb9b8dcc7b2638d8b0cfb25852e8924920f44b";
3809
+ var CONTRACT_SHA256 = "eece2e5eba3e6e33126a0fda2fad8c91abe9c878fbfdc98bd049ff5af126cb09";
3803
3810
 
3804
3811
  // src/close-policy.ts
3805
3812
  var CLOSE_RULES = {