@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/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-CXjW101n.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-CXjW101n.cjs';
|
|
6
6
|
import { FrameHeader } from './frame.cjs';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-CXjW101n.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-CXjW101n.js';
|
|
6
6
|
import { FrameHeader } from './frame.js';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
|
@@ -112,7 +112,7 @@ import { z as z2 } from "zod";
|
|
|
112
112
|
import { z } from "zod";
|
|
113
113
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
114
114
|
var PROTOCOL_MAJOR = 1;
|
|
115
|
-
var PROTOCOL_MINOR =
|
|
115
|
+
var PROTOCOL_MINOR = 29;
|
|
116
116
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
117
117
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
118
118
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -2357,6 +2357,44 @@ var AppsChatsColdResult = z30.strictObject({
|
|
|
2357
2357
|
/** Chats working right now (not waiting). */
|
|
2358
2358
|
working: nonNegInt
|
|
2359
2359
|
});
|
|
2360
|
+
var TitleCopies = z30.strictObject({
|
|
2361
|
+
window: ChatPlace,
|
|
2362
|
+
/** Record copies in that window holding a different name (main keeps one per account folder). */
|
|
2363
|
+
copies: nonNegInt,
|
|
2364
|
+
titles: z30.array(z30.strictObject({ title: z30.string().max(2e3), source: z30.string().max(32) })).max(50)
|
|
2365
|
+
});
|
|
2366
|
+
var TitleMismatch = z30.strictObject({
|
|
2367
|
+
chat_id: ChatId,
|
|
2368
|
+
/** The right name: the latest one a person gave it (in any window, or in Matrx), else the newest automatic title. */
|
|
2369
|
+
title: z30.string().max(2e3),
|
|
2370
|
+
title_source: z30.enum(["user", "auto"]),
|
|
2371
|
+
/** Where the right name came from: a window, "matrx", or "ledger" (decided earlier). */
|
|
2372
|
+
decided_from: z30.string().max(64),
|
|
2373
|
+
kind: z30.enum(["user_vs_auto", "user_vs_user", "auto_vs_auto", "source_only"]),
|
|
2374
|
+
windows: z30.array(ChatPlace).max(200),
|
|
2375
|
+
differs_in: z30.array(TitleCopies).max(200)
|
|
2376
|
+
});
|
|
2377
|
+
var AppsChatsTitlesCheckParams = z30.strictObject({ app_key: AppKey });
|
|
2378
|
+
var AppsChatsTitlesCheckResult = z30.strictObject({
|
|
2379
|
+
app_key: AppKey,
|
|
2380
|
+
chats_total: nonNegInt,
|
|
2381
|
+
chats_in_several_windows: nonNegInt,
|
|
2382
|
+
/** Chats with a different name in some window (or in Matrx). */
|
|
2383
|
+
chats_with_a_different_name: nonNegInt,
|
|
2384
|
+
copies_to_write: nonNegInt,
|
|
2385
|
+
chats: z30.array(TitleMismatch).max(5e3)
|
|
2386
|
+
});
|
|
2387
|
+
var AppsChatsTitlesPushParams = z30.strictObject({ app_key: AppKey, chat_id: ChatId.optional(), dry_run: z30.boolean().optional() });
|
|
2388
|
+
var AppsChatsTitlesPushResult = z30.strictObject({
|
|
2389
|
+
app_key: AppKey,
|
|
2390
|
+
/** Record files rewritten (title and titleSource only, each backed up first). */
|
|
2391
|
+
written: nonNegInt,
|
|
2392
|
+
chats_fixed: nonNegInt,
|
|
2393
|
+
/** Copies that could not be written (left for the next push). */
|
|
2394
|
+
failed: nonNegInt,
|
|
2395
|
+
/** Still different after the push (dry_run: would be written). */
|
|
2396
|
+
chats_with_a_different_name: nonNegInt
|
|
2397
|
+
});
|
|
2360
2398
|
var AppsChatsOpenParams = z30.strictObject({ app_key: AppKey, chat_id: ChatId, window: ChatPlace.optional() });
|
|
2361
2399
|
var SpendSplit = z30.strictObject({ main: z30.number(), helpers: z30.number() });
|
|
2362
2400
|
var SpendScopes = z30.strictObject({ today: SpendSplit, week: SpendSplit });
|
|
@@ -2622,6 +2660,8 @@ var OPS = {
|
|
|
2622
2660
|
// 1.11: Going cold, Spend, sync health, windows upkeep.
|
|
2623
2661
|
"apps.chats.cold": { params: AppsChatsColdParams, result: AppsChatsColdResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2624
2662
|
"apps.chats.open": { params: AppsChatsOpenParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2663
|
+
"apps.chats.titles_check": { params: AppsChatsTitlesCheckParams, result: AppsChatsTitlesCheckResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2664
|
+
"apps.chats.titles_push": { params: AppsChatsTitlesPushParams, result: AppsChatsTitlesPushResult, kind: "unary", since: "1.29", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2625
2665
|
"apps.spend": { params: AppsSpendParams, result: AppsSpendResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2626
2666
|
"apps.sync.status": { params: AppsSyncStatusParams, result: AppsSyncStatusResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2627
2667
|
"apps.sync.run": { params: AppsSyncRunParams, result: AppsWindowActionResult, kind: "unary", since: "1.11", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|