@ai-matrx/desktop-protocol 0.21.50 → 0.21.52
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 +25 -1
- package/dist/client.cjs +99 -18
- 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 +99 -18
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +146 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +375 -6
- package/dist/index.d.ts +375 -6
- package/dist/index.js +146 -27
- package/dist/index.js.map +1 -1
- package/dist/{models-CqgbnWpk.d.cts → models--9189VUC.d.cts} +522 -1
- package/dist/{models-CqgbnWpk.d.ts → models--9189VUC.d.ts} +522 -1
- package/dist/react.d.cts +214 -0
- package/dist/react.d.ts +214 -0
- package/generated/desktop-protocol.schema.json +456 -78
- 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 = 57;
|
|
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";
|
|
@@ -3325,7 +3331,12 @@ var CodingSessionRecord = z34.strictObject({
|
|
|
3325
3331
|
lastRunStatus: CodingRunStatus.nullable(),
|
|
3326
3332
|
queued: z34.array(z34.string().max(1048576)).max(100),
|
|
3327
3333
|
agent: CodingSessionAgent.nullable(),
|
|
3328
|
-
agentRemovedDue: z34.boolean()
|
|
3334
|
+
agentRemovedDue: z34.boolean(),
|
|
3335
|
+
/**
|
|
3336
|
+
* (1.57) Claude Code: the account the record belongs to (Accounts' profile id): the one a session
|
|
3337
|
+
* runs as, or whose config directory holds the chat. Absent: the default sign-in.
|
|
3338
|
+
*/
|
|
3339
|
+
accountId: z34.string().min(1).max(64).optional()
|
|
3329
3340
|
});
|
|
3330
3341
|
var CodingActiveElsewhere = z34.strictObject({
|
|
3331
3342
|
reason: z34.enum(["process", "recent-write", "open-tool-call", "open"]),
|
|
@@ -3347,7 +3358,12 @@ var CodingDiscoveredChat = z34.strictObject({
|
|
|
3347
3358
|
unavailable: ShortText.nullable(),
|
|
3348
3359
|
updatedAt: IsoTime,
|
|
3349
3360
|
source: z34.string().max(60).nullable(),
|
|
3350
|
-
activeElsewhere: CodingActiveElsewhere.nullable()
|
|
3361
|
+
activeElsewhere: CodingActiveElsewhere.nullable(),
|
|
3362
|
+
/**
|
|
3363
|
+
* (1.57) Claude Code: the account the record belongs to (Accounts' profile id): the one a session
|
|
3364
|
+
* runs as, or whose config directory holds the chat. Absent: the default sign-in.
|
|
3365
|
+
*/
|
|
3366
|
+
accountId: z34.string().min(1).max(64).optional()
|
|
3351
3367
|
});
|
|
3352
3368
|
var CodingTranscriptItem = z34.discriminatedUnion("kind", [
|
|
3353
3369
|
z34.strictObject({ kind: z34.literal("user"), id: z34.string().max(200), text: z34.string(), at: IsoTime.nullable() }),
|
|
@@ -3387,6 +3403,31 @@ var CodingProviderProblem = z34.strictObject({
|
|
|
3387
3403
|
until: z34.string().max(120).nullable(),
|
|
3388
3404
|
at: IsoTime
|
|
3389
3405
|
});
|
|
3406
|
+
var CodingAccountUsage = z34.strictObject({
|
|
3407
|
+
windows: z34.array(CodingQuotaWindow).max(20),
|
|
3408
|
+
/** The provider's own status word ("allowed", "allowed_warning", "rejected"...), when it gives one. */
|
|
3409
|
+
status: z34.string().max(60).nullable(),
|
|
3410
|
+
/** When a rejected status lifts (ISO), when the provider says. */
|
|
3411
|
+
resetsAt: z34.string().max(80).nullable(),
|
|
3412
|
+
at: IsoTime
|
|
3413
|
+
});
|
|
3414
|
+
var CodingContinueTarget = z34.strictObject({
|
|
3415
|
+
accountId: z34.string().min(1).max(64).nullable(),
|
|
3416
|
+
label: z34.string().max(200)
|
|
3417
|
+
});
|
|
3418
|
+
var CodingProviderAccount = z34.strictObject({
|
|
3419
|
+
id: z34.string().min(1).max(64),
|
|
3420
|
+
label: z34.string().max(200),
|
|
3421
|
+
/** (1.57) No known usage limit or expired sign-in on this account. Absent: not read. */
|
|
3422
|
+
ready: z34.boolean().optional(),
|
|
3423
|
+
lastProblem: CodingProviderProblem.optional(),
|
|
3424
|
+
problem: ShortText.optional(),
|
|
3425
|
+
fix: ShortText.optional(),
|
|
3426
|
+
/** (1.57) Absent: never seen ("No usage data yet"). */
|
|
3427
|
+
usage: CodingAccountUsage.optional(),
|
|
3428
|
+
/** (1.57) This account is limited and that other one is not: "Continue on <label>". */
|
|
3429
|
+
continueOn: CodingContinueTarget.optional()
|
|
3430
|
+
});
|
|
3390
3431
|
var CodingProviderBinary = z34.strictObject({
|
|
3391
3432
|
path: LocalPath,
|
|
3392
3433
|
version: z34.string().max(80).nullable(),
|
|
@@ -3423,9 +3464,13 @@ var CodingProviderStatus = z34.strictObject({
|
|
|
3423
3464
|
* can use, as the computer's engine lists them; New session offers them beside the default sign-in.
|
|
3424
3465
|
* Absent: only the default sign-in (or a computer older than 1.53).
|
|
3425
3466
|
*/
|
|
3426
|
-
accounts: z34.array(
|
|
3467
|
+
accounts: z34.array(CodingProviderAccount).max(100).optional(),
|
|
3427
3468
|
/** (1.53) The computer tried to list `accounts` and could not: a short sentence the form shows with a retry. */
|
|
3428
|
-
accountsProblem: ShortText.optional()
|
|
3469
|
+
accountsProblem: ShortText.optional(),
|
|
3470
|
+
/** (1.57) The default sign-in's usage as last seen. Absent: never seen ("No usage data yet"). */
|
|
3471
|
+
usage: CodingAccountUsage.optional(),
|
|
3472
|
+
/** (1.57) The default sign-in is limited and this other account is not: "Continue on <label>". */
|
|
3473
|
+
continueOn: CodingContinueTarget.optional()
|
|
3429
3474
|
});
|
|
3430
3475
|
var CodingChatPreference = z34.strictObject({
|
|
3431
3476
|
title: z34.string().max(500).nullable(),
|
|
@@ -3452,7 +3497,12 @@ var CodingRecentRow = z34.strictObject({
|
|
|
3452
3497
|
state: z34.enum(["running", "needs_attention", "new_output", "elsewhere", "idle"]),
|
|
3453
3498
|
stateLabel: z34.string().max(120).nullable(),
|
|
3454
3499
|
pinned: z34.boolean(),
|
|
3455
|
-
startedBy: CodingStartedBy.nullable()
|
|
3500
|
+
startedBy: CodingStartedBy.nullable(),
|
|
3501
|
+
/**
|
|
3502
|
+
* (1.57) Claude Code: the account the record belongs to (Accounts' profile id): the one a session
|
|
3503
|
+
* runs as, or whose config directory holds the chat. Absent: the default sign-in.
|
|
3504
|
+
*/
|
|
3505
|
+
accountId: z34.string().min(1).max(64).optional()
|
|
3456
3506
|
});
|
|
3457
3507
|
var CodingFolderCheck = z34.strictObject({
|
|
3458
3508
|
path: z34.string().max(4096),
|
|
@@ -3547,6 +3597,16 @@ var CodingOptionsSetParams = z34.strictObject({
|
|
|
3547
3597
|
effort: z34.string().max(40).optional()
|
|
3548
3598
|
});
|
|
3549
3599
|
var CodingOptionsSetResult = z34.strictObject({ session: CodingSessionRecord });
|
|
3600
|
+
var CodingAccountContinueParams = z34.strictObject({
|
|
3601
|
+
session_id: SessionKey,
|
|
3602
|
+
account_profile_id: z34.string().min(1).max(64).optional(),
|
|
3603
|
+
client_request_id: CodingClientRequestId
|
|
3604
|
+
});
|
|
3605
|
+
var CodingAccountContinueResult = z34.strictObject({
|
|
3606
|
+
session: CodingSessionRecord,
|
|
3607
|
+
run: CodingRunRecord.nullable(),
|
|
3608
|
+
how: z34.enum(["moved", "fresh"])
|
|
3609
|
+
});
|
|
3550
3610
|
var CodingAgentSetParams = z34.strictObject({ session_id: SessionKey, agent: CodingAgentSelectionParams.optional() });
|
|
3551
3611
|
var CodingAgentSetResult = z34.strictObject({ session: CodingSessionRecord });
|
|
3552
3612
|
var CodingAgentsAccessParams = z34.strictObject({});
|
|
@@ -3575,19 +3635,23 @@ var CodingSearchParams = z34.strictObject({
|
|
|
3575
3635
|
cursor: nonNegInt.optional(),
|
|
3576
3636
|
limit: z34.int().min(1).max(100).optional()
|
|
3577
3637
|
});
|
|
3638
|
+
var CodingSearchHit = z34.strictObject({
|
|
3639
|
+
provider: CodingProviderName,
|
|
3640
|
+
providerSessionId: SessionKey,
|
|
3641
|
+
title: z34.string().max(500),
|
|
3642
|
+
cwd: LocalPath.nullable(),
|
|
3643
|
+
updatedAt: IsoTime,
|
|
3644
|
+
where: z34.enum(["title", "content"]),
|
|
3645
|
+
snippet: z34.string().max(2e3).nullable(),
|
|
3646
|
+
/**
|
|
3647
|
+
* (1.57) Claude Code: the account the record belongs to (Accounts' profile id): the one a session
|
|
3648
|
+
* runs as, or whose config directory holds the chat. Absent: the default sign-in.
|
|
3649
|
+
*/
|
|
3650
|
+
accountId: z34.string().min(1).max(64).optional()
|
|
3651
|
+
});
|
|
3578
3652
|
var CodingSearchResult = z34.strictObject({
|
|
3579
3653
|
query: z34.string().max(500),
|
|
3580
|
-
hits: z34.array(
|
|
3581
|
-
z34.strictObject({
|
|
3582
|
-
provider: CodingProviderName,
|
|
3583
|
-
providerSessionId: SessionKey,
|
|
3584
|
-
title: z34.string().max(500),
|
|
3585
|
-
cwd: LocalPath.nullable(),
|
|
3586
|
-
updatedAt: IsoTime,
|
|
3587
|
-
where: z34.enum(["title", "content"]),
|
|
3588
|
-
snippet: z34.string().max(2e3).nullable()
|
|
3589
|
-
})
|
|
3590
|
-
),
|
|
3654
|
+
hits: z34.array(CodingSearchHit),
|
|
3591
3655
|
scanned: nonNegInt,
|
|
3592
3656
|
total: nonNegInt,
|
|
3593
3657
|
nextCursor: nonNegInt.nullable()
|
|
@@ -4484,6 +4548,10 @@ var OPS = {
|
|
|
4484
4548
|
// 1.47: instances and accounts kept apart — an account's usage is the account's, every instance shows it by id.
|
|
4485
4549
|
"apps.instances.list": { params: AppsInstancesListParams, result: AppsInstancesListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4486
4550
|
"apps.accounts.list": { params: AppsAccountsListParams, result: AppsAccountsListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4551
|
+
// 1.56: an instance's kept-for account and forgetting it (the app's own tool writes both); every raw fact about one chat.
|
|
4552
|
+
"apps.windows.set_account": { params: AppsWindowsSetAccountParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4553
|
+
"apps.windows.forget": { params: AppsWindowsForgetParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4554
|
+
"apps.chats.probe": { params: AppsChatsProbeParams, result: AppsChatsProbeResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4487
4555
|
"apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4488
4556
|
"apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
4489
4557
|
"apps.projects.import_pins": { params: AppsProjectsImportPinsParams, result: AppsProjectsImportPinsResult, kind: "unary", since: "1.10", errors: ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
@@ -4574,6 +4642,8 @@ var OPS = {
|
|
|
4574
4642
|
"coding.stop": { params: CodingStopParams, result: CodingStopResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "INTERNAL"] },
|
|
4575
4643
|
"coding.stop_elsewhere": { params: CodingStopElsewhereParams, result: CodingStopElsewhereResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "INTERNAL"] },
|
|
4576
4644
|
"coding.options.set": { params: CodingOptionsSetParams, result: CodingOptionsSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"] },
|
|
4645
|
+
// 1.56: "Continue on <account>" — the session moves to another account and its stopped turn is sent again, exactly once.
|
|
4646
|
+
"coding.account.continue": { params: CodingAccountContinueParams, result: CodingAccountContinueResult, kind: "unary", since: "1.56", errors: ["INVALID_PARAMS", "NOT_FOUND", "RESOURCE_BUSY", "AUTH_FORBIDDEN", "INTERNAL"] },
|
|
4577
4647
|
"coding.agent.set": { params: CodingAgentSetParams, result: CodingAgentSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "INTERNAL"] },
|
|
4578
4648
|
"coding.agents.access": { params: CodingAgentsAccessParams, result: CodingAgentsAccessResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
|
|
4579
4649
|
"coding.titles.status": { params: CodingTitlesStatusParams, result: CodingTitlesStatusResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
|
|
@@ -4747,6 +4817,12 @@ var SERVICES = {
|
|
|
4747
4817
|
}
|
|
4748
4818
|
};
|
|
4749
4819
|
var NAMED_SCHEMAS = {
|
|
4820
|
+
AppsWindowsSetAccountParams,
|
|
4821
|
+
AppsWindowsForgetParams,
|
|
4822
|
+
ProbeFact,
|
|
4823
|
+
ProbeSource,
|
|
4824
|
+
AppsChatsProbeParams,
|
|
4825
|
+
AppsChatsProbeResult,
|
|
4750
4826
|
InstanceStatus,
|
|
4751
4827
|
AppInstall,
|
|
4752
4828
|
AppInstance,
|
|
@@ -4925,6 +5001,9 @@ var NAMED_SCHEMAS = {
|
|
|
4925
5001
|
CodingQuotaWindow,
|
|
4926
5002
|
CodingProviderProblem,
|
|
4927
5003
|
CodingProviderBinary,
|
|
5004
|
+
CodingAccountUsage,
|
|
5005
|
+
CodingContinueTarget,
|
|
5006
|
+
CodingProviderAccount,
|
|
4928
5007
|
CodingProviderStatus,
|
|
4929
5008
|
CodingChatPreference,
|
|
4930
5009
|
CodingTitleStatus,
|
|
@@ -4966,6 +5045,8 @@ var NAMED_SCHEMAS = {
|
|
|
4966
5045
|
CodingStopElsewhereResult,
|
|
4967
5046
|
CodingOptionsSetParams,
|
|
4968
5047
|
CodingOptionsSetResult,
|
|
5048
|
+
CodingAccountContinueParams,
|
|
5049
|
+
CodingAccountContinueResult,
|
|
4969
5050
|
CodingAgentSetParams,
|
|
4970
5051
|
CodingAgentSetResult,
|
|
4971
5052
|
CodingAgentsAccessParams,
|
|
@@ -4979,6 +5060,7 @@ var NAMED_SCHEMAS = {
|
|
|
4979
5060
|
CodingRecentSeenParams,
|
|
4980
5061
|
CodingRecentSeenResult,
|
|
4981
5062
|
CodingSearchParams,
|
|
5063
|
+
CodingSearchHit,
|
|
4982
5064
|
CodingSearchResult,
|
|
4983
5065
|
CodingReconcileParams,
|
|
4984
5066
|
CodingReconcileResult,
|
|
@@ -5544,7 +5626,12 @@ var FIELDS_SINCE = {
|
|
|
5544
5626
|
WindowInfo: { app: "1.7", pid: "1.7" },
|
|
5545
5627
|
AppWindowInfo: { remote_control: "1.50" },
|
|
5546
5628
|
WindowRemoteControl: { problem: "1.52" },
|
|
5547
|
-
CodingProviderStatus: { accounts: "1.53", accountsProblem: "1.53" },
|
|
5629
|
+
CodingProviderStatus: { accounts: "1.53", accountsProblem: "1.53", usage: "1.57", continueOn: "1.57" },
|
|
5630
|
+
CodingProviderAccount: { ready: "1.57", lastProblem: "1.57", problem: "1.57", fix: "1.57", usage: "1.57", continueOn: "1.57" },
|
|
5631
|
+
CodingSessionRecord: { accountId: "1.57" },
|
|
5632
|
+
CodingDiscoveredChat: { accountId: "1.57" },
|
|
5633
|
+
CodingRecentRow: { accountId: "1.57" },
|
|
5634
|
+
CodingSearchHit: { accountId: "1.57" },
|
|
5548
5635
|
AppsInstancesListParams: { fresh: "1.51" },
|
|
5549
5636
|
AppsInstancesListResult: { as_of_ms: "1.51", refreshing: "1.51" },
|
|
5550
5637
|
AppsAccountsListParams: { fresh: "1.51" },
|
|
@@ -5681,7 +5768,18 @@ var NESTED_RESULTS = /* @__PURE__ */ new Map([
|
|
|
5681
5768
|
["apps.projects.to_window", [["group", "ProjectMoveGroup"]]],
|
|
5682
5769
|
["apps.windows.list", [["windows", "AppWindowInfo"]]],
|
|
5683
5770
|
["apps.windows.set_remote_control", [["remote_control", "WindowRemoteControl"]]],
|
|
5684
|
-
["coding.providers", [["providers", "CodingProviderStatus"]]]
|
|
5771
|
+
["coding.providers", [["providers", "CodingProviderStatus"]]],
|
|
5772
|
+
// 1.57: the account a coding record belongs to.
|
|
5773
|
+
["coding.sessions.list", [["sessions", "CodingSessionRecord"], ["recent", "CodingRecentRow"]]],
|
|
5774
|
+
["coding.recent.seen", [["recent", "CodingRecentRow"]]],
|
|
5775
|
+
["coding.discover", [["chats", "CodingDiscoveredChat"]]],
|
|
5776
|
+
["coding.search", [["hits", "CodingSearchHit"]]],
|
|
5777
|
+
["coding.start", [["session", "CodingSessionRecord"]]],
|
|
5778
|
+
["coding.send", [["session", "CodingSessionRecord"]]],
|
|
5779
|
+
["coding.takeover", [["session", "CodingSessionRecord"]]],
|
|
5780
|
+
["coding.options.set", [["session", "CodingSessionRecord"]]],
|
|
5781
|
+
["coding.agent.set", [["session", "CodingSessionRecord"]]],
|
|
5782
|
+
["coding.account.continue", [["session", "CodingSessionRecord"]]]
|
|
5685
5783
|
]);
|
|
5686
5784
|
function stripNested(value, nested, version) {
|
|
5687
5785
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
|
|
@@ -5717,15 +5815,24 @@ function windowListRemoteControlForPeer(value, version) {
|
|
|
5717
5815
|
});
|
|
5718
5816
|
return next.some((w, i) => w !== windows[i]) ? { ...body, windows: next } : value;
|
|
5719
5817
|
}
|
|
5720
|
-
function
|
|
5721
|
-
if (knows(version, "1.
|
|
5818
|
+
function providersForPeer(value, version) {
|
|
5819
|
+
if (knows(version, "1.57") || value === null || typeof value !== "object") return value;
|
|
5722
5820
|
const body = value;
|
|
5723
5821
|
if (!Array.isArray(body.providers)) return value;
|
|
5724
5822
|
const providers = body.providers;
|
|
5725
5823
|
const next = providers.map((p) => {
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5824
|
+
if (p === null || typeof p !== "object") return p;
|
|
5825
|
+
let out = p;
|
|
5826
|
+
const dm = out.defaultModel;
|
|
5827
|
+
if (!knows(version, "1.54") && dm !== null && typeof dm === "object" && dm.source === "account") {
|
|
5828
|
+
out = { ...out, defaultModel: { ...dm, source: "driver" } };
|
|
5829
|
+
}
|
|
5830
|
+
const accounts = out.accounts;
|
|
5831
|
+
if (Array.isArray(accounts)) {
|
|
5832
|
+
const kept = accounts.map((a) => strip(a, FIELDS_SINCE.CodingProviderAccount, version));
|
|
5833
|
+
if (kept.some((a, i) => a !== accounts[i])) out = { ...out, accounts: kept };
|
|
5834
|
+
}
|
|
5835
|
+
return out;
|
|
5729
5836
|
});
|
|
5730
5837
|
return next.some((p, i) => p !== providers[i]) ? { ...body, providers: next } : value;
|
|
5731
5838
|
}
|
|
@@ -5756,7 +5863,7 @@ function forPeer(op, part, value, version) {
|
|
|
5756
5863
|
const top = path ? strip(known, FIELDS_SINCE[path], version) : known;
|
|
5757
5864
|
const nested = op ? NESTED_RESULTS.get(op) : void 0;
|
|
5758
5865
|
const stripped = nested ? stripNested(top, nested, version) : top;
|
|
5759
|
-
if (op === "coding.providers") return
|
|
5866
|
+
if (op === "coding.providers") return providersForPeer(stripped, version);
|
|
5760
5867
|
return op === "apps.windows.list" ? windowListRemoteControlForPeer(stripped, version) : stripped;
|
|
5761
5868
|
}
|
|
5762
5869
|
if (value === null || typeof value !== "object") return value;
|
|
@@ -5774,7 +5881,7 @@ function forPeer(op, part, value, version) {
|
|
|
5774
5881
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
5775
5882
|
|
|
5776
5883
|
// src/contract.ts
|
|
5777
|
-
var CONTRACT_SHA256 = "
|
|
5884
|
+
var CONTRACT_SHA256 = "ee1d6d3d83bb18a2ed020dbaf3c611b982699f9a9db8d728c38f2c6b8fbf0815";
|
|
5778
5885
|
|
|
5779
5886
|
// src/close-policy.ts
|
|
5780
5887
|
var CLOSE_RULES = {
|
|
@@ -5854,7 +5961,7 @@ var TOOL_CATALOG = [
|
|
|
5854
5961
|
// 1.38, code from anywhere: the person's Claude Code and Codex sessions on this computer. Turning
|
|
5855
5962
|
// either off in Agents › Tools refuses its ops on every relay connection (the existing switch).
|
|
5856
5963
|
{ 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" },
|
|
5964
|
+
{ 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
5965
|
// ── 4. Documents, notes and entities (1.37: the core's `documents` and `notes` owners; desktop_web is the `tools` service) ──
|
|
5859
5966
|
{ 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
5967
|
{ 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 +6330,8 @@ export {
|
|
|
6223
6330
|
AppsChatsOpenParams,
|
|
6224
6331
|
AppsChatsPlaceParams,
|
|
6225
6332
|
AppsChatsPlaceResult,
|
|
6333
|
+
AppsChatsProbeParams,
|
|
6334
|
+
AppsChatsProbeResult,
|
|
6226
6335
|
AppsChatsStarParams,
|
|
6227
6336
|
AppsChatsStarResult,
|
|
6228
6337
|
AppsChatsTitlesCheckParams,
|
|
@@ -6269,6 +6378,7 @@ export {
|
|
|
6269
6378
|
AppsSyncStatusResult,
|
|
6270
6379
|
AppsWindowActionResult,
|
|
6271
6380
|
AppsWindowsAddParams,
|
|
6381
|
+
AppsWindowsForgetParams,
|
|
6272
6382
|
AppsWindowsGroupsParams,
|
|
6273
6383
|
AppsWindowsGroupsResult,
|
|
6274
6384
|
AppsWindowsListParams,
|
|
@@ -6282,6 +6392,7 @@ export {
|
|
|
6282
6392
|
AppsWindowsReopenResult,
|
|
6283
6393
|
AppsWindowsRestartParams,
|
|
6284
6394
|
AppsWindowsSaveNamesParams,
|
|
6395
|
+
AppsWindowsSetAccountParams,
|
|
6285
6396
|
AppsWindowsSetRemoteControlParams,
|
|
6286
6397
|
AppsWindowsSetRemoteControlResult,
|
|
6287
6398
|
AppsWindowsShownParams,
|
|
@@ -6370,6 +6481,9 @@ export {
|
|
|
6370
6481
|
ClipboardWriteResult,
|
|
6371
6482
|
CloseCode,
|
|
6372
6483
|
CloseCodeValue,
|
|
6484
|
+
CodingAccountContinueParams,
|
|
6485
|
+
CodingAccountContinueResult,
|
|
6486
|
+
CodingAccountUsage,
|
|
6373
6487
|
CodingActiveElsewhere,
|
|
6374
6488
|
CodingActivityParams,
|
|
6375
6489
|
CodingActivityResult,
|
|
@@ -6381,6 +6495,7 @@ export {
|
|
|
6381
6495
|
CodingChangedEvent,
|
|
6382
6496
|
CodingChatPreference,
|
|
6383
6497
|
CodingClientRequestId,
|
|
6498
|
+
CodingContinueTarget,
|
|
6384
6499
|
CodingDiscoverParams,
|
|
6385
6500
|
CodingDiscoverResult,
|
|
6386
6501
|
CodingDiscoveredChat,
|
|
@@ -6413,6 +6528,7 @@ export {
|
|
|
6413
6528
|
CodingPrefsListResult,
|
|
6414
6529
|
CodingPrefsSetParams,
|
|
6415
6530
|
CodingPrefsSetResult,
|
|
6531
|
+
CodingProviderAccount,
|
|
6416
6532
|
CodingProviderBinary,
|
|
6417
6533
|
CodingProviderName,
|
|
6418
6534
|
CodingProviderProblem,
|
|
@@ -6431,6 +6547,7 @@ export {
|
|
|
6431
6547
|
CodingRunUsage,
|
|
6432
6548
|
CodingRunsListParams,
|
|
6433
6549
|
CodingRunsListResult,
|
|
6550
|
+
CodingSearchHit,
|
|
6434
6551
|
CodingSearchParams,
|
|
6435
6552
|
CodingSearchResult,
|
|
6436
6553
|
CodingSendParams,
|
|
@@ -6758,6 +6875,8 @@ export {
|
|
|
6758
6875
|
PowerPreventSleepResult,
|
|
6759
6876
|
PowerStatusParams,
|
|
6760
6877
|
PowerStatusResult,
|
|
6878
|
+
ProbeFact,
|
|
6879
|
+
ProbeSource,
|
|
6761
6880
|
ProcInfo,
|
|
6762
6881
|
ProcKillParams,
|
|
6763
6882
|
ProcKillResult,
|