@ai-matrx/desktop-protocol 0.21.45 → 0.21.47

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-BFAtNMgx.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-BFAtNMgx.cjs';
2
+ import { O as OpName } from './models-Di-SL_jw.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-Di-SL_jw.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. */
@@ -128,10 +128,18 @@ declare const PROTOCOL_MAJOR: 1;
128
128
  * hands the ml service the selected files to fetch (URL + SHA-256 each) and the
129
129
  * llama-server build. A 1.48 peer still refuses keys outside its enum; the catalog's
130
130
  * min_app_version keeps new keys away from it.
131
+ * 1.50 — a window's Remote Control (phone) setting: AppWindowInfo `remote_control` (setting,
132
+ * serving, pending) and apps.windows.set_remote_control (written while the window is
133
+ * closed, else queued for its next close). A 1.49 core omits the field and answers
134
+ * UNKNOWN_OPERATION.
135
+ * 1.52 — Remote Control says when it is wrong: WindowRemoteControl `problem` (a damaged settings
136
+ * file, or why a queued change failed to land) and setting "unreadable". A 1.51 peer is
137
+ * never sent `problem`, and a window whose file is damaged simply has no remote_control
138
+ * for it (it would refuse the unknown setting).
131
139
  */
132
- declare const PROTOCOL_MINOR: 49;
140
+ declare const PROTOCOL_MINOR: 52;
133
141
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
134
- declare const PROTOCOL_VERSION: "1.49";
142
+ declare const PROTOCOL_VERSION: "1.52";
135
143
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
136
144
  declare const u32: z.ZodInt;
137
145
  declare const nonNegInt: z.ZodInt;
@@ -2583,6 +2591,59 @@ type AppsProjectsCopyResult = z.output<typeof AppsProjectsCopyResult>;
2583
2591
  * scripts/check-schema-source.mjs.
2584
2592
  */
2585
2593
 
2594
+ /**
2595
+ * 1.50: the window's "Connect new sessions to Remote Control" setting (Claude: Settings > Claude Code,
2596
+ * `preferences.ccRemoteControlDefaultEnabled` in the profile's claude_desktop_config.json): new coding
2597
+ * chats in that account show up in the Claude phone app's Code tab. The app reads the file once at
2598
+ * launch and writes it back from memory, so a change to an open window waits for its next close.
2599
+ */
2600
+ declare const WindowRemoteControl: z.ZodObject<{
2601
+ setting: z.ZodEnum<{
2602
+ default: "default";
2603
+ on: "on";
2604
+ off: "off";
2605
+ unreadable: "unreadable";
2606
+ }>;
2607
+ serving: z.ZodNullable<z.ZodBoolean>;
2608
+ pending: z.ZodNullable<z.ZodEnum<{
2609
+ on: "on";
2610
+ off: "off";
2611
+ }>>;
2612
+ problem: z.ZodOptional<z.ZodString>;
2613
+ }, z.core.$strict>;
2614
+ type WindowRemoteControl = z.output<typeof WindowRemoteControl>;
2615
+ /**
2616
+ * 1.50: turn a window's Remote Control setting on or off. A closed window's settings file is written
2617
+ * now; an open one's change is queued and written on its next close or Restart (as pins are).
2618
+ */
2619
+ declare const AppsWindowsSetRemoteControlParams: z.ZodObject<{
2620
+ app_key: z.ZodString;
2621
+ window: z.ZodString;
2622
+ enabled: z.ZodBoolean;
2623
+ }, z.core.$strict>;
2624
+ type AppsWindowsSetRemoteControlParams = z.output<typeof AppsWindowsSetRemoteControlParams>;
2625
+ declare const AppsWindowsSetRemoteControlResult: z.ZodObject<{
2626
+ message: z.ZodString;
2627
+ when: z.ZodEnum<{
2628
+ now: "now";
2629
+ next_close: "next_close";
2630
+ }>;
2631
+ remote_control: z.ZodObject<{
2632
+ setting: z.ZodEnum<{
2633
+ default: "default";
2634
+ on: "on";
2635
+ off: "off";
2636
+ unreadable: "unreadable";
2637
+ }>;
2638
+ serving: z.ZodNullable<z.ZodBoolean>;
2639
+ pending: z.ZodNullable<z.ZodEnum<{
2640
+ on: "on";
2641
+ off: "off";
2642
+ }>>;
2643
+ problem: z.ZodOptional<z.ZodString>;
2644
+ }, z.core.$strict>;
2645
+ }, z.core.$strict>;
2646
+ type AppsWindowsSetRemoteControlResult = z.output<typeof AppsWindowsSetRemoteControlResult>;
2586
2647
  /** One window (profile) of the app on this device. */
2587
2648
  declare const AppWindowInfo: z.ZodObject<{
2588
2649
  key: z.ZodString;
@@ -2594,6 +2655,20 @@ declare const AppWindowInfo: z.ZodObject<{
2594
2655
  created: z.ZodBoolean;
2595
2656
  running: z.ZodBoolean;
2596
2657
  open_chats: z.ZodInt;
2658
+ remote_control: z.ZodOptional<z.ZodObject<{
2659
+ setting: z.ZodEnum<{
2660
+ default: "default";
2661
+ on: "on";
2662
+ off: "off";
2663
+ unreadable: "unreadable";
2664
+ }>;
2665
+ serving: z.ZodNullable<z.ZodBoolean>;
2666
+ pending: z.ZodNullable<z.ZodEnum<{
2667
+ on: "on";
2668
+ off: "off";
2669
+ }>>;
2670
+ problem: z.ZodOptional<z.ZodString>;
2671
+ }, z.core.$strict>>;
2597
2672
  }, z.core.$strict>;
2598
2673
  type AppWindowInfo = z.output<typeof AppWindowInfo>;
2599
2674
  /** One account's plan usage, newest reading from any window (an account is matched to an org by vote). */
@@ -2647,6 +2722,20 @@ declare const AppsWindowsListResult: z.ZodObject<{
2647
2722
  created: z.ZodBoolean;
2648
2723
  running: z.ZodBoolean;
2649
2724
  open_chats: z.ZodInt;
2725
+ remote_control: z.ZodOptional<z.ZodObject<{
2726
+ setting: z.ZodEnum<{
2727
+ default: "default";
2728
+ on: "on";
2729
+ off: "off";
2730
+ unreadable: "unreadable";
2731
+ }>;
2732
+ serving: z.ZodNullable<z.ZodBoolean>;
2733
+ pending: z.ZodNullable<z.ZodEnum<{
2734
+ on: "on";
2735
+ off: "off";
2736
+ }>>;
2737
+ problem: z.ZodOptional<z.ZodString>;
2738
+ }, z.core.$strict>>;
2650
2739
  }, z.core.$strict>>;
2651
2740
  }, z.core.$strict>;
2652
2741
  type AppsWindowsListResult = z.output<typeof AppsWindowsListResult>;
@@ -3640,8 +3729,14 @@ declare const AppAccount: z.ZodObject<{
3640
3729
  }>>;
3641
3730
  }, z.core.$strict>;
3642
3731
  type AppAccount = z.output<typeof AppAccount>;
3732
+ /**
3733
+ * 1.51: both lists answer at once from the core's last reading (kept across restarts) and read again
3734
+ * in the background; `fresh` waits for a new reading instead (a Refresh button). The answer says when
3735
+ * it was read (`as_of_ms`) and whether a newer reading is on its way (`refreshing`).
3736
+ */
3643
3737
  declare const AppsInstancesListParams: z.ZodObject<{
3644
3738
  app_key: z.ZodString;
3739
+ fresh: z.ZodOptional<z.ZodBoolean>;
3645
3740
  }, z.core.$strict>;
3646
3741
  type AppsInstancesListParams = z.output<typeof AppsInstancesListParams>;
3647
3742
  declare const AppsInstancesListResult: z.ZodObject<{
@@ -3676,10 +3771,13 @@ declare const AppsInstancesListResult: z.ZodObject<{
3676
3771
  first_launch_ms: z.ZodNullable<z.ZodInt>;
3677
3772
  }, z.core.$strict>>;
3678
3773
  problem: z.ZodOptional<z.ZodString>;
3774
+ as_of_ms: z.ZodOptional<z.ZodInt>;
3775
+ refreshing: z.ZodOptional<z.ZodBoolean>;
3679
3776
  }, z.core.$strict>;
3680
3777
  type AppsInstancesListResult = z.output<typeof AppsInstancesListResult>;
3681
3778
  declare const AppsAccountsListParams: z.ZodObject<{
3682
3779
  app_key: z.ZodString;
3780
+ fresh: z.ZodOptional<z.ZodBoolean>;
3683
3781
  }, z.core.$strict>;
3684
3782
  type AppsAccountsListParams = z.output<typeof AppsAccountsListParams>;
3685
3783
  declare const AppsAccountsListResult: z.ZodObject<{
@@ -3715,6 +3813,8 @@ declare const AppsAccountsListResult: z.ZodObject<{
3715
3813
  }>>;
3716
3814
  }, z.core.$strict>>;
3717
3815
  problem: z.ZodOptional<z.ZodString>;
3816
+ as_of_ms: z.ZodOptional<z.ZodInt>;
3817
+ refreshing: z.ZodOptional<z.ZodBoolean>;
3718
3818
  }, z.core.$strict>;
3719
3819
  type AppsAccountsListResult = z.output<typeof AppsAccountsListResult>;
3720
3820
 
@@ -3735,27 +3835,48 @@ type AppsAccountsListResult = z.output<typeof AppsAccountsListResult>;
3735
3835
 
3736
3836
  /** The largest frame either side accepts (16 MiB). */
3737
3837
  declare const SERVICE_MAX_FRAME_BYTES: 16777216;
3738
- /** SHA-256 (hex) of generated/desktop-protocol.schema.json: CONTRACT_SHA256 on both sides. */
3739
- declare const ContractHash: z.ZodString;
3740
- /** The per-launch secret: 32 random bytes, base64url (43 characters). Passed by environment, never argv. */
3741
- declare const ServiceToken: z.ZodString;
3742
- declare const ServiceHello: z.ZodObject<{
3838
+ /** Supervised Python services. */
3839
+ declare const ServiceName: z.ZodEnum<{
3840
+ ml: "ml";
3841
+ coding: "coding";
3842
+ tools: "tools";
3843
+ }>;
3844
+ type ServiceName = z.output<typeof ServiceName>;
3845
+ declare const CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3743
3846
  type: z.ZodLiteral<"hello">;
3744
3847
  token: z.ZodString;
3745
3848
  contract: z.ZodString;
3746
- }, z.core.$strict>;
3747
- declare const ServiceRequest: z.ZodObject<{
3849
+ }, z.core.$strict>, z.ZodObject<{
3748
3850
  type: z.ZodLiteral<"request">;
3749
3851
  id: z.ZodInt;
3750
3852
  op: z.ZodString;
3751
3853
  params: z.ZodUnknown;
3752
- }, z.core.$strict>;
3753
- declare const ServiceResponse: z.ZodObject<{
3854
+ }, z.core.$strict>, z.ZodObject<{
3855
+ type: z.ZodLiteral<"cancel">;
3856
+ id: z.ZodInt;
3857
+ }, z.core.$strict>, z.ZodObject<{
3858
+ type: z.ZodLiteral<"ping">;
3859
+ id: z.ZodInt;
3860
+ }, z.core.$strict>, z.ZodObject<{
3861
+ type: z.ZodLiteral<"shutdown">;
3862
+ }, z.core.$strict>], "type">;
3863
+ type CoreToServiceMsg = z.output<typeof CoreToServiceMsg>;
3864
+ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3865
+ type: z.ZodLiteral<"welcome">;
3866
+ service: z.ZodEnum<{
3867
+ ml: "ml";
3868
+ coding: "coding";
3869
+ tools: "tools";
3870
+ }>;
3871
+ contract: z.ZodString;
3872
+ pid: z.ZodInt;
3873
+ python: z.ZodString;
3874
+ ops: z.ZodArray<z.ZodString>;
3875
+ }, z.core.$strict>, z.ZodObject<{
3754
3876
  type: z.ZodLiteral<"response">;
3755
3877
  id: z.ZodInt;
3756
3878
  result: z.ZodUnknown;
3757
- }, z.core.$strict>;
3758
- declare const ServiceErrorMsg: z.ZodObject<{
3879
+ }, z.core.$strict>, z.ZodObject<{
3759
3880
  type: z.ZodLiteral<"error">;
3760
3881
  id: z.ZodInt;
3761
3882
  error: z.ZodObject<{
@@ -3830,58 +3951,17 @@ declare const ServiceErrorMsg: z.ZodObject<{
3830
3951
  }, z.core.$strict>>;
3831
3952
  }, z.core.$strict>>;
3832
3953
  }, z.core.$strict>;
3833
- }, z.core.$strict>;
3834
- /** A running request's progress (validated against the service's progress schema). */
3835
- declare const ServiceProgressMsg: z.ZodObject<{
3954
+ }, z.core.$strict>, z.ZodObject<{
3836
3955
  type: z.ZodLiteral<"progress">;
3837
3956
  id: z.ZodInt;
3838
3957
  progress: z.ZodUnknown;
3839
- }, z.core.$strict>;
3840
- declare const ServiceCancel: z.ZodObject<{
3841
- type: z.ZodLiteral<"cancel">;
3842
- id: z.ZodInt;
3843
- }, z.core.$strict>;
3844
- /** Health check: the service answers `pong` at once from its event loop, even while it works. */
3845
- declare const ServicePing: z.ZodObject<{
3846
- type: z.ZodLiteral<"ping">;
3847
- id: z.ZodInt;
3848
- }, z.core.$strict>;
3849
- declare const ServicePong: z.ZodObject<{
3958
+ }, z.core.$strict>, z.ZodObject<{
3850
3959
  type: z.ZodLiteral<"pong">;
3851
3960
  id: z.ZodInt;
3852
3961
  busy: z.ZodInt;
3853
- }, z.core.$strict>;
3854
- /** Finish quickly: cancel running work, answer nothing more, exit 0. */
3855
- declare const ServiceShutdown: z.ZodObject<{
3856
- type: z.ZodLiteral<"shutdown">;
3857
- }, z.core.$strict>;
3858
- /** Supervised Python services. */
3859
- declare const ServiceName: z.ZodEnum<{
3860
- ml: "ml";
3861
- coding: "coding";
3862
- tools: "tools";
3863
- }>;
3864
- type ServiceName = z.output<typeof ServiceName>;
3865
- declare const CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3866
- type: z.ZodLiteral<"hello">;
3867
- token: z.ZodString;
3868
- contract: z.ZodString;
3869
- }, z.core.$strict>, z.ZodObject<{
3870
- type: z.ZodLiteral<"request">;
3871
- id: z.ZodInt;
3872
- op: z.ZodString;
3873
- params: z.ZodUnknown;
3874
- }, z.core.$strict>, z.ZodObject<{
3875
- type: z.ZodLiteral<"cancel">;
3876
- id: z.ZodInt;
3877
- }, z.core.$strict>, z.ZodObject<{
3878
- type: z.ZodLiteral<"ping">;
3879
- id: z.ZodInt;
3880
- }, z.core.$strict>, z.ZodObject<{
3881
- type: z.ZodLiteral<"shutdown">;
3882
3962
  }, z.core.$strict>], "type">;
3883
- type CoreToServiceMsg = z.output<typeof CoreToServiceMsg>;
3884
- declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3963
+ type ServiceToCoreMsg = z.output<typeof ServiceToCoreMsg>;
3964
+ declare const ServiceWelcome: z.ZodObject<{
3885
3965
  type: z.ZodLiteral<"welcome">;
3886
3966
  service: z.ZodEnum<{
3887
3967
  ml: "ml";
@@ -3892,11 +3972,34 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3892
3972
  pid: z.ZodInt;
3893
3973
  python: z.ZodString;
3894
3974
  ops: z.ZodArray<z.ZodString>;
3895
- }, z.core.$strict>, z.ZodObject<{
3975
+ }, z.core.$strict>;
3976
+ type ServiceWelcome = z.output<typeof ServiceWelcome>;
3977
+ /** SHA-256 (hex) of generated/desktop-protocol.schema.json: CONTRACT_SHA256 on both sides. */
3978
+ declare const ContractHash: z.ZodString;
3979
+ type ContractHash = z.output<typeof ContractHash>;
3980
+ /** The per-launch secret: 32 random bytes, base64url (43 characters). Passed by environment, never argv. */
3981
+ declare const ServiceToken: z.ZodString;
3982
+ type ServiceToken = z.output<typeof ServiceToken>;
3983
+ declare const ServiceHello: z.ZodObject<{
3984
+ type: z.ZodLiteral<"hello">;
3985
+ token: z.ZodString;
3986
+ contract: z.ZodString;
3987
+ }, z.core.$strict>;
3988
+ type ServiceHello = z.output<typeof ServiceHello>;
3989
+ declare const ServiceRequest: z.ZodObject<{
3990
+ type: z.ZodLiteral<"request">;
3991
+ id: z.ZodInt;
3992
+ op: z.ZodString;
3993
+ params: z.ZodUnknown;
3994
+ }, z.core.$strict>;
3995
+ type ServiceRequest = z.output<typeof ServiceRequest>;
3996
+ declare const ServiceResponse: z.ZodObject<{
3896
3997
  type: z.ZodLiteral<"response">;
3897
3998
  id: z.ZodInt;
3898
3999
  result: z.ZodUnknown;
3899
- }, z.core.$strict>, z.ZodObject<{
4000
+ }, z.core.$strict>;
4001
+ type ServiceResponse = z.output<typeof ServiceResponse>;
4002
+ declare const ServiceErrorMsg: z.ZodObject<{
3900
4003
  type: z.ZodLiteral<"error">;
3901
4004
  id: z.ZodInt;
3902
4005
  error: z.ZodObject<{
@@ -3971,29 +4074,37 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3971
4074
  }, z.core.$strict>>;
3972
4075
  }, z.core.$strict>>;
3973
4076
  }, z.core.$strict>;
3974
- }, z.core.$strict>, z.ZodObject<{
4077
+ }, z.core.$strict>;
4078
+ type ServiceErrorMsg = z.output<typeof ServiceErrorMsg>;
4079
+ /** A running request's progress (validated against the service's progress schema). */
4080
+ declare const ServiceProgressMsg: z.ZodObject<{
3975
4081
  type: z.ZodLiteral<"progress">;
3976
4082
  id: z.ZodInt;
3977
4083
  progress: z.ZodUnknown;
3978
- }, z.core.$strict>, z.ZodObject<{
4084
+ }, z.core.$strict>;
4085
+ type ServiceProgressMsg = z.output<typeof ServiceProgressMsg>;
4086
+ declare const ServiceCancel: z.ZodObject<{
4087
+ type: z.ZodLiteral<"cancel">;
4088
+ id: z.ZodInt;
4089
+ }, z.core.$strict>;
4090
+ type ServiceCancel = z.output<typeof ServiceCancel>;
4091
+ /** Health check: the service answers `pong` at once from its event loop, even while it works. */
4092
+ declare const ServicePing: z.ZodObject<{
4093
+ type: z.ZodLiteral<"ping">;
4094
+ id: z.ZodInt;
4095
+ }, z.core.$strict>;
4096
+ type ServicePing = z.output<typeof ServicePing>;
4097
+ declare const ServicePong: z.ZodObject<{
3979
4098
  type: z.ZodLiteral<"pong">;
3980
4099
  id: z.ZodInt;
3981
4100
  busy: z.ZodInt;
3982
- }, z.core.$strict>], "type">;
3983
- type ServiceToCoreMsg = z.output<typeof ServiceToCoreMsg>;
3984
- declare const ServiceWelcome: z.ZodObject<{
3985
- type: z.ZodLiteral<"welcome">;
3986
- service: z.ZodEnum<{
3987
- ml: "ml";
3988
- coding: "coding";
3989
- tools: "tools";
3990
- }>;
3991
- contract: z.ZodString;
3992
- pid: z.ZodInt;
3993
- python: z.ZodString;
3994
- ops: z.ZodArray<z.ZodString>;
3995
4101
  }, z.core.$strict>;
3996
- type ServiceWelcome = z.output<typeof ServiceWelcome>;
4102
+ type ServicePong = z.output<typeof ServicePong>;
4103
+ /** Finish quickly: cancel running work, answer nothing more, exit 0. */
4104
+ declare const ServiceShutdown: z.ZodObject<{
4105
+ type: z.ZodLiteral<"shutdown">;
4106
+ }, z.core.$strict>;
4107
+ type ServiceShutdown = z.output<typeof ServiceShutdown>;
3997
4108
 
3998
4109
  /**
3999
4110
  * @ai-matrx/desktop-protocol — local tool proof records (SPEC §10). Schema source: lint-enforced
@@ -4113,12 +4224,6 @@ type ToolResultsFile = z.output<typeof ToolResultsFile>;
4113
4224
  * scripts/check-schema-source.mjs. Added in protocol 1.3.
4114
4225
  */
4115
4226
 
4116
- declare const ProcSort: z.ZodEnum<{
4117
- name: "name";
4118
- cpu: "cpu";
4119
- memory: "memory";
4120
- pid: "pid";
4121
- }>;
4122
4227
  declare const ProcListParams: z.ZodObject<{
4123
4228
  name: z.ZodOptional<z.ZodString>;
4124
4229
  sort: z.ZodDefault<z.ZodEnum<{
@@ -4196,13 +4301,19 @@ declare const ProcKillResult: z.ZodObject<{
4196
4301
  exited: z.ZodBoolean;
4197
4302
  }, z.core.$strict>;
4198
4303
  type ProcKillResult = z.output<typeof ProcKillResult>;
4304
+ declare const ProcSort: z.ZodEnum<{
4305
+ name: "name";
4306
+ cpu: "cpu";
4307
+ memory: "memory";
4308
+ pid: "pid";
4309
+ }>;
4310
+ type ProcSort = z.output<typeof ProcSort>;
4199
4311
 
4200
4312
  /**
4201
4313
  * @ai-matrx/desktop-protocol — cap clipboard (SPEC §6): the system clipboard's text. Schema source:
4202
4314
  * lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.3.
4203
4315
  */
4204
4316
 
4205
- declare const ClipboardReadParams: z.ZodObject<{}, z.core.$strict>;
4206
4317
  declare const ClipboardReadResult: z.ZodObject<{
4207
4318
  text: z.ZodString;
4208
4319
  truncated: z.ZodBoolean;
@@ -4216,6 +4327,8 @@ declare const ClipboardWriteResult: z.ZodObject<{
4216
4327
  bytes: z.ZodInt;
4217
4328
  }, z.core.$strict>;
4218
4329
  type ClipboardWriteResult = z.output<typeof ClipboardWriteResult>;
4330
+ declare const ClipboardReadParams: z.ZodObject<{}, z.core.$strict>;
4331
+ type ClipboardReadParams = z.output<typeof ClipboardReadParams>;
4219
4332
 
4220
4333
  /**
4221
4334
  * @ai-matrx/desktop-protocol — cap git (SPEC §6): git operations for agents on the person's own
@@ -4363,28 +4476,6 @@ type GitCloneParams = z.output<typeof GitCloneParams>;
4363
4476
 
4364
4477
  /** The most text any web op returns per page; longer text is cut and says so (`truncated`). */
4365
4478
  declare const WEB_MAX_TEXT_CHARS: 524288;
4366
- declare const WebRuntimeParams: z.ZodObject<{}, z.core.$strict>;
4367
- declare const WebOutboxListParams: z.ZodObject<{}, z.core.$strict>;
4368
- declare const WebOutboxRetryParams: z.ZodObject<{
4369
- outbox_id: z.ZodOptional<z.ZodString>;
4370
- }, z.core.$strict>;
4371
- declare const WebOutboxDiscardParams: z.ZodObject<{
4372
- outbox_id: z.ZodString;
4373
- }, z.core.$strict>;
4374
- declare const WebOutboxDiscardResult: z.ZodObject<{
4375
- discarded: z.ZodBoolean;
4376
- }, z.core.$strict>;
4377
- declare const WebLogListParams: z.ZodObject<{
4378
- since_ms: z.ZodOptional<z.ZodInt>;
4379
- limit: z.ZodDefault<z.ZodInt>;
4380
- }, z.core.$strict>;
4381
- declare const WebLogClearParams: z.ZodObject<{}, z.core.$strict>;
4382
- declare const WebLogClearResult: z.ZodObject<{
4383
- cleared: z.ZodInt;
4384
- }, z.core.$strict>;
4385
- declare const WebResearchQueueParams: z.ZodObject<{
4386
- topic_id: z.ZodOptional<z.ZodString>;
4387
- }, z.core.$strict>;
4388
4479
  declare const WebHeader: z.ZodObject<{
4389
4480
  name: z.ZodString;
4390
4481
  value: z.ZodString;
@@ -5147,6 +5238,37 @@ declare const WebResearchFetchResult: z.ZodObject<{
5147
5238
  cannot_edit: z.ZodInt;
5148
5239
  }, z.core.$strict>;
5149
5240
  type WebResearchFetchResult = z.output<typeof WebResearchFetchResult>;
5241
+ declare const WebRuntimeParams: z.ZodObject<{}, z.core.$strict>;
5242
+ type WebRuntimeParams = z.output<typeof WebRuntimeParams>;
5243
+ declare const WebOutboxListParams: z.ZodObject<{}, z.core.$strict>;
5244
+ type WebOutboxListParams = z.output<typeof WebOutboxListParams>;
5245
+ declare const WebOutboxRetryParams: z.ZodObject<{
5246
+ outbox_id: z.ZodOptional<z.ZodString>;
5247
+ }, z.core.$strict>;
5248
+ type WebOutboxRetryParams = z.output<typeof WebOutboxRetryParams>;
5249
+ declare const WebOutboxDiscardParams: z.ZodObject<{
5250
+ outbox_id: z.ZodString;
5251
+ }, z.core.$strict>;
5252
+ type WebOutboxDiscardParams = z.output<typeof WebOutboxDiscardParams>;
5253
+ declare const WebOutboxDiscardResult: z.ZodObject<{
5254
+ discarded: z.ZodBoolean;
5255
+ }, z.core.$strict>;
5256
+ type WebOutboxDiscardResult = z.output<typeof WebOutboxDiscardResult>;
5257
+ declare const WebLogListParams: z.ZodObject<{
5258
+ since_ms: z.ZodOptional<z.ZodInt>;
5259
+ limit: z.ZodDefault<z.ZodInt>;
5260
+ }, z.core.$strict>;
5261
+ type WebLogListParams = z.output<typeof WebLogListParams>;
5262
+ declare const WebLogClearParams: z.ZodObject<{}, z.core.$strict>;
5263
+ type WebLogClearParams = z.output<typeof WebLogClearParams>;
5264
+ declare const WebLogClearResult: z.ZodObject<{
5265
+ cleared: z.ZodInt;
5266
+ }, z.core.$strict>;
5267
+ type WebLogClearResult = z.output<typeof WebLogClearResult>;
5268
+ declare const WebResearchQueueParams: z.ZodObject<{
5269
+ topic_id: z.ZodOptional<z.ZodString>;
5270
+ }, z.core.$strict>;
5271
+ type WebResearchQueueParams = z.output<typeof WebResearchQueueParams>;
5150
5272
 
5151
5273
  /**
5152
5274
  * @ai-matrx/desktop-protocol — cap system (SPEC §6): open a link or a file the way the person's
@@ -5288,7 +5410,6 @@ type SystemNotifyResult = z.output<typeof SystemNotifyResult>;
5288
5410
  * Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
5289
5411
  */
5290
5412
 
5291
- declare const ScreenListParams: z.ZodObject<{}, z.core.$strict>;
5292
5413
  declare const ScreenDisplay: z.ZodObject<{
5293
5414
  id: z.ZodInt;
5294
5415
  name: z.ZodString;
@@ -5341,6 +5462,8 @@ declare const ScreenCaptureResult: z.ZodObject<{
5341
5462
  data_base64: z.ZodString;
5342
5463
  }, z.core.$strict>;
5343
5464
  type ScreenCaptureResult = z.output<typeof ScreenCaptureResult>;
5465
+ declare const ScreenListParams: z.ZodObject<{}, z.core.$strict>;
5466
+ type ScreenListParams = z.output<typeof ScreenListParams>;
5344
5467
 
5345
5468
  /**
5346
5469
  * @ai-matrx/desktop-protocol — cap window (SPEC §6): the windows on the person's screen; focus,
@@ -5763,7 +5886,6 @@ type InputMouseClickResult = z.output<typeof InputMouseClickResult>;
5763
5886
  * Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
5764
5887
  */
5765
5888
 
5766
- declare const PowerStatusParams: z.ZodObject<{}, z.core.$strict>;
5767
5889
  declare const PowerStatusResult: z.ZodObject<{
5768
5890
  has_battery: z.ZodBoolean;
5769
5891
  percent: z.ZodNullable<z.ZodNumber>;
@@ -5818,6 +5940,8 @@ declare const PowerPreventSleepResult: z.ZodObject<{
5818
5940
  awake_until_ms: z.ZodNullable<z.ZodInt>;
5819
5941
  }, z.core.$strict>;
5820
5942
  type PowerPreventSleepResult = z.output<typeof PowerPreventSleepResult>;
5943
+ declare const PowerStatusParams: z.ZodObject<{}, z.core.$strict>;
5944
+ type PowerStatusParams = z.output<typeof PowerStatusParams>;
5821
5945
 
5822
5946
  /**
5823
5947
  * @ai-matrx/desktop-protocol — cap diag (SPEC §3.12): the device's error ledger. Every process's
@@ -6004,8 +6128,6 @@ type DiagErrorsChangedEvent = z.output<typeof DiagErrorsChangedEvent>;
6004
6128
  * Added in protocol 1.4.
6005
6129
  */
6006
6130
 
6007
- declare const ResourcesSnapshotParams: z.ZodObject<{}, z.core.$strict>;
6008
- declare const ResourcesActivityParams: z.ZodObject<{}, z.core.$strict>;
6009
6131
  declare const ResourcesDisk: z.ZodObject<{
6010
6132
  mount: z.ZodString;
6011
6133
  name: z.ZodOptional<z.ZodString>;
@@ -6282,6 +6404,10 @@ declare const ResourcesSnapshotResult: z.ZodObject<{
6282
6404
  uptime_seconds: z.ZodInt;
6283
6405
  }, z.core.$strict>;
6284
6406
  type ResourcesSnapshotResult = z.output<typeof ResourcesSnapshotResult>;
6407
+ declare const ResourcesSnapshotParams: z.ZodObject<{}, z.core.$strict>;
6408
+ type ResourcesSnapshotParams = z.output<typeof ResourcesSnapshotParams>;
6409
+ declare const ResourcesActivityParams: z.ZodObject<{}, z.core.$strict>;
6410
+ type ResourcesActivityParams = z.output<typeof ResourcesActivityParams>;
6285
6411
 
6286
6412
  /**
6287
6413
  * @ai-matrx/desktop-protocol — cap stack (SPEC §6): the local AI Matrx servers on this computer
@@ -6290,19 +6416,6 @@ type ResourcesSnapshotResult = z.output<typeof ResourcesSnapshotResult>;
6290
6416
  * happened. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in 1.16.
6291
6417
  */
6292
6418
 
6293
- declare const StackStateParams: z.ZodObject<{}, z.core.$strict>;
6294
- declare const StackStartParams: z.ZodObject<{}, z.core.$strict>;
6295
- declare const StackStopParams: z.ZodObject<{}, z.core.$strict>;
6296
- /** The request was accepted; the outcome lands in the history (action-done / action-failed). */
6297
- declare const StackRunResult: z.ZodObject<{
6298
- accepted: z.ZodBoolean;
6299
- }, z.core.$strict>;
6300
- declare const StackServerActionResult: z.ZodObject<{
6301
- message: z.ZodString;
6302
- }, z.core.$strict>;
6303
- declare const StackErrorsParams: z.ZodObject<{
6304
- window_minutes: z.ZodDefault<z.ZodInt>;
6305
- }, z.core.$strict>;
6306
6419
  /** A server's name as the stack's config declares it ("aidream", "scraper"). */
6307
6420
  declare const StackServerName: z.ZodString;
6308
6421
  type StackServerName = z.output<typeof StackServerName>;
@@ -6421,6 +6534,25 @@ declare const StackErrorsResult: z.ZodObject<{
6421
6534
  window_minutes: z.ZodInt;
6422
6535
  }, z.core.$strict>;
6423
6536
  type StackErrorsResult = z.output<typeof StackErrorsResult>;
6537
+ declare const StackStateParams: z.ZodObject<{}, z.core.$strict>;
6538
+ type StackStateParams = z.output<typeof StackStateParams>;
6539
+ declare const StackStartParams: z.ZodObject<{}, z.core.$strict>;
6540
+ type StackStartParams = z.output<typeof StackStartParams>;
6541
+ declare const StackStopParams: z.ZodObject<{}, z.core.$strict>;
6542
+ type StackStopParams = z.output<typeof StackStopParams>;
6543
+ /** The request was accepted; the outcome lands in the history (action-done / action-failed). */
6544
+ declare const StackRunResult: z.ZodObject<{
6545
+ accepted: z.ZodBoolean;
6546
+ }, z.core.$strict>;
6547
+ type StackRunResult = z.output<typeof StackRunResult>;
6548
+ declare const StackServerActionResult: z.ZodObject<{
6549
+ message: z.ZodString;
6550
+ }, z.core.$strict>;
6551
+ type StackServerActionResult = z.output<typeof StackServerActionResult>;
6552
+ declare const StackErrorsParams: z.ZodObject<{
6553
+ window_minutes: z.ZodDefault<z.ZodInt>;
6554
+ }, z.core.$strict>;
6555
+ type StackErrorsParams = z.output<typeof StackErrorsParams>;
6424
6556
 
6425
6557
  /**
6426
6558
  * @ai-matrx/desktop-protocol — cap audio (SPEC §6): the person's microphones and speakers; record a
@@ -6428,7 +6560,6 @@ type StackErrorsResult = z.output<typeof StackErrorsResult>;
6428
6560
  * rules in scripts/check-schema-source.mjs. Added in protocol 1.6.
6429
6561
  */
6430
6562
 
6431
- declare const AudioDevicesParams: z.ZodObject<{}, z.core.$strict>;
6432
6563
  declare const AudioDevice: z.ZodObject<{
6433
6564
  id: z.ZodString;
6434
6565
  name: z.ZodString;
@@ -6491,6 +6622,8 @@ declare const AudioPlayResult: z.ZodObject<{
6491
6622
  seconds: z.ZodNumber;
6492
6623
  }, z.core.$strict>;
6493
6624
  type AudioPlayResult = z.output<typeof AudioPlayResult>;
6625
+ declare const AudioDevicesParams: z.ZodObject<{}, z.core.$strict>;
6626
+ type AudioDevicesParams = z.output<typeof AudioDevicesParams>;
6494
6627
 
6495
6628
  /**
6496
6629
  * @ai-matrx/desktop-protocol — cap fs, polled watches (SPEC §6): watch a folder and read what
@@ -6554,7 +6687,6 @@ type FsWatchStopResult = z.output<typeof FsWatchStopResult>;
6554
6687
  * lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
6555
6688
  */
6556
6689
 
6557
- declare const ExecJobListParams: z.ZodObject<{}, z.core.$strict>;
6558
6690
  declare const ExecJobId: z.ZodString;
6559
6691
  type ExecJobId = z.output<typeof ExecJobId>;
6560
6692
  declare const ExecJobStartParams: z.ZodObject<{
@@ -6619,6 +6751,8 @@ declare const ExecJobListResult: z.ZodObject<{
6619
6751
  }, z.core.$strict>>;
6620
6752
  }, z.core.$strict>;
6621
6753
  type ExecJobListResult = z.output<typeof ExecJobListResult>;
6754
+ declare const ExecJobListParams: z.ZodObject<{}, z.core.$strict>;
6755
+ type ExecJobListParams = z.output<typeof ExecJobListParams>;
6622
6756
 
6623
6757
  /**
6624
6758
  * @ai-matrx/desktop-protocol — the `coding` capability's Claude Code history (SPEC §6 `coding`):
@@ -6634,32 +6768,6 @@ type ExecJobListResult = z.output<typeof ExecJobListResult>;
6634
6768
  * a fresh access token, so a long run never outlives its credential.
6635
6769
  */
6636
6770
 
6637
- declare const CodingHistoryFailure: z.ZodObject<{
6638
- session_id: z.ZodString;
6639
- reason: z.ZodString;
6640
- }, z.core.$strict>;
6641
- /**
6642
- * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
6643
- * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
6644
- * its own line, so every sentence the person reads comes from one place.
6645
- */
6646
- declare const CodingPlanMissingParams: z.ZodObject<{
6647
- credentials: z.ZodNullable<z.ZodObject<{
6648
- access_token: z.ZodString;
6649
- user_id: z.ZodString;
6650
- server_url: z.ZodString;
6651
- }, z.core.$strict>>;
6652
- }, z.core.$strict>;
6653
- /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
6654
- declare const CodingImportNextParams: z.ZodObject<{
6655
- plan_id: z.ZodString;
6656
- credentials: z.ZodNullable<z.ZodObject<{
6657
- access_token: z.ZodString;
6658
- user_id: z.ZodString;
6659
- server_url: z.ZodString;
6660
- }, z.core.$strict>>;
6661
- }, z.core.$strict>;
6662
- declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
6663
6771
  /** What the core adds to every coding service op from its own sign-in (never sent by a client). */
6664
6772
  declare const CodingServiceCredentials: z.ZodObject<{
6665
6773
  access_token: z.ZodString;
@@ -6789,6 +6897,36 @@ declare const CodingHistoryProgressEvent: z.ZodObject<{
6789
6897
  failed: z.ZodInt;
6790
6898
  }, z.core.$strict>;
6791
6899
  type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
6900
+ declare const CodingHistoryFailure: z.ZodObject<{
6901
+ session_id: z.ZodString;
6902
+ reason: z.ZodString;
6903
+ }, z.core.$strict>;
6904
+ type CodingHistoryFailure = z.output<typeof CodingHistoryFailure>;
6905
+ /**
6906
+ * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
6907
+ * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
6908
+ * its own line, so every sentence the person reads comes from one place.
6909
+ */
6910
+ declare const CodingPlanMissingParams: z.ZodObject<{
6911
+ credentials: z.ZodNullable<z.ZodObject<{
6912
+ access_token: z.ZodString;
6913
+ user_id: z.ZodString;
6914
+ server_url: z.ZodString;
6915
+ }, z.core.$strict>>;
6916
+ }, z.core.$strict>;
6917
+ type CodingPlanMissingParams = z.output<typeof CodingPlanMissingParams>;
6918
+ /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
6919
+ declare const CodingImportNextParams: z.ZodObject<{
6920
+ plan_id: z.ZodString;
6921
+ credentials: z.ZodNullable<z.ZodObject<{
6922
+ access_token: z.ZodString;
6923
+ user_id: z.ZodString;
6924
+ server_url: z.ZodString;
6925
+ }, z.core.$strict>>;
6926
+ }, z.core.$strict>;
6927
+ type CodingImportNextParams = z.output<typeof CodingImportNextParams>;
6928
+ declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
6929
+ type CodingHistoryImportMissingParams = z.output<typeof CodingHistoryImportMissingParams>;
6792
6930
 
6793
6931
  /**
6794
6932
  * @ai-matrx/desktop-protocol — the `coding` capability's sessions (SPEC §6 `coding`, "code from
@@ -6810,163 +6948,181 @@ type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
6810
6948
  * agent catalogue reads (a web client reads the catalogue directly as the same person).
6811
6949
  */
6812
6950
 
6813
- /** Exactly-once sends (the core keeps these ids 10 minutes). */
6814
- declare const CodingClientRequestId: z.ZodString;
6815
- declare const CodingSessionAgentPart: z.ZodObject<{
6816
- part: z.ZodEnum<{
6817
- tools: "tools";
6818
- instructions: "instructions";
6819
- skills: "skills";
6820
- }>;
6821
- loaded: z.ZodInt;
6822
- total: z.ZodInt;
6951
+ declare const CodingHistoryResult: z.ZodObject<{
6952
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6953
+ kind: z.ZodLiteral<"user">;
6954
+ id: z.ZodString;
6955
+ text: z.ZodString;
6956
+ at: z.ZodNullable<z.ZodString>;
6957
+ }, z.core.$strict>, z.ZodObject<{
6958
+ kind: z.ZodLiteral<"text">;
6959
+ id: z.ZodString;
6960
+ text: z.ZodString;
6961
+ }, z.core.$strict>, z.ZodObject<{
6962
+ kind: z.ZodLiteral<"text-delta">;
6963
+ id: z.ZodString;
6964
+ text: z.ZodString;
6965
+ }, z.core.$strict>, z.ZodObject<{
6966
+ kind: z.ZodLiteral<"reasoning">;
6967
+ id: z.ZodString;
6968
+ text: z.ZodString;
6969
+ }, z.core.$strict>, z.ZodObject<{
6970
+ kind: z.ZodLiteral<"tool-call">;
6971
+ id: z.ZodString;
6972
+ name: z.ZodString;
6973
+ input: z.ZodUnknown;
6974
+ }, z.core.$strict>, z.ZodObject<{
6975
+ kind: z.ZodLiteral<"tool-result">;
6976
+ id: z.ZodString;
6977
+ output: z.ZodString;
6978
+ isError: z.ZodBoolean;
6979
+ fullBytes: z.ZodOptional<z.ZodInt>;
6980
+ }, z.core.$strict>, z.ZodObject<{
6981
+ kind: z.ZodLiteral<"usage">;
6982
+ usage: z.ZodObject<{
6983
+ inputTokens: z.ZodInt;
6984
+ outputTokens: z.ZodInt;
6985
+ cachedInputTokens: z.ZodInt;
6986
+ }, z.core.$strict>;
6987
+ costUsd: z.ZodNullable<z.ZodNumber>;
6988
+ }, z.core.$strict>, z.ZodObject<{
6989
+ kind: z.ZodLiteral<"notice">;
6990
+ id: z.ZodString;
6991
+ level: z.ZodEnum<{
6992
+ warning: "warning";
6993
+ info: "info";
6994
+ }>;
6995
+ text: z.ZodString;
6996
+ }, z.core.$strict>, z.ZodObject<{
6997
+ kind: z.ZodLiteral<"error">;
6998
+ id: z.ZodString;
6999
+ text: z.ZodString;
7000
+ }, z.core.$strict>], "kind">>;
7001
+ truncated: z.ZodBoolean;
7002
+ unavailable: z.ZodNullable<z.ZodString>;
7003
+ seq: z.ZodInt;
6823
7004
  }, z.core.$strict>;
6824
- declare const CodingQuotaWindow: z.ZodObject<{
6825
- label: z.ZodString;
6826
- usedPercent: z.ZodNullable<z.ZodNumber>;
6827
- resetsAt: z.ZodNullable<z.ZodString>;
6828
- valueLabel: z.ZodNullable<z.ZodString>;
7005
+ declare const CodingTranscriptReadResult: z.ZodObject<{
7006
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7007
+ kind: z.ZodLiteral<"user">;
7008
+ id: z.ZodString;
7009
+ text: z.ZodString;
7010
+ at: z.ZodNullable<z.ZodString>;
7011
+ }, z.core.$strict>, z.ZodObject<{
7012
+ kind: z.ZodLiteral<"text">;
7013
+ id: z.ZodString;
7014
+ text: z.ZodString;
7015
+ }, z.core.$strict>, z.ZodObject<{
7016
+ kind: z.ZodLiteral<"text-delta">;
7017
+ id: z.ZodString;
7018
+ text: z.ZodString;
7019
+ }, z.core.$strict>, z.ZodObject<{
7020
+ kind: z.ZodLiteral<"reasoning">;
7021
+ id: z.ZodString;
7022
+ text: z.ZodString;
7023
+ }, z.core.$strict>, z.ZodObject<{
7024
+ kind: z.ZodLiteral<"tool-call">;
7025
+ id: z.ZodString;
7026
+ name: z.ZodString;
7027
+ input: z.ZodUnknown;
7028
+ }, z.core.$strict>, z.ZodObject<{
7029
+ kind: z.ZodLiteral<"tool-result">;
7030
+ id: z.ZodString;
7031
+ output: z.ZodString;
7032
+ isError: z.ZodBoolean;
7033
+ fullBytes: z.ZodOptional<z.ZodInt>;
7034
+ }, z.core.$strict>, z.ZodObject<{
7035
+ kind: z.ZodLiteral<"usage">;
7036
+ usage: z.ZodObject<{
7037
+ inputTokens: z.ZodInt;
7038
+ outputTokens: z.ZodInt;
7039
+ cachedInputTokens: z.ZodInt;
7040
+ }, z.core.$strict>;
7041
+ costUsd: z.ZodNullable<z.ZodNumber>;
7042
+ }, z.core.$strict>, z.ZodObject<{
7043
+ kind: z.ZodLiteral<"notice">;
7044
+ id: z.ZodString;
7045
+ level: z.ZodEnum<{
7046
+ warning: "warning";
7047
+ info: "info";
7048
+ }>;
7049
+ text: z.ZodString;
7050
+ }, z.core.$strict>, z.ZodObject<{
7051
+ kind: z.ZodLiteral<"error">;
7052
+ id: z.ZodString;
7053
+ text: z.ZodString;
7054
+ }, z.core.$strict>], "kind">>;
7055
+ truncated: z.ZodBoolean;
7056
+ unavailable: z.ZodNullable<z.ZodString>;
7057
+ seq: z.ZodInt;
6829
7058
  }, z.core.$strict>;
6830
- declare const CodingProviderProblem: z.ZodObject<{
6831
- kind: z.ZodEnum<{
6832
- "usage-limit": "usage-limit";
6833
- "signed-out": "signed-out";
6834
- }>;
6835
- message: z.ZodString;
6836
- until: z.ZodNullable<z.ZodString>;
6837
- at: z.ZodString;
7059
+ declare const CodingFoldersCheckResult: z.ZodObject<{
7060
+ path: z.ZodString;
7061
+ exists: z.ZodBoolean;
7062
+ isDirectory: z.ZodBoolean;
6838
7063
  }, z.core.$strict>;
6839
- declare const CodingProviderBinary: z.ZodObject<{
7064
+ declare const CodingFoldersCreateResult: z.ZodObject<{
6840
7065
  path: z.ZodString;
6841
- version: z.ZodNullable<z.ZodString>;
6842
- source: z.ZodEnum<{
6843
- path: "path";
6844
- "desktop-app": "desktop-app";
6845
- "npm-global": "npm-global";
6846
- configured: "configured";
6847
- }>;
6848
- sourceLabel: z.ZodString;
6849
- newer: z.ZodNullable<z.ZodObject<{
6850
- path: z.ZodString;
6851
- version: z.ZodString;
6852
- sourceLabel: z.ZodString;
6853
- }, z.core.$strict>>;
7066
+ exists: z.ZodBoolean;
7067
+ isDirectory: z.ZodBoolean;
6854
7068
  }, z.core.$strict>;
6855
- declare const CodingProvidersParams: z.ZodObject<{}, z.core.$strict>;
6856
- declare const CodingProvidersResult: z.ZodObject<{
6857
- providers: z.ZodArray<z.ZodObject<{
7069
+ declare const CodingStartResult: z.ZodObject<{
7070
+ session: z.ZodObject<{
7071
+ id: z.ZodString;
6858
7072
  provider: z.ZodEnum<{
6859
7073
  claude: "claude";
6860
7074
  codex: "codex";
6861
7075
  }>;
6862
- label: z.ZodString;
6863
- installed: z.ZodBoolean;
6864
- version: z.ZodNullable<z.ZodString>;
6865
- loggedIn: z.ZodBoolean;
6866
- billing: z.ZodEnum<{
6867
- unknown: "unknown";
6868
- subscription: "subscription";
6869
- api: "api";
7076
+ providerSessionId: z.ZodNullable<z.ZodString>;
7077
+ cwd: z.ZodString;
7078
+ title: z.ZodString;
7079
+ model: z.ZodNullable<z.ZodString>;
7080
+ effort: z.ZodNullable<z.ZodString>;
7081
+ origin: z.ZodEnum<{
7082
+ started: "started";
7083
+ takeover: "takeover";
6870
7084
  }>;
6871
- plan: z.ZodNullable<z.ZodString>;
6872
- account: z.ZodNullable<z.ZodString>;
6873
- problem: z.ZodNullable<z.ZodString>;
6874
- fix: z.ZodNullable<z.ZodString>;
6875
- ready: z.ZodBoolean;
6876
- lastProblem: z.ZodNullable<z.ZodObject<{
6877
- kind: z.ZodEnum<{
6878
- "usage-limit": "usage-limit";
6879
- "signed-out": "signed-out";
6880
- }>;
6881
- message: z.ZodString;
6882
- until: z.ZodNullable<z.ZodString>;
6883
- at: z.ZodString;
6884
- }, z.core.$strict>>;
6885
- quota: z.ZodArray<z.ZodObject<{
6886
- label: z.ZodString;
6887
- usedPercent: z.ZodNullable<z.ZodNumber>;
6888
- resetsAt: z.ZodNullable<z.ZodString>;
6889
- valueLabel: z.ZodNullable<z.ZodString>;
6890
- }, z.core.$strict>>;
6891
- models: z.ZodArray<z.ZodObject<{
6892
- id: z.ZodString;
6893
- label: z.ZodString;
6894
- }, z.core.$strict>>;
6895
- efforts: z.ZodArray<z.ZodString>;
6896
- defaultModel: z.ZodNullable<z.ZodObject<{
6897
- id: z.ZodString;
6898
- source: z.ZodEnum<{
6899
- settings: "settings";
6900
- driver: "driver";
6901
- }>;
6902
- }, z.core.$strict>>;
6903
- defaultEffort: z.ZodNullable<z.ZodString>;
6904
- binary: z.ZodNullable<z.ZodObject<{
6905
- path: z.ZodString;
6906
- version: z.ZodNullable<z.ZodString>;
6907
- source: z.ZodEnum<{
6908
- path: "path";
6909
- "desktop-app": "desktop-app";
6910
- "npm-global": "npm-global";
6911
- configured: "configured";
6912
- }>;
6913
- sourceLabel: z.ZodString;
6914
- newer: z.ZodNullable<z.ZodObject<{
6915
- path: z.ZodString;
6916
- version: z.ZodString;
6917
- sourceLabel: z.ZodString;
6918
- }, z.core.$strict>>;
6919
- }, z.core.$strict>>;
6920
- }, z.core.$strict>>;
6921
- }, z.core.$strict>;
6922
- declare const CodingSessionsListParams: z.ZodObject<{}, z.core.$strict>;
6923
- declare const CodingDiscoverParams: z.ZodObject<{
6924
- limit: z.ZodOptional<z.ZodInt>;
6925
- }, z.core.$strict>;
6926
- declare const CodingDiscoverResult: z.ZodObject<{
6927
- chats: z.ZodArray<z.ZodObject<{
6928
- provider: z.ZodEnum<{
6929
- claude: "claude";
6930
- codex: "codex";
6931
- }>;
6932
- providerSessionId: z.ZodString;
6933
- cwd: z.ZodNullable<z.ZodString>;
6934
- title: z.ZodString;
6935
- titleSource: z.ZodOptional<z.ZodEnum<{
6936
- unknown: "unknown";
6937
- app: "app";
6938
- "app-remembered": "app-remembered";
6939
- "custom-title": "custom-title";
6940
- "ai-title": "ai-title";
6941
- "agent-name": "agent-name";
6942
- summary: "summary";
6943
- "first-prompt": "first-prompt";
6944
- "last-prompt": "last-prompt";
6945
- }>>;
6946
- titlePending: z.ZodOptional<z.ZodBoolean>;
6947
- archived: z.ZodOptional<z.ZodBoolean>;
6948
- scheduled: z.ZodOptional<z.ZodBoolean>;
6949
- unlisted: z.ZodOptional<z.ZodBoolean>;
6950
- unavailable: z.ZodNullable<z.ZodString>;
7085
+ createdAt: z.ZodString;
6951
7086
  updatedAt: z.ZodString;
6952
- source: z.ZodNullable<z.ZodString>;
6953
- activeElsewhere: z.ZodNullable<z.ZodObject<{
6954
- reason: z.ZodEnum<{
6955
- open: "open";
6956
- process: "process";
6957
- "recent-write": "recent-write";
6958
- "open-tool-call": "open-tool-call";
6959
- }>;
6960
- message: z.ZodString;
6961
- pid: z.ZodNullable<z.ZodInt>;
7087
+ lastRunId: z.ZodNullable<z.ZodString>;
7088
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7089
+ completed: "completed";
7090
+ running: "running";
7091
+ failed: "failed";
7092
+ stopped: "stopped";
7093
+ starting: "starting";
7094
+ }>>;
7095
+ queued: z.ZodArray<z.ZodString>;
7096
+ agent: z.ZodNullable<z.ZodObject<{
7097
+ agentId: z.ZodString;
7098
+ versionId: z.ZodNullable<z.ZodString>;
7099
+ versionNumber: z.ZodNullable<z.ZodInt>;
7100
+ name: z.ZodString;
7101
+ definitionHash: z.ZodString;
7102
+ loaded: z.ZodArray<z.ZodObject<{
7103
+ part: z.ZodEnum<{
7104
+ tools: "tools";
7105
+ instructions: "instructions";
7106
+ skills: "skills";
7107
+ }>;
7108
+ loaded: z.ZodInt;
7109
+ total: z.ZodInt;
7110
+ }, z.core.$strict>>;
7111
+ unavailable: z.ZodArray<z.ZodObject<{
7112
+ kind: z.ZodString;
7113
+ name: z.ZodString;
7114
+ reason: z.ZodString;
7115
+ }, z.core.$strict>>;
7116
+ skills: z.ZodArray<z.ZodString>;
7117
+ tools: z.ZodArray<z.ZodString>;
7118
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7119
+ blockDue: z.ZodBoolean;
7120
+ deliveredAt: z.ZodNullable<z.ZodString>;
7121
+ replaces: z.ZodNullable<z.ZodString>;
6962
7122
  }, z.core.$strict>>;
6963
- }, z.core.$strict>>;
6964
- }, z.core.$strict>;
6965
- declare const CodingRunsListParams: z.ZodObject<{
6966
- session_id: z.ZodString;
6967
- }, z.core.$strict>;
6968
- declare const CodingRunsListResult: z.ZodObject<{
6969
- runs: z.ZodArray<z.ZodObject<{
7123
+ agentRemovedDue: z.ZodBoolean;
7124
+ }, z.core.$strict>;
7125
+ run: z.ZodNullable<z.ZodObject<{
6970
7126
  runId: z.ZodString;
6971
7127
  sessionId: z.ZodString;
6972
7128
  provider: z.ZodEnum<{
@@ -7008,89 +7164,298 @@ declare const CodingRunsListResult: z.ZodObject<{
7008
7164
  label: z.ZodString;
7009
7165
  }, z.core.$strict>>;
7010
7166
  }, z.core.$strict>>;
7167
+ queued: z.ZodBoolean;
7011
7168
  }, z.core.$strict>;
7012
- /** A first page defaults to the device's config (256 KB); "Show earlier" asks for more. */
7013
- declare const CodingHistoryParams: z.ZodObject<{
7014
- session_id: z.ZodString;
7015
- max_bytes: z.ZodOptional<z.ZodInt>;
7169
+ declare const CodingTitlesStatusResult: z.ZodObject<{
7170
+ owner: z.ZodBoolean;
7171
+ pending: z.ZodBoolean;
7172
+ problem: z.ZodNullable<z.ZodString>;
7173
+ renames: z.ZodNullable<z.ZodString>;
7016
7174
  }, z.core.$strict>;
7017
- declare const CodingHistoryResult: z.ZodObject<{
7018
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7019
- kind: z.ZodLiteral<"user">;
7020
- id: z.ZodString;
7021
- text: z.ZodString;
7022
- at: z.ZodNullable<z.ZodString>;
7023
- }, z.core.$strict>, z.ZodObject<{
7024
- kind: z.ZodLiteral<"text">;
7025
- id: z.ZodString;
7026
- text: z.ZodString;
7027
- }, z.core.$strict>, z.ZodObject<{
7028
- kind: z.ZodLiteral<"text-delta">;
7029
- id: z.ZodString;
7030
- text: z.ZodString;
7031
- }, z.core.$strict>, z.ZodObject<{
7032
- kind: z.ZodLiteral<"reasoning">;
7033
- id: z.ZodString;
7034
- text: z.ZodString;
7035
- }, z.core.$strict>, z.ZodObject<{
7036
- kind: z.ZodLiteral<"tool-call">;
7037
- id: z.ZodString;
7038
- name: z.ZodString;
7039
- input: z.ZodUnknown;
7040
- }, z.core.$strict>, z.ZodObject<{
7041
- kind: z.ZodLiteral<"tool-result">;
7042
- id: z.ZodString;
7043
- output: z.ZodString;
7044
- isError: z.ZodBoolean;
7045
- fullBytes: z.ZodOptional<z.ZodInt>;
7046
- }, z.core.$strict>, z.ZodObject<{
7047
- kind: z.ZodLiteral<"usage">;
7048
- usage: z.ZodObject<{
7049
- inputTokens: z.ZodInt;
7050
- outputTokens: z.ZodInt;
7051
- cachedInputTokens: z.ZodInt;
7052
- }, z.core.$strict>;
7053
- costUsd: z.ZodNullable<z.ZodNumber>;
7054
- }, z.core.$strict>, z.ZodObject<{
7055
- kind: z.ZodLiteral<"notice">;
7056
- id: z.ZodString;
7057
- level: z.ZodEnum<{
7058
- warning: "warning";
7059
- info: "info";
7060
- }>;
7061
- text: z.ZodString;
7062
- }, z.core.$strict>, z.ZodObject<{
7063
- kind: z.ZodLiteral<"error">;
7064
- id: z.ZodString;
7065
- text: z.ZodString;
7066
- }, z.core.$strict>], "kind">>;
7067
- truncated: z.ZodBoolean;
7068
- unavailable: z.ZodNullable<z.ZodString>;
7069
- seq: z.ZodInt;
7175
+ declare const CodingPrefsSetResult: z.ZodObject<{
7176
+ preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7177
+ title: z.ZodNullable<z.ZodString>;
7178
+ pinned: z.ZodBoolean;
7179
+ hidden: z.ZodBoolean;
7180
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7181
+ updatedAt: z.ZodNullable<z.ZodString>;
7182
+ }, z.core.$strict>>;
7070
7183
  }, z.core.$strict>;
7071
- declare const CodingTranscriptReadParams: z.ZodObject<{
7184
+ declare const CodingProviderName: z.ZodEnum<{
7185
+ claude: "claude";
7186
+ codex: "codex";
7187
+ }>;
7188
+ type CodingProviderName = z.output<typeof CodingProviderName>;
7189
+ declare const CodingRunStatus: z.ZodEnum<{
7190
+ completed: "completed";
7191
+ running: "running";
7192
+ failed: "failed";
7193
+ stopped: "stopped";
7194
+ starting: "starting";
7195
+ }>;
7196
+ type CodingRunStatus = z.output<typeof CodingRunStatus>;
7197
+ declare const CodingRunUsage: z.ZodObject<{
7198
+ inputTokens: z.ZodInt;
7199
+ outputTokens: z.ZodInt;
7200
+ cachedInputTokens: z.ZodInt;
7201
+ }, z.core.$strict>;
7202
+ type CodingRunUsage = z.output<typeof CodingRunUsage>;
7203
+ /**
7204
+ * Who started a run, stamped by the core from the connection (never from call arguments):
7205
+ * "This Mac", "iPhone", "Safari on Mac", "An agent".
7206
+ */
7207
+ declare const CodingStartedBy: z.ZodObject<{
7208
+ kind: z.ZodEnum<{
7209
+ web: "web";
7210
+ agent: "agent";
7211
+ other: "other";
7212
+ this_computer: "this_computer";
7213
+ phone: "phone";
7214
+ }>;
7215
+ label: z.ZodString;
7216
+ }, z.core.$strict>;
7217
+ type CodingStartedBy = z.output<typeof CodingStartedBy>;
7218
+ declare const CodingRunRecord: z.ZodObject<{
7219
+ runId: z.ZodString;
7220
+ sessionId: z.ZodString;
7072
7221
  provider: z.ZodEnum<{
7073
7222
  claude: "claude";
7074
7223
  codex: "codex";
7075
7224
  }>;
7076
- provider_session_id: z.ZodString;
7077
- max_bytes: z.ZodOptional<z.ZodInt>;
7078
- }, z.core.$strict>;
7079
- declare const CodingTranscriptReadResult: z.ZodObject<{
7080
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7081
- kind: z.ZodLiteral<"user">;
7082
- id: z.ZodString;
7083
- text: z.ZodString;
7084
- at: z.ZodNullable<z.ZodString>;
7085
- }, z.core.$strict>, z.ZodObject<{
7086
- kind: z.ZodLiteral<"text">;
7087
- id: z.ZodString;
7088
- text: z.ZodString;
7089
- }, z.core.$strict>, z.ZodObject<{
7090
- kind: z.ZodLiteral<"text-delta">;
7091
- id: z.ZodString;
7092
- text: z.ZodString;
7093
- }, z.core.$strict>, z.ZodObject<{
7225
+ cwd: z.ZodString;
7226
+ prompt: z.ZodString;
7227
+ model: z.ZodNullable<z.ZodString>;
7228
+ status: z.ZodEnum<{
7229
+ completed: "completed";
7230
+ running: "running";
7231
+ failed: "failed";
7232
+ stopped: "stopped";
7233
+ starting: "starting";
7234
+ }>;
7235
+ startedAt: z.ZodString;
7236
+ endedAt: z.ZodNullable<z.ZodString>;
7237
+ error: z.ZodNullable<z.ZodString>;
7238
+ usage: z.ZodNullable<z.ZodObject<{
7239
+ inputTokens: z.ZodInt;
7240
+ outputTokens: z.ZodInt;
7241
+ cachedInputTokens: z.ZodInt;
7242
+ }, z.core.$strict>>;
7243
+ costUsd: z.ZodNullable<z.ZodNumber>;
7244
+ billing: z.ZodNullable<z.ZodEnum<{
7245
+ unknown: "unknown";
7246
+ subscription: "subscription";
7247
+ api: "api";
7248
+ }>>;
7249
+ startedBy: z.ZodNullable<z.ZodObject<{
7250
+ kind: z.ZodEnum<{
7251
+ web: "web";
7252
+ agent: "agent";
7253
+ other: "other";
7254
+ this_computer: "this_computer";
7255
+ phone: "phone";
7256
+ }>;
7257
+ label: z.ZodString;
7258
+ }, z.core.$strict>>;
7259
+ }, z.core.$strict>;
7260
+ type CodingRunRecord = z.output<typeof CodingRunRecord>;
7261
+ declare const CodingSessionAgent: z.ZodObject<{
7262
+ agentId: z.ZodString;
7263
+ versionId: z.ZodNullable<z.ZodString>;
7264
+ versionNumber: z.ZodNullable<z.ZodInt>;
7265
+ name: z.ZodString;
7266
+ definitionHash: z.ZodString;
7267
+ loaded: z.ZodArray<z.ZodObject<{
7268
+ part: z.ZodEnum<{
7269
+ tools: "tools";
7270
+ instructions: "instructions";
7271
+ skills: "skills";
7272
+ }>;
7273
+ loaded: z.ZodInt;
7274
+ total: z.ZodInt;
7275
+ }, z.core.$strict>>;
7276
+ unavailable: z.ZodArray<z.ZodObject<{
7277
+ kind: z.ZodString;
7278
+ name: z.ZodString;
7279
+ reason: z.ZodString;
7280
+ }, z.core.$strict>>;
7281
+ skills: z.ZodArray<z.ZodString>;
7282
+ tools: z.ZodArray<z.ZodString>;
7283
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7284
+ blockDue: z.ZodBoolean;
7285
+ deliveredAt: z.ZodNullable<z.ZodString>;
7286
+ replaces: z.ZodNullable<z.ZodString>;
7287
+ }, z.core.$strict>;
7288
+ type CodingSessionAgent = z.output<typeof CodingSessionAgent>;
7289
+ declare const CodingSessionRecord: z.ZodObject<{
7290
+ id: z.ZodString;
7291
+ provider: z.ZodEnum<{
7292
+ claude: "claude";
7293
+ codex: "codex";
7294
+ }>;
7295
+ providerSessionId: z.ZodNullable<z.ZodString>;
7296
+ cwd: z.ZodString;
7297
+ title: z.ZodString;
7298
+ model: z.ZodNullable<z.ZodString>;
7299
+ effort: z.ZodNullable<z.ZodString>;
7300
+ origin: z.ZodEnum<{
7301
+ started: "started";
7302
+ takeover: "takeover";
7303
+ }>;
7304
+ createdAt: z.ZodString;
7305
+ updatedAt: z.ZodString;
7306
+ lastRunId: z.ZodNullable<z.ZodString>;
7307
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7308
+ completed: "completed";
7309
+ running: "running";
7310
+ failed: "failed";
7311
+ stopped: "stopped";
7312
+ starting: "starting";
7313
+ }>>;
7314
+ queued: z.ZodArray<z.ZodString>;
7315
+ agent: z.ZodNullable<z.ZodObject<{
7316
+ agentId: z.ZodString;
7317
+ versionId: z.ZodNullable<z.ZodString>;
7318
+ versionNumber: z.ZodNullable<z.ZodInt>;
7319
+ name: z.ZodString;
7320
+ definitionHash: z.ZodString;
7321
+ loaded: z.ZodArray<z.ZodObject<{
7322
+ part: z.ZodEnum<{
7323
+ tools: "tools";
7324
+ instructions: "instructions";
7325
+ skills: "skills";
7326
+ }>;
7327
+ loaded: z.ZodInt;
7328
+ total: z.ZodInt;
7329
+ }, z.core.$strict>>;
7330
+ unavailable: z.ZodArray<z.ZodObject<{
7331
+ kind: z.ZodString;
7332
+ name: z.ZodString;
7333
+ reason: z.ZodString;
7334
+ }, z.core.$strict>>;
7335
+ skills: z.ZodArray<z.ZodString>;
7336
+ tools: z.ZodArray<z.ZodString>;
7337
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7338
+ blockDue: z.ZodBoolean;
7339
+ deliveredAt: z.ZodNullable<z.ZodString>;
7340
+ replaces: z.ZodNullable<z.ZodString>;
7341
+ }, z.core.$strict>>;
7342
+ agentRemovedDue: z.ZodBoolean;
7343
+ }, z.core.$strict>;
7344
+ type CodingSessionRecord = z.output<typeof CodingSessionRecord>;
7345
+ declare const CodingActiveElsewhere: z.ZodObject<{
7346
+ reason: z.ZodEnum<{
7347
+ open: "open";
7348
+ process: "process";
7349
+ "recent-write": "recent-write";
7350
+ "open-tool-call": "open-tool-call";
7351
+ }>;
7352
+ message: z.ZodString;
7353
+ pid: z.ZodNullable<z.ZodInt>;
7354
+ }, z.core.$strict>;
7355
+ type CodingActiveElsewhere = z.output<typeof CodingActiveElsewhere>;
7356
+ declare const CodingDiscoveredChat: z.ZodObject<{
7357
+ provider: z.ZodEnum<{
7358
+ claude: "claude";
7359
+ codex: "codex";
7360
+ }>;
7361
+ providerSessionId: z.ZodString;
7362
+ cwd: z.ZodNullable<z.ZodString>;
7363
+ title: z.ZodString;
7364
+ titleSource: z.ZodOptional<z.ZodEnum<{
7365
+ unknown: "unknown";
7366
+ app: "app";
7367
+ "app-remembered": "app-remembered";
7368
+ "custom-title": "custom-title";
7369
+ "ai-title": "ai-title";
7370
+ "agent-name": "agent-name";
7371
+ summary: "summary";
7372
+ "first-prompt": "first-prompt";
7373
+ "last-prompt": "last-prompt";
7374
+ }>>;
7375
+ titlePending: z.ZodOptional<z.ZodBoolean>;
7376
+ archived: z.ZodOptional<z.ZodBoolean>;
7377
+ scheduled: z.ZodOptional<z.ZodBoolean>;
7378
+ unlisted: z.ZodOptional<z.ZodBoolean>;
7379
+ unavailable: z.ZodNullable<z.ZodString>;
7380
+ updatedAt: z.ZodString;
7381
+ source: z.ZodNullable<z.ZodString>;
7382
+ activeElsewhere: z.ZodNullable<z.ZodObject<{
7383
+ reason: z.ZodEnum<{
7384
+ open: "open";
7385
+ process: "process";
7386
+ "recent-write": "recent-write";
7387
+ "open-tool-call": "open-tool-call";
7388
+ }>;
7389
+ message: z.ZodString;
7390
+ pid: z.ZodNullable<z.ZodInt>;
7391
+ }, z.core.$strict>>;
7392
+ }, z.core.$strict>;
7393
+ type CodingDiscoveredChat = z.output<typeof CodingDiscoveredChat>;
7394
+ declare const CodingTranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
7395
+ kind: z.ZodLiteral<"user">;
7396
+ id: z.ZodString;
7397
+ text: z.ZodString;
7398
+ at: z.ZodNullable<z.ZodString>;
7399
+ }, z.core.$strict>, z.ZodObject<{
7400
+ kind: z.ZodLiteral<"text">;
7401
+ id: z.ZodString;
7402
+ text: z.ZodString;
7403
+ }, z.core.$strict>, z.ZodObject<{
7404
+ kind: z.ZodLiteral<"text-delta">;
7405
+ id: z.ZodString;
7406
+ text: z.ZodString;
7407
+ }, z.core.$strict>, z.ZodObject<{
7408
+ kind: z.ZodLiteral<"reasoning">;
7409
+ id: z.ZodString;
7410
+ text: z.ZodString;
7411
+ }, z.core.$strict>, z.ZodObject<{
7412
+ kind: z.ZodLiteral<"tool-call">;
7413
+ id: z.ZodString;
7414
+ name: z.ZodString;
7415
+ input: z.ZodUnknown;
7416
+ }, z.core.$strict>, z.ZodObject<{
7417
+ kind: z.ZodLiteral<"tool-result">;
7418
+ id: z.ZodString;
7419
+ output: z.ZodString;
7420
+ isError: z.ZodBoolean;
7421
+ fullBytes: z.ZodOptional<z.ZodInt>;
7422
+ }, z.core.$strict>, z.ZodObject<{
7423
+ kind: z.ZodLiteral<"usage">;
7424
+ usage: z.ZodObject<{
7425
+ inputTokens: z.ZodInt;
7426
+ outputTokens: z.ZodInt;
7427
+ cachedInputTokens: z.ZodInt;
7428
+ }, z.core.$strict>;
7429
+ costUsd: z.ZodNullable<z.ZodNumber>;
7430
+ }, z.core.$strict>, z.ZodObject<{
7431
+ kind: z.ZodLiteral<"notice">;
7432
+ id: z.ZodString;
7433
+ level: z.ZodEnum<{
7434
+ warning: "warning";
7435
+ info: "info";
7436
+ }>;
7437
+ text: z.ZodString;
7438
+ }, z.core.$strict>, z.ZodObject<{
7439
+ kind: z.ZodLiteral<"error">;
7440
+ id: z.ZodString;
7441
+ text: z.ZodString;
7442
+ }, z.core.$strict>], "kind">;
7443
+ type CodingTranscriptItem = z.output<typeof CodingTranscriptItem>;
7444
+ declare const CodingHistoryRecord: z.ZodObject<{
7445
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7446
+ kind: z.ZodLiteral<"user">;
7447
+ id: z.ZodString;
7448
+ text: z.ZodString;
7449
+ at: z.ZodNullable<z.ZodString>;
7450
+ }, z.core.$strict>, z.ZodObject<{
7451
+ kind: z.ZodLiteral<"text">;
7452
+ id: z.ZodString;
7453
+ text: z.ZodString;
7454
+ }, z.core.$strict>, z.ZodObject<{
7455
+ kind: z.ZodLiteral<"text-delta">;
7456
+ id: z.ZodString;
7457
+ text: z.ZodString;
7458
+ }, z.core.$strict>, z.ZodObject<{
7094
7459
  kind: z.ZodLiteral<"reasoning">;
7095
7460
  id: z.ZodString;
7096
7461
  text: z.ZodString;
@@ -7130,63 +7495,146 @@ declare const CodingTranscriptReadResult: z.ZodObject<{
7130
7495
  unavailable: z.ZodNullable<z.ZodString>;
7131
7496
  seq: z.ZodInt;
7132
7497
  }, z.core.$strict>;
7133
- /** The whole of one tool output the transcript carried only the start of. */
7134
- declare const CodingItemFullParams: z.ZodObject<{
7135
- provider: z.ZodEnum<{
7136
- claude: "claude";
7137
- codex: "codex";
7138
- }>;
7139
- provider_session_id: z.ZodString;
7140
- item_id: z.ZodString;
7141
- }, z.core.$strict>;
7142
- declare const CodingItemFullResult: z.ZodObject<{
7143
- output: z.ZodString;
7144
- bytes: z.ZodInt;
7145
- }, z.core.$strict>;
7146
- declare const CodingActivityParams: z.ZodObject<{
7498
+ type CodingHistoryRecord = z.output<typeof CodingHistoryRecord>;
7499
+ declare const CodingProviderStatus: z.ZodObject<{
7147
7500
  provider: z.ZodEnum<{
7148
7501
  claude: "claude";
7149
7502
  codex: "codex";
7150
7503
  }>;
7151
- provider_session_id: z.ZodString;
7152
- }, z.core.$strict>;
7153
- declare const CodingActivityResult: z.ZodObject<{
7154
- active: z.ZodNullable<z.ZodObject<{
7155
- reason: z.ZodEnum<{
7156
- open: "open";
7157
- process: "process";
7158
- "recent-write": "recent-write";
7159
- "open-tool-call": "open-tool-call";
7504
+ label: z.ZodString;
7505
+ installed: z.ZodBoolean;
7506
+ version: z.ZodNullable<z.ZodString>;
7507
+ loggedIn: z.ZodBoolean;
7508
+ billing: z.ZodEnum<{
7509
+ unknown: "unknown";
7510
+ subscription: "subscription";
7511
+ api: "api";
7512
+ }>;
7513
+ plan: z.ZodNullable<z.ZodString>;
7514
+ account: z.ZodNullable<z.ZodString>;
7515
+ problem: z.ZodNullable<z.ZodString>;
7516
+ fix: z.ZodNullable<z.ZodString>;
7517
+ ready: z.ZodBoolean;
7518
+ lastProblem: z.ZodNullable<z.ZodObject<{
7519
+ kind: z.ZodEnum<{
7520
+ "usage-limit": "usage-limit";
7521
+ "signed-out": "signed-out";
7160
7522
  }>;
7161
7523
  message: z.ZodString;
7162
- pid: z.ZodNullable<z.ZodInt>;
7524
+ until: z.ZodNullable<z.ZodString>;
7525
+ at: z.ZodString;
7163
7526
  }, z.core.$strict>>;
7164
- }, z.core.$strict>;
7165
- declare const CodingFoldersRecentParams: z.ZodObject<{}, z.core.$strict>;
7166
- declare const CodingFoldersRecentResult: z.ZodObject<{
7167
- folders: z.ZodArray<z.ZodObject<{
7527
+ quota: z.ZodArray<z.ZodObject<{
7528
+ label: z.ZodString;
7529
+ usedPercent: z.ZodNullable<z.ZodNumber>;
7530
+ resetsAt: z.ZodNullable<z.ZodString>;
7531
+ valueLabel: z.ZodNullable<z.ZodString>;
7532
+ }, z.core.$strict>>;
7533
+ models: z.ZodArray<z.ZodObject<{
7534
+ id: z.ZodString;
7535
+ label: z.ZodString;
7536
+ }, z.core.$strict>>;
7537
+ efforts: z.ZodArray<z.ZodString>;
7538
+ defaultModel: z.ZodNullable<z.ZodObject<{
7539
+ id: z.ZodString;
7540
+ source: z.ZodEnum<{
7541
+ settings: "settings";
7542
+ driver: "driver";
7543
+ }>;
7544
+ }, z.core.$strict>>;
7545
+ defaultEffort: z.ZodNullable<z.ZodString>;
7546
+ binary: z.ZodNullable<z.ZodObject<{
7168
7547
  path: z.ZodString;
7169
- lastUsedAt: z.ZodString;
7170
- exists: z.ZodBoolean;
7548
+ version: z.ZodNullable<z.ZodString>;
7549
+ source: z.ZodEnum<{
7550
+ path: "path";
7551
+ "desktop-app": "desktop-app";
7552
+ "npm-global": "npm-global";
7553
+ configured: "configured";
7554
+ }>;
7555
+ sourceLabel: z.ZodString;
7556
+ newer: z.ZodNullable<z.ZodObject<{
7557
+ path: z.ZodString;
7558
+ version: z.ZodString;
7559
+ sourceLabel: z.ZodString;
7560
+ }, z.core.$strict>>;
7171
7561
  }, z.core.$strict>>;
7172
7562
  }, z.core.$strict>;
7173
- declare const CodingFoldersCheckParams: z.ZodObject<{
7174
- path: z.ZodString;
7563
+ type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
7564
+ /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
7565
+ declare const CodingChatPreference: z.ZodObject<{
7566
+ title: z.ZodNullable<z.ZodString>;
7567
+ pinned: z.ZodBoolean;
7568
+ hidden: z.ZodBoolean;
7569
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7570
+ updatedAt: z.ZodNullable<z.ZodString>;
7175
7571
  }, z.core.$strict>;
7176
- declare const CodingFoldersCheckResult: z.ZodObject<{
7572
+ type CodingChatPreference = z.output<typeof CodingChatPreference>;
7573
+ declare const CodingTitleStatus: z.ZodObject<{
7574
+ owner: z.ZodBoolean;
7575
+ pending: z.ZodBoolean;
7576
+ problem: z.ZodNullable<z.ZodString>;
7577
+ renames: z.ZodNullable<z.ZodString>;
7578
+ }, z.core.$strict>;
7579
+ type CodingTitleStatus = z.output<typeof CodingTitleStatus>;
7580
+ /**
7581
+ * One row of THE recent coding chats (the Mac's Code › Recent and the phone's Sessions list draw
7582
+ * exactly these): the chats driven here and the coding apps' own chats, newest first, each with
7583
+ * the Mac's dot. `state`: running (amber "Running"), needs_attention (amber: failed or
7584
+ * interrupted since the person last looked), new_output (blue), elsewhere (amber "Running in
7585
+ * <app>"), idle (no dot).
7586
+ */
7587
+ declare const CodingRecentRow: z.ZodObject<{
7588
+ target: z.ZodString;
7589
+ title: z.ZodString;
7590
+ provider: z.ZodEnum<{
7591
+ claude: "claude";
7592
+ codex: "codex";
7593
+ }>;
7594
+ sessionId: z.ZodNullable<z.ZodString>;
7595
+ providerSessionId: z.ZodNullable<z.ZodString>;
7596
+ cwd: z.ZodNullable<z.ZodString>;
7597
+ updatedAt: z.ZodString;
7598
+ state: z.ZodEnum<{
7599
+ running: "running";
7600
+ idle: "idle";
7601
+ needs_attention: "needs_attention";
7602
+ new_output: "new_output";
7603
+ elsewhere: "elsewhere";
7604
+ }>;
7605
+ stateLabel: z.ZodNullable<z.ZodString>;
7606
+ pinned: z.ZodBoolean;
7607
+ startedBy: z.ZodNullable<z.ZodObject<{
7608
+ kind: z.ZodEnum<{
7609
+ web: "web";
7610
+ agent: "agent";
7611
+ other: "other";
7612
+ this_computer: "this_computer";
7613
+ phone: "phone";
7614
+ }>;
7615
+ label: z.ZodString;
7616
+ }, z.core.$strict>>;
7617
+ }, z.core.$strict>;
7618
+ type CodingRecentRow = z.output<typeof CodingRecentRow>;
7619
+ declare const CodingFolderCheck: z.ZodObject<{
7177
7620
  path: z.ZodString;
7178
7621
  exists: z.ZodBoolean;
7179
7622
  isDirectory: z.ZodBoolean;
7180
7623
  }, z.core.$strict>;
7181
- declare const CodingFoldersCreateParams: z.ZodObject<{
7182
- path: z.ZodString;
7183
- }, z.core.$strict>;
7184
- declare const CodingFoldersCreateResult: z.ZodObject<{
7624
+ type CodingFolderCheck = z.output<typeof CodingFolderCheck>;
7625
+ declare const CodingRecentFolder: z.ZodObject<{
7185
7626
  path: z.ZodString;
7627
+ lastUsedAt: z.ZodString;
7186
7628
  exists: z.ZodBoolean;
7187
- isDirectory: z.ZodBoolean;
7188
7629
  }, z.core.$strict>;
7189
- declare const CodingStartResult: z.ZodObject<{
7630
+ type CodingRecentFolder = z.output<typeof CodingRecentFolder>;
7631
+ declare const CodingAgentSelectionParams: z.ZodObject<{
7632
+ agent_id: z.ZodString;
7633
+ version_id: z.ZodOptional<z.ZodString>;
7634
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7635
+ }, z.core.$strict>;
7636
+ type CodingAgentSelectionParams = z.output<typeof CodingAgentSelectionParams>;
7637
+ declare const CodingSendResult: z.ZodObject<{
7190
7638
  session: z.ZodObject<{
7191
7639
  id: z.ZodString;
7192
7640
  provider: z.ZodEnum<{
@@ -7286,8 +7734,9 @@ declare const CodingStartResult: z.ZodObject<{
7286
7734
  }, z.core.$strict>>;
7287
7735
  queued: z.ZodBoolean;
7288
7736
  }, z.core.$strict>;
7289
- declare const CodingTakeoverResult: z.ZodObject<{
7290
- session: z.ZodObject<{
7737
+ type CodingSendResult = z.output<typeof CodingSendResult>;
7738
+ declare const CodingSessionsListResult: z.ZodObject<{
7739
+ sessions: z.ZodArray<z.ZodObject<{
7291
7740
  id: z.ZodString;
7292
7741
  provider: z.ZodEnum<{
7293
7742
  claude: "claude";
@@ -7341,18 +7790,8 @@ declare const CodingTakeoverResult: z.ZodObject<{
7341
7790
  replaces: z.ZodNullable<z.ZodString>;
7342
7791
  }, z.core.$strict>>;
7343
7792
  agentRemovedDue: z.ZodBoolean;
7344
- }, z.core.$strict>;
7345
- }, z.core.$strict>;
7346
- declare const CodingSendParams: z.ZodObject<{
7347
- session_id: z.ZodString;
7348
- prompt: z.ZodString;
7349
- client_request_id: z.ZodString;
7350
- }, z.core.$strict>;
7351
- declare const CodingStopParams: z.ZodObject<{
7352
- run_id: z.ZodString;
7353
- }, z.core.$strict>;
7354
- declare const CodingStopResult: z.ZodObject<{
7355
- run: z.ZodNullable<z.ZodObject<{
7793
+ }, z.core.$strict>>;
7794
+ runs: z.ZodRecord<z.ZodString, z.ZodObject<{
7356
7795
  runId: z.ZodString;
7357
7796
  sessionId: z.ZodString;
7358
7797
  provider: z.ZodEnum<{
@@ -7394,30 +7833,78 @@ declare const CodingStopResult: z.ZodObject<{
7394
7833
  label: z.ZodString;
7395
7834
  }, z.core.$strict>>;
7396
7835
  }, z.core.$strict>>;
7836
+ recent: z.ZodArray<z.ZodObject<{
7837
+ target: z.ZodString;
7838
+ title: z.ZodString;
7839
+ provider: z.ZodEnum<{
7840
+ claude: "claude";
7841
+ codex: "codex";
7842
+ }>;
7843
+ sessionId: z.ZodNullable<z.ZodString>;
7844
+ providerSessionId: z.ZodNullable<z.ZodString>;
7845
+ cwd: z.ZodNullable<z.ZodString>;
7846
+ updatedAt: z.ZodString;
7847
+ state: z.ZodEnum<{
7848
+ running: "running";
7849
+ idle: "idle";
7850
+ needs_attention: "needs_attention";
7851
+ new_output: "new_output";
7852
+ elsewhere: "elsewhere";
7853
+ }>;
7854
+ stateLabel: z.ZodNullable<z.ZodString>;
7855
+ pinned: z.ZodBoolean;
7856
+ startedBy: z.ZodNullable<z.ZodObject<{
7857
+ kind: z.ZodEnum<{
7858
+ web: "web";
7859
+ agent: "agent";
7860
+ other: "other";
7861
+ this_computer: "this_computer";
7862
+ phone: "phone";
7863
+ }>;
7864
+ label: z.ZodString;
7865
+ }, z.core.$strict>>;
7866
+ }, z.core.$strict>>;
7867
+ title_status: z.ZodObject<{
7868
+ owner: z.ZodBoolean;
7869
+ pending: z.ZodBoolean;
7870
+ problem: z.ZodNullable<z.ZodString>;
7871
+ renames: z.ZodNullable<z.ZodString>;
7872
+ }, z.core.$strict>;
7397
7873
  }, z.core.$strict>;
7398
- /**
7399
- * Stop a chat running in another app: the process is re-read at stop time and refused with a
7400
- * sentence when it is gone or is now something else (a reused pid).
7401
- */
7402
- declare const CodingStopElsewhereParams: z.ZodObject<{
7403
- provider: z.ZodEnum<{
7404
- claude: "claude";
7405
- codex: "codex";
7406
- }>;
7407
- provider_session_id: z.ZodString;
7408
- pid: z.ZodInt;
7409
- }, z.core.$strict>;
7410
- declare const CodingStopElsewhereResult: z.ZodObject<{
7411
- stopped: z.ZodBoolean;
7412
- message: z.ZodString;
7874
+ type CodingSessionsListResult = z.output<typeof CodingSessionsListResult>;
7875
+ declare const CodingSearchResult: z.ZodObject<{
7876
+ query: z.ZodString;
7877
+ hits: z.ZodArray<z.ZodObject<{
7878
+ provider: z.ZodEnum<{
7879
+ claude: "claude";
7880
+ codex: "codex";
7881
+ }>;
7882
+ providerSessionId: z.ZodString;
7883
+ title: z.ZodString;
7884
+ cwd: z.ZodNullable<z.ZodString>;
7885
+ updatedAt: z.ZodString;
7886
+ where: z.ZodEnum<{
7887
+ content: "content";
7888
+ title: "title";
7889
+ }>;
7890
+ snippet: z.ZodNullable<z.ZodString>;
7891
+ }, z.core.$strict>>;
7892
+ scanned: z.ZodInt;
7893
+ total: z.ZodInt;
7894
+ nextCursor: z.ZodNullable<z.ZodInt>;
7413
7895
  }, z.core.$strict>;
7414
- /** The next run's model or effort; "" = the provider's own default. */
7415
- declare const CodingOptionsSetParams: z.ZodObject<{
7416
- session_id: z.ZodString;
7417
- model: z.ZodOptional<z.ZodString>;
7418
- effort: z.ZodOptional<z.ZodString>;
7896
+ type CodingSearchResult = z.output<typeof CodingSearchResult>;
7897
+ declare const CodingTranscriptRawResult: z.ZodObject<{
7898
+ available: z.ZodBoolean;
7899
+ reason: z.ZodNullable<z.ZodString>;
7900
+ file_name: z.ZodNullable<z.ZodString>;
7901
+ bytes: z.ZodInt;
7902
+ backup_refreshed: z.ZodBoolean;
7903
+ subagents: z.ZodInt;
7419
7904
  }, z.core.$strict>;
7420
- declare const CodingOptionsSetResult: z.ZodObject<{
7905
+ type CodingTranscriptRawResult = z.output<typeof CodingTranscriptRawResult>;
7906
+ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
7907
+ kind: z.ZodLiteral<"session">;
7421
7908
  session: z.ZodObject<{
7422
7909
  id: z.ZodString;
7423
7910
  provider: z.ZodEnum<{
@@ -7473,107 +7960,52 @@ declare const CodingOptionsSetResult: z.ZodObject<{
7473
7960
  }, z.core.$strict>>;
7474
7961
  agentRemovedDue: z.ZodBoolean;
7475
7962
  }, z.core.$strict>;
7476
- }, z.core.$strict>;
7477
- /** Load a different agent from the next message on; absent `agent` removes it. */
7478
- declare const CodingAgentSetParams: z.ZodObject<{
7479
- session_id: z.ZodString;
7480
- agent: z.ZodOptional<z.ZodObject<{
7481
- agent_id: z.ZodString;
7482
- version_id: z.ZodOptional<z.ZodString>;
7483
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7484
- }, z.core.$strict>>;
7485
- }, z.core.$strict>;
7486
- declare const CodingAgentSetResult: z.ZodObject<{
7487
- session: z.ZodObject<{
7488
- id: z.ZodString;
7963
+ }, z.core.$strict>, z.ZodObject<{
7964
+ kind: z.ZodLiteral<"run">;
7965
+ run: z.ZodObject<{
7966
+ runId: z.ZodString;
7967
+ sessionId: z.ZodString;
7489
7968
  provider: z.ZodEnum<{
7490
7969
  claude: "claude";
7491
7970
  codex: "codex";
7492
7971
  }>;
7493
- providerSessionId: z.ZodNullable<z.ZodString>;
7494
7972
  cwd: z.ZodString;
7495
- title: z.ZodString;
7973
+ prompt: z.ZodString;
7496
7974
  model: z.ZodNullable<z.ZodString>;
7497
- effort: z.ZodNullable<z.ZodString>;
7498
- origin: z.ZodEnum<{
7499
- started: "started";
7500
- takeover: "takeover";
7501
- }>;
7502
- createdAt: z.ZodString;
7503
- updatedAt: z.ZodString;
7504
- lastRunId: z.ZodNullable<z.ZodString>;
7505
- lastRunStatus: z.ZodNullable<z.ZodEnum<{
7975
+ status: z.ZodEnum<{
7506
7976
  completed: "completed";
7507
7977
  running: "running";
7508
7978
  failed: "failed";
7509
7979
  stopped: "stopped";
7510
7980
  starting: "starting";
7981
+ }>;
7982
+ startedAt: z.ZodString;
7983
+ endedAt: z.ZodNullable<z.ZodString>;
7984
+ error: z.ZodNullable<z.ZodString>;
7985
+ usage: z.ZodNullable<z.ZodObject<{
7986
+ inputTokens: z.ZodInt;
7987
+ outputTokens: z.ZodInt;
7988
+ cachedInputTokens: z.ZodInt;
7989
+ }, z.core.$strict>>;
7990
+ costUsd: z.ZodNullable<z.ZodNumber>;
7991
+ billing: z.ZodNullable<z.ZodEnum<{
7992
+ unknown: "unknown";
7993
+ subscription: "subscription";
7994
+ api: "api";
7511
7995
  }>>;
7512
- queued: z.ZodArray<z.ZodString>;
7513
- agent: z.ZodNullable<z.ZodObject<{
7514
- agentId: z.ZodString;
7515
- versionId: z.ZodNullable<z.ZodString>;
7516
- versionNumber: z.ZodNullable<z.ZodInt>;
7517
- name: z.ZodString;
7518
- definitionHash: z.ZodString;
7519
- loaded: z.ZodArray<z.ZodObject<{
7520
- part: z.ZodEnum<{
7521
- tools: "tools";
7522
- instructions: "instructions";
7523
- skills: "skills";
7524
- }>;
7525
- loaded: z.ZodInt;
7526
- total: z.ZodInt;
7527
- }, z.core.$strict>>;
7528
- unavailable: z.ZodArray<z.ZodObject<{
7529
- kind: z.ZodString;
7530
- name: z.ZodString;
7531
- reason: z.ZodString;
7532
- }, z.core.$strict>>;
7533
- skills: z.ZodArray<z.ZodString>;
7534
- tools: z.ZodArray<z.ZodString>;
7535
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7536
- blockDue: z.ZodBoolean;
7537
- deliveredAt: z.ZodNullable<z.ZodString>;
7538
- replaces: z.ZodNullable<z.ZodString>;
7996
+ startedBy: z.ZodNullable<z.ZodObject<{
7997
+ kind: z.ZodEnum<{
7998
+ web: "web";
7999
+ agent: "agent";
8000
+ other: "other";
8001
+ this_computer: "this_computer";
8002
+ phone: "phone";
8003
+ }>;
8004
+ label: z.ZodString;
7539
8005
  }, z.core.$strict>>;
7540
- agentRemovedDue: z.ZodBoolean;
7541
8006
  }, z.core.$strict>;
7542
- }, z.core.$strict>;
7543
- /** Whether this computer is signed in to AI Matrx, so an agent can load into a session. */
7544
- declare const CodingAgentsAccessParams: z.ZodObject<{}, z.core.$strict>;
7545
- declare const CodingAgentsAccessResult: z.ZodObject<{
7546
- signedIn: z.ZodBoolean;
7547
- userId: z.ZodNullable<z.ZodString>;
7548
- organizationId: z.ZodNullable<z.ZodString>;
7549
- configured: z.ZodBoolean;
7550
- }, z.core.$strict>;
7551
- declare const CodingTitlesStatusParams: z.ZodObject<{}, z.core.$strict>;
7552
- declare const CodingTitlesStatusResult: z.ZodObject<{
7553
- owner: z.ZodBoolean;
7554
- pending: z.ZodBoolean;
7555
- problem: z.ZodNullable<z.ZodString>;
7556
- renames: z.ZodNullable<z.ZodString>;
7557
- }, z.core.$strict>;
7558
- declare const CodingPrefsListParams: z.ZodObject<{}, z.core.$strict>;
7559
- declare const CodingPrefsListResult: z.ZodObject<{
7560
- preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7561
- title: z.ZodNullable<z.ZodString>;
7562
- pinned: z.ZodBoolean;
7563
- hidden: z.ZodBoolean;
7564
- lastSeenAt: z.ZodNullable<z.ZodString>;
7565
- updatedAt: z.ZodNullable<z.ZodString>;
7566
- }, z.core.$strict>>;
7567
- }, z.core.$strict>;
7568
- /** Rename (`title`; `clear_title` restores the chat's own), pin, hide. */
7569
- declare const CodingPrefsSetParams: z.ZodObject<{
7570
- key: z.ZodString;
7571
- title: z.ZodOptional<z.ZodString>;
7572
- clear_title: z.ZodOptional<z.ZodBoolean>;
7573
- pinned: z.ZodOptional<z.ZodBoolean>;
7574
- hidden: z.ZodOptional<z.ZodBoolean>;
7575
- }, z.core.$strict>;
7576
- declare const CodingPrefsSetResult: z.ZodObject<{
8007
+ }, z.core.$strict>, z.ZodObject<{
8008
+ kind: z.ZodLiteral<"preferences">;
7577
8009
  preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7578
8010
  title: z.ZodNullable<z.ZodString>;
7579
8011
  pinned: z.ZodBoolean;
@@ -7581,12 +8013,10 @@ declare const CodingPrefsSetResult: z.ZodObject<{
7581
8013
  lastSeenAt: z.ZodNullable<z.ZodString>;
7582
8014
  updatedAt: z.ZodNullable<z.ZodString>;
7583
8015
  }, z.core.$strict>>;
7584
- }, z.core.$strict>;
7585
- /** The person opened this chat (on any screen): its "New output" dot clears everywhere. */
7586
- declare const CodingRecentSeenParams: z.ZodObject<{
7587
- target: z.ZodString;
7588
- }, z.core.$strict>;
7589
- declare const CodingRecentSeenResult: z.ZodObject<{
8016
+ }, z.core.$strict>, z.ZodObject<{
8017
+ kind: z.ZodLiteral<"titles">;
8018
+ }, z.core.$strict>, z.ZodObject<{
8019
+ kind: z.ZodLiteral<"recent">;
7590
8020
  recent: z.ZodArray<z.ZodObject<{
7591
8021
  target: z.ZodString;
7592
8022
  title: z.ZodString;
@@ -7618,325 +8048,20 @@ declare const CodingRecentSeenResult: z.ZodObject<{
7618
8048
  label: z.ZodString;
7619
8049
  }, z.core.$strict>>;
7620
8050
  }, z.core.$strict>>;
7621
- }, z.core.$strict>;
7622
- declare const CodingSearchParams: z.ZodObject<{
7623
- query: z.ZodString;
7624
- cursor: z.ZodOptional<z.ZodInt>;
7625
- limit: z.ZodOptional<z.ZodInt>;
7626
- }, z.core.$strict>;
7627
- /**
7628
- * "Ask the desktop app to reconcile this conversation" (the web's sync panel): deliver this one
7629
- * chat's missing entries to AI Matrx through the shared importer. Progress arrives as
7630
- * coding.history.progress for this request.
7631
- */
7632
- declare const CodingReconcileParams: z.ZodObject<{
7633
- provider: z.ZodEnum<{
7634
- claude: "claude";
7635
- codex: "codex";
7636
- }>;
7637
- provider_session_id: z.ZodString;
7638
- }, z.core.$strict>;
7639
- /**
7640
- * FULL DOWNLOAD over any transport: the provider's own complete transcript file, byte for byte,
7641
- * on the op's stream. It also refreshes the person's opt-in cloud backup and counts the chat's
7642
- * subagent transcripts. `available: false` says why (the stream then carries nothing).
7643
- */
7644
- declare const CodingTranscriptRawParams: z.ZodObject<{
7645
- provider: z.ZodEnum<{
7646
- claude: "claude";
7647
- codex: "codex";
7648
- }>;
7649
- provider_session_id: z.ZodString;
7650
- }, z.core.$strict>;
7651
- /** Live changes to the sessions, runs, preferences, titles and recent rows (coding.changed). */
7652
- declare const CodingWatchParams: z.ZodObject<{}, z.core.$strict>;
7653
- declare const CodingWatchResult: z.ZodObject<{
7654
- resource_id: z.ZodString;
7655
- }, z.core.$strict>;
7656
- /**
7657
- * One chat's live items (coding.item), replayed from `since_seq` when it is still in the device's
7658
- * ring; older than the ring → coding.gap first, and the client reads history again.
7659
- */
7660
- declare const CodingSessionWatchParams: z.ZodObject<{
7661
- session_id: z.ZodString;
7662
- since_seq: z.ZodOptional<z.ZodInt>;
7663
- }, z.core.$strict>;
7664
- declare const CodingSessionWatchResult: z.ZodObject<{
7665
- resource_id: z.ZodString;
7666
- seq: z.ZodInt;
7667
- }, z.core.$strict>;
7668
- /**
7669
- * Sent once after hello by a client that knows the core is 1.38+ (an older core answers
7670
- * UNKNOWN_OPERATION; a new hello field would have made every older core refuse the hello).
7671
- */
7672
- declare const SessionIdentifyParams: z.ZodObject<{
7673
- label: z.ZodString;
7674
- }, z.core.$strict>;
7675
- declare const SessionIdentifyResult: z.ZodObject<{
7676
- label: z.ZodString;
7677
- }, z.core.$strict>;
7678
- declare const CodingProviderName: z.ZodEnum<{
7679
- claude: "claude";
7680
- codex: "codex";
7681
- }>;
7682
- type CodingProviderName = z.output<typeof CodingProviderName>;
7683
- declare const CodingRunStatus: z.ZodEnum<{
7684
- completed: "completed";
7685
- running: "running";
7686
- failed: "failed";
7687
- stopped: "stopped";
7688
- starting: "starting";
7689
- }>;
7690
- type CodingRunStatus = z.output<typeof CodingRunStatus>;
7691
- declare const CodingRunUsage: z.ZodObject<{
7692
- inputTokens: z.ZodInt;
7693
- outputTokens: z.ZodInt;
7694
- cachedInputTokens: z.ZodInt;
7695
- }, z.core.$strict>;
7696
- type CodingRunUsage = z.output<typeof CodingRunUsage>;
7697
- /**
7698
- * Who started a run, stamped by the core from the connection (never from call arguments):
7699
- * "This Mac", "iPhone", "Safari on Mac", "An agent".
7700
- */
7701
- declare const CodingStartedBy: z.ZodObject<{
7702
- kind: z.ZodEnum<{
7703
- web: "web";
7704
- agent: "agent";
7705
- other: "other";
7706
- this_computer: "this_computer";
7707
- phone: "phone";
7708
- }>;
7709
- label: z.ZodString;
7710
- }, z.core.$strict>;
7711
- type CodingStartedBy = z.output<typeof CodingStartedBy>;
7712
- declare const CodingRunRecord: z.ZodObject<{
7713
- runId: z.ZodString;
7714
- sessionId: z.ZodString;
7715
- provider: z.ZodEnum<{
7716
- claude: "claude";
7717
- codex: "codex";
7718
- }>;
7719
- cwd: z.ZodString;
7720
- prompt: z.ZodString;
7721
- model: z.ZodNullable<z.ZodString>;
7722
- status: z.ZodEnum<{
7723
- completed: "completed";
7724
- running: "running";
7725
- failed: "failed";
7726
- stopped: "stopped";
7727
- starting: "starting";
7728
- }>;
7729
- startedAt: z.ZodString;
7730
- endedAt: z.ZodNullable<z.ZodString>;
7731
- error: z.ZodNullable<z.ZodString>;
7732
- usage: z.ZodNullable<z.ZodObject<{
7733
- inputTokens: z.ZodInt;
7734
- outputTokens: z.ZodInt;
7735
- cachedInputTokens: z.ZodInt;
7736
- }, z.core.$strict>>;
7737
- costUsd: z.ZodNullable<z.ZodNumber>;
7738
- billing: z.ZodNullable<z.ZodEnum<{
7739
- unknown: "unknown";
7740
- subscription: "subscription";
7741
- api: "api";
7742
- }>>;
7743
- startedBy: z.ZodNullable<z.ZodObject<{
7744
- kind: z.ZodEnum<{
7745
- web: "web";
7746
- agent: "agent";
7747
- other: "other";
7748
- this_computer: "this_computer";
7749
- phone: "phone";
7750
- }>;
7751
- label: z.ZodString;
7752
- }, z.core.$strict>>;
7753
- }, z.core.$strict>;
7754
- type CodingRunRecord = z.output<typeof CodingRunRecord>;
7755
- declare const CodingSessionAgent: z.ZodObject<{
7756
- agentId: z.ZodString;
7757
- versionId: z.ZodNullable<z.ZodString>;
7758
- versionNumber: z.ZodNullable<z.ZodInt>;
7759
- name: z.ZodString;
7760
- definitionHash: z.ZodString;
7761
- loaded: z.ZodArray<z.ZodObject<{
7762
- part: z.ZodEnum<{
7763
- tools: "tools";
7764
- instructions: "instructions";
7765
- skills: "skills";
7766
- }>;
7767
- loaded: z.ZodInt;
7768
- total: z.ZodInt;
7769
- }, z.core.$strict>>;
7770
- unavailable: z.ZodArray<z.ZodObject<{
7771
- kind: z.ZodString;
7772
- name: z.ZodString;
7773
- reason: z.ZodString;
7774
- }, z.core.$strict>>;
7775
- skills: z.ZodArray<z.ZodString>;
7776
- tools: z.ZodArray<z.ZodString>;
7777
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7778
- blockDue: z.ZodBoolean;
7779
- deliveredAt: z.ZodNullable<z.ZodString>;
7780
- replaces: z.ZodNullable<z.ZodString>;
7781
- }, z.core.$strict>;
7782
- type CodingSessionAgent = z.output<typeof CodingSessionAgent>;
7783
- declare const CodingSessionRecord: z.ZodObject<{
7784
- id: z.ZodString;
7785
- provider: z.ZodEnum<{
7786
- claude: "claude";
7787
- codex: "codex";
7788
- }>;
7789
- providerSessionId: z.ZodNullable<z.ZodString>;
7790
- cwd: z.ZodString;
7791
- title: z.ZodString;
7792
- model: z.ZodNullable<z.ZodString>;
7793
- effort: z.ZodNullable<z.ZodString>;
7794
- origin: z.ZodEnum<{
7795
- started: "started";
7796
- takeover: "takeover";
7797
- }>;
7798
- createdAt: z.ZodString;
7799
- updatedAt: z.ZodString;
7800
- lastRunId: z.ZodNullable<z.ZodString>;
7801
- lastRunStatus: z.ZodNullable<z.ZodEnum<{
7802
- completed: "completed";
7803
- running: "running";
7804
- failed: "failed";
7805
- stopped: "stopped";
7806
- starting: "starting";
7807
- }>>;
7808
- queued: z.ZodArray<z.ZodString>;
7809
- agent: z.ZodNullable<z.ZodObject<{
7810
- agentId: z.ZodString;
7811
- versionId: z.ZodNullable<z.ZodString>;
7812
- versionNumber: z.ZodNullable<z.ZodInt>;
7813
- name: z.ZodString;
7814
- definitionHash: z.ZodString;
7815
- loaded: z.ZodArray<z.ZodObject<{
7816
- part: z.ZodEnum<{
7817
- tools: "tools";
7818
- instructions: "instructions";
7819
- skills: "skills";
7820
- }>;
7821
- loaded: z.ZodInt;
7822
- total: z.ZodInt;
7823
- }, z.core.$strict>>;
7824
- unavailable: z.ZodArray<z.ZodObject<{
7825
- kind: z.ZodString;
7826
- name: z.ZodString;
7827
- reason: z.ZodString;
7828
- }, z.core.$strict>>;
7829
- skills: z.ZodArray<z.ZodString>;
7830
- tools: z.ZodArray<z.ZodString>;
7831
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7832
- blockDue: z.ZodBoolean;
7833
- deliveredAt: z.ZodNullable<z.ZodString>;
7834
- replaces: z.ZodNullable<z.ZodString>;
7835
- }, z.core.$strict>>;
7836
- agentRemovedDue: z.ZodBoolean;
7837
- }, z.core.$strict>;
7838
- type CodingSessionRecord = z.output<typeof CodingSessionRecord>;
7839
- declare const CodingActiveElsewhere: z.ZodObject<{
7840
- reason: z.ZodEnum<{
7841
- open: "open";
7842
- process: "process";
7843
- "recent-write": "recent-write";
7844
- "open-tool-call": "open-tool-call";
7845
- }>;
7846
- message: z.ZodString;
7847
- pid: z.ZodNullable<z.ZodInt>;
7848
- }, z.core.$strict>;
7849
- type CodingActiveElsewhere = z.output<typeof CodingActiveElsewhere>;
7850
- declare const CodingDiscoveredChat: z.ZodObject<{
7851
- provider: z.ZodEnum<{
7852
- claude: "claude";
7853
- codex: "codex";
7854
- }>;
7855
- providerSessionId: z.ZodString;
7856
- cwd: z.ZodNullable<z.ZodString>;
7857
- title: z.ZodString;
7858
- titleSource: z.ZodOptional<z.ZodEnum<{
7859
- unknown: "unknown";
7860
- app: "app";
7861
- "app-remembered": "app-remembered";
7862
- "custom-title": "custom-title";
7863
- "ai-title": "ai-title";
7864
- "agent-name": "agent-name";
7865
- summary: "summary";
7866
- "first-prompt": "first-prompt";
7867
- "last-prompt": "last-prompt";
7868
- }>>;
7869
- titlePending: z.ZodOptional<z.ZodBoolean>;
7870
- archived: z.ZodOptional<z.ZodBoolean>;
7871
- scheduled: z.ZodOptional<z.ZodBoolean>;
7872
- unlisted: z.ZodOptional<z.ZodBoolean>;
7873
- unavailable: z.ZodNullable<z.ZodString>;
7874
- updatedAt: z.ZodString;
7875
- source: z.ZodNullable<z.ZodString>;
7876
- activeElsewhere: z.ZodNullable<z.ZodObject<{
7877
- reason: z.ZodEnum<{
7878
- open: "open";
7879
- process: "process";
7880
- "recent-write": "recent-write";
7881
- "open-tool-call": "open-tool-call";
7882
- }>;
7883
- message: z.ZodString;
7884
- pid: z.ZodNullable<z.ZodInt>;
7885
- }, z.core.$strict>>;
7886
- }, z.core.$strict>;
7887
- type CodingDiscoveredChat = z.output<typeof CodingDiscoveredChat>;
7888
- declare const CodingTranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
7889
- kind: z.ZodLiteral<"user">;
7890
- id: z.ZodString;
7891
- text: z.ZodString;
7892
- at: z.ZodNullable<z.ZodString>;
7893
- }, z.core.$strict>, z.ZodObject<{
7894
- kind: z.ZodLiteral<"text">;
7895
- id: z.ZodString;
7896
- text: z.ZodString;
7897
- }, z.core.$strict>, z.ZodObject<{
7898
- kind: z.ZodLiteral<"text-delta">;
7899
- id: z.ZodString;
7900
- text: z.ZodString;
7901
- }, z.core.$strict>, z.ZodObject<{
7902
- kind: z.ZodLiteral<"reasoning">;
7903
- id: z.ZodString;
7904
- text: z.ZodString;
7905
- }, z.core.$strict>, z.ZodObject<{
7906
- kind: z.ZodLiteral<"tool-call">;
7907
- id: z.ZodString;
7908
- name: z.ZodString;
7909
- input: z.ZodUnknown;
7910
- }, z.core.$strict>, z.ZodObject<{
7911
- kind: z.ZodLiteral<"tool-result">;
7912
- id: z.ZodString;
7913
- output: z.ZodString;
7914
- isError: z.ZodBoolean;
7915
- fullBytes: z.ZodOptional<z.ZodInt>;
7916
- }, z.core.$strict>, z.ZodObject<{
7917
- kind: z.ZodLiteral<"usage">;
7918
- usage: z.ZodObject<{
7919
- inputTokens: z.ZodInt;
7920
- outputTokens: z.ZodInt;
7921
- cachedInputTokens: z.ZodInt;
7922
- }, z.core.$strict>;
7923
- costUsd: z.ZodNullable<z.ZodNumber>;
7924
- }, z.core.$strict>, z.ZodObject<{
7925
- kind: z.ZodLiteral<"notice">;
7926
- id: z.ZodString;
7927
- level: z.ZodEnum<{
7928
- warning: "warning";
7929
- info: "info";
7930
- }>;
7931
- text: z.ZodString;
7932
- }, z.core.$strict>, z.ZodObject<{
7933
- kind: z.ZodLiteral<"error">;
7934
- id: z.ZodString;
7935
- text: z.ZodString;
7936
8051
  }, z.core.$strict>], "kind">;
7937
- type CodingTranscriptItem = z.output<typeof CodingTranscriptItem>;
7938
- declare const CodingHistoryRecord: z.ZodObject<{
7939
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8052
+ type CodingChangedEvent = z.output<typeof CodingChangedEvent>;
8053
+ /** Repeated every heartbeat: a watcher that hears nothing for 2.5× the beat says "Not live". */
8054
+ declare const CodingWatchStateEvent: z.ZodObject<{
8055
+ live: z.ZodBoolean;
8056
+ reason: z.ZodNullable<z.ZodString>;
8057
+ beat_ms: z.ZodInt;
8058
+ }, z.core.$strict>;
8059
+ type CodingWatchStateEvent = z.output<typeof CodingWatchStateEvent>;
8060
+ declare const CodingItemEvent: z.ZodObject<{
8061
+ session_id: z.ZodString;
8062
+ run_id: z.ZodString;
8063
+ seq: z.ZodInt;
8064
+ item: z.ZodDiscriminatedUnion<[z.ZodObject<{
7940
8065
  kind: z.ZodLiteral<"user">;
7941
8066
  id: z.ZodString;
7942
8067
  text: z.ZodString;
@@ -7984,207 +8109,231 @@ declare const CodingHistoryRecord: z.ZodObject<{
7984
8109
  kind: z.ZodLiteral<"error">;
7985
8110
  id: z.ZodString;
7986
8111
  text: z.ZodString;
7987
- }, z.core.$strict>], "kind">>;
7988
- truncated: z.ZodBoolean;
7989
- unavailable: z.ZodNullable<z.ZodString>;
8112
+ }, z.core.$strict>], "kind">;
8113
+ }, z.core.$strict>;
8114
+ type CodingItemEvent = z.output<typeof CodingItemEvent>;
8115
+ /** Items between `since_seq` and `seq` are no longer held: read history again. */
8116
+ declare const CodingGapEvent: z.ZodObject<{
8117
+ session_id: z.ZodString;
8118
+ since_seq: z.ZodInt;
7990
8119
  seq: z.ZodInt;
7991
8120
  }, z.core.$strict>;
7992
- type CodingHistoryRecord = z.output<typeof CodingHistoryRecord>;
7993
- declare const CodingProviderStatus: z.ZodObject<{
8121
+ type CodingGapEvent = z.output<typeof CodingGapEvent>;
8122
+ declare const CodingStartParams: z.ZodObject<{
7994
8123
  provider: z.ZodEnum<{
7995
8124
  claude: "claude";
7996
8125
  codex: "codex";
7997
8126
  }>;
7998
- label: z.ZodString;
7999
- installed: z.ZodBoolean;
8000
- version: z.ZodNullable<z.ZodString>;
8001
- loggedIn: z.ZodBoolean;
8002
- billing: z.ZodEnum<{
8003
- unknown: "unknown";
8004
- subscription: "subscription";
8005
- api: "api";
8006
- }>;
8007
- plan: z.ZodNullable<z.ZodString>;
8008
- account: z.ZodNullable<z.ZodString>;
8009
- problem: z.ZodNullable<z.ZodString>;
8010
- fix: z.ZodNullable<z.ZodString>;
8011
- ready: z.ZodBoolean;
8012
- lastProblem: z.ZodNullable<z.ZodObject<{
8013
- kind: z.ZodEnum<{
8014
- "usage-limit": "usage-limit";
8015
- "signed-out": "signed-out";
8016
- }>;
8017
- message: z.ZodString;
8018
- until: z.ZodNullable<z.ZodString>;
8019
- at: z.ZodString;
8020
- }, z.core.$strict>>;
8021
- quota: z.ZodArray<z.ZodObject<{
8022
- label: z.ZodString;
8023
- usedPercent: z.ZodNullable<z.ZodNumber>;
8024
- resetsAt: z.ZodNullable<z.ZodString>;
8025
- valueLabel: z.ZodNullable<z.ZodString>;
8026
- }, z.core.$strict>>;
8027
- models: z.ZodArray<z.ZodObject<{
8028
- id: z.ZodString;
8029
- label: z.ZodString;
8030
- }, z.core.$strict>>;
8031
- efforts: z.ZodArray<z.ZodString>;
8032
- defaultModel: z.ZodNullable<z.ZodObject<{
8033
- id: z.ZodString;
8034
- source: z.ZodEnum<{
8035
- settings: "settings";
8036
- driver: "driver";
8037
- }>;
8038
- }, z.core.$strict>>;
8039
- defaultEffort: z.ZodNullable<z.ZodString>;
8040
- binary: z.ZodNullable<z.ZodObject<{
8041
- path: z.ZodString;
8042
- version: z.ZodNullable<z.ZodString>;
8043
- source: z.ZodEnum<{
8044
- path: "path";
8045
- "desktop-app": "desktop-app";
8046
- "npm-global": "npm-global";
8047
- configured: "configured";
8048
- }>;
8049
- sourceLabel: z.ZodString;
8050
- newer: z.ZodNullable<z.ZodObject<{
8051
- path: z.ZodString;
8052
- version: z.ZodString;
8053
- sourceLabel: z.ZodString;
8054
- }, z.core.$strict>>;
8127
+ cwd: z.ZodString;
8128
+ prompt: z.ZodString;
8129
+ model: z.ZodOptional<z.ZodString>;
8130
+ effort: z.ZodOptional<z.ZodString>;
8131
+ agent: z.ZodOptional<z.ZodObject<{
8132
+ agent_id: z.ZodString;
8133
+ version_id: z.ZodOptional<z.ZodString>;
8134
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8055
8135
  }, z.core.$strict>>;
8136
+ account_profile_id: z.ZodOptional<z.ZodString>;
8137
+ client_request_id: z.ZodString;
8056
8138
  }, z.core.$strict>;
8057
- type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
8058
- /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
8059
- declare const CodingChatPreference: z.ZodObject<{
8060
- title: z.ZodNullable<z.ZodString>;
8061
- pinned: z.ZodBoolean;
8062
- hidden: z.ZodBoolean;
8063
- lastSeenAt: z.ZodNullable<z.ZodString>;
8064
- updatedAt: z.ZodNullable<z.ZodString>;
8065
- }, z.core.$strict>;
8066
- type CodingChatPreference = z.output<typeof CodingChatPreference>;
8067
- declare const CodingTitleStatus: z.ZodObject<{
8068
- owner: z.ZodBoolean;
8069
- pending: z.ZodBoolean;
8070
- problem: z.ZodNullable<z.ZodString>;
8071
- renames: z.ZodNullable<z.ZodString>;
8072
- }, z.core.$strict>;
8073
- type CodingTitleStatus = z.output<typeof CodingTitleStatus>;
8139
+ type CodingStartParams = z.output<typeof CodingStartParams>;
8074
8140
  /**
8075
- * One row of THE recent coding chats (the Mac's Code › Recent and the phone's Sessions list draw
8076
- * exactly these): the chats driven here and the coding apps' own chats, newest first, each with
8077
- * the Mac's dot. `state`: running (amber "Running"), needs_attention (amber: failed or
8078
- * interrupted since the person last looked), new_output (blue), elsewhere (amber "Running in
8079
- * <app>"), idle (no dot).
8141
+ * Continue a chat from another app here. When it is live elsewhere the core refuses with
8142
+ * RESOURCE_BUSY carrying the sentence, unless `confirm_elsewhere` (the person saw the warning).
8080
8143
  */
8081
- declare const CodingRecentRow: z.ZodObject<{
8082
- target: z.ZodString;
8083
- title: z.ZodString;
8144
+ declare const CodingTakeoverParams: z.ZodObject<{
8084
8145
  provider: z.ZodEnum<{
8085
8146
  claude: "claude";
8086
8147
  codex: "codex";
8087
8148
  }>;
8088
- sessionId: z.ZodNullable<z.ZodString>;
8089
- providerSessionId: z.ZodNullable<z.ZodString>;
8090
- cwd: z.ZodNullable<z.ZodString>;
8091
- updatedAt: z.ZodString;
8149
+ provider_session_id: z.ZodString;
8150
+ cwd: z.ZodString;
8151
+ title: z.ZodOptional<z.ZodString>;
8152
+ agent: z.ZodOptional<z.ZodObject<{
8153
+ agent_id: z.ZodString;
8154
+ version_id: z.ZodOptional<z.ZodString>;
8155
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8156
+ }, z.core.$strict>>;
8157
+ confirm_elsewhere: z.ZodOptional<z.ZodBoolean>;
8158
+ }, z.core.$strict>;
8159
+ type CodingTakeoverParams = z.output<typeof CodingTakeoverParams>;
8160
+ declare const CodingReconcileResult: z.ZodObject<{
8092
8161
  state: z.ZodEnum<{
8093
- running: "running";
8094
- idle: "idle";
8095
- needs_attention: "needs_attention";
8096
- new_output: "new_output";
8097
- elsewhere: "elsewhere";
8162
+ blocked: "blocked";
8163
+ done: "done";
8164
+ nothing_to_do: "nothing_to_do";
8098
8165
  }>;
8099
- stateLabel: z.ZodNullable<z.ZodString>;
8100
- pinned: z.ZodBoolean;
8101
- startedBy: z.ZodNullable<z.ZodObject<{
8102
- kind: z.ZodEnum<{
8103
- web: "web";
8104
- agent: "agent";
8105
- other: "other";
8106
- this_computer: "this_computer";
8107
- phone: "phone";
8166
+ summary: z.ZodString;
8167
+ }, z.core.$strict>;
8168
+ type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
8169
+ /** Exactly-once sends (the core keeps these ids 10 minutes). */
8170
+ declare const CodingClientRequestId: z.ZodString;
8171
+ type CodingClientRequestId = z.output<typeof CodingClientRequestId>;
8172
+ declare const CodingSessionAgentPart: z.ZodObject<{
8173
+ part: z.ZodEnum<{
8174
+ tools: "tools";
8175
+ instructions: "instructions";
8176
+ skills: "skills";
8177
+ }>;
8178
+ loaded: z.ZodInt;
8179
+ total: z.ZodInt;
8180
+ }, z.core.$strict>;
8181
+ type CodingSessionAgentPart = z.output<typeof CodingSessionAgentPart>;
8182
+ declare const CodingQuotaWindow: z.ZodObject<{
8183
+ label: z.ZodString;
8184
+ usedPercent: z.ZodNullable<z.ZodNumber>;
8185
+ resetsAt: z.ZodNullable<z.ZodString>;
8186
+ valueLabel: z.ZodNullable<z.ZodString>;
8187
+ }, z.core.$strict>;
8188
+ type CodingQuotaWindow = z.output<typeof CodingQuotaWindow>;
8189
+ declare const CodingProviderProblem: z.ZodObject<{
8190
+ kind: z.ZodEnum<{
8191
+ "usage-limit": "usage-limit";
8192
+ "signed-out": "signed-out";
8193
+ }>;
8194
+ message: z.ZodString;
8195
+ until: z.ZodNullable<z.ZodString>;
8196
+ at: z.ZodString;
8197
+ }, z.core.$strict>;
8198
+ type CodingProviderProblem = z.output<typeof CodingProviderProblem>;
8199
+ declare const CodingProviderBinary: z.ZodObject<{
8200
+ path: z.ZodString;
8201
+ version: z.ZodNullable<z.ZodString>;
8202
+ source: z.ZodEnum<{
8203
+ path: "path";
8204
+ "desktop-app": "desktop-app";
8205
+ "npm-global": "npm-global";
8206
+ configured: "configured";
8207
+ }>;
8208
+ sourceLabel: z.ZodString;
8209
+ newer: z.ZodNullable<z.ZodObject<{
8210
+ path: z.ZodString;
8211
+ version: z.ZodString;
8212
+ sourceLabel: z.ZodString;
8213
+ }, z.core.$strict>>;
8214
+ }, z.core.$strict>;
8215
+ type CodingProviderBinary = z.output<typeof CodingProviderBinary>;
8216
+ declare const CodingProvidersParams: z.ZodObject<{}, z.core.$strict>;
8217
+ type CodingProvidersParams = z.output<typeof CodingProvidersParams>;
8218
+ declare const CodingProvidersResult: z.ZodObject<{
8219
+ providers: z.ZodArray<z.ZodObject<{
8220
+ provider: z.ZodEnum<{
8221
+ claude: "claude";
8222
+ codex: "codex";
8108
8223
  }>;
8109
8224
  label: z.ZodString;
8225
+ installed: z.ZodBoolean;
8226
+ version: z.ZodNullable<z.ZodString>;
8227
+ loggedIn: z.ZodBoolean;
8228
+ billing: z.ZodEnum<{
8229
+ unknown: "unknown";
8230
+ subscription: "subscription";
8231
+ api: "api";
8232
+ }>;
8233
+ plan: z.ZodNullable<z.ZodString>;
8234
+ account: z.ZodNullable<z.ZodString>;
8235
+ problem: z.ZodNullable<z.ZodString>;
8236
+ fix: z.ZodNullable<z.ZodString>;
8237
+ ready: z.ZodBoolean;
8238
+ lastProblem: z.ZodNullable<z.ZodObject<{
8239
+ kind: z.ZodEnum<{
8240
+ "usage-limit": "usage-limit";
8241
+ "signed-out": "signed-out";
8242
+ }>;
8243
+ message: z.ZodString;
8244
+ until: z.ZodNullable<z.ZodString>;
8245
+ at: z.ZodString;
8246
+ }, z.core.$strict>>;
8247
+ quota: z.ZodArray<z.ZodObject<{
8248
+ label: z.ZodString;
8249
+ usedPercent: z.ZodNullable<z.ZodNumber>;
8250
+ resetsAt: z.ZodNullable<z.ZodString>;
8251
+ valueLabel: z.ZodNullable<z.ZodString>;
8252
+ }, z.core.$strict>>;
8253
+ models: z.ZodArray<z.ZodObject<{
8254
+ id: z.ZodString;
8255
+ label: z.ZodString;
8256
+ }, z.core.$strict>>;
8257
+ efforts: z.ZodArray<z.ZodString>;
8258
+ defaultModel: z.ZodNullable<z.ZodObject<{
8259
+ id: z.ZodString;
8260
+ source: z.ZodEnum<{
8261
+ settings: "settings";
8262
+ driver: "driver";
8263
+ }>;
8264
+ }, z.core.$strict>>;
8265
+ defaultEffort: z.ZodNullable<z.ZodString>;
8266
+ binary: z.ZodNullable<z.ZodObject<{
8267
+ path: z.ZodString;
8268
+ version: z.ZodNullable<z.ZodString>;
8269
+ source: z.ZodEnum<{
8270
+ path: "path";
8271
+ "desktop-app": "desktop-app";
8272
+ "npm-global": "npm-global";
8273
+ configured: "configured";
8274
+ }>;
8275
+ sourceLabel: z.ZodString;
8276
+ newer: z.ZodNullable<z.ZodObject<{
8277
+ path: z.ZodString;
8278
+ version: z.ZodString;
8279
+ sourceLabel: z.ZodString;
8280
+ }, z.core.$strict>>;
8281
+ }, z.core.$strict>>;
8110
8282
  }, z.core.$strict>>;
8111
8283
  }, z.core.$strict>;
8112
- type CodingRecentRow = z.output<typeof CodingRecentRow>;
8113
- declare const CodingFolderCheck: z.ZodObject<{
8114
- path: z.ZodString;
8115
- exists: z.ZodBoolean;
8116
- isDirectory: z.ZodBoolean;
8117
- }, z.core.$strict>;
8118
- type CodingFolderCheck = z.output<typeof CodingFolderCheck>;
8119
- declare const CodingRecentFolder: z.ZodObject<{
8120
- path: z.ZodString;
8121
- lastUsedAt: z.ZodString;
8122
- exists: z.ZodBoolean;
8123
- }, z.core.$strict>;
8124
- type CodingRecentFolder = z.output<typeof CodingRecentFolder>;
8125
- declare const CodingAgentSelectionParams: z.ZodObject<{
8126
- agent_id: z.ZodString;
8127
- version_id: z.ZodOptional<z.ZodString>;
8128
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8284
+ type CodingProvidersResult = z.output<typeof CodingProvidersResult>;
8285
+ declare const CodingSessionsListParams: z.ZodObject<{}, z.core.$strict>;
8286
+ type CodingSessionsListParams = z.output<typeof CodingSessionsListParams>;
8287
+ declare const CodingDiscoverParams: z.ZodObject<{
8288
+ limit: z.ZodOptional<z.ZodInt>;
8129
8289
  }, z.core.$strict>;
8130
- type CodingAgentSelectionParams = z.output<typeof CodingAgentSelectionParams>;
8131
- declare const CodingSendResult: z.ZodObject<{
8132
- session: z.ZodObject<{
8133
- id: z.ZodString;
8290
+ type CodingDiscoverParams = z.output<typeof CodingDiscoverParams>;
8291
+ declare const CodingDiscoverResult: z.ZodObject<{
8292
+ chats: z.ZodArray<z.ZodObject<{
8134
8293
  provider: z.ZodEnum<{
8135
8294
  claude: "claude";
8136
8295
  codex: "codex";
8137
8296
  }>;
8138
- providerSessionId: z.ZodNullable<z.ZodString>;
8139
- cwd: z.ZodString;
8297
+ providerSessionId: z.ZodString;
8298
+ cwd: z.ZodNullable<z.ZodString>;
8140
8299
  title: z.ZodString;
8141
- model: z.ZodNullable<z.ZodString>;
8142
- effort: z.ZodNullable<z.ZodString>;
8143
- origin: z.ZodEnum<{
8144
- started: "started";
8145
- takeover: "takeover";
8146
- }>;
8147
- createdAt: z.ZodString;
8148
- updatedAt: z.ZodString;
8149
- lastRunId: z.ZodNullable<z.ZodString>;
8150
- lastRunStatus: z.ZodNullable<z.ZodEnum<{
8151
- completed: "completed";
8152
- running: "running";
8153
- failed: "failed";
8154
- stopped: "stopped";
8155
- starting: "starting";
8300
+ titleSource: z.ZodOptional<z.ZodEnum<{
8301
+ unknown: "unknown";
8302
+ app: "app";
8303
+ "app-remembered": "app-remembered";
8304
+ "custom-title": "custom-title";
8305
+ "ai-title": "ai-title";
8306
+ "agent-name": "agent-name";
8307
+ summary: "summary";
8308
+ "first-prompt": "first-prompt";
8309
+ "last-prompt": "last-prompt";
8156
8310
  }>>;
8157
- queued: z.ZodArray<z.ZodString>;
8158
- agent: z.ZodNullable<z.ZodObject<{
8159
- agentId: z.ZodString;
8160
- versionId: z.ZodNullable<z.ZodString>;
8161
- versionNumber: z.ZodNullable<z.ZodInt>;
8162
- name: z.ZodString;
8163
- definitionHash: z.ZodString;
8164
- loaded: z.ZodArray<z.ZodObject<{
8165
- part: z.ZodEnum<{
8166
- tools: "tools";
8167
- instructions: "instructions";
8168
- skills: "skills";
8169
- }>;
8170
- loaded: z.ZodInt;
8171
- total: z.ZodInt;
8172
- }, z.core.$strict>>;
8173
- unavailable: z.ZodArray<z.ZodObject<{
8174
- kind: z.ZodString;
8175
- name: z.ZodString;
8176
- reason: z.ZodString;
8177
- }, z.core.$strict>>;
8178
- skills: z.ZodArray<z.ZodString>;
8179
- tools: z.ZodArray<z.ZodString>;
8180
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8181
- blockDue: z.ZodBoolean;
8182
- deliveredAt: z.ZodNullable<z.ZodString>;
8183
- replaces: z.ZodNullable<z.ZodString>;
8311
+ titlePending: z.ZodOptional<z.ZodBoolean>;
8312
+ archived: z.ZodOptional<z.ZodBoolean>;
8313
+ scheduled: z.ZodOptional<z.ZodBoolean>;
8314
+ unlisted: z.ZodOptional<z.ZodBoolean>;
8315
+ unavailable: z.ZodNullable<z.ZodString>;
8316
+ updatedAt: z.ZodString;
8317
+ source: z.ZodNullable<z.ZodString>;
8318
+ activeElsewhere: z.ZodNullable<z.ZodObject<{
8319
+ reason: z.ZodEnum<{
8320
+ open: "open";
8321
+ process: "process";
8322
+ "recent-write": "recent-write";
8323
+ "open-tool-call": "open-tool-call";
8324
+ }>;
8325
+ message: z.ZodString;
8326
+ pid: z.ZodNullable<z.ZodInt>;
8184
8327
  }, z.core.$strict>>;
8185
- agentRemovedDue: z.ZodBoolean;
8186
- }, z.core.$strict>;
8187
- run: z.ZodNullable<z.ZodObject<{
8328
+ }, z.core.$strict>>;
8329
+ }, z.core.$strict>;
8330
+ type CodingDiscoverResult = z.output<typeof CodingDiscoverResult>;
8331
+ declare const CodingRunsListParams: z.ZodObject<{
8332
+ session_id: z.ZodString;
8333
+ }, z.core.$strict>;
8334
+ type CodingRunsListParams = z.output<typeof CodingRunsListParams>;
8335
+ declare const CodingRunsListResult: z.ZodObject<{
8336
+ runs: z.ZodArray<z.ZodObject<{
8188
8337
  runId: z.ZodString;
8189
8338
  sessionId: z.ZodString;
8190
8339
  provider: z.ZodEnum<{
@@ -8226,11 +8375,79 @@ declare const CodingSendResult: z.ZodObject<{
8226
8375
  label: z.ZodString;
8227
8376
  }, z.core.$strict>>;
8228
8377
  }, z.core.$strict>>;
8229
- queued: z.ZodBoolean;
8230
8378
  }, z.core.$strict>;
8231
- type CodingSendResult = z.output<typeof CodingSendResult>;
8232
- declare const CodingSessionsListResult: z.ZodObject<{
8233
- sessions: z.ZodArray<z.ZodObject<{
8379
+ type CodingRunsListResult = z.output<typeof CodingRunsListResult>;
8380
+ /** A first page defaults to the device's config (256 KB); "Show earlier" asks for more. */
8381
+ declare const CodingHistoryParams: z.ZodObject<{
8382
+ session_id: z.ZodString;
8383
+ max_bytes: z.ZodOptional<z.ZodInt>;
8384
+ }, z.core.$strict>;
8385
+ type CodingHistoryParams = z.output<typeof CodingHistoryParams>;
8386
+ declare const CodingTranscriptReadParams: z.ZodObject<{
8387
+ provider: z.ZodEnum<{
8388
+ claude: "claude";
8389
+ codex: "codex";
8390
+ }>;
8391
+ provider_session_id: z.ZodString;
8392
+ max_bytes: z.ZodOptional<z.ZodInt>;
8393
+ }, z.core.$strict>;
8394
+ type CodingTranscriptReadParams = z.output<typeof CodingTranscriptReadParams>;
8395
+ /** The whole of one tool output the transcript carried only the start of. */
8396
+ declare const CodingItemFullParams: z.ZodObject<{
8397
+ provider: z.ZodEnum<{
8398
+ claude: "claude";
8399
+ codex: "codex";
8400
+ }>;
8401
+ provider_session_id: z.ZodString;
8402
+ item_id: z.ZodString;
8403
+ }, z.core.$strict>;
8404
+ type CodingItemFullParams = z.output<typeof CodingItemFullParams>;
8405
+ declare const CodingItemFullResult: z.ZodObject<{
8406
+ output: z.ZodString;
8407
+ bytes: z.ZodInt;
8408
+ }, z.core.$strict>;
8409
+ type CodingItemFullResult = z.output<typeof CodingItemFullResult>;
8410
+ declare const CodingActivityParams: z.ZodObject<{
8411
+ provider: z.ZodEnum<{
8412
+ claude: "claude";
8413
+ codex: "codex";
8414
+ }>;
8415
+ provider_session_id: z.ZodString;
8416
+ }, z.core.$strict>;
8417
+ type CodingActivityParams = z.output<typeof CodingActivityParams>;
8418
+ declare const CodingActivityResult: z.ZodObject<{
8419
+ active: z.ZodNullable<z.ZodObject<{
8420
+ reason: z.ZodEnum<{
8421
+ open: "open";
8422
+ process: "process";
8423
+ "recent-write": "recent-write";
8424
+ "open-tool-call": "open-tool-call";
8425
+ }>;
8426
+ message: z.ZodString;
8427
+ pid: z.ZodNullable<z.ZodInt>;
8428
+ }, z.core.$strict>>;
8429
+ }, z.core.$strict>;
8430
+ type CodingActivityResult = z.output<typeof CodingActivityResult>;
8431
+ declare const CodingFoldersRecentParams: z.ZodObject<{}, z.core.$strict>;
8432
+ type CodingFoldersRecentParams = z.output<typeof CodingFoldersRecentParams>;
8433
+ declare const CodingFoldersRecentResult: z.ZodObject<{
8434
+ folders: z.ZodArray<z.ZodObject<{
8435
+ path: z.ZodString;
8436
+ lastUsedAt: z.ZodString;
8437
+ exists: z.ZodBoolean;
8438
+ }, z.core.$strict>>;
8439
+ }, z.core.$strict>;
8440
+ type CodingFoldersRecentResult = z.output<typeof CodingFoldersRecentResult>;
8441
+ declare const CodingFoldersCheckParams: z.ZodObject<{
8442
+ path: z.ZodString;
8443
+ }, z.core.$strict>;
8444
+ type CodingFoldersCheckParams = z.output<typeof CodingFoldersCheckParams>;
8445
+ declare const CodingFoldersCreateParams: z.ZodObject<{
8446
+ path: z.ZodString;
8447
+ }, z.core.$strict>;
8448
+ type CodingFoldersCreateParams = z.output<typeof CodingFoldersCreateParams>;
8449
+ declare const CodingTakeoverResult: z.ZodObject<{
8450
+ session: z.ZodObject<{
8234
8451
  id: z.ZodString;
8235
8452
  provider: z.ZodEnum<{
8236
8453
  claude: "claude";
@@ -8284,8 +8501,21 @@ declare const CodingSessionsListResult: z.ZodObject<{
8284
8501
  replaces: z.ZodNullable<z.ZodString>;
8285
8502
  }, z.core.$strict>>;
8286
8503
  agentRemovedDue: z.ZodBoolean;
8287
- }, z.core.$strict>>;
8288
- runs: z.ZodRecord<z.ZodString, z.ZodObject<{
8504
+ }, z.core.$strict>;
8505
+ }, z.core.$strict>;
8506
+ type CodingTakeoverResult = z.output<typeof CodingTakeoverResult>;
8507
+ declare const CodingSendParams: z.ZodObject<{
8508
+ session_id: z.ZodString;
8509
+ prompt: z.ZodString;
8510
+ client_request_id: z.ZodString;
8511
+ }, z.core.$strict>;
8512
+ type CodingSendParams = z.output<typeof CodingSendParams>;
8513
+ declare const CodingStopParams: z.ZodObject<{
8514
+ run_id: z.ZodString;
8515
+ }, z.core.$strict>;
8516
+ type CodingStopParams = z.output<typeof CodingStopParams>;
8517
+ declare const CodingStopResult: z.ZodObject<{
8518
+ run: z.ZodNullable<z.ZodObject<{
8289
8519
  runId: z.ZodString;
8290
8520
  sessionId: z.ZodString;
8291
8521
  provider: z.ZodEnum<{
@@ -8327,78 +8557,34 @@ declare const CodingSessionsListResult: z.ZodObject<{
8327
8557
  label: z.ZodString;
8328
8558
  }, z.core.$strict>>;
8329
8559
  }, z.core.$strict>>;
8330
- recent: z.ZodArray<z.ZodObject<{
8331
- target: z.ZodString;
8332
- title: z.ZodString;
8333
- provider: z.ZodEnum<{
8334
- claude: "claude";
8335
- codex: "codex";
8336
- }>;
8337
- sessionId: z.ZodNullable<z.ZodString>;
8338
- providerSessionId: z.ZodNullable<z.ZodString>;
8339
- cwd: z.ZodNullable<z.ZodString>;
8340
- updatedAt: z.ZodString;
8341
- state: z.ZodEnum<{
8342
- running: "running";
8343
- idle: "idle";
8344
- needs_attention: "needs_attention";
8345
- new_output: "new_output";
8346
- elsewhere: "elsewhere";
8347
- }>;
8348
- stateLabel: z.ZodNullable<z.ZodString>;
8349
- pinned: z.ZodBoolean;
8350
- startedBy: z.ZodNullable<z.ZodObject<{
8351
- kind: z.ZodEnum<{
8352
- web: "web";
8353
- agent: "agent";
8354
- other: "other";
8355
- this_computer: "this_computer";
8356
- phone: "phone";
8357
- }>;
8358
- label: z.ZodString;
8359
- }, z.core.$strict>>;
8360
- }, z.core.$strict>>;
8361
- title_status: z.ZodObject<{
8362
- owner: z.ZodBoolean;
8363
- pending: z.ZodBoolean;
8364
- problem: z.ZodNullable<z.ZodString>;
8365
- renames: z.ZodNullable<z.ZodString>;
8366
- }, z.core.$strict>;
8367
8560
  }, z.core.$strict>;
8368
- type CodingSessionsListResult = z.output<typeof CodingSessionsListResult>;
8369
- declare const CodingSearchResult: z.ZodObject<{
8370
- query: z.ZodString;
8371
- hits: z.ZodArray<z.ZodObject<{
8372
- provider: z.ZodEnum<{
8373
- claude: "claude";
8374
- codex: "codex";
8375
- }>;
8376
- providerSessionId: z.ZodString;
8377
- title: z.ZodString;
8378
- cwd: z.ZodNullable<z.ZodString>;
8379
- updatedAt: z.ZodString;
8380
- where: z.ZodEnum<{
8381
- content: "content";
8382
- title: "title";
8383
- }>;
8384
- snippet: z.ZodNullable<z.ZodString>;
8385
- }, z.core.$strict>>;
8386
- scanned: z.ZodInt;
8387
- total: z.ZodInt;
8388
- nextCursor: z.ZodNullable<z.ZodInt>;
8561
+ type CodingStopResult = z.output<typeof CodingStopResult>;
8562
+ /**
8563
+ * Stop a chat running in another app: the process is re-read at stop time and refused with a
8564
+ * sentence when it is gone or is now something else (a reused pid).
8565
+ */
8566
+ declare const CodingStopElsewhereParams: z.ZodObject<{
8567
+ provider: z.ZodEnum<{
8568
+ claude: "claude";
8569
+ codex: "codex";
8570
+ }>;
8571
+ provider_session_id: z.ZodString;
8572
+ pid: z.ZodInt;
8389
8573
  }, z.core.$strict>;
8390
- type CodingSearchResult = z.output<typeof CodingSearchResult>;
8391
- declare const CodingTranscriptRawResult: z.ZodObject<{
8392
- available: z.ZodBoolean;
8393
- reason: z.ZodNullable<z.ZodString>;
8394
- file_name: z.ZodNullable<z.ZodString>;
8395
- bytes: z.ZodInt;
8396
- backup_refreshed: z.ZodBoolean;
8397
- subagents: z.ZodInt;
8574
+ type CodingStopElsewhereParams = z.output<typeof CodingStopElsewhereParams>;
8575
+ declare const CodingStopElsewhereResult: z.ZodObject<{
8576
+ stopped: z.ZodBoolean;
8577
+ message: z.ZodString;
8398
8578
  }, z.core.$strict>;
8399
- type CodingTranscriptRawResult = z.output<typeof CodingTranscriptRawResult>;
8400
- declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8401
- kind: z.ZodLiteral<"session">;
8579
+ type CodingStopElsewhereResult = z.output<typeof CodingStopElsewhereResult>;
8580
+ /** The next run's model or effort; "" = the provider's own default. */
8581
+ declare const CodingOptionsSetParams: z.ZodObject<{
8582
+ session_id: z.ZodString;
8583
+ model: z.ZodOptional<z.ZodString>;
8584
+ effort: z.ZodOptional<z.ZodString>;
8585
+ }, z.core.$strict>;
8586
+ type CodingOptionsSetParams = z.output<typeof CodingOptionsSetParams>;
8587
+ declare const CodingOptionsSetResult: z.ZodObject<{
8402
8588
  session: z.ZodObject<{
8403
8589
  id: z.ZodString;
8404
8590
  provider: z.ZodEnum<{
@@ -8454,52 +8640,91 @@ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8454
8640
  }, z.core.$strict>>;
8455
8641
  agentRemovedDue: z.ZodBoolean;
8456
8642
  }, z.core.$strict>;
8457
- }, z.core.$strict>, z.ZodObject<{
8458
- kind: z.ZodLiteral<"run">;
8459
- run: z.ZodObject<{
8460
- runId: z.ZodString;
8461
- sessionId: z.ZodString;
8643
+ }, z.core.$strict>;
8644
+ type CodingOptionsSetResult = z.output<typeof CodingOptionsSetResult>;
8645
+ /** Load a different agent from the next message on; absent `agent` removes it. */
8646
+ declare const CodingAgentSetParams: z.ZodObject<{
8647
+ session_id: z.ZodString;
8648
+ agent: z.ZodOptional<z.ZodObject<{
8649
+ agent_id: z.ZodString;
8650
+ version_id: z.ZodOptional<z.ZodString>;
8651
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8652
+ }, z.core.$strict>>;
8653
+ }, z.core.$strict>;
8654
+ type CodingAgentSetParams = z.output<typeof CodingAgentSetParams>;
8655
+ declare const CodingAgentSetResult: z.ZodObject<{
8656
+ session: z.ZodObject<{
8657
+ id: z.ZodString;
8462
8658
  provider: z.ZodEnum<{
8463
8659
  claude: "claude";
8464
8660
  codex: "codex";
8465
8661
  }>;
8662
+ providerSessionId: z.ZodNullable<z.ZodString>;
8466
8663
  cwd: z.ZodString;
8467
- prompt: z.ZodString;
8664
+ title: z.ZodString;
8468
8665
  model: z.ZodNullable<z.ZodString>;
8469
- status: z.ZodEnum<{
8666
+ effort: z.ZodNullable<z.ZodString>;
8667
+ origin: z.ZodEnum<{
8668
+ started: "started";
8669
+ takeover: "takeover";
8670
+ }>;
8671
+ createdAt: z.ZodString;
8672
+ updatedAt: z.ZodString;
8673
+ lastRunId: z.ZodNullable<z.ZodString>;
8674
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
8470
8675
  completed: "completed";
8471
8676
  running: "running";
8472
8677
  failed: "failed";
8473
8678
  stopped: "stopped";
8474
8679
  starting: "starting";
8475
- }>;
8476
- startedAt: z.ZodString;
8477
- endedAt: z.ZodNullable<z.ZodString>;
8478
- error: z.ZodNullable<z.ZodString>;
8479
- usage: z.ZodNullable<z.ZodObject<{
8480
- inputTokens: z.ZodInt;
8481
- outputTokens: z.ZodInt;
8482
- cachedInputTokens: z.ZodInt;
8483
- }, z.core.$strict>>;
8484
- costUsd: z.ZodNullable<z.ZodNumber>;
8485
- billing: z.ZodNullable<z.ZodEnum<{
8486
- unknown: "unknown";
8487
- subscription: "subscription";
8488
- api: "api";
8489
8680
  }>>;
8490
- startedBy: z.ZodNullable<z.ZodObject<{
8491
- kind: z.ZodEnum<{
8492
- web: "web";
8493
- agent: "agent";
8494
- other: "other";
8495
- this_computer: "this_computer";
8496
- phone: "phone";
8497
- }>;
8498
- label: z.ZodString;
8681
+ queued: z.ZodArray<z.ZodString>;
8682
+ agent: z.ZodNullable<z.ZodObject<{
8683
+ agentId: z.ZodString;
8684
+ versionId: z.ZodNullable<z.ZodString>;
8685
+ versionNumber: z.ZodNullable<z.ZodInt>;
8686
+ name: z.ZodString;
8687
+ definitionHash: z.ZodString;
8688
+ loaded: z.ZodArray<z.ZodObject<{
8689
+ part: z.ZodEnum<{
8690
+ tools: "tools";
8691
+ instructions: "instructions";
8692
+ skills: "skills";
8693
+ }>;
8694
+ loaded: z.ZodInt;
8695
+ total: z.ZodInt;
8696
+ }, z.core.$strict>>;
8697
+ unavailable: z.ZodArray<z.ZodObject<{
8698
+ kind: z.ZodString;
8699
+ name: z.ZodString;
8700
+ reason: z.ZodString;
8701
+ }, z.core.$strict>>;
8702
+ skills: z.ZodArray<z.ZodString>;
8703
+ tools: z.ZodArray<z.ZodString>;
8704
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8705
+ blockDue: z.ZodBoolean;
8706
+ deliveredAt: z.ZodNullable<z.ZodString>;
8707
+ replaces: z.ZodNullable<z.ZodString>;
8499
8708
  }, z.core.$strict>>;
8709
+ agentRemovedDue: z.ZodBoolean;
8500
8710
  }, z.core.$strict>;
8501
- }, z.core.$strict>, z.ZodObject<{
8502
- kind: z.ZodLiteral<"preferences">;
8711
+ }, z.core.$strict>;
8712
+ type CodingAgentSetResult = z.output<typeof CodingAgentSetResult>;
8713
+ /** Whether this computer is signed in to AI Matrx, so an agent can load into a session. */
8714
+ declare const CodingAgentsAccessParams: z.ZodObject<{}, z.core.$strict>;
8715
+ type CodingAgentsAccessParams = z.output<typeof CodingAgentsAccessParams>;
8716
+ declare const CodingAgentsAccessResult: z.ZodObject<{
8717
+ signedIn: z.ZodBoolean;
8718
+ userId: z.ZodNullable<z.ZodString>;
8719
+ organizationId: z.ZodNullable<z.ZodString>;
8720
+ configured: z.ZodBoolean;
8721
+ }, z.core.$strict>;
8722
+ type CodingAgentsAccessResult = z.output<typeof CodingAgentsAccessResult>;
8723
+ declare const CodingTitlesStatusParams: z.ZodObject<{}, z.core.$strict>;
8724
+ type CodingTitlesStatusParams = z.output<typeof CodingTitlesStatusParams>;
8725
+ declare const CodingPrefsListParams: z.ZodObject<{}, z.core.$strict>;
8726
+ type CodingPrefsListParams = z.output<typeof CodingPrefsListParams>;
8727
+ declare const CodingPrefsListResult: z.ZodObject<{
8503
8728
  preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
8504
8729
  title: z.ZodNullable<z.ZodString>;
8505
8730
  pinned: z.ZodBoolean;
@@ -8507,10 +8732,23 @@ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8507
8732
  lastSeenAt: z.ZodNullable<z.ZodString>;
8508
8733
  updatedAt: z.ZodNullable<z.ZodString>;
8509
8734
  }, z.core.$strict>>;
8510
- }, z.core.$strict>, z.ZodObject<{
8511
- kind: z.ZodLiteral<"titles">;
8512
- }, z.core.$strict>, z.ZodObject<{
8513
- kind: z.ZodLiteral<"recent">;
8735
+ }, z.core.$strict>;
8736
+ type CodingPrefsListResult = z.output<typeof CodingPrefsListResult>;
8737
+ /** Rename (`title`; `clear_title` restores the chat's own), pin, hide. */
8738
+ declare const CodingPrefsSetParams: z.ZodObject<{
8739
+ key: z.ZodString;
8740
+ title: z.ZodOptional<z.ZodString>;
8741
+ clear_title: z.ZodOptional<z.ZodBoolean>;
8742
+ pinned: z.ZodOptional<z.ZodBoolean>;
8743
+ hidden: z.ZodOptional<z.ZodBoolean>;
8744
+ }, z.core.$strict>;
8745
+ type CodingPrefsSetParams = z.output<typeof CodingPrefsSetParams>;
8746
+ /** The person opened this chat (on any screen): its "New output" dot clears everywhere. */
8747
+ declare const CodingRecentSeenParams: z.ZodObject<{
8748
+ target: z.ZodString;
8749
+ }, z.core.$strict>;
8750
+ type CodingRecentSeenParams = z.output<typeof CodingRecentSeenParams>;
8751
+ declare const CodingRecentSeenResult: z.ZodObject<{
8514
8752
  recent: z.ZodArray<z.ZodObject<{
8515
8753
  target: z.ZodString;
8516
8754
  title: z.ZodString;
@@ -8542,124 +8780,73 @@ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8542
8780
  label: z.ZodString;
8543
8781
  }, z.core.$strict>>;
8544
8782
  }, z.core.$strict>>;
8545
- }, z.core.$strict>], "kind">;
8546
- type CodingChangedEvent = z.output<typeof CodingChangedEvent>;
8547
- /** Repeated every heartbeat: a watcher that hears nothing for 2.5× the beat says "Not live". */
8548
- declare const CodingWatchStateEvent: z.ZodObject<{
8549
- live: z.ZodBoolean;
8550
- reason: z.ZodNullable<z.ZodString>;
8551
- beat_ms: z.ZodInt;
8552
8783
  }, z.core.$strict>;
8553
- type CodingWatchStateEvent = z.output<typeof CodingWatchStateEvent>;
8554
- declare const CodingItemEvent: z.ZodObject<{
8555
- session_id: z.ZodString;
8556
- run_id: z.ZodString;
8557
- seq: z.ZodInt;
8558
- item: z.ZodDiscriminatedUnion<[z.ZodObject<{
8559
- kind: z.ZodLiteral<"user">;
8560
- id: z.ZodString;
8561
- text: z.ZodString;
8562
- at: z.ZodNullable<z.ZodString>;
8563
- }, z.core.$strict>, z.ZodObject<{
8564
- kind: z.ZodLiteral<"text">;
8565
- id: z.ZodString;
8566
- text: z.ZodString;
8567
- }, z.core.$strict>, z.ZodObject<{
8568
- kind: z.ZodLiteral<"text-delta">;
8569
- id: z.ZodString;
8570
- text: z.ZodString;
8571
- }, z.core.$strict>, z.ZodObject<{
8572
- kind: z.ZodLiteral<"reasoning">;
8573
- id: z.ZodString;
8574
- text: z.ZodString;
8575
- }, z.core.$strict>, z.ZodObject<{
8576
- kind: z.ZodLiteral<"tool-call">;
8577
- id: z.ZodString;
8578
- name: z.ZodString;
8579
- input: z.ZodUnknown;
8580
- }, z.core.$strict>, z.ZodObject<{
8581
- kind: z.ZodLiteral<"tool-result">;
8582
- id: z.ZodString;
8583
- output: z.ZodString;
8584
- isError: z.ZodBoolean;
8585
- fullBytes: z.ZodOptional<z.ZodInt>;
8586
- }, z.core.$strict>, z.ZodObject<{
8587
- kind: z.ZodLiteral<"usage">;
8588
- usage: z.ZodObject<{
8589
- inputTokens: z.ZodInt;
8590
- outputTokens: z.ZodInt;
8591
- cachedInputTokens: z.ZodInt;
8592
- }, z.core.$strict>;
8593
- costUsd: z.ZodNullable<z.ZodNumber>;
8594
- }, z.core.$strict>, z.ZodObject<{
8595
- kind: z.ZodLiteral<"notice">;
8596
- id: z.ZodString;
8597
- level: z.ZodEnum<{
8598
- warning: "warning";
8599
- info: "info";
8600
- }>;
8601
- text: z.ZodString;
8602
- }, z.core.$strict>, z.ZodObject<{
8603
- kind: z.ZodLiteral<"error">;
8604
- id: z.ZodString;
8605
- text: z.ZodString;
8606
- }, z.core.$strict>], "kind">;
8784
+ type CodingRecentSeenResult = z.output<typeof CodingRecentSeenResult>;
8785
+ declare const CodingSearchParams: z.ZodObject<{
8786
+ query: z.ZodString;
8787
+ cursor: z.ZodOptional<z.ZodInt>;
8788
+ limit: z.ZodOptional<z.ZodInt>;
8607
8789
  }, z.core.$strict>;
8608
- type CodingItemEvent = z.output<typeof CodingItemEvent>;
8609
- /** Items between `since_seq` and `seq` are no longer held: read history again. */
8610
- declare const CodingGapEvent: z.ZodObject<{
8611
- session_id: z.ZodString;
8612
- since_seq: z.ZodInt;
8613
- seq: z.ZodInt;
8790
+ type CodingSearchParams = z.output<typeof CodingSearchParams>;
8791
+ /**
8792
+ * "Ask the desktop app to reconcile this conversation" (the web's sync panel): deliver this one
8793
+ * chat's missing entries to AI Matrx through the shared importer. Progress arrives as
8794
+ * coding.history.progress for this request.
8795
+ */
8796
+ declare const CodingReconcileParams: z.ZodObject<{
8797
+ provider: z.ZodEnum<{
8798
+ claude: "claude";
8799
+ codex: "codex";
8800
+ }>;
8801
+ provider_session_id: z.ZodString;
8614
8802
  }, z.core.$strict>;
8615
- type CodingGapEvent = z.output<typeof CodingGapEvent>;
8616
- declare const CodingStartParams: z.ZodObject<{
8803
+ type CodingReconcileParams = z.output<typeof CodingReconcileParams>;
8804
+ /**
8805
+ * FULL DOWNLOAD over any transport: the provider's own complete transcript file, byte for byte,
8806
+ * on the op's stream. It also refreshes the person's opt-in cloud backup and counts the chat's
8807
+ * subagent transcripts. `available: false` says why (the stream then carries nothing).
8808
+ */
8809
+ declare const CodingTranscriptRawParams: z.ZodObject<{
8617
8810
  provider: z.ZodEnum<{
8618
8811
  claude: "claude";
8619
8812
  codex: "codex";
8620
8813
  }>;
8621
- cwd: z.ZodString;
8622
- prompt: z.ZodString;
8623
- model: z.ZodOptional<z.ZodString>;
8624
- effort: z.ZodOptional<z.ZodString>;
8625
- agent: z.ZodOptional<z.ZodObject<{
8626
- agent_id: z.ZodString;
8627
- version_id: z.ZodOptional<z.ZodString>;
8628
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8629
- }, z.core.$strict>>;
8630
- account_profile_id: z.ZodOptional<z.ZodString>;
8631
- client_request_id: z.ZodString;
8814
+ provider_session_id: z.ZodString;
8815
+ }, z.core.$strict>;
8816
+ type CodingTranscriptRawParams = z.output<typeof CodingTranscriptRawParams>;
8817
+ /** Live changes to the sessions, runs, preferences, titles and recent rows (coding.changed). */
8818
+ declare const CodingWatchParams: z.ZodObject<{}, z.core.$strict>;
8819
+ type CodingWatchParams = z.output<typeof CodingWatchParams>;
8820
+ declare const CodingWatchResult: z.ZodObject<{
8821
+ resource_id: z.ZodString;
8822
+ }, z.core.$strict>;
8823
+ type CodingWatchResult = z.output<typeof CodingWatchResult>;
8824
+ /**
8825
+ * One chat's live items (coding.item), replayed from `since_seq` when it is still in the device's
8826
+ * ring; older than the ring → coding.gap first, and the client reads history again.
8827
+ */
8828
+ declare const CodingSessionWatchParams: z.ZodObject<{
8829
+ session_id: z.ZodString;
8830
+ since_seq: z.ZodOptional<z.ZodInt>;
8831
+ }, z.core.$strict>;
8832
+ type CodingSessionWatchParams = z.output<typeof CodingSessionWatchParams>;
8833
+ declare const CodingSessionWatchResult: z.ZodObject<{
8834
+ resource_id: z.ZodString;
8835
+ seq: z.ZodInt;
8632
8836
  }, z.core.$strict>;
8633
- type CodingStartParams = z.output<typeof CodingStartParams>;
8837
+ type CodingSessionWatchResult = z.output<typeof CodingSessionWatchResult>;
8634
8838
  /**
8635
- * Continue a chat from another app here. When it is live elsewhere the core refuses with
8636
- * RESOURCE_BUSY carrying the sentence, unless `confirm_elsewhere` (the person saw the warning).
8839
+ * Sent once after hello by a client that knows the core is 1.38+ (an older core answers
8840
+ * UNKNOWN_OPERATION; a new hello field would have made every older core refuse the hello).
8637
8841
  */
8638
- declare const CodingTakeoverParams: z.ZodObject<{
8639
- provider: z.ZodEnum<{
8640
- claude: "claude";
8641
- codex: "codex";
8642
- }>;
8643
- provider_session_id: z.ZodString;
8644
- cwd: z.ZodString;
8645
- title: z.ZodOptional<z.ZodString>;
8646
- agent: z.ZodOptional<z.ZodObject<{
8647
- agent_id: z.ZodString;
8648
- version_id: z.ZodOptional<z.ZodString>;
8649
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8650
- }, z.core.$strict>>;
8651
- confirm_elsewhere: z.ZodOptional<z.ZodBoolean>;
8842
+ declare const SessionIdentifyParams: z.ZodObject<{
8843
+ label: z.ZodString;
8652
8844
  }, z.core.$strict>;
8653
- type CodingTakeoverParams = z.output<typeof CodingTakeoverParams>;
8654
- declare const CodingReconcileResult: z.ZodObject<{
8655
- state: z.ZodEnum<{
8656
- blocked: "blocked";
8657
- done: "done";
8658
- nothing_to_do: "nothing_to_do";
8659
- }>;
8660
- summary: z.ZodString;
8845
+ type SessionIdentifyParams = z.output<typeof SessionIdentifyParams>;
8846
+ declare const SessionIdentifyResult: z.ZodObject<{
8847
+ label: z.ZodString;
8661
8848
  }, z.core.$strict>;
8662
- type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
8849
+ type SessionIdentifyResult = z.output<typeof SessionIdentifyResult>;
8663
8850
 
8664
8851
  /**
8665
8852
  * @ai-matrx/desktop-protocol — cap browser (protocol 1.28): the AI Matrx browser extension as a
@@ -8676,107 +8863,6 @@ type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
8676
8863
  * and may say `browser.progress` while a person confirms the action in Chrome.
8677
8864
  */
8678
8865
 
8679
- /** Stable per Chrome profile (the extension mints it once): one session per instance. */
8680
- declare const BrowserClientInstance: z.ZodString;
8681
- declare const BrowserRegisterResult: z.ZodObject<{
8682
- session: z.ZodObject<{
8683
- client_instance: z.ZodString;
8684
- client_label: z.ZodString;
8685
- browser: z.ZodEnum<{
8686
- other: "other";
8687
- chrome: "chrome";
8688
- edge: "edge";
8689
- brave: "brave";
8690
- arc: "arc";
8691
- opera: "opera";
8692
- vivaldi: "vivaldi";
8693
- chromium: "chromium";
8694
- firefox: "firefox";
8695
- }>;
8696
- extension_version: z.ZodString;
8697
- state: z.ZodEnum<{
8698
- connected: "connected";
8699
- different_account: "different_account";
8700
- extension_signed_out: "extension_signed_out";
8701
- device_signed_out: "device_signed_out";
8702
- unverified: "unverified";
8703
- }>;
8704
- routable: z.ZodBoolean;
8705
- account_email: z.ZodNullable<z.ZodString>;
8706
- connected_at_ms: z.ZodInt;
8707
- last_call_at_ms: z.ZodNullable<z.ZodInt>;
8708
- calls: z.ZodInt;
8709
- errors: z.ZodInt;
8710
- p50_ms: z.ZodNullable<z.ZodInt>;
8711
- p95_ms: z.ZodNullable<z.ZodInt>;
8712
- awaiting_confirmation: z.ZodBoolean;
8713
- }, z.core.$strict>;
8714
- }, z.core.$strict>;
8715
- declare const BrowserCallError: z.ZodObject<{
8716
- message: z.ZodString;
8717
- code: z.ZodNullable<z.ZodString>;
8718
- }, z.core.$strict>;
8719
- declare const BrowserResultResult: z.ZodObject<{
8720
- accepted: z.ZodBoolean;
8721
- }, z.core.$strict>;
8722
- /** The extension says where a call stands (the person is being asked to confirm it). */
8723
- declare const BrowserProgressParams: z.ZodObject<{
8724
- call_id: z.ZodString;
8725
- phase: z.ZodEnum<{
8726
- awaiting_confirmation: "awaiting_confirmation";
8727
- running: "running";
8728
- }>;
8729
- }, z.core.$strict>;
8730
- declare const BrowserProgressResult: z.ZodObject<{
8731
- accepted: z.ZodBoolean;
8732
- }, z.core.$strict>;
8733
- declare const BrowserSessionsParams: z.ZodObject<{}, z.core.$strict>;
8734
- declare const BrowserDisconnectParams: z.ZodObject<{
8735
- client_instance: z.ZodString;
8736
- }, z.core.$strict>;
8737
- declare const BrowserDisconnectResult: z.ZodObject<{
8738
- disconnected: z.ZodBoolean;
8739
- }, z.core.$strict>;
8740
- declare const BrowserSetEnabledParams: z.ZodObject<{
8741
- enabled: z.ZodBoolean;
8742
- }, z.core.$strict>;
8743
- declare const BrowserSetEnabledResult: z.ZodObject<{
8744
- enabled: z.ZodBoolean;
8745
- }, z.core.$strict>;
8746
- /** The pairing code a browser on another computer types in (screen clients on this computer only). */
8747
- declare const BrowserPairCodeParams: z.ZodObject<{}, z.core.$strict>;
8748
- declare const BrowserPairCodeResult: z.ZodObject<{
8749
- code: z.ZodString;
8750
- }, z.core.$strict>;
8751
- declare const BrowserPairResetParams: z.ZodObject<{}, z.core.$strict>;
8752
- declare const BrowserToolMetricsParams: z.ZodObject<{
8753
- client_instance: z.ZodString;
8754
- }, z.core.$strict>;
8755
- declare const BrowserResetCountersParams: z.ZodObject<{
8756
- client_instance: z.ZodString;
8757
- }, z.core.$strict>;
8758
- /** `reset` false: that browser is not connected (its numbers by tool were cleared all the same). */
8759
- declare const BrowserResetCountersResult: z.ZodObject<{
8760
- reset: z.ZodBoolean;
8761
- }, z.core.$strict>;
8762
- /** Core → the app's screens: the session list changed (re-read browser.sessions). */
8763
- declare const BrowserSessionsChangedEvent: z.ZodObject<{
8764
- count: z.ZodInt;
8765
- enabled: z.ZodBoolean;
8766
- }, z.core.$strict>;
8767
- /** Core → the caller of a browser.call: where it stands. */
8768
- declare const BrowserProgressEvent: z.ZodObject<{
8769
- call_id: z.ZodString;
8770
- client_instance: z.ZodString;
8771
- phase: z.ZodEnum<{
8772
- awaiting_confirmation: "awaiting_confirmation";
8773
- running: "running";
8774
- }>;
8775
- }, z.core.$strict>;
8776
- /** `POST /v1/pair` body. */
8777
- declare const BrowserPairRequest: z.ZodObject<{
8778
- client_instance: z.ZodString;
8779
- }, z.core.$strict>;
8780
8866
  /**
8781
8867
  * The extension IDs allowed to pair (Origin `chrome-extension://<id>`): the Chrome Web Store build
8782
8868
  * and the keyed development build. matrx-extend's src/config/identity.ts names the same IDs; this
@@ -8958,8 +9044,8 @@ declare const DesktopHealth: z.ZodObject<{
8958
9044
  ws_path: z.ZodLiteral<"/v1/connect">;
8959
9045
  device_id: z.ZodString;
8960
9046
  browser_connection: z.ZodEnum<{
8961
- off: "off";
8962
9047
  on: "on";
9048
+ off: "off";
8963
9049
  }>;
8964
9050
  }, z.core.$strict>;
8965
9051
  type DesktopHealth = z.output<typeof DesktopHealth>;
@@ -8995,57 +9081,178 @@ declare const BrowserLogMessage: z.ZodObject<{
8995
9081
  from_browser: "from_browser";
8996
9082
  }>;
8997
9083
  client_instance: z.ZodString;
8998
- kind: z.ZodEnum<{
8999
- result: "result";
9000
- timeout: "timeout";
9001
- progress: "progress";
9002
- closed: "closed";
9003
- register: "register";
9004
- invoke: "invoke";
9005
- }>;
9006
- tool: z.ZodNullable<z.ZodString>;
9007
- call_id: z.ZodNullable<z.ZodString>;
9008
- ok: z.ZodNullable<z.ZodBoolean>;
9009
- detail: z.ZodString;
9084
+ kind: z.ZodEnum<{
9085
+ result: "result";
9086
+ timeout: "timeout";
9087
+ progress: "progress";
9088
+ closed: "closed";
9089
+ register: "register";
9090
+ invoke: "invoke";
9091
+ }>;
9092
+ tool: z.ZodNullable<z.ZodString>;
9093
+ call_id: z.ZodNullable<z.ZodString>;
9094
+ ok: z.ZodNullable<z.ZodBoolean>;
9095
+ detail: z.ZodString;
9096
+ }, z.core.$strict>;
9097
+ type BrowserLogMessage = z.output<typeof BrowserLogMessage>;
9098
+ declare const BrowserLogParams: z.ZodObject<{
9099
+ after_seq: z.ZodDefault<z.ZodInt>;
9100
+ limit: z.ZodDefault<z.ZodInt>;
9101
+ }, z.core.$strict>;
9102
+ type BrowserLogParams = z.output<typeof BrowserLogParams>;
9103
+ declare const BrowserLogResult: z.ZodObject<{
9104
+ messages: z.ZodArray<z.ZodObject<{
9105
+ seq: z.ZodInt;
9106
+ at_ms: z.ZodInt;
9107
+ direction: z.ZodEnum<{
9108
+ core: "core";
9109
+ to_browser: "to_browser";
9110
+ from_browser: "from_browser";
9111
+ }>;
9112
+ client_instance: z.ZodString;
9113
+ kind: z.ZodEnum<{
9114
+ result: "result";
9115
+ timeout: "timeout";
9116
+ progress: "progress";
9117
+ closed: "closed";
9118
+ register: "register";
9119
+ invoke: "invoke";
9120
+ }>;
9121
+ tool: z.ZodNullable<z.ZodString>;
9122
+ call_id: z.ZodNullable<z.ZodString>;
9123
+ ok: z.ZodNullable<z.ZodBoolean>;
9124
+ detail: z.ZodString;
9125
+ }, z.core.$strict>>;
9126
+ last_seq: z.ZodInt;
9127
+ }, z.core.$strict>;
9128
+ type BrowserLogResult = z.output<typeof BrowserLogResult>;
9129
+ /** `POST /v1/pair` answer: the token rides `bearer.<pair_token>` on /v1/connect. */
9130
+ declare const BrowserPairResult: z.ZodObject<{
9131
+ pair_token: z.ZodString;
9132
+ ws_path: z.ZodLiteral<"/v1/connect">;
9133
+ }, z.core.$strict>;
9134
+ type BrowserPairResult = z.output<typeof BrowserPairResult>;
9135
+ /** Stable per Chrome profile (the extension mints it once): one session per instance. */
9136
+ declare const BrowserClientInstance: z.ZodString;
9137
+ type BrowserClientInstance = z.output<typeof BrowserClientInstance>;
9138
+ declare const BrowserRegisterResult: z.ZodObject<{
9139
+ session: z.ZodObject<{
9140
+ client_instance: z.ZodString;
9141
+ client_label: z.ZodString;
9142
+ browser: z.ZodEnum<{
9143
+ other: "other";
9144
+ chrome: "chrome";
9145
+ edge: "edge";
9146
+ brave: "brave";
9147
+ arc: "arc";
9148
+ opera: "opera";
9149
+ vivaldi: "vivaldi";
9150
+ chromium: "chromium";
9151
+ firefox: "firefox";
9152
+ }>;
9153
+ extension_version: z.ZodString;
9154
+ state: z.ZodEnum<{
9155
+ connected: "connected";
9156
+ different_account: "different_account";
9157
+ extension_signed_out: "extension_signed_out";
9158
+ device_signed_out: "device_signed_out";
9159
+ unverified: "unverified";
9160
+ }>;
9161
+ routable: z.ZodBoolean;
9162
+ account_email: z.ZodNullable<z.ZodString>;
9163
+ connected_at_ms: z.ZodInt;
9164
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
9165
+ calls: z.ZodInt;
9166
+ errors: z.ZodInt;
9167
+ p50_ms: z.ZodNullable<z.ZodInt>;
9168
+ p95_ms: z.ZodNullable<z.ZodInt>;
9169
+ awaiting_confirmation: z.ZodBoolean;
9170
+ }, z.core.$strict>;
9171
+ }, z.core.$strict>;
9172
+ type BrowserRegisterResult = z.output<typeof BrowserRegisterResult>;
9173
+ declare const BrowserCallError: z.ZodObject<{
9174
+ message: z.ZodString;
9175
+ code: z.ZodNullable<z.ZodString>;
9176
+ }, z.core.$strict>;
9177
+ type BrowserCallError = z.output<typeof BrowserCallError>;
9178
+ declare const BrowserResultResult: z.ZodObject<{
9179
+ accepted: z.ZodBoolean;
9180
+ }, z.core.$strict>;
9181
+ type BrowserResultResult = z.output<typeof BrowserResultResult>;
9182
+ /** The extension says where a call stands (the person is being asked to confirm it). */
9183
+ declare const BrowserProgressParams: z.ZodObject<{
9184
+ call_id: z.ZodString;
9185
+ phase: z.ZodEnum<{
9186
+ awaiting_confirmation: "awaiting_confirmation";
9187
+ running: "running";
9188
+ }>;
9189
+ }, z.core.$strict>;
9190
+ type BrowserProgressParams = z.output<typeof BrowserProgressParams>;
9191
+ declare const BrowserProgressResult: z.ZodObject<{
9192
+ accepted: z.ZodBoolean;
9193
+ }, z.core.$strict>;
9194
+ type BrowserProgressResult = z.output<typeof BrowserProgressResult>;
9195
+ declare const BrowserSessionsParams: z.ZodObject<{}, z.core.$strict>;
9196
+ type BrowserSessionsParams = z.output<typeof BrowserSessionsParams>;
9197
+ declare const BrowserDisconnectParams: z.ZodObject<{
9198
+ client_instance: z.ZodString;
9199
+ }, z.core.$strict>;
9200
+ type BrowserDisconnectParams = z.output<typeof BrowserDisconnectParams>;
9201
+ declare const BrowserDisconnectResult: z.ZodObject<{
9202
+ disconnected: z.ZodBoolean;
9203
+ }, z.core.$strict>;
9204
+ type BrowserDisconnectResult = z.output<typeof BrowserDisconnectResult>;
9205
+ declare const BrowserSetEnabledParams: z.ZodObject<{
9206
+ enabled: z.ZodBoolean;
9207
+ }, z.core.$strict>;
9208
+ type BrowserSetEnabledParams = z.output<typeof BrowserSetEnabledParams>;
9209
+ declare const BrowserSetEnabledResult: z.ZodObject<{
9210
+ enabled: z.ZodBoolean;
9211
+ }, z.core.$strict>;
9212
+ type BrowserSetEnabledResult = z.output<typeof BrowserSetEnabledResult>;
9213
+ /** The pairing code a browser on another computer types in (screen clients on this computer only). */
9214
+ declare const BrowserPairCodeParams: z.ZodObject<{}, z.core.$strict>;
9215
+ type BrowserPairCodeParams = z.output<typeof BrowserPairCodeParams>;
9216
+ declare const BrowserPairCodeResult: z.ZodObject<{
9217
+ code: z.ZodString;
9218
+ }, z.core.$strict>;
9219
+ type BrowserPairCodeResult = z.output<typeof BrowserPairCodeResult>;
9220
+ declare const BrowserPairResetParams: z.ZodObject<{}, z.core.$strict>;
9221
+ type BrowserPairResetParams = z.output<typeof BrowserPairResetParams>;
9222
+ declare const BrowserToolMetricsParams: z.ZodObject<{
9223
+ client_instance: z.ZodString;
9010
9224
  }, z.core.$strict>;
9011
- type BrowserLogMessage = z.output<typeof BrowserLogMessage>;
9012
- declare const BrowserLogParams: z.ZodObject<{
9013
- after_seq: z.ZodDefault<z.ZodInt>;
9014
- limit: z.ZodDefault<z.ZodInt>;
9225
+ type BrowserToolMetricsParams = z.output<typeof BrowserToolMetricsParams>;
9226
+ declare const BrowserResetCountersParams: z.ZodObject<{
9227
+ client_instance: z.ZodString;
9015
9228
  }, z.core.$strict>;
9016
- type BrowserLogParams = z.output<typeof BrowserLogParams>;
9017
- declare const BrowserLogResult: z.ZodObject<{
9018
- messages: z.ZodArray<z.ZodObject<{
9019
- seq: z.ZodInt;
9020
- at_ms: z.ZodInt;
9021
- direction: z.ZodEnum<{
9022
- core: "core";
9023
- to_browser: "to_browser";
9024
- from_browser: "from_browser";
9025
- }>;
9026
- client_instance: z.ZodString;
9027
- kind: z.ZodEnum<{
9028
- result: "result";
9029
- timeout: "timeout";
9030
- progress: "progress";
9031
- closed: "closed";
9032
- register: "register";
9033
- invoke: "invoke";
9034
- }>;
9035
- tool: z.ZodNullable<z.ZodString>;
9036
- call_id: z.ZodNullable<z.ZodString>;
9037
- ok: z.ZodNullable<z.ZodBoolean>;
9038
- detail: z.ZodString;
9039
- }, z.core.$strict>>;
9040
- last_seq: z.ZodInt;
9229
+ type BrowserResetCountersParams = z.output<typeof BrowserResetCountersParams>;
9230
+ /** `reset` false: that browser is not connected (its numbers by tool were cleared all the same). */
9231
+ declare const BrowserResetCountersResult: z.ZodObject<{
9232
+ reset: z.ZodBoolean;
9041
9233
  }, z.core.$strict>;
9042
- type BrowserLogResult = z.output<typeof BrowserLogResult>;
9043
- /** `POST /v1/pair` answer: the token rides `bearer.<pair_token>` on /v1/connect. */
9044
- declare const BrowserPairResult: z.ZodObject<{
9045
- pair_token: z.ZodString;
9046
- ws_path: z.ZodLiteral<"/v1/connect">;
9234
+ type BrowserResetCountersResult = z.output<typeof BrowserResetCountersResult>;
9235
+ /** Core → the app's screens: the session list changed (re-read browser.sessions). */
9236
+ declare const BrowserSessionsChangedEvent: z.ZodObject<{
9237
+ count: z.ZodInt;
9238
+ enabled: z.ZodBoolean;
9047
9239
  }, z.core.$strict>;
9048
- type BrowserPairResult = z.output<typeof BrowserPairResult>;
9240
+ type BrowserSessionsChangedEvent = z.output<typeof BrowserSessionsChangedEvent>;
9241
+ /** Core → the caller of a browser.call: where it stands. */
9242
+ declare const BrowserProgressEvent: z.ZodObject<{
9243
+ call_id: z.ZodString;
9244
+ client_instance: z.ZodString;
9245
+ phase: z.ZodEnum<{
9246
+ awaiting_confirmation: "awaiting_confirmation";
9247
+ running: "running";
9248
+ }>;
9249
+ }, z.core.$strict>;
9250
+ type BrowserProgressEvent = z.output<typeof BrowserProgressEvent>;
9251
+ /** `POST /v1/pair` body. */
9252
+ declare const BrowserPairRequest: z.ZodObject<{
9253
+ client_instance: z.ZodString;
9254
+ }, z.core.$strict>;
9255
+ type BrowserPairRequest = z.output<typeof BrowserPairRequest>;
9049
9256
 
9050
9257
  /**
9051
9258
  * @ai-matrx/desktop-protocol — cap net (SPEC §6, §10 desktop_net): the computer's own network as it
@@ -9230,94 +9437,6 @@ type NetDownloadResult = z.output<typeof NetDownloadResult>;
9230
9437
  * scripts/check-schema-source.mjs. Added in protocol 1.37.
9231
9438
  */
9232
9439
 
9233
- declare const OutlookStatusParams: z.ZodObject<{}, z.core.$strict>;
9234
- declare const OutlookAccount: z.ZodObject<{
9235
- name: z.ZodString;
9236
- email: z.ZodNullable<z.ZodString>;
9237
- }, z.core.$strict>;
9238
- declare const OutlookStatusResult: z.ZodObject<{
9239
- client: z.ZodEnum<{
9240
- mac: "mac";
9241
- classic_windows: "classic_windows";
9242
- new_windows: "new_windows";
9243
- none: "none";
9244
- }>;
9245
- scriptable: z.ZodBoolean;
9246
- version: z.ZodNullable<z.ZodString>;
9247
- accounts: z.ZodArray<z.ZodObject<{
9248
- name: z.ZodString;
9249
- email: z.ZodNullable<z.ZodString>;
9250
- }, z.core.$strict>>;
9251
- reason: z.ZodNullable<z.ZodString>;
9252
- }, z.core.$strict>;
9253
- declare const OutlookDraftParams: z.ZodObject<{
9254
- to: z.ZodDefault<z.ZodArray<z.ZodString>>;
9255
- cc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9256
- bcc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9257
- subject: z.ZodDefault<z.ZodString>;
9258
- body: z.ZodDefault<z.ZodString>;
9259
- body_format: z.ZodDefault<z.ZodEnum<{
9260
- text: "text";
9261
- html: "html";
9262
- }>>;
9263
- attachments: z.ZodDefault<z.ZodArray<z.ZodString>>;
9264
- account: z.ZodOptional<z.ZodString>;
9265
- display: z.ZodDefault<z.ZodBoolean>;
9266
- }, z.core.$strict>;
9267
- declare const OutlookDraftResult: z.ZodObject<{
9268
- id: z.ZodString;
9269
- account: z.ZodNullable<z.ZodString>;
9270
- folder: z.ZodString;
9271
- attachments: z.ZodInt;
9272
- displayed: z.ZodBoolean;
9273
- }, z.core.$strict>;
9274
- declare const OutlookListParams: z.ZodObject<{
9275
- folder: z.ZodDefault<z.ZodEnum<{
9276
- sent: "sent";
9277
- inbox: "inbox";
9278
- drafts: "drafts";
9279
- }>>;
9280
- account: z.ZodOptional<z.ZodString>;
9281
- unread_only: z.ZodDefault<z.ZodBoolean>;
9282
- limit: z.ZodDefault<z.ZodInt>;
9283
- }, z.core.$strict>;
9284
- declare const OutlookMessage: z.ZodObject<{
9285
- id: z.ZodString;
9286
- subject: z.ZodString;
9287
- sender: z.ZodString;
9288
- received_at_ms: z.ZodNullable<z.ZodInt>;
9289
- read: z.ZodBoolean;
9290
- has_attachments: z.ZodBoolean;
9291
- preview: z.ZodString;
9292
- }, z.core.$strict>;
9293
- declare const OutlookListResult: z.ZodObject<{
9294
- folder: z.ZodString;
9295
- messages: z.ZodArray<z.ZodObject<{
9296
- id: z.ZodString;
9297
- subject: z.ZodString;
9298
- sender: z.ZodString;
9299
- received_at_ms: z.ZodNullable<z.ZodInt>;
9300
- read: z.ZodBoolean;
9301
- has_attachments: z.ZodBoolean;
9302
- preview: z.ZodString;
9303
- }, z.core.$strict>>;
9304
- }, z.core.$strict>;
9305
- declare const OutlookReadParams: z.ZodObject<{
9306
- id: z.ZodString;
9307
- }, z.core.$strict>;
9308
- declare const OutlookReadResult: z.ZodObject<{
9309
- id: z.ZodString;
9310
- subject: z.ZodString;
9311
- sender: z.ZodString;
9312
- to: z.ZodArray<z.ZodString>;
9313
- cc: z.ZodArray<z.ZodString>;
9314
- received_at_ms: z.ZodNullable<z.ZodInt>;
9315
- body: z.ZodString;
9316
- attachments: z.ZodArray<z.ZodObject<{
9317
- name: z.ZodString;
9318
- size: z.ZodInt;
9319
- }, z.core.$strict>>;
9320
- }, z.core.$strict>;
9321
9440
  declare const AutomationScriptParams: z.ZodObject<{
9322
9441
  language: z.ZodEnum<{
9323
9442
  applescript: "applescript";
@@ -9694,6 +9813,104 @@ declare const LocationGetResult: z.ZodObject<{
9694
9813
  }>;
9695
9814
  }, z.core.$strict>;
9696
9815
  type LocationGetResult = z.output<typeof LocationGetResult>;
9816
+ declare const OutlookStatusParams: z.ZodObject<{}, z.core.$strict>;
9817
+ type OutlookStatusParams = z.output<typeof OutlookStatusParams>;
9818
+ declare const OutlookAccount: z.ZodObject<{
9819
+ name: z.ZodString;
9820
+ email: z.ZodNullable<z.ZodString>;
9821
+ }, z.core.$strict>;
9822
+ type OutlookAccount = z.output<typeof OutlookAccount>;
9823
+ declare const OutlookStatusResult: z.ZodObject<{
9824
+ client: z.ZodEnum<{
9825
+ mac: "mac";
9826
+ classic_windows: "classic_windows";
9827
+ new_windows: "new_windows";
9828
+ none: "none";
9829
+ }>;
9830
+ scriptable: z.ZodBoolean;
9831
+ version: z.ZodNullable<z.ZodString>;
9832
+ accounts: z.ZodArray<z.ZodObject<{
9833
+ name: z.ZodString;
9834
+ email: z.ZodNullable<z.ZodString>;
9835
+ }, z.core.$strict>>;
9836
+ reason: z.ZodNullable<z.ZodString>;
9837
+ }, z.core.$strict>;
9838
+ type OutlookStatusResult = z.output<typeof OutlookStatusResult>;
9839
+ declare const OutlookDraftParams: z.ZodObject<{
9840
+ to: z.ZodDefault<z.ZodArray<z.ZodString>>;
9841
+ cc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9842
+ bcc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9843
+ subject: z.ZodDefault<z.ZodString>;
9844
+ body: z.ZodDefault<z.ZodString>;
9845
+ body_format: z.ZodDefault<z.ZodEnum<{
9846
+ text: "text";
9847
+ html: "html";
9848
+ }>>;
9849
+ attachments: z.ZodDefault<z.ZodArray<z.ZodString>>;
9850
+ account: z.ZodOptional<z.ZodString>;
9851
+ display: z.ZodDefault<z.ZodBoolean>;
9852
+ }, z.core.$strict>;
9853
+ type OutlookDraftParams = z.output<typeof OutlookDraftParams>;
9854
+ declare const OutlookDraftResult: z.ZodObject<{
9855
+ id: z.ZodString;
9856
+ account: z.ZodNullable<z.ZodString>;
9857
+ folder: z.ZodString;
9858
+ attachments: z.ZodInt;
9859
+ displayed: z.ZodBoolean;
9860
+ }, z.core.$strict>;
9861
+ type OutlookDraftResult = z.output<typeof OutlookDraftResult>;
9862
+ declare const OutlookListParams: z.ZodObject<{
9863
+ folder: z.ZodDefault<z.ZodEnum<{
9864
+ sent: "sent";
9865
+ inbox: "inbox";
9866
+ drafts: "drafts";
9867
+ }>>;
9868
+ account: z.ZodOptional<z.ZodString>;
9869
+ unread_only: z.ZodDefault<z.ZodBoolean>;
9870
+ limit: z.ZodDefault<z.ZodInt>;
9871
+ }, z.core.$strict>;
9872
+ type OutlookListParams = z.output<typeof OutlookListParams>;
9873
+ declare const OutlookMessage: z.ZodObject<{
9874
+ id: z.ZodString;
9875
+ subject: z.ZodString;
9876
+ sender: z.ZodString;
9877
+ received_at_ms: z.ZodNullable<z.ZodInt>;
9878
+ read: z.ZodBoolean;
9879
+ has_attachments: z.ZodBoolean;
9880
+ preview: z.ZodString;
9881
+ }, z.core.$strict>;
9882
+ type OutlookMessage = z.output<typeof OutlookMessage>;
9883
+ declare const OutlookListResult: z.ZodObject<{
9884
+ folder: z.ZodString;
9885
+ messages: z.ZodArray<z.ZodObject<{
9886
+ id: z.ZodString;
9887
+ subject: z.ZodString;
9888
+ sender: z.ZodString;
9889
+ received_at_ms: z.ZodNullable<z.ZodInt>;
9890
+ read: z.ZodBoolean;
9891
+ has_attachments: z.ZodBoolean;
9892
+ preview: z.ZodString;
9893
+ }, z.core.$strict>>;
9894
+ }, z.core.$strict>;
9895
+ type OutlookListResult = z.output<typeof OutlookListResult>;
9896
+ declare const OutlookReadParams: z.ZodObject<{
9897
+ id: z.ZodString;
9898
+ }, z.core.$strict>;
9899
+ type OutlookReadParams = z.output<typeof OutlookReadParams>;
9900
+ declare const OutlookReadResult: z.ZodObject<{
9901
+ id: z.ZodString;
9902
+ subject: z.ZodString;
9903
+ sender: z.ZodString;
9904
+ to: z.ZodArray<z.ZodString>;
9905
+ cc: z.ZodArray<z.ZodString>;
9906
+ received_at_ms: z.ZodNullable<z.ZodInt>;
9907
+ body: z.ZodString;
9908
+ attachments: z.ZodArray<z.ZodObject<{
9909
+ name: z.ZodString;
9910
+ size: z.ZodInt;
9911
+ }, z.core.$strict>>;
9912
+ }, z.core.$strict>;
9913
+ type OutlookReadResult = z.output<typeof OutlookReadResult>;
9697
9914
 
9698
9915
  /**
9699
9916
  * @ai-matrx/desktop-protocol — cap windows (SPEC §10 desktop_windows_admin): Windows
@@ -10346,6 +10563,26 @@ declare const FIELDS_SINCE: {
10346
10563
  readonly app: "1.7";
10347
10564
  readonly pid: "1.7";
10348
10565
  };
10566
+ readonly AppWindowInfo: {
10567
+ readonly remote_control: "1.50";
10568
+ };
10569
+ readonly WindowRemoteControl: {
10570
+ readonly problem: "1.52";
10571
+ };
10572
+ readonly AppsInstancesListParams: {
10573
+ readonly fresh: "1.51";
10574
+ };
10575
+ readonly AppsInstancesListResult: {
10576
+ readonly as_of_ms: "1.51";
10577
+ readonly refreshing: "1.51";
10578
+ };
10579
+ readonly AppsAccountsListParams: {
10580
+ readonly fresh: "1.51";
10581
+ };
10582
+ readonly AppsAccountsListResult: {
10583
+ readonly as_of_ms: "1.51";
10584
+ readonly refreshing: "1.51";
10585
+ };
10349
10586
  readonly AppsChatsListResult: {
10350
10587
  readonly updating: "1.9";
10351
10588
  readonly live: "1.9";
@@ -10521,7 +10758,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
10521
10758
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
10522
10759
 
10523
10760
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
10524
- declare const CONTRACT_SHA256: "ac576512b0292490d7aa8b1561ccbf2dde677d94150c52d473f58b0d381ba150";
10761
+ declare const CONTRACT_SHA256: "e9eba8289b9f07b90d920f5a44b038473fae8597e5b43c1f37a2bbda391edcbd";
10525
10762
 
10526
10763
  /**
10527
10764
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -10666,4 +10903,4 @@ declare function toolsSending(op: string): string[];
10666
10903
  */
10667
10904
  declare function sharedOpsBlocking(tool: string, disabledTools: readonly string[]): string[];
10668
10905
 
10669
- export { AbsPath, AccountAgent, AccountAgentDetail, AccountAgentRun, AccountAgentRunSort, AccountAgentRunStatus, AccountAgentVariable, AccountAgentsFavoriteParams, AccountAgentsFavoriteResult, AccountAgentsGetParams, AccountAgentsGetResult, AccountAgentsListParams, AccountAgentsListResult, AccountAgentsRunsParams, AccountAgentsRunsResult, AccountGap, AccountReadState, AccountReset, AccountResetSource, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppAccount, AppFeatureStatus, AppInfo, AppInstall, AppInstance, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsListParams, AppsAccountsListResult, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsInstancesListParams, AppsInstancesListResult, 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, AppsWindowsGroupsParams, AppsWindowsGroupsResult, 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, AutomationScriptParams, AutomationScriptResult, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserLogMessage, BrowserLogParams, BrowserLogResult, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResetCountersParams, BrowserResetCountersResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, BrowserToolMetric, BrowserToolMetricsParams, BrowserToolMetricsResult, CONTRACT_SHA256, CalendarCreateParams, CalendarCreateResult, CalendarEvent, CalendarListParams, CalendarListResult, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingActiveElsewhere, CodingActivityParams, CodingActivityResult, CodingAgentSelectionParams, CodingAgentSetParams, CodingAgentSetResult, CodingAgentsAccessParams, CodingAgentsAccessResult, CodingChangedEvent, CodingChatPreference, CodingClientRequestId, CodingDiscoverParams, CodingDiscoverResult, CodingDiscoveredChat, CodingFolderCheck, CodingFoldersCheckParams, CodingFoldersCheckResult, CodingFoldersCreateParams, CodingFoldersCreateResult, CodingFoldersRecentParams, CodingFoldersRecentResult, CodingGapEvent, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryParams, CodingHistoryProgressEvent, CodingHistoryRecord, CodingHistoryResult, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingItemEvent, CodingItemFullParams, CodingItemFullResult, CodingOptionsSetParams, CodingOptionsSetResult, CodingPlanMissingParams, CodingPrefsListParams, CodingPrefsListResult, CodingPrefsSetParams, CodingPrefsSetResult, CodingProviderBinary, CodingProviderName, CodingProviderProblem, CodingProviderStatus, CodingProvidersParams, CodingProvidersResult, CodingQuotaWindow, CodingRecentFolder, CodingRecentRow, CodingRecentSeenParams, CodingRecentSeenResult, CodingReconcileParams, CodingReconcileResult, CodingRunRecord, CodingRunStatus, CodingRunUsage, CodingRunsListParams, CodingRunsListResult, CodingSearchParams, CodingSearchResult, CodingSendParams, CodingSendResult, CodingServiceCredentials, CodingServiceProgress, CodingSessionAgent, CodingSessionAgentPart, CodingSessionRecord, CodingSessionWatchParams, CodingSessionWatchResult, CodingSessionsListParams, CodingSessionsListResult, CodingStartParams, CodingStartResult, CodingStartedBy, CodingStopElsewhereParams, CodingStopElsewhereResult, CodingStopParams, CodingStopResult, CodingTakeoverParams, CodingTakeoverResult, CodingTitleStatus, CodingTitlesStatusParams, CodingTitlesStatusResult, CodingTranscriptItem, CodingTranscriptRawParams, CodingTranscriptRawResult, CodingTranscriptReadParams, CodingTranscriptReadResult, CodingWatchParams, CodingWatchResult, CodingWatchStateEvent, ColdChat, ContactDetail, ContactLabeled, ContactSummary, ContactsGetParams, ContactsGetResult, ContactsSearchParams, ContactsSearchResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DOCUMENTS_MAX_TEXT_CHARS, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, DocumentsImageResizeParams, DocumentsImageResizeResult, DocumentsOcrLine, DocumentsOcrParams, DocumentsOcrResult, DocumentsOfficeGenerateParams, DocumentsOfficeGenerateResult, DocumentsParagraph, DocumentsPdfPage, DocumentsPdfTextParams, DocumentsPdfTextResult, DocumentsSheet, EXCLUDED_TOOLS, EntitiesNerParams, EntitiesNerResult, EntitiesPiiParams, EntitiesPiiResult, EntitySpan, 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, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, 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, InstanceStatus, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, LocationGetParams, LocationGetResult, MATRX_EXTENSION_IDS, MailAccount, MailAccountsParams, MailAccountsResult, MailListParams, MailListResult, MailMessage, MailSendParams, MailSendResult, MessagesChat, MessagesChatsParams, MessagesChatsResult, MessagesListParams, MessagesListResult, MessagesMessage, MessagesSendParams, MessagesSendResult, NULL_SINCE, NetAddress, NetBluetoothDevice, NetBluetoothParams, NetBluetoothResult, NetDevice, NetDevicesParams, NetDevicesResult, NetDownloadParams, NetDownloadResult, NetInfoParams, NetInfoResult, NetInterface, NetMdnsParams, NetMdnsResult, NetMdnsService, NetScanParams, NetScanResult, NetWifiNetwork, NetWifiParams, NetWifiResult, NoteEntry, NotesFolder, NotesFoldersParams, NotesFoldersResult, NotesListParams, NotesListResult, NotesMatch, NotesReadParams, NotesReadResult, NotesSearchParams, NotesSearchResult, NotesWriteParams, NotesWriteResult, OpName, OsGrantState, OsPermissionName, OsRequirementName, OutlookAccount, OutlookDraftParams, OutlookDraftResult, OutlookListParams, OutlookListResult, OutlookMessage, OutlookReadParams, OutlookReadResult, OutlookStatusParams, OutlookStatusResult, PERMISSIONS_SINCE, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, Photo, PhotosGetParams, PhotosGetResult, PhotosSearchParams, PhotosSearchResult, PiiKind, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMoveOutcome, ProjectMovePin, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RegistryValue, RegistryValueType, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, Reminder, RemindersCreateParams, RemindersCreateResult, RemindersListParams, RemindersListResult, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScheduleCancelParams, ScheduleCancelResult, ScheduleCreateParams, ScheduleCreateResult, ScheduleListParams, ScheduleListResult, ScheduleRun, ScheduledTask, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionIdentifyParams, SessionIdentifyResult, 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, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoGraphicsAdapter, 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, ToolsParseFile, ToolsServiceProgress, ToolsWebBrowserFetchParams, ToolsWebBrowserFetchResult, ToolsWebScrapePage, ToolsWebScrapeParams, ToolsWebScrapeResult, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebAttachTarget, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebLand, WebLogCaller, WebLogClearParams, WebLogClearResult, WebLogEntry, WebLogListParams, WebLogListResult, WebLogResult, WebLogVia, WebNotSavedReason, WebOutboxDiscardParams, WebOutboxDiscardResult, WebOutboxItem, WebOutboxListParams, WebOutboxListResult, WebOutboxRetryParams, WebOutboxRetryResult, WebProgressEvent, WebResearchFetchParams, WebResearchFetchResult, WebResearchItem, WebResearchItemState, WebResearchQueueParams, WebResearchQueueResult, WebRuntimeParams, WebRuntimeState, WebRuntimeStateName, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WebSourceNotice, WebSourceState, WindowFocusParams, WindowFocusResult, WindowGroup, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, WindowsEvent, WindowsEventLogParams, WindowsEventLogResult, WindowsFeature, WindowsFeaturesParams, WindowsFeaturesResult, WindowsRegistryReadParams, WindowsRegistryReadResult, WindowsRegistryWriteParams, WindowsRegistryWriteResult, WindowsService, WindowsServiceControlParams, WindowsServiceControlResult, WindowsServicesParams, WindowsServicesResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, isInconclusive, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };
10906
+ export { AbsPath, AccountAgent, AccountAgentDetail, AccountAgentRun, AccountAgentRunSort, AccountAgentRunStatus, AccountAgentVariable, AccountAgentsFavoriteParams, AccountAgentsFavoriteResult, AccountAgentsGetParams, AccountAgentsGetResult, AccountAgentsListParams, AccountAgentsListResult, AccountAgentsRunsParams, AccountAgentsRunsResult, AccountGap, AccountReadState, AccountReset, AccountResetSource, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppAccount, AppFeatureStatus, AppInfo, AppInstall, AppInstance, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsListParams, AppsAccountsListResult, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsInstancesListParams, AppsInstancesListResult, 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, AppsWindowsGroupsParams, AppsWindowsGroupsResult, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsSetRemoteControlParams, AppsWindowsSetRemoteControlResult, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, AutomationScriptParams, AutomationScriptResult, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserLogMessage, BrowserLogParams, BrowserLogResult, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResetCountersParams, BrowserResetCountersResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, BrowserToolMetric, BrowserToolMetricsParams, BrowserToolMetricsResult, CONTRACT_SHA256, CalendarCreateParams, CalendarCreateResult, CalendarEvent, CalendarListParams, CalendarListResult, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingActiveElsewhere, CodingActivityParams, CodingActivityResult, CodingAgentSelectionParams, CodingAgentSetParams, CodingAgentSetResult, CodingAgentsAccessParams, CodingAgentsAccessResult, CodingChangedEvent, CodingChatPreference, CodingClientRequestId, CodingDiscoverParams, CodingDiscoverResult, CodingDiscoveredChat, CodingFolderCheck, CodingFoldersCheckParams, CodingFoldersCheckResult, CodingFoldersCreateParams, CodingFoldersCreateResult, CodingFoldersRecentParams, CodingFoldersRecentResult, CodingGapEvent, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryParams, CodingHistoryProgressEvent, CodingHistoryRecord, CodingHistoryResult, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingItemEvent, CodingItemFullParams, CodingItemFullResult, CodingOptionsSetParams, CodingOptionsSetResult, CodingPlanMissingParams, CodingPrefsListParams, CodingPrefsListResult, CodingPrefsSetParams, CodingPrefsSetResult, CodingProviderBinary, CodingProviderName, CodingProviderProblem, CodingProviderStatus, CodingProvidersParams, CodingProvidersResult, CodingQuotaWindow, CodingRecentFolder, CodingRecentRow, CodingRecentSeenParams, CodingRecentSeenResult, CodingReconcileParams, CodingReconcileResult, CodingRunRecord, CodingRunStatus, CodingRunUsage, CodingRunsListParams, CodingRunsListResult, CodingSearchParams, CodingSearchResult, CodingSendParams, CodingSendResult, CodingServiceCredentials, CodingServiceProgress, CodingSessionAgent, CodingSessionAgentPart, CodingSessionRecord, CodingSessionWatchParams, CodingSessionWatchResult, CodingSessionsListParams, CodingSessionsListResult, CodingStartParams, CodingStartResult, CodingStartedBy, CodingStopElsewhereParams, CodingStopElsewhereResult, CodingStopParams, CodingStopResult, CodingTakeoverParams, CodingTakeoverResult, CodingTitleStatus, CodingTitlesStatusParams, CodingTitlesStatusResult, CodingTranscriptItem, CodingTranscriptRawParams, CodingTranscriptRawResult, CodingTranscriptReadParams, CodingTranscriptReadResult, CodingWatchParams, CodingWatchResult, CodingWatchStateEvent, ColdChat, ContactDetail, ContactLabeled, ContactSummary, ContactsGetParams, ContactsGetResult, ContactsSearchParams, ContactsSearchResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DOCUMENTS_MAX_TEXT_CHARS, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, DocumentsImageResizeParams, DocumentsImageResizeResult, DocumentsOcrLine, DocumentsOcrParams, DocumentsOcrResult, DocumentsOfficeGenerateParams, DocumentsOfficeGenerateResult, DocumentsParagraph, DocumentsPdfPage, DocumentsPdfTextParams, DocumentsPdfTextResult, DocumentsSheet, EXCLUDED_TOOLS, EntitiesNerParams, EntitiesNerResult, EntitiesPiiParams, EntitiesPiiResult, EntitySpan, 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, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, 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, InstanceStatus, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, LocationGetParams, LocationGetResult, MATRX_EXTENSION_IDS, MailAccount, MailAccountsParams, MailAccountsResult, MailListParams, MailListResult, MailMessage, MailSendParams, MailSendResult, MessagesChat, MessagesChatsParams, MessagesChatsResult, MessagesListParams, MessagesListResult, MessagesMessage, MessagesSendParams, MessagesSendResult, NULL_SINCE, NetAddress, NetBluetoothDevice, NetBluetoothParams, NetBluetoothResult, NetDevice, NetDevicesParams, NetDevicesResult, NetDownloadParams, NetDownloadResult, NetInfoParams, NetInfoResult, NetInterface, NetMdnsParams, NetMdnsResult, NetMdnsService, NetScanParams, NetScanResult, NetWifiNetwork, NetWifiParams, NetWifiResult, NoteEntry, NotesFolder, NotesFoldersParams, NotesFoldersResult, NotesListParams, NotesListResult, NotesMatch, NotesReadParams, NotesReadResult, NotesSearchParams, NotesSearchResult, NotesWriteParams, NotesWriteResult, OpName, OsGrantState, OsPermissionName, OsRequirementName, OutlookAccount, OutlookDraftParams, OutlookDraftResult, OutlookListParams, OutlookListResult, OutlookMessage, OutlookReadParams, OutlookReadResult, OutlookStatusParams, OutlookStatusResult, PERMISSIONS_SINCE, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, Photo, PhotosGetParams, PhotosGetResult, PhotosSearchParams, PhotosSearchResult, PiiKind, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMoveOutcome, ProjectMovePin, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RegistryValue, RegistryValueType, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, Reminder, RemindersCreateParams, RemindersCreateResult, RemindersListParams, RemindersListResult, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScheduleCancelParams, ScheduleCancelResult, ScheduleCreateParams, ScheduleCreateResult, ScheduleListParams, ScheduleListResult, ScheduleRun, ScheduledTask, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionIdentifyParams, SessionIdentifyResult, 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, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoGraphicsAdapter, 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, ToolsParseFile, ToolsServiceProgress, ToolsWebBrowserFetchParams, ToolsWebBrowserFetchResult, ToolsWebScrapePage, ToolsWebScrapeParams, ToolsWebScrapeResult, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebAttachTarget, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebLand, WebLogCaller, WebLogClearParams, WebLogClearResult, WebLogEntry, WebLogListParams, WebLogListResult, WebLogResult, WebLogVia, WebNotSavedReason, WebOutboxDiscardParams, WebOutboxDiscardResult, WebOutboxItem, WebOutboxListParams, WebOutboxListResult, WebOutboxRetryParams, WebOutboxRetryResult, WebProgressEvent, WebResearchFetchParams, WebResearchFetchResult, WebResearchItem, WebResearchItemState, WebResearchQueueParams, WebResearchQueueResult, WebRuntimeParams, WebRuntimeState, WebRuntimeStateName, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WebSourceNotice, WebSourceState, WindowFocusParams, WindowFocusResult, WindowGroup, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, WindowRemoteControl, WindowsEvent, WindowsEventLogParams, WindowsEventLogResult, WindowsFeature, WindowsFeaturesParams, WindowsFeaturesResult, WindowsRegistryReadParams, WindowsRegistryReadResult, WindowsRegistryWriteParams, WindowsRegistryWriteResult, WindowsService, WindowsServiceControlParams, WindowsServiceControlResult, WindowsServicesParams, WindowsServicesResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, isInconclusive, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };