@ai-matrx/desktop-protocol 0.21.81 → 0.21.82
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 +8 -0
- package/dist/{chunk-server-T5RWEV22.js → chunk-server-3QKXTKK4.js} +15 -4
- package/dist/chunk-server-3QKXTKK4.js.map +1 -0
- package/dist/client.cjs +11 -2
- 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 +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -6
- package/dist/index.d.ts +39 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-BnUudL7J.d.cts → models-D5O1othS.d.cts} +32 -0
- package/dist/{models-BnUudL7J.d.ts → models-D5O1othS.d.ts} +32 -0
- package/dist/react.d.cts +8 -0
- package/dist/react.d.ts +8 -0
- package/generated/desktop-protocol.schema.json +59 -2
- package/package.json +2 -2
- package/dist/chunk-server-T5RWEV22.js.map +0 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/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-D5O1othS.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-D5O1othS.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/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/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-D5O1othS.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-D5O1othS.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
package/dist/index.cjs
CHANGED
|
@@ -46,6 +46,7 @@ __export(src_exports, {
|
|
|
46
46
|
AccountProfile: () => AccountProfile,
|
|
47
47
|
AccountReadSource: () => AccountReadSource,
|
|
48
48
|
AccountReadState: () => AccountReadState,
|
|
49
|
+
AccountReadingsKept: () => AccountReadingsKept,
|
|
49
50
|
AccountReset: () => AccountReset,
|
|
50
51
|
AccountResetSource: () => AccountResetSource,
|
|
51
52
|
AccountRowId: () => AccountRowId,
|
|
@@ -943,7 +944,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
943
944
|
var import_zod = require("zod");
|
|
944
945
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
945
946
|
var PROTOCOL_MAJOR = 1;
|
|
946
|
-
var PROTOCOL_MINOR =
|
|
947
|
+
var PROTOCOL_MINOR = 79;
|
|
947
948
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
948
949
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
949
950
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3085,6 +3086,11 @@ var AccountProfile = import_zod15.z.strictObject({
|
|
|
3085
3086
|
/** When the app last fetched them, when it says. */
|
|
3086
3087
|
as_of_ms: epochMs.nullable()
|
|
3087
3088
|
});
|
|
3089
|
+
var AccountReadingsKept = import_zod15.z.strictObject({
|
|
3090
|
+
kept: import_zod15.z.number().int().nonnegative(),
|
|
3091
|
+
since_ms: epochMs.nullable(),
|
|
3092
|
+
days: import_zod15.z.array(import_zod15.z.strictObject({ day_ms: epochMs, weekly: import_zod15.z.number().nullable() })).max(31)
|
|
3093
|
+
});
|
|
3088
3094
|
var AppAccount = import_zod15.z.strictObject({
|
|
3089
3095
|
app_key: AppKey,
|
|
3090
3096
|
/** The provider's own account id (Claude's account uuid, ChatGPT's account id); `org:<uuid>` when only its organization is known. */
|
|
@@ -3120,7 +3126,9 @@ var AppAccount = import_zod15.z.strictObject({
|
|
|
3120
3126
|
/** 1.73: where the newest reading came from (absent = the app itself). */
|
|
3121
3127
|
read_source: AccountReadSource.optional(),
|
|
3122
3128
|
/** 1.73: Claude Code: the running session's cost as Claude Code estimates it (US dollars), with a Claude Code reading. */
|
|
3123
|
-
session_cost_usd: import_zod15.z.number().nonnegative().optional()
|
|
3129
|
+
session_cost_usd: import_zod15.z.number().nonnegative().optional(),
|
|
3130
|
+
/** 1.79: the readings Matrx kept of this account on this computer (its reading history). */
|
|
3131
|
+
readings: AccountReadingsKept.optional()
|
|
3124
3132
|
});
|
|
3125
3133
|
var AppsInstancesListParams = import_zod15.z.strictObject({ app_key: AppKey, fresh: import_zod15.z.boolean().optional() });
|
|
3126
3134
|
var AppsInstancesListResult = import_zod15.z.strictObject({
|
|
@@ -6181,6 +6189,7 @@ var NAMED_SCHEMAS = {
|
|
|
6181
6189
|
AppsAccountsListResult,
|
|
6182
6190
|
AccountReadSource,
|
|
6183
6191
|
AccountProfile,
|
|
6192
|
+
AccountReadingsKept,
|
|
6184
6193
|
McpTransport,
|
|
6185
6194
|
McpServerRow,
|
|
6186
6195
|
SetupFact,
|
|
@@ -7032,7 +7041,7 @@ var FIELDS_SINCE = {
|
|
|
7032
7041
|
SpendIdle: { hidden: "1.78" },
|
|
7033
7042
|
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" },
|
|
7034
7043
|
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25", read_source: "1.73" },
|
|
7035
|
-
AppAccount: { profile: "1.73", read_source: "1.73", session_cost_usd: "1.73" },
|
|
7044
|
+
AppAccount: { profile: "1.73", read_source: "1.73", session_cost_usd: "1.73", readings: "1.79" },
|
|
7036
7045
|
ResourcesDisk: { name: "1.17" },
|
|
7037
7046
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
7038
7047
|
AudioDevice: { kind: "1.24" },
|
|
@@ -7181,6 +7190,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
7181
7190
|
["apps.spend", [["chats", "SpendChat"], ["live", "SpendLive"], ["idle", "SpendIdle"]]],
|
|
7182
7191
|
["apps.chats.place", [["chat", "ChatRow"]]],
|
|
7183
7192
|
["apps.accounts.usage", [["accounts", "AccountUsage"]]],
|
|
7193
|
+
// 1.73/1.79: the account rows' newer fields (profile, read_source, session_cost_usd, readings).
|
|
7194
|
+
["apps.accounts.list", [["accounts", "AppAccount"]]],
|
|
7184
7195
|
["resources.snapshot", [["disks", "ResourcesDisk"]]],
|
|
7185
7196
|
["stack.state", [["servers", "StackServer"]]],
|
|
7186
7197
|
["account.agents.list", [["agents", "AccountAgent"]]],
|
|
@@ -7328,7 +7339,7 @@ function forPeer(op, part, value, version) {
|
|
|
7328
7339
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
7329
7340
|
|
|
7330
7341
|
// src/contract.ts
|
|
7331
|
-
var CONTRACT_SHA256 = "
|
|
7342
|
+
var CONTRACT_SHA256 = "5e0c564e79ee14278fa1d52120c735fd331517e2b2d48d03d30eb7cc13f2c4fb";
|
|
7332
7343
|
|
|
7333
7344
|
// src/close-policy.ts
|
|
7334
7345
|
var CLOSE_RULES = {
|