@ai-matrx/desktop-protocol 0.21.64 → 0.21.65
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 +13 -3
- package/dist/{chunk-server-B5W6NL7W.js → chunk-server-K7IQDLLV.js} +37 -7
- package/dist/chunk-server-K7IQDLLV.js.map +1 -0
- package/dist/client.cjs +28 -6
- 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 +37 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -6
- package/dist/index.d.ts +53 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-B13QkIMu.d.cts → models-Bz990hcd.d.cts} +37 -0
- package/dist/{models-B13QkIMu.d.ts → models-Bz990hcd.d.ts} +37 -0
- package/dist/react.d.cts +16 -0
- package/dist/react.d.ts +16 -0
- package/generated/desktop-protocol.schema.json +65 -1
- package/package.json +2 -2
- package/dist/chunk-server-B5W6NL7W.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-Bz990hcd.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-Bz990hcd.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-Bz990hcd.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-Bz990hcd.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
|
@@ -865,6 +865,7 @@ __export(src_exports, {
|
|
|
865
865
|
WindowMoveParams: () => WindowMoveParams,
|
|
866
866
|
WindowMoveResult: () => WindowMoveResult,
|
|
867
867
|
WindowRemoteControl: () => WindowRemoteControl,
|
|
868
|
+
WindowState: () => WindowState,
|
|
868
869
|
WindowsEvent: () => WindowsEvent,
|
|
869
870
|
WindowsEventLogParams: () => WindowsEventLogParams,
|
|
870
871
|
WindowsEventLogResult: () => WindowsEventLogResult,
|
|
@@ -914,7 +915,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
914
915
|
var import_zod = require("zod");
|
|
915
916
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
916
917
|
var PROTOCOL_MAJOR = 1;
|
|
917
|
-
var PROTOCOL_MINOR =
|
|
918
|
+
var PROTOCOL_MINOR = 66;
|
|
918
919
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
919
920
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
920
921
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3547,6 +3548,8 @@ var WindowInfo = import_zod24.z.strictObject({
|
|
|
3547
3548
|
var WindowListParams = import_zod24.z.strictObject({
|
|
3548
3549
|
/** Case-insensitive substring of the window title. */
|
|
3549
3550
|
title: import_zod24.z.string().min(1).max(256).optional(),
|
|
3551
|
+
/** (1.66) Case-insensitive substring of the owning application's name (matrx-local's app_filter). */
|
|
3552
|
+
app: import_zod24.z.string().min(1).max(256).optional(),
|
|
3550
3553
|
limit: import_zod24.z.int().min(1).max(500).default(100)
|
|
3551
3554
|
});
|
|
3552
3555
|
var WindowListResult = import_zod24.z.strictObject({
|
|
@@ -3566,8 +3569,17 @@ var WindowMoveParams = import_zod24.z.strictObject({
|
|
|
3566
3569
|
height: import_zod24.z.int().min(50).max(16384).optional()
|
|
3567
3570
|
});
|
|
3568
3571
|
var WindowMoveResult = import_zod24.z.strictObject({ window: WindowInfo });
|
|
3569
|
-
var
|
|
3570
|
-
var
|
|
3572
|
+
var WindowState = import_zod24.z.enum(["minimize", "maximize", "restore"]);
|
|
3573
|
+
var WindowMinimizeParams = import_zod24.z.strictObject({
|
|
3574
|
+
id: nonNegInt,
|
|
3575
|
+
/** (1.66) minimize (the default), maximize (fill its display), or restore (bring a minimized or maximized window back). */
|
|
3576
|
+
mode: WindowState.optional()
|
|
3577
|
+
});
|
|
3578
|
+
var WindowMinimizeResult = import_zod24.z.strictObject({
|
|
3579
|
+
id: nonNegInt,
|
|
3580
|
+
/** (1.66) What was done. */
|
|
3581
|
+
mode: WindowState.optional()
|
|
3582
|
+
});
|
|
3571
3583
|
|
|
3572
3584
|
// src/schema/input.ts
|
|
3573
3585
|
var import_zod25 = require("zod");
|
|
@@ -4079,16 +4091,27 @@ var AudioRecordParams = import_zod30.z.strictObject({
|
|
|
4079
4091
|
/** The microphone (from audio.devices); the default input when absent. */
|
|
4080
4092
|
device_id: import_zod30.z.string().min(1).max(256).optional(),
|
|
4081
4093
|
/** Where the WAV file goes; a new file in the temp folder when absent. */
|
|
4082
|
-
path: AbsPath.optional()
|
|
4094
|
+
path: AbsPath.optional(),
|
|
4095
|
+
/** (1.66) 1 (mono, the default) or 2 (stereo). */
|
|
4096
|
+
channels: import_zod30.z.int().min(1).max(2).optional(),
|
|
4097
|
+
/** (1.66) Samples per second; the device's own rate when absent. */
|
|
4098
|
+
sample_rate: import_zod30.z.int().min(8e3).max(192e3).optional()
|
|
4083
4099
|
});
|
|
4084
4100
|
var AudioRecordResult = import_zod30.z.strictObject({
|
|
4085
4101
|
path: AbsPath,
|
|
4086
4102
|
seconds: import_zod30.z.number().min(0),
|
|
4087
4103
|
bytes: nonNegInt,
|
|
4088
4104
|
/** Loudest sample, 0–1: 0 means the device gave silence. */
|
|
4089
|
-
peak: import_zod30.z.number().min(0).max(1)
|
|
4105
|
+
peak: import_zod30.z.number().min(0).max(1),
|
|
4106
|
+
/** (1.66) The file's channels and sample rate, as written. */
|
|
4107
|
+
channels: import_zod30.z.int().min(1).max(8).optional(),
|
|
4108
|
+
sample_rate: import_zod30.z.int().min(1).max(768e3).optional()
|
|
4109
|
+
});
|
|
4110
|
+
var AudioPlayParams = import_zod30.z.strictObject({
|
|
4111
|
+
path: AbsPath,
|
|
4112
|
+
/** (1.66) The speaker or output (its id from audio.devices' outputs); the system's output when absent. */
|
|
4113
|
+
device_id: import_zod30.z.string().min(1).max(256).optional()
|
|
4090
4114
|
});
|
|
4091
|
-
var AudioPlayParams = import_zod30.z.strictObject({ path: AbsPath });
|
|
4092
4115
|
var AudioPlayResult = import_zod30.z.strictObject({ path: AbsPath, seconds: import_zod30.z.number().min(0) });
|
|
4093
4116
|
var AudioLevelsParams = import_zod30.z.strictObject({});
|
|
4094
4117
|
var AudioLevelsResult = import_zod30.z.strictObject({
|
|
@@ -6141,6 +6164,7 @@ var NAMED_SCHEMAS = {
|
|
|
6141
6164
|
WindowMoveResult,
|
|
6142
6165
|
WindowMinimizeParams,
|
|
6143
6166
|
WindowMinimizeResult,
|
|
6167
|
+
WindowState,
|
|
6144
6168
|
InputKey,
|
|
6145
6169
|
InputKeyboardSettingsParams,
|
|
6146
6170
|
InputKeyboardSettingsResult,
|
|
@@ -6660,6 +6684,12 @@ var FIELDS_SINCE = {
|
|
|
6660
6684
|
ResourcesDisk: { name: "1.17" },
|
|
6661
6685
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
6662
6686
|
AudioDevice: { kind: "1.24" },
|
|
6687
|
+
AudioRecordParams: { channels: "1.66", sample_rate: "1.66" },
|
|
6688
|
+
AudioRecordResult: { channels: "1.66", sample_rate: "1.66" },
|
|
6689
|
+
AudioPlayParams: { device_id: "1.66" },
|
|
6690
|
+
WindowListParams: { app: "1.66" },
|
|
6691
|
+
WindowMinimizeParams: { mode: "1.66" },
|
|
6692
|
+
WindowMinimizeResult: { mode: "1.66" },
|
|
6663
6693
|
ScreenDisplay: { rotation: "1.24", refresh_hz: "1.24", builtin: "1.24" },
|
|
6664
6694
|
PowerStatusResult: { energy: "1.24" },
|
|
6665
6695
|
AppsSpendResult: { days: "1.24" },
|
|
@@ -6910,7 +6940,7 @@ function forPeer(op, part, value, version) {
|
|
|
6910
6940
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
6911
6941
|
|
|
6912
6942
|
// src/contract.ts
|
|
6913
|
-
var CONTRACT_SHA256 = "
|
|
6943
|
+
var CONTRACT_SHA256 = "12cce30e22d7106e7344708176202949a2b2fea7eede2c570f663d46d3cedf34";
|
|
6914
6944
|
|
|
6915
6945
|
// src/close-policy.ts
|
|
6916
6946
|
var CLOSE_RULES = {
|