@ai-matrx/desktop-protocol 0.21.82 → 0.21.83
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 +7 -1
- package/dist/{chunk-server-3QKXTKK4.js → chunk-server-EKAFTH72.js} +26 -3
- package/dist/chunk-server-EKAFTH72.js.map +1 -0
- package/dist/client.cjs +2 -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 +26 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -7
- package/dist/index.d.ts +21 -7
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-D5O1othS.d.cts → models-DMJ4I-2x.d.cts} +5 -0
- package/dist/{models-D5O1othS.d.ts → models-DMJ4I-2x.d.ts} +5 -0
- package/dist/react.d.cts +1 -0
- package/dist/react.d.ts +1 -0
- package/generated/desktop-protocol.schema.json +3 -2
- package/package.json +2 -2
- package/dist/chunk-server-3QKXTKK4.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-DMJ4I-2x.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-DMJ4I-2x.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-DMJ4I-2x.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-DMJ4I-2x.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
|
@@ -719,6 +719,7 @@ __export(src_exports, {
|
|
|
719
719
|
ResponseMsg: () => ResponseMsg,
|
|
720
720
|
SERVICES: () => SERVICES,
|
|
721
721
|
SERVICE_MAX_FRAME_BYTES: () => SERVICE_MAX_FRAME_BYTES,
|
|
722
|
+
SETUP_KINDS_SINCE: () => SETUP_KINDS_SINCE,
|
|
722
723
|
SUBPROTOCOL: () => SUBPROTOCOL,
|
|
723
724
|
ScheduleCancelParams: () => ScheduleCancelParams,
|
|
724
725
|
ScheduleCancelResult: () => ScheduleCancelResult,
|
|
@@ -944,7 +945,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
944
945
|
var import_zod = require("zod");
|
|
945
946
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
946
947
|
var PROTOCOL_MAJOR = 1;
|
|
947
|
-
var PROTOCOL_MINOR =
|
|
948
|
+
var PROTOCOL_MINOR = 80;
|
|
948
949
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
949
950
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
950
951
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3179,7 +3180,7 @@ var McpServerRow = import_zod15.z.strictObject({
|
|
|
3179
3180
|
where: import_zod15.z.string().max(400)
|
|
3180
3181
|
});
|
|
3181
3182
|
var SetupFact = import_zod15.z.strictObject({ name: import_zod15.z.string().max(80), value: import_zod15.z.string().max(300) });
|
|
3182
|
-
var SetupItemKind = import_zod15.z.enum(["extension", "plugin", "marketplace", "model"]);
|
|
3183
|
+
var SetupItemKind = import_zod15.z.enum(["extension", "plugin", "marketplace", "model", "skill"]);
|
|
3183
3184
|
var SetupItem = import_zod15.z.strictObject({
|
|
3184
3185
|
kind: SetupItemKind,
|
|
3185
3186
|
name: import_zod15.z.string().max(200),
|
|
@@ -7117,6 +7118,27 @@ var PERMISSIONS_SINCE = {
|
|
|
7117
7118
|
mail: "1.41",
|
|
7118
7119
|
wifi: "1.41"
|
|
7119
7120
|
};
|
|
7121
|
+
var SETUP_KINDS_SINCE = {
|
|
7122
|
+
skill: "1.80"
|
|
7123
|
+
};
|
|
7124
|
+
function setupItemsForPeer(value, version) {
|
|
7125
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
|
|
7126
|
+
const body = value;
|
|
7127
|
+
if (!Array.isArray(body.setups)) return value;
|
|
7128
|
+
const since = SETUP_KINDS_SINCE;
|
|
7129
|
+
const setups = body.setups;
|
|
7130
|
+
const next = setups.map((s) => {
|
|
7131
|
+
const items = s?.items;
|
|
7132
|
+
if (!Array.isArray(items)) return s;
|
|
7133
|
+
const kept = items.filter((i) => {
|
|
7134
|
+
const kind = i?.kind;
|
|
7135
|
+
const added = typeof kind === "string" ? since[kind] : void 0;
|
|
7136
|
+
return !added || knows(version, added);
|
|
7137
|
+
});
|
|
7138
|
+
return kept.length === items.length ? s : { ...s, items: kept };
|
|
7139
|
+
});
|
|
7140
|
+
return next.some((s, i) => s !== setups[i]) ? { ...body, setups: next } : value;
|
|
7141
|
+
}
|
|
7120
7142
|
function permissionsForPeer(value, version) {
|
|
7121
7143
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
|
|
7122
7144
|
const body = value;
|
|
@@ -7322,6 +7344,7 @@ function forPeer(op, part, value, version) {
|
|
|
7322
7344
|
const stripped = nested ? stripNested(top, nested, version) : top;
|
|
7323
7345
|
if (op === "coding.providers") return providersForPeer(stripped, version);
|
|
7324
7346
|
if (op === "coding.history" || op === "coding.transcript.read") return transcriptItemsForPeer(stripped, version);
|
|
7347
|
+
if (op === "apps.setup.list") return setupItemsForPeer(stripped, version);
|
|
7325
7348
|
return op === "apps.windows.list" ? windowListRemoteControlForPeer(stripped, version) : stripped;
|
|
7326
7349
|
}
|
|
7327
7350
|
if (value === null || typeof value !== "object") return value;
|
|
@@ -7339,7 +7362,7 @@ function forPeer(op, part, value, version) {
|
|
|
7339
7362
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
7340
7363
|
|
|
7341
7364
|
// src/contract.ts
|
|
7342
|
-
var CONTRACT_SHA256 = "
|
|
7365
|
+
var CONTRACT_SHA256 = "c416872bf8877ac2f210f9a4da3c7873a49879bfe07d4c58f4f29dc91e09be27";
|
|
7343
7366
|
|
|
7344
7367
|
// src/close-policy.ts
|
|
7345
7368
|
var CLOSE_RULES = {
|