@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/CHANGELOG.md +19 -0
- package/dist/{chunk-server-I6R2ZKMX.js → chunk-server-FFLYSQUY.js} +44 -8
- package/dist/chunk-server-FFLYSQUY.js.map +1 -0
- package/dist/client.cjs +34 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/index.cjs +44 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -10
- package/dist/index.d.ts +72 -10
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-_17aNpEC.d.cts → models-BSiPIgIc.d.cts} +84 -8
- package/dist/{models-_17aNpEC.d.ts → models-BSiPIgIc.d.ts} +84 -8
- package/dist/react.d.cts +38 -3
- package/dist/react.d.ts +38 -3
- package/generated/desktop-protocol.schema.json +166 -4
- package/package.json +2 -2
- package/dist/chunk-server-I6R2ZKMX.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
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
|
+
|
|
14
|
+
### Protocol 1.70 — our Hide for chats
|
|
15
|
+
|
|
16
|
+
- `ChatRow`: optional `hidden` — the person hid the chat from Matrx's lists. Kept by Matrx, never
|
|
17
|
+
written into the app; the app's own hidden facts stay `hidden_in`, `archived`, `hidden_from_main`.
|
|
18
|
+
- New op `apps.chats.hide` (`app_key`, `chat_ids` 1–500, `hidden`) answers `changed`: the chats whose
|
|
19
|
+
hidden state the call changed.
|
|
20
|
+
- Optional field in FIELDS_SINCE, new op since 1.70. Consumer action: none for an older client.
|
|
21
|
+
|
|
3
22
|
## 0.21.70
|
|
4
23
|
### Protocol 1.69 — every local language model is listed, with why one cannot run
|
|
5
24
|
|
|
@@ -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 =
|
|
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_-]+$/);
|
|
@@ -1312,7 +1312,12 @@ var ChatRow = z13.strictObject({
|
|
|
1312
1312
|
* moved). Claude: the side window holding its newest record copy (main mirrors every window), else
|
|
1313
1313
|
* main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
|
|
1314
1314
|
*/
|
|
1315
|
-
home: ChatPlace.optional()
|
|
1315
|
+
home: ChatPlace.optional(),
|
|
1316
|
+
/**
|
|
1317
|
+
* 1.70: the person hid it from Matrx's lists (ours, kept by Matrx, never written into the app;
|
|
1318
|
+
* absent = shown). The app's own hidden facts stay apart: `hidden_in`, `archived`, `hidden_from_main`.
|
|
1319
|
+
*/
|
|
1320
|
+
hidden: z13.boolean().optional()
|
|
1316
1321
|
});
|
|
1317
1322
|
var ChatFamily = z13.strictObject({
|
|
1318
1323
|
id: ChatId,
|
|
@@ -1391,6 +1396,8 @@ var AppsProjectsUnfileParams = z13.strictObject({ app_key: AppKey, chat_id: Chat
|
|
|
1391
1396
|
var AppsProjectsUnfileResult = z13.strictObject({ chat: ChatRow });
|
|
1392
1397
|
var AppsChatsStarParams = z13.strictObject({ app_key: AppKey, chat_id: ChatId, starred: z13.boolean() });
|
|
1393
1398
|
var AppsChatsStarResult = z13.strictObject({ chat: ChatRow });
|
|
1399
|
+
var AppsChatsHideParams = z13.strictObject({ app_key: AppKey, chat_ids: z13.array(ChatId).min(1).max(500), hidden: z13.boolean() });
|
|
1400
|
+
var AppsChatsHideResult = z13.strictObject({ app_key: AppKey, hidden: z13.boolean(), changed: z13.array(ChatId).max(500) });
|
|
1394
1401
|
|
|
1395
1402
|
// src/schema/apps-accounts.ts
|
|
1396
1403
|
import { z as z14 } from "zod";
|
|
@@ -1882,6 +1889,20 @@ var AppInstance = z15.strictObject({
|
|
|
1882
1889
|
/** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
|
|
1883
1890
|
missing: z15.array(InstanceGap).max(3).optional()
|
|
1884
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
|
+
});
|
|
1885
1906
|
var AccountResetSource = z15.enum(["app", "usage_history", "your_list"]);
|
|
1886
1907
|
var AccountGap = z15.enum(["email", "plan", "usage"]);
|
|
1887
1908
|
var AppAccount = z15.strictObject({
|
|
@@ -1923,7 +1944,13 @@ var AppsInstancesListResult = z15.strictObject({
|
|
|
1923
1944
|
/** The rows are right but something around them failed; shown, never hidden. */
|
|
1924
1945
|
problem: z15.string().max(400).optional(),
|
|
1925
1946
|
as_of_ms: epochMs.optional(),
|
|
1926
|
-
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()
|
|
1927
1954
|
});
|
|
1928
1955
|
var AppsAccountsListParams = z15.strictObject({ app_key: AppKey, fresh: z15.boolean().optional() });
|
|
1929
1956
|
var AppsAccountsListResult = z15.strictObject({
|
|
@@ -1931,7 +1958,9 @@ var AppsAccountsListResult = z15.strictObject({
|
|
|
1931
1958
|
accounts: z15.array(AppAccount).max(500),
|
|
1932
1959
|
problem: z15.string().max(400).optional(),
|
|
1933
1960
|
as_of_ms: epochMs.optional(),
|
|
1934
|
-
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()
|
|
1935
1964
|
});
|
|
1936
1965
|
var AppsWindowsSetAccountParams = z15.strictObject({ app_key: AppKey, window: ChatPlace, email: z15.string().min(3).max(320) });
|
|
1937
1966
|
var AppsWindowsForgetParams = z15.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
@@ -4595,6 +4624,7 @@ var OPS = {
|
|
|
4595
4624
|
"apps.chats.list": { params: AppsChatsListParams, result: AppsChatsListResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4596
4625
|
"apps.chats.watch": { params: AppsChatsWatchParams, result: AppsChatsWatchResult, kind: "resource", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"] },
|
|
4597
4626
|
"apps.chats.star": { params: AppsChatsStarParams, result: AppsChatsStarResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4627
|
+
"apps.chats.hide": { params: AppsChatsHideParams, result: AppsChatsHideResult, kind: "unary", since: "1.70", errors: ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4598
4628
|
"apps.projects.file": { params: AppsProjectsFileParams, result: AppsProjectsFileResult, kind: "unary", since: "1.8", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4599
4629
|
"apps.chats.place": { params: AppsChatsPlaceParams, result: AppsChatsPlaceResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4600
4630
|
"apps.projects.file_many": { params: AppsProjectsFileManyParams, result: AppsProjectsFileManyResult, kind: "unary", since: "1.9", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -4900,6 +4930,7 @@ var NAMED_SCHEMAS = {
|
|
|
4900
4930
|
InstanceGap,
|
|
4901
4931
|
AppInstall,
|
|
4902
4932
|
AppInstance,
|
|
4933
|
+
ElsewhereInstance,
|
|
4903
4934
|
AccountResetSource,
|
|
4904
4935
|
AccountGap,
|
|
4905
4936
|
AppAccount,
|
|
@@ -5343,6 +5374,8 @@ var NAMED_SCHEMAS = {
|
|
|
5343
5374
|
AppsChatsChangedEvent,
|
|
5344
5375
|
AppsChatsStarParams,
|
|
5345
5376
|
AppsChatsStarResult,
|
|
5377
|
+
AppsChatsHideParams,
|
|
5378
|
+
AppsChatsHideResult,
|
|
5346
5379
|
AppsProjectsFileParams,
|
|
5347
5380
|
AppsProjectsFileResult,
|
|
5348
5381
|
AppsProjectsUnfileParams,
|
|
@@ -5722,13 +5755,13 @@ var FIELDS_SINCE = {
|
|
|
5722
5755
|
CodingSearchHit: { accountId: "1.57" },
|
|
5723
5756
|
AppInstance: { missing: "1.63" },
|
|
5724
5757
|
AppsInstancesListParams: { fresh: "1.51" },
|
|
5725
|
-
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" },
|
|
5726
5759
|
AppsAccountsListParams: { fresh: "1.51" },
|
|
5727
|
-
AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51" },
|
|
5760
|
+
AppsAccountsListResult: { as_of_ms: "1.51", refreshing: "1.51", shared_problem: "1.71" },
|
|
5728
5761
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
5729
5762
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
5730
5763
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
5731
|
-
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" },
|
|
5764
|
+
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" },
|
|
5732
5765
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
|
|
5733
5766
|
ResourcesDisk: { name: "1.17" },
|
|
5734
5767
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
@@ -6302,6 +6335,8 @@ export {
|
|
|
6302
6335
|
AppsProjectsUnfileResult,
|
|
6303
6336
|
AppsChatsStarParams,
|
|
6304
6337
|
AppsChatsStarResult,
|
|
6338
|
+
AppsChatsHideParams,
|
|
6339
|
+
AppsChatsHideResult,
|
|
6305
6340
|
WindowRemoteControl,
|
|
6306
6341
|
AppWindowInfo,
|
|
6307
6342
|
AccountUsage,
|
|
@@ -6384,6 +6419,7 @@ export {
|
|
|
6384
6419
|
AppInstall,
|
|
6385
6420
|
InstanceGap,
|
|
6386
6421
|
AppInstance,
|
|
6422
|
+
ElsewhereInstance,
|
|
6387
6423
|
AccountResetSource,
|
|
6388
6424
|
AccountGap,
|
|
6389
6425
|
AppAccount,
|
|
@@ -6905,4 +6941,4 @@ export {
|
|
|
6905
6941
|
closeRule,
|
|
6906
6942
|
isTerminalClose
|
|
6907
6943
|
};
|
|
6908
|
-
//# sourceMappingURL=chunk-server-
|
|
6944
|
+
//# sourceMappingURL=chunk-server-FFLYSQUY.js.map
|