@ai-matrx/desktop-protocol 0.21.48 → 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,5 +1,14 @@
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
+
3
12
  ## 0.21.48
4
13
  ### Unreleased
5
14
  ### Protocol 1.53 — one coding account list
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 = 53;
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,7 +2566,12 @@ 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
2576
  binary: CodingProviderBinary.nullable(),
2572
2577
  /**