@ai-matrx/desktop-protocol 0.21.37 → 0.21.38
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 +17 -2
- package/dist/client.cjs +5 -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 +5 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-B7jYxupg.d.cts → models-zxDeNnGE.d.cts} +6 -0
- package/dist/{models-B7jYxupg.d.ts → models-zxDeNnGE.d.ts} +6 -0
- package/dist/react.d.cts +1 -0
- package/dist/react.d.ts +1 -0
- package/generated/desktop-protocol.schema.json +8 -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, q as DownloadKind, r as DownloadRow, d as EVENTS, s as EndMsg, E as EndReason, t as ErrorCode, u as ErrorCodeName, v as ErrorData, w as ErrorMsg, x as ErrorReason, y as ErrorReasonName, z as EventMsg, A as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, G as LlmRunning, I as LlmServerState, J as MlInstallPhase, K as MlInstallProgress, f as MlProgress, N as MlRuntimeState, P as MlServiceState, Q as MlServiceStatus, R as MlStatusParams, U as MlStatusResult, V as ModelsDownloadsCancelParams, X as ModelsDownloadsCancelResult, Y as ModelsDownloadsListParams, Z as ModelsDownloadsListResult, _ as ModelsInstallParams, $ as ModelsInstallResult, a0 as ModelsLlmInstallParams, a1 as ModelsLlmInstallResult, a2 as ModelsLlmStartParams, a3 as ModelsLlmStartResult, a4 as ModelsLlmStatusParams, a5 as ModelsLlmStatusResult, a6 as ModelsLlmStopParams, a7 as ModelsLlmStopResult, a8 as ModelsProgressEvent, a9 as ModelsStatusParams, aa as ModelsStatusResult, ab as ModelsTranscribeParams, M as ModelsTranscribeResult, ac as NAMED_SCHEMAS, ad as NamedSchemaId, c as OPS, ae as OpDescriptor, a as OpParams, b as OpResult, af as OpSpec, ag as PING_TEXT, ah as PONG_TEXT, ai as ProtocolErrorBody, aj as RelayMsg, ak as RequestMsg, al as ResponseMsg, am as SERVICES, an as SUBPROTOCOL, ao as ServiceId, ap as ServiceOpName, aq as ServiceOpSpec, ar as ServiceSpec, S as StreamMeta, as as StreamMsg, at as TextModelId, au as TextModelInfo, av as TranscriptSegment, T as TranscriptionModelId, aw as TranscriptionModelInfo, W as Welcome, ax as closeRule, i as isDesktopProtocolError, ay as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-zxDeNnGE.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, q as DownloadKind, r as DownloadRow, d as EVENTS, s as EndMsg, E as EndReason, t as ErrorCode, u as ErrorCodeName, v as ErrorData, w as ErrorMsg, x as ErrorReason, y as ErrorReasonName, z as EventMsg, A as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, G as LlmRunning, I as LlmServerState, J as MlInstallPhase, K as MlInstallProgress, f as MlProgress, N as MlRuntimeState, P as MlServiceState, Q as MlServiceStatus, R as MlStatusParams, U as MlStatusResult, V as ModelsDownloadsCancelParams, X as ModelsDownloadsCancelResult, Y as ModelsDownloadsListParams, Z as ModelsDownloadsListResult, _ as ModelsInstallParams, $ as ModelsInstallResult, a0 as ModelsLlmInstallParams, a1 as ModelsLlmInstallResult, a2 as ModelsLlmStartParams, a3 as ModelsLlmStartResult, a4 as ModelsLlmStatusParams, a5 as ModelsLlmStatusResult, a6 as ModelsLlmStopParams, a7 as ModelsLlmStopResult, a8 as ModelsProgressEvent, a9 as ModelsStatusParams, aa as ModelsStatusResult, ab as ModelsTranscribeParams, M as ModelsTranscribeResult, ac as NAMED_SCHEMAS, ad as NamedSchemaId, c as OPS, ae as OpDescriptor, a as OpParams, b as OpResult, af as OpSpec, ag as PING_TEXT, ah as PONG_TEXT, ai as ProtocolErrorBody, aj as RelayMsg, ak as RequestMsg, al as ResponseMsg, am as SERVICES, an as SUBPROTOCOL, ao as ServiceId, ap as ServiceOpName, aq as ServiceOpSpec, ar as ServiceSpec, S as StreamMeta, as as StreamMsg, at as TextModelId, au as TextModelInfo, av as TranscriptSegment, T as TranscriptionModelId, aw as TranscriptionModelInfo, W as Welcome, ax as closeRule, i as isDesktopProtocolError, ay as isTerminalClose } from './models-zxDeNnGE.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. */
|
|
@@ -122,10 +122,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
122
122
|
* adapter's name, vendor, memory and whether it shares the computer's memory);
|
|
123
123
|
* models.downloads.list (every running model download and every half-done one) and
|
|
124
124
|
* models.downloads.cancel. A 1.44 core omits graphics and answers UNKNOWN_OPERATION.
|
|
125
|
+
* 1.46 — a failed download stays listed with why: DownloadRow `error`. A 1.45 core omits it.
|
|
125
126
|
*/
|
|
126
|
-
declare const PROTOCOL_MINOR:
|
|
127
|
+
declare const PROTOCOL_MINOR: 46;
|
|
127
128
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
128
|
-
declare const PROTOCOL_VERSION: "1.
|
|
129
|
+
declare const PROTOCOL_VERSION: "1.46";
|
|
129
130
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
130
131
|
declare const u32: z.ZodInt;
|
|
131
132
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -10252,6 +10253,9 @@ declare const FIELDS_SINCE: {
|
|
|
10252
10253
|
readonly SysinfoHardwareResult: {
|
|
10253
10254
|
readonly graphics: "1.45";
|
|
10254
10255
|
};
|
|
10256
|
+
readonly DownloadRow: {
|
|
10257
|
+
readonly error: "1.46";
|
|
10258
|
+
};
|
|
10255
10259
|
};
|
|
10256
10260
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
10257
10261
|
/**
|
|
@@ -10324,7 +10328,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
10324
10328
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
10325
10329
|
|
|
10326
10330
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
10327
|
-
declare const CONTRACT_SHA256: "
|
|
10331
|
+
declare const CONTRACT_SHA256: "017953b60f9c7e60376f18d993d10bc22debd8a6e9e4bf76d76e6f95e11acf26";
|
|
10328
10332
|
|
|
10329
10333
|
/**
|
|
10330
10334
|
* 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, q as DownloadKind, r as DownloadRow, d as EVENTS, s as EndMsg, E as EndReason, t as ErrorCode, u as ErrorCodeName, v as ErrorData, w as ErrorMsg, x as ErrorReason, y as ErrorReasonName, z as EventMsg, A as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, G as LlmRunning, I as LlmServerState, J as MlInstallPhase, K as MlInstallProgress, f as MlProgress, N as MlRuntimeState, P as MlServiceState, Q as MlServiceStatus, R as MlStatusParams, U as MlStatusResult, V as ModelsDownloadsCancelParams, X as ModelsDownloadsCancelResult, Y as ModelsDownloadsListParams, Z as ModelsDownloadsListResult, _ as ModelsInstallParams, $ as ModelsInstallResult, a0 as ModelsLlmInstallParams, a1 as ModelsLlmInstallResult, a2 as ModelsLlmStartParams, a3 as ModelsLlmStartResult, a4 as ModelsLlmStatusParams, a5 as ModelsLlmStatusResult, a6 as ModelsLlmStopParams, a7 as ModelsLlmStopResult, a8 as ModelsProgressEvent, a9 as ModelsStatusParams, aa as ModelsStatusResult, ab as ModelsTranscribeParams, M as ModelsTranscribeResult, ac as NAMED_SCHEMAS, ad as NamedSchemaId, c as OPS, ae as OpDescriptor, a as OpParams, b as OpResult, af as OpSpec, ag as PING_TEXT, ah as PONG_TEXT, ai as ProtocolErrorBody, aj as RelayMsg, ak as RequestMsg, al as ResponseMsg, am as SERVICES, an as SUBPROTOCOL, ao as ServiceId, ap as ServiceOpName, aq as ServiceOpSpec, ar as ServiceSpec, S as StreamMeta, as as StreamMsg, at as TextModelId, au as TextModelInfo, av as TranscriptSegment, T as TranscriptionModelId, aw as TranscriptionModelInfo, W as Welcome, ax as closeRule, i as isDesktopProtocolError, ay as isTerminalClose } from './models-
|
|
2
|
+
import { O as OpName } from './models-zxDeNnGE.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, q as DownloadKind, r as DownloadRow, d as EVENTS, s as EndMsg, E as EndReason, t as ErrorCode, u as ErrorCodeName, v as ErrorData, w as ErrorMsg, x as ErrorReason, y as ErrorReasonName, z as EventMsg, A as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, G as LlmRunning, I as LlmServerState, J as MlInstallPhase, K as MlInstallProgress, f as MlProgress, N as MlRuntimeState, P as MlServiceState, Q as MlServiceStatus, R as MlStatusParams, U as MlStatusResult, V as ModelsDownloadsCancelParams, X as ModelsDownloadsCancelResult, Y as ModelsDownloadsListParams, Z as ModelsDownloadsListResult, _ as ModelsInstallParams, $ as ModelsInstallResult, a0 as ModelsLlmInstallParams, a1 as ModelsLlmInstallResult, a2 as ModelsLlmStartParams, a3 as ModelsLlmStartResult, a4 as ModelsLlmStatusParams, a5 as ModelsLlmStatusResult, a6 as ModelsLlmStopParams, a7 as ModelsLlmStopResult, a8 as ModelsProgressEvent, a9 as ModelsStatusParams, aa as ModelsStatusResult, ab as ModelsTranscribeParams, M as ModelsTranscribeResult, ac as NAMED_SCHEMAS, ad as NamedSchemaId, c as OPS, ae as OpDescriptor, a as OpParams, b as OpResult, af as OpSpec, ag as PING_TEXT, ah as PONG_TEXT, ai as ProtocolErrorBody, aj as RelayMsg, ak as RequestMsg, al as ResponseMsg, am as SERVICES, an as SUBPROTOCOL, ao as ServiceId, ap as ServiceOpName, aq as ServiceOpSpec, ar as ServiceSpec, S as StreamMeta, as as StreamMsg, at as TextModelId, au as TextModelInfo, av as TranscriptSegment, T as TranscriptionModelId, aw as TranscriptionModelInfo, W as Welcome, ax as closeRule, i as isDesktopProtocolError, ay as isTerminalClose } from './models-zxDeNnGE.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. */
|
|
@@ -122,10 +122,11 @@ declare const PROTOCOL_MAJOR: 1;
|
|
|
122
122
|
* adapter's name, vendor, memory and whether it shares the computer's memory);
|
|
123
123
|
* models.downloads.list (every running model download and every half-done one) and
|
|
124
124
|
* models.downloads.cancel. A 1.44 core omits graphics and answers UNKNOWN_OPERATION.
|
|
125
|
+
* 1.46 — a failed download stays listed with why: DownloadRow `error`. A 1.45 core omits it.
|
|
125
126
|
*/
|
|
126
|
-
declare const PROTOCOL_MINOR:
|
|
127
|
+
declare const PROTOCOL_MINOR: 46;
|
|
127
128
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
128
|
-
declare const PROTOCOL_VERSION: "1.
|
|
129
|
+
declare const PROTOCOL_VERSION: "1.46";
|
|
129
130
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
130
131
|
declare const u32: z.ZodInt;
|
|
131
132
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -10252,6 +10253,9 @@ declare const FIELDS_SINCE: {
|
|
|
10252
10253
|
readonly SysinfoHardwareResult: {
|
|
10253
10254
|
readonly graphics: "1.45";
|
|
10254
10255
|
};
|
|
10256
|
+
readonly DownloadRow: {
|
|
10257
|
+
readonly error: "1.46";
|
|
10258
|
+
};
|
|
10255
10259
|
};
|
|
10256
10260
|
type FieldsSincePath = keyof typeof FIELDS_SINCE;
|
|
10257
10261
|
/**
|
|
@@ -10324,7 +10328,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
10324
10328
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
10325
10329
|
|
|
10326
10330
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
10327
|
-
declare const CONTRACT_SHA256: "
|
|
10331
|
+
declare const CONTRACT_SHA256: "017953b60f9c7e60376f18d993d10bc22debd8a6e9e4bf76d76e6f95e11acf26";
|
|
10328
10332
|
|
|
10329
10333
|
/**
|
|
10330
10334
|
* 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 = 46;
|
|
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_-]+$/);
|
|
@@ -935,7 +935,9 @@ var DownloadRow = z10.strictObject({
|
|
|
935
935
|
/** Unix ms; null when stopped. */
|
|
936
936
|
started_at: nonNegInt.nullable(),
|
|
937
937
|
/** The folder it downloads into (Show in Finder). */
|
|
938
|
-
path: z10.string().max(1024).nullable()
|
|
938
|
+
path: z10.string().max(1024).nullable(),
|
|
939
|
+
/** (1.46) Why it stopped, when it failed (one human line); absent otherwise. */
|
|
940
|
+
error: z10.string().max(300).optional()
|
|
939
941
|
});
|
|
940
942
|
var ModelsDownloadsListParams = z10.strictObject({});
|
|
941
943
|
var ModelsDownloadsListResult = z10.strictObject({ downloads: z10.array(DownloadRow).max(64) });
|
|
@@ -5320,7 +5322,8 @@ var FIELDS_SINCE = {
|
|
|
5320
5322
|
SysinfoGetResult: { requirements: "1.41" },
|
|
5321
5323
|
"SysinfoGetResult.permissions[]": { detail: "1.41" },
|
|
5322
5324
|
MessagesSendParams: { service: "1.42" },
|
|
5323
|
-
SysinfoHardwareResult: { graphics: "1.45" }
|
|
5325
|
+
SysinfoHardwareResult: { graphics: "1.45" },
|
|
5326
|
+
DownloadRow: { error: "1.46" }
|
|
5324
5327
|
};
|
|
5325
5328
|
var NULL_SINCE = {
|
|
5326
5329
|
"RelayDeviceStatusEvent.since_ms": { since: "1.1", olderPeersGet: 0 }
|
|
@@ -5423,6 +5426,7 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
5423
5426
|
["account.agents.list", [["agents", "AccountAgent"]]],
|
|
5424
5427
|
["web.scrape", [["pages", "WebScrapePage"]]],
|
|
5425
5428
|
["sysinfo.get", [["permissions", "SysinfoGetResult.permissions[]"]]],
|
|
5429
|
+
["models.downloads.list", [["downloads", "DownloadRow"]]],
|
|
5426
5430
|
["apps.projects.to_window", [["group", "ProjectMoveGroup"]]]
|
|
5427
5431
|
]);
|
|
5428
5432
|
function stripNested(value, nested, version) {
|
|
@@ -5485,7 +5489,7 @@ function forPeer(op, part, value, version) {
|
|
|
5485
5489
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
5486
5490
|
|
|
5487
5491
|
// src/contract.ts
|
|
5488
|
-
var CONTRACT_SHA256 = "
|
|
5492
|
+
var CONTRACT_SHA256 = "017953b60f9c7e60376f18d993d10bc22debd8a6e9e4bf76d76e6f95e11acf26";
|
|
5489
5493
|
|
|
5490
5494
|
// src/close-policy.ts
|
|
5491
5495
|
var CLOSE_RULES = {
|