@ai-matrx/desktop-protocol 0.21.47 → 0.21.49

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,9 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.49
4
+ ### Unreleased
5
+ ### Protocol 1.54 — a default model can come from the account
6
+
7
+ - `CodingProviderStatus.defaultModel.source` gains `"account"` (the signed-in account's default model,
8
+ e.g. Codex's; @ai-matrx/coding-sessions >= 0.3.235 emits it). `forPeer` sends a 1.53 peer `"driver"`
9
+ instead, so its strict enum never refuses the whole `coding.providers` answer.
10
+ Consumer action: label `"account"` as the account's default; a core on 1.53 or older cannot carry it.
11
+
12
+ ## 0.21.48
13
+ ### Unreleased
14
+ ### Protocol 1.53 — one coding account list
15
+
16
+ - `CodingProviderStatus` gains optional `accounts` (`{id, label}[]`: the person's saved accounts for
17
+ that app a run can use, as the computer's engine lists them) and `accountsProblem` (why they could not
18
+ be listed). `forPeer` never sends either to a 1.52 peer (`coding.providers` is wired into it).
19
+ Consumer action: read the accounts from `coding.providers`; stop building a second list from
20
+ `apps.profiles.list`.
21
+
3
22
  ## 0.21.47
4
23
 
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`.
24
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
25
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
26
+ Diff: `git diff 2532b004cb e6d46f8a90 -- apps/shared/desktop-protocol/src`
27
+
28
+ Changed shipped source files (4):
29
+ - `apps/shared/desktop-protocol/src/contract.ts`
30
+ - `apps/shared/desktop-protocol/src/schema/apps-accounts.ts`
31
+ - `apps/shared/desktop-protocol/src/schema/primitives.ts`
32
+ - `apps/shared/desktop-protocol/src/versioning.ts`
7
33
 
8
34
  ## 0.21.46
9
35
  ### Unreleased
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 = 52;
147
+ var PROTOCOL_MINOR = 54;
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_-]+$/);
@@ -2566,9 +2566,22 @@ var CodingProviderStatus = import_zod28.z.strictObject({
2566
2566
  quota: import_zod28.z.array(CodingQuotaWindow).max(20),
2567
2567
  models: import_zod28.z.array(import_zod28.z.strictObject({ id: import_zod28.z.string().max(200), label: import_zod28.z.string().max(200) })).max(200),
2568
2568
  efforts: import_zod28.z.array(import_zod28.z.string().max(40)).max(20),
2569
- defaultModel: import_zod28.z.strictObject({ id: import_zod28.z.string().max(200), source: import_zod28.z.enum(["settings", "driver"]) }).nullable(),
2569
+ /**
2570
+ * Where the default model came from: the app's own settings file, the account (1.54: the signed-in
2571
+ * account's default, e.g. Codex's), or the driver's built-in pick. A peer older than 1.54 is sent
2572
+ * "driver" for "account" (its enum does not know the value).
2573
+ */
2574
+ defaultModel: import_zod28.z.strictObject({ id: import_zod28.z.string().max(200), source: import_zod28.z.enum(["settings", "driver", "account"]) }).nullable(),
2570
2575
  defaultEffort: import_zod28.z.string().max(40).nullable(),
2571
- binary: CodingProviderBinary.nullable()
2576
+ binary: CodingProviderBinary.nullable(),
2577
+ /**
2578
+ * (1.53) The person's other accounts for this app on the computer (Matrx 2's Accounts) that a run
2579
+ * can use, as the computer's engine lists them; New session offers them beside the default sign-in.
2580
+ * Absent: only the default sign-in (or a computer older than 1.53).
2581
+ */
2582
+ 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(),
2583
+ /** (1.53) The computer tried to list `accounts` and could not: a short sentence the form shows with a retry. */
2584
+ accountsProblem: ShortText.optional()
2572
2585
  });
2573
2586
  var CodingChatPreference = import_zod28.z.strictObject({
2574
2587
  title: import_zod28.z.string().max(500).nullable(),
@@ -4634,7 +4647,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
4634
4647
  ["models.downloads.list", [["downloads", "DownloadRow"]]],
4635
4648
  ["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
4636
4649
  ["apps.windows.list", [["windows", "AppWindowInfo"]]],
4637
- ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]]
4650
+ ["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
4651
+ ["coding.providers", [["providers", "CodingProviderStatus"]]]
4638
4652
  ]);
4639
4653
  var WINDOW_RESULTS = /* @__PURE__ */ new Map([
4640
4654
  ["window.list", "windows"],