@ai-matrx/desktop-protocol 0.21.71 → 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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
 
3
- ## 0.21.71
3
+ ## 0.21.72
4
+ ### Protocol 1.71 — coding-app accounts and instances in the database
5
+
6
+ - `AppsInstancesListResult`: optional `computer` (this computer's name), `elsewhere` (new named
7
+ `ElsewhereInstance`: app_key, key, main, computer, folder, account_id, account, seen_ms — the
8
+ person's instances on their other computers, read only) and `shared_problem` (the database copy
9
+ could not be read or written; the rows are this computer's alone).
10
+ - `AppsAccountsListResult`: optional `shared_problem`.
11
+ - All optional, in FIELDS_SINCE. Consumer action: none for an older client; a 1.71 client can show
12
+ other computers' instances and say when the database copy is not reachable.
13
+
4
14
  ### Protocol 1.70 — our Hide for chats
5
15
 
6
16
  - `ChatRow`: optional `hidden` — the person hid the chat from Matrx's lists. Kept by Matrx, never
@@ -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 = 71;
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_-]+$/);
@@ -1889,6 +1889,20 @@ var AppInstance = z15.strictObject({
1889
1889
  /** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
1890
1890
  missing: z15.array(InstanceGap).max(3).optional()
1891
1891
  });
1892
+ var ElsewhereInstance = z15.strictObject({
1893
+ app_key: AppKey,
1894
+ /** Its key on its own computer ("main", or its name). */
1895
+ key: z15.string().max(120),
1896
+ main: z15.boolean(),
1897
+ /** The computer it is on, by its name in Devices. */
1898
+ computer: z15.string().max(200),
1899
+ /** Its data folder, as that computer shows it (a label: it is not on this computer). */
1900
+ folder: z15.string().max(1024).nullable(),
1901
+ account_id: z15.string().max(200).nullable(),
1902
+ account: z15.string().max(320).nullable(),
1903
+ /** When that computer last read it. */
1904
+ seen_ms: epochMs.nullable()
1905
+ });
1892
1906
  var AccountResetSource = z15.enum(["app", "usage_history", "your_list"]);
1893
1907
  var AccountGap = z15.enum(["email", "plan", "usage"]);
1894
1908
  var AppAccount = z15.strictObject({
@@ -1930,7 +1944,13 @@ var AppsInstancesListResult = z15.strictObject({
1930
1944
  /** The rows are right but something around them failed; shown, never hidden. */
1931
1945
  problem: z15.string().max(400).optional(),
1932
1946
  as_of_ms: epochMs.optional(),
1933
- refreshing: z15.boolean().optional()
1947
+ refreshing: z15.boolean().optional(),
1948
+ /** 1.71: this computer's name (the Computer of every `instances` row). */
1949
+ computer: z15.string().max(200).optional(),
1950
+ /** 1.71: the person's instances on their other computers, from the database (read only). */
1951
+ elsewhere: z15.array(ElsewhereInstance).max(500).optional(),
1952
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's alone. */
1953
+ shared_problem: z15.string().max(200).optional()
1934
1954
  });
1935
1955
  var AppsAccountsListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
1936
1956
  var AppsAccountsListResult = z15.strictObject({
@@ -1938,7 +1958,9 @@ var AppsAccountsListResult = z15.strictObject({
1938
1958
  accounts: z15.array(AppAccount).max(500),
1939
1959
  problem: z15.string().max(400).optional(),
1940
1960
  as_of_ms: epochMs.optional(),
1941
- refreshing: z15.boolean().optional()
1961
+ refreshing: z15.boolean().optional(),
1962
+ /** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's memory alone. */
1963
+ shared_problem: z15.string().max(200).optional()
1942
1964
  });
1943
1965
  var AppsWindowsSetAccountParams = z15.strictObject({ app_key: AppKey, window: ChatPlace, email: z15.string().min(3).max(320) });
1944
1966
  var AppsWindowsForgetParams = z15.strictObject({ app_key: AppKey, window: ChatPlace });
@@ -4908,6 +4930,7 @@ var NAMED_SCHEMAS = {
4908
4930
  InstanceGap,
4909
4931
  AppInstall,
4910
4932
  AppInstance,
4933
+ ElsewhereInstance,
4911
4934
  AccountResetSource,
4912
4935
  AccountGap,
4913
4936
  AppAccount,
@@ -5732,9 +5755,9 @@ var FIELDS_SINCE = {
5732
5755
  CodingSearchHit: { accountId: "1.57" },
5733
5756
  AppInstance: { missing: "1.63" },
5734
5757
  AppsInstancesListParams: { fresh: "1.51" },
5735
- AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
5758
+ AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51", computer: "1.71", elsewhere: "1.71", shared_problem: "1.71" },
5736
5759
  AppsAccountsListParams: { fresh: "1.51" },
5737
- AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51" },
5760
+ AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51", shared_problem: "1.71" },
5738
5761
  AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
5739
5762
  AppsAccountsUsageResult: { problem: "1.12" },
5740
5763
  AppsAccountsResetsResult: { problem: "1.12" },
@@ -6396,6 +6419,7 @@ export {
6396
6419
  AppInstall,
6397
6420
  InstanceGap,
6398
6421
  AppInstance,
6422
+ ElsewhereInstance,
6399
6423
  AccountResetSource,
6400
6424
  AccountGap,
6401
6425
  AppAccount,
@@ -6917,4 +6941,4 @@ export {
6917
6941
  closeRule,
6918
6942
  isTerminalClose
6919
6943
  };
6920
- //# sourceMappingURL=chunk-server-TKQNS7QK.js.map
6944
+ //# sourceMappingURL=chunk-server-FFLYSQUY.js.map