@ai-matrx/desktop-protocol 0.21.72 → 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 +21 -0
- package/dist/{chunk-server-FFLYSQUY.js → chunk-server-MK77KDKS.js} +46 -3
- package/dist/chunk-server-MK77KDKS.js.map +1 -0
- package/dist/client.cjs +32 -1
- 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 +46 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +226 -6
- package/dist/index.d.ts +226 -6
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BSiPIgIc.d.cts → models-ClCrYsEt.d.cts} +371 -1
- package/dist/{models-BSiPIgIc.d.ts → models-ClCrYsEt.d.ts} +371 -1
- package/dist/react.d.cts +175 -0
- package/dist/react.d.ts +175 -0
- package/generated/desktop-protocol.schema.json +300 -2
- package/package.json +2 -2
- package/dist/chunk-server-FFLYSQUY.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
3
15
|
## 0.21.72
|
|
4
16
|
### Protocol 1.71 — coding-app accounts and instances in the database
|
|
5
17
|
|
|
@@ -19,6 +31,15 @@
|
|
|
19
31
|
hidden state the call changed.
|
|
20
32
|
- Optional field in FIELDS_SINCE, new op since 1.70. Consumer action: none for an older client.
|
|
21
33
|
|
|
34
|
+
## 0.21.71
|
|
35
|
+
### Protocol 1.70 — our Hide for chats
|
|
36
|
+
|
|
37
|
+
- `ChatRow`: optional `hidden` — the person hid the chat from Matrx's lists. Kept by Matrx, never
|
|
38
|
+
written into the app; the app's own hidden facts stay `hidden_in`, `archived`, `hidden_from_main`.
|
|
39
|
+
- New op `apps.chats.hide` (`app_key`, `chat_ids` 1–500, `hidden`) answers `changed`: the chats whose
|
|
40
|
+
hidden state the call changed.
|
|
41
|
+
- Optional field in FIELDS_SINCE, new op since 1.70. Consumer action: none for an older client.
|
|
42
|
+
|
|
22
43
|
## 0.21.70
|
|
23
44
|
### Protocol 1.69 — every local language model is listed, with why one cannot run
|
|
24
45
|
|
|
@@ -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 = 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),
|
|
@@ -4659,6 +4688,8 @@ var OPS = {
|
|
|
4659
4688
|
"apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4660
4689
|
"apps.chats.titles_check": { params: AppsChatsTitlesCheckParams, result: AppsChatsTitlesCheckResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4661
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"] },
|
|
4662
4693
|
"apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4663
4694
|
"apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4664
4695
|
"apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -5442,6 +5473,12 @@ var NAMED_SCHEMAS = {
|
|
|
5442
5473
|
AppsChatsTitlesCheckResult,
|
|
5443
5474
|
AppsChatsTitlesPushParams,
|
|
5444
5475
|
AppsChatsTitlesPushResult,
|
|
5476
|
+
AppsChatsBringBackParams,
|
|
5477
|
+
AppsChatsBringBackResult,
|
|
5478
|
+
AppsChatsTidyUpParams,
|
|
5479
|
+
AppsChatsTidyUpResult,
|
|
5480
|
+
TidyUpFacet,
|
|
5481
|
+
TidyUpRestart,
|
|
5445
5482
|
SpendSplit,
|
|
5446
5483
|
SpendScopes,
|
|
5447
5484
|
SpendAccount,
|
|
@@ -5761,7 +5798,7 @@ var FIELDS_SINCE = {
|
|
|
5761
5798
|
AppsChatsListResult: { updating: "1.9", live: "1.9", families: "1.10" },
|
|
5762
5799
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
5763
5800
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
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" },
|
|
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" },
|
|
5765
5802
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
|
|
5766
5803
|
ResourcesDisk: { name: "1.17" },
|
|
5767
5804
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
@@ -6373,6 +6410,12 @@ export {
|
|
|
6373
6410
|
ProjectMovePin,
|
|
6374
6411
|
AppsProjectsToWindowParams,
|
|
6375
6412
|
AppsProjectsToWindowResult,
|
|
6413
|
+
AppsChatsBringBackParams,
|
|
6414
|
+
AppsChatsBringBackResult,
|
|
6415
|
+
TidyUpFacet,
|
|
6416
|
+
TidyUpRestart,
|
|
6417
|
+
AppsChatsTidyUpParams,
|
|
6418
|
+
AppsChatsTidyUpResult,
|
|
6376
6419
|
ColdChat,
|
|
6377
6420
|
AppsChatsColdParams,
|
|
6378
6421
|
AppsChatsColdResult,
|
|
@@ -6941,4 +6984,4 @@ export {
|
|
|
6941
6984
|
closeRule,
|
|
6942
6985
|
isTerminalClose
|
|
6943
6986
|
};
|
|
6944
|
-
//# sourceMappingURL=chunk-server-
|
|
6987
|
+
//# sourceMappingURL=chunk-server-MK77KDKS.js.map
|