@ai-matrx/desktop-protocol 0.21.98 → 0.21.100
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 +18 -2
- package/dist/{chunk-server-M4ZZLI5M.js → chunk-server-B3HIUKA6.js} +2 -2
- package/dist/{chunk-server-M4ZZLI5M.js.map → chunk-server-B3HIUKA6.js.map} +1 -1
- package/dist/{chunk-server-ATU4VUHA.js → chunk-server-DQ5N6P7Z.js} +2 -2
- package/dist/{chunk-server-4H74IJI4.js → chunk-server-M6HN3B5P.js} +3 -3
- package/dist/{chunk-server-I5MQ4EET.js → chunk-server-Y3VWEZ22.js} +29 -2
- package/dist/{chunk-server-I5MQ4EET.js.map → chunk-server-Y3VWEZ22.js.map} +1 -1
- package/dist/client.cjs +25 -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 +3 -3
- package/dist/index.cjs +30 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +314 -251
- package/dist/index.d.ts +314 -251
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{models-DDuVPiOe.d.cts → models-LkQ2l9In.d.cts} +550 -464
- package/dist/{models-DDuVPiOe.d.ts → models-LkQ2l9In.d.ts} +550 -464
- package/dist/react.d.cts +31 -2
- package/dist/react.d.ts +31 -2
- package/fixtures/device-model-contract.json +4 -2
- package/generated/desktop-protocol.schema.json +105 -1
- package/package.json +2 -2
- /package/dist/{chunk-server-ATU4VUHA.js.map → chunk-server-DQ5N6P7Z.js.map} +0 -0
- /package/dist/{chunk-server-4H74IJI4.js.map → chunk-server-M6HN3B5P.js.map} +0 -0
package/dist/client.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-
|
|
4
|
+
import { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-LkQ2l9In.cjs';
|
|
5
5
|
import { Welcome, CloseOutcome, OPS, StreamMeta, EndReason, EVENTS, ClientType, ModelsTranscribeResult, TranscriptionModelId, MlProgress } from './index.cjs';
|
|
6
|
-
export { i as isDesktopProtocolError } from './models-
|
|
6
|
+
export { i as isDesktopProtocolError } from './models-LkQ2l9In.cjs';
|
|
7
7
|
import { FrameHeader } from './frame.cjs';
|
|
8
8
|
|
|
9
9
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-
|
|
4
|
+
import { D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult } from './models-LkQ2l9In.js';
|
|
5
5
|
import { Welcome, CloseOutcome, OPS, StreamMeta, EndReason, EVENTS, ClientType, ModelsTranscribeResult, TranscriptionModelId, MlProgress } from './index.js';
|
|
6
|
-
export { i as isDesktopProtocolError } from './models-
|
|
6
|
+
export { i as isDesktopProtocolError } from './models-LkQ2l9In.js';
|
|
7
7
|
import { FrameHeader } from './frame.js';
|
|
8
8
|
|
|
9
9
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
closeRule,
|
|
3
3
|
knows
|
|
4
|
-
} from "./chunk-server-
|
|
4
|
+
} from "./chunk-server-DQ5N6P7Z.js";
|
|
5
5
|
import {
|
|
6
6
|
CloseCode,
|
|
7
7
|
CoreToClientMsg,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
PROTOCOL_MAJOR,
|
|
13
13
|
PROTOCOL_MINOR,
|
|
14
14
|
Welcome
|
|
15
|
-
} from "./chunk-server-
|
|
15
|
+
} from "./chunk-server-B3HIUKA6.js";
|
|
16
16
|
import {
|
|
17
17
|
DesktopProtocolError,
|
|
18
18
|
FRAME_VERSION,
|
|
@@ -28,7 +28,7 @@ var registry = null;
|
|
|
28
28
|
var registryLoad = null;
|
|
29
29
|
function loadRegistry() {
|
|
30
30
|
if (registry) return Promise.resolve(registry);
|
|
31
|
-
registryLoad ??= import("./chunk-server-
|
|
31
|
+
registryLoad ??= import("./chunk-server-M6HN3B5P.js").then((m) => registry = m);
|
|
32
32
|
return registryLoad;
|
|
33
33
|
}
|
|
34
34
|
var WS_OPEN = 1;
|
package/dist/index.cjs
CHANGED
|
@@ -674,6 +674,10 @@ __export(src_exports, {
|
|
|
674
674
|
NetBluetoothDevice: () => NetBluetoothDevice,
|
|
675
675
|
NetBluetoothParams: () => NetBluetoothParams,
|
|
676
676
|
NetBluetoothResult: () => NetBluetoothResult,
|
|
677
|
+
NetConnectedCategory: () => NetConnectedCategory,
|
|
678
|
+
NetConnectedDevice: () => NetConnectedDevice,
|
|
679
|
+
NetConnectedDevicesParams: () => NetConnectedDevicesParams,
|
|
680
|
+
NetConnectedDevicesResult: () => NetConnectedDevicesResult,
|
|
677
681
|
NetDevice: () => NetDevice,
|
|
678
682
|
NetDevicesParams: () => NetDevicesParams,
|
|
679
683
|
NetDevicesResult: () => NetDevicesResult,
|
|
@@ -1053,7 +1057,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
1053
1057
|
var import_zod = require("zod");
|
|
1054
1058
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
1055
1059
|
var PROTOCOL_MAJOR = 1;
|
|
1056
|
-
var PROTOCOL_MINOR =
|
|
1060
|
+
var PROTOCOL_MINOR = 93;
|
|
1057
1061
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
1058
1062
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
1059
1063
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -5986,6 +5990,24 @@ var NetDevice = import_zod40.z.strictObject({
|
|
|
5986
5990
|
hostname: import_zod40.z.string().nullable()
|
|
5987
5991
|
});
|
|
5988
5992
|
var NetDevicesResult = import_zod40.z.strictObject({ devices: import_zod40.z.array(NetDevice) });
|
|
5993
|
+
var NetConnectedDevicesParams = import_zod40.z.strictObject({});
|
|
5994
|
+
var NetConnectedCategory = import_zod40.z.enum(["usb", "thunderbolt", "display", "printer", "input", "storage", "camera", "audio", "network", "other"]);
|
|
5995
|
+
var NetConnectedDevice = import_zod40.z.strictObject({
|
|
5996
|
+
name: import_zod40.z.string(),
|
|
5997
|
+
category: NetConnectedCategory,
|
|
5998
|
+
/** Who makes it, where the OS says. */
|
|
5999
|
+
vendor: import_zod40.z.string().nullable(),
|
|
6000
|
+
/** A display's resolution ("3024 x 1964"); null elsewhere. */
|
|
6001
|
+
resolution: import_zod40.z.string().nullable(),
|
|
6002
|
+
/** How it is attached ("Thunderbolt / USB4", "Internal"); null where the OS does not say. */
|
|
6003
|
+
connection: import_zod40.z.string().nullable(),
|
|
6004
|
+
/** Link speed ("Up to 480 Mb/s"); null where the OS does not say. */
|
|
6005
|
+
speed: import_zod40.z.string().nullable(),
|
|
6006
|
+
/** A printer's state ("idle"); null elsewhere. */
|
|
6007
|
+
status: import_zod40.z.string().nullable(),
|
|
6008
|
+
serial: import_zod40.z.string().nullable()
|
|
6009
|
+
});
|
|
6010
|
+
var NetConnectedDevicesResult = import_zod40.z.strictObject({ devices: import_zod40.z.array(NetConnectedDevice) });
|
|
5989
6011
|
var NetMdnsParams = import_zod40.z.strictObject({
|
|
5990
6012
|
/** A service type ("_http._tcp"); absent lists the service types found. */
|
|
5991
6013
|
service_type: import_zod40.z.string().min(1).max(64).regex(/^_[A-Za-z0-9-]+\._(tcp|udp)$/).optional(),
|
|
@@ -6889,6 +6911,7 @@ var OPS = {
|
|
|
6889
6911
|
"net.info": { params: NetInfoParams, result: NetInfoResult, kind: "unary", since: "1.37", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
6890
6912
|
"net.wifi": { params: NetWifiParams, result: NetWifiResult, kind: "unary", since: "1.37", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6891
6913
|
"net.bluetooth": { params: NetBluetoothParams, result: NetBluetoothResult, kind: "unary", since: "1.37", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6914
|
+
"net.connected_devices": { params: NetConnectedDevicesParams, result: NetConnectedDevicesResult, kind: "unary", since: "1.93", errors: ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6892
6915
|
"net.devices": { params: NetDevicesParams, result: NetDevicesResult, kind: "unary", since: "1.37", errors: ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6893
6916
|
"net.mdns": { params: NetMdnsParams, result: NetMdnsResult, kind: "unary", since: "1.37", errors: ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6894
6917
|
"net.scan": { params: NetScanParams, result: NetScanResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "TIMEOUT", "INTERNAL"] },
|
|
@@ -7845,6 +7868,10 @@ var NAMED_SCHEMAS = {
|
|
|
7845
7868
|
NetBluetoothParams,
|
|
7846
7869
|
NetBluetoothDevice,
|
|
7847
7870
|
NetBluetoothResult,
|
|
7871
|
+
NetConnectedDevicesParams,
|
|
7872
|
+
NetConnectedCategory,
|
|
7873
|
+
NetConnectedDevice,
|
|
7874
|
+
NetConnectedDevicesResult,
|
|
7848
7875
|
NetDevicesParams,
|
|
7849
7876
|
NetDevice,
|
|
7850
7877
|
NetDevicesResult,
|
|
@@ -8326,7 +8353,7 @@ function forPeer(op, part, value, version) {
|
|
|
8326
8353
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
8327
8354
|
|
|
8328
8355
|
// src/contract.ts
|
|
8329
|
-
var CONTRACT_SHA256 = "
|
|
8356
|
+
var CONTRACT_SHA256 = "b7acf58374debc55d5d57d215e713bda8c63a6410752534dfd06749d6b79b5c7";
|
|
8330
8357
|
|
|
8331
8358
|
// src/close-policy.ts
|
|
8332
8359
|
var CLOSE_RULES = {
|
|
@@ -8402,7 +8429,7 @@ var TOOL_CATALOG = [
|
|
|
8402
8429
|
// Windows comes back once a Windows location fix is proven (plan attack retire-local 2026-10-12, B6):
|
|
8403
8430
|
// until then local_mac_apps (macOS-only) is judged on macOS and nothing claims Windows.
|
|
8404
8431
|
{ name: "desktop_location", group: "personal_automation", state: "built", path: "device_op", ops: ["location.get"], platforms: ["darwin"], summary: "Where the computer is (the OS's location service)" },
|
|
8405
|
-
{ name: "desktop_net", group: "personal_automation", state: "built", path: "device_op", ops: ["net.info", "net.wifi", "net.bluetooth", "net.devices", "net.mdns", "net.scan", "net.download"], platforms: ALL, summary: "Local network, Wi-Fi, Bluetooth, open ports and downloads" },
|
|
8432
|
+
{ name: "desktop_net", group: "personal_automation", state: "built", path: "device_op", ops: ["net.info", "net.wifi", "net.bluetooth", "net.connected_devices", "net.devices", "net.mdns", "net.scan", "net.download"], platforms: ALL, summary: "Local network, Wi-Fi, Bluetooth, open ports and downloads" },
|
|
8406
8433
|
{ name: "desktop_schedule", group: "personal_automation", state: "built", path: "device_op", ops: ["schedule.create", "schedule.list", "schedule.cancel"], platforms: ALL, summary: "Run a tool's op on this computer on an interval; list and cancel" },
|
|
8407
8434
|
// 1.38, code from anywhere: the person's Claude Code and Codex sessions on this computer. Turning
|
|
8408
8435
|
// either off in Agents › Tools refuses its ops on every relay connection (the existing switch).
|