@ai-matrx/desktop-protocol 0.21.46 → 0.21.48

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,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.48
4
+ ### Unreleased
5
+ ### Protocol 1.53 — one coding account list
6
+
7
+ - `CodingProviderStatus` gains optional `accounts` (`{id, label}[]`: the person's saved accounts for
8
+ that app a run can use, as the computer's engine lists them) and `accountsProblem` (why they could not
9
+ be listed). `forPeer` never sends either to a 1.52 peer (`coding.providers` is wired into it).
10
+ Consumer action: read the accounts from `coding.providers`; stop building a second list from
11
+ `apps.profiles.list`.
12
+
13
+ ## 0.21.47
14
+
15
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
16
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
17
+ Diff: `git diff 2532b004cb e6d46f8a90 -- apps/shared/desktop-protocol/src`
18
+
19
+ Changed shipped source files (4):
20
+ - `apps/shared/desktop-protocol/src/contract.ts`
21
+ - `apps/shared/desktop-protocol/src/schema/apps-accounts.ts`
22
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
23
+ - `apps/shared/desktop-protocol/src/versioning.ts`
24
+
3
25
  ## 0.21.46
4
26
  ### Unreleased
5
27
 
28
+ - **Protocol 1.52 — Remote Control says when it is wrong.** `WindowRemoteControl` gains optional
29
+ `problem` (a plain sentence: the settings file is damaged, or why a queued change failed to land) and
30
+ `setting` gains `"unreadable"` (a damaged file, not the app's default). `forPeer` never sends a 1.50/1.51
31
+ peer `problem`, and gives a window with a damaged file no `remote_control` (apps.windows.list and
32
+ apps.windows.set_remote_control are now wired into it, which 1.50 missed). Consumer action: none; show
33
+ `problem` as a warning and disable the switch for "unreadable".
6
34
  - **Protocol 1.50 — a window's Remote Control (phone) setting.** `AppWindowInfo` gains optional
7
35
  `remote_control` (`WindowRemoteControl`: `setting` on/off/default as the window's settings file holds
8
36
  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 = 53;
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_-]+$/);
@@ -2568,7 +2568,15 @@ var CodingProviderStatus = import_zod28.z.strictObject({
2568
2568
  efforts: import_zod28.z.array(import_zod28.z.string().max(40)).max(20),
2569
2569
  defaultModel: import_zod28.z.strictObject({ id: import_zod28.z.string().max(200), source: import_zod28.z.enum(["settings", "driver"]) }).nullable(),
2570
2570
  defaultEffort: import_zod28.z.string().max(40).nullable(),
2571
- binary: CodingProviderBinary.nullable()
2571
+ binary: CodingProviderBinary.nullable(),
2572
+ /**
2573
+ * (1.53) The person's other accounts for this app on the computer (Matrx 2's Accounts) that a run
2574
+ * can use, as the computer's engine lists them; New session offers them beside the default sign-in.
2575
+ * Absent: only the default sign-in (or a computer older than 1.53).
2576
+ */
2577
+ accounts: import_zod28.z.array(import_zod28.z.strictObject({ id: import_zod28.z.string().min(1).max(64), label: import_zod28.z.string().max(200) })).max(100).optional(),
2578
+ /** (1.53) The computer tried to list `accounts` and could not: a short sentence the form shows with a retry. */
2579
+ accountsProblem: ShortText.optional()
2572
2580
  });
2573
2581
  var CodingChatPreference = import_zod28.z.strictObject({
2574
2582
  title: import_zod28.z.string().max(500).nullable(),
@@ -3044,12 +3052,21 @@ var AppsChatsStarResult = import_zod30.z.strictObject({ chat: ChatRow });
3044
3052
  // src/schema/apps-accounts.ts
3045
3053
  var import_zod31 = require("zod");
3046
3054
  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"]),
3055
+ /**
3056
+ * As the window's settings file holds it: on, off, or never set (the app's default). 1.52:
3057
+ * "unreadable" = the file is there but damaged, so the setting is not known (`problem` says why).
3058
+ */
3059
+ setting: import_zod31.z.enum(["on", "off", "default", "unreadable"]),
3049
3060
  /** The window serves Remote Control now (its live state says "on"); null: not known (closed, or no state file). */
3050
3061
  serving: import_zod31.z.boolean().nullable(),
3051
3062
  /** A change queued until the window next closes (or restarts); null: none. */
3052
- pending: import_zod31.z.enum(["on", "off"]).nullable()
3063
+ pending: import_zod31.z.enum(["on", "off"]).nullable(),
3064
+ /**
3065
+ * 1.52: why the setting cannot be trusted, as a plain sentence for the person: the settings file is
3066
+ * damaged ("unreadable"), or a queued change failed to land (it stays queued; asking again retries).
3067
+ * Absent: nothing wrong. An older core omits it.
3068
+ */
3069
+ problem: import_zod31.z.string().max(300).optional()
3053
3070
  });
3054
3071
  var AppWindowInfo = import_zod31.z.strictObject({
3055
3072
  key: ChatPlace,
@@ -4623,7 +4640,10 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4623
4640
  ["web.scrape", [["pages", "WebScrapePage"]]],
4624
4641
  ["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
4625
4642
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
4626
- ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
4643
+ ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
4644
+ ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4645
+ ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
4646
+ ["coding.providers", [["providers", "CodingProviderStatus"]]]
4627
4647
  ]);
4628
4648
  var WINDOW_RESULTS = /* @__PURE__ */ new Map([
4629
4649
  ["window.list", "windows"],