@ai-matrx/desktop-protocol 0.17.7 → 0.17.9

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.9
4
+ ### (protocol 1.13)
5
+
6
+ - **Codex, the second coding app.** `ChatRow` gains optional `app_project` (the app's own sidebar project, read only) and `tokens` (tokens the conversation used, when the app records it); `AccountUsage` gains optional `plan` and `credits`. Stripped for peers below 1.13 wherever a ChatRow or AccountUsage travels (`apps.chats.list`, `apps.projects.file/file_many/unfile/move`, `apps.chats.star/place`, `apps.accounts.usage`) — `forPeer` now strips nested named schemas (guard: versioning.test.ts "apps codex 1.13").
7
+
8
+ Consumer action: none for older peers.
9
+
10
+ ## 0.17.8
11
+ ### (protocol 1.12)
12
+
13
+ - `apps.accounts.usage` and `apps.accounts.resets` gain optional `problem` (the rows are right, something around them failed, e.g. a newly read reset time could not be saved), stripped for peers below 1.12 (guard: versioning.test.ts "apps accounts 1.12").
14
+
15
+ Consumer action: none for older peers.
16
+
3
17
  ## 0.17.7
4
18
  ### (protocol 1.11)
5
19
 
package/dist/client.cjs CHANGED
@@ -143,7 +143,7 @@ var import_zod2 = require("zod");
143
143
  // src/schema/primitives.ts
144
144
  var import_zod = require("zod");
145
145
  var PROTOCOL_MAJOR = 1;
146
- var PROTOCOL_MINOR = 11;
146
+ var PROTOCOL_MINOR = 13;
147
147
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
148
148
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
149
149
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1478,6 +1478,10 @@ var ChatLastUse = import_zod24.z.strictObject({
1478
1478
  cache_warm: import_zod24.z.boolean(),
1479
1479
  cache_minutes_left: nonNegInt
1480
1480
  });
1481
+ var ChatAppProject = import_zod24.z.strictObject({
1482
+ id: import_zod24.z.string().min(1).max(200),
1483
+ name: import_zod24.z.string().max(200)
1484
+ });
1481
1485
  var ChatRow = import_zod24.z.strictObject({
1482
1486
  id: ChatId,
1483
1487
  /** The short id people see (the listing's first 8 characters). */
@@ -1504,7 +1508,11 @@ var ChatRow = import_zod24.z.strictObject({
1504
1508
  /** Created recently and in no project: offered for filing. */
1505
1509
  new_unfiled: import_zod24.z.boolean(),
1506
1510
  warnings: import_zod24.z.array(import_zod24.z.string().max(400)).max(20),
1507
- last_use: ChatLastUse.nullable()
1511
+ last_use: ChatLastUse.nullable(),
1512
+ /** 1.13: the app's own project the chat is grouped under in the app (Codex), read only; absent = none or not an app that groups. */
1513
+ app_project: ChatAppProject.optional(),
1514
+ /** 1.13: tokens the conversation has used, when the app records it (Codex); absent when not recorded; prices are not on disk. */
1515
+ tokens: nonNegInt.optional()
1508
1516
  });
1509
1517
  var ChatFamily = import_zod24.z.strictObject({
1510
1518
  id: ChatId,
@@ -1627,7 +1635,11 @@ var AccountUsage = import_zod25.z.strictObject({
1627
1635
  /** The next weekly reset, when known. */
1628
1636
  weekly_resets_at_ms: epochMs.nullable(),
1629
1637
  /** That reset time is Claude's own (its reading, or a reset seen in its usage history). */
1630
- weekly_reset_official: import_zod25.z.boolean().nullable()
1638
+ weekly_reset_official: import_zod25.z.boolean().nullable(),
1639
+ /** 1.13: the account's plan as the app names it (Codex: "pro", "prolite"), when recorded. */
1640
+ plan: import_zod25.z.string().max(80).optional(),
1641
+ /** 1.13: the account's credit balance as the app records it (Codex), when recorded. */
1642
+ credits: import_zod25.z.string().max(40).optional()
1631
1643
  });
1632
1644
  var AccountReset = import_zod25.z.strictObject({
1633
1645
  window: ChatPlace,
@@ -1643,9 +1655,19 @@ var AccountReset = import_zod25.z.strictObject({
1643
1655
  var AppsWindowsListParams = import_zod25.z.strictObject({ app_key: AppKey });
1644
1656
  var AppsWindowsListResult = import_zod25.z.strictObject({ app_key: AppKey, windows: import_zod25.z.array(AppWindowInfo).max(200) });
1645
1657
  var AppsAccountsUsageParams = import_zod25.z.strictObject({ app_key: AppKey });
1646
- var AppsAccountsUsageResult = import_zod25.z.strictObject({ app_key: AppKey, accounts: import_zod25.z.array(AccountUsage).max(500) });
1658
+ var AppsAccountsUsageResult = import_zod25.z.strictObject({
1659
+ app_key: AppKey,
1660
+ accounts: import_zod25.z.array(AccountUsage).max(500),
1661
+ /** 1.12: the rows are right but something around them failed (a newly read reset time could not be saved); shown, never hidden. */
1662
+ problem: import_zod25.z.string().max(400).optional()
1663
+ });
1647
1664
  var AppsAccountsResetsParams = import_zod25.z.strictObject({ app_key: AppKey });
1648
- var AppsAccountsResetsResult = import_zod25.z.strictObject({ app_key: AppKey, resets: import_zod25.z.array(AccountReset).max(200) });
1665
+ var AppsAccountsResetsResult = import_zod25.z.strictObject({
1666
+ app_key: AppKey,
1667
+ resets: import_zod25.z.array(AccountReset).max(200),
1668
+ /** 1.12: as on `apps.accounts.usage`. */
1669
+ problem: import_zod25.z.string().max(400).optional()
1670
+ });
1649
1671
  var AppsWindowActionResult = import_zod25.z.strictObject({ message: import_zod25.z.string().max(400) });
1650
1672
  var AppsWindowsOpenParams = import_zod25.z.strictObject({ app_key: AppKey, window: ChatPlace });
1651
1673
  var AppsWindowsReloadParams = import_zod25.z.strictObject({ app_key: AppKey, window: ChatPlace });