@junctionpanel/server 0.1.50 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/server/client/daemon-client.d.ts +3 -1
  2. package/dist/server/client/daemon-client.d.ts.map +1 -1
  3. package/dist/server/client/daemon-client.js +10 -0
  4. package/dist/server/client/daemon-client.js.map +1 -1
  5. package/dist/server/server/agent/providers/codex-app-server-agent.d.ts +25 -0
  6. package/dist/server/server/agent/providers/codex-app-server-agent.d.ts.map +1 -1
  7. package/dist/server/server/agent/providers/codex-app-server-agent.js +45 -0
  8. package/dist/server/server/agent/providers/codex-app-server-agent.js.map +1 -1
  9. package/dist/server/server/agent/providers/gemini-agent.d.ts.map +1 -1
  10. package/dist/server/server/agent/providers/gemini-agent.js +35 -34
  11. package/dist/server/server/agent/providers/gemini-agent.js.map +1 -1
  12. package/dist/server/server/daemon-provider-rate-limits.d.ts +72 -0
  13. package/dist/server/server/daemon-provider-rate-limits.d.ts.map +1 -0
  14. package/dist/server/server/daemon-provider-rate-limits.js +1174 -0
  15. package/dist/server/server/daemon-provider-rate-limits.js.map +1 -0
  16. package/dist/server/server/session.d.ts +1 -0
  17. package/dist/server/server/session.d.ts.map +1 -1
  18. package/dist/server/server/session.js +32 -0
  19. package/dist/server/server/session.js.map +1 -1
  20. package/dist/server/server/websocket-server.d.ts.map +1 -1
  21. package/dist/server/server/websocket-server.js +6 -0
  22. package/dist/server/server/websocket-server.js.map +1 -1
  23. package/dist/server/shared/messages.d.ts +1255 -12
  24. package/dist/server/shared/messages.d.ts.map +1 -1
  25. package/dist/server/shared/messages.js +42 -1
  26. package/dist/server/shared/messages.js.map +1 -1
  27. package/dist/server/utils/checkout-git.d.ts.map +1 -1
  28. package/dist/server/utils/checkout-git.js +14 -2
  29. package/dist/server/utils/checkout-git.js.map +1 -1
  30. package/package.json +2 -2
@@ -2119,6 +2119,16 @@ export declare const GetDaemonProviderSettingsRequestSchema: z.ZodObject<{
2119
2119
  type: "get_daemon_provider_settings_request";
2120
2120
  requestId: string;
2121
2121
  }>;
2122
+ export declare const GetDaemonProviderRateLimitsRequestSchema: z.ZodObject<{
2123
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
2124
+ requestId: z.ZodString;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ type: "get_provider_rate_limits_request";
2127
+ requestId: string;
2128
+ }, {
2129
+ type: "get_provider_rate_limits_request";
2130
+ requestId: string;
2131
+ }>;
2122
2132
  export declare const GetDaemonLogTailRequestSchema: z.ZodObject<{
2123
2133
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
2124
2134
  lines: z.ZodOptional<z.ZodNumber>;
@@ -3929,6 +3939,15 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3929
3939
  }, {
3930
3940
  type: "get_daemon_provider_settings_request";
3931
3941
  requestId: string;
3942
+ }>, z.ZodObject<{
3943
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
3944
+ requestId: z.ZodString;
3945
+ }, "strip", z.ZodTypeAny, {
3946
+ type: "get_provider_rate_limits_request";
3947
+ requestId: string;
3948
+ }, {
3949
+ type: "get_provider_rate_limits_request";
3950
+ requestId: string;
3932
3951
  }>, z.ZodObject<{
3933
3952
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
3934
3953
  lines: z.ZodOptional<z.ZodNumber>;
@@ -4265,37 +4284,101 @@ export declare const ServerCapabilityStateSchema: z.ZodObject<{
4265
4284
  reason: string;
4266
4285
  enabled: boolean;
4267
4286
  }>;
4268
- export declare const ServerCapabilitiesSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
4287
+ export declare const ServerCapabilitiesSchema: z.ZodObject<{
4288
+ rateLimits: z.ZodOptional<z.ZodObject<{
4289
+ enabled: z.ZodBoolean;
4290
+ }, "strip", z.ZodTypeAny, {
4291
+ enabled: boolean;
4292
+ }, {
4293
+ enabled: boolean;
4294
+ }>>;
4295
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4296
+ rateLimits: z.ZodOptional<z.ZodObject<{
4297
+ enabled: z.ZodBoolean;
4298
+ }, "strip", z.ZodTypeAny, {
4299
+ enabled: boolean;
4300
+ }, {
4301
+ enabled: boolean;
4302
+ }>>;
4303
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4304
+ rateLimits: z.ZodOptional<z.ZodObject<{
4305
+ enabled: z.ZodBoolean;
4306
+ }, "strip", z.ZodTypeAny, {
4307
+ enabled: boolean;
4308
+ }, {
4309
+ enabled: boolean;
4310
+ }>>;
4311
+ }, z.ZodTypeAny, "passthrough">>;
4269
4312
  export declare const ServerInfoStatusPayloadSchema: z.ZodEffects<z.ZodObject<{
4270
4313
  status: z.ZodLiteral<"server_info">;
4271
4314
  serverId: z.ZodString;
4272
4315
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4273
4316
  version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4274
- capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4317
+ capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4318
+ rateLimits: z.ZodOptional<z.ZodObject<{
4319
+ enabled: z.ZodBoolean;
4320
+ }, "strip", z.ZodTypeAny, {
4321
+ enabled: boolean;
4322
+ }, {
4323
+ enabled: boolean;
4324
+ }>>;
4325
+ }, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4275
4326
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4276
4327
  status: z.ZodLiteral<"server_info">;
4277
4328
  serverId: z.ZodString;
4278
4329
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4279
4330
  version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4280
- capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4331
+ capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4332
+ rateLimits: z.ZodOptional<z.ZodObject<{
4333
+ enabled: z.ZodBoolean;
4334
+ }, "strip", z.ZodTypeAny, {
4335
+ enabled: boolean;
4336
+ }, {
4337
+ enabled: boolean;
4338
+ }>>;
4339
+ }, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4281
4340
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4282
4341
  status: z.ZodLiteral<"server_info">;
4283
4342
  serverId: z.ZodString;
4284
4343
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4285
4344
  version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4286
- capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4345
+ capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4346
+ rateLimits: z.ZodOptional<z.ZodObject<{
4347
+ enabled: z.ZodBoolean;
4348
+ }, "strip", z.ZodTypeAny, {
4349
+ enabled: boolean;
4350
+ }, {
4351
+ enabled: boolean;
4352
+ }>>;
4353
+ }, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4287
4354
  }, z.ZodTypeAny, "passthrough">>, {
4288
4355
  hostname: string | null;
4289
4356
  version: string | null;
4290
4357
  status: "server_info";
4291
4358
  serverId: string;
4292
- capabilities?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4359
+ capabilities?: z.objectOutputType<{
4360
+ rateLimits: z.ZodOptional<z.ZodObject<{
4361
+ enabled: z.ZodBoolean;
4362
+ }, "strip", z.ZodTypeAny, {
4363
+ enabled: boolean;
4364
+ }, {
4365
+ enabled: boolean;
4366
+ }>>;
4367
+ }, z.ZodTypeAny, "passthrough"> | undefined;
4293
4368
  }, z.objectInputType<{
4294
4369
  status: z.ZodLiteral<"server_info">;
4295
4370
  serverId: z.ZodString;
4296
4371
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4297
4372
  version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4298
- capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4373
+ capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4374
+ rateLimits: z.ZodOptional<z.ZodObject<{
4375
+ enabled: z.ZodBoolean;
4376
+ }, "strip", z.ZodTypeAny, {
4377
+ enabled: boolean;
4378
+ }, {
4379
+ enabled: boolean;
4380
+ }>>;
4381
+ }, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4299
4382
  }, z.ZodTypeAny, "passthrough">>;
4300
4383
  export declare const StatusMessageSchema: z.ZodObject<{
4301
4384
  type: z.ZodLiteral<"status">;
@@ -11457,6 +11540,236 @@ export declare const GetDaemonProviderSettingsResponseSchema: z.ZodObject<{
11457
11540
  };
11458
11541
  };
11459
11542
  }>;
11543
+ export declare const GetDaemonProviderRateLimitsResponseSchema: z.ZodObject<{
11544
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
11545
+ payload: z.ZodObject<{
11546
+ daemon: z.ZodObject<{
11547
+ hostname: z.ZodNullable<z.ZodString>;
11548
+ version: z.ZodNullable<z.ZodString>;
11549
+ platform: z.ZodString;
11550
+ homeDir: z.ZodString;
11551
+ rootDir: z.ZodString;
11552
+ }, "strip", z.ZodTypeAny, {
11553
+ hostname: string | null;
11554
+ version: string | null;
11555
+ platform: string;
11556
+ homeDir: string;
11557
+ rootDir: string;
11558
+ }, {
11559
+ hostname: string | null;
11560
+ version: string | null;
11561
+ platform: string;
11562
+ homeDir: string;
11563
+ rootDir: string;
11564
+ }>;
11565
+ providers: z.ZodArray<z.ZodObject<{
11566
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
11567
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
11568
+ sourceLabel: z.ZodNullable<z.ZodString>;
11569
+ planLabel: z.ZodNullable<z.ZodString>;
11570
+ accountLabel: z.ZodNullable<z.ZodString>;
11571
+ message: z.ZodNullable<z.ZodString>;
11572
+ refreshedAt: z.ZodString;
11573
+ windows: z.ZodArray<z.ZodObject<{
11574
+ id: z.ZodString;
11575
+ label: z.ZodString;
11576
+ windowLabel: z.ZodString;
11577
+ unitLabel: z.ZodNullable<z.ZodString>;
11578
+ limit: z.ZodNullable<z.ZodNumber>;
11579
+ used: z.ZodNullable<z.ZodNumber>;
11580
+ remaining: z.ZodNullable<z.ZodNumber>;
11581
+ resetsAt: z.ZodNullable<z.ZodString>;
11582
+ message: z.ZodNullable<z.ZodString>;
11583
+ }, "strip", z.ZodTypeAny, {
11584
+ id: string;
11585
+ message: string | null;
11586
+ label: string;
11587
+ limit: number | null;
11588
+ windowLabel: string;
11589
+ unitLabel: string | null;
11590
+ used: number | null;
11591
+ remaining: number | null;
11592
+ resetsAt: string | null;
11593
+ }, {
11594
+ id: string;
11595
+ message: string | null;
11596
+ label: string;
11597
+ limit: number | null;
11598
+ windowLabel: string;
11599
+ unitLabel: string | null;
11600
+ used: number | null;
11601
+ remaining: number | null;
11602
+ resetsAt: string | null;
11603
+ }>, "many">;
11604
+ }, "strip", z.ZodTypeAny, {
11605
+ status: "error" | "available" | "unavailable";
11606
+ provider: "codex" | "claude" | "gemini";
11607
+ message: string | null;
11608
+ sourceLabel: string | null;
11609
+ planLabel: string | null;
11610
+ accountLabel: string | null;
11611
+ refreshedAt: string;
11612
+ windows: {
11613
+ id: string;
11614
+ message: string | null;
11615
+ label: string;
11616
+ limit: number | null;
11617
+ windowLabel: string;
11618
+ unitLabel: string | null;
11619
+ used: number | null;
11620
+ remaining: number | null;
11621
+ resetsAt: string | null;
11622
+ }[];
11623
+ }, {
11624
+ status: "error" | "available" | "unavailable";
11625
+ provider: "codex" | "claude" | "gemini";
11626
+ message: string | null;
11627
+ sourceLabel: string | null;
11628
+ planLabel: string | null;
11629
+ accountLabel: string | null;
11630
+ refreshedAt: string;
11631
+ windows: {
11632
+ id: string;
11633
+ message: string | null;
11634
+ label: string;
11635
+ limit: number | null;
11636
+ windowLabel: string;
11637
+ unitLabel: string | null;
11638
+ used: number | null;
11639
+ remaining: number | null;
11640
+ resetsAt: string | null;
11641
+ }[];
11642
+ }>, "many">;
11643
+ error: z.ZodNullable<z.ZodString>;
11644
+ requestId: z.ZodString;
11645
+ }, "strip", z.ZodTypeAny, {
11646
+ error: string | null;
11647
+ requestId: string;
11648
+ providers: {
11649
+ status: "error" | "available" | "unavailable";
11650
+ provider: "codex" | "claude" | "gemini";
11651
+ message: string | null;
11652
+ sourceLabel: string | null;
11653
+ planLabel: string | null;
11654
+ accountLabel: string | null;
11655
+ refreshedAt: string;
11656
+ windows: {
11657
+ id: string;
11658
+ message: string | null;
11659
+ label: string;
11660
+ limit: number | null;
11661
+ windowLabel: string;
11662
+ unitLabel: string | null;
11663
+ used: number | null;
11664
+ remaining: number | null;
11665
+ resetsAt: string | null;
11666
+ }[];
11667
+ }[];
11668
+ daemon: {
11669
+ hostname: string | null;
11670
+ version: string | null;
11671
+ platform: string;
11672
+ homeDir: string;
11673
+ rootDir: string;
11674
+ };
11675
+ }, {
11676
+ error: string | null;
11677
+ requestId: string;
11678
+ providers: {
11679
+ status: "error" | "available" | "unavailable";
11680
+ provider: "codex" | "claude" | "gemini";
11681
+ message: string | null;
11682
+ sourceLabel: string | null;
11683
+ planLabel: string | null;
11684
+ accountLabel: string | null;
11685
+ refreshedAt: string;
11686
+ windows: {
11687
+ id: string;
11688
+ message: string | null;
11689
+ label: string;
11690
+ limit: number | null;
11691
+ windowLabel: string;
11692
+ unitLabel: string | null;
11693
+ used: number | null;
11694
+ remaining: number | null;
11695
+ resetsAt: string | null;
11696
+ }[];
11697
+ }[];
11698
+ daemon: {
11699
+ hostname: string | null;
11700
+ version: string | null;
11701
+ platform: string;
11702
+ homeDir: string;
11703
+ rootDir: string;
11704
+ };
11705
+ }>;
11706
+ }, "strip", z.ZodTypeAny, {
11707
+ type: "get_provider_rate_limits_response";
11708
+ payload: {
11709
+ error: string | null;
11710
+ requestId: string;
11711
+ providers: {
11712
+ status: "error" | "available" | "unavailable";
11713
+ provider: "codex" | "claude" | "gemini";
11714
+ message: string | null;
11715
+ sourceLabel: string | null;
11716
+ planLabel: string | null;
11717
+ accountLabel: string | null;
11718
+ refreshedAt: string;
11719
+ windows: {
11720
+ id: string;
11721
+ message: string | null;
11722
+ label: string;
11723
+ limit: number | null;
11724
+ windowLabel: string;
11725
+ unitLabel: string | null;
11726
+ used: number | null;
11727
+ remaining: number | null;
11728
+ resetsAt: string | null;
11729
+ }[];
11730
+ }[];
11731
+ daemon: {
11732
+ hostname: string | null;
11733
+ version: string | null;
11734
+ platform: string;
11735
+ homeDir: string;
11736
+ rootDir: string;
11737
+ };
11738
+ };
11739
+ }, {
11740
+ type: "get_provider_rate_limits_response";
11741
+ payload: {
11742
+ error: string | null;
11743
+ requestId: string;
11744
+ providers: {
11745
+ status: "error" | "available" | "unavailable";
11746
+ provider: "codex" | "claude" | "gemini";
11747
+ message: string | null;
11748
+ sourceLabel: string | null;
11749
+ planLabel: string | null;
11750
+ accountLabel: string | null;
11751
+ refreshedAt: string;
11752
+ windows: {
11753
+ id: string;
11754
+ message: string | null;
11755
+ label: string;
11756
+ limit: number | null;
11757
+ windowLabel: string;
11758
+ unitLabel: string | null;
11759
+ used: number | null;
11760
+ remaining: number | null;
11761
+ resetsAt: string | null;
11762
+ }[];
11763
+ }[];
11764
+ daemon: {
11765
+ hostname: string | null;
11766
+ version: string | null;
11767
+ platform: string;
11768
+ homeDir: string;
11769
+ rootDir: string;
11770
+ };
11771
+ };
11772
+ }>;
11460
11773
  export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11461
11774
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
11462
11775
  payload: z.ZodObject<{
@@ -18654,6 +18967,235 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18654
18967
  rootDir: string;
18655
18968
  };
18656
18969
  };
18970
+ }>, z.ZodObject<{
18971
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
18972
+ payload: z.ZodObject<{
18973
+ daemon: z.ZodObject<{
18974
+ hostname: z.ZodNullable<z.ZodString>;
18975
+ version: z.ZodNullable<z.ZodString>;
18976
+ platform: z.ZodString;
18977
+ homeDir: z.ZodString;
18978
+ rootDir: z.ZodString;
18979
+ }, "strip", z.ZodTypeAny, {
18980
+ hostname: string | null;
18981
+ version: string | null;
18982
+ platform: string;
18983
+ homeDir: string;
18984
+ rootDir: string;
18985
+ }, {
18986
+ hostname: string | null;
18987
+ version: string | null;
18988
+ platform: string;
18989
+ homeDir: string;
18990
+ rootDir: string;
18991
+ }>;
18992
+ providers: z.ZodArray<z.ZodObject<{
18993
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
18994
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
18995
+ sourceLabel: z.ZodNullable<z.ZodString>;
18996
+ planLabel: z.ZodNullable<z.ZodString>;
18997
+ accountLabel: z.ZodNullable<z.ZodString>;
18998
+ message: z.ZodNullable<z.ZodString>;
18999
+ refreshedAt: z.ZodString;
19000
+ windows: z.ZodArray<z.ZodObject<{
19001
+ id: z.ZodString;
19002
+ label: z.ZodString;
19003
+ windowLabel: z.ZodString;
19004
+ unitLabel: z.ZodNullable<z.ZodString>;
19005
+ limit: z.ZodNullable<z.ZodNumber>;
19006
+ used: z.ZodNullable<z.ZodNumber>;
19007
+ remaining: z.ZodNullable<z.ZodNumber>;
19008
+ resetsAt: z.ZodNullable<z.ZodString>;
19009
+ message: z.ZodNullable<z.ZodString>;
19010
+ }, "strip", z.ZodTypeAny, {
19011
+ id: string;
19012
+ message: string | null;
19013
+ label: string;
19014
+ limit: number | null;
19015
+ windowLabel: string;
19016
+ unitLabel: string | null;
19017
+ used: number | null;
19018
+ remaining: number | null;
19019
+ resetsAt: string | null;
19020
+ }, {
19021
+ id: string;
19022
+ message: string | null;
19023
+ label: string;
19024
+ limit: number | null;
19025
+ windowLabel: string;
19026
+ unitLabel: string | null;
19027
+ used: number | null;
19028
+ remaining: number | null;
19029
+ resetsAt: string | null;
19030
+ }>, "many">;
19031
+ }, "strip", z.ZodTypeAny, {
19032
+ status: "error" | "available" | "unavailable";
19033
+ provider: "codex" | "claude" | "gemini";
19034
+ message: string | null;
19035
+ sourceLabel: string | null;
19036
+ planLabel: string | null;
19037
+ accountLabel: string | null;
19038
+ refreshedAt: string;
19039
+ windows: {
19040
+ id: string;
19041
+ message: string | null;
19042
+ label: string;
19043
+ limit: number | null;
19044
+ windowLabel: string;
19045
+ unitLabel: string | null;
19046
+ used: number | null;
19047
+ remaining: number | null;
19048
+ resetsAt: string | null;
19049
+ }[];
19050
+ }, {
19051
+ status: "error" | "available" | "unavailable";
19052
+ provider: "codex" | "claude" | "gemini";
19053
+ message: string | null;
19054
+ sourceLabel: string | null;
19055
+ planLabel: string | null;
19056
+ accountLabel: string | null;
19057
+ refreshedAt: string;
19058
+ windows: {
19059
+ id: string;
19060
+ message: string | null;
19061
+ label: string;
19062
+ limit: number | null;
19063
+ windowLabel: string;
19064
+ unitLabel: string | null;
19065
+ used: number | null;
19066
+ remaining: number | null;
19067
+ resetsAt: string | null;
19068
+ }[];
19069
+ }>, "many">;
19070
+ error: z.ZodNullable<z.ZodString>;
19071
+ requestId: z.ZodString;
19072
+ }, "strip", z.ZodTypeAny, {
19073
+ error: string | null;
19074
+ requestId: string;
19075
+ providers: {
19076
+ status: "error" | "available" | "unavailable";
19077
+ provider: "codex" | "claude" | "gemini";
19078
+ message: string | null;
19079
+ sourceLabel: string | null;
19080
+ planLabel: string | null;
19081
+ accountLabel: string | null;
19082
+ refreshedAt: string;
19083
+ windows: {
19084
+ id: string;
19085
+ message: string | null;
19086
+ label: string;
19087
+ limit: number | null;
19088
+ windowLabel: string;
19089
+ unitLabel: string | null;
19090
+ used: number | null;
19091
+ remaining: number | null;
19092
+ resetsAt: string | null;
19093
+ }[];
19094
+ }[];
19095
+ daemon: {
19096
+ hostname: string | null;
19097
+ version: string | null;
19098
+ platform: string;
19099
+ homeDir: string;
19100
+ rootDir: string;
19101
+ };
19102
+ }, {
19103
+ error: string | null;
19104
+ requestId: string;
19105
+ providers: {
19106
+ status: "error" | "available" | "unavailable";
19107
+ provider: "codex" | "claude" | "gemini";
19108
+ message: string | null;
19109
+ sourceLabel: string | null;
19110
+ planLabel: string | null;
19111
+ accountLabel: string | null;
19112
+ refreshedAt: string;
19113
+ windows: {
19114
+ id: string;
19115
+ message: string | null;
19116
+ label: string;
19117
+ limit: number | null;
19118
+ windowLabel: string;
19119
+ unitLabel: string | null;
19120
+ used: number | null;
19121
+ remaining: number | null;
19122
+ resetsAt: string | null;
19123
+ }[];
19124
+ }[];
19125
+ daemon: {
19126
+ hostname: string | null;
19127
+ version: string | null;
19128
+ platform: string;
19129
+ homeDir: string;
19130
+ rootDir: string;
19131
+ };
19132
+ }>;
19133
+ }, "strip", z.ZodTypeAny, {
19134
+ type: "get_provider_rate_limits_response";
19135
+ payload: {
19136
+ error: string | null;
19137
+ requestId: string;
19138
+ providers: {
19139
+ status: "error" | "available" | "unavailable";
19140
+ provider: "codex" | "claude" | "gemini";
19141
+ message: string | null;
19142
+ sourceLabel: string | null;
19143
+ planLabel: string | null;
19144
+ accountLabel: string | null;
19145
+ refreshedAt: string;
19146
+ windows: {
19147
+ id: string;
19148
+ message: string | null;
19149
+ label: string;
19150
+ limit: number | null;
19151
+ windowLabel: string;
19152
+ unitLabel: string | null;
19153
+ used: number | null;
19154
+ remaining: number | null;
19155
+ resetsAt: string | null;
19156
+ }[];
19157
+ }[];
19158
+ daemon: {
19159
+ hostname: string | null;
19160
+ version: string | null;
19161
+ platform: string;
19162
+ homeDir: string;
19163
+ rootDir: string;
19164
+ };
19165
+ };
19166
+ }, {
19167
+ type: "get_provider_rate_limits_response";
19168
+ payload: {
19169
+ error: string | null;
19170
+ requestId: string;
19171
+ providers: {
19172
+ status: "error" | "available" | "unavailable";
19173
+ provider: "codex" | "claude" | "gemini";
19174
+ message: string | null;
19175
+ sourceLabel: string | null;
19176
+ planLabel: string | null;
19177
+ accountLabel: string | null;
19178
+ refreshedAt: string;
19179
+ windows: {
19180
+ id: string;
19181
+ message: string | null;
19182
+ label: string;
19183
+ limit: number | null;
19184
+ windowLabel: string;
19185
+ unitLabel: string | null;
19186
+ used: number | null;
19187
+ remaining: number | null;
19188
+ resetsAt: string | null;
19189
+ }[];
19190
+ }[];
19191
+ daemon: {
19192
+ hostname: string | null;
19193
+ version: string | null;
19194
+ platform: string;
19195
+ homeDir: string;
19196
+ rootDir: string;
19197
+ };
19198
+ };
18657
19199
  }>, z.ZodObject<{
18658
19200
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
18659
19201
  payload: z.ZodObject<{
@@ -19767,6 +20309,7 @@ export type ListProviderModelsResponseMessage = z.infer<typeof ListProviderModel
19767
20309
  export type ListAvailableProvidersResponse = z.infer<typeof ListAvailableProvidersResponseSchema>;
19768
20310
  export type RunDaemonDoctorResponse = z.infer<typeof RunDaemonDoctorResponseSchema>;
19769
20311
  export type GetDaemonProviderSettingsResponse = z.infer<typeof GetDaemonProviderSettingsResponseSchema>;
20312
+ export type GetDaemonProviderRateLimitsResponse = z.infer<typeof GetDaemonProviderRateLimitsResponseSchema>;
19770
20313
  export type GetDaemonLogTailRequest = z.infer<typeof GetDaemonLogTailRequestSchema>;
19771
20314
  export type GetDaemonLogTailResponse = z.infer<typeof GetDaemonLogTailResponseSchema>;
19772
20315
  export type UpdateDaemonProviderSettingsResponse = z.infer<typeof UpdateDaemonProviderSettingsResponseSchema>;
@@ -19914,21 +20457,61 @@ export declare const WSWelcomeMessageSchema: z.ZodObject<{
19914
20457
  hostname: z.ZodNullable<z.ZodString>;
19915
20458
  version: z.ZodNullable<z.ZodString>;
19916
20459
  resumed: z.ZodBoolean;
19917
- capabilities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
20460
+ capabilities: z.ZodOptional<z.ZodObject<{
20461
+ rateLimits: z.ZodOptional<z.ZodObject<{
20462
+ enabled: z.ZodBoolean;
20463
+ }, "strip", z.ZodTypeAny, {
20464
+ enabled: boolean;
20465
+ }, {
20466
+ enabled: boolean;
20467
+ }>>;
20468
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
20469
+ rateLimits: z.ZodOptional<z.ZodObject<{
20470
+ enabled: z.ZodBoolean;
20471
+ }, "strip", z.ZodTypeAny, {
20472
+ enabled: boolean;
20473
+ }, {
20474
+ enabled: boolean;
20475
+ }>>;
20476
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
20477
+ rateLimits: z.ZodOptional<z.ZodObject<{
20478
+ enabled: z.ZodBoolean;
20479
+ }, "strip", z.ZodTypeAny, {
20480
+ enabled: boolean;
20481
+ }, {
20482
+ enabled: boolean;
20483
+ }>>;
20484
+ }, z.ZodTypeAny, "passthrough">>>;
19918
20485
  }, "strip", z.ZodTypeAny, {
19919
20486
  type: "welcome";
19920
20487
  serverId: string;
19921
20488
  hostname: string | null;
19922
20489
  version: string | null;
19923
20490
  resumed: boolean;
19924
- capabilities?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
20491
+ capabilities?: z.objectOutputType<{
20492
+ rateLimits: z.ZodOptional<z.ZodObject<{
20493
+ enabled: z.ZodBoolean;
20494
+ }, "strip", z.ZodTypeAny, {
20495
+ enabled: boolean;
20496
+ }, {
20497
+ enabled: boolean;
20498
+ }>>;
20499
+ }, z.ZodTypeAny, "passthrough"> | undefined;
19925
20500
  }, {
19926
20501
  type: "welcome";
19927
20502
  serverId: string;
19928
20503
  hostname: string | null;
19929
20504
  version: string | null;
19930
20505
  resumed: boolean;
19931
- capabilities?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
20506
+ capabilities?: z.objectInputType<{
20507
+ rateLimits: z.ZodOptional<z.ZodObject<{
20508
+ enabled: z.ZodBoolean;
20509
+ }, "strip", z.ZodTypeAny, {
20510
+ enabled: boolean;
20511
+ }, {
20512
+ enabled: boolean;
20513
+ }>>;
20514
+ }, z.ZodTypeAny, "passthrough"> | undefined;
19932
20515
  }>;
19933
20516
  export declare const WSSessionInboundSchema: z.ZodObject<{
19934
20517
  type: z.ZodLiteral<"session">;
@@ -21483,6 +22066,15 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21483
22066
  }, {
21484
22067
  type: "get_daemon_provider_settings_request";
21485
22068
  requestId: string;
22069
+ }>, z.ZodObject<{
22070
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
22071
+ requestId: z.ZodString;
22072
+ }, "strip", z.ZodTypeAny, {
22073
+ type: "get_provider_rate_limits_request";
22074
+ requestId: string;
22075
+ }, {
22076
+ type: "get_provider_rate_limits_request";
22077
+ requestId: string;
21486
22078
  }>, z.ZodObject<{
21487
22079
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
21488
22080
  lines: z.ZodOptional<z.ZodNumber>;
@@ -22140,6 +22732,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22140
22732
  } | {
22141
22733
  type: "get_daemon_provider_settings_request";
22142
22734
  requestId: string;
22735
+ } | {
22736
+ type: "get_provider_rate_limits_request";
22737
+ requestId: string;
22143
22738
  } | {
22144
22739
  type: "get_daemon_log_tail_request";
22145
22740
  requestId: string;
@@ -22626,6 +23221,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22626
23221
  } | {
22627
23222
  type: "get_daemon_provider_settings_request";
22628
23223
  requestId: string;
23224
+ } | {
23225
+ type: "get_provider_rate_limits_request";
23226
+ requestId: string;
22629
23227
  } | {
22630
23228
  type: "get_daemon_log_tail_request";
22631
23229
  requestId: string;
@@ -28806,6 +29404,235 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28806
29404
  rootDir: string;
28807
29405
  };
28808
29406
  };
29407
+ }>, z.ZodObject<{
29408
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
29409
+ payload: z.ZodObject<{
29410
+ daemon: z.ZodObject<{
29411
+ hostname: z.ZodNullable<z.ZodString>;
29412
+ version: z.ZodNullable<z.ZodString>;
29413
+ platform: z.ZodString;
29414
+ homeDir: z.ZodString;
29415
+ rootDir: z.ZodString;
29416
+ }, "strip", z.ZodTypeAny, {
29417
+ hostname: string | null;
29418
+ version: string | null;
29419
+ platform: string;
29420
+ homeDir: string;
29421
+ rootDir: string;
29422
+ }, {
29423
+ hostname: string | null;
29424
+ version: string | null;
29425
+ platform: string;
29426
+ homeDir: string;
29427
+ rootDir: string;
29428
+ }>;
29429
+ providers: z.ZodArray<z.ZodObject<{
29430
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
29431
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
29432
+ sourceLabel: z.ZodNullable<z.ZodString>;
29433
+ planLabel: z.ZodNullable<z.ZodString>;
29434
+ accountLabel: z.ZodNullable<z.ZodString>;
29435
+ message: z.ZodNullable<z.ZodString>;
29436
+ refreshedAt: z.ZodString;
29437
+ windows: z.ZodArray<z.ZodObject<{
29438
+ id: z.ZodString;
29439
+ label: z.ZodString;
29440
+ windowLabel: z.ZodString;
29441
+ unitLabel: z.ZodNullable<z.ZodString>;
29442
+ limit: z.ZodNullable<z.ZodNumber>;
29443
+ used: z.ZodNullable<z.ZodNumber>;
29444
+ remaining: z.ZodNullable<z.ZodNumber>;
29445
+ resetsAt: z.ZodNullable<z.ZodString>;
29446
+ message: z.ZodNullable<z.ZodString>;
29447
+ }, "strip", z.ZodTypeAny, {
29448
+ id: string;
29449
+ message: string | null;
29450
+ label: string;
29451
+ limit: number | null;
29452
+ windowLabel: string;
29453
+ unitLabel: string | null;
29454
+ used: number | null;
29455
+ remaining: number | null;
29456
+ resetsAt: string | null;
29457
+ }, {
29458
+ id: string;
29459
+ message: string | null;
29460
+ label: string;
29461
+ limit: number | null;
29462
+ windowLabel: string;
29463
+ unitLabel: string | null;
29464
+ used: number | null;
29465
+ remaining: number | null;
29466
+ resetsAt: string | null;
29467
+ }>, "many">;
29468
+ }, "strip", z.ZodTypeAny, {
29469
+ status: "error" | "available" | "unavailable";
29470
+ provider: "codex" | "claude" | "gemini";
29471
+ message: string | null;
29472
+ sourceLabel: string | null;
29473
+ planLabel: string | null;
29474
+ accountLabel: string | null;
29475
+ refreshedAt: string;
29476
+ windows: {
29477
+ id: string;
29478
+ message: string | null;
29479
+ label: string;
29480
+ limit: number | null;
29481
+ windowLabel: string;
29482
+ unitLabel: string | null;
29483
+ used: number | null;
29484
+ remaining: number | null;
29485
+ resetsAt: string | null;
29486
+ }[];
29487
+ }, {
29488
+ status: "error" | "available" | "unavailable";
29489
+ provider: "codex" | "claude" | "gemini";
29490
+ message: string | null;
29491
+ sourceLabel: string | null;
29492
+ planLabel: string | null;
29493
+ accountLabel: string | null;
29494
+ refreshedAt: string;
29495
+ windows: {
29496
+ id: string;
29497
+ message: string | null;
29498
+ label: string;
29499
+ limit: number | null;
29500
+ windowLabel: string;
29501
+ unitLabel: string | null;
29502
+ used: number | null;
29503
+ remaining: number | null;
29504
+ resetsAt: string | null;
29505
+ }[];
29506
+ }>, "many">;
29507
+ error: z.ZodNullable<z.ZodString>;
29508
+ requestId: z.ZodString;
29509
+ }, "strip", z.ZodTypeAny, {
29510
+ error: string | null;
29511
+ requestId: string;
29512
+ providers: {
29513
+ status: "error" | "available" | "unavailable";
29514
+ provider: "codex" | "claude" | "gemini";
29515
+ message: string | null;
29516
+ sourceLabel: string | null;
29517
+ planLabel: string | null;
29518
+ accountLabel: string | null;
29519
+ refreshedAt: string;
29520
+ windows: {
29521
+ id: string;
29522
+ message: string | null;
29523
+ label: string;
29524
+ limit: number | null;
29525
+ windowLabel: string;
29526
+ unitLabel: string | null;
29527
+ used: number | null;
29528
+ remaining: number | null;
29529
+ resetsAt: string | null;
29530
+ }[];
29531
+ }[];
29532
+ daemon: {
29533
+ hostname: string | null;
29534
+ version: string | null;
29535
+ platform: string;
29536
+ homeDir: string;
29537
+ rootDir: string;
29538
+ };
29539
+ }, {
29540
+ error: string | null;
29541
+ requestId: string;
29542
+ providers: {
29543
+ status: "error" | "available" | "unavailable";
29544
+ provider: "codex" | "claude" | "gemini";
29545
+ message: string | null;
29546
+ sourceLabel: string | null;
29547
+ planLabel: string | null;
29548
+ accountLabel: string | null;
29549
+ refreshedAt: string;
29550
+ windows: {
29551
+ id: string;
29552
+ message: string | null;
29553
+ label: string;
29554
+ limit: number | null;
29555
+ windowLabel: string;
29556
+ unitLabel: string | null;
29557
+ used: number | null;
29558
+ remaining: number | null;
29559
+ resetsAt: string | null;
29560
+ }[];
29561
+ }[];
29562
+ daemon: {
29563
+ hostname: string | null;
29564
+ version: string | null;
29565
+ platform: string;
29566
+ homeDir: string;
29567
+ rootDir: string;
29568
+ };
29569
+ }>;
29570
+ }, "strip", z.ZodTypeAny, {
29571
+ type: "get_provider_rate_limits_response";
29572
+ payload: {
29573
+ error: string | null;
29574
+ requestId: string;
29575
+ providers: {
29576
+ status: "error" | "available" | "unavailable";
29577
+ provider: "codex" | "claude" | "gemini";
29578
+ message: string | null;
29579
+ sourceLabel: string | null;
29580
+ planLabel: string | null;
29581
+ accountLabel: string | null;
29582
+ refreshedAt: string;
29583
+ windows: {
29584
+ id: string;
29585
+ message: string | null;
29586
+ label: string;
29587
+ limit: number | null;
29588
+ windowLabel: string;
29589
+ unitLabel: string | null;
29590
+ used: number | null;
29591
+ remaining: number | null;
29592
+ resetsAt: string | null;
29593
+ }[];
29594
+ }[];
29595
+ daemon: {
29596
+ hostname: string | null;
29597
+ version: string | null;
29598
+ platform: string;
29599
+ homeDir: string;
29600
+ rootDir: string;
29601
+ };
29602
+ };
29603
+ }, {
29604
+ type: "get_provider_rate_limits_response";
29605
+ payload: {
29606
+ error: string | null;
29607
+ requestId: string;
29608
+ providers: {
29609
+ status: "error" | "available" | "unavailable";
29610
+ provider: "codex" | "claude" | "gemini";
29611
+ message: string | null;
29612
+ sourceLabel: string | null;
29613
+ planLabel: string | null;
29614
+ accountLabel: string | null;
29615
+ refreshedAt: string;
29616
+ windows: {
29617
+ id: string;
29618
+ message: string | null;
29619
+ label: string;
29620
+ limit: number | null;
29621
+ windowLabel: string;
29622
+ unitLabel: string | null;
29623
+ used: number | null;
29624
+ remaining: number | null;
29625
+ resetsAt: string | null;
29626
+ }[];
29627
+ }[];
29628
+ daemon: {
29629
+ hostname: string | null;
29630
+ version: string | null;
29631
+ platform: string;
29632
+ homeDir: string;
29633
+ rootDir: string;
29634
+ };
29635
+ };
28809
29636
  }>, z.ZodObject<{
28810
29637
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
28811
29638
  payload: z.ZodObject<{
@@ -30896,6 +31723,39 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30896
31723
  rootDir: string;
30897
31724
  };
30898
31725
  };
31726
+ } | {
31727
+ type: "get_provider_rate_limits_response";
31728
+ payload: {
31729
+ error: string | null;
31730
+ requestId: string;
31731
+ providers: {
31732
+ status: "error" | "available" | "unavailable";
31733
+ provider: "codex" | "claude" | "gemini";
31734
+ message: string | null;
31735
+ sourceLabel: string | null;
31736
+ planLabel: string | null;
31737
+ accountLabel: string | null;
31738
+ refreshedAt: string;
31739
+ windows: {
31740
+ id: string;
31741
+ message: string | null;
31742
+ label: string;
31743
+ limit: number | null;
31744
+ windowLabel: string;
31745
+ unitLabel: string | null;
31746
+ used: number | null;
31747
+ remaining: number | null;
31748
+ resetsAt: string | null;
31749
+ }[];
31750
+ }[];
31751
+ daemon: {
31752
+ hostname: string | null;
31753
+ version: string | null;
31754
+ platform: string;
31755
+ homeDir: string;
31756
+ rootDir: string;
31757
+ };
31758
+ };
30899
31759
  } | {
30900
31760
  type: "get_daemon_log_tail_response";
30901
31761
  payload: {
@@ -32087,6 +32947,39 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
32087
32947
  rootDir: string;
32088
32948
  };
32089
32949
  };
32950
+ } | {
32951
+ type: "get_provider_rate_limits_response";
32952
+ payload: {
32953
+ error: string | null;
32954
+ requestId: string;
32955
+ providers: {
32956
+ status: "error" | "available" | "unavailable";
32957
+ provider: "codex" | "claude" | "gemini";
32958
+ message: string | null;
32959
+ sourceLabel: string | null;
32960
+ planLabel: string | null;
32961
+ accountLabel: string | null;
32962
+ refreshedAt: string;
32963
+ windows: {
32964
+ id: string;
32965
+ message: string | null;
32966
+ label: string;
32967
+ limit: number | null;
32968
+ windowLabel: string;
32969
+ unitLabel: string | null;
32970
+ used: number | null;
32971
+ remaining: number | null;
32972
+ resetsAt: string | null;
32973
+ }[];
32974
+ }[];
32975
+ daemon: {
32976
+ hostname: string | null;
32977
+ version: string | null;
32978
+ platform: string;
32979
+ homeDir: string;
32980
+ rootDir: string;
32981
+ };
32982
+ };
32090
32983
  } | {
32091
32984
  type: "get_daemon_log_tail_response";
32092
32985
  payload: {
@@ -33852,6 +34745,15 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33852
34745
  }, {
33853
34746
  type: "get_daemon_provider_settings_request";
33854
34747
  requestId: string;
34748
+ }>, z.ZodObject<{
34749
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
34750
+ requestId: z.ZodString;
34751
+ }, "strip", z.ZodTypeAny, {
34752
+ type: "get_provider_rate_limits_request";
34753
+ requestId: string;
34754
+ }, {
34755
+ type: "get_provider_rate_limits_request";
34756
+ requestId: string;
33855
34757
  }>, z.ZodObject<{
33856
34758
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
33857
34759
  lines: z.ZodOptional<z.ZodNumber>;
@@ -34509,6 +35411,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34509
35411
  } | {
34510
35412
  type: "get_daemon_provider_settings_request";
34511
35413
  requestId: string;
35414
+ } | {
35415
+ type: "get_provider_rate_limits_request";
35416
+ requestId: string;
34512
35417
  } | {
34513
35418
  type: "get_daemon_log_tail_request";
34514
35419
  requestId: string;
@@ -34995,6 +35900,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34995
35900
  } | {
34996
35901
  type: "get_daemon_provider_settings_request";
34997
35902
  requestId: string;
35903
+ } | {
35904
+ type: "get_provider_rate_limits_request";
35905
+ requestId: string;
34998
35906
  } | {
34999
35907
  type: "get_daemon_log_tail_request";
35000
35908
  requestId: string;
@@ -35083,21 +35991,61 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35083
35991
  hostname: z.ZodNullable<z.ZodString>;
35084
35992
  version: z.ZodNullable<z.ZodString>;
35085
35993
  resumed: z.ZodBoolean;
35086
- capabilities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
35994
+ capabilities: z.ZodOptional<z.ZodObject<{
35995
+ rateLimits: z.ZodOptional<z.ZodObject<{
35996
+ enabled: z.ZodBoolean;
35997
+ }, "strip", z.ZodTypeAny, {
35998
+ enabled: boolean;
35999
+ }, {
36000
+ enabled: boolean;
36001
+ }>>;
36002
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
36003
+ rateLimits: z.ZodOptional<z.ZodObject<{
36004
+ enabled: z.ZodBoolean;
36005
+ }, "strip", z.ZodTypeAny, {
36006
+ enabled: boolean;
36007
+ }, {
36008
+ enabled: boolean;
36009
+ }>>;
36010
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
36011
+ rateLimits: z.ZodOptional<z.ZodObject<{
36012
+ enabled: z.ZodBoolean;
36013
+ }, "strip", z.ZodTypeAny, {
36014
+ enabled: boolean;
36015
+ }, {
36016
+ enabled: boolean;
36017
+ }>>;
36018
+ }, z.ZodTypeAny, "passthrough">>>;
35087
36019
  }, "strip", z.ZodTypeAny, {
35088
36020
  type: "welcome";
35089
36021
  serverId: string;
35090
36022
  hostname: string | null;
35091
36023
  version: string | null;
35092
36024
  resumed: boolean;
35093
- capabilities?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
36025
+ capabilities?: z.objectOutputType<{
36026
+ rateLimits: z.ZodOptional<z.ZodObject<{
36027
+ enabled: z.ZodBoolean;
36028
+ }, "strip", z.ZodTypeAny, {
36029
+ enabled: boolean;
36030
+ }, {
36031
+ enabled: boolean;
36032
+ }>>;
36033
+ }, z.ZodTypeAny, "passthrough"> | undefined;
35094
36034
  }, {
35095
36035
  type: "welcome";
35096
36036
  serverId: string;
35097
36037
  hostname: string | null;
35098
36038
  version: string | null;
35099
36039
  resumed: boolean;
35100
- capabilities?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
36040
+ capabilities?: z.objectInputType<{
36041
+ rateLimits: z.ZodOptional<z.ZodObject<{
36042
+ enabled: z.ZodBoolean;
36043
+ }, "strip", z.ZodTypeAny, {
36044
+ enabled: boolean;
36045
+ }, {
36046
+ enabled: boolean;
36047
+ }>>;
36048
+ }, z.ZodTypeAny, "passthrough"> | undefined;
35101
36049
  }>, z.ZodObject<{
35102
36050
  type: z.ZodLiteral<"session">;
35103
36051
  message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -41202,6 +42150,235 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41202
42150
  rootDir: string;
41203
42151
  };
41204
42152
  };
42153
+ }>, z.ZodObject<{
42154
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
42155
+ payload: z.ZodObject<{
42156
+ daemon: z.ZodObject<{
42157
+ hostname: z.ZodNullable<z.ZodString>;
42158
+ version: z.ZodNullable<z.ZodString>;
42159
+ platform: z.ZodString;
42160
+ homeDir: z.ZodString;
42161
+ rootDir: z.ZodString;
42162
+ }, "strip", z.ZodTypeAny, {
42163
+ hostname: string | null;
42164
+ version: string | null;
42165
+ platform: string;
42166
+ homeDir: string;
42167
+ rootDir: string;
42168
+ }, {
42169
+ hostname: string | null;
42170
+ version: string | null;
42171
+ platform: string;
42172
+ homeDir: string;
42173
+ rootDir: string;
42174
+ }>;
42175
+ providers: z.ZodArray<z.ZodObject<{
42176
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
42177
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
42178
+ sourceLabel: z.ZodNullable<z.ZodString>;
42179
+ planLabel: z.ZodNullable<z.ZodString>;
42180
+ accountLabel: z.ZodNullable<z.ZodString>;
42181
+ message: z.ZodNullable<z.ZodString>;
42182
+ refreshedAt: z.ZodString;
42183
+ windows: z.ZodArray<z.ZodObject<{
42184
+ id: z.ZodString;
42185
+ label: z.ZodString;
42186
+ windowLabel: z.ZodString;
42187
+ unitLabel: z.ZodNullable<z.ZodString>;
42188
+ limit: z.ZodNullable<z.ZodNumber>;
42189
+ used: z.ZodNullable<z.ZodNumber>;
42190
+ remaining: z.ZodNullable<z.ZodNumber>;
42191
+ resetsAt: z.ZodNullable<z.ZodString>;
42192
+ message: z.ZodNullable<z.ZodString>;
42193
+ }, "strip", z.ZodTypeAny, {
42194
+ id: string;
42195
+ message: string | null;
42196
+ label: string;
42197
+ limit: number | null;
42198
+ windowLabel: string;
42199
+ unitLabel: string | null;
42200
+ used: number | null;
42201
+ remaining: number | null;
42202
+ resetsAt: string | null;
42203
+ }, {
42204
+ id: string;
42205
+ message: string | null;
42206
+ label: string;
42207
+ limit: number | null;
42208
+ windowLabel: string;
42209
+ unitLabel: string | null;
42210
+ used: number | null;
42211
+ remaining: number | null;
42212
+ resetsAt: string | null;
42213
+ }>, "many">;
42214
+ }, "strip", z.ZodTypeAny, {
42215
+ status: "error" | "available" | "unavailable";
42216
+ provider: "codex" | "claude" | "gemini";
42217
+ message: string | null;
42218
+ sourceLabel: string | null;
42219
+ planLabel: string | null;
42220
+ accountLabel: string | null;
42221
+ refreshedAt: string;
42222
+ windows: {
42223
+ id: string;
42224
+ message: string | null;
42225
+ label: string;
42226
+ limit: number | null;
42227
+ windowLabel: string;
42228
+ unitLabel: string | null;
42229
+ used: number | null;
42230
+ remaining: number | null;
42231
+ resetsAt: string | null;
42232
+ }[];
42233
+ }, {
42234
+ status: "error" | "available" | "unavailable";
42235
+ provider: "codex" | "claude" | "gemini";
42236
+ message: string | null;
42237
+ sourceLabel: string | null;
42238
+ planLabel: string | null;
42239
+ accountLabel: string | null;
42240
+ refreshedAt: string;
42241
+ windows: {
42242
+ id: string;
42243
+ message: string | null;
42244
+ label: string;
42245
+ limit: number | null;
42246
+ windowLabel: string;
42247
+ unitLabel: string | null;
42248
+ used: number | null;
42249
+ remaining: number | null;
42250
+ resetsAt: string | null;
42251
+ }[];
42252
+ }>, "many">;
42253
+ error: z.ZodNullable<z.ZodString>;
42254
+ requestId: z.ZodString;
42255
+ }, "strip", z.ZodTypeAny, {
42256
+ error: string | null;
42257
+ requestId: string;
42258
+ providers: {
42259
+ status: "error" | "available" | "unavailable";
42260
+ provider: "codex" | "claude" | "gemini";
42261
+ message: string | null;
42262
+ sourceLabel: string | null;
42263
+ planLabel: string | null;
42264
+ accountLabel: string | null;
42265
+ refreshedAt: string;
42266
+ windows: {
42267
+ id: string;
42268
+ message: string | null;
42269
+ label: string;
42270
+ limit: number | null;
42271
+ windowLabel: string;
42272
+ unitLabel: string | null;
42273
+ used: number | null;
42274
+ remaining: number | null;
42275
+ resetsAt: string | null;
42276
+ }[];
42277
+ }[];
42278
+ daemon: {
42279
+ hostname: string | null;
42280
+ version: string | null;
42281
+ platform: string;
42282
+ homeDir: string;
42283
+ rootDir: string;
42284
+ };
42285
+ }, {
42286
+ error: string | null;
42287
+ requestId: string;
42288
+ providers: {
42289
+ status: "error" | "available" | "unavailable";
42290
+ provider: "codex" | "claude" | "gemini";
42291
+ message: string | null;
42292
+ sourceLabel: string | null;
42293
+ planLabel: string | null;
42294
+ accountLabel: string | null;
42295
+ refreshedAt: string;
42296
+ windows: {
42297
+ id: string;
42298
+ message: string | null;
42299
+ label: string;
42300
+ limit: number | null;
42301
+ windowLabel: string;
42302
+ unitLabel: string | null;
42303
+ used: number | null;
42304
+ remaining: number | null;
42305
+ resetsAt: string | null;
42306
+ }[];
42307
+ }[];
42308
+ daemon: {
42309
+ hostname: string | null;
42310
+ version: string | null;
42311
+ platform: string;
42312
+ homeDir: string;
42313
+ rootDir: string;
42314
+ };
42315
+ }>;
42316
+ }, "strip", z.ZodTypeAny, {
42317
+ type: "get_provider_rate_limits_response";
42318
+ payload: {
42319
+ error: string | null;
42320
+ requestId: string;
42321
+ providers: {
42322
+ status: "error" | "available" | "unavailable";
42323
+ provider: "codex" | "claude" | "gemini";
42324
+ message: string | null;
42325
+ sourceLabel: string | null;
42326
+ planLabel: string | null;
42327
+ accountLabel: string | null;
42328
+ refreshedAt: string;
42329
+ windows: {
42330
+ id: string;
42331
+ message: string | null;
42332
+ label: string;
42333
+ limit: number | null;
42334
+ windowLabel: string;
42335
+ unitLabel: string | null;
42336
+ used: number | null;
42337
+ remaining: number | null;
42338
+ resetsAt: string | null;
42339
+ }[];
42340
+ }[];
42341
+ daemon: {
42342
+ hostname: string | null;
42343
+ version: string | null;
42344
+ platform: string;
42345
+ homeDir: string;
42346
+ rootDir: string;
42347
+ };
42348
+ };
42349
+ }, {
42350
+ type: "get_provider_rate_limits_response";
42351
+ payload: {
42352
+ error: string | null;
42353
+ requestId: string;
42354
+ providers: {
42355
+ status: "error" | "available" | "unavailable";
42356
+ provider: "codex" | "claude" | "gemini";
42357
+ message: string | null;
42358
+ sourceLabel: string | null;
42359
+ planLabel: string | null;
42360
+ accountLabel: string | null;
42361
+ refreshedAt: string;
42362
+ windows: {
42363
+ id: string;
42364
+ message: string | null;
42365
+ label: string;
42366
+ limit: number | null;
42367
+ windowLabel: string;
42368
+ unitLabel: string | null;
42369
+ used: number | null;
42370
+ remaining: number | null;
42371
+ resetsAt: string | null;
42372
+ }[];
42373
+ }[];
42374
+ daemon: {
42375
+ hostname: string | null;
42376
+ version: string | null;
42377
+ platform: string;
42378
+ homeDir: string;
42379
+ rootDir: string;
42380
+ };
42381
+ };
41205
42382
  }>, z.ZodObject<{
41206
42383
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
41207
42384
  payload: z.ZodObject<{
@@ -43292,6 +44469,39 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
43292
44469
  rootDir: string;
43293
44470
  };
43294
44471
  };
44472
+ } | {
44473
+ type: "get_provider_rate_limits_response";
44474
+ payload: {
44475
+ error: string | null;
44476
+ requestId: string;
44477
+ providers: {
44478
+ status: "error" | "available" | "unavailable";
44479
+ provider: "codex" | "claude" | "gemini";
44480
+ message: string | null;
44481
+ sourceLabel: string | null;
44482
+ planLabel: string | null;
44483
+ accountLabel: string | null;
44484
+ refreshedAt: string;
44485
+ windows: {
44486
+ id: string;
44487
+ message: string | null;
44488
+ label: string;
44489
+ limit: number | null;
44490
+ windowLabel: string;
44491
+ unitLabel: string | null;
44492
+ used: number | null;
44493
+ remaining: number | null;
44494
+ resetsAt: string | null;
44495
+ }[];
44496
+ }[];
44497
+ daemon: {
44498
+ hostname: string | null;
44499
+ version: string | null;
44500
+ platform: string;
44501
+ homeDir: string;
44502
+ rootDir: string;
44503
+ };
44504
+ };
43295
44505
  } | {
43296
44506
  type: "get_daemon_log_tail_response";
43297
44507
  payload: {
@@ -44483,6 +45693,39 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
44483
45693
  rootDir: string;
44484
45694
  };
44485
45695
  };
45696
+ } | {
45697
+ type: "get_provider_rate_limits_response";
45698
+ payload: {
45699
+ error: string | null;
45700
+ requestId: string;
45701
+ providers: {
45702
+ status: "error" | "available" | "unavailable";
45703
+ provider: "codex" | "claude" | "gemini";
45704
+ message: string | null;
45705
+ sourceLabel: string | null;
45706
+ planLabel: string | null;
45707
+ accountLabel: string | null;
45708
+ refreshedAt: string;
45709
+ windows: {
45710
+ id: string;
45711
+ message: string | null;
45712
+ label: string;
45713
+ limit: number | null;
45714
+ windowLabel: string;
45715
+ unitLabel: string | null;
45716
+ used: number | null;
45717
+ remaining: number | null;
45718
+ resetsAt: string | null;
45719
+ }[];
45720
+ }[];
45721
+ daemon: {
45722
+ hostname: string | null;
45723
+ version: string | null;
45724
+ platform: string;
45725
+ homeDir: string;
45726
+ rootDir: string;
45727
+ };
45728
+ };
44486
45729
  } | {
44487
45730
  type: "get_daemon_log_tail_response";
44488
45731
  payload: {