@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 +22 -2
- package/dist/{chunk-server-XQQUJENM.js → chunk-server-3QKXTKK4.js} +46 -8
- package/dist/chunk-server-3QKXTKK4.js.map +1 -0
- package/dist/client.cjs +38 -6
- 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 +46 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -6
- package/dist/index.d.ts +62 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-C2VdtixP.d.cts → models-D5O1othS.d.cts} +46 -0
- package/dist/{models-C2VdtixP.d.ts → models-D5O1othS.d.ts} +46 -0
- package/dist/react.d.cts +13 -0
- package/dist/react.d.ts +13 -0
- package/generated/desktop-protocol.schema.json +83 -2
- package/package.json +2 -2
- package/dist/chunk-server-XQQUJENM.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 = 79;
|
|
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_-]+$/);
|
|
@@ -3564,7 +3564,9 @@ var ColdChat = import_zod31.z.strictObject({
|
|
|
3564
3564
|
/** It can be shown in its window (started in the desktop app). */
|
|
3565
3565
|
openable: import_zod31.z.boolean(),
|
|
3566
3566
|
/** How its window was decided, or why it can't be opened. */
|
|
3567
|
-
how: import_zod31.z.string().max(200).nullable()
|
|
3567
|
+
how: import_zod31.z.string().max(200).nullable(),
|
|
3568
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
3569
|
+
hidden: import_zod31.z.boolean().optional()
|
|
3568
3570
|
});
|
|
3569
3571
|
var AppsChatsColdParams = import_zod31.z.strictObject({ app_key: AppKey });
|
|
3570
3572
|
var AppsChatsColdResult = import_zod31.z.strictObject({
|
|
@@ -3647,12 +3649,30 @@ var SpendChat = import_zod31.z.strictObject({
|
|
|
3647
3649
|
repo: import_zod31.z.string().max(200).nullable(),
|
|
3648
3650
|
window: import_zod31.z.string().max(64).nullable(),
|
|
3649
3651
|
spend: SpendScopes,
|
|
3650
|
-
helpers: nonNegInt
|
|
3652
|
+
helpers: nonNegInt,
|
|
3653
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
3654
|
+
hidden: import_zod31.z.boolean().optional()
|
|
3651
3655
|
});
|
|
3652
3656
|
var SpendHelper = import_zod31.z.strictObject({ model: import_zod31.z.string().max(120), steps: nonNegInt, over_steps: import_zod31.z.boolean(), description: import_zod31.z.string().max(400) });
|
|
3653
|
-
var SpendLive = import_zod31.z.strictObject({
|
|
3657
|
+
var SpendLive = import_zod31.z.strictObject({
|
|
3658
|
+
id: ChatId,
|
|
3659
|
+
title: import_zod31.z.string().max(1e3),
|
|
3660
|
+
window: import_zod31.z.string().max(64).nullable(),
|
|
3661
|
+
helpers: import_zod31.z.array(SpendHelper).max(200),
|
|
3662
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
3663
|
+
hidden: import_zod31.z.boolean().optional()
|
|
3664
|
+
});
|
|
3654
3665
|
var SpendIdleScope = import_zod31.z.strictObject({ count: nonNegInt, tokens: nonNegInt, cost: import_zod31.z.number(), avoidable: import_zod31.z.number() });
|
|
3655
|
-
var SpendIdle = import_zod31.z.strictObject({
|
|
3666
|
+
var SpendIdle = import_zod31.z.strictObject({
|
|
3667
|
+
id: ChatId,
|
|
3668
|
+
chat: import_zod31.z.string().max(1e3),
|
|
3669
|
+
who: import_zod31.z.string().max(400),
|
|
3670
|
+
today: SpendIdleScope,
|
|
3671
|
+
week: SpendIdleScope,
|
|
3672
|
+
last_ms: epochMs,
|
|
3673
|
+
/** 1.78: the person hid this chat from Matrx's lists (our Hide, as on ChatRow.hidden); absent = shown. */
|
|
3674
|
+
hidden: import_zod31.z.boolean().optional()
|
|
3675
|
+
});
|
|
3656
3676
|
var SpendStart = import_zod31.z.strictObject({ repo: import_zod31.z.string().max(200), count: nonNegInt, median: nonNegInt, latest: import_zod31.z.array(nonNegInt).max(20), alarm: import_zod31.z.string().max(400).nullable() });
|
|
3657
3677
|
var SpendDay = import_zod31.z.strictObject({ date: import_zod31.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), main: import_zod31.z.number(), helpers: import_zod31.z.number() });
|
|
3658
3678
|
var AppsSpendParams = import_zod31.z.strictObject({ app_key: AppKey });
|
|
@@ -3847,6 +3867,11 @@ var AccountProfile = import_zod32.z.strictObject({
|
|
|
3847
3867
|
/** When the app last fetched them, when it says. */
|
|
3848
3868
|
as_of_ms: epochMs.nullable()
|
|
3849
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
|
+
});
|
|
3850
3875
|
var AppAccount = import_zod32.z.strictObject({
|
|
3851
3876
|
app_key: AppKey,
|
|
3852
3877
|
/** The provider's own account id (Claude's account uuid, ChatGPT's account id); `org:<uuid>` when only its organization is known. */
|
|
@@ -3882,7 +3907,9 @@ var AppAccount = import_zod32.z.strictObject({
|
|
|
3882
3907
|
/** 1.73: where the newest reading came from (absent = the app itself). */
|
|
3883
3908
|
read_source: AccountReadSource.optional(),
|
|
3884
3909
|
/** 1.73: Claude Code: the running session's cost as Claude Code estimates it (US dollars), with a Claude Code reading. */
|
|
3885
|
-
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()
|
|
3886
3913
|
});
|
|
3887
3914
|
var AppsInstancesListParams = import_zod32.z.strictObject({ app_key: AppKey, fresh: import_zod32.z.boolean().optional() });
|
|
3888
3915
|
var AppsInstancesListResult = import_zod32.z.strictObject({
|
|
@@ -5130,8 +5157,13 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
5130
5157
|
["apps.projects.unfile", [["chat", "ChatRow"]]],
|
|
5131
5158
|
["apps.projects.move", [["chat", "ChatRow"]]],
|
|
5132
5159
|
["apps.chats.star", [["chat", "ChatRow"]]],
|
|
5160
|
+
// 1.78: our Hide on the cold and spend rows.
|
|
5161
|
+
["apps.chats.cold", [["waiting", "ColdChat"], ["recently_cold", "ColdChat"]]],
|
|
5162
|
+
["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
|
|
5133
5163
|
["apps.chats.place", [["chat", "ChatRow"]]],
|
|
5134
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"]]],
|
|
5135
5167
|
["resources.snapshot", [["disks", "ResourcesDisk"]]],
|
|
5136
5168
|
["stack.state", [["servers", "StackServer"]]],
|
|
5137
5169
|
["account.agents.list", [["agents", "AccountAgent"]]],
|