@ai-matrx/desktop-protocol 0.21.62 → 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 +29 -3
- package/dist/{chunk-server-EQCCXWD7.js → chunk-server-K7IQDLLV.js} +99 -7
- package/dist/chunk-server-K7IQDLLV.js.map +1 -0
- package/dist/client.cjs +63 -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 +99 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +151 -6
- package/dist/index.d.ts +151 -6
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-yHB4kGxD.d.cts → models-Bz990hcd.d.cts} +193 -1
- package/dist/{models-yHB4kGxD.d.ts → models-Bz990hcd.d.ts} +193 -1
- package/dist/react.d.cts +92 -0
- package/dist/react.d.ts +92 -0
- package/generated/desktop-protocol.schema.json +366 -1
- package/package.json +2 -2
- package/dist/chunk-server-EQCCXWD7.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_-]+$/);
|
|
@@ -1496,6 +1496,36 @@ var AccountAgentsRunsResult = import_zod14.z.strictObject({
|
|
|
1496
1496
|
});
|
|
1497
1497
|
var AccountAgentsFavoriteParams = import_zod14.z.strictObject({ agent_id: AccountRowId, favorite: import_zod14.z.boolean() });
|
|
1498
1498
|
var AccountAgentsFavoriteResult = import_zod14.z.strictObject({ favorite: import_zod14.z.boolean() });
|
|
1499
|
+
var AccountAgentVersion = import_zod14.z.strictObject({
|
|
1500
|
+
version_id: AccountRowId,
|
|
1501
|
+
version_number: import_zod14.z.int().min(1),
|
|
1502
|
+
changed_at_ms: epochMs,
|
|
1503
|
+
/** The change note the person wrote when saving, when they wrote one. */
|
|
1504
|
+
note: import_zod14.z.string().max(1e3).nullable()
|
|
1505
|
+
});
|
|
1506
|
+
var AccountAgentsVersionsParams = import_zod14.z.strictObject({
|
|
1507
|
+
agent_id: AccountRowId,
|
|
1508
|
+
offset: import_zod14.z.int().min(0).max(1e5).optional(),
|
|
1509
|
+
limit: import_zod14.z.int().min(1).max(200).optional()
|
|
1510
|
+
});
|
|
1511
|
+
var AccountAgentsVersionsResult = import_zod14.z.strictObject({
|
|
1512
|
+
state: AccountReadState,
|
|
1513
|
+
problem: import_zod14.z.string().max(300).nullable(),
|
|
1514
|
+
/** The version the agent is at now (null: no saved version yet). */
|
|
1515
|
+
current_version: import_zod14.z.int().min(1).nullable(),
|
|
1516
|
+
rows: import_zod14.z.array(AccountAgentVersion).max(200)
|
|
1517
|
+
});
|
|
1518
|
+
var AccountAgentsVersionDiffParams = import_zod14.z.strictObject({ agent_id: AccountRowId, version_number: import_zod14.z.int().min(1) });
|
|
1519
|
+
var AccountAgentsVersionDiffResult = import_zod14.z.strictObject({
|
|
1520
|
+
state: AccountReadState,
|
|
1521
|
+
problem: import_zod14.z.string().max(300).nullable(),
|
|
1522
|
+
version_number: import_zod14.z.int().min(1),
|
|
1523
|
+
current_version: import_zod14.z.int().min(1).nullable(),
|
|
1524
|
+
old: import_zod14.z.record(import_zod14.z.string().max(200), import_zod14.z.unknown()).nullable(),
|
|
1525
|
+
current: import_zod14.z.record(import_zod14.z.string().max(200), import_zod14.z.unknown()).nullable()
|
|
1526
|
+
});
|
|
1527
|
+
var AccountAgentsRestoreVersionParams = import_zod14.z.strictObject({ agent_id: AccountRowId, version_number: import_zod14.z.int().min(1) });
|
|
1528
|
+
var AccountAgentsRestoreVersionResult = import_zod14.z.strictObject({ restored_version: import_zod14.z.int().min(1) });
|
|
1499
1529
|
var VaultItemKind = import_zod14.z.enum(["login", "passkey", "key", "other"]);
|
|
1500
1530
|
var VaultFieldSummary = import_zod14.z.strictObject({
|
|
1501
1531
|
key: import_zod14.z.string().min(1).max(120),
|
|
@@ -1715,6 +1745,8 @@ var WindowInfo = import_zod18.z.strictObject({
|
|
|
1715
1745
|
var WindowListParams = import_zod18.z.strictObject({
|
|
1716
1746
|
/** Case-insensitive substring of the window title. */
|
|
1717
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(),
|
|
1718
1750
|
limit: import_zod18.z.int().min(1).max(500).default(100)
|
|
1719
1751
|
});
|
|
1720
1752
|
var WindowListResult = import_zod18.z.strictObject({
|
|
@@ -1734,8 +1766,17 @@ var WindowMoveParams = import_zod18.z.strictObject({
|
|
|
1734
1766
|
height: import_zod18.z.int().min(50).max(16384).optional()
|
|
1735
1767
|
});
|
|
1736
1768
|
var WindowMoveResult = import_zod18.z.strictObject({ window: WindowInfo });
|
|
1737
|
-
var
|
|
1738
|
-
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
|
+
});
|
|
1739
1780
|
|
|
1740
1781
|
// src/schema/input.ts
|
|
1741
1782
|
var import_zod19 = require("zod");
|
|
@@ -1938,16 +1979,27 @@ var AudioRecordParams = import_zod21.z.strictObject({
|
|
|
1938
1979
|
/** The microphone (from audio.devices); the default input when absent. */
|
|
1939
1980
|
device_id: import_zod21.z.string().min(1).max(256).optional(),
|
|
1940
1981
|
/** Where the WAV file goes; a new file in the temp folder when absent. */
|
|
1941
|
-
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()
|
|
1942
1987
|
});
|
|
1943
1988
|
var AudioRecordResult = import_zod21.z.strictObject({
|
|
1944
1989
|
path: AbsPath,
|
|
1945
1990
|
seconds: import_zod21.z.number().min(0),
|
|
1946
1991
|
bytes: nonNegInt,
|
|
1947
1992
|
/** Loudest sample, 0–1: 0 means the device gave silence. */
|
|
1948
|
-
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()
|
|
1949
2002
|
});
|
|
1950
|
-
var AudioPlayParams = import_zod21.z.strictObject({ path: AbsPath });
|
|
1951
2003
|
var AudioPlayResult = import_zod21.z.strictObject({ path: AbsPath, seconds: import_zod21.z.number().min(0) });
|
|
1952
2004
|
var AudioLevelsParams = import_zod21.z.strictObject({});
|
|
1953
2005
|
var AudioLevelsResult = import_zod21.z.strictObject({
|
|
@@ -2544,6 +2596,8 @@ var CodingTranscriptItem = import_zod28.z.discriminatedUnion("kind", [
|
|
|
2544
2596
|
}),
|
|
2545
2597
|
import_zod28.z.strictObject({ kind: import_zod28.z.literal("usage"), usage: CodingRunUsage, costUsd: import_zod28.z.number().nullable() }),
|
|
2546
2598
|
import_zod28.z.strictObject({ kind: import_zod28.z.literal("notice"), id: import_zod28.z.string().max(200), level: import_zod28.z.enum(["info", "warning"]), text: import_zod28.z.string() }),
|
|
2599
|
+
/** "Continue on <account>": the line across the transcript where the chat moved from `from`. */
|
|
2600
|
+
import_zod28.z.strictObject({ kind: import_zod28.z.literal("continued"), id: import_zod28.z.string().max(200), from: import_zod28.z.string().max(300), text: import_zod28.z.string(), at: IsoTime.nullable() }),
|
|
2547
2601
|
import_zod28.z.strictObject({ kind: import_zod28.z.literal("error"), id: import_zod28.z.string().max(200), text: import_zod28.z.string() })
|
|
2548
2602
|
]);
|
|
2549
2603
|
var CodingHistoryRecord = import_zod28.z.strictObject({
|
|
@@ -4688,6 +4742,9 @@ var OPS = {
|
|
|
4688
4742
|
"account.agents.get": { params: AccountAgentsGetParams, result: AccountAgentsGetResult, kind: "unary", since: "1.39", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4689
4743
|
"account.agents.runs": { params: AccountAgentsRunsParams, result: AccountAgentsRunsResult, kind: "unary", since: "1.39", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4690
4744
|
"account.agents.favorite": { params: AccountAgentsFavoriteParams, result: AccountAgentsFavoriteResult, kind: "unary", since: "1.39", errors: ["AUTH_REQUIRED", "NOT_FOUND", "INVALID_PARAMS", "DEVICE_OFFLINE", "INTERNAL"] },
|
|
4745
|
+
"account.agents.versions": { params: AccountAgentsVersionsParams, result: AccountAgentsVersionsResult, kind: "unary", since: "1.64", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4746
|
+
"account.agents.version_diff": { params: AccountAgentsVersionDiffParams, result: AccountAgentsVersionDiffResult, kind: "unary", since: "1.64", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4747
|
+
"account.agents.restore_version": { params: AccountAgentsRestoreVersionParams, result: AccountAgentsRestoreVersionResult, kind: "unary", since: "1.64", errors: ["AUTH_REQUIRED", "NOT_FOUND", "INVALID_PARAMS", "DEVICE_OFFLINE", "INTERNAL"] },
|
|
4691
4748
|
// 1.26: the app's own update (it installs only once every window quit) and bringing the windows back.
|
|
4692
4749
|
"apps.windows.update_state": { params: AppsWindowsUpdateStateParams, result: AppsWindowsUpdateStateResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4693
4750
|
"apps.windows.reopen": { params: AppsWindowsReopenParams, result: AppsWindowsReopenResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|