@ai-matrx/desktop-protocol 0.21.11 → 0.21.13
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 +12 -0
- package/dist/client.cjs +1 -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 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/{models-i7KQcuyA.d.cts → models-BFxuhPGw.d.cts} +0 -2
- package/dist/{models-i7KQcuyA.d.ts → models-BFxuhPGw.d.ts} +0 -2
- package/generated/desktop-protocol.schema.json +1 -14
- package/package.json +1 -1
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-BFxuhPGw.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-BFxuhPGw.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. */
|
|
@@ -3379,7 +3379,7 @@ declare const WebSearchResult: z.ZodObject<{
|
|
|
3379
3379
|
elapsed_ms: z.ZodInt;
|
|
3380
3380
|
}, z.core.$strict>;
|
|
3381
3381
|
type WebSearchResult = z.output<typeof WebSearchResult>;
|
|
3382
|
-
/** The service op's params: the Router op's
|
|
3382
|
+
/** The service op's params: exactly the Router op's. No provider key ever reaches the computer: search runs on the server. */
|
|
3383
3383
|
declare const ToolsWebSearchParams: z.ZodObject<{
|
|
3384
3384
|
keywords: z.ZodArray<z.ZodString>;
|
|
3385
3385
|
country: z.ZodDefault<z.ZodString>;
|
|
@@ -3390,7 +3390,6 @@ declare const ToolsWebSearchParams: z.ZodObject<{
|
|
|
3390
3390
|
pm: "pm";
|
|
3391
3391
|
py: "py";
|
|
3392
3392
|
}>>;
|
|
3393
|
-
brave_api_key: z.ZodNullable<z.ZodString>;
|
|
3394
3393
|
}, z.core.$strict>;
|
|
3395
3394
|
type ToolsWebSearchParams = z.output<typeof ToolsWebSearchParams>;
|
|
3396
3395
|
declare const WebBrowserFetchParams: z.ZodObject<{
|
|
@@ -4989,7 +4988,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
4989
4988
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
4990
4989
|
|
|
4991
4990
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
4992
|
-
declare const CONTRACT_SHA256: "
|
|
4991
|
+
declare const CONTRACT_SHA256: "3649fe15a3400c32aa7a60712c93ebbefa639adc6218db849a13fa952e24bb04";
|
|
4993
4992
|
|
|
4994
4993
|
/**
|
|
4995
4994
|
* 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-BFxuhPGw.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-BFxuhPGw.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. */
|
|
@@ -3379,7 +3379,7 @@ declare const WebSearchResult: z.ZodObject<{
|
|
|
3379
3379
|
elapsed_ms: z.ZodInt;
|
|
3380
3380
|
}, z.core.$strict>;
|
|
3381
3381
|
type WebSearchResult = z.output<typeof WebSearchResult>;
|
|
3382
|
-
/** The service op's params: the Router op's
|
|
3382
|
+
/** The service op's params: exactly the Router op's. No provider key ever reaches the computer: search runs on the server. */
|
|
3383
3383
|
declare const ToolsWebSearchParams: z.ZodObject<{
|
|
3384
3384
|
keywords: z.ZodArray<z.ZodString>;
|
|
3385
3385
|
country: z.ZodDefault<z.ZodString>;
|
|
@@ -3390,7 +3390,6 @@ declare const ToolsWebSearchParams: z.ZodObject<{
|
|
|
3390
3390
|
pm: "pm";
|
|
3391
3391
|
py: "py";
|
|
3392
3392
|
}>>;
|
|
3393
|
-
brave_api_key: z.ZodNullable<z.ZodString>;
|
|
3394
3393
|
}, z.core.$strict>;
|
|
3395
3394
|
type ToolsWebSearchParams = z.output<typeof ToolsWebSearchParams>;
|
|
3396
3395
|
declare const WebBrowserFetchParams: z.ZodObject<{
|
|
@@ -4989,7 +4988,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
4989
4988
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
4990
4989
|
|
|
4991
4990
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
4992
|
-
declare const CONTRACT_SHA256: "
|
|
4991
|
+
declare const CONTRACT_SHA256: "3649fe15a3400c32aa7a60712c93ebbefa639adc6218db849a13fa952e24bb04";
|
|
4993
4992
|
|
|
4994
4993
|
/**
|
|
4995
4994
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
package/dist/index.js
CHANGED
|
@@ -1564,8 +1564,7 @@ var ToolsWebSearchParams = z19.strictObject({
|
|
|
1564
1564
|
keywords: z19.array(z19.string().min(1).max(400)).min(1).max(5),
|
|
1565
1565
|
country: z19.string().min(2).max(2).default("us"),
|
|
1566
1566
|
count: z19.int().min(1).max(20).default(10),
|
|
1567
|
-
freshness: z19.enum(["pd", "pw", "pm", "py"]).optional()
|
|
1568
|
-
brave_api_key: z19.string().min(1).max(512).nullable()
|
|
1567
|
+
freshness: z19.enum(["pd", "pw", "pm", "py"]).optional()
|
|
1569
1568
|
});
|
|
1570
1569
|
var WebBrowserFetchParams = z19.strictObject({
|
|
1571
1570
|
url: WebUrl,
|
|
@@ -3026,7 +3025,7 @@ function forPeer(op, part, value, version) {
|
|
|
3026
3025
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
3027
3026
|
|
|
3028
3027
|
// src/contract.ts
|
|
3029
|
-
var CONTRACT_SHA256 = "
|
|
3028
|
+
var CONTRACT_SHA256 = "3649fe15a3400c32aa7a60712c93ebbefa639adc6218db849a13fa952e24bb04";
|
|
3030
3029
|
|
|
3031
3030
|
// src/close-policy.ts
|
|
3032
3031
|
var CLOSE_RULES = {
|