@ai-matrx/desktop-protocol 0.21.62 → 0.21.64
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 +17 -1
- package/dist/{chunk-server-EQCCXWD7.js → chunk-server-B5W6NL7W.js} +64 -2
- package/dist/chunk-server-B5W6NL7W.js.map +1 -0
- package/dist/client.cjs +36 -1
- 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 +64 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +104 -6
- package/dist/index.d.ts +104 -6
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-yHB4kGxD.d.cts → models-B13QkIMu.d.cts} +156 -1
- package/dist/{models-yHB4kGxD.d.ts → models-B13QkIMu.d.ts} +156 -1
- package/dist/react.d.cts +76 -0
- package/dist/react.d.ts +76 -0
- package/generated/desktop-protocol.schema.json +302 -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 = 65;
|
|
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),
|
|
@@ -2544,6 +2574,8 @@ var CodingTranscriptItem = import_zod28.z.discriminatedUnion("kind", [
|
|
|
2544
2574
|
}),
|
|
2545
2575
|
import_zod28.z.strictObject({ kind: import_zod28.z.literal("usage"), usage: CodingRunUsage, costUsd: import_zod28.z.number().nullable() }),
|
|
2546
2576
|
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() }),
|
|
2577
|
+
/** "Continue on <account>": the line across the transcript where the chat moved from `from`. */
|
|
2578
|
+
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
2579
|
import_zod28.z.strictObject({ kind: import_zod28.z.literal("error"), id: import_zod28.z.string().max(200), text: import_zod28.z.string() })
|
|
2548
2580
|
]);
|
|
2549
2581
|
var CodingHistoryRecord = import_zod28.z.strictObject({
|
|
@@ -4688,6 +4720,9 @@ var OPS = {
|
|
|
4688
4720
|
"account.agents.get": { params: AccountAgentsGetParams, result: AccountAgentsGetResult, kind: "unary", since: "1.39", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4689
4721
|
"account.agents.runs": { params: AccountAgentsRunsParams, result: AccountAgentsRunsResult, kind: "unary", since: "1.39", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4690
4722
|
"account.agents.favorite": { params: AccountAgentsFavoriteParams, result: AccountAgentsFavoriteResult, kind: "unary", since: "1.39", errors: ["AUTH_REQUIRED", "NOT_FOUND", "INVALID_PARAMS", "DEVICE_OFFLINE", "INTERNAL"] },
|
|
4723
|
+
"account.agents.versions": { params: AccountAgentsVersionsParams, result: AccountAgentsVersionsResult, kind: "unary", since: "1.64", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4724
|
+
"account.agents.version_diff": { params: AccountAgentsVersionDiffParams, result: AccountAgentsVersionDiffResult, kind: "unary", since: "1.64", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4725
|
+
"account.agents.restore_version": { params: AccountAgentsRestoreVersionParams, result: AccountAgentsRestoreVersionResult, kind: "unary", since: "1.64", errors: ["AUTH_REQUIRED", "NOT_FOUND", "INVALID_PARAMS", "DEVICE_OFFLINE", "INTERNAL"] },
|
|
4691
4726
|
// 1.26: the app's own update (it installs only once every window quit) and bringing the windows back.
|
|
4692
4727
|
"apps.windows.update_state": { params: AppsWindowsUpdateStateParams, result: AppsWindowsUpdateStateResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4693
4728
|
"apps.windows.reopen": { params: AppsWindowsReopenParams, result: AppsWindowsReopenResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|