@ai-matrx/desktop-protocol 0.21.22 → 0.21.23
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 +6 -0
- package/dist/client.cjs +41 -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 +41 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +54 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -6
- package/dist/index.d.ts +95 -6
- package/dist/index.js +54 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-qdApKBdY.d.cts → models-CXjW101n.d.cts} +135 -1
- package/dist/{models-qdApKBdY.d.ts → models-CXjW101n.d.ts} +135 -1
- package/dist/react.d.cts +56 -0
- package/dist/react.d.ts +56 -0
- package/generated/desktop-protocol.schema.json +231 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.23
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/desktop-protocol/v0.21.22..npm/desktop-protocol/v0.21.23 -- apps/shared/desktop-protocol`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.21.22
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
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 =
|
|
147
|
+
var PROTOCOL_MINOR = 29;
|
|
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_-]+$/);
|
|
@@ -2389,6 +2389,44 @@ var AppsChatsColdResult = import_zod30.z.strictObject({
|
|
|
2389
2389
|
/** Chats working right now (not waiting). */
|
|
2390
2390
|
working: nonNegInt
|
|
2391
2391
|
});
|
|
2392
|
+
var TitleCopies = import_zod30.z.strictObject({
|
|
2393
|
+
window: ChatPlace,
|
|
2394
|
+
/** Record copies in that window holding a different name (main keeps one per account folder). */
|
|
2395
|
+
copies: nonNegInt,
|
|
2396
|
+
titles: import_zod30.z.array(import_zod30.z.strictObject({ title: import_zod30.z.string().max(2e3), source: import_zod30.z.string().max(32) })).max(50)
|
|
2397
|
+
});
|
|
2398
|
+
var TitleMismatch = import_zod30.z.strictObject({
|
|
2399
|
+
chat_id: ChatId,
|
|
2400
|
+
/** The right name: the latest one a person gave it (in any window, or in Matrx), else the newest automatic title. */
|
|
2401
|
+
title: import_zod30.z.string().max(2e3),
|
|
2402
|
+
title_source: import_zod30.z.enum(["user", "auto"]),
|
|
2403
|
+
/** Where the right name came from: a window, "matrx", or "ledger" (decided earlier). */
|
|
2404
|
+
decided_from: import_zod30.z.string().max(64),
|
|
2405
|
+
kind: import_zod30.z.enum(["user_vs_auto", "user_vs_user", "auto_vs_auto", "source_only"]),
|
|
2406
|
+
windows: import_zod30.z.array(ChatPlace).max(200),
|
|
2407
|
+
differs_in: import_zod30.z.array(TitleCopies).max(200)
|
|
2408
|
+
});
|
|
2409
|
+
var AppsChatsTitlesCheckParams = import_zod30.z.strictObject({ app_key: AppKey });
|
|
2410
|
+
var AppsChatsTitlesCheckResult = import_zod30.z.strictObject({
|
|
2411
|
+
app_key: AppKey,
|
|
2412
|
+
chats_total: nonNegInt,
|
|
2413
|
+
chats_in_several_windows: nonNegInt,
|
|
2414
|
+
/** Chats with a different name in some window (or in Matrx). */
|
|
2415
|
+
chats_with_a_different_name: nonNegInt,
|
|
2416
|
+
copies_to_write: nonNegInt,
|
|
2417
|
+
chats: import_zod30.z.array(TitleMismatch).max(5e3)
|
|
2418
|
+
});
|
|
2419
|
+
var AppsChatsTitlesPushParams = import_zod30.z.strictObject({ app_key: AppKey, chat_id: ChatId.optional(), dry_run: import_zod30.z.boolean().optional() });
|
|
2420
|
+
var AppsChatsTitlesPushResult = import_zod30.z.strictObject({
|
|
2421
|
+
app_key: AppKey,
|
|
2422
|
+
/** Record files rewritten (title and titleSource only, each backed up first). */
|
|
2423
|
+
written: nonNegInt,
|
|
2424
|
+
chats_fixed: nonNegInt,
|
|
2425
|
+
/** Copies that could not be written (left for the next push). */
|
|
2426
|
+
failed: nonNegInt,
|
|
2427
|
+
/** Still different after the push (dry_run: would be written). */
|
|
2428
|
+
chats_with_a_different_name: nonNegInt
|
|
2429
|
+
});
|
|
2392
2430
|
var AppsChatsOpenParams = import_zod30.z.strictObject({ app_key: AppKey, chat_id: ChatId, window: ChatPlace.optional() });
|
|
2393
2431
|
var SpendSplit = import_zod30.z.strictObject({ main: import_zod30.z.number(), helpers: import_zod30.z.number() });
|
|
2394
2432
|
var SpendScopes = import_zod30.z.strictObject({ today: SpendSplit, week: SpendSplit });
|
|
@@ -2654,6 +2692,8 @@ var OPS = {
|
|
|
2654
2692
|
// 1.11: Going cold, Spend, sync health, windows upkeep.
|
|
2655
2693
|
"apps.chats.cold": { params: AppsChatsColdParams, result: AppsChatsColdResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2656
2694
|
"apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2695
|
+
"apps.chats.titles_check": { params: AppsChatsTitlesCheckParams, result: AppsChatsTitlesCheckResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2696
|
+
"apps.chats.titles_push": { params: AppsChatsTitlesPushParams, result: AppsChatsTitlesPushResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2657
2697
|
"apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2658
2698
|
"apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2659
2699
|
"apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|