@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.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
|
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
146
146
|
var PROTOCOL_MAJOR = 1;
|
|
147
|
-
var PROTOCOL_MINOR =
|
|
147
|
+
var PROTOCOL_MINOR = 66;
|
|
148
148
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
149
149
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
150
150
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1745,6 +1745,8 @@ var WindowInfo = import_zod18.z.strictObject({
|
|
|
1745
1745
|
var WindowListParams = import_zod18.z.strictObject({
|
|
1746
1746
|
/** Case-insensitive substring of the window title. */
|
|
1747
1747
|
title: import_zod18.z.string().min(1).max(256).optional(),
|
|
1748
|
+
/** (1.66) Case-insensitive substring of the owning application's name (matrx-local's app_filter). */
|
|
1749
|
+
app: import_zod18.z.string().min(1).max(256).optional(),
|
|
1748
1750
|
limit: import_zod18.z.int().min(1).max(500).default(100)
|
|
1749
1751
|
});
|
|
1750
1752
|
var WindowListResult = import_zod18.z.strictObject({
|
|
@@ -1764,8 +1766,17 @@ var WindowMoveParams = import_zod18.z.strictObject({
|
|
|
1764
1766
|
height: import_zod18.z.int().min(50).max(16384).optional()
|
|
1765
1767
|
});
|
|
1766
1768
|
var WindowMoveResult = import_zod18.z.strictObject({ window: WindowInfo });
|
|
1767
|
-
var
|
|
1768
|
-
var
|
|
1769
|
+
var WindowState = import_zod18.z.enum(["minimize", "maximize", "restore"]);
|
|
1770
|
+
var WindowMinimizeParams = import_zod18.z.strictObject({
|
|
1771
|
+
id: nonNegInt,
|
|
1772
|
+
/** (1.66) minimize (the default), maximize (fill its display), or restore (bring a minimized or maximized window back). */
|
|
1773
|
+
mode: WindowState.optional()
|
|
1774
|
+
});
|
|
1775
|
+
var WindowMinimizeResult = import_zod18.z.strictObject({
|
|
1776
|
+
id: nonNegInt,
|
|
1777
|
+
/** (1.66) What was done. */
|
|
1778
|
+
mode: WindowState.optional()
|
|
1779
|
+
});
|
|
1769
1780
|
|
|
1770
1781
|
// src/schema/input.ts
|
|
1771
1782
|
var import_zod19 = require("zod");
|
|
@@ -1968,16 +1979,27 @@ var AudioRecordParams = import_zod21.z.strictObject({
|
|
|
1968
1979
|
/** The microphone (from audio.devices); the default input when absent. */
|
|
1969
1980
|
device_id: import_zod21.z.string().min(1).max(256).optional(),
|
|
1970
1981
|
/** Where the WAV file goes; a new file in the temp folder when absent. */
|
|
1971
|
-
path: AbsPath.optional()
|
|
1982
|
+
path: AbsPath.optional(),
|
|
1983
|
+
/** (1.66) 1 (mono, the default) or 2 (stereo). */
|
|
1984
|
+
channels: import_zod21.z.int().min(1).max(2).optional(),
|
|
1985
|
+
/** (1.66) Samples per second; the device's own rate when absent. */
|
|
1986
|
+
sample_rate: import_zod21.z.int().min(8e3).max(192e3).optional()
|
|
1972
1987
|
});
|
|
1973
1988
|
var AudioRecordResult = import_zod21.z.strictObject({
|
|
1974
1989
|
path: AbsPath,
|
|
1975
1990
|
seconds: import_zod21.z.number().min(0),
|
|
1976
1991
|
bytes: nonNegInt,
|
|
1977
1992
|
/** Loudest sample, 0–1: 0 means the device gave silence. */
|
|
1978
|
-
peak: import_zod21.z.number().min(0).max(1)
|
|
1993
|
+
peak: import_zod21.z.number().min(0).max(1),
|
|
1994
|
+
/** (1.66) The file's channels and sample rate, as written. */
|
|
1995
|
+
channels: import_zod21.z.int().min(1).max(8).optional(),
|
|
1996
|
+
sample_rate: import_zod21.z.int().min(1).max(768e3).optional()
|
|
1997
|
+
});
|
|
1998
|
+
var AudioPlayParams = import_zod21.z.strictObject({
|
|
1999
|
+
path: AbsPath,
|
|
2000
|
+
/** (1.66) The speaker or output (its id from audio.devices' outputs); the system's output when absent. */
|
|
2001
|
+
device_id: import_zod21.z.string().min(1).max(256).optional()
|
|
1979
2002
|
});
|
|
1980
|
-
var AudioPlayParams = import_zod21.z.strictObject({ path: AbsPath });
|
|
1981
2003
|
var AudioPlayResult = import_zod21.z.strictObject({ path: AbsPath, seconds: import_zod21.z.number().min(0) });
|
|
1982
2004
|
var AudioLevelsParams = import_zod21.z.strictObject({});
|
|
1983
2005
|
var AudioLevelsResult = import_zod21.z.strictObject({
|