@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.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { UUID_SHAPE_PATTERN } from "@ai-matrx/kit/uuid";
|
|
4
4
|
var PROTOCOL_MAJOR = 1;
|
|
5
|
-
var PROTOCOL_MINOR =
|
|
5
|
+
var PROTOCOL_MINOR = 56;
|
|
6
6
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
7
7
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
8
8
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1948,6 +1948,12 @@ var AppsAccountsListResult = z15.strictObject({
|
|
|
1948
1948
|
as_of_ms: epochMs.optional(),
|
|
1949
1949
|
refreshing: z15.boolean().optional()
|
|
1950
1950
|
});
|
|
1951
|
+
var AppsWindowsSetAccountParams = z15.strictObject({ app_key: AppKey, window: ChatPlace, email: z15.string().min(3).max(320) });
|
|
1952
|
+
var AppsWindowsForgetParams = z15.strictObject({ app_key: AppKey, window: ChatPlace });
|
|
1953
|
+
var ProbeFact = z15.strictObject({ key: z15.string().max(200), value: z15.string().max(2e3) });
|
|
1954
|
+
var ProbeSource = z15.strictObject({ source: z15.string().max(120), instance: z15.string().max(64).nullable(), facts: z15.array(ProbeFact).max(500) });
|
|
1955
|
+
var AppsChatsProbeParams = z15.strictObject({ app_key: AppKey, chat_id: z15.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/) });
|
|
1956
|
+
var AppsChatsProbeResult = z15.strictObject({ app_key: AppKey, chat_id: z15.string().max(128), sources: z15.array(ProbeSource).max(200) });
|
|
1951
1957
|
|
|
1952
1958
|
// src/schema/service.ts
|
|
1953
1959
|
import { z as z16 } from "zod";
|
|
@@ -3547,6 +3553,16 @@ var CodingOptionsSetParams = z34.strictObject({
|
|
|
3547
3553
|
effort: z34.string().max(40).optional()
|
|
3548
3554
|
});
|
|
3549
3555
|
var CodingOptionsSetResult = z34.strictObject({ session: CodingSessionRecord });
|
|
3556
|
+
var CodingAccountContinueParams = z34.strictObject({
|
|
3557
|
+
session_id: SessionKey,
|
|
3558
|
+
account_profile_id: z34.string().min(1).max(64).optional(),
|
|
3559
|
+
client_request_id: CodingClientRequestId
|
|
3560
|
+
});
|
|
3561
|
+
var CodingAccountContinueResult = z34.strictObject({
|
|
3562
|
+
session: CodingSessionRecord,
|
|
3563
|
+
run: CodingRunRecord.nullable(),
|
|
3564
|
+
how: z34.enum(["moved", "fresh"])
|
|
3565
|
+
});
|
|
3550
3566
|
var CodingAgentSetParams = z34.strictObject({ session_id: SessionKey, agent: CodingAgentSelectionParams.optional() });
|
|
3551
3567
|
var CodingAgentSetResult = z34.strictObject({ session: CodingSessionRecord });
|
|
3552
3568
|
var CodingAgentsAccessParams = z34.strictObject({});
|
|
@@ -4484,6 +4500,10 @@ var OPS = {
|
|
|
4484
4500
|
// 1.47: instances and accounts kept apart — an account's usage is the account's, every instance shows it by id.
|
|
4485
4501
|
"apps.instances.list": { params: AppsInstancesListParams, result: AppsInstancesListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4486
4502
|
"apps.accounts.list": { params: AppsAccountsListParams, result: AppsAccountsListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4503
|
+
// 1.56: an instance's kept-for account and forgetting it (the app's own tool writes both); every raw fact about one chat.
|
|
4504
|
+
"apps.windows.set_account": { params: AppsWindowsSetAccountParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4505
|
+
"apps.windows.forget": { params: AppsWindowsForgetParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4506
|
+
"apps.chats.probe": { params: AppsChatsProbeParams, result: AppsChatsProbeResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4487
4507
|
"apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4488
4508
|
"apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4489
4509
|
"apps.projects.import_pins": { params: AppsProjectsImportPinsParams, result: AppsProjectsImportPinsResult, kind: "unary", since: "1.10", errors: ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -4574,6 +4594,8 @@ var OPS = {
|
|
|
4574
4594
|
"coding.stop": { params: CodingStopParams, result: CodingStopResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4575
4595
|
"coding.stop_elsewhere": { params: CodingStopElsewhereParams, result: CodingStopElsewhereResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "INTERNAL"] },
|
|
4576
4596
|
"coding.options.set": { params: CodingOptionsSetParams, result: CodingOptionsSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"] },
|
|
4597
|
+
// 1.56: "Continue on <account>" — the session moves to another account and its stopped turn is sent again, exactly once.
|
|
4598
|
+
"coding.account.continue": { params: CodingAccountContinueParams, result: CodingAccountContinueResult, kind: "unary", since: "1.56", errors: ["INVALID_PARAMS", "NOT_FOUND", "RESOURCE_BUSY", "AUTH_FORBIDDEN", "INTERNAL"] },
|
|
4577
4599
|
"coding.agent.set": { params: CodingAgentSetParams, result: CodingAgentSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "INTERNAL"] },
|
|
4578
4600
|
"coding.agents.access": { params: CodingAgentsAccessParams, result: CodingAgentsAccessResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
|
|
4579
4601
|
"coding.titles.status": { params: CodingTitlesStatusParams, result: CodingTitlesStatusResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
|
|
@@ -4747,6 +4769,12 @@ var SERVICES = {
|
|
|
4747
4769
|
}
|
|
4748
4770
|
};
|
|
4749
4771
|
var NAMED_SCHEMAS = {
|
|
4772
|
+
AppsWindowsSetAccountParams,
|
|
4773
|
+
AppsWindowsForgetParams,
|
|
4774
|
+
ProbeFact,
|
|
4775
|
+
ProbeSource,
|
|
4776
|
+
AppsChatsProbeParams,
|
|
4777
|
+
AppsChatsProbeResult,
|
|
4750
4778
|
InstanceStatus,
|
|
4751
4779
|
AppInstall,
|
|
4752
4780
|
AppInstance,
|
|
@@ -4966,6 +4994,8 @@ var NAMED_SCHEMAS = {
|
|
|
4966
4994
|
CodingStopElsewhereResult,
|
|
4967
4995
|
CodingOptionsSetParams,
|
|
4968
4996
|
CodingOptionsSetResult,
|
|
4997
|
+
CodingAccountContinueParams,
|
|
4998
|
+
CodingAccountContinueResult,
|
|
4969
4999
|
CodingAgentSetParams,
|
|
4970
5000
|
CodingAgentSetResult,
|
|
4971
5001
|
CodingAgentsAccessParams,
|
|
@@ -5774,7 +5804,7 @@ function forPeer(op, part, value, version) {
|
|
|
5774
5804
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
5775
5805
|
|
|
5776
5806
|
// src/contract.ts
|
|
5777
|
-
var CONTRACT_SHA256 = "
|
|
5807
|
+
var CONTRACT_SHA256 = "14b79673133fb1625ab0320921b60ad595de3228bfae1337a73be3ed2d3e5a45";
|
|
5778
5808
|
|
|
5779
5809
|
// src/close-policy.ts
|
|
5780
5810
|
var CLOSE_RULES = {
|
|
@@ -5854,7 +5884,7 @@ var TOOL_CATALOG = [
|
|
|
5854
5884
|
// 1.38, code from anywhere: the person's Claude Code and Codex sessions on this computer. Turning
|
|
5855
5885
|
// either off in Agents › Tools refuses its ops on every relay connection (the existing switch).
|
|
5856
5886
|
{ 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" },
|
|
5857
|
-
{ 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" },
|
|
5887
|
+
{ 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" },
|
|
5858
5888
|
// ── 4. Documents, notes and entities (1.37: the core's `documents` and `notes` owners; desktop_web is the `tools` service) ──
|
|
5859
5889
|
{ 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" },
|
|
5860
5890
|
{ 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" },
|
|
@@ -6223,6 +6253,8 @@ export {
|
|
|
6223
6253
|
AppsChatsOpenParams,
|
|
6224
6254
|
AppsChatsPlaceParams,
|
|
6225
6255
|
AppsChatsPlaceResult,
|
|
6256
|
+
AppsChatsProbeParams,
|
|
6257
|
+
AppsChatsProbeResult,
|
|
6226
6258
|
AppsChatsStarParams,
|
|
6227
6259
|
AppsChatsStarResult,
|
|
6228
6260
|
AppsChatsTitlesCheckParams,
|
|
@@ -6269,6 +6301,7 @@ export {
|
|
|
6269
6301
|
AppsSyncStatusResult,
|
|
6270
6302
|
AppsWindowActionResult,
|
|
6271
6303
|
AppsWindowsAddParams,
|
|
6304
|
+
AppsWindowsForgetParams,
|
|
6272
6305
|
AppsWindowsGroupsParams,
|
|
6273
6306
|
AppsWindowsGroupsResult,
|
|
6274
6307
|
AppsWindowsListParams,
|
|
@@ -6282,6 +6315,7 @@ export {
|
|
|
6282
6315
|
AppsWindowsReopenResult,
|
|
6283
6316
|
AppsWindowsRestartParams,
|
|
6284
6317
|
AppsWindowsSaveNamesParams,
|
|
6318
|
+
AppsWindowsSetAccountParams,
|
|
6285
6319
|
AppsWindowsSetRemoteControlParams,
|
|
6286
6320
|
AppsWindowsSetRemoteControlResult,
|
|
6287
6321
|
AppsWindowsShownParams,
|
|
@@ -6370,6 +6404,8 @@ export {
|
|
|
6370
6404
|
ClipboardWriteResult,
|
|
6371
6405
|
CloseCode,
|
|
6372
6406
|
CloseCodeValue,
|
|
6407
|
+
CodingAccountContinueParams,
|
|
6408
|
+
CodingAccountContinueResult,
|
|
6373
6409
|
CodingActiveElsewhere,
|
|
6374
6410
|
CodingActivityParams,
|
|
6375
6411
|
CodingActivityResult,
|
|
@@ -6758,6 +6794,8 @@ export {
|
|
|
6758
6794
|
PowerPreventSleepResult,
|
|
6759
6795
|
PowerStatusParams,
|
|
6760
6796
|
PowerStatusResult,
|
|
6797
|
+
ProbeFact,
|
|
6798
|
+
ProbeSource,
|
|
6761
6799
|
ProcInfo,
|
|
6762
6800
|
ProcKillParams,
|
|
6763
6801
|
ProcKillResult,
|