@ai-matrx/desktop-protocol 0.21.80 → 0.21.81
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 -2
- package/dist/{chunk-server-XQQUJENM.js → chunk-server-T5RWEV22.js} +33 -6
- package/dist/chunk-server-T5RWEV22.js.map +1 -0
- package/dist/client.cjs +28 -5
- 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 +33 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -5
- package/dist/index.d.ts +28 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-C2VdtixP.d.cts → models-BnUudL7J.d.cts} +14 -0
- package/dist/{models-C2VdtixP.d.ts → models-BnUudL7J.d.ts} +14 -0
- package/dist/react.d.cts +5 -0
- package/dist/react.d.ts +5 -0
- package/generated/desktop-protocol.schema.json +25 -1
- 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 = 78;
|
|
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 });
|
|
@@ -5130,6 +5150,9 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
5130
5150
|
["apps.projects.unfile", [["chat", "ChatRow"]]],
|
|
5131
5151
|
["apps.projects.move", [["chat", "ChatRow"]]],
|
|
5132
5152
|
["apps.chats.star", [["chat", "ChatRow"]]],
|
|
5153
|
+
// 1.78: our Hide on the cold and spend rows.
|
|
5154
|
+
["apps.chats.cold", [["waiting", "ColdChat"], ["recently_cold", "ColdChat"]]],
|
|
5155
|
+
["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
|
|
5133
5156
|
["apps.chats.place", [["chat", "ChatRow"]]],
|
|
5134
5157
|
["apps.accounts.usage", [["accounts", "AccountUsage"]]],
|
|
5135
5158
|
["resources.snapshot", [["disks", "ResourcesDisk"]]],
|