@ai-matrx/desktop-protocol 0.21.70 → 0.21.72

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 = 69;
147
+ var PROTOCOL_MINOR = 71;
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_-]+$/);
@@ -3152,7 +3152,12 @@ var ChatRow = import_zod30.z.strictObject({
3152
3152
  * moved). Claude: the side window holding its newest record copy (main mirrors every window), else
3153
3153
  * main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
3154
3154
  */
3155
- home: ChatPlace.optional()
3155
+ home: ChatPlace.optional(),
3156
+ /**
3157
+ * 1.70: the person hid it from Matrx's lists (ours, kept by Matrx, never written into the app;
3158
+ * absent = shown). The app's own hidden facts stay apart: `hidden_in`, `archived`, `hidden_from_main`.
3159
+ */
3160
+ hidden: import_zod30.z.boolean().optional()
3156
3161
  });
3157
3162
  var ChatFamily = import_zod30.z.strictObject({
3158
3163
  id: ChatId,
@@ -3231,6 +3236,8 @@ var AppsProjectsUnfileParams = import_zod30.z.strictObject({ app_key: AppKey, ch
3231
3236
  var AppsProjectsUnfileResult = import_zod30.z.strictObject({ chat: ChatRow });
3232
3237
  var AppsChatsStarParams = import_zod30.z.strictObject({ app_key: AppKey, chat_id: ChatId, starred: import_zod30.z.boolean() });
3233
3238
  var AppsChatsStarResult = import_zod30.z.strictObject({ chat: ChatRow });
3239
+ var AppsChatsHideParams = import_zod30.z.strictObject({ app_key: AppKey, chat_ids: import_zod30.z.array(ChatId).min(1).max(500), hidden: import_zod30.z.boolean() });
3240
+ var AppsChatsHideResult = import_zod30.z.strictObject({ app_key: AppKey, hidden: import_zod30.z.boolean(), changed: import_zod30.z.array(ChatId).max(500) });
3234
3241
 
3235
3242
  // src/schema/apps-accounts.ts
3236
3243
  var import_zod31 = require("zod");
@@ -3722,6 +3729,20 @@ var AppInstance = import_zod32.z.strictObject({
3722
3729
  /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
3723
3730
  missing: import_zod32.z.array(InstanceGap).max(3).optional()
3724
3731
  });
3732
+ var ElsewhereInstance = import_zod32.z.strictObject({
3733
+ app_key: AppKey,
3734
+ /** Its key on its own computer ("main", or its name). */
3735
+ key: import_zod32.z.string().max(120),
3736
+ main: import_zod32.z.boolean(),
3737
+ /** The computer it is on, by its name in Devices. */
3738
+ computer: import_zod32.z.string().max(200),
3739
+ /** Its data folder, as that computer shows it (a label: it is not on this computer). */
3740
+ folder: import_zod32.z.string().max(1024).nullable(),
3741
+ account_id: import_zod32.z.string().max(200).nullable(),
3742
+ account: import_zod32.z.string().max(320).nullable(),
3743
+ /** When that computer last read it. */
3744
+ seen_ms: epochMs.nullable()
3745
+ });
3725
3746
  var AccountResetSource = import_zod32.z.enum(["app", "usage_history", "your_list"]);
3726
3747
  var AccountGap = import_zod32.z.enum(["email", "plan", "usage"]);
3727
3748
  var AppAccount = import_zod32.z.strictObject({
@@ -3763,7 +3784,13 @@ var AppsInstancesListResult = import_zod32.z.strictObject({
3763
3784
  /** The rows are right but something around them failed; shown, never hidden. */
3764
3785
  problem: import_zod32.z.string().max(400).optional(),
3765
3786
  as_of_ms: epochMs.optional(),
3766
- refreshing: import_zod32.z.boolean().optional()
3787
+ refreshing: import_zod32.z.boolean().optional(),
3788
+ /** 1.71: this computer's name (the Computer of every `instances` row). */
3789
+ computer: import_zod32.z.string().max(200).optional(),
3790
+ /** 1.71: the person's instances on their other computers, from the database (read only). */
3791
+ elsewhere: import_zod32.z.array(ElsewhereInstance).max(500).optional(),
3792
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's alone. */
3793
+ shared_problem: import_zod32.z.string().max(200).optional()
3767
3794
  });
3768
3795
  var AppsAccountsListParams = import_zod32.z.strictObject({ app_key: AppKey, fresh: import_zod32.z.boolean().optional() });
3769
3796
  var AppsAccountsListResult = import_zod32.z.strictObject({
@@ -3771,7 +3798,9 @@ var AppsAccountsListResult = import_zod32.z.strictObject({
3771
3798
  accounts: import_zod32.z.array(AppAccount).max(500),
3772
3799
  problem: import_zod32.z.string().max(400).optional(),
3773
3800
  as_of_ms: epochMs.optional(),
3774
- refreshing: import_zod32.z.boolean().optional()
3801
+ refreshing: import_zod32.z.boolean().optional(),
3802
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's memory alone. */
3803
+ shared_problem: import_zod32.z.string().max(200).optional()
3775
3804
  });
3776
3805
  var AppsWindowsSetAccountParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace, email: import_zod32.z.string().min(3).max(320) });
3777
3806
  var AppsWindowsForgetParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace });
@@ -4663,6 +4692,7 @@ var OPS = {
4663
4692
  "apps.chats.list": { params: AppsChatsListParams, result: AppsChatsListResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4664
4693
  "apps.chats.watch": { params: AppsChatsWatchParams, result: AppsChatsWatchResult, kind: "resource", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"] },
4665
4694
  "apps.chats.star": { params: AppsChatsStarParams, result: AppsChatsStarResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4695
+ "apps.chats.hide": { params: AppsChatsHideParams, result: AppsChatsHideResult, kind: "unary", since: "1.70", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4666
4696
  "apps.projects.file": { params: AppsProjectsFileParams, result: AppsProjectsFileResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4667
4697
  "apps.chats.place": { params: AppsChatsPlaceParams, result: AppsChatsPlaceResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4668
4698
  "apps.projects.file_many": { params: AppsProjectsFileManyParams, result: AppsProjectsFileManyResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },