@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/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 = 77;
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({ id: ChatId, title: import_zod31.z.string().max(1e3), window: import_zod31.z.string().max(64).nullable(), helpers: import_zod31.z.array(SpendHelper).max(200) });
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({ id: ChatId, chat: import_zod31.z.string().max(1e3), who: import_zod31.z.string().max(400), today: SpendIdleScope, week: SpendIdleScope, last_ms: epochMs });
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"]]],