@ai-matrx/desktop-protocol 0.21.50 → 0.21.51
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 +9 -1
- package/dist/client.cjs +23 -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 +23 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +41 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -6
- package/dist/index.d.ts +175 -6
- package/dist/index.js +41 -3
- package/dist/index.js.map +1 -1
- package/dist/{models-CqgbnWpk.d.cts → models-pdHTZ3YT.d.cts} +305 -1
- package/dist/{models-CqgbnWpk.d.ts → models-pdHTZ3YT.d.ts} +305 -1
- package/dist/react.d.cts +159 -0
- package/dist/react.d.ts +159 -0
- package/generated/desktop-protocol.schema.json +233 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -73,6 +73,8 @@ __export(src_exports, {
|
|
|
73
73
|
AppsChatsOpenParams: () => AppsChatsOpenParams,
|
|
74
74
|
AppsChatsPlaceParams: () => AppsChatsPlaceParams,
|
|
75
75
|
AppsChatsPlaceResult: () => AppsChatsPlaceResult,
|
|
76
|
+
AppsChatsProbeParams: () => AppsChatsProbeParams,
|
|
77
|
+
AppsChatsProbeResult: () => AppsChatsProbeResult,
|
|
76
78
|
AppsChatsStarParams: () => AppsChatsStarParams,
|
|
77
79
|
AppsChatsStarResult: () => AppsChatsStarResult,
|
|
78
80
|
AppsChatsTitlesCheckParams: () => AppsChatsTitlesCheckParams,
|
|
@@ -119,6 +121,7 @@ __export(src_exports, {
|
|
|
119
121
|
AppsSyncStatusResult: () => AppsSyncStatusResult,
|
|
120
122
|
AppsWindowActionResult: () => AppsWindowActionResult,
|
|
121
123
|
AppsWindowsAddParams: () => AppsWindowsAddParams,
|
|
124
|
+
AppsWindowsForgetParams: () => AppsWindowsForgetParams,
|
|
122
125
|
AppsWindowsGroupsParams: () => AppsWindowsGroupsParams,
|
|
123
126
|
AppsWindowsGroupsResult: () => AppsWindowsGroupsResult,
|
|
124
127
|
AppsWindowsListParams: () => AppsWindowsListParams,
|
|
@@ -132,6 +135,7 @@ __export(src_exports, {
|
|
|
132
135
|
AppsWindowsReopenResult: () => AppsWindowsReopenResult,
|
|
133
136
|
AppsWindowsRestartParams: () => AppsWindowsRestartParams,
|
|
134
137
|
AppsWindowsSaveNamesParams: () => AppsWindowsSaveNamesParams,
|
|
138
|
+
AppsWindowsSetAccountParams: () => AppsWindowsSetAccountParams,
|
|
135
139
|
AppsWindowsSetRemoteControlParams: () => AppsWindowsSetRemoteControlParams,
|
|
136
140
|
AppsWindowsSetRemoteControlResult: () => AppsWindowsSetRemoteControlResult,
|
|
137
141
|
AppsWindowsShownParams: () => AppsWindowsShownParams,
|
|
@@ -220,6 +224,8 @@ __export(src_exports, {
|
|
|
220
224
|
ClipboardWriteResult: () => ClipboardWriteResult,
|
|
221
225
|
CloseCode: () => CloseCode,
|
|
222
226
|
CloseCodeValue: () => CloseCodeValue,
|
|
227
|
+
CodingAccountContinueParams: () => CodingAccountContinueParams,
|
|
228
|
+
CodingAccountContinueResult: () => CodingAccountContinueResult,
|
|
223
229
|
CodingActiveElsewhere: () => CodingActiveElsewhere,
|
|
224
230
|
CodingActivityParams: () => CodingActivityParams,
|
|
225
231
|
CodingActivityResult: () => CodingActivityResult,
|
|
@@ -608,6 +614,8 @@ __export(src_exports, {
|
|
|
608
614
|
PowerPreventSleepResult: () => PowerPreventSleepResult,
|
|
609
615
|
PowerStatusParams: () => PowerStatusParams,
|
|
610
616
|
PowerStatusResult: () => PowerStatusResult,
|
|
617
|
+
ProbeFact: () => ProbeFact,
|
|
618
|
+
ProbeSource: () => ProbeSource,
|
|
611
619
|
ProcInfo: () => ProcInfo,
|
|
612
620
|
ProcKillParams: () => ProcKillParams,
|
|
613
621
|
ProcKillResult: () => ProcKillResult,
|
|
@@ -889,7 +897,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
889
897
|
var import_zod = require("zod");
|
|
890
898
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
891
899
|
var PROTOCOL_MAJOR = 1;
|
|
892
|
-
var PROTOCOL_MINOR =
|
|
900
|
+
var PROTOCOL_MINOR = 56;
|
|
893
901
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
894
902
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
895
903
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -2835,6 +2843,12 @@ var AppsAccountsListResult = import_zod15.z.strictObject({
|
|
|
2835
2843
|
as_of_ms: epochMs.optional(),
|
|
2836
2844
|
refreshing: import_zod15.z.boolean().optional()
|
|
2837
2845
|
});
|
|
2846
|
+
var AppsWindowsSetAccountParams = import_zod15.z.strictObject({ app_key: AppKey, window: ChatPlace, email: import_zod15.z.string().min(3).max(320) });
|
|
2847
|
+
var AppsWindowsForgetParams = import_zod15.z.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
2848
|
+
var ProbeFact = import_zod15.z.strictObject({ key: import_zod15.z.string().max(200), value: import_zod15.z.string().max(2e3) });
|
|
2849
|
+
var ProbeSource = import_zod15.z.strictObject({ source: import_zod15.z.string().max(120), instance: import_zod15.z.string().max(64).nullable(), facts: import_zod15.z.array(ProbeFact).max(500) });
|
|
2850
|
+
var AppsChatsProbeParams = import_zod15.z.strictObject({ app_key: AppKey, chat_id: import_zod15.z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/) });
|
|
2851
|
+
var AppsChatsProbeResult = import_zod15.z.strictObject({ app_key: AppKey, chat_id: import_zod15.z.string().max(128), sources: import_zod15.z.array(ProbeSource).max(200) });
|
|
2838
2852
|
|
|
2839
2853
|
// src/schema/service.ts
|
|
2840
2854
|
var import_zod16 = require("zod");
|
|
@@ -4434,6 +4448,16 @@ var CodingOptionsSetParams = import_zod34.z.strictObject({
|
|
|
4434
4448
|
effort: import_zod34.z.string().max(40).optional()
|
|
4435
4449
|
});
|
|
4436
4450
|
var CodingOptionsSetResult = import_zod34.z.strictObject({ session: CodingSessionRecord });
|
|
4451
|
+
var CodingAccountContinueParams = import_zod34.z.strictObject({
|
|
4452
|
+
session_id: SessionKey,
|
|
4453
|
+
account_profile_id: import_zod34.z.string().min(1).max(64).optional(),
|
|
4454
|
+
client_request_id: CodingClientRequestId
|
|
4455
|
+
});
|
|
4456
|
+
var CodingAccountContinueResult = import_zod34.z.strictObject({
|
|
4457
|
+
session: CodingSessionRecord,
|
|
4458
|
+
run: CodingRunRecord.nullable(),
|
|
4459
|
+
how: import_zod34.z.enum(["moved", "fresh"])
|
|
4460
|
+
});
|
|
4437
4461
|
var CodingAgentSetParams = import_zod34.z.strictObject({ session_id: SessionKey, agent: CodingAgentSelectionParams.optional() });
|
|
4438
4462
|
var CodingAgentSetResult = import_zod34.z.strictObject({ session: CodingSessionRecord });
|
|
4439
4463
|
var CodingAgentsAccessParams = import_zod34.z.strictObject({});
|
|
@@ -5371,6 +5395,10 @@ var OPS = {
|
|
|
5371
5395
|
// 1.47: instances and accounts kept apart — an account's usage is the account's, every instance shows it by id.
|
|
5372
5396
|
"apps.instances.list": { params: AppsInstancesListParams, result: AppsInstancesListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5373
5397
|
"apps.accounts.list": { params: AppsAccountsListParams, result: AppsAccountsListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5398
|
+
// 1.56: an instance's kept-for account and forgetting it (the app's own tool writes both); every raw fact about one chat.
|
|
5399
|
+
"apps.windows.set_account": { params: AppsWindowsSetAccountParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5400
|
+
"apps.windows.forget": { params: AppsWindowsForgetParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5401
|
+
"apps.chats.probe": { params: AppsChatsProbeParams, result: AppsChatsProbeResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5374
5402
|
"apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5375
5403
|
"apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
5376
5404
|
"apps.projects.import_pins": { params: AppsProjectsImportPinsParams, result: AppsProjectsImportPinsResult, kind: "unary", since: "1.10", errors: ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -5461,6 +5489,8 @@ var OPS = {
|
|
|
5461
5489
|
"coding.stop": { params: CodingStopParams, result: CodingStopResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
5462
5490
|
"coding.stop_elsewhere": { params: CodingStopElsewhereParams, result: CodingStopElsewhereResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "INTERNAL"] },
|
|
5463
5491
|
"coding.options.set": { params: CodingOptionsSetParams, result: CodingOptionsSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"] },
|
|
5492
|
+
// 1.56: "Continue on <account>" — the session moves to another account and its stopped turn is sent again, exactly once.
|
|
5493
|
+
"coding.account.continue": { params: CodingAccountContinueParams, result: CodingAccountContinueResult, kind: "unary", since: "1.56", errors: ["INVALID_PARAMS", "NOT_FOUND", "RESOURCE_BUSY", "AUTH_FORBIDDEN", "INTERNAL"] },
|
|
5464
5494
|
"coding.agent.set": { params: CodingAgentSetParams, result: CodingAgentSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "INTERNAL"] },
|
|
5465
5495
|
"coding.agents.access": { params: CodingAgentsAccessParams, result: CodingAgentsAccessResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
|
|
5466
5496
|
"coding.titles.status": { params: CodingTitlesStatusParams, result: CodingTitlesStatusResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
|
|
@@ -5634,6 +5664,12 @@ var SERVICES = {
|
|
|
5634
5664
|
}
|
|
5635
5665
|
};
|
|
5636
5666
|
var NAMED_SCHEMAS = {
|
|
5667
|
+
AppsWindowsSetAccountParams,
|
|
5668
|
+
AppsWindowsForgetParams,
|
|
5669
|
+
ProbeFact,
|
|
5670
|
+
ProbeSource,
|
|
5671
|
+
AppsChatsProbeParams,
|
|
5672
|
+
AppsChatsProbeResult,
|
|
5637
5673
|
InstanceStatus,
|
|
5638
5674
|
AppInstall,
|
|
5639
5675
|
AppInstance,
|
|
@@ -5853,6 +5889,8 @@ var NAMED_SCHEMAS = {
|
|
|
5853
5889
|
CodingStopElsewhereResult,
|
|
5854
5890
|
CodingOptionsSetParams,
|
|
5855
5891
|
CodingOptionsSetResult,
|
|
5892
|
+
CodingAccountContinueParams,
|
|
5893
|
+
CodingAccountContinueResult,
|
|
5856
5894
|
CodingAgentSetParams,
|
|
5857
5895
|
CodingAgentSetResult,
|
|
5858
5896
|
CodingAgentsAccessParams,
|
|
@@ -6661,7 +6699,7 @@ function forPeer(op, part, value, version) {
|
|
|
6661
6699
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
6662
6700
|
|
|
6663
6701
|
// src/contract.ts
|
|
6664
|
-
var CONTRACT_SHA256 = "
|
|
6702
|
+
var CONTRACT_SHA256 = "14b79673133fb1625ab0320921b60ad595de3228bfae1337a73be3ed2d3e5a45";
|
|
6665
6703
|
|
|
6666
6704
|
// src/close-policy.ts
|
|
6667
6705
|
var CLOSE_RULES = {
|
|
@@ -6741,7 +6779,7 @@ var TOOL_CATALOG = [
|
|
|
6741
6779
|
// 1.38, code from anywhere: the person's Claude Code and Codex sessions on this computer. Turning
|
|
6742
6780
|
// either off in Agents › Tools refuses its ops on every relay connection (the existing switch).
|
|
6743
6781
|
{ name: "coding_sessions_read", group: "personal_automation", state: "built", path: "device_op", ops: ["coding.providers", "coding.sessions.list", "coding.discover", "coding.runs.list", "coding.history", "coding.transcript.read", "coding.item.full", "coding.activity", "coding.folders.recent", "coding.folders.check", "coding.agents.access", "coding.titles.status", "coding.prefs.list", "coding.recent.seen", "coding.search", "coding.transcript.raw", "coding.watch", "coding.session.watch"], platforms: ALL, summary: "Claude Code and Codex sessions: list, read live, search, download" },
|
|
6744
|
-
{ name: "coding_sessions_drive", group: "personal_automation", state: "built", path: "device_op", ops: ["coding.start", "coding.takeover", "coding.send", "coding.stop", "coding.stop_elsewhere", "coding.options.set", "coding.agent.set", "coding.folders.create", "coding.prefs.set", "coding.reconcile"], platforms: ALL, summary: "Claude Code and Codex sessions: start, send, stop, take over, rename" },
|
|
6782
|
+
{ name: "coding_sessions_drive", group: "personal_automation", state: "built", path: "device_op", ops: ["coding.start", "coding.takeover", "coding.send", "coding.stop", "coding.stop_elsewhere", "coding.options.set", "coding.account.continue", "coding.agent.set", "coding.folders.create", "coding.prefs.set", "coding.reconcile"], platforms: ALL, summary: "Claude Code and Codex sessions: start, send, stop, take over, rename" },
|
|
6745
6783
|
// ── 4. Documents, notes and entities (1.37: the core's `documents` and `notes` owners; desktop_web is the `tools` service) ──
|
|
6746
6784
|
{ name: "desktop_documents", group: "tools_service", state: "built", path: "device_op", ops: ["documents.pdf_text", "documents.ocr", "documents.image_resize", "documents.office_generate"], platforms: ALL, summary: "PDF text, OCR, images, Word and Excel files" },
|
|
6747
6785
|
{ name: "desktop_web", group: "tools_service", state: "built", path: "device_op", ops: ["web.fetch", "web.scrape", "web.search", "web.fetch_with_browser"], platforms: ALL, summary: "Fetch, scrape and search the web from this computer's own connection" },
|