@ai-matrx/desktop-protocol 0.21.71 → 0.21.73

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 = 70;
147
+ var PROTOCOL_MINOR = 72;
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_-]+$/);
@@ -3145,6 +3145,11 @@ var ChatRow = import_zod30.z.strictObject({
3145
3145
  prior_sessions: import_zod30.z.array(ChatId).max(50).optional(),
3146
3146
  /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
3147
3147
  title_sync: ChatTitleSync.optional(),
3148
+ /**
3149
+ * 1.72: whether our star is the app's pin for this chat (the pin facet's sync state: `synced` only
3150
+ * where a test proved the app takes and keeps the pin Matrx writes; `not_synced` says why).
3151
+ */
3152
+ pin_sync: ChatTitleSync.optional(),
3148
3153
  /** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
3149
3154
  moved: import_zod30.z.array(ChatMove).max(50).optional(),
3150
3155
  /**
@@ -3461,6 +3466,30 @@ var AppsProjectsToWindowResult = import_zod31.z.strictObject({
3461
3466
  chats: import_zod31.z.array(ProjectMoveOutcome).max(5e3).optional(),
3462
3467
  message: import_zod31.z.string().max(400)
3463
3468
  });
3469
+ var AppsChatsBringBackParams = import_zod31.z.strictObject({ app_key: AppKey, chat_id: ChatId, dry_run: import_zod31.z.boolean().optional() });
3470
+ var AppsChatsBringBackResult = AppsProjectsToWindowResult.extend({ project_id: ChatProjectId.nullable() });
3471
+ var TidyUpFacet = import_zod31.z.strictObject({
3472
+ app_key: AppKey,
3473
+ facet: import_zod31.z.enum(["title", "pin"]),
3474
+ state: import_zod31.z.enum(["synced", "not_synced", "unsupported"]),
3475
+ note: import_zod31.z.string().max(400),
3476
+ to_push: nonNegInt,
3477
+ pushed: nonNegInt,
3478
+ already: nonNegInt,
3479
+ waiting: nonNegInt,
3480
+ failed: nonNegInt
3481
+ });
3482
+ var TidyUpRestart = import_zod31.z.strictObject({ window: ChatPlace, why: import_zod31.z.string().max(400) });
3483
+ var AppsChatsTidyUpParams = import_zod31.z.strictObject({ dry_run: import_zod31.z.boolean(), restart_windows: import_zod31.z.array(ChatPlace).max(64).optional() });
3484
+ var AppsChatsTidyUpResult = import_zod31.z.strictObject({
3485
+ dry_run: import_zod31.z.boolean(),
3486
+ facets: import_zod31.z.array(TidyUpFacet).max(32),
3487
+ /** Claude windows that would keep an old name until they reopen (the plan lists them; nothing is quit unasked). */
3488
+ restart: import_zod31.z.array(TidyUpRestart).max(64),
3489
+ /** The windows this run quit and reopened. */
3490
+ restarted: import_zod31.z.array(ChatPlace).max(64),
3491
+ message: import_zod31.z.string().max(600)
3492
+ });
3464
3493
  var ColdChat = import_zod31.z.strictObject({
3465
3494
  id: ChatId,
3466
3495
  title: import_zod31.z.string().max(1e3),
@@ -3729,6 +3758,20 @@ var AppInstance = import_zod32.z.strictObject({
3729
3758
  /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
3730
3759
  missing: import_zod32.z.array(InstanceGap).max(3).optional()
3731
3760
  });
3761
+ var ElsewhereInstance = import_zod32.z.strictObject({
3762
+ app_key: AppKey,
3763
+ /** Its key on its own computer ("main", or its name). */
3764
+ key: import_zod32.z.string().max(120),
3765
+ main: import_zod32.z.boolean(),
3766
+ /** The computer it is on, by its name in Devices. */
3767
+ computer: import_zod32.z.string().max(200),
3768
+ /** Its data folder, as that computer shows it (a label: it is not on this computer). */
3769
+ folder: import_zod32.z.string().max(1024).nullable(),
3770
+ account_id: import_zod32.z.string().max(200).nullable(),
3771
+ account: import_zod32.z.string().max(320).nullable(),
3772
+ /** When that computer last read it. */
3773
+ seen_ms: epochMs.nullable()
3774
+ });
3732
3775
  var AccountResetSource = import_zod32.z.enum(["app", "usage_history", "your_list"]);
3733
3776
  var AccountGap = import_zod32.z.enum(["email", "plan", "usage"]);
3734
3777
  var AppAccount = import_zod32.z.strictObject({
@@ -3770,7 +3813,13 @@ var AppsInstancesListResult = import_zod32.z.strictObject({
3770
3813
  /** The rows are right but something around them failed; shown, never hidden. */
3771
3814
  problem: import_zod32.z.string().max(400).optional(),
3772
3815
  as_of_ms: epochMs.optional(),
3773
- refreshing: import_zod32.z.boolean().optional()
3816
+ refreshing: import_zod32.z.boolean().optional(),
3817
+ /** 1.71: this computer's name (the Computer of every `instances` row). */
3818
+ computer: import_zod32.z.string().max(200).optional(),
3819
+ /** 1.71: the person's instances on their other computers, from the database (read only). */
3820
+ elsewhere: import_zod32.z.array(ElsewhereInstance).max(500).optional(),
3821
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's alone. */
3822
+ shared_problem: import_zod32.z.string().max(200).optional()
3774
3823
  });
3775
3824
  var AppsAccountsListParams = import_zod32.z.strictObject({ app_key: AppKey, fresh: import_zod32.z.boolean().optional() });
3776
3825
  var AppsAccountsListResult = import_zod32.z.strictObject({
@@ -3778,7 +3827,9 @@ var AppsAccountsListResult = import_zod32.z.strictObject({
3778
3827
  accounts: import_zod32.z.array(AppAccount).max(500),
3779
3828
  problem: import_zod32.z.string().max(400).optional(),
3780
3829
  as_of_ms: epochMs.optional(),
3781
- refreshing: import_zod32.z.boolean().optional()
3830
+ refreshing: import_zod32.z.boolean().optional(),
3831
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's memory alone. */
3832
+ shared_problem: import_zod32.z.string().max(200).optional()
3782
3833
  });
3783
3834
  var AppsWindowsSetAccountParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace, email: import_zod32.z.string().min(3).max(320) });
3784
3835
  var AppsWindowsForgetParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace });
@@ -4705,6 +4756,8 @@ var OPS = {
4705
4756
  "apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4706
4757
  "apps.chats.titles_check": { params: AppsChatsTitlesCheckParams, result: AppsChatsTitlesCheckResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4707
4758
  "apps.chats.titles_push": { params: AppsChatsTitlesPushParams, result: AppsChatsTitlesPushResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4759
+ "apps.chats.bring_back": { params: AppsChatsBringBackParams, result: AppsChatsBringBackResult, kind: "unary", since: "1.72", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4760
+ "apps.chats.tidy_up": { params: AppsChatsTidyUpParams, result: AppsChatsTidyUpResult, kind: "unary", since: "1.72", errors: ["INVALID_PARAMS", "NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4708
4761
  "apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4709
4762
  "apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4710
4763
  "apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },