@ai-matrx/desktop-protocol 0.21.61 → 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 +31 -1
- package/dist/{chunk-server-OQM4XFUL.js → chunk-server-B5W6NL7W.js} +81 -5
- package/dist/chunk-server-B5W6NL7W.js.map +1 -0
- package/dist/client.cjs +49 -3
- 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 +81 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +136 -6
- package/dist/index.d.ts +136 -6
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-DbcCVlya.d.cts → models-B13QkIMu.d.cts} +191 -1
- package/dist/{models-DbcCVlya.d.ts → models-B13QkIMu.d.ts} +191 -1
- package/dist/react.d.cts +88 -0
- package/dist/react.d.ts +88 -0
- package/generated/desktop-protocol.schema.json +325 -2
- package/package.json +2 -2
- package/dist/chunk-server-OQM4XFUL.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({
|
|
@@ -3067,7 +3099,13 @@ var ChatRow = import_zod30.z.strictObject({
|
|
|
3067
3099
|
/** 1.61: where the title shows (the title facet's sync state for this chat's app). */
|
|
3068
3100
|
title_sync: ChatTitleSync.optional(),
|
|
3069
3101
|
/** 1.62: every Move and Copy of this chat between instances, newest first (absent = never moved or copied). */
|
|
3070
|
-
moved: import_zod30.z.array(ChatMove).max(50).optional()
|
|
3102
|
+
moved: import_zod30.z.array(ChatMove).max(50).optional(),
|
|
3103
|
+
/**
|
|
3104
|
+
* 1.63: the instance the chat belongs to: the one whose folder holds it (read only; nothing is
|
|
3105
|
+
* moved). Claude: the side window holding its newest record copy (main mirrors every window), else
|
|
3106
|
+
* main; Codex: the home whose database holds it. Absent = only Matrx's holder keeps it.
|
|
3107
|
+
*/
|
|
3108
|
+
home: ChatPlace.optional()
|
|
3071
3109
|
});
|
|
3072
3110
|
var ChatFamily = import_zod30.z.strictObject({
|
|
3073
3111
|
id: ChatId,
|
|
@@ -3607,6 +3645,7 @@ var AppInstall = import_zod32.z.strictObject({
|
|
|
3607
3645
|
location: import_zod32.z.string().max(1024),
|
|
3608
3646
|
version: import_zod32.z.string().max(80).nullable()
|
|
3609
3647
|
});
|
|
3648
|
+
var InstanceGap = import_zod32.z.enum(["account", "email", "version"]);
|
|
3610
3649
|
var AppInstance = import_zod32.z.strictObject({
|
|
3611
3650
|
app_key: AppKey,
|
|
3612
3651
|
/** "main", or the instance's name: the same key every window action takes. */
|
|
@@ -3632,7 +3671,9 @@ var AppInstance = import_zod32.z.strictObject({
|
|
|
3632
3671
|
open_chats: nonNegInt,
|
|
3633
3672
|
launched_ms: epochMs.nullable(),
|
|
3634
3673
|
quit_ms: epochMs.nullable(),
|
|
3635
|
-
first_launch_ms: epochMs.nullable()
|
|
3674
|
+
first_launch_ms: epochMs.nullable(),
|
|
3675
|
+
/** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
|
|
3676
|
+
missing: import_zod32.z.array(InstanceGap).max(3).optional()
|
|
3636
3677
|
});
|
|
3637
3678
|
var AccountResetSource = import_zod32.z.enum(["app", "usage_history", "your_list"]);
|
|
3638
3679
|
var AccountGap = import_zod32.z.enum(["email", "plan", "usage"]);
|
|
@@ -4679,6 +4720,9 @@ var OPS = {
|
|
|
4679
4720
|
"account.agents.get": { params: AccountAgentsGetParams, result: AccountAgentsGetResult, kind: "unary", since: "1.39", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4680
4721
|
"account.agents.runs": { params: AccountAgentsRunsParams, result: AccountAgentsRunsResult, kind: "unary", since: "1.39", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4681
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"] },
|
|
4682
4726
|
// 1.26: the app's own update (it installs only once every window quit) and bringing the windows back.
|
|
4683
4727
|
"apps.windows.update_state": { params: AppsWindowsUpdateStateParams, result: AppsWindowsUpdateStateResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4684
4728
|
"apps.windows.reopen": { params: AppsWindowsReopenParams, result: AppsWindowsReopenResult, kind: "unary", since: "1.26", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -4805,6 +4849,8 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
4805
4849
|
// 1.60: each closed window's reopen outcome in a restart_verify copy.
|
|
4806
4850
|
["apps.chats.copy_to_account", [["restart", "CopyRestart"]]],
|
|
4807
4851
|
["apps.windows.list", [["windows", "AppWindowInfo"]]],
|
|
4852
|
+
// 1.63: what an instance record still lacks.
|
|
4853
|
+
["apps.instances.list", [["instances", "AppInstance"]]],
|
|
4808
4854
|
["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
|
|
4809
4855
|
["coding.providers", [["providers", "CodingProviderStatus"]]],
|
|
4810
4856
|
// 1.57: the account a coding record belongs to.
|