@ai-matrx/desktop-protocol 0.21.81 → 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 +8 -0
- package/dist/{chunk-server-T5RWEV22.js → chunk-server-3QKXTKK4.js} +15 -4
- package/dist/chunk-server-3QKXTKK4.js.map +1 -0
- package/dist/client.cjs +11 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/index.cjs +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -6
- package/dist/index.d.ts +39 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BnUudL7J.d.cts → models-D5O1othS.d.cts} +32 -0
- package/dist/{models-BnUudL7J.d.ts → models-D5O1othS.d.ts} +32 -0
- package/dist/react.d.cts +8 -0
- package/dist/react.d.ts +8 -0
- package/generated/desktop-protocol.schema.json +59 -2
- package/package.json +2 -2
- package/dist/chunk-server-T5RWEV22.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 0.21.81
|
|
4
12
|
### Protocol 1.78 — our Hide on Going cold and Spend
|
|
5
13
|
|
|
@@ -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 =
|
|
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_-]+$/);
|
|
@@ -2021,6 +2021,11 @@ var AccountProfile = z15.strictObject({
|
|
|
2021
2021
|
/** When the app last fetched them, when it says. */
|
|
2022
2022
|
as_of_ms: epochMs.nullable()
|
|
2023
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
|
+
});
|
|
2024
2029
|
var AppAccount = z15.strictObject({
|
|
2025
2030
|
app_key: AppKey,
|
|
2026
2031
|
/** The provider's own account id (Claude's account uuid, ChatGPT's account id); `org:<uuid>` when only its organization is known. */
|
|
@@ -2056,7 +2061,9 @@ var AppAccount = z15.strictObject({
|
|
|
2056
2061
|
/** 1.73: where the newest reading came from (absent = the app itself). */
|
|
2057
2062
|
read_source: AccountReadSource.optional(),
|
|
2058
2063
|
/** 1.73: Claude Code: the running session's cost as Claude Code estimates it (US dollars), with a Claude Code reading. */
|
|
2059
|
-
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()
|
|
2060
2067
|
});
|
|
2061
2068
|
var AppsInstancesListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
|
|
2062
2069
|
var AppsInstancesListResult = z15.strictObject({
|
|
@@ -5117,6 +5124,7 @@ var NAMED_SCHEMAS = {
|
|
|
5117
5124
|
AppsAccountsListResult,
|
|
5118
5125
|
AccountReadSource,
|
|
5119
5126
|
AccountProfile,
|
|
5127
|
+
AccountReadingsKept,
|
|
5120
5128
|
McpTransport,
|
|
5121
5129
|
McpServerRow,
|
|
5122
5130
|
SetupFact,
|
|
@@ -5968,7 +5976,7 @@ var FIELDS_SINCE = {
|
|
|
5968
5976
|
SpendIdle: { hidden: "1.78" },
|
|
5969
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" },
|
|
5970
5978
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25", read_source: "1.73" },
|
|
5971
|
-
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" },
|
|
5972
5980
|
ResourcesDisk: { name: "1.17" },
|
|
5973
5981
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
5974
5982
|
AudioDevice: { kind: "1.24" },
|
|
@@ -6117,6 +6125,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
6117
6125
|
["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
|
|
6118
6126
|
["apps.chats.place", [["chat", "ChatRow"]]],
|
|
6119
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"]]],
|
|
6120
6130
|
["resources.snapshot", [["disks", "ResourcesDisk"]]],
|
|
6121
6131
|
["stack.state", [["servers", "StackServer"]]],
|
|
6122
6132
|
["account.agents.list", [["agents", "AccountAgent"]]],
|
|
@@ -6649,6 +6659,7 @@ export {
|
|
|
6649
6659
|
AccountGap,
|
|
6650
6660
|
AccountReadSource,
|
|
6651
6661
|
AccountProfile,
|
|
6662
|
+
AccountReadingsKept,
|
|
6652
6663
|
AppAccount,
|
|
6653
6664
|
AppsInstancesListParams,
|
|
6654
6665
|
AppsInstancesListResult,
|
|
@@ -7176,4 +7187,4 @@ export {
|
|
|
7176
7187
|
closeRule,
|
|
7177
7188
|
isTerminalClose
|
|
7178
7189
|
};
|
|
7179
|
-
//# sourceMappingURL=chunk-server-
|
|
7190
|
+
//# sourceMappingURL=chunk-server-3QKXTKK4.js.map
|