@ai-matrx/desktop-protocol 0.21.80 → 0.21.82

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,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.82
4
+ ### Protocol 1.79 — the usage readings Matrx keeps
5
+
6
+ - `AppAccount` (apps.accounts.list `accounts`): optional `readings` (`AccountReadingsKept`: `kept`,
7
+ `since_ms`, `days` of `{ day_ms, weekly }`), the readings Matrx kept of the account on this computer.
8
+ In FIELDS_SINCE; apps.accounts.list's `accounts` now strip AppAccount's newer fields for older peers.
9
+ Consumer action: none.
10
+
11
+ ## 0.21.81
12
+ ### Protocol 1.78 — our Hide on Going cold and Spend
13
+
14
+ - `ColdChat` (apps.chats.cold `waiting`, `recently_cold`), `SpendChat`, `SpendLive`, `SpendIdle`
15
+ (apps.spend `chats`, `live`, `idle`): optional `hidden`, the person hid the chat from Matrx's lists
16
+ (as `ChatRow.hidden`). In FIELDS_SINCE; stripped for older peers. Consumer action: none.
17
+
3
18
  ## 0.21.80
4
19
 
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`.
20
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
21
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
22
+ Diff: `git diff e6fc2655c1 268d0c2f1f -- apps/shared/desktop-protocol/src`
23
+
24
+ Changed shipped source files (2):
25
+ - `apps/shared/desktop-protocol/src/client/client.ts`
26
+ - `apps/shared/desktop-protocol/src/client/types.ts`
7
27
 
8
28
  ## 0.21.79
9
29
 
@@ -6,7 +6,7 @@ import {
6
6
  import { z } from "zod";
7
7
  import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
8
8
  var PROTOCOL_MAJOR = 1;
9
- var PROTOCOL_MINOR = 77;
9
+ var PROTOCOL_MINOR = 79;
10
10
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
11
11
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
12
12
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1718,7 +1718,9 @@ var ColdChat = z14.strictObject({
1718
1718
  /** It can be shown in its window (started in the desktop app). */
1719
1719
  openable: z14.boolean(),
1720
1720
  /** How its window was decided, or why it can't be opened. */
1721
- how: z14.string().max(200).nullable()
1721
+ how: z14.string().max(200).nullable(),
1722
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
1723
+ hidden: z14.boolean().optional()
1722
1724
  });
1723
1725
  var AppsChatsColdParams = z14.strictObject({ app_key: AppKey });
1724
1726
  var AppsChatsColdResult = z14.strictObject({
@@ -1801,12 +1803,30 @@ var SpendChat = z14.strictObject({
1801
1803
  repo: z14.string().max(200).nullable(),
1802
1804
  window: z14.string().max(64).nullable(),
1803
1805
  spend: SpendScopes,
1804
- helpers: nonNegInt
1806
+ helpers: nonNegInt,
1807
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
1808
+ hidden: z14.boolean().optional()
1805
1809
  });
1806
1810
  var SpendHelper = z14.strictObject({ model: z14.string().max(120), steps: nonNegInt, over_steps: z14.boolean(), description: z14.string().max(400) });
1807
- var SpendLive = z14.strictObject({ id: ChatId, title: z14.string().max(1e3), window: z14.string().max(64).nullable(), helpers: z14.array(SpendHelper).max(200) });
1811
+ var SpendLive = z14.strictObject({
1812
+ id: ChatId,
1813
+ title: z14.string().max(1e3),
1814
+ window: z14.string().max(64).nullable(),
1815
+ helpers: z14.array(SpendHelper).max(200),
1816
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
1817
+ hidden: z14.boolean().optional()
1818
+ });
1808
1819
  var SpendIdleScope = z14.strictObject({ count: nonNegInt, tokens: nonNegInt, cost: z14.number(), avoidable: z14.number() });
1809
- var SpendIdle = z14.strictObject({ id: ChatId, chat: z14.string().max(1e3), who: z14.string().max(400), today: SpendIdleScope, week: SpendIdleScope, last_ms: epochMs });
1820
+ var SpendIdle = z14.strictObject({
1821
+ id: ChatId,
1822
+ chat: z14.string().max(1e3),
1823
+ who: z14.string().max(400),
1824
+ today: SpendIdleScope,
1825
+ week: SpendIdleScope,
1826
+ last_ms: epochMs,
1827
+ /** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
1828
+ hidden: z14.boolean().optional()
1829
+ });
1810
1830
  var SpendStart = z14.strictObject({ repo: z14.string().max(200), count: nonNegInt, median: nonNegInt, latest: z14.array(nonNegInt).max(20), alarm: z14.string().max(400).nullable() });
1811
1831
  var SpendDay = z14.strictObject({ date: z14.string().regex(/^\d{4}-\d{2}-\d{2}$/), main: z14.number(), helpers: z14.number() });
1812
1832
  var AppsSpendParams = z14.strictObject({ app_key: AppKey });
@@ -2001,6 +2021,11 @@ var AccountProfile = z15.strictObject({
2001
2021
  /** When the app last fetched them, when it says. */
2002
2022
  as_of_ms: epochMs.nullable()
2003
2023
  });
2024
+ var AccountReadingsKept = z15.strictObject({
2025
+ kept: z15.number().int().nonnegative(),
2026
+ since_ms: epochMs.nullable(),
2027
+ days: z15.array(z15.strictObject({ day_ms: epochMs, weekly: z15.number().nullable() })).max(31)
2028
+ });
2004
2029
  var AppAccount = z15.strictObject({
2005
2030
  app_key: AppKey,
2006
2031
  /** The provider's own account id (Claude's account uuid, ChatGPT's account id); `org:<uuid>` when only its organization is known. */
@@ -2036,7 +2061,9 @@ var AppAccount = z15.strictObject({
2036
2061
  /** 1.73: where the newest reading came from (absent = the app itself). */
2037
2062
  read_source: AccountReadSource.optional(),
2038
2063
  /** 1.73: Claude Code: the running session's cost as Claude Code estimates it (US dollars), with a Claude Code reading. */
2039
- session_cost_usd: z15.number().nonnegative().optional()
2064
+ session_cost_usd: z15.number().nonnegative().optional(),
2065
+ /** 1.79: the readings Matrx kept of this account on this computer (its reading history). */
2066
+ readings: AccountReadingsKept.optional()
2040
2067
  });
2041
2068
  var AppsInstancesListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
2042
2069
  var AppsInstancesListResult = z15.strictObject({
@@ -5097,6 +5124,7 @@ var NAMED_SCHEMAS = {
5097
5124
  AppsAccountsListResult,
5098
5125
  AccountReadSource,
5099
5126
  AccountProfile,
5127
+ AccountReadingsKept,
5100
5128
  McpTransport,
5101
5129
  McpServerRow,
5102
5130
  SetupFact,
@@ -5942,9 +5970,13 @@ var FIELDS_SINCE = {
5942
5970
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
5943
5971
  AppsAccountsUsageResult: { problem: "1.12" },
5944
5972
  AppsAccountsResetsResult: { problem: "1.12" },
5973
+ ColdChat: { hidden: "1.78" },
5974
+ SpendChat: { hidden: "1.78" },
5975
+ SpendLive: { hidden: "1.78" },
5976
+ SpendIdle: { hidden: "1.78" },
5945
5977
  ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63", hidden: "1.70", pin_sync: "1.72" },
5946
5978
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25", read_source: "1.73" },
5947
- AppAccount: { profile: "1.73", read_source: "1.73", session_cost_usd: "1.73" },
5979
+ AppAccount: { profile: "1.73", read_source: "1.73", session_cost_usd: "1.73", readings: "1.79" },
5948
5980
  ResourcesDisk: { name: "1.17" },
5949
5981
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
5950
5982
  AudioDevice: { kind: "1.24" },
@@ -6088,8 +6120,13 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
6088
6120
  ["apps.projects.unfile", [["chat", "ChatRow"]]],
6089
6121
  ["apps.projects.move", [["chat", "ChatRow"]]],
6090
6122
  ["apps.chats.star", [["chat", "ChatRow"]]],
6123
+ // 1.78: our Hide on the cold and spend rows.
6124
+ ["apps.chats.cold", [["waiting", "ColdChat"], ["recently_cold", "ColdChat"]]],
6125
+ ["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
6091
6126
  ["apps.chats.place", [["chat", "ChatRow"]]],
6092
6127
  ["apps.accounts.usage", [["accounts", "AccountUsage"]]],
6128
+ // 1.73/1.79: the account rows' newer fields (profile, read_source, session_cost_usd, readings).
6129
+ ["apps.accounts.list", [["accounts", "AppAccount"]]],
6093
6130
  ["resources.snapshot", [["disks", "ResourcesDisk"]]],
6094
6131
  ["stack.state", [["servers", "StackServer"]]],
6095
6132
  ["account.agents.list", [["agents", "AccountAgent"]]],
@@ -6622,6 +6659,7 @@ export {
6622
6659
  AccountGap,
6623
6660
  AccountReadSource,
6624
6661
  AccountProfile,
6662
+ AccountReadingsKept,
6625
6663
  AppAccount,
6626
6664
  AppsInstancesListParams,
6627
6665
  AppsInstancesListResult,
@@ -7149,4 +7187,4 @@ export {
7149
7187
  closeRule,
7150
7188
  isTerminalClose
7151
7189
  };
7152
- //# sourceMappingURL=chunk-server-XQQUJENM.js.map
7190
+ //# sourceMappingURL=chunk-server-3QKXTKK4.js.map