@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 CHANGED
@@ -1,7 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 0.21.50
3
+ ## 0.21.51
4
4
  ### Unreleased
5
+ ### Protocol 1.56 — Continue on another account, from anywhere
6
+
7
+ - New op `coding.account.continue` ({session_id, account_profile_id?, client_request_id}) →
8
+ {session, run, how: "moved" | "fresh"}: the session moves to another of the person's accounts for
9
+ its app (absent `account_profile_id`: the default sign-in) and the turn a limit or the person
10
+ stopped is sent again there, exactly once per request id. In `coding_sessions_drive`.
11
+ Consumer action: a 1.55 core answers UNKNOWN_OPERATION; say that computer needs an update.
12
+
5
13
  ### Protocol 1.55 — copy chats to another account with their organisation
6
14
 
7
15
  - New op `apps.chats.copy_to_account` ({origin, target, chat_ids, mode, restart, mirror_groups,
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 = 55;
147
+ var PROTOCOL_MINOR = 56;
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_-]+$/);
@@ -2703,6 +2703,16 @@ var CodingOptionsSetParams = import_zod28.z.strictObject({
2703
2703
  effort: import_zod28.z.string().max(40).optional()
2704
2704
  });
2705
2705
  var CodingOptionsSetResult = import_zod28.z.strictObject({ session: CodingSessionRecord });
2706
+ var CodingAccountContinueParams = import_zod28.z.strictObject({
2707
+ session_id: SessionKey,
2708
+ account_profile_id: import_zod28.z.string().min(1).max(64).optional(),
2709
+ client_request_id: CodingClientRequestId
2710
+ });
2711
+ var CodingAccountContinueResult = import_zod28.z.strictObject({
2712
+ session: CodingSessionRecord,
2713
+ run: CodingRunRecord.nullable(),
2714
+ how: import_zod28.z.enum(["moved", "fresh"])
2715
+ });
2706
2716
  var CodingAgentSetParams = import_zod28.z.strictObject({ session_id: SessionKey, agent: CodingAgentSelectionParams.optional() });
2707
2717
  var CodingAgentSetResult = import_zod28.z.strictObject({ session: CodingSessionRecord });
2708
2718
  var CodingAgentsAccessParams = import_zod28.z.strictObject({});
@@ -3583,6 +3593,12 @@ var AppsAccountsListResult = import_zod32.z.strictObject({
3583
3593
  as_of_ms: epochMs.optional(),
3584
3594
  refreshing: import_zod32.z.boolean().optional()
3585
3595
  });
3596
+ var AppsWindowsSetAccountParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace, email: import_zod32.z.string().min(3).max(320) });
3597
+ var AppsWindowsForgetParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace });
3598
+ var ProbeFact = import_zod32.z.strictObject({ key: import_zod32.z.string().max(200), value: import_zod32.z.string().max(2e3) });
3599
+ var ProbeSource = import_zod32.z.strictObject({ source: import_zod32.z.string().max(120), instance: import_zod32.z.string().max(64).nullable(), facts: import_zod32.z.array(ProbeFact).max(500) });
3600
+ var AppsChatsProbeParams = import_zod32.z.strictObject({ app_key: AppKey, chat_id: import_zod32.z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/) });
3601
+ var AppsChatsProbeResult = import_zod32.z.strictObject({ app_key: AppKey, chat_id: import_zod32.z.string().max(128), sources: import_zod32.z.array(ProbeSource).max(200) });
3586
3602
 
3587
3603
  // src/schema/browser.ts
3588
3604
  var import_zod33 = require("zod");
@@ -4429,6 +4445,10 @@ var OPS = {
4429
4445
  // 1.47: instances and accounts kept apart — an account's usage is the account's, every instance shows it by id.
4430
4446
  "apps.instances.list": { params: AppsInstancesListParams, result: AppsInstancesListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4431
4447
  "apps.accounts.list": { params: AppsAccountsListParams, result: AppsAccountsListResult, kind: "unary", since: "1.47", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4448
+ // 1.56: an instance's kept-for account and forgetting it (the app's own tool writes both); every raw fact about one chat.
4449
+ "apps.windows.set_account": { params: AppsWindowsSetAccountParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4450
+ "apps.windows.forget": { params: AppsWindowsForgetParams, result: AppsWindowActionResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4451
+ "apps.chats.probe": { params: AppsChatsProbeParams, result: AppsChatsProbeResult, kind: "unary", since: "1.56", errors: ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4432
4452
  "apps.projects.move": { params: AppsProjectsMoveParams, result: AppsProjectsMoveResult, kind: "unary", since: "1.10", errors: ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4433
4453
  "apps.projects.create": { params: AppsProjectsCreateParams, result: AppsProjectsCreateResult, kind: "unary", since: "1.10", errors: ["INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
4434
4454
  "apps.projects.import_pins": { params: AppsProjectsImportPinsParams, result: AppsProjectsImportPinsResult, kind: "unary", since: "1.10", errors: ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
@@ -4519,6 +4539,8 @@ var OPS = {
4519
4539
  "coding.stop": { params: CodingStopParams, result: CodingStopResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "INTERNAL"] },
4520
4540
  "coding.stop_elsewhere": { params: CodingStopElsewhereParams, result: CodingStopElsewhereResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "CONFLICT", "PERMISSION_DENIED_OS", "INTERNAL"] },
4521
4541
  "coding.options.set": { params: CodingOptionsSetParams, result: CodingOptionsSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "INTERNAL"] },
4542
+ // 1.56: "Continue on <account>" — the session moves to another account and its stopped turn is sent again, exactly once.
4543
+ "coding.account.continue": { params: CodingAccountContinueParams, result: CodingAccountContinueResult, kind: "unary", since: "1.56", errors: ["INVALID_PARAMS", "NOT_FOUND", "RESOURCE_BUSY", "AUTH_FORBIDDEN", "INTERNAL"] },
4522
4544
  "coding.agent.set": { params: CodingAgentSetParams, result: CodingAgentSetResult, kind: "unary", since: "1.38", errors: ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "INTERNAL"] },
4523
4545
  "coding.agents.access": { params: CodingAgentsAccessParams, result: CodingAgentsAccessResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },
4524
4546
  "coding.titles.status": { params: CodingTitlesStatusParams, result: CodingTitlesStatusResult, kind: "unary", since: "1.38", errors: ["INTERNAL"] },