@junctionpanel/server 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/server/client/daemon-client.d.ts +4 -1
  2. package/dist/server/client/daemon-client.d.ts.map +1 -1
  3. package/dist/server/client/daemon-client.js +11 -0
  4. package/dist/server/client/daemon-client.js.map +1 -1
  5. package/dist/server/server/agent/agent-sdk-types.d.ts +7 -0
  6. package/dist/server/server/agent/agent-sdk-types.d.ts.map +1 -1
  7. package/dist/server/server/agent/providers/codex-app-server-agent.d.ts +25 -0
  8. package/dist/server/server/agent/providers/codex-app-server-agent.d.ts.map +1 -1
  9. package/dist/server/server/agent/providers/codex-app-server-agent.js +45 -0
  10. package/dist/server/server/agent/providers/codex-app-server-agent.js.map +1 -1
  11. package/dist/server/server/agent/providers/tool-call-detail-primitives.d.ts +21 -0
  12. package/dist/server/server/agent/providers/tool-call-detail-primitives.d.ts.map +1 -1
  13. package/dist/server/server/daemon-provider-rate-limits.d.ts +72 -0
  14. package/dist/server/server/daemon-provider-rate-limits.d.ts.map +1 -0
  15. package/dist/server/server/daemon-provider-rate-limits.js +1174 -0
  16. package/dist/server/server/daemon-provider-rate-limits.js.map +1 -0
  17. package/dist/server/server/session.d.ts +1 -0
  18. package/dist/server/server/session.d.ts.map +1 -1
  19. package/dist/server/server/session.js +39 -1
  20. package/dist/server/server/session.js.map +1 -1
  21. package/dist/server/server/tool-call-preview.d.ts +6 -0
  22. package/dist/server/server/tool-call-preview.d.ts.map +1 -0
  23. package/dist/server/server/tool-call-preview.js +174 -0
  24. package/dist/server/server/tool-call-preview.js.map +1 -0
  25. package/dist/server/shared/messages.d.ts +1135 -20
  26. package/dist/server/shared/messages.d.ts.map +1 -1
  27. package/dist/server/shared/messages.js +44 -0
  28. package/dist/server/shared/messages.js.map +1 -1
  29. package/package.json +2 -2
@@ -1237,6 +1237,7 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1237
1237
  }>>;
1238
1238
  limit: z.ZodOptional<z.ZodNumber>;
1239
1239
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
1240
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
1240
1241
  }, "strip", z.ZodTypeAny, {
1241
1242
  agentId: string;
1242
1243
  type: "fetch_agent_timeline_request";
@@ -1248,6 +1249,7 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1248
1249
  epoch: string;
1249
1250
  } | undefined;
1250
1251
  projection?: "projected" | "canonical" | undefined;
1252
+ detailMode?: "preview" | "full" | undefined;
1251
1253
  }, {
1252
1254
  agentId: string;
1253
1255
  type: "fetch_agent_timeline_request";
@@ -1259,6 +1261,7 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1259
1261
  epoch: string;
1260
1262
  } | undefined;
1261
1263
  projection?: "projected" | "canonical" | undefined;
1264
+ detailMode?: "preview" | "full" | undefined;
1262
1265
  }>;
1263
1266
  export declare const SetAgentModeRequestMessageSchema: z.ZodObject<{
1264
1267
  type: z.ZodLiteral<"set_agent_mode_request">;
@@ -2116,6 +2119,16 @@ export declare const GetDaemonProviderSettingsRequestSchema: z.ZodObject<{
2116
2119
  type: "get_daemon_provider_settings_request";
2117
2120
  requestId: string;
2118
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
+ }>;
2119
2132
  export declare const GetDaemonLogTailRequestSchema: z.ZodObject<{
2120
2133
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
2121
2134
  lines: z.ZodOptional<z.ZodNumber>;
@@ -3256,6 +3269,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3256
3269
  }>>;
3257
3270
  limit: z.ZodOptional<z.ZodNumber>;
3258
3271
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
3272
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
3259
3273
  }, "strip", z.ZodTypeAny, {
3260
3274
  agentId: string;
3261
3275
  type: "fetch_agent_timeline_request";
@@ -3267,6 +3281,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3267
3281
  epoch: string;
3268
3282
  } | undefined;
3269
3283
  projection?: "projected" | "canonical" | undefined;
3284
+ detailMode?: "preview" | "full" | undefined;
3270
3285
  }, {
3271
3286
  agentId: string;
3272
3287
  type: "fetch_agent_timeline_request";
@@ -3278,6 +3293,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3278
3293
  epoch: string;
3279
3294
  } | undefined;
3280
3295
  projection?: "projected" | "canonical" | undefined;
3296
+ detailMode?: "preview" | "full" | undefined;
3281
3297
  }>, z.ZodObject<{
3282
3298
  type: z.ZodLiteral<"set_agent_mode_request">;
3283
3299
  agentId: z.ZodString;
@@ -3923,6 +3939,15 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3923
3939
  }, {
3924
3940
  type: "get_daemon_provider_settings_request";
3925
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;
3926
3951
  }>, z.ZodObject<{
3927
3952
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
3928
3953
  lines: z.ZodOptional<z.ZodNumber>;
@@ -11451,6 +11476,236 @@ export declare const GetDaemonProviderSettingsResponseSchema: z.ZodObject<{
11451
11476
  };
11452
11477
  };
11453
11478
  }>;
11479
+ export declare const GetDaemonProviderRateLimitsResponseSchema: z.ZodObject<{
11480
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
11481
+ payload: z.ZodObject<{
11482
+ daemon: z.ZodObject<{
11483
+ hostname: z.ZodNullable<z.ZodString>;
11484
+ version: z.ZodNullable<z.ZodString>;
11485
+ platform: z.ZodString;
11486
+ homeDir: z.ZodString;
11487
+ rootDir: z.ZodString;
11488
+ }, "strip", z.ZodTypeAny, {
11489
+ hostname: string | null;
11490
+ version: string | null;
11491
+ platform: string;
11492
+ homeDir: string;
11493
+ rootDir: string;
11494
+ }, {
11495
+ hostname: string | null;
11496
+ version: string | null;
11497
+ platform: string;
11498
+ homeDir: string;
11499
+ rootDir: string;
11500
+ }>;
11501
+ providers: z.ZodArray<z.ZodObject<{
11502
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
11503
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
11504
+ sourceLabel: z.ZodNullable<z.ZodString>;
11505
+ planLabel: z.ZodNullable<z.ZodString>;
11506
+ accountLabel: z.ZodNullable<z.ZodString>;
11507
+ message: z.ZodNullable<z.ZodString>;
11508
+ refreshedAt: z.ZodString;
11509
+ windows: z.ZodArray<z.ZodObject<{
11510
+ id: z.ZodString;
11511
+ label: z.ZodString;
11512
+ windowLabel: z.ZodString;
11513
+ unitLabel: z.ZodNullable<z.ZodString>;
11514
+ limit: z.ZodNullable<z.ZodNumber>;
11515
+ used: z.ZodNullable<z.ZodNumber>;
11516
+ remaining: z.ZodNullable<z.ZodNumber>;
11517
+ resetsAt: z.ZodNullable<z.ZodString>;
11518
+ message: z.ZodNullable<z.ZodString>;
11519
+ }, "strip", z.ZodTypeAny, {
11520
+ id: string;
11521
+ message: string | null;
11522
+ label: string;
11523
+ limit: number | null;
11524
+ windowLabel: string;
11525
+ unitLabel: string | null;
11526
+ used: number | null;
11527
+ remaining: number | null;
11528
+ resetsAt: string | null;
11529
+ }, {
11530
+ id: string;
11531
+ message: string | null;
11532
+ label: string;
11533
+ limit: number | null;
11534
+ windowLabel: string;
11535
+ unitLabel: string | null;
11536
+ used: number | null;
11537
+ remaining: number | null;
11538
+ resetsAt: string | null;
11539
+ }>, "many">;
11540
+ }, "strip", z.ZodTypeAny, {
11541
+ status: "error" | "available" | "unavailable";
11542
+ provider: "codex" | "claude" | "gemini";
11543
+ message: string | null;
11544
+ sourceLabel: string | null;
11545
+ planLabel: string | null;
11546
+ accountLabel: string | null;
11547
+ refreshedAt: string;
11548
+ windows: {
11549
+ id: string;
11550
+ message: string | null;
11551
+ label: string;
11552
+ limit: number | null;
11553
+ windowLabel: string;
11554
+ unitLabel: string | null;
11555
+ used: number | null;
11556
+ remaining: number | null;
11557
+ resetsAt: string | null;
11558
+ }[];
11559
+ }, {
11560
+ status: "error" | "available" | "unavailable";
11561
+ provider: "codex" | "claude" | "gemini";
11562
+ message: string | null;
11563
+ sourceLabel: string | null;
11564
+ planLabel: string | null;
11565
+ accountLabel: string | null;
11566
+ refreshedAt: string;
11567
+ windows: {
11568
+ id: string;
11569
+ message: string | null;
11570
+ label: string;
11571
+ limit: number | null;
11572
+ windowLabel: string;
11573
+ unitLabel: string | null;
11574
+ used: number | null;
11575
+ remaining: number | null;
11576
+ resetsAt: string | null;
11577
+ }[];
11578
+ }>, "many">;
11579
+ error: z.ZodNullable<z.ZodString>;
11580
+ requestId: z.ZodString;
11581
+ }, "strip", z.ZodTypeAny, {
11582
+ error: string | null;
11583
+ requestId: string;
11584
+ providers: {
11585
+ status: "error" | "available" | "unavailable";
11586
+ provider: "codex" | "claude" | "gemini";
11587
+ message: string | null;
11588
+ sourceLabel: string | null;
11589
+ planLabel: string | null;
11590
+ accountLabel: string | null;
11591
+ refreshedAt: string;
11592
+ windows: {
11593
+ id: string;
11594
+ message: string | null;
11595
+ label: string;
11596
+ limit: number | null;
11597
+ windowLabel: string;
11598
+ unitLabel: string | null;
11599
+ used: number | null;
11600
+ remaining: number | null;
11601
+ resetsAt: string | null;
11602
+ }[];
11603
+ }[];
11604
+ daemon: {
11605
+ hostname: string | null;
11606
+ version: string | null;
11607
+ platform: string;
11608
+ homeDir: string;
11609
+ rootDir: string;
11610
+ };
11611
+ }, {
11612
+ error: string | null;
11613
+ requestId: string;
11614
+ providers: {
11615
+ status: "error" | "available" | "unavailable";
11616
+ provider: "codex" | "claude" | "gemini";
11617
+ message: string | null;
11618
+ sourceLabel: string | null;
11619
+ planLabel: string | null;
11620
+ accountLabel: string | null;
11621
+ refreshedAt: string;
11622
+ windows: {
11623
+ id: string;
11624
+ message: string | null;
11625
+ label: string;
11626
+ limit: number | null;
11627
+ windowLabel: string;
11628
+ unitLabel: string | null;
11629
+ used: number | null;
11630
+ remaining: number | null;
11631
+ resetsAt: string | null;
11632
+ }[];
11633
+ }[];
11634
+ daemon: {
11635
+ hostname: string | null;
11636
+ version: string | null;
11637
+ platform: string;
11638
+ homeDir: string;
11639
+ rootDir: string;
11640
+ };
11641
+ }>;
11642
+ }, "strip", z.ZodTypeAny, {
11643
+ type: "get_provider_rate_limits_response";
11644
+ payload: {
11645
+ error: string | null;
11646
+ requestId: string;
11647
+ providers: {
11648
+ status: "error" | "available" | "unavailable";
11649
+ provider: "codex" | "claude" | "gemini";
11650
+ message: string | null;
11651
+ sourceLabel: string | null;
11652
+ planLabel: string | null;
11653
+ accountLabel: string | null;
11654
+ refreshedAt: string;
11655
+ windows: {
11656
+ id: string;
11657
+ message: string | null;
11658
+ label: string;
11659
+ limit: number | null;
11660
+ windowLabel: string;
11661
+ unitLabel: string | null;
11662
+ used: number | null;
11663
+ remaining: number | null;
11664
+ resetsAt: string | null;
11665
+ }[];
11666
+ }[];
11667
+ daemon: {
11668
+ hostname: string | null;
11669
+ version: string | null;
11670
+ platform: string;
11671
+ homeDir: string;
11672
+ rootDir: string;
11673
+ };
11674
+ };
11675
+ }, {
11676
+ type: "get_provider_rate_limits_response";
11677
+ payload: {
11678
+ error: string | null;
11679
+ requestId: string;
11680
+ providers: {
11681
+ status: "error" | "available" | "unavailable";
11682
+ provider: "codex" | "claude" | "gemini";
11683
+ message: string | null;
11684
+ sourceLabel: string | null;
11685
+ planLabel: string | null;
11686
+ accountLabel: string | null;
11687
+ refreshedAt: string;
11688
+ windows: {
11689
+ id: string;
11690
+ message: string | null;
11691
+ label: string;
11692
+ limit: number | null;
11693
+ windowLabel: string;
11694
+ unitLabel: string | null;
11695
+ used: number | null;
11696
+ remaining: number | null;
11697
+ resetsAt: string | null;
11698
+ }[];
11699
+ }[];
11700
+ daemon: {
11701
+ hostname: string | null;
11702
+ version: string | null;
11703
+ platform: string;
11704
+ homeDir: string;
11705
+ rootDir: string;
11706
+ };
11707
+ };
11708
+ }>;
11454
11709
  export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11455
11710
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
11456
11711
  payload: z.ZodObject<{
@@ -11462,15 +11717,15 @@ export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11462
11717
  requestId: z.ZodString;
11463
11718
  }, "strip", z.ZodTypeAny, {
11464
11719
  error: string | null;
11465
- content: string;
11466
11720
  truncated: boolean;
11721
+ content: string;
11467
11722
  requestId: string;
11468
11723
  logPath: string | null;
11469
11724
  lineCount: number;
11470
11725
  }, {
11471
11726
  error: string | null;
11472
- content: string;
11473
11727
  truncated: boolean;
11728
+ content: string;
11474
11729
  requestId: string;
11475
11730
  logPath: string | null;
11476
11731
  lineCount: number;
@@ -11479,8 +11734,8 @@ export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11479
11734
  type: "get_daemon_log_tail_response";
11480
11735
  payload: {
11481
11736
  error: string | null;
11482
- content: string;
11483
11737
  truncated: boolean;
11738
+ content: string;
11484
11739
  requestId: string;
11485
11740
  logPath: string | null;
11486
11741
  lineCount: number;
@@ -11489,8 +11744,8 @@ export declare const GetDaemonLogTailResponseSchema: z.ZodObject<{
11489
11744
  type: "get_daemon_log_tail_response";
11490
11745
  payload: {
11491
11746
  error: string | null;
11492
- content: string;
11493
11747
  truncated: boolean;
11748
+ content: string;
11494
11749
  requestId: string;
11495
11750
  logPath: string | null;
11496
11751
  lineCount: number;
@@ -18648,6 +18903,235 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18648
18903
  rootDir: string;
18649
18904
  };
18650
18905
  };
18906
+ }>, z.ZodObject<{
18907
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
18908
+ payload: z.ZodObject<{
18909
+ daemon: z.ZodObject<{
18910
+ hostname: z.ZodNullable<z.ZodString>;
18911
+ version: z.ZodNullable<z.ZodString>;
18912
+ platform: z.ZodString;
18913
+ homeDir: z.ZodString;
18914
+ rootDir: z.ZodString;
18915
+ }, "strip", z.ZodTypeAny, {
18916
+ hostname: string | null;
18917
+ version: string | null;
18918
+ platform: string;
18919
+ homeDir: string;
18920
+ rootDir: string;
18921
+ }, {
18922
+ hostname: string | null;
18923
+ version: string | null;
18924
+ platform: string;
18925
+ homeDir: string;
18926
+ rootDir: string;
18927
+ }>;
18928
+ providers: z.ZodArray<z.ZodObject<{
18929
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
18930
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
18931
+ sourceLabel: z.ZodNullable<z.ZodString>;
18932
+ planLabel: z.ZodNullable<z.ZodString>;
18933
+ accountLabel: z.ZodNullable<z.ZodString>;
18934
+ message: z.ZodNullable<z.ZodString>;
18935
+ refreshedAt: z.ZodString;
18936
+ windows: z.ZodArray<z.ZodObject<{
18937
+ id: z.ZodString;
18938
+ label: z.ZodString;
18939
+ windowLabel: z.ZodString;
18940
+ unitLabel: z.ZodNullable<z.ZodString>;
18941
+ limit: z.ZodNullable<z.ZodNumber>;
18942
+ used: z.ZodNullable<z.ZodNumber>;
18943
+ remaining: z.ZodNullable<z.ZodNumber>;
18944
+ resetsAt: z.ZodNullable<z.ZodString>;
18945
+ message: z.ZodNullable<z.ZodString>;
18946
+ }, "strip", z.ZodTypeAny, {
18947
+ id: string;
18948
+ message: string | null;
18949
+ label: string;
18950
+ limit: number | null;
18951
+ windowLabel: string;
18952
+ unitLabel: string | null;
18953
+ used: number | null;
18954
+ remaining: number | null;
18955
+ resetsAt: string | null;
18956
+ }, {
18957
+ id: string;
18958
+ message: string | null;
18959
+ label: string;
18960
+ limit: number | null;
18961
+ windowLabel: string;
18962
+ unitLabel: string | null;
18963
+ used: number | null;
18964
+ remaining: number | null;
18965
+ resetsAt: string | null;
18966
+ }>, "many">;
18967
+ }, "strip", z.ZodTypeAny, {
18968
+ status: "error" | "available" | "unavailable";
18969
+ provider: "codex" | "claude" | "gemini";
18970
+ message: string | null;
18971
+ sourceLabel: string | null;
18972
+ planLabel: string | null;
18973
+ accountLabel: string | null;
18974
+ refreshedAt: string;
18975
+ windows: {
18976
+ id: string;
18977
+ message: string | null;
18978
+ label: string;
18979
+ limit: number | null;
18980
+ windowLabel: string;
18981
+ unitLabel: string | null;
18982
+ used: number | null;
18983
+ remaining: number | null;
18984
+ resetsAt: string | null;
18985
+ }[];
18986
+ }, {
18987
+ status: "error" | "available" | "unavailable";
18988
+ provider: "codex" | "claude" | "gemini";
18989
+ message: string | null;
18990
+ sourceLabel: string | null;
18991
+ planLabel: string | null;
18992
+ accountLabel: string | null;
18993
+ refreshedAt: string;
18994
+ windows: {
18995
+ id: string;
18996
+ message: string | null;
18997
+ label: string;
18998
+ limit: number | null;
18999
+ windowLabel: string;
19000
+ unitLabel: string | null;
19001
+ used: number | null;
19002
+ remaining: number | null;
19003
+ resetsAt: string | null;
19004
+ }[];
19005
+ }>, "many">;
19006
+ error: z.ZodNullable<z.ZodString>;
19007
+ requestId: z.ZodString;
19008
+ }, "strip", z.ZodTypeAny, {
19009
+ error: string | null;
19010
+ requestId: string;
19011
+ providers: {
19012
+ status: "error" | "available" | "unavailable";
19013
+ provider: "codex" | "claude" | "gemini";
19014
+ message: string | null;
19015
+ sourceLabel: string | null;
19016
+ planLabel: string | null;
19017
+ accountLabel: string | null;
19018
+ refreshedAt: string;
19019
+ windows: {
19020
+ id: string;
19021
+ message: string | null;
19022
+ label: string;
19023
+ limit: number | null;
19024
+ windowLabel: string;
19025
+ unitLabel: string | null;
19026
+ used: number | null;
19027
+ remaining: number | null;
19028
+ resetsAt: string | null;
19029
+ }[];
19030
+ }[];
19031
+ daemon: {
19032
+ hostname: string | null;
19033
+ version: string | null;
19034
+ platform: string;
19035
+ homeDir: string;
19036
+ rootDir: string;
19037
+ };
19038
+ }, {
19039
+ error: string | null;
19040
+ requestId: string;
19041
+ providers: {
19042
+ status: "error" | "available" | "unavailable";
19043
+ provider: "codex" | "claude" | "gemini";
19044
+ message: string | null;
19045
+ sourceLabel: string | null;
19046
+ planLabel: string | null;
19047
+ accountLabel: string | null;
19048
+ refreshedAt: string;
19049
+ windows: {
19050
+ id: string;
19051
+ message: string | null;
19052
+ label: string;
19053
+ limit: number | null;
19054
+ windowLabel: string;
19055
+ unitLabel: string | null;
19056
+ used: number | null;
19057
+ remaining: number | null;
19058
+ resetsAt: string | null;
19059
+ }[];
19060
+ }[];
19061
+ daemon: {
19062
+ hostname: string | null;
19063
+ version: string | null;
19064
+ platform: string;
19065
+ homeDir: string;
19066
+ rootDir: string;
19067
+ };
19068
+ }>;
19069
+ }, "strip", z.ZodTypeAny, {
19070
+ type: "get_provider_rate_limits_response";
19071
+ payload: {
19072
+ error: string | null;
19073
+ requestId: string;
19074
+ providers: {
19075
+ status: "error" | "available" | "unavailable";
19076
+ provider: "codex" | "claude" | "gemini";
19077
+ message: string | null;
19078
+ sourceLabel: string | null;
19079
+ planLabel: string | null;
19080
+ accountLabel: string | null;
19081
+ refreshedAt: string;
19082
+ windows: {
19083
+ id: string;
19084
+ message: string | null;
19085
+ label: string;
19086
+ limit: number | null;
19087
+ windowLabel: string;
19088
+ unitLabel: string | null;
19089
+ used: number | null;
19090
+ remaining: number | null;
19091
+ resetsAt: string | null;
19092
+ }[];
19093
+ }[];
19094
+ daemon: {
19095
+ hostname: string | null;
19096
+ version: string | null;
19097
+ platform: string;
19098
+ homeDir: string;
19099
+ rootDir: string;
19100
+ };
19101
+ };
19102
+ }, {
19103
+ type: "get_provider_rate_limits_response";
19104
+ payload: {
19105
+ error: string | null;
19106
+ requestId: string;
19107
+ providers: {
19108
+ status: "error" | "available" | "unavailable";
19109
+ provider: "codex" | "claude" | "gemini";
19110
+ message: string | null;
19111
+ sourceLabel: string | null;
19112
+ planLabel: string | null;
19113
+ accountLabel: string | null;
19114
+ refreshedAt: string;
19115
+ windows: {
19116
+ id: string;
19117
+ message: string | null;
19118
+ label: string;
19119
+ limit: number | null;
19120
+ windowLabel: string;
19121
+ unitLabel: string | null;
19122
+ used: number | null;
19123
+ remaining: number | null;
19124
+ resetsAt: string | null;
19125
+ }[];
19126
+ }[];
19127
+ daemon: {
19128
+ hostname: string | null;
19129
+ version: string | null;
19130
+ platform: string;
19131
+ homeDir: string;
19132
+ rootDir: string;
19133
+ };
19134
+ };
18651
19135
  }>, z.ZodObject<{
18652
19136
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
18653
19137
  payload: z.ZodObject<{
@@ -18659,15 +19143,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18659
19143
  requestId: z.ZodString;
18660
19144
  }, "strip", z.ZodTypeAny, {
18661
19145
  error: string | null;
18662
- content: string;
18663
19146
  truncated: boolean;
19147
+ content: string;
18664
19148
  requestId: string;
18665
19149
  logPath: string | null;
18666
19150
  lineCount: number;
18667
19151
  }, {
18668
19152
  error: string | null;
18669
- content: string;
18670
19153
  truncated: boolean;
19154
+ content: string;
18671
19155
  requestId: string;
18672
19156
  logPath: string | null;
18673
19157
  lineCount: number;
@@ -18676,8 +19160,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18676
19160
  type: "get_daemon_log_tail_response";
18677
19161
  payload: {
18678
19162
  error: string | null;
18679
- content: string;
18680
19163
  truncated: boolean;
19164
+ content: string;
18681
19165
  requestId: string;
18682
19166
  logPath: string | null;
18683
19167
  lineCount: number;
@@ -18686,8 +19170,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
18686
19170
  type: "get_daemon_log_tail_response";
18687
19171
  payload: {
18688
19172
  error: string | null;
18689
- content: string;
18690
19173
  truncated: boolean;
19174
+ content: string;
18691
19175
  requestId: string;
18692
19176
  logPath: string | null;
18693
19177
  lineCount: number;
@@ -19761,6 +20245,7 @@ export type ListProviderModelsResponseMessage = z.infer<typeof ListProviderModel
19761
20245
  export type ListAvailableProvidersResponse = z.infer<typeof ListAvailableProvidersResponseSchema>;
19762
20246
  export type RunDaemonDoctorResponse = z.infer<typeof RunDaemonDoctorResponseSchema>;
19763
20247
  export type GetDaemonProviderSettingsResponse = z.infer<typeof GetDaemonProviderSettingsResponseSchema>;
20248
+ export type GetDaemonProviderRateLimitsResponse = z.infer<typeof GetDaemonProviderRateLimitsResponseSchema>;
19764
20249
  export type GetDaemonLogTailRequest = z.infer<typeof GetDaemonLogTailRequestSchema>;
19765
20250
  export type GetDaemonLogTailResponse = z.infer<typeof GetDaemonLogTailResponseSchema>;
19766
20251
  export type UpdateDaemonProviderSettingsResponse = z.infer<typeof UpdateDaemonProviderSettingsResponseSchema>;
@@ -20807,6 +21292,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20807
21292
  }>>;
20808
21293
  limit: z.ZodOptional<z.ZodNumber>;
20809
21294
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
21295
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
20810
21296
  }, "strip", z.ZodTypeAny, {
20811
21297
  agentId: string;
20812
21298
  type: "fetch_agent_timeline_request";
@@ -20818,6 +21304,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20818
21304
  epoch: string;
20819
21305
  } | undefined;
20820
21306
  projection?: "projected" | "canonical" | undefined;
21307
+ detailMode?: "preview" | "full" | undefined;
20821
21308
  }, {
20822
21309
  agentId: string;
20823
21310
  type: "fetch_agent_timeline_request";
@@ -20829,6 +21316,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20829
21316
  epoch: string;
20830
21317
  } | undefined;
20831
21318
  projection?: "projected" | "canonical" | undefined;
21319
+ detailMode?: "preview" | "full" | undefined;
20832
21320
  }>, z.ZodObject<{
20833
21321
  type: z.ZodLiteral<"set_agent_mode_request">;
20834
21322
  agentId: z.ZodString;
@@ -21474,6 +21962,15 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21474
21962
  }, {
21475
21963
  type: "get_daemon_provider_settings_request";
21476
21964
  requestId: string;
21965
+ }>, z.ZodObject<{
21966
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
21967
+ requestId: z.ZodString;
21968
+ }, "strip", z.ZodTypeAny, {
21969
+ type: "get_provider_rate_limits_request";
21970
+ requestId: string;
21971
+ }, {
21972
+ type: "get_provider_rate_limits_request";
21973
+ requestId: string;
21477
21974
  }>, z.ZodObject<{
21478
21975
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
21479
21976
  lines: z.ZodOptional<z.ZodNumber>;
@@ -21921,6 +22418,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21921
22418
  epoch: string;
21922
22419
  } | undefined;
21923
22420
  projection?: "projected" | "canonical" | undefined;
22421
+ detailMode?: "preview" | "full" | undefined;
21924
22422
  } | {
21925
22423
  agentId: string;
21926
22424
  modeId: string;
@@ -22130,6 +22628,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22130
22628
  } | {
22131
22629
  type: "get_daemon_provider_settings_request";
22132
22630
  requestId: string;
22631
+ } | {
22632
+ type: "get_provider_rate_limits_request";
22633
+ requestId: string;
22133
22634
  } | {
22134
22635
  type: "get_daemon_log_tail_request";
22135
22636
  requestId: string;
@@ -22406,6 +22907,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22406
22907
  epoch: string;
22407
22908
  } | undefined;
22408
22909
  projection?: "projected" | "canonical" | undefined;
22910
+ detailMode?: "preview" | "full" | undefined;
22409
22911
  } | {
22410
22912
  agentId: string;
22411
22913
  modeId: string;
@@ -22615,6 +23117,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
22615
23117
  } | {
22616
23118
  type: "get_daemon_provider_settings_request";
22617
23119
  requestId: string;
23120
+ } | {
23121
+ type: "get_provider_rate_limits_request";
23122
+ requestId: string;
22618
23123
  } | {
22619
23124
  type: "get_daemon_log_tail_request";
22620
23125
  requestId: string;
@@ -28795,6 +29300,235 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28795
29300
  rootDir: string;
28796
29301
  };
28797
29302
  };
29303
+ }>, z.ZodObject<{
29304
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
29305
+ payload: z.ZodObject<{
29306
+ daemon: z.ZodObject<{
29307
+ hostname: z.ZodNullable<z.ZodString>;
29308
+ version: z.ZodNullable<z.ZodString>;
29309
+ platform: z.ZodString;
29310
+ homeDir: z.ZodString;
29311
+ rootDir: z.ZodString;
29312
+ }, "strip", z.ZodTypeAny, {
29313
+ hostname: string | null;
29314
+ version: string | null;
29315
+ platform: string;
29316
+ homeDir: string;
29317
+ rootDir: string;
29318
+ }, {
29319
+ hostname: string | null;
29320
+ version: string | null;
29321
+ platform: string;
29322
+ homeDir: string;
29323
+ rootDir: string;
29324
+ }>;
29325
+ providers: z.ZodArray<z.ZodObject<{
29326
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
29327
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
29328
+ sourceLabel: z.ZodNullable<z.ZodString>;
29329
+ planLabel: z.ZodNullable<z.ZodString>;
29330
+ accountLabel: z.ZodNullable<z.ZodString>;
29331
+ message: z.ZodNullable<z.ZodString>;
29332
+ refreshedAt: z.ZodString;
29333
+ windows: z.ZodArray<z.ZodObject<{
29334
+ id: z.ZodString;
29335
+ label: z.ZodString;
29336
+ windowLabel: z.ZodString;
29337
+ unitLabel: z.ZodNullable<z.ZodString>;
29338
+ limit: z.ZodNullable<z.ZodNumber>;
29339
+ used: z.ZodNullable<z.ZodNumber>;
29340
+ remaining: z.ZodNullable<z.ZodNumber>;
29341
+ resetsAt: z.ZodNullable<z.ZodString>;
29342
+ message: z.ZodNullable<z.ZodString>;
29343
+ }, "strip", z.ZodTypeAny, {
29344
+ id: string;
29345
+ message: string | null;
29346
+ label: string;
29347
+ limit: number | null;
29348
+ windowLabel: string;
29349
+ unitLabel: string | null;
29350
+ used: number | null;
29351
+ remaining: number | null;
29352
+ resetsAt: string | null;
29353
+ }, {
29354
+ id: string;
29355
+ message: string | null;
29356
+ label: string;
29357
+ limit: number | null;
29358
+ windowLabel: string;
29359
+ unitLabel: string | null;
29360
+ used: number | null;
29361
+ remaining: number | null;
29362
+ resetsAt: string | null;
29363
+ }>, "many">;
29364
+ }, "strip", z.ZodTypeAny, {
29365
+ status: "error" | "available" | "unavailable";
29366
+ provider: "codex" | "claude" | "gemini";
29367
+ message: string | null;
29368
+ sourceLabel: string | null;
29369
+ planLabel: string | null;
29370
+ accountLabel: string | null;
29371
+ refreshedAt: string;
29372
+ windows: {
29373
+ id: string;
29374
+ message: string | null;
29375
+ label: string;
29376
+ limit: number | null;
29377
+ windowLabel: string;
29378
+ unitLabel: string | null;
29379
+ used: number | null;
29380
+ remaining: number | null;
29381
+ resetsAt: string | null;
29382
+ }[];
29383
+ }, {
29384
+ status: "error" | "available" | "unavailable";
29385
+ provider: "codex" | "claude" | "gemini";
29386
+ message: string | null;
29387
+ sourceLabel: string | null;
29388
+ planLabel: string | null;
29389
+ accountLabel: string | null;
29390
+ refreshedAt: string;
29391
+ windows: {
29392
+ id: string;
29393
+ message: string | null;
29394
+ label: string;
29395
+ limit: number | null;
29396
+ windowLabel: string;
29397
+ unitLabel: string | null;
29398
+ used: number | null;
29399
+ remaining: number | null;
29400
+ resetsAt: string | null;
29401
+ }[];
29402
+ }>, "many">;
29403
+ error: z.ZodNullable<z.ZodString>;
29404
+ requestId: z.ZodString;
29405
+ }, "strip", z.ZodTypeAny, {
29406
+ error: string | null;
29407
+ requestId: string;
29408
+ providers: {
29409
+ status: "error" | "available" | "unavailable";
29410
+ provider: "codex" | "claude" | "gemini";
29411
+ message: string | null;
29412
+ sourceLabel: string | null;
29413
+ planLabel: string | null;
29414
+ accountLabel: string | null;
29415
+ refreshedAt: string;
29416
+ windows: {
29417
+ id: string;
29418
+ message: string | null;
29419
+ label: string;
29420
+ limit: number | null;
29421
+ windowLabel: string;
29422
+ unitLabel: string | null;
29423
+ used: number | null;
29424
+ remaining: number | null;
29425
+ resetsAt: string | null;
29426
+ }[];
29427
+ }[];
29428
+ daemon: {
29429
+ hostname: string | null;
29430
+ version: string | null;
29431
+ platform: string;
29432
+ homeDir: string;
29433
+ rootDir: string;
29434
+ };
29435
+ }, {
29436
+ error: string | null;
29437
+ requestId: string;
29438
+ providers: {
29439
+ status: "error" | "available" | "unavailable";
29440
+ provider: "codex" | "claude" | "gemini";
29441
+ message: string | null;
29442
+ sourceLabel: string | null;
29443
+ planLabel: string | null;
29444
+ accountLabel: string | null;
29445
+ refreshedAt: string;
29446
+ windows: {
29447
+ id: string;
29448
+ message: string | null;
29449
+ label: string;
29450
+ limit: number | null;
29451
+ windowLabel: string;
29452
+ unitLabel: string | null;
29453
+ used: number | null;
29454
+ remaining: number | null;
29455
+ resetsAt: string | null;
29456
+ }[];
29457
+ }[];
29458
+ daemon: {
29459
+ hostname: string | null;
29460
+ version: string | null;
29461
+ platform: string;
29462
+ homeDir: string;
29463
+ rootDir: string;
29464
+ };
29465
+ }>;
29466
+ }, "strip", z.ZodTypeAny, {
29467
+ type: "get_provider_rate_limits_response";
29468
+ payload: {
29469
+ error: string | null;
29470
+ requestId: string;
29471
+ providers: {
29472
+ status: "error" | "available" | "unavailable";
29473
+ provider: "codex" | "claude" | "gemini";
29474
+ message: string | null;
29475
+ sourceLabel: string | null;
29476
+ planLabel: string | null;
29477
+ accountLabel: string | null;
29478
+ refreshedAt: string;
29479
+ windows: {
29480
+ id: string;
29481
+ message: string | null;
29482
+ label: string;
29483
+ limit: number | null;
29484
+ windowLabel: string;
29485
+ unitLabel: string | null;
29486
+ used: number | null;
29487
+ remaining: number | null;
29488
+ resetsAt: string | null;
29489
+ }[];
29490
+ }[];
29491
+ daemon: {
29492
+ hostname: string | null;
29493
+ version: string | null;
29494
+ platform: string;
29495
+ homeDir: string;
29496
+ rootDir: string;
29497
+ };
29498
+ };
29499
+ }, {
29500
+ type: "get_provider_rate_limits_response";
29501
+ payload: {
29502
+ error: string | null;
29503
+ requestId: string;
29504
+ providers: {
29505
+ status: "error" | "available" | "unavailable";
29506
+ provider: "codex" | "claude" | "gemini";
29507
+ message: string | null;
29508
+ sourceLabel: string | null;
29509
+ planLabel: string | null;
29510
+ accountLabel: string | null;
29511
+ refreshedAt: string;
29512
+ windows: {
29513
+ id: string;
29514
+ message: string | null;
29515
+ label: string;
29516
+ limit: number | null;
29517
+ windowLabel: string;
29518
+ unitLabel: string | null;
29519
+ used: number | null;
29520
+ remaining: number | null;
29521
+ resetsAt: string | null;
29522
+ }[];
29523
+ }[];
29524
+ daemon: {
29525
+ hostname: string | null;
29526
+ version: string | null;
29527
+ platform: string;
29528
+ homeDir: string;
29529
+ rootDir: string;
29530
+ };
29531
+ };
28798
29532
  }>, z.ZodObject<{
28799
29533
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
28800
29534
  payload: z.ZodObject<{
@@ -28806,15 +29540,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28806
29540
  requestId: z.ZodString;
28807
29541
  }, "strip", z.ZodTypeAny, {
28808
29542
  error: string | null;
28809
- content: string;
28810
29543
  truncated: boolean;
29544
+ content: string;
28811
29545
  requestId: string;
28812
29546
  logPath: string | null;
28813
29547
  lineCount: number;
28814
29548
  }, {
28815
29549
  error: string | null;
28816
- content: string;
28817
29550
  truncated: boolean;
29551
+ content: string;
28818
29552
  requestId: string;
28819
29553
  logPath: string | null;
28820
29554
  lineCount: number;
@@ -28823,8 +29557,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28823
29557
  type: "get_daemon_log_tail_response";
28824
29558
  payload: {
28825
29559
  error: string | null;
28826
- content: string;
28827
29560
  truncated: boolean;
29561
+ content: string;
28828
29562
  requestId: string;
28829
29563
  logPath: string | null;
28830
29564
  lineCount: number;
@@ -28833,8 +29567,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28833
29567
  type: "get_daemon_log_tail_response";
28834
29568
  payload: {
28835
29569
  error: string | null;
28836
- content: string;
28837
29570
  truncated: boolean;
29571
+ content: string;
28838
29572
  requestId: string;
28839
29573
  logPath: string | null;
28840
29574
  lineCount: number;
@@ -30885,12 +31619,45 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30885
31619
  rootDir: string;
30886
31620
  };
30887
31621
  };
31622
+ } | {
31623
+ type: "get_provider_rate_limits_response";
31624
+ payload: {
31625
+ error: string | null;
31626
+ requestId: string;
31627
+ providers: {
31628
+ status: "error" | "available" | "unavailable";
31629
+ provider: "codex" | "claude" | "gemini";
31630
+ message: string | null;
31631
+ sourceLabel: string | null;
31632
+ planLabel: string | null;
31633
+ accountLabel: string | null;
31634
+ refreshedAt: string;
31635
+ windows: {
31636
+ id: string;
31637
+ message: string | null;
31638
+ label: string;
31639
+ limit: number | null;
31640
+ windowLabel: string;
31641
+ unitLabel: string | null;
31642
+ used: number | null;
31643
+ remaining: number | null;
31644
+ resetsAt: string | null;
31645
+ }[];
31646
+ }[];
31647
+ daemon: {
31648
+ hostname: string | null;
31649
+ version: string | null;
31650
+ platform: string;
31651
+ homeDir: string;
31652
+ rootDir: string;
31653
+ };
31654
+ };
30888
31655
  } | {
30889
31656
  type: "get_daemon_log_tail_response";
30890
31657
  payload: {
30891
31658
  error: string | null;
30892
- content: string;
30893
31659
  truncated: boolean;
31660
+ content: string;
30894
31661
  requestId: string;
30895
31662
  logPath: string | null;
30896
31663
  lineCount: number;
@@ -32076,12 +32843,45 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
32076
32843
  rootDir: string;
32077
32844
  };
32078
32845
  };
32846
+ } | {
32847
+ type: "get_provider_rate_limits_response";
32848
+ payload: {
32849
+ error: string | null;
32850
+ requestId: string;
32851
+ providers: {
32852
+ status: "error" | "available" | "unavailable";
32853
+ provider: "codex" | "claude" | "gemini";
32854
+ message: string | null;
32855
+ sourceLabel: string | null;
32856
+ planLabel: string | null;
32857
+ accountLabel: string | null;
32858
+ refreshedAt: string;
32859
+ windows: {
32860
+ id: string;
32861
+ message: string | null;
32862
+ label: string;
32863
+ limit: number | null;
32864
+ windowLabel: string;
32865
+ unitLabel: string | null;
32866
+ used: number | null;
32867
+ remaining: number | null;
32868
+ resetsAt: string | null;
32869
+ }[];
32870
+ }[];
32871
+ daemon: {
32872
+ hostname: string | null;
32873
+ version: string | null;
32874
+ platform: string;
32875
+ homeDir: string;
32876
+ rootDir: string;
32877
+ };
32878
+ };
32079
32879
  } | {
32080
32880
  type: "get_daemon_log_tail_response";
32081
32881
  payload: {
32082
32882
  error: string | null;
32083
- content: string;
32084
32883
  truncated: boolean;
32884
+ content: string;
32085
32885
  requestId: string;
32086
32886
  logPath: string | null;
32087
32887
  lineCount: number;
@@ -33171,6 +33971,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33171
33971
  }>>;
33172
33972
  limit: z.ZodOptional<z.ZodNumber>;
33173
33973
  projection: z.ZodOptional<z.ZodEnum<["projected", "canonical"]>>;
33974
+ detailMode: z.ZodOptional<z.ZodEnum<["preview", "full"]>>;
33174
33975
  }, "strip", z.ZodTypeAny, {
33175
33976
  agentId: string;
33176
33977
  type: "fetch_agent_timeline_request";
@@ -33182,6 +33983,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33182
33983
  epoch: string;
33183
33984
  } | undefined;
33184
33985
  projection?: "projected" | "canonical" | undefined;
33986
+ detailMode?: "preview" | "full" | undefined;
33185
33987
  }, {
33186
33988
  agentId: string;
33187
33989
  type: "fetch_agent_timeline_request";
@@ -33193,6 +33995,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33193
33995
  epoch: string;
33194
33996
  } | undefined;
33195
33997
  projection?: "projected" | "canonical" | undefined;
33998
+ detailMode?: "preview" | "full" | undefined;
33196
33999
  }>, z.ZodObject<{
33197
34000
  type: z.ZodLiteral<"set_agent_mode_request">;
33198
34001
  agentId: z.ZodString;
@@ -33838,6 +34641,15 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33838
34641
  }, {
33839
34642
  type: "get_daemon_provider_settings_request";
33840
34643
  requestId: string;
34644
+ }>, z.ZodObject<{
34645
+ type: z.ZodLiteral<"get_provider_rate_limits_request">;
34646
+ requestId: z.ZodString;
34647
+ }, "strip", z.ZodTypeAny, {
34648
+ type: "get_provider_rate_limits_request";
34649
+ requestId: string;
34650
+ }, {
34651
+ type: "get_provider_rate_limits_request";
34652
+ requestId: string;
33841
34653
  }>, z.ZodObject<{
33842
34654
  type: z.ZodLiteral<"get_daemon_log_tail_request">;
33843
34655
  lines: z.ZodOptional<z.ZodNumber>;
@@ -34285,6 +35097,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34285
35097
  epoch: string;
34286
35098
  } | undefined;
34287
35099
  projection?: "projected" | "canonical" | undefined;
35100
+ detailMode?: "preview" | "full" | undefined;
34288
35101
  } | {
34289
35102
  agentId: string;
34290
35103
  modeId: string;
@@ -34494,6 +35307,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34494
35307
  } | {
34495
35308
  type: "get_daemon_provider_settings_request";
34496
35309
  requestId: string;
35310
+ } | {
35311
+ type: "get_provider_rate_limits_request";
35312
+ requestId: string;
34497
35313
  } | {
34498
35314
  type: "get_daemon_log_tail_request";
34499
35315
  requestId: string;
@@ -34770,6 +35586,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34770
35586
  epoch: string;
34771
35587
  } | undefined;
34772
35588
  projection?: "projected" | "canonical" | undefined;
35589
+ detailMode?: "preview" | "full" | undefined;
34773
35590
  } | {
34774
35591
  agentId: string;
34775
35592
  modeId: string;
@@ -34979,6 +35796,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34979
35796
  } | {
34980
35797
  type: "get_daemon_provider_settings_request";
34981
35798
  requestId: string;
35799
+ } | {
35800
+ type: "get_provider_rate_limits_request";
35801
+ requestId: string;
34982
35802
  } | {
34983
35803
  type: "get_daemon_log_tail_request";
34984
35804
  requestId: string;
@@ -41186,6 +42006,235 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41186
42006
  rootDir: string;
41187
42007
  };
41188
42008
  };
42009
+ }>, z.ZodObject<{
42010
+ type: z.ZodLiteral<"get_provider_rate_limits_response">;
42011
+ payload: z.ZodObject<{
42012
+ daemon: z.ZodObject<{
42013
+ hostname: z.ZodNullable<z.ZodString>;
42014
+ version: z.ZodNullable<z.ZodString>;
42015
+ platform: z.ZodString;
42016
+ homeDir: z.ZodString;
42017
+ rootDir: z.ZodString;
42018
+ }, "strip", z.ZodTypeAny, {
42019
+ hostname: string | null;
42020
+ version: string | null;
42021
+ platform: string;
42022
+ homeDir: string;
42023
+ rootDir: string;
42024
+ }, {
42025
+ hostname: string | null;
42026
+ version: string | null;
42027
+ platform: string;
42028
+ homeDir: string;
42029
+ rootDir: string;
42030
+ }>;
42031
+ providers: z.ZodArray<z.ZodObject<{
42032
+ provider: z.ZodEnum<["claude", "codex", "gemini"]>;
42033
+ status: z.ZodEnum<["available", "unavailable", "error"]>;
42034
+ sourceLabel: z.ZodNullable<z.ZodString>;
42035
+ planLabel: z.ZodNullable<z.ZodString>;
42036
+ accountLabel: z.ZodNullable<z.ZodString>;
42037
+ message: z.ZodNullable<z.ZodString>;
42038
+ refreshedAt: z.ZodString;
42039
+ windows: z.ZodArray<z.ZodObject<{
42040
+ id: z.ZodString;
42041
+ label: z.ZodString;
42042
+ windowLabel: z.ZodString;
42043
+ unitLabel: z.ZodNullable<z.ZodString>;
42044
+ limit: z.ZodNullable<z.ZodNumber>;
42045
+ used: z.ZodNullable<z.ZodNumber>;
42046
+ remaining: z.ZodNullable<z.ZodNumber>;
42047
+ resetsAt: z.ZodNullable<z.ZodString>;
42048
+ message: z.ZodNullable<z.ZodString>;
42049
+ }, "strip", z.ZodTypeAny, {
42050
+ id: string;
42051
+ message: string | null;
42052
+ label: string;
42053
+ limit: number | null;
42054
+ windowLabel: string;
42055
+ unitLabel: string | null;
42056
+ used: number | null;
42057
+ remaining: number | null;
42058
+ resetsAt: string | null;
42059
+ }, {
42060
+ id: string;
42061
+ message: string | null;
42062
+ label: string;
42063
+ limit: number | null;
42064
+ windowLabel: string;
42065
+ unitLabel: string | null;
42066
+ used: number | null;
42067
+ remaining: number | null;
42068
+ resetsAt: string | null;
42069
+ }>, "many">;
42070
+ }, "strip", z.ZodTypeAny, {
42071
+ status: "error" | "available" | "unavailable";
42072
+ provider: "codex" | "claude" | "gemini";
42073
+ message: string | null;
42074
+ sourceLabel: string | null;
42075
+ planLabel: string | null;
42076
+ accountLabel: string | null;
42077
+ refreshedAt: string;
42078
+ windows: {
42079
+ id: string;
42080
+ message: string | null;
42081
+ label: string;
42082
+ limit: number | null;
42083
+ windowLabel: string;
42084
+ unitLabel: string | null;
42085
+ used: number | null;
42086
+ remaining: number | null;
42087
+ resetsAt: string | null;
42088
+ }[];
42089
+ }, {
42090
+ status: "error" | "available" | "unavailable";
42091
+ provider: "codex" | "claude" | "gemini";
42092
+ message: string | null;
42093
+ sourceLabel: string | null;
42094
+ planLabel: string | null;
42095
+ accountLabel: string | null;
42096
+ refreshedAt: string;
42097
+ windows: {
42098
+ id: string;
42099
+ message: string | null;
42100
+ label: string;
42101
+ limit: number | null;
42102
+ windowLabel: string;
42103
+ unitLabel: string | null;
42104
+ used: number | null;
42105
+ remaining: number | null;
42106
+ resetsAt: string | null;
42107
+ }[];
42108
+ }>, "many">;
42109
+ error: z.ZodNullable<z.ZodString>;
42110
+ requestId: z.ZodString;
42111
+ }, "strip", z.ZodTypeAny, {
42112
+ error: string | null;
42113
+ requestId: string;
42114
+ providers: {
42115
+ status: "error" | "available" | "unavailable";
42116
+ provider: "codex" | "claude" | "gemini";
42117
+ message: string | null;
42118
+ sourceLabel: string | null;
42119
+ planLabel: string | null;
42120
+ accountLabel: string | null;
42121
+ refreshedAt: string;
42122
+ windows: {
42123
+ id: string;
42124
+ message: string | null;
42125
+ label: string;
42126
+ limit: number | null;
42127
+ windowLabel: string;
42128
+ unitLabel: string | null;
42129
+ used: number | null;
42130
+ remaining: number | null;
42131
+ resetsAt: string | null;
42132
+ }[];
42133
+ }[];
42134
+ daemon: {
42135
+ hostname: string | null;
42136
+ version: string | null;
42137
+ platform: string;
42138
+ homeDir: string;
42139
+ rootDir: string;
42140
+ };
42141
+ }, {
42142
+ error: string | null;
42143
+ requestId: string;
42144
+ providers: {
42145
+ status: "error" | "available" | "unavailable";
42146
+ provider: "codex" | "claude" | "gemini";
42147
+ message: string | null;
42148
+ sourceLabel: string | null;
42149
+ planLabel: string | null;
42150
+ accountLabel: string | null;
42151
+ refreshedAt: string;
42152
+ windows: {
42153
+ id: string;
42154
+ message: string | null;
42155
+ label: string;
42156
+ limit: number | null;
42157
+ windowLabel: string;
42158
+ unitLabel: string | null;
42159
+ used: number | null;
42160
+ remaining: number | null;
42161
+ resetsAt: string | null;
42162
+ }[];
42163
+ }[];
42164
+ daemon: {
42165
+ hostname: string | null;
42166
+ version: string | null;
42167
+ platform: string;
42168
+ homeDir: string;
42169
+ rootDir: string;
42170
+ };
42171
+ }>;
42172
+ }, "strip", z.ZodTypeAny, {
42173
+ type: "get_provider_rate_limits_response";
42174
+ payload: {
42175
+ error: string | null;
42176
+ requestId: string;
42177
+ providers: {
42178
+ status: "error" | "available" | "unavailable";
42179
+ provider: "codex" | "claude" | "gemini";
42180
+ message: string | null;
42181
+ sourceLabel: string | null;
42182
+ planLabel: string | null;
42183
+ accountLabel: string | null;
42184
+ refreshedAt: string;
42185
+ windows: {
42186
+ id: string;
42187
+ message: string | null;
42188
+ label: string;
42189
+ limit: number | null;
42190
+ windowLabel: string;
42191
+ unitLabel: string | null;
42192
+ used: number | null;
42193
+ remaining: number | null;
42194
+ resetsAt: string | null;
42195
+ }[];
42196
+ }[];
42197
+ daemon: {
42198
+ hostname: string | null;
42199
+ version: string | null;
42200
+ platform: string;
42201
+ homeDir: string;
42202
+ rootDir: string;
42203
+ };
42204
+ };
42205
+ }, {
42206
+ type: "get_provider_rate_limits_response";
42207
+ payload: {
42208
+ error: string | null;
42209
+ requestId: string;
42210
+ providers: {
42211
+ status: "error" | "available" | "unavailable";
42212
+ provider: "codex" | "claude" | "gemini";
42213
+ message: string | null;
42214
+ sourceLabel: string | null;
42215
+ planLabel: string | null;
42216
+ accountLabel: string | null;
42217
+ refreshedAt: string;
42218
+ windows: {
42219
+ id: string;
42220
+ message: string | null;
42221
+ label: string;
42222
+ limit: number | null;
42223
+ windowLabel: string;
42224
+ unitLabel: string | null;
42225
+ used: number | null;
42226
+ remaining: number | null;
42227
+ resetsAt: string | null;
42228
+ }[];
42229
+ }[];
42230
+ daemon: {
42231
+ hostname: string | null;
42232
+ version: string | null;
42233
+ platform: string;
42234
+ homeDir: string;
42235
+ rootDir: string;
42236
+ };
42237
+ };
41189
42238
  }>, z.ZodObject<{
41190
42239
  type: z.ZodLiteral<"get_daemon_log_tail_response">;
41191
42240
  payload: z.ZodObject<{
@@ -41197,15 +42246,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41197
42246
  requestId: z.ZodString;
41198
42247
  }, "strip", z.ZodTypeAny, {
41199
42248
  error: string | null;
41200
- content: string;
41201
42249
  truncated: boolean;
42250
+ content: string;
41202
42251
  requestId: string;
41203
42252
  logPath: string | null;
41204
42253
  lineCount: number;
41205
42254
  }, {
41206
42255
  error: string | null;
41207
- content: string;
41208
42256
  truncated: boolean;
42257
+ content: string;
41209
42258
  requestId: string;
41210
42259
  logPath: string | null;
41211
42260
  lineCount: number;
@@ -41214,8 +42263,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41214
42263
  type: "get_daemon_log_tail_response";
41215
42264
  payload: {
41216
42265
  error: string | null;
41217
- content: string;
41218
42266
  truncated: boolean;
42267
+ content: string;
41219
42268
  requestId: string;
41220
42269
  logPath: string | null;
41221
42270
  lineCount: number;
@@ -41224,8 +42273,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41224
42273
  type: "get_daemon_log_tail_response";
41225
42274
  payload: {
41226
42275
  error: string | null;
41227
- content: string;
41228
42276
  truncated: boolean;
42277
+ content: string;
41229
42278
  requestId: string;
41230
42279
  logPath: string | null;
41231
42280
  lineCount: number;
@@ -43276,12 +44325,45 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
43276
44325
  rootDir: string;
43277
44326
  };
43278
44327
  };
44328
+ } | {
44329
+ type: "get_provider_rate_limits_response";
44330
+ payload: {
44331
+ error: string | null;
44332
+ requestId: string;
44333
+ providers: {
44334
+ status: "error" | "available" | "unavailable";
44335
+ provider: "codex" | "claude" | "gemini";
44336
+ message: string | null;
44337
+ sourceLabel: string | null;
44338
+ planLabel: string | null;
44339
+ accountLabel: string | null;
44340
+ refreshedAt: string;
44341
+ windows: {
44342
+ id: string;
44343
+ message: string | null;
44344
+ label: string;
44345
+ limit: number | null;
44346
+ windowLabel: string;
44347
+ unitLabel: string | null;
44348
+ used: number | null;
44349
+ remaining: number | null;
44350
+ resetsAt: string | null;
44351
+ }[];
44352
+ }[];
44353
+ daemon: {
44354
+ hostname: string | null;
44355
+ version: string | null;
44356
+ platform: string;
44357
+ homeDir: string;
44358
+ rootDir: string;
44359
+ };
44360
+ };
43279
44361
  } | {
43280
44362
  type: "get_daemon_log_tail_response";
43281
44363
  payload: {
43282
44364
  error: string | null;
43283
- content: string;
43284
44365
  truncated: boolean;
44366
+ content: string;
43285
44367
  requestId: string;
43286
44368
  logPath: string | null;
43287
44369
  lineCount: number;
@@ -44467,12 +45549,45 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
44467
45549
  rootDir: string;
44468
45550
  };
44469
45551
  };
45552
+ } | {
45553
+ type: "get_provider_rate_limits_response";
45554
+ payload: {
45555
+ error: string | null;
45556
+ requestId: string;
45557
+ providers: {
45558
+ status: "error" | "available" | "unavailable";
45559
+ provider: "codex" | "claude" | "gemini";
45560
+ message: string | null;
45561
+ sourceLabel: string | null;
45562
+ planLabel: string | null;
45563
+ accountLabel: string | null;
45564
+ refreshedAt: string;
45565
+ windows: {
45566
+ id: string;
45567
+ message: string | null;
45568
+ label: string;
45569
+ limit: number | null;
45570
+ windowLabel: string;
45571
+ unitLabel: string | null;
45572
+ used: number | null;
45573
+ remaining: number | null;
45574
+ resetsAt: string | null;
45575
+ }[];
45576
+ }[];
45577
+ daemon: {
45578
+ hostname: string | null;
45579
+ version: string | null;
45580
+ platform: string;
45581
+ homeDir: string;
45582
+ rootDir: string;
45583
+ };
45584
+ };
44470
45585
  } | {
44471
45586
  type: "get_daemon_log_tail_response";
44472
45587
  payload: {
44473
45588
  error: string | null;
44474
- content: string;
44475
45589
  truncated: boolean;
45590
+ content: string;
44476
45591
  requestId: string;
44477
45592
  logPath: string | null;
44478
45593
  lineCount: number;