@ai-matrx/desktop-protocol 0.15.0 → 0.16.1

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.
@@ -681,7 +681,7 @@ type OpSpec = {
681
681
  readonly params: z.ZodType;
682
682
  readonly result: z.ZodType;
683
683
  readonly kind: "unary" | "stream" | "resource";
684
- readonly since: "1.0" | "1.2" | "1.3" | "1.4";
684
+ readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5";
685
685
  readonly errors: readonly z.infer<typeof ErrorCode>[];
686
686
  };
687
687
  declare const OPS: {
@@ -2202,6 +2202,44 @@ declare const OPS: {
2202
2202
  readonly since: "1.4";
2203
2203
  readonly errors: readonly ["INTERNAL"];
2204
2204
  };
2205
+ readonly "coding.history.import_missing": {
2206
+ readonly params: z.ZodObject<{}, z.core.$strict>;
2207
+ readonly result: z.ZodObject<{
2208
+ state: z.ZodEnum<{
2209
+ cancelled: "cancelled";
2210
+ blocked: "blocked";
2211
+ done: "done";
2212
+ }>;
2213
+ blocked: z.ZodNullable<z.ZodEnum<{
2214
+ signed_out: "signed_out";
2215
+ offline: "offline";
2216
+ organization_required: "organization_required";
2217
+ claude_unavailable: "claude_unavailable";
2218
+ cloud_list_unavailable: "cloud_list_unavailable";
2219
+ history_too_large: "history_too_large";
2220
+ }>>;
2221
+ run: z.ZodObject<{
2222
+ local_sessions: z.ZodInt;
2223
+ in_cloud: z.ZodInt;
2224
+ missing: z.ZodInt;
2225
+ behind: z.ZodInt;
2226
+ too_large: z.ZodInt;
2227
+ imported: z.ZodInt;
2228
+ changed: z.ZodInt;
2229
+ failed: z.ZodInt;
2230
+ failures: z.ZodArray<z.ZodObject<{
2231
+ session_id: z.ZodString;
2232
+ reason: z.ZodString;
2233
+ }, z.core.$strict>>;
2234
+ remaining: z.ZodInt;
2235
+ summary: z.ZodString;
2236
+ }, z.core.$strict>;
2237
+ elapsed_ms: z.ZodInt;
2238
+ }, z.core.$strict>;
2239
+ readonly kind: "unary";
2240
+ readonly since: "1.5";
2241
+ readonly errors: readonly ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"];
2242
+ };
2205
2243
  };
2206
2244
  type OpName = keyof typeof OPS;
2207
2245
  type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
@@ -2278,6 +2316,17 @@ declare const EVENTS: {
2278
2316
  }, z.core.$strict>>;
2279
2317
  }, z.core.$strict>;
2280
2318
  }, z.core.$strict>;
2319
+ readonly "coding.history.progress": z.ZodObject<{
2320
+ request_id: z.ZodString;
2321
+ phase: z.ZodEnum<{
2322
+ checking: "checking";
2323
+ importing: "importing";
2324
+ }>;
2325
+ done: z.ZodInt;
2326
+ total: z.ZodInt;
2327
+ imported: z.ZodInt;
2328
+ failed: z.ZodInt;
2329
+ }, z.core.$strict>;
2281
2330
  readonly "relay.device_status": z.ZodObject<{
2282
2331
  online: z.ZodBoolean;
2283
2332
  since_ms: z.ZodNullable<z.ZodInt>;
@@ -2426,6 +2475,93 @@ declare const SERVICES: {
2426
2475
  };
2427
2476
  };
2428
2477
  };
2478
+ readonly coding: {
2479
+ readonly progress: z.ZodObject<{
2480
+ phase: z.ZodEnum<{
2481
+ checking: "checking";
2482
+ importing: "importing";
2483
+ }>;
2484
+ done: z.ZodInt;
2485
+ total: z.ZodInt;
2486
+ }, z.core.$strict>;
2487
+ readonly ops: {
2488
+ readonly "coding.plan_missing": {
2489
+ readonly params: z.ZodObject<{
2490
+ credentials: z.ZodNullable<z.ZodObject<{
2491
+ access_token: z.ZodString;
2492
+ user_id: z.ZodString;
2493
+ server_url: z.ZodString;
2494
+ }, z.core.$strict>>;
2495
+ }, z.core.$strict>;
2496
+ readonly result: z.ZodObject<{
2497
+ plan_id: z.ZodNullable<z.ZodString>;
2498
+ finished: z.ZodBoolean;
2499
+ blocked: z.ZodNullable<z.ZodEnum<{
2500
+ signed_out: "signed_out";
2501
+ offline: "offline";
2502
+ organization_required: "organization_required";
2503
+ claude_unavailable: "claude_unavailable";
2504
+ cloud_list_unavailable: "cloud_list_unavailable";
2505
+ history_too_large: "history_too_large";
2506
+ }>>;
2507
+ run: z.ZodObject<{
2508
+ local_sessions: z.ZodInt;
2509
+ in_cloud: z.ZodInt;
2510
+ missing: z.ZodInt;
2511
+ behind: z.ZodInt;
2512
+ too_large: z.ZodInt;
2513
+ imported: z.ZodInt;
2514
+ changed: z.ZodInt;
2515
+ failed: z.ZodInt;
2516
+ failures: z.ZodArray<z.ZodObject<{
2517
+ session_id: z.ZodString;
2518
+ reason: z.ZodString;
2519
+ }, z.core.$strict>>;
2520
+ remaining: z.ZodInt;
2521
+ summary: z.ZodString;
2522
+ }, z.core.$strict>;
2523
+ }, z.core.$strict>;
2524
+ };
2525
+ readonly "coding.import_next": {
2526
+ readonly params: z.ZodObject<{
2527
+ plan_id: z.ZodString;
2528
+ credentials: z.ZodNullable<z.ZodObject<{
2529
+ access_token: z.ZodString;
2530
+ user_id: z.ZodString;
2531
+ server_url: z.ZodString;
2532
+ }, z.core.$strict>>;
2533
+ }, z.core.$strict>;
2534
+ readonly result: z.ZodObject<{
2535
+ plan_id: z.ZodNullable<z.ZodString>;
2536
+ finished: z.ZodBoolean;
2537
+ blocked: z.ZodNullable<z.ZodEnum<{
2538
+ signed_out: "signed_out";
2539
+ offline: "offline";
2540
+ organization_required: "organization_required";
2541
+ claude_unavailable: "claude_unavailable";
2542
+ cloud_list_unavailable: "cloud_list_unavailable";
2543
+ history_too_large: "history_too_large";
2544
+ }>>;
2545
+ run: z.ZodObject<{
2546
+ local_sessions: z.ZodInt;
2547
+ in_cloud: z.ZodInt;
2548
+ missing: z.ZodInt;
2549
+ behind: z.ZodInt;
2550
+ too_large: z.ZodInt;
2551
+ imported: z.ZodInt;
2552
+ changed: z.ZodInt;
2553
+ failed: z.ZodInt;
2554
+ failures: z.ZodArray<z.ZodObject<{
2555
+ session_id: z.ZodString;
2556
+ reason: z.ZodString;
2557
+ }, z.core.$strict>>;
2558
+ remaining: z.ZodInt;
2559
+ summary: z.ZodString;
2560
+ }, z.core.$strict>;
2561
+ }, z.core.$strict>;
2562
+ };
2563
+ };
2564
+ };
2429
2565
  };
2430
2566
  type ServiceId = keyof typeof SERVICES;
2431
2567
  type ServiceOpName<S extends ServiceId> = keyof (typeof SERVICES)[S]["ops"] & string;
@@ -3786,8 +3922,137 @@ declare const NAMED_SCHEMAS: {
3786
3922
  }, z.core.$strict>>;
3787
3923
  }, z.core.$strict>;
3788
3924
  }, z.core.$strict>;
3925
+ readonly CodingServiceCredentials: z.ZodObject<{
3926
+ access_token: z.ZodString;
3927
+ user_id: z.ZodString;
3928
+ server_url: z.ZodString;
3929
+ }, z.core.$strict>;
3930
+ readonly CodingHistoryBlocked: z.ZodEnum<{
3931
+ signed_out: "signed_out";
3932
+ offline: "offline";
3933
+ organization_required: "organization_required";
3934
+ claude_unavailable: "claude_unavailable";
3935
+ cloud_list_unavailable: "cloud_list_unavailable";
3936
+ history_too_large: "history_too_large";
3937
+ }>;
3938
+ readonly CodingHistoryFailure: z.ZodObject<{
3939
+ session_id: z.ZodString;
3940
+ reason: z.ZodString;
3941
+ }, z.core.$strict>;
3942
+ readonly CodingHistoryRun: z.ZodObject<{
3943
+ local_sessions: z.ZodInt;
3944
+ in_cloud: z.ZodInt;
3945
+ missing: z.ZodInt;
3946
+ behind: z.ZodInt;
3947
+ too_large: z.ZodInt;
3948
+ imported: z.ZodInt;
3949
+ changed: z.ZodInt;
3950
+ failed: z.ZodInt;
3951
+ failures: z.ZodArray<z.ZodObject<{
3952
+ session_id: z.ZodString;
3953
+ reason: z.ZodString;
3954
+ }, z.core.$strict>>;
3955
+ remaining: z.ZodInt;
3956
+ summary: z.ZodString;
3957
+ }, z.core.$strict>;
3958
+ readonly CodingHistoryStep: z.ZodObject<{
3959
+ plan_id: z.ZodNullable<z.ZodString>;
3960
+ finished: z.ZodBoolean;
3961
+ blocked: z.ZodNullable<z.ZodEnum<{
3962
+ signed_out: "signed_out";
3963
+ offline: "offline";
3964
+ organization_required: "organization_required";
3965
+ claude_unavailable: "claude_unavailable";
3966
+ cloud_list_unavailable: "cloud_list_unavailable";
3967
+ history_too_large: "history_too_large";
3968
+ }>>;
3969
+ run: z.ZodObject<{
3970
+ local_sessions: z.ZodInt;
3971
+ in_cloud: z.ZodInt;
3972
+ missing: z.ZodInt;
3973
+ behind: z.ZodInt;
3974
+ too_large: z.ZodInt;
3975
+ imported: z.ZodInt;
3976
+ changed: z.ZodInt;
3977
+ failed: z.ZodInt;
3978
+ failures: z.ZodArray<z.ZodObject<{
3979
+ session_id: z.ZodString;
3980
+ reason: z.ZodString;
3981
+ }, z.core.$strict>>;
3982
+ remaining: z.ZodInt;
3983
+ summary: z.ZodString;
3984
+ }, z.core.$strict>;
3985
+ }, z.core.$strict>;
3986
+ readonly CodingPlanMissingParams: z.ZodObject<{
3987
+ credentials: z.ZodNullable<z.ZodObject<{
3988
+ access_token: z.ZodString;
3989
+ user_id: z.ZodString;
3990
+ server_url: z.ZodString;
3991
+ }, z.core.$strict>>;
3992
+ }, z.core.$strict>;
3993
+ readonly CodingImportNextParams: z.ZodObject<{
3994
+ plan_id: z.ZodString;
3995
+ credentials: z.ZodNullable<z.ZodObject<{
3996
+ access_token: z.ZodString;
3997
+ user_id: z.ZodString;
3998
+ server_url: z.ZodString;
3999
+ }, z.core.$strict>>;
4000
+ }, z.core.$strict>;
4001
+ readonly CodingServiceProgress: z.ZodObject<{
4002
+ phase: z.ZodEnum<{
4003
+ checking: "checking";
4004
+ importing: "importing";
4005
+ }>;
4006
+ done: z.ZodInt;
4007
+ total: z.ZodInt;
4008
+ }, z.core.$strict>;
4009
+ readonly CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
4010
+ readonly CodingHistoryImportMissingResult: z.ZodObject<{
4011
+ state: z.ZodEnum<{
4012
+ cancelled: "cancelled";
4013
+ blocked: "blocked";
4014
+ done: "done";
4015
+ }>;
4016
+ blocked: z.ZodNullable<z.ZodEnum<{
4017
+ signed_out: "signed_out";
4018
+ offline: "offline";
4019
+ organization_required: "organization_required";
4020
+ claude_unavailable: "claude_unavailable";
4021
+ cloud_list_unavailable: "cloud_list_unavailable";
4022
+ history_too_large: "history_too_large";
4023
+ }>>;
4024
+ run: z.ZodObject<{
4025
+ local_sessions: z.ZodInt;
4026
+ in_cloud: z.ZodInt;
4027
+ missing: z.ZodInt;
4028
+ behind: z.ZodInt;
4029
+ too_large: z.ZodInt;
4030
+ imported: z.ZodInt;
4031
+ changed: z.ZodInt;
4032
+ failed: z.ZodInt;
4033
+ failures: z.ZodArray<z.ZodObject<{
4034
+ session_id: z.ZodString;
4035
+ reason: z.ZodString;
4036
+ }, z.core.$strict>>;
4037
+ remaining: z.ZodInt;
4038
+ summary: z.ZodString;
4039
+ }, z.core.$strict>;
4040
+ elapsed_ms: z.ZodInt;
4041
+ }, z.core.$strict>;
4042
+ readonly CodingHistoryProgressEvent: z.ZodObject<{
4043
+ request_id: z.ZodString;
4044
+ phase: z.ZodEnum<{
4045
+ checking: "checking";
4046
+ importing: "importing";
4047
+ }>;
4048
+ done: z.ZodInt;
4049
+ total: z.ZodInt;
4050
+ imported: z.ZodInt;
4051
+ failed: z.ZodInt;
4052
+ }, z.core.$strict>;
3789
4053
  readonly ServiceName: z.ZodEnum<{
3790
4054
  ml: "ml";
4055
+ coding: "coding";
3791
4056
  }>;
3792
4057
  readonly ContractHash: z.ZodString;
3793
4058
  readonly ServiceToken: z.ZodString;
@@ -3800,6 +4065,7 @@ declare const NAMED_SCHEMAS: {
3800
4065
  type: z.ZodLiteral<"welcome">;
3801
4066
  service: z.ZodEnum<{
3802
4067
  ml: "ml";
4068
+ coding: "coding";
3803
4069
  }>;
3804
4070
  contract: z.ZodString;
3805
4071
  pid: z.ZodInt;
@@ -3930,6 +4196,7 @@ declare const NAMED_SCHEMAS: {
3930
4196
  type: z.ZodLiteral<"welcome">;
3931
4197
  service: z.ZodEnum<{
3932
4198
  ml: "ml";
4199
+ coding: "coding";
3933
4200
  }>;
3934
4201
  contract: z.ZodString;
3935
4202
  pid: z.ZodInt;
@@ -681,7 +681,7 @@ type OpSpec = {
681
681
  readonly params: z.ZodType;
682
682
  readonly result: z.ZodType;
683
683
  readonly kind: "unary" | "stream" | "resource";
684
- readonly since: "1.0" | "1.2" | "1.3" | "1.4";
684
+ readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5";
685
685
  readonly errors: readonly z.infer<typeof ErrorCode>[];
686
686
  };
687
687
  declare const OPS: {
@@ -2202,6 +2202,44 @@ declare const OPS: {
2202
2202
  readonly since: "1.4";
2203
2203
  readonly errors: readonly ["INTERNAL"];
2204
2204
  };
2205
+ readonly "coding.history.import_missing": {
2206
+ readonly params: z.ZodObject<{}, z.core.$strict>;
2207
+ readonly result: z.ZodObject<{
2208
+ state: z.ZodEnum<{
2209
+ cancelled: "cancelled";
2210
+ blocked: "blocked";
2211
+ done: "done";
2212
+ }>;
2213
+ blocked: z.ZodNullable<z.ZodEnum<{
2214
+ signed_out: "signed_out";
2215
+ offline: "offline";
2216
+ organization_required: "organization_required";
2217
+ claude_unavailable: "claude_unavailable";
2218
+ cloud_list_unavailable: "cloud_list_unavailable";
2219
+ history_too_large: "history_too_large";
2220
+ }>>;
2221
+ run: z.ZodObject<{
2222
+ local_sessions: z.ZodInt;
2223
+ in_cloud: z.ZodInt;
2224
+ missing: z.ZodInt;
2225
+ behind: z.ZodInt;
2226
+ too_large: z.ZodInt;
2227
+ imported: z.ZodInt;
2228
+ changed: z.ZodInt;
2229
+ failed: z.ZodInt;
2230
+ failures: z.ZodArray<z.ZodObject<{
2231
+ session_id: z.ZodString;
2232
+ reason: z.ZodString;
2233
+ }, z.core.$strict>>;
2234
+ remaining: z.ZodInt;
2235
+ summary: z.ZodString;
2236
+ }, z.core.$strict>;
2237
+ elapsed_ms: z.ZodInt;
2238
+ }, z.core.$strict>;
2239
+ readonly kind: "unary";
2240
+ readonly since: "1.5";
2241
+ readonly errors: readonly ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"];
2242
+ };
2205
2243
  };
2206
2244
  type OpName = keyof typeof OPS;
2207
2245
  type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
@@ -2278,6 +2316,17 @@ declare const EVENTS: {
2278
2316
  }, z.core.$strict>>;
2279
2317
  }, z.core.$strict>;
2280
2318
  }, z.core.$strict>;
2319
+ readonly "coding.history.progress": z.ZodObject<{
2320
+ request_id: z.ZodString;
2321
+ phase: z.ZodEnum<{
2322
+ checking: "checking";
2323
+ importing: "importing";
2324
+ }>;
2325
+ done: z.ZodInt;
2326
+ total: z.ZodInt;
2327
+ imported: z.ZodInt;
2328
+ failed: z.ZodInt;
2329
+ }, z.core.$strict>;
2281
2330
  readonly "relay.device_status": z.ZodObject<{
2282
2331
  online: z.ZodBoolean;
2283
2332
  since_ms: z.ZodNullable<z.ZodInt>;
@@ -2426,6 +2475,93 @@ declare const SERVICES: {
2426
2475
  };
2427
2476
  };
2428
2477
  };
2478
+ readonly coding: {
2479
+ readonly progress: z.ZodObject<{
2480
+ phase: z.ZodEnum<{
2481
+ checking: "checking";
2482
+ importing: "importing";
2483
+ }>;
2484
+ done: z.ZodInt;
2485
+ total: z.ZodInt;
2486
+ }, z.core.$strict>;
2487
+ readonly ops: {
2488
+ readonly "coding.plan_missing": {
2489
+ readonly params: z.ZodObject<{
2490
+ credentials: z.ZodNullable<z.ZodObject<{
2491
+ access_token: z.ZodString;
2492
+ user_id: z.ZodString;
2493
+ server_url: z.ZodString;
2494
+ }, z.core.$strict>>;
2495
+ }, z.core.$strict>;
2496
+ readonly result: z.ZodObject<{
2497
+ plan_id: z.ZodNullable<z.ZodString>;
2498
+ finished: z.ZodBoolean;
2499
+ blocked: z.ZodNullable<z.ZodEnum<{
2500
+ signed_out: "signed_out";
2501
+ offline: "offline";
2502
+ organization_required: "organization_required";
2503
+ claude_unavailable: "claude_unavailable";
2504
+ cloud_list_unavailable: "cloud_list_unavailable";
2505
+ history_too_large: "history_too_large";
2506
+ }>>;
2507
+ run: z.ZodObject<{
2508
+ local_sessions: z.ZodInt;
2509
+ in_cloud: z.ZodInt;
2510
+ missing: z.ZodInt;
2511
+ behind: z.ZodInt;
2512
+ too_large: z.ZodInt;
2513
+ imported: z.ZodInt;
2514
+ changed: z.ZodInt;
2515
+ failed: z.ZodInt;
2516
+ failures: z.ZodArray<z.ZodObject<{
2517
+ session_id: z.ZodString;
2518
+ reason: z.ZodString;
2519
+ }, z.core.$strict>>;
2520
+ remaining: z.ZodInt;
2521
+ summary: z.ZodString;
2522
+ }, z.core.$strict>;
2523
+ }, z.core.$strict>;
2524
+ };
2525
+ readonly "coding.import_next": {
2526
+ readonly params: z.ZodObject<{
2527
+ plan_id: z.ZodString;
2528
+ credentials: z.ZodNullable<z.ZodObject<{
2529
+ access_token: z.ZodString;
2530
+ user_id: z.ZodString;
2531
+ server_url: z.ZodString;
2532
+ }, z.core.$strict>>;
2533
+ }, z.core.$strict>;
2534
+ readonly result: z.ZodObject<{
2535
+ plan_id: z.ZodNullable<z.ZodString>;
2536
+ finished: z.ZodBoolean;
2537
+ blocked: z.ZodNullable<z.ZodEnum<{
2538
+ signed_out: "signed_out";
2539
+ offline: "offline";
2540
+ organization_required: "organization_required";
2541
+ claude_unavailable: "claude_unavailable";
2542
+ cloud_list_unavailable: "cloud_list_unavailable";
2543
+ history_too_large: "history_too_large";
2544
+ }>>;
2545
+ run: z.ZodObject<{
2546
+ local_sessions: z.ZodInt;
2547
+ in_cloud: z.ZodInt;
2548
+ missing: z.ZodInt;
2549
+ behind: z.ZodInt;
2550
+ too_large: z.ZodInt;
2551
+ imported: z.ZodInt;
2552
+ changed: z.ZodInt;
2553
+ failed: z.ZodInt;
2554
+ failures: z.ZodArray<z.ZodObject<{
2555
+ session_id: z.ZodString;
2556
+ reason: z.ZodString;
2557
+ }, z.core.$strict>>;
2558
+ remaining: z.ZodInt;
2559
+ summary: z.ZodString;
2560
+ }, z.core.$strict>;
2561
+ }, z.core.$strict>;
2562
+ };
2563
+ };
2564
+ };
2429
2565
  };
2430
2566
  type ServiceId = keyof typeof SERVICES;
2431
2567
  type ServiceOpName<S extends ServiceId> = keyof (typeof SERVICES)[S]["ops"] & string;
@@ -3786,8 +3922,137 @@ declare const NAMED_SCHEMAS: {
3786
3922
  }, z.core.$strict>>;
3787
3923
  }, z.core.$strict>;
3788
3924
  }, z.core.$strict>;
3925
+ readonly CodingServiceCredentials: z.ZodObject<{
3926
+ access_token: z.ZodString;
3927
+ user_id: z.ZodString;
3928
+ server_url: z.ZodString;
3929
+ }, z.core.$strict>;
3930
+ readonly CodingHistoryBlocked: z.ZodEnum<{
3931
+ signed_out: "signed_out";
3932
+ offline: "offline";
3933
+ organization_required: "organization_required";
3934
+ claude_unavailable: "claude_unavailable";
3935
+ cloud_list_unavailable: "cloud_list_unavailable";
3936
+ history_too_large: "history_too_large";
3937
+ }>;
3938
+ readonly CodingHistoryFailure: z.ZodObject<{
3939
+ session_id: z.ZodString;
3940
+ reason: z.ZodString;
3941
+ }, z.core.$strict>;
3942
+ readonly CodingHistoryRun: z.ZodObject<{
3943
+ local_sessions: z.ZodInt;
3944
+ in_cloud: z.ZodInt;
3945
+ missing: z.ZodInt;
3946
+ behind: z.ZodInt;
3947
+ too_large: z.ZodInt;
3948
+ imported: z.ZodInt;
3949
+ changed: z.ZodInt;
3950
+ failed: z.ZodInt;
3951
+ failures: z.ZodArray<z.ZodObject<{
3952
+ session_id: z.ZodString;
3953
+ reason: z.ZodString;
3954
+ }, z.core.$strict>>;
3955
+ remaining: z.ZodInt;
3956
+ summary: z.ZodString;
3957
+ }, z.core.$strict>;
3958
+ readonly CodingHistoryStep: z.ZodObject<{
3959
+ plan_id: z.ZodNullable<z.ZodString>;
3960
+ finished: z.ZodBoolean;
3961
+ blocked: z.ZodNullable<z.ZodEnum<{
3962
+ signed_out: "signed_out";
3963
+ offline: "offline";
3964
+ organization_required: "organization_required";
3965
+ claude_unavailable: "claude_unavailable";
3966
+ cloud_list_unavailable: "cloud_list_unavailable";
3967
+ history_too_large: "history_too_large";
3968
+ }>>;
3969
+ run: z.ZodObject<{
3970
+ local_sessions: z.ZodInt;
3971
+ in_cloud: z.ZodInt;
3972
+ missing: z.ZodInt;
3973
+ behind: z.ZodInt;
3974
+ too_large: z.ZodInt;
3975
+ imported: z.ZodInt;
3976
+ changed: z.ZodInt;
3977
+ failed: z.ZodInt;
3978
+ failures: z.ZodArray<z.ZodObject<{
3979
+ session_id: z.ZodString;
3980
+ reason: z.ZodString;
3981
+ }, z.core.$strict>>;
3982
+ remaining: z.ZodInt;
3983
+ summary: z.ZodString;
3984
+ }, z.core.$strict>;
3985
+ }, z.core.$strict>;
3986
+ readonly CodingPlanMissingParams: z.ZodObject<{
3987
+ credentials: z.ZodNullable<z.ZodObject<{
3988
+ access_token: z.ZodString;
3989
+ user_id: z.ZodString;
3990
+ server_url: z.ZodString;
3991
+ }, z.core.$strict>>;
3992
+ }, z.core.$strict>;
3993
+ readonly CodingImportNextParams: z.ZodObject<{
3994
+ plan_id: z.ZodString;
3995
+ credentials: z.ZodNullable<z.ZodObject<{
3996
+ access_token: z.ZodString;
3997
+ user_id: z.ZodString;
3998
+ server_url: z.ZodString;
3999
+ }, z.core.$strict>>;
4000
+ }, z.core.$strict>;
4001
+ readonly CodingServiceProgress: z.ZodObject<{
4002
+ phase: z.ZodEnum<{
4003
+ checking: "checking";
4004
+ importing: "importing";
4005
+ }>;
4006
+ done: z.ZodInt;
4007
+ total: z.ZodInt;
4008
+ }, z.core.$strict>;
4009
+ readonly CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
4010
+ readonly CodingHistoryImportMissingResult: z.ZodObject<{
4011
+ state: z.ZodEnum<{
4012
+ cancelled: "cancelled";
4013
+ blocked: "blocked";
4014
+ done: "done";
4015
+ }>;
4016
+ blocked: z.ZodNullable<z.ZodEnum<{
4017
+ signed_out: "signed_out";
4018
+ offline: "offline";
4019
+ organization_required: "organization_required";
4020
+ claude_unavailable: "claude_unavailable";
4021
+ cloud_list_unavailable: "cloud_list_unavailable";
4022
+ history_too_large: "history_too_large";
4023
+ }>>;
4024
+ run: z.ZodObject<{
4025
+ local_sessions: z.ZodInt;
4026
+ in_cloud: z.ZodInt;
4027
+ missing: z.ZodInt;
4028
+ behind: z.ZodInt;
4029
+ too_large: z.ZodInt;
4030
+ imported: z.ZodInt;
4031
+ changed: z.ZodInt;
4032
+ failed: z.ZodInt;
4033
+ failures: z.ZodArray<z.ZodObject<{
4034
+ session_id: z.ZodString;
4035
+ reason: z.ZodString;
4036
+ }, z.core.$strict>>;
4037
+ remaining: z.ZodInt;
4038
+ summary: z.ZodString;
4039
+ }, z.core.$strict>;
4040
+ elapsed_ms: z.ZodInt;
4041
+ }, z.core.$strict>;
4042
+ readonly CodingHistoryProgressEvent: z.ZodObject<{
4043
+ request_id: z.ZodString;
4044
+ phase: z.ZodEnum<{
4045
+ checking: "checking";
4046
+ importing: "importing";
4047
+ }>;
4048
+ done: z.ZodInt;
4049
+ total: z.ZodInt;
4050
+ imported: z.ZodInt;
4051
+ failed: z.ZodInt;
4052
+ }, z.core.$strict>;
3789
4053
  readonly ServiceName: z.ZodEnum<{
3790
4054
  ml: "ml";
4055
+ coding: "coding";
3791
4056
  }>;
3792
4057
  readonly ContractHash: z.ZodString;
3793
4058
  readonly ServiceToken: z.ZodString;
@@ -3800,6 +4065,7 @@ declare const NAMED_SCHEMAS: {
3800
4065
  type: z.ZodLiteral<"welcome">;
3801
4066
  service: z.ZodEnum<{
3802
4067
  ml: "ml";
4068
+ coding: "coding";
3803
4069
  }>;
3804
4070
  contract: z.ZodString;
3805
4071
  pid: z.ZodInt;
@@ -3930,6 +4196,7 @@ declare const NAMED_SCHEMAS: {
3930
4196
  type: z.ZodLiteral<"welcome">;
3931
4197
  service: z.ZodEnum<{
3932
4198
  ml: "ml";
4199
+ coding: "coding";
3933
4200
  }>;
3934
4201
  contract: z.ZodString;
3935
4202
  pid: z.ZodInt;