@ai-matrx/desktop-protocol 0.21.21 → 0.21.23

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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-ZQtKshfc.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-ZQtKshfc.cjs';
2
+ import { O as OpName } from './models-CXjW101n.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-CXjW101n.cjs';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -49,10 +49,16 @@ declare const PROTOCOL_MAJOR: 1;
49
49
  * apps.windows.reopen and apps.windows.update_and_reopen (quit all, install, reopen all).
50
50
  * 1.27 — AppsWindowsUpdateStateResult.closed_by_update: the closed windows the update itself quit
51
51
  * (the app's log says it went down for the update), apart from ones a person closed.
52
+ * 1.28 — the `browser` capability: the AI Matrx extension as a client (browser.register, result,
53
+ * progress), the Browsers screen (browser.sessions, disconnect, set_enabled, pair_code,
54
+ * pair_reset), agents' browser.call, events browser.invoke / sessions_changed / progress,
55
+ * and the browser_* / awaiting_confirmation error reasons (REASONS_SINCE).
56
+ * 1.29 — one name per chat in every window: apps.chats.titles_check (each chat's right name and
57
+ * the windows where it differs) and apps.chats.titles_push (write it into every copy).
52
58
  */
53
- declare const PROTOCOL_MINOR: 27;
59
+ declare const PROTOCOL_MINOR: 29;
54
60
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
55
- declare const PROTOCOL_VERSION: "1.27";
61
+ declare const PROTOCOL_VERSION: "1.29";
56
62
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
57
63
  declare const u32: z.ZodInt;
58
64
  declare const nonNegInt: z.ZodInt;
@@ -1044,6 +1050,11 @@ declare const RelayCallResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
1044
1050
  service_starting: "service_starting";
1045
1051
  service_restarted: "service_restarted";
1046
1052
  service_failed: "service_failed";
1053
+ browser_not_connected: "browser_not_connected";
1054
+ browser_ambiguous: "browser_ambiguous";
1055
+ browser_account_mismatch: "browser_account_mismatch";
1056
+ browser_connection_off: "browser_connection_off";
1057
+ awaiting_confirmation: "awaiting_confirmation";
1047
1058
  }>>;
1048
1059
  cap: z.ZodOptional<z.ZodString>;
1049
1060
  op: z.ZodOptional<z.ZodString>;
@@ -2436,6 +2447,93 @@ declare const AppsChatsOpenParams: z.ZodObject<{
2436
2447
  window: z.ZodOptional<z.ZodString>;
2437
2448
  }, z.core.$strict>;
2438
2449
  type AppsChatsOpenParams = z.output<typeof AppsChatsOpenParams>;
2450
+ /** One window's copies of a chat whose name differs from the chat's right name. */
2451
+ declare const TitleCopies: z.ZodObject<{
2452
+ window: z.ZodString;
2453
+ copies: z.ZodInt;
2454
+ titles: z.ZodArray<z.ZodObject<{
2455
+ title: z.ZodString;
2456
+ source: z.ZodString;
2457
+ }, z.core.$strict>>;
2458
+ }, z.core.$strict>;
2459
+ type TitleCopies = z.output<typeof TitleCopies>;
2460
+ /** A chat that does not have one name everywhere: the right name, and where it differs. */
2461
+ declare const TitleMismatch: z.ZodObject<{
2462
+ chat_id: z.ZodString;
2463
+ title: z.ZodString;
2464
+ title_source: z.ZodEnum<{
2465
+ user: "user";
2466
+ auto: "auto";
2467
+ }>;
2468
+ decided_from: z.ZodString;
2469
+ kind: z.ZodEnum<{
2470
+ user_vs_auto: "user_vs_auto";
2471
+ user_vs_user: "user_vs_user";
2472
+ auto_vs_auto: "auto_vs_auto";
2473
+ source_only: "source_only";
2474
+ }>;
2475
+ windows: z.ZodArray<z.ZodString>;
2476
+ differs_in: z.ZodArray<z.ZodObject<{
2477
+ window: z.ZodString;
2478
+ copies: z.ZodInt;
2479
+ titles: z.ZodArray<z.ZodObject<{
2480
+ title: z.ZodString;
2481
+ source: z.ZodString;
2482
+ }, z.core.$strict>>;
2483
+ }, z.core.$strict>>;
2484
+ }, z.core.$strict>;
2485
+ type TitleMismatch = z.output<typeof TitleMismatch>;
2486
+ declare const AppsChatsTitlesCheckParams: z.ZodObject<{
2487
+ app_key: z.ZodString;
2488
+ }, z.core.$strict>;
2489
+ type AppsChatsTitlesCheckParams = z.output<typeof AppsChatsTitlesCheckParams>;
2490
+ declare const AppsChatsTitlesCheckResult: z.ZodObject<{
2491
+ app_key: z.ZodString;
2492
+ chats_total: z.ZodInt;
2493
+ chats_in_several_windows: z.ZodInt;
2494
+ chats_with_a_different_name: z.ZodInt;
2495
+ copies_to_write: z.ZodInt;
2496
+ chats: z.ZodArray<z.ZodObject<{
2497
+ chat_id: z.ZodString;
2498
+ title: z.ZodString;
2499
+ title_source: z.ZodEnum<{
2500
+ user: "user";
2501
+ auto: "auto";
2502
+ }>;
2503
+ decided_from: z.ZodString;
2504
+ kind: z.ZodEnum<{
2505
+ user_vs_auto: "user_vs_auto";
2506
+ user_vs_user: "user_vs_user";
2507
+ auto_vs_auto: "auto_vs_auto";
2508
+ source_only: "source_only";
2509
+ }>;
2510
+ windows: z.ZodArray<z.ZodString>;
2511
+ differs_in: z.ZodArray<z.ZodObject<{
2512
+ window: z.ZodString;
2513
+ copies: z.ZodInt;
2514
+ titles: z.ZodArray<z.ZodObject<{
2515
+ title: z.ZodString;
2516
+ source: z.ZodString;
2517
+ }, z.core.$strict>>;
2518
+ }, z.core.$strict>>;
2519
+ }, z.core.$strict>>;
2520
+ }, z.core.$strict>;
2521
+ type AppsChatsTitlesCheckResult = z.output<typeof AppsChatsTitlesCheckResult>;
2522
+ /** Write each chat's right name into every copy in every window (one chat with chat_id). */
2523
+ declare const AppsChatsTitlesPushParams: z.ZodObject<{
2524
+ app_key: z.ZodString;
2525
+ chat_id: z.ZodOptional<z.ZodString>;
2526
+ dry_run: z.ZodOptional<z.ZodBoolean>;
2527
+ }, z.core.$strict>;
2528
+ type AppsChatsTitlesPushParams = z.output<typeof AppsChatsTitlesPushParams>;
2529
+ declare const AppsChatsTitlesPushResult: z.ZodObject<{
2530
+ app_key: z.ZodString;
2531
+ written: z.ZodInt;
2532
+ chats_fixed: z.ZodInt;
2533
+ failed: z.ZodInt;
2534
+ chats_with_a_different_name: z.ZodInt;
2535
+ }, z.core.$strict>;
2536
+ type AppsChatsTitlesPushResult = z.output<typeof AppsChatsTitlesPushResult>;
2439
2537
  /** Main conversation and helpers, USD at API list prices. */
2440
2538
  declare const SpendSplit: z.ZodObject<{
2441
2539
  main: z.ZodNumber;
@@ -2954,6 +3052,11 @@ declare const ServiceErrorMsg: z.ZodObject<{
2954
3052
  service_starting: "service_starting";
2955
3053
  service_restarted: "service_restarted";
2956
3054
  service_failed: "service_failed";
3055
+ browser_not_connected: "browser_not_connected";
3056
+ browser_ambiguous: "browser_ambiguous";
3057
+ browser_account_mismatch: "browser_account_mismatch";
3058
+ browser_connection_off: "browser_connection_off";
3059
+ awaiting_confirmation: "awaiting_confirmation";
2957
3060
  }>>;
2958
3061
  cap: z.ZodOptional<z.ZodString>;
2959
3062
  op: z.ZodOptional<z.ZodString>;
@@ -3089,6 +3192,11 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3089
3192
  service_starting: "service_starting";
3090
3193
  service_restarted: "service_restarted";
3091
3194
  service_failed: "service_failed";
3195
+ browser_not_connected: "browser_not_connected";
3196
+ browser_ambiguous: "browser_ambiguous";
3197
+ browser_account_mismatch: "browser_account_mismatch";
3198
+ browser_connection_off: "browser_connection_off";
3199
+ awaiting_confirmation: "awaiting_confirmation";
3092
3200
  }>>;
3093
3201
  cap: z.ZodOptional<z.ZodString>;
3094
3202
  op: z.ZodOptional<z.ZodString>;
@@ -5248,6 +5356,305 @@ declare const CodingHistoryProgressEvent: z.ZodObject<{
5248
5356
  }, z.core.$strict>;
5249
5357
  type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
5250
5358
 
5359
+ /**
5360
+ * @ai-matrx/desktop-protocol — cap browser (protocol 1.28): the AI Matrx browser extension as a
5361
+ * client of Matrx 2, and Matrx 2's agents driving it. Schema source: lint-enforced rules in
5362
+ * scripts/check-schema-source.mjs.
5363
+ *
5364
+ * The extension finds Matrx 2 with `GET /v1/health` (DesktopHealth, public, no token), pairs once
5365
+ * with `POST /v1/pair` (BrowserPairRequest → BrowserPairResult, loopback + an allowed extension
5366
+ * Origin), connects to `/v1/connect` as clientType "extension" with `bearer.<pair token>`, says
5367
+ * hello as usual (the envelope is unchanged) and then `browser.register` — once the welcome lists
5368
+ * it. Matrx 2 checks the extension's account against the device owner; only a session of the same
5369
+ * account is ever driven. An agent's call (`browser.call`) reaches exactly one session as the event
5370
+ * `browser.invoke`; the extension answers with `browser.result` (accepted only from that session)
5371
+ * and may say `browser.progress` while a person confirms the action in Chrome.
5372
+ */
5373
+
5374
+ /** Stable per Chrome profile (the extension mints it once): one session per instance. */
5375
+ declare const BrowserClientInstance: z.ZodString;
5376
+ declare const BrowserRegisterResult: z.ZodObject<{
5377
+ session: z.ZodObject<{
5378
+ client_instance: z.ZodString;
5379
+ client_label: z.ZodString;
5380
+ browser: z.ZodEnum<{
5381
+ other: "other";
5382
+ chrome: "chrome";
5383
+ edge: "edge";
5384
+ brave: "brave";
5385
+ arc: "arc";
5386
+ opera: "opera";
5387
+ vivaldi: "vivaldi";
5388
+ chromium: "chromium";
5389
+ firefox: "firefox";
5390
+ }>;
5391
+ extension_version: z.ZodString;
5392
+ state: z.ZodEnum<{
5393
+ connected: "connected";
5394
+ different_account: "different_account";
5395
+ extension_signed_out: "extension_signed_out";
5396
+ device_signed_out: "device_signed_out";
5397
+ unverified: "unverified";
5398
+ }>;
5399
+ routable: z.ZodBoolean;
5400
+ account_email: z.ZodNullable<z.ZodString>;
5401
+ connected_at_ms: z.ZodInt;
5402
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
5403
+ calls: z.ZodInt;
5404
+ errors: z.ZodInt;
5405
+ p50_ms: z.ZodNullable<z.ZodInt>;
5406
+ p95_ms: z.ZodNullable<z.ZodInt>;
5407
+ awaiting_confirmation: z.ZodBoolean;
5408
+ }, z.core.$strict>;
5409
+ }, z.core.$strict>;
5410
+ declare const BrowserCallError: z.ZodObject<{
5411
+ message: z.ZodString;
5412
+ code: z.ZodNullable<z.ZodString>;
5413
+ }, z.core.$strict>;
5414
+ declare const BrowserResultResult: z.ZodObject<{
5415
+ accepted: z.ZodBoolean;
5416
+ }, z.core.$strict>;
5417
+ /** The extension says where a call stands (the person is being asked to confirm it). */
5418
+ declare const BrowserProgressParams: z.ZodObject<{
5419
+ call_id: z.ZodString;
5420
+ phase: z.ZodEnum<{
5421
+ awaiting_confirmation: "awaiting_confirmation";
5422
+ running: "running";
5423
+ }>;
5424
+ }, z.core.$strict>;
5425
+ declare const BrowserProgressResult: z.ZodObject<{
5426
+ accepted: z.ZodBoolean;
5427
+ }, z.core.$strict>;
5428
+ declare const BrowserSessionsParams: z.ZodObject<{}, z.core.$strict>;
5429
+ declare const BrowserDisconnectParams: z.ZodObject<{
5430
+ client_instance: z.ZodString;
5431
+ }, z.core.$strict>;
5432
+ declare const BrowserDisconnectResult: z.ZodObject<{
5433
+ disconnected: z.ZodBoolean;
5434
+ }, z.core.$strict>;
5435
+ declare const BrowserSetEnabledParams: z.ZodObject<{
5436
+ enabled: z.ZodBoolean;
5437
+ }, z.core.$strict>;
5438
+ declare const BrowserSetEnabledResult: z.ZodObject<{
5439
+ enabled: z.ZodBoolean;
5440
+ }, z.core.$strict>;
5441
+ /** The pairing code a browser on another computer types in (screen clients on this computer only). */
5442
+ declare const BrowserPairCodeParams: z.ZodObject<{}, z.core.$strict>;
5443
+ declare const BrowserPairCodeResult: z.ZodObject<{
5444
+ code: z.ZodString;
5445
+ }, z.core.$strict>;
5446
+ declare const BrowserPairResetParams: z.ZodObject<{}, z.core.$strict>;
5447
+ /** Core → the app's screens: the session list changed (re-read browser.sessions). */
5448
+ declare const BrowserSessionsChangedEvent: z.ZodObject<{
5449
+ count: z.ZodInt;
5450
+ enabled: z.ZodBoolean;
5451
+ }, z.core.$strict>;
5452
+ /** Core → the caller of a browser.call: where it stands. */
5453
+ declare const BrowserProgressEvent: z.ZodObject<{
5454
+ call_id: z.ZodString;
5455
+ client_instance: z.ZodString;
5456
+ phase: z.ZodEnum<{
5457
+ awaiting_confirmation: "awaiting_confirmation";
5458
+ running: "running";
5459
+ }>;
5460
+ }, z.core.$strict>;
5461
+ /** `POST /v1/pair` body. */
5462
+ declare const BrowserPairRequest: z.ZodObject<{
5463
+ client_instance: z.ZodString;
5464
+ }, z.core.$strict>;
5465
+ /**
5466
+ * The extension IDs allowed to pair (Origin `chrome-extension://<id>`): the Chrome Web Store build
5467
+ * and the keyed development build. matrx-extend's src/config/identity.ts names the same IDs; this
5468
+ * constant is the one both sides read. The development ID is accepted only by development builds.
5469
+ */
5470
+ declare const MATRX_EXTENSION_IDS: {
5471
+ readonly store: "hnfolienncfklkgmdjjmhhegglimlamg";
5472
+ readonly development: "cihdmkcdjjckfhjpgoedmgfpoljebaml";
5473
+ };
5474
+ /** The discovery file Matrx 2 writes under ~/.matrx (Matrx Local keeps local.json). */
5475
+ declare const DISCOVERY_FILE: {
5476
+ readonly live: "matrx2.json";
5477
+ readonly development: "matrx2-dev.json";
5478
+ };
5479
+ /** The browser the extension runs in, as the extension reports it. */
5480
+ declare const BrowserKind: z.ZodEnum<{
5481
+ other: "other";
5482
+ chrome: "chrome";
5483
+ edge: "edge";
5484
+ brave: "brave";
5485
+ arc: "arc";
5486
+ opera: "opera";
5487
+ vivaldi: "vivaldi";
5488
+ chromium: "chromium";
5489
+ firefox: "firefox";
5490
+ }>;
5491
+ type BrowserKind = z.output<typeof BrowserKind>;
5492
+ /**
5493
+ * Whether this computer's agents may drive the session:
5494
+ * - `connected` — same account as the device owner: routable;
5495
+ * - `different_account` — the extension is signed in to another AI Matrx account: listed, never driven;
5496
+ * - `extension_signed_out` — the extension is signed out of AI Matrx: listed, never driven;
5497
+ * - `device_signed_out` — Matrx 2 itself is signed out, so there is no owner to match: listed, never driven;
5498
+ * - `unverified` — the account could not be checked (no network, keys unavailable): retried on the next register.
5499
+ */
5500
+ declare const BrowserSessionState: z.ZodEnum<{
5501
+ connected: "connected";
5502
+ different_account: "different_account";
5503
+ extension_signed_out: "extension_signed_out";
5504
+ device_signed_out: "device_signed_out";
5505
+ unverified: "unverified";
5506
+ }>;
5507
+ type BrowserSessionState = z.output<typeof BrowserSessionState>;
5508
+ declare const BrowserSession: z.ZodObject<{
5509
+ client_instance: z.ZodString;
5510
+ client_label: z.ZodString;
5511
+ browser: z.ZodEnum<{
5512
+ other: "other";
5513
+ chrome: "chrome";
5514
+ edge: "edge";
5515
+ brave: "brave";
5516
+ arc: "arc";
5517
+ opera: "opera";
5518
+ vivaldi: "vivaldi";
5519
+ chromium: "chromium";
5520
+ firefox: "firefox";
5521
+ }>;
5522
+ extension_version: z.ZodString;
5523
+ state: z.ZodEnum<{
5524
+ connected: "connected";
5525
+ different_account: "different_account";
5526
+ extension_signed_out: "extension_signed_out";
5527
+ device_signed_out: "device_signed_out";
5528
+ unverified: "unverified";
5529
+ }>;
5530
+ routable: z.ZodBoolean;
5531
+ account_email: z.ZodNullable<z.ZodString>;
5532
+ connected_at_ms: z.ZodInt;
5533
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
5534
+ calls: z.ZodInt;
5535
+ errors: z.ZodInt;
5536
+ p50_ms: z.ZodNullable<z.ZodInt>;
5537
+ p95_ms: z.ZodNullable<z.ZodInt>;
5538
+ awaiting_confirmation: z.ZodBoolean;
5539
+ }, z.core.$strict>;
5540
+ type BrowserSession = z.output<typeof BrowserSession>;
5541
+ declare const BrowserRegisterParams: z.ZodObject<{
5542
+ client_instance: z.ZodString;
5543
+ client_label: z.ZodString;
5544
+ browser: z.ZodEnum<{
5545
+ other: "other";
5546
+ chrome: "chrome";
5547
+ edge: "edge";
5548
+ brave: "brave";
5549
+ arc: "arc";
5550
+ opera: "opera";
5551
+ vivaldi: "vivaldi";
5552
+ chromium: "chromium";
5553
+ firefox: "firefox";
5554
+ }>;
5555
+ extension_version: z.ZodString;
5556
+ account_token: z.ZodNullable<z.ZodString>;
5557
+ }, z.core.$strict>;
5558
+ type BrowserRegisterParams = z.output<typeof BrowserRegisterParams>;
5559
+ /** The extension's answer to one `browser.invoke`. */
5560
+ declare const BrowserResultParams: z.ZodObject<{
5561
+ call_id: z.ZodString;
5562
+ ok: z.ZodBoolean;
5563
+ result: z.ZodUnknown;
5564
+ error: z.ZodNullable<z.ZodObject<{
5565
+ message: z.ZodString;
5566
+ code: z.ZodNullable<z.ZodString>;
5567
+ }, z.core.$strict>>;
5568
+ }, z.core.$strict>;
5569
+ type BrowserResultParams = z.output<typeof BrowserResultParams>;
5570
+ declare const BrowserCallPhase: z.ZodEnum<{
5571
+ awaiting_confirmation: "awaiting_confirmation";
5572
+ running: "running";
5573
+ }>;
5574
+ type BrowserCallPhase = z.output<typeof BrowserCallPhase>;
5575
+ declare const BrowserSessionsResult: z.ZodObject<{
5576
+ enabled: z.ZodBoolean;
5577
+ owner_signed_in: z.ZodBoolean;
5578
+ sessions: z.ZodArray<z.ZodObject<{
5579
+ client_instance: z.ZodString;
5580
+ client_label: z.ZodString;
5581
+ browser: z.ZodEnum<{
5582
+ other: "other";
5583
+ chrome: "chrome";
5584
+ edge: "edge";
5585
+ brave: "brave";
5586
+ arc: "arc";
5587
+ opera: "opera";
5588
+ vivaldi: "vivaldi";
5589
+ chromium: "chromium";
5590
+ firefox: "firefox";
5591
+ }>;
5592
+ extension_version: z.ZodString;
5593
+ state: z.ZodEnum<{
5594
+ connected: "connected";
5595
+ different_account: "different_account";
5596
+ extension_signed_out: "extension_signed_out";
5597
+ device_signed_out: "device_signed_out";
5598
+ unverified: "unverified";
5599
+ }>;
5600
+ routable: z.ZodBoolean;
5601
+ account_email: z.ZodNullable<z.ZodString>;
5602
+ connected_at_ms: z.ZodInt;
5603
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
5604
+ calls: z.ZodInt;
5605
+ errors: z.ZodInt;
5606
+ p50_ms: z.ZodNullable<z.ZodInt>;
5607
+ p95_ms: z.ZodNullable<z.ZodInt>;
5608
+ awaiting_confirmation: z.ZodBoolean;
5609
+ }, z.core.$strict>>;
5610
+ }, z.core.$strict>;
5611
+ type BrowserSessionsResult = z.output<typeof BrowserSessionsResult>;
5612
+ /**
5613
+ * Run one of the extension's own tools (any `chrome-extension` tool_def row) in one session. The
5614
+ * server validates `args` against that row's parameters; here they are opaque and size-capped.
5615
+ */
5616
+ declare const BrowserCallParams: z.ZodObject<{
5617
+ tool: z.ZodString;
5618
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5619
+ client_instance: z.ZodOptional<z.ZodString>;
5620
+ timeout_ms: z.ZodOptional<z.ZodInt>;
5621
+ }, z.core.$strict>;
5622
+ type BrowserCallParams = z.output<typeof BrowserCallParams>;
5623
+ declare const BrowserCallResult: z.ZodObject<{
5624
+ client_instance: z.ZodString;
5625
+ result: z.ZodUnknown;
5626
+ duration_ms: z.ZodInt;
5627
+ }, z.core.$strict>;
5628
+ type BrowserCallResult = z.output<typeof BrowserCallResult>;
5629
+ /** Core → one extension session: run this tool and answer with browser.result. */
5630
+ declare const BrowserInvokeEvent: z.ZodObject<{
5631
+ call_id: z.ZodString;
5632
+ tool: z.ZodString;
5633
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5634
+ deadline_ms: z.ZodInt;
5635
+ }, z.core.$strict>;
5636
+ type BrowserInvokeEvent = z.output<typeof BrowserInvokeEvent>;
5637
+ /** `GET /v1/health`: public, no token, no user id. Matrx 2 never serves `/health` (Matrx Local's). */
5638
+ declare const DesktopHealth: z.ZodObject<{
5639
+ status: z.ZodLiteral<"ok">;
5640
+ service: z.ZodLiteral<"matrx-desktop">;
5641
+ version: z.ZodString;
5642
+ protocol_version: z.ZodString;
5643
+ ws_path: z.ZodLiteral<"/v1/connect">;
5644
+ device_id: z.ZodString;
5645
+ browser_connection: z.ZodEnum<{
5646
+ off: "off";
5647
+ on: "on";
5648
+ }>;
5649
+ }, z.core.$strict>;
5650
+ type DesktopHealth = z.output<typeof DesktopHealth>;
5651
+ /** `POST /v1/pair` answer: the token rides `bearer.<pair_token>` on /v1/connect. */
5652
+ declare const BrowserPairResult: z.ZodObject<{
5653
+ pair_token: z.ZodString;
5654
+ ws_path: z.ZodLiteral<"/v1/connect">;
5655
+ }, z.core.$strict>;
5656
+ type BrowserPairResult = z.output<typeof BrowserPairResult>;
5657
+
5251
5658
  /**
5252
5659
  * Version skew is the normal state: a phone, the server and a desktop app in the field run
5253
5660
  * different package versions, and a minor protocol bump must never make any of them fail.
@@ -5357,6 +5764,11 @@ declare const REASONS_SINCE: {
5357
5764
  readonly service_starting: "1.2";
5358
5765
  readonly service_restarted: "1.2";
5359
5766
  readonly service_failed: "1.2";
5767
+ readonly browser_not_connected: "1.28";
5768
+ readonly browser_ambiguous: "1.28";
5769
+ readonly browser_account_mismatch: "1.28";
5770
+ readonly browser_connection_off: "1.28";
5771
+ readonly awaiting_confirmation: "1.28";
5360
5772
  };
5361
5773
  /** A device status for a reader at `version`: `since_ms` null ("never") becomes 0 before 1.1. */
5362
5774
  declare function statusForPeer<T extends {
@@ -5386,7 +5798,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
5386
5798
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
5387
5799
 
5388
5800
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
5389
- declare const CONTRACT_SHA256: "eece2e5eba3e6e33126a0fda2fad8c91abe9c878fbfdc98bd049ff5af126cb09";
5801
+ declare const CONTRACT_SHA256: "5994ab9f6c2dba636a90e18c99bd3a90736f23782b3f8df9e0d2d7234b8e2b1b";
5390
5802
 
5391
5803
  /**
5392
5804
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -5513,4 +5925,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
5513
5925
  /** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
5514
5926
  declare function renderToolStatusMarkdown(status: ToolStatus): string;
5515
5927
 
5516
- export { AbsPath, AccountAgent, AccountAgentsListParams, AccountAgentsListResult, AccountReadState, AccountReset, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, CONTRACT_SHA256, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ColdChat, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsServiceProgress, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
5928
+ export { AbsPath, AccountAgent, AccountAgentsListParams, AccountAgentsListResult, AccountReadState, AccountReset, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, CONTRACT_SHA256, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ColdChat, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, MATRX_EXTENSION_IDS, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsServiceProgress, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };