@ai-matrx/desktop-protocol 0.21.46 → 0.21.47

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/CHANGELOG.md CHANGED
@@ -1,8 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.47
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/desktop-protocol/src`.
7
+
3
8
  ## 0.21.46
4
9
  ### Unreleased
5
10
 
11
+ - **Protocol 1.52 — Remote Control says when it is wrong.** `WindowRemoteControl` gains optional
12
+ `problem` (a plain sentence: the settings file is damaged, or why a queued change failed to land) and
13
+ `setting` gains `"unreadable"` (a damaged file, not the app's default). `forPeer` never sends a 1.50/1.51
14
+ peer `problem`, and gives a window with a damaged file no `remote_control` (apps.windows.list and
15
+ apps.windows.set_remote_control are now wired into it, which 1.50 missed). Consumer action: none; show
16
+ `problem` as a warning and disable the switch for "unreadable".
6
17
  - **Protocol 1.50 — a window's Remote Control (phone) setting.** `AppWindowInfo` gains optional
7
18
  `remote_control` (`WindowRemoteControl`: `setting` on/off/default as the window's settings file holds
8
19
  it, `serving` from its live state, `pending` a change queued for its next close). New op
package/dist/client.cjs CHANGED
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
144
144
  var import_zod = require("zod");
145
145
  var import_uuid = require("@ai-matrx/kit/uuid");
146
146
  var PROTOCOL_MAJOR = 1;
147
- var PROTOCOL_MINOR = 51;
147
+ var PROTOCOL_MINOR = 52;
148
148
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
149
149
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
150
150
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -3044,12 +3044,21 @@ var AppsChatsStarResult = import_zod30.z.strictObject({ chat: ChatRow });
3044
3044
  // src/schema/apps-accounts.ts
3045
3045
  var import_zod31 = require("zod");
3046
3046
  var WindowRemoteControl = import_zod31.z.strictObject({
3047
- /** As the window's settings file holds it: on, off, or never set (the app's default). */
3048
- setting: import_zod31.z.enum(["on", "off", "default"]),
3047
+ /**
3048
+ * As the window's settings file holds it: on, off, or never set (the app's default). 1.52:
3049
+ * "unreadable" = the file is there but damaged, so the setting is not known (`problem` says why).
3050
+ */
3051
+ setting: import_zod31.z.enum(["on", "off", "default", "unreadable"]),
3049
3052
  /** The window serves Remote Control now (its live state says "on"); null: not known (closed, or no state file). */
3050
3053
  serving: import_zod31.z.boolean().nullable(),
3051
3054
  /** A change queued until the window next closes (or restarts); null: none. */
3052
- pending: import_zod31.z.enum(["on", "off"]).nullable()
3055
+ pending: import_zod31.z.enum(["on", "off"]).nullable(),
3056
+ /**
3057
+ * 1.52: why the setting cannot be trusted, as a plain sentence for the person: the settings file is
3058
+ * damaged ("unreadable"), or a queued change failed to land (it stays queued; asking again retries).
3059
+ * Absent: nothing wrong. An older core omits it.
3060
+ */
3061
+ problem: import_zod31.z.string().max(300).optional()
3053
3062
  });
3054
3063
  var AppWindowInfo = import_zod31.z.strictObject({
3055
3064
  key: ChatPlace,
@@ -4623,7 +4632,9 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4623
4632
  ["web.scrape", [["pages", "WebScrapePage"]]],
4624
4633
  ["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
4625
4634
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
4626
- ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
4635
+ ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
4636
+ ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4637
+ ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]]
4627
4638
  ]);
4628
4639
  var WINDOW_RESULTS = /* @__PURE__ */ new Map([
4629
4640
  ["window.list", "windows"],