@ai-matrx/desktop-protocol 0.21.81 → 0.21.83
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 +14 -0
- package/dist/{chunk-server-T5RWEV22.js → chunk-server-EKAFTH72.js} +39 -5
- package/dist/chunk-server-EKAFTH72.js.map +1 -0
- package/dist/client.cjs +12 -3
- 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 +39 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -7
- package/dist/index.d.ts +54 -7
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BnUudL7J.d.cts → models-DMJ4I-2x.d.cts} +37 -0
- package/dist/{models-BnUudL7J.d.ts → models-DMJ4I-2x.d.ts} +37 -0
- package/dist/react.d.cts +9 -0
- package/dist/react.d.ts +9 -0
- package/generated/desktop-protocol.schema.json +61 -3
- package/package.json +2 -2
- package/dist/chunk-server-T5RWEV22.js.map +0 -1
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 =
|
|
147
|
+
var PROTOCOL_MINOR = 80;
|
|
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_-]+$/);
|
|
@@ -3867,6 +3867,11 @@ var AccountProfile = import_zod32.z.strictObject({
|
|
|
3867
3867
|
/** When the app last fetched them, when it says. */
|
|
3868
3868
|
as_of_ms: epochMs.nullable()
|
|
3869
3869
|
});
|
|
3870
|
+
var AccountReadingsKept = import_zod32.z.strictObject({
|
|
3871
|
+
kept: import_zod32.z.number().int().nonnegative(),
|
|
3872
|
+
since_ms: epochMs.nullable(),
|
|
3873
|
+
days: import_zod32.z.array(import_zod32.z.strictObject({ day_ms: epochMs, weekly: import_zod32.z.number().nullable() })).max(31)
|
|
3874
|
+
});
|
|
3870
3875
|
var AppAccount = import_zod32.z.strictObject({
|
|
3871
3876
|
app_key: AppKey,
|
|
3872
3877
|
/** The provider's own account id (Claude's account uuid, ChatGPT's account id); `org:<uuid>` when only its organization is known. */
|
|
@@ -3902,7 +3907,9 @@ var AppAccount = import_zod32.z.strictObject({
|
|
|
3902
3907
|
/** 1.73: where the newest reading came from (absent = the app itself). */
|
|
3903
3908
|
read_source: AccountReadSource.optional(),
|
|
3904
3909
|
/** 1.73: Claude Code: the running session's cost as Claude Code estimates it (US dollars), with a Claude Code reading. */
|
|
3905
|
-
session_cost_usd: import_zod32.z.number().nonnegative().optional()
|
|
3910
|
+
session_cost_usd: import_zod32.z.number().nonnegative().optional(),
|
|
3911
|
+
/** 1.79: the readings Matrx kept of this account on this computer (its reading history). */
|
|
3912
|
+
readings: AccountReadingsKept.optional()
|
|
3906
3913
|
});
|
|
3907
3914
|
var AppsInstancesListParams = import_zod32.z.strictObject({ app_key: AppKey, fresh: import_zod32.z.boolean().optional() });
|
|
3908
3915
|
var AppsInstancesListResult = import_zod32.z.strictObject({
|
|
@@ -3953,7 +3960,7 @@ var McpServerRow = import_zod32.z.strictObject({
|
|
|
3953
3960
|
where: import_zod32.z.string().max(400)
|
|
3954
3961
|
});
|
|
3955
3962
|
var SetupFact = import_zod32.z.strictObject({ name: import_zod32.z.string().max(80), value: import_zod32.z.string().max(300) });
|
|
3956
|
-
var SetupItemKind = import_zod32.z.enum(["extension", "plugin", "marketplace", "model"]);
|
|
3963
|
+
var SetupItemKind = import_zod32.z.enum(["extension", "plugin", "marketplace", "model", "skill"]);
|
|
3957
3964
|
var SetupItem = import_zod32.z.strictObject({
|
|
3958
3965
|
kind: SetupItemKind,
|
|
3959
3966
|
name: import_zod32.z.string().max(200),
|
|
@@ -5155,6 +5162,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
5155
5162
|
["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
|
|
5156
5163
|
["apps.chats.place", [["chat", "ChatRow"]]],
|
|
5157
5164
|
["apps.accounts.usage", [["accounts", "AccountUsage"]]],
|
|
5165
|
+
// 1.73/1.79: the account rows' newer fields (profile, read_source, session_cost_usd, readings).
|
|
5166
|
+
["apps.accounts.list", [["accounts", "AppAccount"]]],
|
|
5158
5167
|
["resources.snapshot", [["disks", "ResourcesDisk"]]],
|
|
5159
5168
|
["stack.state", [["servers", "StackServer"]]],
|
|
5160
5169
|
["account.agents.list", [["agents", "AccountAgent"]]],
|