@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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.73
4
+ ### Protocol 1.72 — ours pushed into the apps
5
+
6
+ - `ChatRow`: optional `pin_sync` (a `ChatTitleSync`): whether our star is the app's pin for this chat;
7
+ `synced` only where a test proved the app takes and keeps the pin Matrx writes.
8
+ - New op `apps.chats.bring_back` (`app_key`, `chat_id`, `dry_run?`): one chat home from its move
9
+ records, never a project; answers the to-window result with `project_id` null.
10
+ - New op `apps.chats.tidy_up` (`dry_run`, `restart_windows?`): pushes ours (titles, pins) into every
11
+ app whose facet can take it; answers per app and facet (`TidyUpFacet`), the Claude windows that
12
+ would keep an old name until reopened (`restart`, `TidyUpRestart`) and those it reopened.
13
+ - Optional field in FIELDS_SINCE, new ops since 1.72. Consumer action: none for an older client.
14
+
15
+ ## 0.21.72
16
+ ### Protocol 1.71 — coding-app accounts and instances in the database
17
+
18
+ - `AppsInstancesListResult`: optional `computer` (this computer's name), `elsewhere` (new named
19
+ `ElsewhereInstance`: app_key, key, main, computer, folder, account_id, account, seen_ms — the
20
+ person's instances on their other computers, read only) and `shared_problem` (the database copy
21
+ could not be read or written; the rows are this computer's alone).
22
+ - `AppsAccountsListResult`: optional `shared_problem`.
23
+ - All optional, in FIELDS_SINCE. Consumer action: none for an older client; a 1.71 client can show
24
+ other computers' instances and say when the database copy is not reachable.
25
+
26
+ ### Protocol 1.70 — our Hide for chats
27
+
28
+ - `ChatRow`: optional `hidden` — the person hid the chat from Matrx's lists. Kept by Matrx, never
29
+ written into the app; the app's own hidden facts stay `hidden_in`, `archived`, `hidden_from_main`.
30
+ - New op `apps.chats.hide` (`app_key`, `chat_ids` 1–500, `hidden`) answers `changed`: the chats whose
31
+ hidden state the call changed.
32
+ - Optional field in FIELDS_SINCE, new op since 1.70. Consumer action: none for an older client.
33
+
3
34
  ## 0.21.71
4
35
  ### Protocol 1.70 — our Hide for chats
5
36
 
@@ -6,7 +6,7 @@ import {
6
6
  import { z } from "zod";
7
7
  import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
8
8
  var PROTOCOL_MAJOR = 1;
9
- var PROTOCOL_MINOR = 70;
9
+ var PROTOCOL_MINOR = 72;
10
10
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
11
11
  var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
12
12
  var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -1305,6 +1305,11 @@ var ChatRow = z13.strictObject({
1305
1305
  prior_sessions: z13.array(ChatId).max(50).optional(),
1306
1306
  /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
1307
1307
  title_sync: ChatTitleSync.optional(),
1308
+ /**
1309
+ * 1.72: whether our star is the app's pin for this chat (the pin facet's sync state: `synced` only
1310
+ * where a test proved the app takes and keeps the pin Matrx writes; `not_synced` says why).
1311
+ */
1312
+ pin_sync: ChatTitleSync.optional(),
1308
1313
  /** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
1309
1314
  moved: z13.array(ChatMove).max(50).optional(),
1310
1315
  /**
@@ -1621,6 +1626,30 @@ var AppsProjectsToWindowResult = z14.strictObject({
1621
1626
  chats: z14.array(ProjectMoveOutcome).max(5e3).optional(),
1622
1627
  message: z14.string().max(400)
1623
1628
  });
1629
+ var AppsChatsBringBackParams = z14.strictObject({ app_key: AppKey, chat_id: ChatId, dry_run: z14.boolean().optional() });
1630
+ var AppsChatsBringBackResult = AppsProjectsToWindowResult.extend({ project_id: ChatProjectId.nullable() });
1631
+ var TidyUpFacet = z14.strictObject({
1632
+ app_key: AppKey,
1633
+ facet: z14.enum(["title", "pin"]),
1634
+ state: z14.enum(["synced", "not_synced", "unsupported"]),
1635
+ note: z14.string().max(400),
1636
+ to_push: nonNegInt,
1637
+ pushed: nonNegInt,
1638
+ already: nonNegInt,
1639
+ waiting: nonNegInt,
1640
+ failed: nonNegInt
1641
+ });
1642
+ var TidyUpRestart = z14.strictObject({ window: ChatPlace, why: z14.string().max(400) });
1643
+ var AppsChatsTidyUpParams = z14.strictObject({ dry_run: z14.boolean(), restart_windows: z14.array(ChatPlace).max(64).optional() });
1644
+ var AppsChatsTidyUpResult = z14.strictObject({
1645
+ dry_run: z14.boolean(),
1646
+ facets: z14.array(TidyUpFacet).max(32),
1647
+ /** Claude windows that would keep an old name until they reopen (the plan lists them; nothing is quit unasked). */
1648
+ restart: z14.array(TidyUpRestart).max(64),
1649
+ /** The windows this run quit and reopened. */
1650
+ restarted: z14.array(ChatPlace).max(64),
1651
+ message: z14.string().max(600)
1652
+ });
1624
1653
  var ColdChat = z14.strictObject({
1625
1654
  id: ChatId,
1626
1655
  title: z14.string().max(1e3),
@@ -1889,6 +1918,20 @@ var AppInstance = z15.strictObject({
1889
1918
  /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
1890
1919
  missing: z15.array(InstanceGap).max(3).optional()
1891
1920
  });
1921
+ var ElsewhereInstance = z15.strictObject({
1922
+ app_key: AppKey,
1923
+ /** Its key on its own computer ("main", or its name). */
1924
+ key: z15.string().max(120),
1925
+ main: z15.boolean(),
1926
+ /** The computer it is on, by its name in Devices. */
1927
+ computer: z15.string().max(200),
1928
+ /** Its data folder, as that computer shows it (a label: it is not on this computer). */
1929
+ folder: z15.string().max(1024).nullable(),
1930
+ account_id: z15.string().max(200).nullable(),
1931
+ account: z15.string().max(320).nullable(),
1932
+ /** When that computer last read it. */
1933
+ seen_ms: epochMs.nullable()
1934
+ });
1892
1935
  var AccountResetSource = z15.enum(["app", "usage_history", "your_list"]);
1893
1936
  var AccountGap = z15.enum(["email", "plan", "usage"]);
1894
1937
  var AppAccount = z15.strictObject({
@@ -1930,7 +1973,13 @@ var AppsInstancesListResult = z15.strictObject({
1930
1973
  /** The rows are right but something around them failed; shown, never hidden. */
1931
1974
  problem: z15.string().max(400).optional(),
1932
1975
  as_of_ms: epochMs.optional(),
1933
- refreshing: z15.boolean().optional()
1976
+ refreshing: z15.boolean().optional(),
1977
+ /** 1.71: this computer's name (the Computer of every `instances` row). */
1978
+ computer: z15.string().max(200).optional(),
1979
+ /** 1.71: the person's instances on their other computers, from the database (read only). */
1980
+ elsewhere: z15.array(ElsewhereInstance).max(500).optional(),
1981
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's alone. */
1982
+ shared_problem: z15.string().max(200).optional()
1934
1983
  });
1935
1984
  var AppsAccountsListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
1936
1985
  var AppsAccountsListResult = z15.strictObject({
@@ -1938,7 +1987,9 @@ var AppsAccountsListResult = z15.strictObject({
1938
1987
  accounts: z15.array(AppAccount).max(500),
1939
1988
  problem: z15.string().max(400).optional(),
1940
1989
  as_of_ms: epochMs.optional(),
1941
- refreshing: z15.boolean().optional()
1990
+ refreshing: z15.boolean().optional(),
1991
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's memory alone. */
1992
+ shared_problem: z15.string().max(200).optional()
1942
1993
  });
1943
1994
  var AppsWindowsSetAccountParams = z15.strictObject({ app_key: AppKey, window: ChatPlace, email: z15.string().min(3).max(320) });
1944
1995
  var AppsWindowsForgetParams = z15.strictObject({ app_key: AppKey, window: ChatPlace });
@@ -4637,6 +4688,8 @@ var OPS = {
4637
4688
  "apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4638
4689
  "apps.chats.titles_check": { params: AppsChatsTitlesCheckParams, result: AppsChatsTitlesCheckResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4639
4690
  "apps.chats.titles_push": { params: AppsChatsTitlesPushParams, result: AppsChatsTitlesPushResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4691
+ "apps.chats.bring_back": { params: AppsChatsBringBackParams, result: AppsChatsBringBackResult, kind: "unary", since: "1.72", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4692
+ "apps.chats.tidy_up": { params: AppsChatsTidyUpParams, result: AppsChatsTidyUpResult, kind: "unary", since: "1.72", errors: ["INVALID_PARAMS", "NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4640
4693
  "apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4641
4694
  "apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4642
4695
  "apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
@@ -4908,6 +4961,7 @@ var NAMED_SCHEMAS = {
4908
4961
  InstanceGap,
4909
4962
  AppInstall,
4910
4963
  AppInstance,
4964
+ ElsewhereInstance,
4911
4965
  AccountResetSource,
4912
4966
  AccountGap,
4913
4967
  AppAccount,
@@ -5419,6 +5473,12 @@ var NAMED_SCHEMAS = {
5419
5473
  AppsChatsTitlesCheckResult,
5420
5474
  AppsChatsTitlesPushParams,
5421
5475
  AppsChatsTitlesPushResult,
5476
+ AppsChatsBringBackParams,
5477
+ AppsChatsBringBackResult,
5478
+ AppsChatsTidyUpParams,
5479
+ AppsChatsTidyUpResult,
5480
+ TidyUpFacet,
5481
+ TidyUpRestart,
5422
5482
  SpendSplit,
5423
5483
  SpendScopes,
5424
5484
  SpendAccount,
@@ -5732,13 +5792,13 @@ var FIELDS_SINCE = {
5732
5792
  CodingSearchHit: { accountId: "1.57" },
5733
5793
  AppInstance: { missing: "1.63" },
5734
5794
  AppsInstancesListParams: { fresh: "1.51" },
5735
- AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
5795
+ AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51", computer: "1.71", elsewhere: "1.71", shared_problem: "1.71" },
5736
5796
  AppsAccountsListParams: { fresh: "1.51" },
5737
- AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51" },
5797
+ AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51", shared_problem: "1.71" },
5738
5798
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
5739
5799
  AppsAccountsUsageResult: { problem: "1.12" },
5740
5800
  AppsAccountsResetsResult: { problem: "1.12" },
5741
- ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63", hidden: "1.70" },
5801
+ ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15", session_id: "1.59", app_groups: "1.59", parent: "1.59", prior_sessions: "1.59", title_sync: "1.61", moved: "1.62", home: "1.63", hidden: "1.70", pin_sync: "1.72" },
5742
5802
  AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
5743
5803
  ResourcesDisk: { name: "1.17" },
5744
5804
  StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
@@ -6350,6 +6410,12 @@ export {
6350
6410
  ProjectMovePin,
6351
6411
  AppsProjectsToWindowParams,
6352
6412
  AppsProjectsToWindowResult,
6413
+ AppsChatsBringBackParams,
6414
+ AppsChatsBringBackResult,
6415
+ TidyUpFacet,
6416
+ TidyUpRestart,
6417
+ AppsChatsTidyUpParams,
6418
+ AppsChatsTidyUpResult,
6353
6419
  ColdChat,
6354
6420
  AppsChatsColdParams,
6355
6421
  AppsChatsColdResult,
@@ -6396,6 +6462,7 @@ export {
6396
6462
  AppInstall,
6397
6463
  InstanceGap,
6398
6464
  AppInstance,
6465
+ ElsewhereInstance,
6399
6466
  AccountResetSource,
6400
6467
  AccountGap,
6401
6468
  AppAccount,
@@ -6917,4 +6984,4 @@ export {
6917
6984
  closeRule,
6918
6985
  isTerminalClose
6919
6986
  };
6920
- //# sourceMappingURL=chunk-server-TKQNS7QK.js.map
6987
+ //# sourceMappingURL=chunk-server-MK77KDKS.js.map