@ai-matrx/desktop-protocol 0.17.7 → 0.17.9
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 +14 -0
- package/dist/client.cjs +27 -5
- 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 +27 -5
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +69 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -6
- package/dist/index.d.ts +72 -6
- package/dist/index.js +69 -10
- package/dist/index.js.map +1 -1
- package/dist/{models-Os6toG3X.d.cts → models-G1-Bsz-k.d.cts} +89 -0
- package/dist/{models-Os6toG3X.d.ts → models-G1-Bsz-k.d.ts} +89 -0
- package/dist/react.d.cts +39 -0
- package/dist/react.d.ts +39 -0
- package/generated/desktop-protocol.schema.json +58 -1
- package/package.json +1 -1
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-G1-Bsz-k.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-G1-Bsz-k.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-G1-Bsz-k.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-G1-Bsz-k.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
|
@@ -111,7 +111,7 @@ import { z as z2 } from "zod";
|
|
|
111
111
|
// src/schema/primitives.ts
|
|
112
112
|
import { z } from "zod";
|
|
113
113
|
var PROTOCOL_MAJOR = 1;
|
|
114
|
-
var PROTOCOL_MINOR =
|
|
114
|
+
var PROTOCOL_MINOR = 13;
|
|
115
115
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
116
116
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
117
117
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1446,6 +1446,10 @@ var ChatLastUse = z24.strictObject({
|
|
|
1446
1446
|
cache_warm: z24.boolean(),
|
|
1447
1447
|
cache_minutes_left: nonNegInt
|
|
1448
1448
|
});
|
|
1449
|
+
var ChatAppProject = z24.strictObject({
|
|
1450
|
+
id: z24.string().min(1).max(200),
|
|
1451
|
+
name: z24.string().max(200)
|
|
1452
|
+
});
|
|
1449
1453
|
var ChatRow = z24.strictObject({
|
|
1450
1454
|
id: ChatId,
|
|
1451
1455
|
/** The short id people see (the listing's first 8 characters). */
|
|
@@ -1472,7 +1476,11 @@ var ChatRow = z24.strictObject({
|
|
|
1472
1476
|
/** Created recently and in no project: offered for filing. */
|
|
1473
1477
|
new_unfiled: z24.boolean(),
|
|
1474
1478
|
warnings: z24.array(z24.string().max(400)).max(20),
|
|
1475
|
-
last_use: ChatLastUse.nullable()
|
|
1479
|
+
last_use: ChatLastUse.nullable(),
|
|
1480
|
+
/** 1.13: the app's own project the chat is grouped under in the app (Codex), read only; absent = none or not an app that groups. */
|
|
1481
|
+
app_project: ChatAppProject.optional(),
|
|
1482
|
+
/** 1.13: tokens the conversation has used, when the app records it (Codex); absent when not recorded; prices are not on disk. */
|
|
1483
|
+
tokens: nonNegInt.optional()
|
|
1476
1484
|
});
|
|
1477
1485
|
var ChatFamily = z24.strictObject({
|
|
1478
1486
|
id: ChatId,
|
|
@@ -1595,7 +1603,11 @@ var AccountUsage = z25.strictObject({
|
|
|
1595
1603
|
/** The next weekly reset, when known. */
|
|
1596
1604
|
weekly_resets_at_ms: epochMs.nullable(),
|
|
1597
1605
|
/** That reset time is Claude's own (its reading, or a reset seen in its usage history). */
|
|
1598
|
-
weekly_reset_official: z25.boolean().nullable()
|
|
1606
|
+
weekly_reset_official: z25.boolean().nullable(),
|
|
1607
|
+
/** 1.13: the account's plan as the app names it (Codex: "pro", "prolite"), when recorded. */
|
|
1608
|
+
plan: z25.string().max(80).optional(),
|
|
1609
|
+
/** 1.13: the account's credit balance as the app records it (Codex), when recorded. */
|
|
1610
|
+
credits: z25.string().max(40).optional()
|
|
1599
1611
|
});
|
|
1600
1612
|
var AccountReset = z25.strictObject({
|
|
1601
1613
|
window: ChatPlace,
|
|
@@ -1611,9 +1623,19 @@ var AccountReset = z25.strictObject({
|
|
|
1611
1623
|
var AppsWindowsListParams = z25.strictObject({ app_key: AppKey });
|
|
1612
1624
|
var AppsWindowsListResult = z25.strictObject({ app_key: AppKey, windows: z25.array(AppWindowInfo).max(200) });
|
|
1613
1625
|
var AppsAccountsUsageParams = z25.strictObject({ app_key: AppKey });
|
|
1614
|
-
var AppsAccountsUsageResult = z25.strictObject({
|
|
1626
|
+
var AppsAccountsUsageResult = z25.strictObject({
|
|
1627
|
+
app_key: AppKey,
|
|
1628
|
+
accounts: z25.array(AccountUsage).max(500),
|
|
1629
|
+
/** 1.12: the rows are right but something around them failed (a newly read reset time could not be saved); shown, never hidden. */
|
|
1630
|
+
problem: z25.string().max(400).optional()
|
|
1631
|
+
});
|
|
1615
1632
|
var AppsAccountsResetsParams = z25.strictObject({ app_key: AppKey });
|
|
1616
|
-
var AppsAccountsResetsResult = z25.strictObject({
|
|
1633
|
+
var AppsAccountsResetsResult = z25.strictObject({
|
|
1634
|
+
app_key: AppKey,
|
|
1635
|
+
resets: z25.array(AccountReset).max(200),
|
|
1636
|
+
/** 1.12: as on `apps.accounts.usage`. */
|
|
1637
|
+
problem: z25.string().max(400).optional()
|
|
1638
|
+
});
|
|
1617
1639
|
var AppsWindowActionResult = z25.strictObject({ message: z25.string().max(400) });
|
|
1618
1640
|
var AppsWindowsOpenParams = z25.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1619
1641
|
var AppsWindowsReloadParams = z25.strictObject({ app_key: AppKey, window: ChatPlace });
|