@ai-matrx/desktop-protocol 0.21.20 → 0.21.21
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 +7 -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 +7 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +12 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/{models-Cx6q_tRu.d.cts → models-ZQtKshfc.d.cts} +2 -0
- package/dist/{models-Cx6q_tRu.d.ts → models-ZQtKshfc.d.ts} +2 -0
- package/dist/react.d.cts +1 -0
- package/dist/react.d.ts +1 -0
- package/generated/desktop-protocol.schema.json +11 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
3
|
-
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-ZQtKshfc.cjs';
|
|
3
|
+
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-ZQtKshfc.cjs';
|
|
4
4
|
export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
|
|
5
5
|
|
|
6
6
|
/** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
@@ -47,10 +47,12 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
47
47
|
* sorts and filters by when an account is usable again.
|
|
48
48
|
* 1.26 — the coding app's own update: apps.windows.update_state (pending, which windows closed),
|
|
49
49
|
* apps.windows.reopen and apps.windows.update_and_reopen (quit all, install, reopen all).
|
|
50
|
+
* 1.27 — AppsWindowsUpdateStateResult.closed_by_update: the closed windows the update itself quit
|
|
51
|
+
* (the app's log says it went down for the update), apart from ones a person closed.
|
|
50
52
|
*/
|
|
51
|
-
declare const PROTOCOL_MINOR:
|
|
53
|
+
declare const PROTOCOL_MINOR: 27;
|
|
52
54
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
53
|
-
declare const PROTOCOL_VERSION: "1.
|
|
55
|
+
declare const PROTOCOL_VERSION: "1.27";
|
|
54
56
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
55
57
|
declare const u32: z.ZodInt;
|
|
56
58
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -2831,6 +2833,7 @@ declare const AppsWindowsUpdateStateResult: z.ZodObject<{
|
|
|
2831
2833
|
version: z.ZodNullable<z.ZodString>;
|
|
2832
2834
|
since_ms: z.ZodNullable<z.ZodInt>;
|
|
2833
2835
|
closed: z.ZodArray<z.ZodString>;
|
|
2836
|
+
closed_by_update: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2834
2837
|
}, z.core.$strict>;
|
|
2835
2838
|
type AppsWindowsUpdateStateResult = z.output<typeof AppsWindowsUpdateStateResult>;
|
|
2836
2839
|
/** Open these windows again (main first), one at a time. */
|
|
@@ -5326,6 +5329,9 @@ declare const FIELDS_SINCE: {
|
|
|
5326
5329
|
readonly AppsSpendResult: {
|
|
5327
5330
|
readonly days: "1.24";
|
|
5328
5331
|
};
|
|
5332
|
+
readonly AppsWindowsUpdateStateResult: {
|
|
5333
|
+
readonly closed_by_update: "1.27";
|
|
5334
|
+
};
|
|
5329
5335
|
};
|
|
5330
5336
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
5331
5337
|
/**
|
|
@@ -5380,7 +5386,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
5380
5386
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
5381
5387
|
|
|
5382
5388
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
5383
|
-
declare const CONTRACT_SHA256: "
|
|
5389
|
+
declare const CONTRACT_SHA256: "eece2e5eba3e6e33126a0fda2fad8c91abe9c878fbfdc98bd049ff5af126cb09";
|
|
5384
5390
|
|
|
5385
5391
|
/**
|
|
5386
5392
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
3
|
-
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-ZQtKshfc.js';
|
|
3
|
+
export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-ZQtKshfc.js';
|
|
4
4
|
export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.js';
|
|
5
5
|
|
|
6
6
|
/** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
|
|
@@ -47,10 +47,12 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
47
47
|
* sorts and filters by when an account is usable again.
|
|
48
48
|
* 1.26 — the coding app's own update: apps.windows.update_state (pending, which windows closed),
|
|
49
49
|
* apps.windows.reopen and apps.windows.update_and_reopen (quit all, install, reopen all).
|
|
50
|
+
* 1.27 — AppsWindowsUpdateStateResult.closed_by_update: the closed windows the update itself quit
|
|
51
|
+
* (the app's log says it went down for the update), apart from ones a person closed.
|
|
50
52
|
*/
|
|
51
|
-
declare const PROTOCOL_MINOR:
|
|
53
|
+
declare const PROTOCOL_MINOR: 27;
|
|
52
54
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
53
|
-
declare const PROTOCOL_VERSION: "1.
|
|
55
|
+
declare const PROTOCOL_VERSION: "1.27";
|
|
54
56
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
55
57
|
declare const u32: z.ZodInt;
|
|
56
58
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -2831,6 +2833,7 @@ declare const AppsWindowsUpdateStateResult: z.ZodObject<{
|
|
|
2831
2833
|
version: z.ZodNullable<z.ZodString>;
|
|
2832
2834
|
since_ms: z.ZodNullable<z.ZodInt>;
|
|
2833
2835
|
closed: z.ZodArray<z.ZodString>;
|
|
2836
|
+
closed_by_update: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2834
2837
|
}, z.core.$strict>;
|
|
2835
2838
|
type AppsWindowsUpdateStateResult = z.output<typeof AppsWindowsUpdateStateResult>;
|
|
2836
2839
|
/** Open these windows again (main first), one at a time. */
|
|
@@ -5326,6 +5329,9 @@ declare const FIELDS_SINCE: {
|
|
|
5326
5329
|
readonly AppsSpendResult: {
|
|
5327
5330
|
readonly days: "1.24";
|
|
5328
5331
|
};
|
|
5332
|
+
readonly AppsWindowsUpdateStateResult: {
|
|
5333
|
+
readonly closed_by_update: "1.27";
|
|
5334
|
+
};
|
|
5329
5335
|
};
|
|
5330
5336
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
5331
5337
|
/**
|
|
@@ -5380,7 +5386,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
5380
5386
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
5381
5387
|
|
|
5382
5388
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
5383
|
-
declare const CONTRACT_SHA256: "
|
|
5389
|
+
declare const CONTRACT_SHA256: "eece2e5eba3e6e33126a0fda2fad8c91abe9c878fbfdc98bd049ff5af126cb09";
|
|
5384
5390
|
|
|
5385
5391
|
/**
|
|
5386
5392
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
4
4
|
var PROTOCOL_MAJOR = 1;
|
|
5
|
-
var PROTOCOL_MINOR =
|
|
5
|
+
var PROTOCOL_MINOR = 27;
|
|
6
6
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
7
7
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
8
8
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1414,7 +1414,12 @@ var AppsWindowsUpdateStateResult = z14.strictObject({
|
|
|
1414
1414
|
/** When the update became pending (the download's time), when known. */
|
|
1415
1415
|
since_ms: epochMs.nullable(),
|
|
1416
1416
|
/** Windows open when the update became pending (or last seen open) that are closed now. */
|
|
1417
|
-
closed: z14.array(ChatPlace).max(200)
|
|
1417
|
+
closed: z14.array(ChatPlace).max(200),
|
|
1418
|
+
/**
|
|
1419
|
+
* Since 1.27: the windows in `closed` that the update itself quit (the app's log records a quit for
|
|
1420
|
+
* the update within a minute of when each was last seen running). Absent: not known.
|
|
1421
|
+
*/
|
|
1422
|
+
closed_by_update: z14.array(ChatPlace).max(200).optional()
|
|
1418
1423
|
});
|
|
1419
1424
|
var AppsWindowsReopenParams = z14.strictObject({ app_key: AppKey, windows: z14.array(ChatPlace).min(1).max(200) });
|
|
1420
1425
|
var AppsWindowsReopenResult = z14.strictObject({ message: z14.string().max(400), opened: z14.array(ChatPlace).max(200) });
|
|
@@ -3149,7 +3154,8 @@ var FIELDS_SINCE = {
|
|
|
3149
3154
|
AudioDevice: { kind: "1.24" },
|
|
3150
3155
|
ScreenDisplay: { rotation: "1.24", refresh_hz: "1.24", builtin: "1.24" },
|
|
3151
3156
|
PowerStatusResult: { energy: "1.24" },
|
|
3152
|
-
AppsSpendResult: { days: "1.24" }
|
|
3157
|
+
AppsSpendResult: { days: "1.24" },
|
|
3158
|
+
AppsWindowsUpdateStateResult: { closed_by_update: "1.27" }
|
|
3153
3159
|
};
|
|
3154
3160
|
var NULL_SINCE = {
|
|
3155
3161
|
"RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
|
|
@@ -3206,7 +3212,8 @@ var RESULT_PATH = /* @__PURE__ */ new Map([
|
|
|
3206
3212
|
["fs.patch", "FsPatchResult"],
|
|
3207
3213
|
["apps.chats.list", "AppsChatsListResult"],
|
|
3208
3214
|
["apps.accounts.usage", "AppsAccountsUsageResult"],
|
|
3209
|
-
["apps.accounts.resets", "AppsAccountsResetsResult"]
|
|
3215
|
+
["apps.accounts.resets", "AppsAccountsResetsResult"],
|
|
3216
|
+
["apps.windows.update_state", "AppsWindowsUpdateStateResult"]
|
|
3210
3217
|
]);
|
|
3211
3218
|
var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
3212
3219
|
["apps.chats.list", [["chats", "ChatRow"]]],
|
|
@@ -3279,7 +3286,7 @@ function forPeer(op, part, value, version) {
|
|
|
3279
3286
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
3280
3287
|
|
|
3281
3288
|
// src/contract.ts
|
|
3282
|
-
var CONTRACT_SHA256 = "
|
|
3289
|
+
var CONTRACT_SHA256 = "eece2e5eba3e6e33126a0fda2fad8c91abe9c878fbfdc98bd049ff5af126cb09";
|
|
3283
3290
|
|
|
3284
3291
|
// src/close-policy.ts
|
|
3285
3292
|
var CLOSE_RULES = {
|