@junctionpanel/server 0.1.39 → 0.1.41

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 +8 -1
  2. package/dist/server/client/daemon-client.d.ts.map +1 -1
  3. package/dist/server/client/daemon-client.js +14 -0
  4. package/dist/server/client/daemon-client.js.map +1 -1
  5. package/dist/server/server/agent/agent-manager.d.ts +1 -0
  6. package/dist/server/server/agent/agent-manager.d.ts.map +1 -1
  7. package/dist/server/server/agent/agent-manager.js +28 -6
  8. package/dist/server/server/agent/agent-manager.js.map +1 -1
  9. package/dist/server/server/agent/agent-projections.d.ts.map +1 -1
  10. package/dist/server/server/agent/agent-projections.js +3 -0
  11. package/dist/server/server/agent/agent-projections.js.map +1 -1
  12. package/dist/server/server/agent/agent-sdk-types.d.ts +2 -0
  13. package/dist/server/server/agent/agent-sdk-types.d.ts.map +1 -1
  14. package/dist/server/server/session.d.ts +2 -0
  15. package/dist/server/server/session.d.ts.map +1 -1
  16. package/dist/server/server/session.js +182 -4
  17. package/dist/server/server/session.js.map +1 -1
  18. package/dist/server/shared/messages.d.ts +979 -0
  19. package/dist/server/shared/messages.d.ts.map +1 -1
  20. package/dist/server/shared/messages.js +35 -0
  21. package/dist/server/shared/messages.js.map +1 -1
  22. package/dist/server/utils/checkout-git.d.ts +19 -0
  23. package/dist/server/utils/checkout-git.d.ts.map +1 -1
  24. package/dist/server/utils/checkout-git.js +85 -0
  25. package/dist/server/utils/checkout-git.js.map +1 -1
  26. package/dist/server/utils/worktree.d.ts +23 -0
  27. package/dist/server/utils/worktree.d.ts.map +1 -1
  28. package/dist/server/utils/worktree.js +120 -1
  29. package/dist/server/utils/worktree.js.map +1 -1
  30. package/package.json +2 -2
@@ -22,12 +22,15 @@ export declare const AgentStreamEventPayloadSchema: z.ZodDiscriminatedUnion<"typ
22
22
  }>, z.ZodObject<{
23
23
  type: z.ZodLiteral<"turn_started">;
24
24
  provider: z.ZodEnum<[string, ...string[]]>;
25
+ startedAt: z.ZodOptional<z.ZodString>;
25
26
  }, "strip", z.ZodTypeAny, {
26
27
  provider: string;
27
28
  type: "turn_started";
29
+ startedAt?: string | undefined;
28
30
  }, {
29
31
  provider: string;
30
32
  type: "turn_started";
33
+ startedAt?: string | undefined;
31
34
  }>, z.ZodObject<{
32
35
  type: z.ZodLiteral<"turn_completed">;
33
36
  provider: z.ZodEnum<[string, ...string[]]>;
@@ -201,6 +204,7 @@ export declare const AgentSnapshotPayloadSchema: z.ZodObject<{
201
204
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
202
205
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
203
206
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
207
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
208
  lastError: z.ZodOptional<z.ZodString>;
205
209
  title: z.ZodNullable<z.ZodString>;
206
210
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -233,6 +237,7 @@ export declare const AgentSnapshotPayloadSchema: z.ZodObject<{
233
237
  archivedAt?: string | null | undefined;
234
238
  effectiveThinkingOptionId?: string | null | undefined;
235
239
  lastUsage?: AgentUsage | undefined;
240
+ activeTurnStartedAt?: string | null | undefined;
236
241
  lastError?: string | undefined;
237
242
  pendingPlanReview?: boolean | undefined;
238
243
  }, {
@@ -259,6 +264,7 @@ export declare const AgentSnapshotPayloadSchema: z.ZodObject<{
259
264
  archivedAt?: string | null | undefined;
260
265
  effectiveThinkingOptionId?: string | null | undefined;
261
266
  lastUsage?: AgentUsage | undefined;
267
+ activeTurnStartedAt?: string | null | undefined;
262
268
  lastError?: string | undefined;
263
269
  pendingPlanReview?: boolean | undefined;
264
270
  }>;
@@ -571,6 +577,8 @@ declare const GitSetupOptionsSchema: z.ZodObject<{
571
577
  newBranchName: z.ZodOptional<z.ZodString>;
572
578
  createWorktree: z.ZodOptional<z.ZodBoolean>;
573
579
  worktreeSlug: z.ZodOptional<z.ZodString>;
580
+ attachBranchName: z.ZodOptional<z.ZodString>;
581
+ attachBranchSource: z.ZodOptional<z.ZodEnum<["local", "remote"]>>;
574
582
  }, "strip", z.ZodTypeAny, {
575
583
  baseBranch?: string | undefined;
576
584
  baseBranchSource?: "local" | "remote" | undefined;
@@ -579,6 +587,8 @@ declare const GitSetupOptionsSchema: z.ZodObject<{
579
587
  createNewBranch?: boolean | undefined;
580
588
  newBranchName?: string | undefined;
581
589
  createWorktree?: boolean | undefined;
590
+ attachBranchName?: string | undefined;
591
+ attachBranchSource?: "local" | "remote" | undefined;
582
592
  }, {
583
593
  baseBranch?: string | undefined;
584
594
  baseBranchSource?: "local" | "remote" | undefined;
@@ -587,6 +597,8 @@ declare const GitSetupOptionsSchema: z.ZodObject<{
587
597
  createNewBranch?: boolean | undefined;
588
598
  newBranchName?: string | undefined;
589
599
  createWorktree?: boolean | undefined;
600
+ attachBranchName?: string | undefined;
601
+ attachBranchSource?: "local" | "remote" | undefined;
590
602
  }>;
591
603
  export type GitSetupOptions = z.infer<typeof GitSetupOptionsSchema>;
592
604
  export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
@@ -767,6 +779,8 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
767
779
  newBranchName: z.ZodOptional<z.ZodString>;
768
780
  createWorktree: z.ZodOptional<z.ZodBoolean>;
769
781
  worktreeSlug: z.ZodOptional<z.ZodString>;
782
+ attachBranchName: z.ZodOptional<z.ZodString>;
783
+ attachBranchSource: z.ZodOptional<z.ZodEnum<["local", "remote"]>>;
770
784
  }, "strip", z.ZodTypeAny, {
771
785
  baseBranch?: string | undefined;
772
786
  baseBranchSource?: "local" | "remote" | undefined;
@@ -775,6 +789,8 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
775
789
  createNewBranch?: boolean | undefined;
776
790
  newBranchName?: string | undefined;
777
791
  createWorktree?: boolean | undefined;
792
+ attachBranchName?: string | undefined;
793
+ attachBranchSource?: "local" | "remote" | undefined;
778
794
  }, {
779
795
  baseBranch?: string | undefined;
780
796
  baseBranchSource?: "local" | "remote" | undefined;
@@ -783,6 +799,8 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
783
799
  createNewBranch?: boolean | undefined;
784
800
  newBranchName?: string | undefined;
785
801
  createWorktree?: boolean | undefined;
802
+ attachBranchName?: string | undefined;
803
+ attachBranchSource?: "local" | "remote" | undefined;
786
804
  }>>;
787
805
  bootstrapSetupOverride: z.ZodOptional<z.ZodType<BootstrapSetupOverride, z.ZodTypeDef, BootstrapSetupOverride>>;
788
806
  generalPreferencesApplied: z.ZodOptional<z.ZodBoolean>;
@@ -847,6 +865,8 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
847
865
  createNewBranch?: boolean | undefined;
848
866
  newBranchName?: string | undefined;
849
867
  createWorktree?: boolean | undefined;
868
+ attachBranchName?: string | undefined;
869
+ attachBranchSource?: "local" | "remote" | undefined;
850
870
  } | undefined;
851
871
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
852
872
  }, {
@@ -908,6 +928,8 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
908
928
  createNewBranch?: boolean | undefined;
909
929
  newBranchName?: string | undefined;
910
930
  createWorktree?: boolean | undefined;
931
+ attachBranchName?: string | undefined;
932
+ attachBranchSource?: "local" | "remote" | undefined;
911
933
  } | undefined;
912
934
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
913
935
  }>;
@@ -1663,6 +1685,28 @@ export declare const CheckoutPrStatusRequestSchema: z.ZodObject<{
1663
1685
  requestId: string;
1664
1686
  remoteName?: string | undefined;
1665
1687
  }>;
1688
+ export declare const CheckoutPrSearchRequestSchema: z.ZodObject<{
1689
+ type: z.ZodLiteral<"checkout_pr_search_request">;
1690
+ cwd: z.ZodString;
1691
+ query: z.ZodOptional<z.ZodString>;
1692
+ limit: z.ZodOptional<z.ZodNumber>;
1693
+ remoteName: z.ZodOptional<z.ZodString>;
1694
+ requestId: z.ZodString;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ cwd: string;
1697
+ type: "checkout_pr_search_request";
1698
+ requestId: string;
1699
+ remoteName?: string | undefined;
1700
+ limit?: number | undefined;
1701
+ query?: string | undefined;
1702
+ }, {
1703
+ cwd: string;
1704
+ type: "checkout_pr_search_request";
1705
+ requestId: string;
1706
+ remoteName?: string | undefined;
1707
+ limit?: number | undefined;
1708
+ query?: string | undefined;
1709
+ }>;
1666
1710
  export declare const CheckoutPrFailureLogsRequestSchema: z.ZodObject<{
1667
1711
  type: z.ZodLiteral<"checkout_pr_failure_logs_request">;
1668
1712
  cwd: z.ZodString;
@@ -2769,6 +2813,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
2769
2813
  newBranchName: z.ZodOptional<z.ZodString>;
2770
2814
  createWorktree: z.ZodOptional<z.ZodBoolean>;
2771
2815
  worktreeSlug: z.ZodOptional<z.ZodString>;
2816
+ attachBranchName: z.ZodOptional<z.ZodString>;
2817
+ attachBranchSource: z.ZodOptional<z.ZodEnum<["local", "remote"]>>;
2772
2818
  }, "strip", z.ZodTypeAny, {
2773
2819
  baseBranch?: string | undefined;
2774
2820
  baseBranchSource?: "local" | "remote" | undefined;
@@ -2777,6 +2823,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
2777
2823
  createNewBranch?: boolean | undefined;
2778
2824
  newBranchName?: string | undefined;
2779
2825
  createWorktree?: boolean | undefined;
2826
+ attachBranchName?: string | undefined;
2827
+ attachBranchSource?: "local" | "remote" | undefined;
2780
2828
  }, {
2781
2829
  baseBranch?: string | undefined;
2782
2830
  baseBranchSource?: "local" | "remote" | undefined;
@@ -2785,6 +2833,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
2785
2833
  createNewBranch?: boolean | undefined;
2786
2834
  newBranchName?: string | undefined;
2787
2835
  createWorktree?: boolean | undefined;
2836
+ attachBranchName?: string | undefined;
2837
+ attachBranchSource?: "local" | "remote" | undefined;
2788
2838
  }>>;
2789
2839
  bootstrapSetupOverride: z.ZodOptional<z.ZodType<BootstrapSetupOverride, z.ZodTypeDef, BootstrapSetupOverride>>;
2790
2840
  generalPreferencesApplied: z.ZodOptional<z.ZodBoolean>;
@@ -2849,6 +2899,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
2849
2899
  createNewBranch?: boolean | undefined;
2850
2900
  newBranchName?: string | undefined;
2851
2901
  createWorktree?: boolean | undefined;
2902
+ attachBranchName?: string | undefined;
2903
+ attachBranchSource?: "local" | "remote" | undefined;
2852
2904
  } | undefined;
2853
2905
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
2854
2906
  }, {
@@ -2910,6 +2962,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
2910
2962
  createNewBranch?: boolean | undefined;
2911
2963
  newBranchName?: string | undefined;
2912
2964
  createWorktree?: boolean | undefined;
2965
+ attachBranchName?: string | undefined;
2966
+ attachBranchSource?: "local" | "remote" | undefined;
2913
2967
  } | undefined;
2914
2968
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
2915
2969
  }>, z.ZodObject<{
@@ -3457,6 +3511,27 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3457
3511
  type: "checkout_pr_status_request";
3458
3512
  requestId: string;
3459
3513
  remoteName?: string | undefined;
3514
+ }>, z.ZodObject<{
3515
+ type: z.ZodLiteral<"checkout_pr_search_request">;
3516
+ cwd: z.ZodString;
3517
+ query: z.ZodOptional<z.ZodString>;
3518
+ limit: z.ZodOptional<z.ZodNumber>;
3519
+ remoteName: z.ZodOptional<z.ZodString>;
3520
+ requestId: z.ZodString;
3521
+ }, "strip", z.ZodTypeAny, {
3522
+ cwd: string;
3523
+ type: "checkout_pr_search_request";
3524
+ requestId: string;
3525
+ remoteName?: string | undefined;
3526
+ limit?: number | undefined;
3527
+ query?: string | undefined;
3528
+ }, {
3529
+ cwd: string;
3530
+ type: "checkout_pr_search_request";
3531
+ requestId: string;
3532
+ remoteName?: string | undefined;
3533
+ limit?: number | undefined;
3534
+ query?: string | undefined;
3460
3535
  }>, z.ZodObject<{
3461
3536
  type: z.ZodLiteral<"checkout_pr_failure_logs_request">;
3462
3537
  cwd: z.ZodString;
@@ -4317,6 +4392,7 @@ export declare const AgentCreatedStatusPayloadSchema: z.ZodObject<{
4317
4392
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
4318
4393
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
4319
4394
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
4395
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4320
4396
  lastError: z.ZodOptional<z.ZodString>;
4321
4397
  title: z.ZodNullable<z.ZodString>;
4322
4398
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4349,6 +4425,7 @@ export declare const AgentCreatedStatusPayloadSchema: z.ZodObject<{
4349
4425
  archivedAt?: string | null | undefined;
4350
4426
  effectiveThinkingOptionId?: string | null | undefined;
4351
4427
  lastUsage?: AgentUsage | undefined;
4428
+ activeTurnStartedAt?: string | null | undefined;
4352
4429
  lastError?: string | undefined;
4353
4430
  pendingPlanReview?: boolean | undefined;
4354
4431
  }, {
@@ -4375,6 +4452,7 @@ export declare const AgentCreatedStatusPayloadSchema: z.ZodObject<{
4375
4452
  archivedAt?: string | null | undefined;
4376
4453
  effectiveThinkingOptionId?: string | null | undefined;
4377
4454
  lastUsage?: AgentUsage | undefined;
4455
+ activeTurnStartedAt?: string | null | undefined;
4378
4456
  lastError?: string | undefined;
4379
4457
  pendingPlanReview?: boolean | undefined;
4380
4458
  }>;
@@ -4409,6 +4487,7 @@ export declare const AgentCreatedStatusPayloadSchema: z.ZodObject<{
4409
4487
  archivedAt?: string | null | undefined;
4410
4488
  effectiveThinkingOptionId?: string | null | undefined;
4411
4489
  lastUsage?: AgentUsage | undefined;
4490
+ activeTurnStartedAt?: string | null | undefined;
4412
4491
  lastError?: string | undefined;
4413
4492
  pendingPlanReview?: boolean | undefined;
4414
4493
  };
@@ -4440,6 +4519,7 @@ export declare const AgentCreatedStatusPayloadSchema: z.ZodObject<{
4440
4519
  archivedAt?: string | null | undefined;
4441
4520
  effectiveThinkingOptionId?: string | null | undefined;
4442
4521
  lastUsage?: AgentUsage | undefined;
4522
+ activeTurnStartedAt?: string | null | undefined;
4443
4523
  lastError?: string | undefined;
4444
4524
  pendingPlanReview?: boolean | undefined;
4445
4525
  };
@@ -4477,6 +4557,7 @@ export declare const AgentResumedStatusPayloadSchema: z.ZodObject<{
4477
4557
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
4478
4558
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
4479
4559
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
4560
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4480
4561
  lastError: z.ZodOptional<z.ZodString>;
4481
4562
  title: z.ZodNullable<z.ZodString>;
4482
4563
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4509,6 +4590,7 @@ export declare const AgentResumedStatusPayloadSchema: z.ZodObject<{
4509
4590
  archivedAt?: string | null | undefined;
4510
4591
  effectiveThinkingOptionId?: string | null | undefined;
4511
4592
  lastUsage?: AgentUsage | undefined;
4593
+ activeTurnStartedAt?: string | null | undefined;
4512
4594
  lastError?: string | undefined;
4513
4595
  pendingPlanReview?: boolean | undefined;
4514
4596
  }, {
@@ -4535,6 +4617,7 @@ export declare const AgentResumedStatusPayloadSchema: z.ZodObject<{
4535
4617
  archivedAt?: string | null | undefined;
4536
4618
  effectiveThinkingOptionId?: string | null | undefined;
4537
4619
  lastUsage?: AgentUsage | undefined;
4620
+ activeTurnStartedAt?: string | null | undefined;
4538
4621
  lastError?: string | undefined;
4539
4622
  pendingPlanReview?: boolean | undefined;
4540
4623
  }>;
@@ -4571,6 +4654,7 @@ export declare const AgentResumedStatusPayloadSchema: z.ZodObject<{
4571
4654
  archivedAt?: string | null | undefined;
4572
4655
  effectiveThinkingOptionId?: string | null | undefined;
4573
4656
  lastUsage?: AgentUsage | undefined;
4657
+ activeTurnStartedAt?: string | null | undefined;
4574
4658
  lastError?: string | undefined;
4575
4659
  pendingPlanReview?: boolean | undefined;
4576
4660
  };
@@ -4603,6 +4687,7 @@ export declare const AgentResumedStatusPayloadSchema: z.ZodObject<{
4603
4687
  archivedAt?: string | null | undefined;
4604
4688
  effectiveThinkingOptionId?: string | null | undefined;
4605
4689
  lastUsage?: AgentUsage | undefined;
4690
+ activeTurnStartedAt?: string | null | undefined;
4606
4691
  lastError?: string | undefined;
4607
4692
  pendingPlanReview?: boolean | undefined;
4608
4693
  };
@@ -4675,6 +4760,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4675
4760
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
4676
4761
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
4677
4762
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
4763
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4678
4764
  lastError: z.ZodOptional<z.ZodString>;
4679
4765
  title: z.ZodNullable<z.ZodString>;
4680
4766
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4707,6 +4793,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4707
4793
  archivedAt?: string | null | undefined;
4708
4794
  effectiveThinkingOptionId?: string | null | undefined;
4709
4795
  lastUsage?: AgentUsage | undefined;
4796
+ activeTurnStartedAt?: string | null | undefined;
4710
4797
  lastError?: string | undefined;
4711
4798
  pendingPlanReview?: boolean | undefined;
4712
4799
  }, {
@@ -4733,6 +4820,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4733
4820
  archivedAt?: string | null | undefined;
4734
4821
  effectiveThinkingOptionId?: string | null | undefined;
4735
4822
  lastUsage?: AgentUsage | undefined;
4823
+ activeTurnStartedAt?: string | null | undefined;
4736
4824
  lastError?: string | undefined;
4737
4825
  pendingPlanReview?: boolean | undefined;
4738
4826
  }>;
@@ -4767,6 +4855,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4767
4855
  archivedAt?: string | null | undefined;
4768
4856
  effectiveThinkingOptionId?: string | null | undefined;
4769
4857
  lastUsage?: AgentUsage | undefined;
4858
+ activeTurnStartedAt?: string | null | undefined;
4770
4859
  lastError?: string | undefined;
4771
4860
  pendingPlanReview?: boolean | undefined;
4772
4861
  };
@@ -4798,6 +4887,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4798
4887
  archivedAt?: string | null | undefined;
4799
4888
  effectiveThinkingOptionId?: string | null | undefined;
4800
4889
  lastUsage?: AgentUsage | undefined;
4890
+ activeTurnStartedAt?: string | null | undefined;
4801
4891
  lastError?: string | undefined;
4802
4892
  pendingPlanReview?: boolean | undefined;
4803
4893
  };
@@ -4833,6 +4923,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4833
4923
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
4834
4924
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
4835
4925
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
4926
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4836
4927
  lastError: z.ZodOptional<z.ZodString>;
4837
4928
  title: z.ZodNullable<z.ZodString>;
4838
4929
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4865,6 +4956,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4865
4956
  archivedAt?: string | null | undefined;
4866
4957
  effectiveThinkingOptionId?: string | null | undefined;
4867
4958
  lastUsage?: AgentUsage | undefined;
4959
+ activeTurnStartedAt?: string | null | undefined;
4868
4960
  lastError?: string | undefined;
4869
4961
  pendingPlanReview?: boolean | undefined;
4870
4962
  }, {
@@ -4891,6 +4983,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4891
4983
  archivedAt?: string | null | undefined;
4892
4984
  effectiveThinkingOptionId?: string | null | undefined;
4893
4985
  lastUsage?: AgentUsage | undefined;
4986
+ activeTurnStartedAt?: string | null | undefined;
4894
4987
  lastError?: string | undefined;
4895
4988
  pendingPlanReview?: boolean | undefined;
4896
4989
  }>;
@@ -4927,6 +5020,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4927
5020
  archivedAt?: string | null | undefined;
4928
5021
  effectiveThinkingOptionId?: string | null | undefined;
4929
5022
  lastUsage?: AgentUsage | undefined;
5023
+ activeTurnStartedAt?: string | null | undefined;
4930
5024
  lastError?: string | undefined;
4931
5025
  pendingPlanReview?: boolean | undefined;
4932
5026
  };
@@ -4959,6 +5053,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
4959
5053
  archivedAt?: string | null | undefined;
4960
5054
  effectiveThinkingOptionId?: string | null | undefined;
4961
5055
  lastUsage?: AgentUsage | undefined;
5056
+ activeTurnStartedAt?: string | null | undefined;
4962
5057
  lastError?: string | undefined;
4963
5058
  pendingPlanReview?: boolean | undefined;
4964
5059
  };
@@ -5319,6 +5414,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5319
5414
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
5320
5415
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
5321
5416
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
5417
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5322
5418
  lastError: z.ZodOptional<z.ZodString>;
5323
5419
  title: z.ZodNullable<z.ZodString>;
5324
5420
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -5351,6 +5447,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5351
5447
  archivedAt?: string | null | undefined;
5352
5448
  effectiveThinkingOptionId?: string | null | undefined;
5353
5449
  lastUsage?: AgentUsage | undefined;
5450
+ activeTurnStartedAt?: string | null | undefined;
5354
5451
  lastError?: string | undefined;
5355
5452
  pendingPlanReview?: boolean | undefined;
5356
5453
  }, {
@@ -5377,6 +5474,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5377
5474
  archivedAt?: string | null | undefined;
5378
5475
  effectiveThinkingOptionId?: string | null | undefined;
5379
5476
  lastUsage?: AgentUsage | undefined;
5477
+ activeTurnStartedAt?: string | null | undefined;
5380
5478
  lastError?: string | undefined;
5381
5479
  pendingPlanReview?: boolean | undefined;
5382
5480
  }>;
@@ -5524,6 +5622,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5524
5622
  archivedAt?: string | null | undefined;
5525
5623
  effectiveThinkingOptionId?: string | null | undefined;
5526
5624
  lastUsage?: AgentUsage | undefined;
5625
+ activeTurnStartedAt?: string | null | undefined;
5527
5626
  lastError?: string | undefined;
5528
5627
  pendingPlanReview?: boolean | undefined;
5529
5628
  };
@@ -5579,6 +5678,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5579
5678
  archivedAt?: string | null | undefined;
5580
5679
  effectiveThinkingOptionId?: string | null | undefined;
5581
5680
  lastUsage?: AgentUsage | undefined;
5681
+ activeTurnStartedAt?: string | null | undefined;
5582
5682
  lastError?: string | undefined;
5583
5683
  pendingPlanReview?: boolean | undefined;
5584
5684
  };
@@ -5646,6 +5746,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5646
5746
  archivedAt?: string | null | undefined;
5647
5747
  effectiveThinkingOptionId?: string | null | undefined;
5648
5748
  lastUsage?: AgentUsage | undefined;
5749
+ activeTurnStartedAt?: string | null | undefined;
5649
5750
  lastError?: string | undefined;
5650
5751
  pendingPlanReview?: boolean | undefined;
5651
5752
  };
@@ -5707,6 +5808,7 @@ export declare const AgentUpdateMessageSchema: z.ZodObject<{
5707
5808
  archivedAt?: string | null | undefined;
5708
5809
  effectiveThinkingOptionId?: string | null | undefined;
5709
5810
  lastUsage?: AgentUsage | undefined;
5811
+ activeTurnStartedAt?: string | null | undefined;
5710
5812
  lastError?: string | undefined;
5711
5813
  pendingPlanReview?: boolean | undefined;
5712
5814
  };
@@ -5760,12 +5862,15 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5760
5862
  }>, z.ZodObject<{
5761
5863
  type: z.ZodLiteral<"turn_started">;
5762
5864
  provider: z.ZodEnum<[string, ...string[]]>;
5865
+ startedAt: z.ZodOptional<z.ZodString>;
5763
5866
  }, "strip", z.ZodTypeAny, {
5764
5867
  provider: string;
5765
5868
  type: "turn_started";
5869
+ startedAt?: string | undefined;
5766
5870
  }, {
5767
5871
  provider: string;
5768
5872
  type: "turn_started";
5873
+ startedAt?: string | undefined;
5769
5874
  }>, z.ZodObject<{
5770
5875
  type: z.ZodLiteral<"turn_completed">;
5771
5876
  provider: z.ZodEnum<[string, ...string[]]>;
@@ -5934,6 +6039,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5934
6039
  } | {
5935
6040
  provider: string;
5936
6041
  type: "turn_started";
6042
+ startedAt?: string | undefined;
5937
6043
  } | {
5938
6044
  provider: string;
5939
6045
  type: "turn_completed";
@@ -5989,6 +6095,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5989
6095
  } | {
5990
6096
  provider: string;
5991
6097
  type: "turn_started";
6098
+ startedAt?: string | undefined;
5992
6099
  } | {
5993
6100
  provider: string;
5994
6101
  type: "turn_completed";
@@ -6047,6 +6154,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
6047
6154
  } | {
6048
6155
  provider: string;
6049
6156
  type: "turn_started";
6157
+ startedAt?: string | undefined;
6050
6158
  } | {
6051
6159
  provider: string;
6052
6160
  type: "turn_completed";
@@ -6105,6 +6213,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
6105
6213
  } | {
6106
6214
  provider: string;
6107
6215
  type: "turn_started";
6216
+ startedAt?: string | undefined;
6108
6217
  } | {
6109
6218
  provider: string;
6110
6219
  type: "turn_completed";
@@ -6175,6 +6284,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6175
6284
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
6176
6285
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
6177
6286
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
6287
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6178
6288
  lastError: z.ZodOptional<z.ZodString>;
6179
6289
  title: z.ZodNullable<z.ZodString>;
6180
6290
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -6207,6 +6317,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6207
6317
  archivedAt?: string | null | undefined;
6208
6318
  effectiveThinkingOptionId?: string | null | undefined;
6209
6319
  lastUsage?: AgentUsage | undefined;
6320
+ activeTurnStartedAt?: string | null | undefined;
6210
6321
  lastError?: string | undefined;
6211
6322
  pendingPlanReview?: boolean | undefined;
6212
6323
  }, {
@@ -6233,6 +6344,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6233
6344
  archivedAt?: string | null | undefined;
6234
6345
  effectiveThinkingOptionId?: string | null | undefined;
6235
6346
  lastUsage?: AgentUsage | undefined;
6347
+ activeTurnStartedAt?: string | null | undefined;
6236
6348
  lastError?: string | undefined;
6237
6349
  pendingPlanReview?: boolean | undefined;
6238
6350
  }>;
@@ -6263,6 +6375,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6263
6375
  archivedAt?: string | null | undefined;
6264
6376
  effectiveThinkingOptionId?: string | null | undefined;
6265
6377
  lastUsage?: AgentUsage | undefined;
6378
+ activeTurnStartedAt?: string | null | undefined;
6266
6379
  lastError?: string | undefined;
6267
6380
  pendingPlanReview?: boolean | undefined;
6268
6381
  };
@@ -6293,6 +6406,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6293
6406
  archivedAt?: string | null | undefined;
6294
6407
  effectiveThinkingOptionId?: string | null | undefined;
6295
6408
  lastUsage?: AgentUsage | undefined;
6409
+ activeTurnStartedAt?: string | null | undefined;
6296
6410
  lastError?: string | undefined;
6297
6411
  pendingPlanReview?: boolean | undefined;
6298
6412
  };
@@ -6326,6 +6440,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6326
6440
  archivedAt?: string | null | undefined;
6327
6441
  effectiveThinkingOptionId?: string | null | undefined;
6328
6442
  lastUsage?: AgentUsage | undefined;
6443
+ activeTurnStartedAt?: string | null | undefined;
6329
6444
  lastError?: string | undefined;
6330
6445
  pendingPlanReview?: boolean | undefined;
6331
6446
  };
@@ -6359,6 +6474,7 @@ export declare const AgentStatusMessageSchema: z.ZodObject<{
6359
6474
  archivedAt?: string | null | undefined;
6360
6475
  effectiveThinkingOptionId?: string | null | undefined;
6361
6476
  lastUsage?: AgentUsage | undefined;
6477
+ activeTurnStartedAt?: string | null | undefined;
6362
6478
  lastError?: string | undefined;
6363
6479
  pendingPlanReview?: boolean | undefined;
6364
6480
  };
@@ -6385,6 +6501,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6385
6501
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
6386
6502
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
6387
6503
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
6504
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6388
6505
  lastError: z.ZodOptional<z.ZodString>;
6389
6506
  title: z.ZodNullable<z.ZodString>;
6390
6507
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -6417,6 +6534,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6417
6534
  archivedAt?: string | null | undefined;
6418
6535
  effectiveThinkingOptionId?: string | null | undefined;
6419
6536
  lastUsage?: AgentUsage | undefined;
6537
+ activeTurnStartedAt?: string | null | undefined;
6420
6538
  lastError?: string | undefined;
6421
6539
  pendingPlanReview?: boolean | undefined;
6422
6540
  }, {
@@ -6443,6 +6561,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6443
6561
  archivedAt?: string | null | undefined;
6444
6562
  effectiveThinkingOptionId?: string | null | undefined;
6445
6563
  lastUsage?: AgentUsage | undefined;
6564
+ activeTurnStartedAt?: string | null | undefined;
6446
6565
  lastError?: string | undefined;
6447
6566
  pendingPlanReview?: boolean | undefined;
6448
6567
  }>, "many">;
@@ -6471,6 +6590,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6471
6590
  archivedAt?: string | null | undefined;
6472
6591
  effectiveThinkingOptionId?: string | null | undefined;
6473
6592
  lastUsage?: AgentUsage | undefined;
6593
+ activeTurnStartedAt?: string | null | undefined;
6474
6594
  lastError?: string | undefined;
6475
6595
  pendingPlanReview?: boolean | undefined;
6476
6596
  }[];
@@ -6499,6 +6619,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6499
6619
  archivedAt?: string | null | undefined;
6500
6620
  effectiveThinkingOptionId?: string | null | undefined;
6501
6621
  lastUsage?: AgentUsage | undefined;
6622
+ activeTurnStartedAt?: string | null | undefined;
6502
6623
  lastError?: string | undefined;
6503
6624
  pendingPlanReview?: boolean | undefined;
6504
6625
  }[];
@@ -6530,6 +6651,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6530
6651
  archivedAt?: string | null | undefined;
6531
6652
  effectiveThinkingOptionId?: string | null | undefined;
6532
6653
  lastUsage?: AgentUsage | undefined;
6654
+ activeTurnStartedAt?: string | null | undefined;
6533
6655
  lastError?: string | undefined;
6534
6656
  pendingPlanReview?: boolean | undefined;
6535
6657
  }[];
@@ -6561,6 +6683,7 @@ export declare const AgentListMessageSchema: z.ZodObject<{
6561
6683
  archivedAt?: string | null | undefined;
6562
6684
  effectiveThinkingOptionId?: string | null | undefined;
6563
6685
  lastUsage?: AgentUsage | undefined;
6686
+ activeTurnStartedAt?: string | null | undefined;
6564
6687
  lastError?: string | undefined;
6565
6688
  pendingPlanReview?: boolean | undefined;
6566
6689
  }[];
@@ -6590,6 +6713,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6590
6713
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
6591
6714
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
6592
6715
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
6716
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6593
6717
  lastError: z.ZodOptional<z.ZodString>;
6594
6718
  title: z.ZodNullable<z.ZodString>;
6595
6719
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -6622,6 +6746,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6622
6746
  archivedAt?: string | null | undefined;
6623
6747
  effectiveThinkingOptionId?: string | null | undefined;
6624
6748
  lastUsage?: AgentUsage | undefined;
6749
+ activeTurnStartedAt?: string | null | undefined;
6625
6750
  lastError?: string | undefined;
6626
6751
  pendingPlanReview?: boolean | undefined;
6627
6752
  }, {
@@ -6648,6 +6773,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6648
6773
  archivedAt?: string | null | undefined;
6649
6774
  effectiveThinkingOptionId?: string | null | undefined;
6650
6775
  lastUsage?: AgentUsage | undefined;
6776
+ activeTurnStartedAt?: string | null | undefined;
6651
6777
  lastError?: string | undefined;
6652
6778
  pendingPlanReview?: boolean | undefined;
6653
6779
  }>;
@@ -6794,6 +6920,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6794
6920
  archivedAt?: string | null | undefined;
6795
6921
  effectiveThinkingOptionId?: string | null | undefined;
6796
6922
  lastUsage?: AgentUsage | undefined;
6923
+ activeTurnStartedAt?: string | null | undefined;
6797
6924
  lastError?: string | undefined;
6798
6925
  pendingPlanReview?: boolean | undefined;
6799
6926
  };
@@ -6848,6 +6975,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6848
6975
  archivedAt?: string | null | undefined;
6849
6976
  effectiveThinkingOptionId?: string | null | undefined;
6850
6977
  lastUsage?: AgentUsage | undefined;
6978
+ activeTurnStartedAt?: string | null | undefined;
6851
6979
  lastError?: string | undefined;
6852
6980
  pendingPlanReview?: boolean | undefined;
6853
6981
  };
@@ -6917,6 +7045,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6917
7045
  archivedAt?: string | null | undefined;
6918
7046
  effectiveThinkingOptionId?: string | null | undefined;
6919
7047
  lastUsage?: AgentUsage | undefined;
7048
+ activeTurnStartedAt?: string | null | undefined;
6920
7049
  lastError?: string | undefined;
6921
7050
  pendingPlanReview?: boolean | undefined;
6922
7051
  };
@@ -6980,6 +7109,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
6980
7109
  archivedAt?: string | null | undefined;
6981
7110
  effectiveThinkingOptionId?: string | null | undefined;
6982
7111
  lastUsage?: AgentUsage | undefined;
7112
+ activeTurnStartedAt?: string | null | undefined;
6983
7113
  lastError?: string | undefined;
6984
7114
  pendingPlanReview?: boolean | undefined;
6985
7115
  };
@@ -7046,6 +7176,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
7046
7176
  archivedAt?: string | null | undefined;
7047
7177
  effectiveThinkingOptionId?: string | null | undefined;
7048
7178
  lastUsage?: AgentUsage | undefined;
7179
+ activeTurnStartedAt?: string | null | undefined;
7049
7180
  lastError?: string | undefined;
7050
7181
  pendingPlanReview?: boolean | undefined;
7051
7182
  };
@@ -7112,6 +7243,7 @@ export declare const FetchAgentsResponseMessageSchema: z.ZodObject<{
7112
7243
  archivedAt?: string | null | undefined;
7113
7244
  effectiveThinkingOptionId?: string | null | undefined;
7114
7245
  lastUsage?: AgentUsage | undefined;
7246
+ activeTurnStartedAt?: string | null | undefined;
7115
7247
  lastError?: string | undefined;
7116
7248
  pendingPlanReview?: boolean | undefined;
7117
7249
  };
@@ -7173,6 +7305,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7173
7305
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
7174
7306
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
7175
7307
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
7308
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7176
7309
  lastError: z.ZodOptional<z.ZodString>;
7177
7310
  title: z.ZodNullable<z.ZodString>;
7178
7311
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -7205,6 +7338,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7205
7338
  archivedAt?: string | null | undefined;
7206
7339
  effectiveThinkingOptionId?: string | null | undefined;
7207
7340
  lastUsage?: AgentUsage | undefined;
7341
+ activeTurnStartedAt?: string | null | undefined;
7208
7342
  lastError?: string | undefined;
7209
7343
  pendingPlanReview?: boolean | undefined;
7210
7344
  }, {
@@ -7231,6 +7365,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7231
7365
  archivedAt?: string | null | undefined;
7232
7366
  effectiveThinkingOptionId?: string | null | undefined;
7233
7367
  lastUsage?: AgentUsage | undefined;
7368
+ activeTurnStartedAt?: string | null | undefined;
7234
7369
  lastError?: string | undefined;
7235
7370
  pendingPlanReview?: boolean | undefined;
7236
7371
  }>>;
@@ -7380,6 +7515,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7380
7515
  archivedAt?: string | null | undefined;
7381
7516
  effectiveThinkingOptionId?: string | null | undefined;
7382
7517
  lastUsage?: AgentUsage | undefined;
7518
+ activeTurnStartedAt?: string | null | undefined;
7383
7519
  lastError?: string | undefined;
7384
7520
  pendingPlanReview?: boolean | undefined;
7385
7521
  } | null;
@@ -7436,6 +7572,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7436
7572
  archivedAt?: string | null | undefined;
7437
7573
  effectiveThinkingOptionId?: string | null | undefined;
7438
7574
  lastUsage?: AgentUsage | undefined;
7575
+ activeTurnStartedAt?: string | null | undefined;
7439
7576
  lastError?: string | undefined;
7440
7577
  pendingPlanReview?: boolean | undefined;
7441
7578
  } | null;
@@ -7495,6 +7632,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7495
7632
  archivedAt?: string | null | undefined;
7496
7633
  effectiveThinkingOptionId?: string | null | undefined;
7497
7634
  lastUsage?: AgentUsage | undefined;
7635
+ activeTurnStartedAt?: string | null | undefined;
7498
7636
  lastError?: string | undefined;
7499
7637
  pendingPlanReview?: boolean | undefined;
7500
7638
  } | null;
@@ -7554,6 +7692,7 @@ export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7554
7692
  archivedAt?: string | null | undefined;
7555
7693
  effectiveThinkingOptionId?: string | null | undefined;
7556
7694
  lastUsage?: AgentUsage | undefined;
7695
+ activeTurnStartedAt?: string | null | undefined;
7557
7696
  lastError?: string | undefined;
7558
7697
  pendingPlanReview?: boolean | undefined;
7559
7698
  } | null;
@@ -7926,6 +8065,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
7926
8065
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
7927
8066
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
7928
8067
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
8068
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7929
8069
  lastError: z.ZodOptional<z.ZodString>;
7930
8070
  title: z.ZodNullable<z.ZodString>;
7931
8071
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -7958,6 +8098,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
7958
8098
  archivedAt?: string | null | undefined;
7959
8099
  effectiveThinkingOptionId?: string | null | undefined;
7960
8100
  lastUsage?: AgentUsage | undefined;
8101
+ activeTurnStartedAt?: string | null | undefined;
7961
8102
  lastError?: string | undefined;
7962
8103
  pendingPlanReview?: boolean | undefined;
7963
8104
  }, {
@@ -7984,6 +8125,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
7984
8125
  archivedAt?: string | null | undefined;
7985
8126
  effectiveThinkingOptionId?: string | null | undefined;
7986
8127
  lastUsage?: AgentUsage | undefined;
8128
+ activeTurnStartedAt?: string | null | undefined;
7987
8129
  lastError?: string | undefined;
7988
8130
  pendingPlanReview?: boolean | undefined;
7989
8131
  }>>;
@@ -8017,6 +8159,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
8017
8159
  archivedAt?: string | null | undefined;
8018
8160
  effectiveThinkingOptionId?: string | null | undefined;
8019
8161
  lastUsage?: AgentUsage | undefined;
8162
+ activeTurnStartedAt?: string | null | undefined;
8020
8163
  lastError?: string | undefined;
8021
8164
  pendingPlanReview?: boolean | undefined;
8022
8165
  } | null;
@@ -8049,6 +8192,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
8049
8192
  archivedAt?: string | null | undefined;
8050
8193
  effectiveThinkingOptionId?: string | null | undefined;
8051
8194
  lastUsage?: AgentUsage | undefined;
8195
+ activeTurnStartedAt?: string | null | undefined;
8052
8196
  lastError?: string | undefined;
8053
8197
  pendingPlanReview?: boolean | undefined;
8054
8198
  } | null;
@@ -8084,6 +8228,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
8084
8228
  archivedAt?: string | null | undefined;
8085
8229
  effectiveThinkingOptionId?: string | null | undefined;
8086
8230
  lastUsage?: AgentUsage | undefined;
8231
+ activeTurnStartedAt?: string | null | undefined;
8087
8232
  lastError?: string | undefined;
8088
8233
  pendingPlanReview?: boolean | undefined;
8089
8234
  } | null;
@@ -8119,6 +8264,7 @@ export declare const WaitForFinishResponseMessageSchema: z.ZodObject<{
8119
8264
  archivedAt?: string | null | undefined;
8120
8265
  effectiveThinkingOptionId?: string | null | undefined;
8121
8266
  lastUsage?: AgentUsage | undefined;
8267
+ activeTurnStartedAt?: string | null | undefined;
8122
8268
  lastError?: string | undefined;
8123
8269
  pendingPlanReview?: boolean | undefined;
8124
8270
  } | null;
@@ -9572,6 +9718,130 @@ export declare const CheckoutPrStatusResponseSchema: z.ZodObject<{
9572
9718
  githubFeaturesEnabled: boolean;
9573
9719
  };
9574
9720
  }>;
9721
+ export declare const CheckoutPrSearchResponseSchema: z.ZodObject<{
9722
+ type: z.ZodLiteral<"checkout_pr_search_response">;
9723
+ payload: z.ZodObject<{
9724
+ cwd: z.ZodString;
9725
+ pullRequests: z.ZodArray<z.ZodObject<{
9726
+ number: z.ZodNumber;
9727
+ title: z.ZodString;
9728
+ authorLogin: z.ZodNullable<z.ZodString>;
9729
+ url: z.ZodString;
9730
+ headRefName: z.ZodString;
9731
+ baseRefName: z.ZodString;
9732
+ isDraft: z.ZodBoolean;
9733
+ state: z.ZodEnum<["open", "closed", "merged"]>;
9734
+ }, "strip", z.ZodTypeAny, {
9735
+ number: number;
9736
+ title: string;
9737
+ url: string;
9738
+ state: "closed" | "open" | "merged";
9739
+ baseRefName: string;
9740
+ headRefName: string;
9741
+ authorLogin: string | null;
9742
+ isDraft: boolean;
9743
+ }, {
9744
+ number: number;
9745
+ title: string;
9746
+ url: string;
9747
+ state: "closed" | "open" | "merged";
9748
+ baseRefName: string;
9749
+ headRefName: string;
9750
+ authorLogin: string | null;
9751
+ isDraft: boolean;
9752
+ }>, "many">;
9753
+ githubFeaturesEnabled: z.ZodBoolean;
9754
+ error: z.ZodNullable<z.ZodObject<{
9755
+ code: z.ZodEnum<["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]>;
9756
+ message: z.ZodString;
9757
+ }, "strip", z.ZodTypeAny, {
9758
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
9759
+ message: string;
9760
+ }, {
9761
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
9762
+ message: string;
9763
+ }>>;
9764
+ requestId: z.ZodString;
9765
+ }, "strip", z.ZodTypeAny, {
9766
+ error: {
9767
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
9768
+ message: string;
9769
+ } | null;
9770
+ cwd: string;
9771
+ requestId: string;
9772
+ githubFeaturesEnabled: boolean;
9773
+ pullRequests: {
9774
+ number: number;
9775
+ title: string;
9776
+ url: string;
9777
+ state: "closed" | "open" | "merged";
9778
+ baseRefName: string;
9779
+ headRefName: string;
9780
+ authorLogin: string | null;
9781
+ isDraft: boolean;
9782
+ }[];
9783
+ }, {
9784
+ error: {
9785
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
9786
+ message: string;
9787
+ } | null;
9788
+ cwd: string;
9789
+ requestId: string;
9790
+ githubFeaturesEnabled: boolean;
9791
+ pullRequests: {
9792
+ number: number;
9793
+ title: string;
9794
+ url: string;
9795
+ state: "closed" | "open" | "merged";
9796
+ baseRefName: string;
9797
+ headRefName: string;
9798
+ authorLogin: string | null;
9799
+ isDraft: boolean;
9800
+ }[];
9801
+ }>;
9802
+ }, "strip", z.ZodTypeAny, {
9803
+ type: "checkout_pr_search_response";
9804
+ payload: {
9805
+ error: {
9806
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
9807
+ message: string;
9808
+ } | null;
9809
+ cwd: string;
9810
+ requestId: string;
9811
+ githubFeaturesEnabled: boolean;
9812
+ pullRequests: {
9813
+ number: number;
9814
+ title: string;
9815
+ url: string;
9816
+ state: "closed" | "open" | "merged";
9817
+ baseRefName: string;
9818
+ headRefName: string;
9819
+ authorLogin: string | null;
9820
+ isDraft: boolean;
9821
+ }[];
9822
+ };
9823
+ }, {
9824
+ type: "checkout_pr_search_response";
9825
+ payload: {
9826
+ error: {
9827
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
9828
+ message: string;
9829
+ } | null;
9830
+ cwd: string;
9831
+ requestId: string;
9832
+ githubFeaturesEnabled: boolean;
9833
+ pullRequests: {
9834
+ number: number;
9835
+ title: string;
9836
+ url: string;
9837
+ state: "closed" | "open" | "merged";
9838
+ baseRefName: string;
9839
+ headRefName: string;
9840
+ authorLogin: string | null;
9841
+ isDraft: boolean;
9842
+ }[];
9843
+ };
9844
+ }>;
9575
9845
  export declare const CheckoutPrFailureLogsResponseSchema: z.ZodObject<{
9576
9846
  type: z.ZodLiteral<"checkout_pr_failure_logs_response">;
9577
9847
  payload: z.ZodObject<{
@@ -12462,6 +12732,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12462
12732
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
12463
12733
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
12464
12734
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
12735
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12465
12736
  lastError: z.ZodOptional<z.ZodString>;
12466
12737
  title: z.ZodNullable<z.ZodString>;
12467
12738
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -12494,6 +12765,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12494
12765
  archivedAt?: string | null | undefined;
12495
12766
  effectiveThinkingOptionId?: string | null | undefined;
12496
12767
  lastUsage?: AgentUsage | undefined;
12768
+ activeTurnStartedAt?: string | null | undefined;
12497
12769
  lastError?: string | undefined;
12498
12770
  pendingPlanReview?: boolean | undefined;
12499
12771
  }, {
@@ -12520,6 +12792,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12520
12792
  archivedAt?: string | null | undefined;
12521
12793
  effectiveThinkingOptionId?: string | null | undefined;
12522
12794
  lastUsage?: AgentUsage | undefined;
12795
+ activeTurnStartedAt?: string | null | undefined;
12523
12796
  lastError?: string | undefined;
12524
12797
  pendingPlanReview?: boolean | undefined;
12525
12798
  }>;
@@ -12667,6 +12940,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12667
12940
  archivedAt?: string | null | undefined;
12668
12941
  effectiveThinkingOptionId?: string | null | undefined;
12669
12942
  lastUsage?: AgentUsage | undefined;
12943
+ activeTurnStartedAt?: string | null | undefined;
12670
12944
  lastError?: string | undefined;
12671
12945
  pendingPlanReview?: boolean | undefined;
12672
12946
  };
@@ -12722,6 +12996,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12722
12996
  archivedAt?: string | null | undefined;
12723
12997
  effectiveThinkingOptionId?: string | null | undefined;
12724
12998
  lastUsage?: AgentUsage | undefined;
12999
+ activeTurnStartedAt?: string | null | undefined;
12725
13000
  lastError?: string | undefined;
12726
13001
  pendingPlanReview?: boolean | undefined;
12727
13002
  };
@@ -12789,6 +13064,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12789
13064
  archivedAt?: string | null | undefined;
12790
13065
  effectiveThinkingOptionId?: string | null | undefined;
12791
13066
  lastUsage?: AgentUsage | undefined;
13067
+ activeTurnStartedAt?: string | null | undefined;
12792
13068
  lastError?: string | undefined;
12793
13069
  pendingPlanReview?: boolean | undefined;
12794
13070
  };
@@ -12850,6 +13126,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12850
13126
  archivedAt?: string | null | undefined;
12851
13127
  effectiveThinkingOptionId?: string | null | undefined;
12852
13128
  lastUsage?: AgentUsage | undefined;
13129
+ activeTurnStartedAt?: string | null | undefined;
12853
13130
  lastError?: string | undefined;
12854
13131
  pendingPlanReview?: boolean | undefined;
12855
13132
  };
@@ -12902,12 +13179,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12902
13179
  }>, z.ZodObject<{
12903
13180
  type: z.ZodLiteral<"turn_started">;
12904
13181
  provider: z.ZodEnum<[string, ...string[]]>;
13182
+ startedAt: z.ZodOptional<z.ZodString>;
12905
13183
  }, "strip", z.ZodTypeAny, {
12906
13184
  provider: string;
12907
13185
  type: "turn_started";
13186
+ startedAt?: string | undefined;
12908
13187
  }, {
12909
13188
  provider: string;
12910
13189
  type: "turn_started";
13190
+ startedAt?: string | undefined;
12911
13191
  }>, z.ZodObject<{
12912
13192
  type: z.ZodLiteral<"turn_completed">;
12913
13193
  provider: z.ZodEnum<[string, ...string[]]>;
@@ -13076,6 +13356,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13076
13356
  } | {
13077
13357
  provider: string;
13078
13358
  type: "turn_started";
13359
+ startedAt?: string | undefined;
13079
13360
  } | {
13080
13361
  provider: string;
13081
13362
  type: "turn_completed";
@@ -13131,6 +13412,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13131
13412
  } | {
13132
13413
  provider: string;
13133
13414
  type: "turn_started";
13415
+ startedAt?: string | undefined;
13134
13416
  } | {
13135
13417
  provider: string;
13136
13418
  type: "turn_completed";
@@ -13189,6 +13471,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13189
13471
  } | {
13190
13472
  provider: string;
13191
13473
  type: "turn_started";
13474
+ startedAt?: string | undefined;
13192
13475
  } | {
13193
13476
  provider: string;
13194
13477
  type: "turn_completed";
@@ -13247,6 +13530,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13247
13530
  } | {
13248
13531
  provider: string;
13249
13532
  type: "turn_started";
13533
+ startedAt?: string | undefined;
13250
13534
  } | {
13251
13535
  provider: string;
13252
13536
  type: "turn_completed";
@@ -13316,6 +13600,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13316
13600
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
13317
13601
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
13318
13602
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
13603
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13319
13604
  lastError: z.ZodOptional<z.ZodString>;
13320
13605
  title: z.ZodNullable<z.ZodString>;
13321
13606
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -13348,6 +13633,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13348
13633
  archivedAt?: string | null | undefined;
13349
13634
  effectiveThinkingOptionId?: string | null | undefined;
13350
13635
  lastUsage?: AgentUsage | undefined;
13636
+ activeTurnStartedAt?: string | null | undefined;
13351
13637
  lastError?: string | undefined;
13352
13638
  pendingPlanReview?: boolean | undefined;
13353
13639
  }, {
@@ -13374,6 +13660,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13374
13660
  archivedAt?: string | null | undefined;
13375
13661
  effectiveThinkingOptionId?: string | null | undefined;
13376
13662
  lastUsage?: AgentUsage | undefined;
13663
+ activeTurnStartedAt?: string | null | undefined;
13377
13664
  lastError?: string | undefined;
13378
13665
  pendingPlanReview?: boolean | undefined;
13379
13666
  }>;
@@ -13404,6 +13691,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13404
13691
  archivedAt?: string | null | undefined;
13405
13692
  effectiveThinkingOptionId?: string | null | undefined;
13406
13693
  lastUsage?: AgentUsage | undefined;
13694
+ activeTurnStartedAt?: string | null | undefined;
13407
13695
  lastError?: string | undefined;
13408
13696
  pendingPlanReview?: boolean | undefined;
13409
13697
  };
@@ -13434,6 +13722,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13434
13722
  archivedAt?: string | null | undefined;
13435
13723
  effectiveThinkingOptionId?: string | null | undefined;
13436
13724
  lastUsage?: AgentUsage | undefined;
13725
+ activeTurnStartedAt?: string | null | undefined;
13437
13726
  lastError?: string | undefined;
13438
13727
  pendingPlanReview?: boolean | undefined;
13439
13728
  };
@@ -13467,6 +13756,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13467
13756
  archivedAt?: string | null | undefined;
13468
13757
  effectiveThinkingOptionId?: string | null | undefined;
13469
13758
  lastUsage?: AgentUsage | undefined;
13759
+ activeTurnStartedAt?: string | null | undefined;
13470
13760
  lastError?: string | undefined;
13471
13761
  pendingPlanReview?: boolean | undefined;
13472
13762
  };
@@ -13500,6 +13790,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13500
13790
  archivedAt?: string | null | undefined;
13501
13791
  effectiveThinkingOptionId?: string | null | undefined;
13502
13792
  lastUsage?: AgentUsage | undefined;
13793
+ activeTurnStartedAt?: string | null | undefined;
13503
13794
  lastError?: string | undefined;
13504
13795
  pendingPlanReview?: boolean | undefined;
13505
13796
  };
@@ -13528,6 +13819,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13528
13819
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
13529
13820
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
13530
13821
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
13822
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13531
13823
  lastError: z.ZodOptional<z.ZodString>;
13532
13824
  title: z.ZodNullable<z.ZodString>;
13533
13825
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -13560,6 +13852,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13560
13852
  archivedAt?: string | null | undefined;
13561
13853
  effectiveThinkingOptionId?: string | null | undefined;
13562
13854
  lastUsage?: AgentUsage | undefined;
13855
+ activeTurnStartedAt?: string | null | undefined;
13563
13856
  lastError?: string | undefined;
13564
13857
  pendingPlanReview?: boolean | undefined;
13565
13858
  }, {
@@ -13586,6 +13879,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13586
13879
  archivedAt?: string | null | undefined;
13587
13880
  effectiveThinkingOptionId?: string | null | undefined;
13588
13881
  lastUsage?: AgentUsage | undefined;
13882
+ activeTurnStartedAt?: string | null | undefined;
13589
13883
  lastError?: string | undefined;
13590
13884
  pendingPlanReview?: boolean | undefined;
13591
13885
  }>;
@@ -13732,6 +14026,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13732
14026
  archivedAt?: string | null | undefined;
13733
14027
  effectiveThinkingOptionId?: string | null | undefined;
13734
14028
  lastUsage?: AgentUsage | undefined;
14029
+ activeTurnStartedAt?: string | null | undefined;
13735
14030
  lastError?: string | undefined;
13736
14031
  pendingPlanReview?: boolean | undefined;
13737
14032
  };
@@ -13786,6 +14081,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13786
14081
  archivedAt?: string | null | undefined;
13787
14082
  effectiveThinkingOptionId?: string | null | undefined;
13788
14083
  lastUsage?: AgentUsage | undefined;
14084
+ activeTurnStartedAt?: string | null | undefined;
13789
14085
  lastError?: string | undefined;
13790
14086
  pendingPlanReview?: boolean | undefined;
13791
14087
  };
@@ -13855,6 +14151,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13855
14151
  archivedAt?: string | null | undefined;
13856
14152
  effectiveThinkingOptionId?: string | null | undefined;
13857
14153
  lastUsage?: AgentUsage | undefined;
14154
+ activeTurnStartedAt?: string | null | undefined;
13858
14155
  lastError?: string | undefined;
13859
14156
  pendingPlanReview?: boolean | undefined;
13860
14157
  };
@@ -13918,6 +14215,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13918
14215
  archivedAt?: string | null | undefined;
13919
14216
  effectiveThinkingOptionId?: string | null | undefined;
13920
14217
  lastUsage?: AgentUsage | undefined;
14218
+ activeTurnStartedAt?: string | null | undefined;
13921
14219
  lastError?: string | undefined;
13922
14220
  pendingPlanReview?: boolean | undefined;
13923
14221
  };
@@ -13984,6 +14282,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13984
14282
  archivedAt?: string | null | undefined;
13985
14283
  effectiveThinkingOptionId?: string | null | undefined;
13986
14284
  lastUsage?: AgentUsage | undefined;
14285
+ activeTurnStartedAt?: string | null | undefined;
13987
14286
  lastError?: string | undefined;
13988
14287
  pendingPlanReview?: boolean | undefined;
13989
14288
  };
@@ -14050,6 +14349,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14050
14349
  archivedAt?: string | null | undefined;
14051
14350
  effectiveThinkingOptionId?: string | null | undefined;
14052
14351
  lastUsage?: AgentUsage | undefined;
14352
+ activeTurnStartedAt?: string | null | undefined;
14053
14353
  lastError?: string | undefined;
14054
14354
  pendingPlanReview?: boolean | undefined;
14055
14355
  };
@@ -14110,6 +14410,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14110
14410
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
14111
14411
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
14112
14412
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
14413
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14113
14414
  lastError: z.ZodOptional<z.ZodString>;
14114
14415
  title: z.ZodNullable<z.ZodString>;
14115
14416
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -14142,6 +14443,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14142
14443
  archivedAt?: string | null | undefined;
14143
14444
  effectiveThinkingOptionId?: string | null | undefined;
14144
14445
  lastUsage?: AgentUsage | undefined;
14446
+ activeTurnStartedAt?: string | null | undefined;
14145
14447
  lastError?: string | undefined;
14146
14448
  pendingPlanReview?: boolean | undefined;
14147
14449
  }, {
@@ -14168,6 +14470,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14168
14470
  archivedAt?: string | null | undefined;
14169
14471
  effectiveThinkingOptionId?: string | null | undefined;
14170
14472
  lastUsage?: AgentUsage | undefined;
14473
+ activeTurnStartedAt?: string | null | undefined;
14171
14474
  lastError?: string | undefined;
14172
14475
  pendingPlanReview?: boolean | undefined;
14173
14476
  }>>;
@@ -14317,6 +14620,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14317
14620
  archivedAt?: string | null | undefined;
14318
14621
  effectiveThinkingOptionId?: string | null | undefined;
14319
14622
  lastUsage?: AgentUsage | undefined;
14623
+ activeTurnStartedAt?: string | null | undefined;
14320
14624
  lastError?: string | undefined;
14321
14625
  pendingPlanReview?: boolean | undefined;
14322
14626
  } | null;
@@ -14373,6 +14677,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14373
14677
  archivedAt?: string | null | undefined;
14374
14678
  effectiveThinkingOptionId?: string | null | undefined;
14375
14679
  lastUsage?: AgentUsage | undefined;
14680
+ activeTurnStartedAt?: string | null | undefined;
14376
14681
  lastError?: string | undefined;
14377
14682
  pendingPlanReview?: boolean | undefined;
14378
14683
  } | null;
@@ -14432,6 +14737,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14432
14737
  archivedAt?: string | null | undefined;
14433
14738
  effectiveThinkingOptionId?: string | null | undefined;
14434
14739
  lastUsage?: AgentUsage | undefined;
14740
+ activeTurnStartedAt?: string | null | undefined;
14435
14741
  lastError?: string | undefined;
14436
14742
  pendingPlanReview?: boolean | undefined;
14437
14743
  } | null;
@@ -14491,6 +14797,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14491
14797
  archivedAt?: string | null | undefined;
14492
14798
  effectiveThinkingOptionId?: string | null | undefined;
14493
14799
  lastUsage?: AgentUsage | undefined;
14800
+ activeTurnStartedAt?: string | null | undefined;
14494
14801
  lastError?: string | undefined;
14495
14802
  pendingPlanReview?: boolean | undefined;
14496
14803
  } | null;
@@ -14990,6 +15297,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14990
15297
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
14991
15298
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
14992
15299
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
15300
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14993
15301
  lastError: z.ZodOptional<z.ZodString>;
14994
15302
  title: z.ZodNullable<z.ZodString>;
14995
15303
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -15022,6 +15330,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15022
15330
  archivedAt?: string | null | undefined;
15023
15331
  effectiveThinkingOptionId?: string | null | undefined;
15024
15332
  lastUsage?: AgentUsage | undefined;
15333
+ activeTurnStartedAt?: string | null | undefined;
15025
15334
  lastError?: string | undefined;
15026
15335
  pendingPlanReview?: boolean | undefined;
15027
15336
  }, {
@@ -15048,6 +15357,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15048
15357
  archivedAt?: string | null | undefined;
15049
15358
  effectiveThinkingOptionId?: string | null | undefined;
15050
15359
  lastUsage?: AgentUsage | undefined;
15360
+ activeTurnStartedAt?: string | null | undefined;
15051
15361
  lastError?: string | undefined;
15052
15362
  pendingPlanReview?: boolean | undefined;
15053
15363
  }>>;
@@ -15081,6 +15391,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15081
15391
  archivedAt?: string | null | undefined;
15082
15392
  effectiveThinkingOptionId?: string | null | undefined;
15083
15393
  lastUsage?: AgentUsage | undefined;
15394
+ activeTurnStartedAt?: string | null | undefined;
15084
15395
  lastError?: string | undefined;
15085
15396
  pendingPlanReview?: boolean | undefined;
15086
15397
  } | null;
@@ -15113,6 +15424,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15113
15424
  archivedAt?: string | null | undefined;
15114
15425
  effectiveThinkingOptionId?: string | null | undefined;
15115
15426
  lastUsage?: AgentUsage | undefined;
15427
+ activeTurnStartedAt?: string | null | undefined;
15116
15428
  lastError?: string | undefined;
15117
15429
  pendingPlanReview?: boolean | undefined;
15118
15430
  } | null;
@@ -15148,6 +15460,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15148
15460
  archivedAt?: string | null | undefined;
15149
15461
  effectiveThinkingOptionId?: string | null | undefined;
15150
15462
  lastUsage?: AgentUsage | undefined;
15463
+ activeTurnStartedAt?: string | null | undefined;
15151
15464
  lastError?: string | undefined;
15152
15465
  pendingPlanReview?: boolean | undefined;
15153
15466
  } | null;
@@ -15183,6 +15496,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15183
15496
  archivedAt?: string | null | undefined;
15184
15497
  effectiveThinkingOptionId?: string | null | undefined;
15185
15498
  lastUsage?: AgentUsage | undefined;
15499
+ activeTurnStartedAt?: string | null | undefined;
15186
15500
  lastError?: string | undefined;
15187
15501
  pendingPlanReview?: boolean | undefined;
15188
15502
  } | null;
@@ -16621,6 +16935,129 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
16621
16935
  requestId: string;
16622
16936
  githubFeaturesEnabled: boolean;
16623
16937
  };
16938
+ }>, z.ZodObject<{
16939
+ type: z.ZodLiteral<"checkout_pr_search_response">;
16940
+ payload: z.ZodObject<{
16941
+ cwd: z.ZodString;
16942
+ pullRequests: z.ZodArray<z.ZodObject<{
16943
+ number: z.ZodNumber;
16944
+ title: z.ZodString;
16945
+ authorLogin: z.ZodNullable<z.ZodString>;
16946
+ url: z.ZodString;
16947
+ headRefName: z.ZodString;
16948
+ baseRefName: z.ZodString;
16949
+ isDraft: z.ZodBoolean;
16950
+ state: z.ZodEnum<["open", "closed", "merged"]>;
16951
+ }, "strip", z.ZodTypeAny, {
16952
+ number: number;
16953
+ title: string;
16954
+ url: string;
16955
+ state: "closed" | "open" | "merged";
16956
+ baseRefName: string;
16957
+ headRefName: string;
16958
+ authorLogin: string | null;
16959
+ isDraft: boolean;
16960
+ }, {
16961
+ number: number;
16962
+ title: string;
16963
+ url: string;
16964
+ state: "closed" | "open" | "merged";
16965
+ baseRefName: string;
16966
+ headRefName: string;
16967
+ authorLogin: string | null;
16968
+ isDraft: boolean;
16969
+ }>, "many">;
16970
+ githubFeaturesEnabled: z.ZodBoolean;
16971
+ error: z.ZodNullable<z.ZodObject<{
16972
+ code: z.ZodEnum<["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]>;
16973
+ message: z.ZodString;
16974
+ }, "strip", z.ZodTypeAny, {
16975
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
16976
+ message: string;
16977
+ }, {
16978
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
16979
+ message: string;
16980
+ }>>;
16981
+ requestId: z.ZodString;
16982
+ }, "strip", z.ZodTypeAny, {
16983
+ error: {
16984
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
16985
+ message: string;
16986
+ } | null;
16987
+ cwd: string;
16988
+ requestId: string;
16989
+ githubFeaturesEnabled: boolean;
16990
+ pullRequests: {
16991
+ number: number;
16992
+ title: string;
16993
+ url: string;
16994
+ state: "closed" | "open" | "merged";
16995
+ baseRefName: string;
16996
+ headRefName: string;
16997
+ authorLogin: string | null;
16998
+ isDraft: boolean;
16999
+ }[];
17000
+ }, {
17001
+ error: {
17002
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
17003
+ message: string;
17004
+ } | null;
17005
+ cwd: string;
17006
+ requestId: string;
17007
+ githubFeaturesEnabled: boolean;
17008
+ pullRequests: {
17009
+ number: number;
17010
+ title: string;
17011
+ url: string;
17012
+ state: "closed" | "open" | "merged";
17013
+ baseRefName: string;
17014
+ headRefName: string;
17015
+ authorLogin: string | null;
17016
+ isDraft: boolean;
17017
+ }[];
17018
+ }>;
17019
+ }, "strip", z.ZodTypeAny, {
17020
+ type: "checkout_pr_search_response";
17021
+ payload: {
17022
+ error: {
17023
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
17024
+ message: string;
17025
+ } | null;
17026
+ cwd: string;
17027
+ requestId: string;
17028
+ githubFeaturesEnabled: boolean;
17029
+ pullRequests: {
17030
+ number: number;
17031
+ title: string;
17032
+ url: string;
17033
+ state: "closed" | "open" | "merged";
17034
+ baseRefName: string;
17035
+ headRefName: string;
17036
+ authorLogin: string | null;
17037
+ isDraft: boolean;
17038
+ }[];
17039
+ };
17040
+ }, {
17041
+ type: "checkout_pr_search_response";
17042
+ payload: {
17043
+ error: {
17044
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
17045
+ message: string;
17046
+ } | null;
17047
+ cwd: string;
17048
+ requestId: string;
17049
+ githubFeaturesEnabled: boolean;
17050
+ pullRequests: {
17051
+ number: number;
17052
+ title: string;
17053
+ url: string;
17054
+ state: "closed" | "open" | "merged";
17055
+ baseRefName: string;
17056
+ headRefName: string;
17057
+ authorLogin: string | null;
17058
+ isDraft: boolean;
17059
+ }[];
17060
+ };
16624
17061
  }>, z.ZodObject<{
16625
17062
  type: z.ZodLiteral<"checkout_pr_failure_logs_response">;
16626
17063
  payload: z.ZodObject<{
@@ -19331,6 +19768,8 @@ export type CheckoutPrCreateRequest = z.infer<typeof CheckoutPrCreateRequestSche
19331
19768
  export type CheckoutPrCreateResponse = z.infer<typeof CheckoutPrCreateResponseSchema>;
19332
19769
  export type CheckoutPrStatusRequest = z.infer<typeof CheckoutPrStatusRequestSchema>;
19333
19770
  export type CheckoutPrStatusResponse = z.infer<typeof CheckoutPrStatusResponseSchema>;
19771
+ export type CheckoutPrSearchRequest = z.infer<typeof CheckoutPrSearchRequestSchema>;
19772
+ export type CheckoutPrSearchResponse = z.infer<typeof CheckoutPrSearchResponseSchema>;
19334
19773
  export type CheckoutPrFailureLogsRequest = z.infer<typeof CheckoutPrFailureLogsRequestSchema>;
19335
19774
  export type CheckoutPrFailureLogsResponse = z.infer<typeof CheckoutPrFailureLogsResponseSchema>;
19336
19775
  export type CheckoutPrMergeRequest = z.infer<typeof CheckoutPrMergeRequestSchema>;
@@ -19900,6 +20339,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19900
20339
  newBranchName: z.ZodOptional<z.ZodString>;
19901
20340
  createWorktree: z.ZodOptional<z.ZodBoolean>;
19902
20341
  worktreeSlug: z.ZodOptional<z.ZodString>;
20342
+ attachBranchName: z.ZodOptional<z.ZodString>;
20343
+ attachBranchSource: z.ZodOptional<z.ZodEnum<["local", "remote"]>>;
19903
20344
  }, "strip", z.ZodTypeAny, {
19904
20345
  baseBranch?: string | undefined;
19905
20346
  baseBranchSource?: "local" | "remote" | undefined;
@@ -19908,6 +20349,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19908
20349
  createNewBranch?: boolean | undefined;
19909
20350
  newBranchName?: string | undefined;
19910
20351
  createWorktree?: boolean | undefined;
20352
+ attachBranchName?: string | undefined;
20353
+ attachBranchSource?: "local" | "remote" | undefined;
19911
20354
  }, {
19912
20355
  baseBranch?: string | undefined;
19913
20356
  baseBranchSource?: "local" | "remote" | undefined;
@@ -19916,6 +20359,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19916
20359
  createNewBranch?: boolean | undefined;
19917
20360
  newBranchName?: string | undefined;
19918
20361
  createWorktree?: boolean | undefined;
20362
+ attachBranchName?: string | undefined;
20363
+ attachBranchSource?: "local" | "remote" | undefined;
19919
20364
  }>>;
19920
20365
  bootstrapSetupOverride: z.ZodOptional<z.ZodType<BootstrapSetupOverride, z.ZodTypeDef, BootstrapSetupOverride>>;
19921
20366
  generalPreferencesApplied: z.ZodOptional<z.ZodBoolean>;
@@ -19980,6 +20425,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19980
20425
  createNewBranch?: boolean | undefined;
19981
20426
  newBranchName?: string | undefined;
19982
20427
  createWorktree?: boolean | undefined;
20428
+ attachBranchName?: string | undefined;
20429
+ attachBranchSource?: "local" | "remote" | undefined;
19983
20430
  } | undefined;
19984
20431
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
19985
20432
  }, {
@@ -20041,6 +20488,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20041
20488
  createNewBranch?: boolean | undefined;
20042
20489
  newBranchName?: string | undefined;
20043
20490
  createWorktree?: boolean | undefined;
20491
+ attachBranchName?: string | undefined;
20492
+ attachBranchSource?: "local" | "remote" | undefined;
20044
20493
  } | undefined;
20045
20494
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
20046
20495
  }>, z.ZodObject<{
@@ -20588,6 +21037,27 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20588
21037
  type: "checkout_pr_status_request";
20589
21038
  requestId: string;
20590
21039
  remoteName?: string | undefined;
21040
+ }>, z.ZodObject<{
21041
+ type: z.ZodLiteral<"checkout_pr_search_request">;
21042
+ cwd: z.ZodString;
21043
+ query: z.ZodOptional<z.ZodString>;
21044
+ limit: z.ZodOptional<z.ZodNumber>;
21045
+ remoteName: z.ZodOptional<z.ZodString>;
21046
+ requestId: z.ZodString;
21047
+ }, "strip", z.ZodTypeAny, {
21048
+ cwd: string;
21049
+ type: "checkout_pr_search_request";
21050
+ requestId: string;
21051
+ remoteName?: string | undefined;
21052
+ limit?: number | undefined;
21053
+ query?: string | undefined;
21054
+ }, {
21055
+ cwd: string;
21056
+ type: "checkout_pr_search_request";
21057
+ requestId: string;
21058
+ remoteName?: string | undefined;
21059
+ limit?: number | undefined;
21060
+ query?: string | undefined;
20591
21061
  }>, z.ZodObject<{
20592
21062
  type: z.ZodLiteral<"checkout_pr_failure_logs_request">;
20593
21063
  cwd: z.ZodString;
@@ -21341,6 +21811,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21341
21811
  createNewBranch?: boolean | undefined;
21342
21812
  newBranchName?: string | undefined;
21343
21813
  createWorktree?: boolean | undefined;
21814
+ attachBranchName?: string | undefined;
21815
+ attachBranchSource?: "local" | "remote" | undefined;
21344
21816
  } | undefined;
21345
21817
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
21346
21818
  } | {
@@ -21490,6 +21962,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21490
21962
  type: "checkout_pr_status_request";
21491
21963
  requestId: string;
21492
21964
  remoteName?: string | undefined;
21965
+ } | {
21966
+ cwd: string;
21967
+ type: "checkout_pr_search_request";
21968
+ requestId: string;
21969
+ remoteName?: string | undefined;
21970
+ limit?: number | undefined;
21971
+ query?: string | undefined;
21493
21972
  } | {
21494
21973
  cwd: string;
21495
21974
  type: "checkout_pr_failure_logs_request";
@@ -21816,6 +22295,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21816
22295
  createNewBranch?: boolean | undefined;
21817
22296
  newBranchName?: string | undefined;
21818
22297
  createWorktree?: boolean | undefined;
22298
+ attachBranchName?: string | undefined;
22299
+ attachBranchSource?: "local" | "remote" | undefined;
21819
22300
  } | undefined;
21820
22301
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
21821
22302
  } | {
@@ -21965,6 +22446,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21965
22446
  type: "checkout_pr_status_request";
21966
22447
  requestId: string;
21967
22448
  remoteName?: string | undefined;
22449
+ } | {
22450
+ cwd: string;
22451
+ type: "checkout_pr_search_request";
22452
+ requestId: string;
22453
+ remoteName?: string | undefined;
22454
+ limit?: number | undefined;
22455
+ query?: string | undefined;
21968
22456
  } | {
21969
22457
  cwd: string;
21970
22458
  type: "checkout_pr_failure_logs_request";
@@ -22375,6 +22863,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22375
22863
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
22376
22864
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
22377
22865
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
22866
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22378
22867
  lastError: z.ZodOptional<z.ZodString>;
22379
22868
  title: z.ZodNullable<z.ZodString>;
22380
22869
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -22407,6 +22896,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22407
22896
  archivedAt?: string | null | undefined;
22408
22897
  effectiveThinkingOptionId?: string | null | undefined;
22409
22898
  lastUsage?: AgentUsage | undefined;
22899
+ activeTurnStartedAt?: string | null | undefined;
22410
22900
  lastError?: string | undefined;
22411
22901
  pendingPlanReview?: boolean | undefined;
22412
22902
  }, {
@@ -22433,6 +22923,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22433
22923
  archivedAt?: string | null | undefined;
22434
22924
  effectiveThinkingOptionId?: string | null | undefined;
22435
22925
  lastUsage?: AgentUsage | undefined;
22926
+ activeTurnStartedAt?: string | null | undefined;
22436
22927
  lastError?: string | undefined;
22437
22928
  pendingPlanReview?: boolean | undefined;
22438
22929
  }>;
@@ -22580,6 +23071,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22580
23071
  archivedAt?: string | null | undefined;
22581
23072
  effectiveThinkingOptionId?: string | null | undefined;
22582
23073
  lastUsage?: AgentUsage | undefined;
23074
+ activeTurnStartedAt?: string | null | undefined;
22583
23075
  lastError?: string | undefined;
22584
23076
  pendingPlanReview?: boolean | undefined;
22585
23077
  };
@@ -22635,6 +23127,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22635
23127
  archivedAt?: string | null | undefined;
22636
23128
  effectiveThinkingOptionId?: string | null | undefined;
22637
23129
  lastUsage?: AgentUsage | undefined;
23130
+ activeTurnStartedAt?: string | null | undefined;
22638
23131
  lastError?: string | undefined;
22639
23132
  pendingPlanReview?: boolean | undefined;
22640
23133
  };
@@ -22702,6 +23195,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22702
23195
  archivedAt?: string | null | undefined;
22703
23196
  effectiveThinkingOptionId?: string | null | undefined;
22704
23197
  lastUsage?: AgentUsage | undefined;
23198
+ activeTurnStartedAt?: string | null | undefined;
22705
23199
  lastError?: string | undefined;
22706
23200
  pendingPlanReview?: boolean | undefined;
22707
23201
  };
@@ -22763,6 +23257,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22763
23257
  archivedAt?: string | null | undefined;
22764
23258
  effectiveThinkingOptionId?: string | null | undefined;
22765
23259
  lastUsage?: AgentUsage | undefined;
23260
+ activeTurnStartedAt?: string | null | undefined;
22766
23261
  lastError?: string | undefined;
22767
23262
  pendingPlanReview?: boolean | undefined;
22768
23263
  };
@@ -22815,12 +23310,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22815
23310
  }>, z.ZodObject<{
22816
23311
  type: z.ZodLiteral<"turn_started">;
22817
23312
  provider: z.ZodEnum<[string, ...string[]]>;
23313
+ startedAt: z.ZodOptional<z.ZodString>;
22818
23314
  }, "strip", z.ZodTypeAny, {
22819
23315
  provider: string;
22820
23316
  type: "turn_started";
23317
+ startedAt?: string | undefined;
22821
23318
  }, {
22822
23319
  provider: string;
22823
23320
  type: "turn_started";
23321
+ startedAt?: string | undefined;
22824
23322
  }>, z.ZodObject<{
22825
23323
  type: z.ZodLiteral<"turn_completed">;
22826
23324
  provider: z.ZodEnum<[string, ...string[]]>;
@@ -22989,6 +23487,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22989
23487
  } | {
22990
23488
  provider: string;
22991
23489
  type: "turn_started";
23490
+ startedAt?: string | undefined;
22992
23491
  } | {
22993
23492
  provider: string;
22994
23493
  type: "turn_completed";
@@ -23044,6 +23543,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23044
23543
  } | {
23045
23544
  provider: string;
23046
23545
  type: "turn_started";
23546
+ startedAt?: string | undefined;
23047
23547
  } | {
23048
23548
  provider: string;
23049
23549
  type: "turn_completed";
@@ -23102,6 +23602,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23102
23602
  } | {
23103
23603
  provider: string;
23104
23604
  type: "turn_started";
23605
+ startedAt?: string | undefined;
23105
23606
  } | {
23106
23607
  provider: string;
23107
23608
  type: "turn_completed";
@@ -23160,6 +23661,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23160
23661
  } | {
23161
23662
  provider: string;
23162
23663
  type: "turn_started";
23664
+ startedAt?: string | undefined;
23163
23665
  } | {
23164
23666
  provider: string;
23165
23667
  type: "turn_completed";
@@ -23229,6 +23731,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23229
23731
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
23230
23732
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
23231
23733
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
23734
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23232
23735
  lastError: z.ZodOptional<z.ZodString>;
23233
23736
  title: z.ZodNullable<z.ZodString>;
23234
23737
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -23261,6 +23764,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23261
23764
  archivedAt?: string | null | undefined;
23262
23765
  effectiveThinkingOptionId?: string | null | undefined;
23263
23766
  lastUsage?: AgentUsage | undefined;
23767
+ activeTurnStartedAt?: string | null | undefined;
23264
23768
  lastError?: string | undefined;
23265
23769
  pendingPlanReview?: boolean | undefined;
23266
23770
  }, {
@@ -23287,6 +23791,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23287
23791
  archivedAt?: string | null | undefined;
23288
23792
  effectiveThinkingOptionId?: string | null | undefined;
23289
23793
  lastUsage?: AgentUsage | undefined;
23794
+ activeTurnStartedAt?: string | null | undefined;
23290
23795
  lastError?: string | undefined;
23291
23796
  pendingPlanReview?: boolean | undefined;
23292
23797
  }>;
@@ -23317,6 +23822,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23317
23822
  archivedAt?: string | null | undefined;
23318
23823
  effectiveThinkingOptionId?: string | null | undefined;
23319
23824
  lastUsage?: AgentUsage | undefined;
23825
+ activeTurnStartedAt?: string | null | undefined;
23320
23826
  lastError?: string | undefined;
23321
23827
  pendingPlanReview?: boolean | undefined;
23322
23828
  };
@@ -23347,6 +23853,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23347
23853
  archivedAt?: string | null | undefined;
23348
23854
  effectiveThinkingOptionId?: string | null | undefined;
23349
23855
  lastUsage?: AgentUsage | undefined;
23856
+ activeTurnStartedAt?: string | null | undefined;
23350
23857
  lastError?: string | undefined;
23351
23858
  pendingPlanReview?: boolean | undefined;
23352
23859
  };
@@ -23380,6 +23887,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23380
23887
  archivedAt?: string | null | undefined;
23381
23888
  effectiveThinkingOptionId?: string | null | undefined;
23382
23889
  lastUsage?: AgentUsage | undefined;
23890
+ activeTurnStartedAt?: string | null | undefined;
23383
23891
  lastError?: string | undefined;
23384
23892
  pendingPlanReview?: boolean | undefined;
23385
23893
  };
@@ -23413,6 +23921,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23413
23921
  archivedAt?: string | null | undefined;
23414
23922
  effectiveThinkingOptionId?: string | null | undefined;
23415
23923
  lastUsage?: AgentUsage | undefined;
23924
+ activeTurnStartedAt?: string | null | undefined;
23416
23925
  lastError?: string | undefined;
23417
23926
  pendingPlanReview?: boolean | undefined;
23418
23927
  };
@@ -23441,6 +23950,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23441
23950
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
23442
23951
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
23443
23952
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
23953
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23444
23954
  lastError: z.ZodOptional<z.ZodString>;
23445
23955
  title: z.ZodNullable<z.ZodString>;
23446
23956
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -23473,6 +23983,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23473
23983
  archivedAt?: string | null | undefined;
23474
23984
  effectiveThinkingOptionId?: string | null | undefined;
23475
23985
  lastUsage?: AgentUsage | undefined;
23986
+ activeTurnStartedAt?: string | null | undefined;
23476
23987
  lastError?: string | undefined;
23477
23988
  pendingPlanReview?: boolean | undefined;
23478
23989
  }, {
@@ -23499,6 +24010,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23499
24010
  archivedAt?: string | null | undefined;
23500
24011
  effectiveThinkingOptionId?: string | null | undefined;
23501
24012
  lastUsage?: AgentUsage | undefined;
24013
+ activeTurnStartedAt?: string | null | undefined;
23502
24014
  lastError?: string | undefined;
23503
24015
  pendingPlanReview?: boolean | undefined;
23504
24016
  }>;
@@ -23645,6 +24157,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23645
24157
  archivedAt?: string | null | undefined;
23646
24158
  effectiveThinkingOptionId?: string | null | undefined;
23647
24159
  lastUsage?: AgentUsage | undefined;
24160
+ activeTurnStartedAt?: string | null | undefined;
23648
24161
  lastError?: string | undefined;
23649
24162
  pendingPlanReview?: boolean | undefined;
23650
24163
  };
@@ -23699,6 +24212,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23699
24212
  archivedAt?: string | null | undefined;
23700
24213
  effectiveThinkingOptionId?: string | null | undefined;
23701
24214
  lastUsage?: AgentUsage | undefined;
24215
+ activeTurnStartedAt?: string | null | undefined;
23702
24216
  lastError?: string | undefined;
23703
24217
  pendingPlanReview?: boolean | undefined;
23704
24218
  };
@@ -23768,6 +24282,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23768
24282
  archivedAt?: string | null | undefined;
23769
24283
  effectiveThinkingOptionId?: string | null | undefined;
23770
24284
  lastUsage?: AgentUsage | undefined;
24285
+ activeTurnStartedAt?: string | null | undefined;
23771
24286
  lastError?: string | undefined;
23772
24287
  pendingPlanReview?: boolean | undefined;
23773
24288
  };
@@ -23831,6 +24346,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23831
24346
  archivedAt?: string | null | undefined;
23832
24347
  effectiveThinkingOptionId?: string | null | undefined;
23833
24348
  lastUsage?: AgentUsage | undefined;
24349
+ activeTurnStartedAt?: string | null | undefined;
23834
24350
  lastError?: string | undefined;
23835
24351
  pendingPlanReview?: boolean | undefined;
23836
24352
  };
@@ -23897,6 +24413,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23897
24413
  archivedAt?: string | null | undefined;
23898
24414
  effectiveThinkingOptionId?: string | null | undefined;
23899
24415
  lastUsage?: AgentUsage | undefined;
24416
+ activeTurnStartedAt?: string | null | undefined;
23900
24417
  lastError?: string | undefined;
23901
24418
  pendingPlanReview?: boolean | undefined;
23902
24419
  };
@@ -23963,6 +24480,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23963
24480
  archivedAt?: string | null | undefined;
23964
24481
  effectiveThinkingOptionId?: string | null | undefined;
23965
24482
  lastUsage?: AgentUsage | undefined;
24483
+ activeTurnStartedAt?: string | null | undefined;
23966
24484
  lastError?: string | undefined;
23967
24485
  pendingPlanReview?: boolean | undefined;
23968
24486
  };
@@ -24023,6 +24541,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24023
24541
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
24024
24542
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
24025
24543
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
24544
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24026
24545
  lastError: z.ZodOptional<z.ZodString>;
24027
24546
  title: z.ZodNullable<z.ZodString>;
24028
24547
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -24055,6 +24574,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24055
24574
  archivedAt?: string | null | undefined;
24056
24575
  effectiveThinkingOptionId?: string | null | undefined;
24057
24576
  lastUsage?: AgentUsage | undefined;
24577
+ activeTurnStartedAt?: string | null | undefined;
24058
24578
  lastError?: string | undefined;
24059
24579
  pendingPlanReview?: boolean | undefined;
24060
24580
  }, {
@@ -24081,6 +24601,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24081
24601
  archivedAt?: string | null | undefined;
24082
24602
  effectiveThinkingOptionId?: string | null | undefined;
24083
24603
  lastUsage?: AgentUsage | undefined;
24604
+ activeTurnStartedAt?: string | null | undefined;
24084
24605
  lastError?: string | undefined;
24085
24606
  pendingPlanReview?: boolean | undefined;
24086
24607
  }>>;
@@ -24230,6 +24751,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24230
24751
  archivedAt?: string | null | undefined;
24231
24752
  effectiveThinkingOptionId?: string | null | undefined;
24232
24753
  lastUsage?: AgentUsage | undefined;
24754
+ activeTurnStartedAt?: string | null | undefined;
24233
24755
  lastError?: string | undefined;
24234
24756
  pendingPlanReview?: boolean | undefined;
24235
24757
  } | null;
@@ -24286,6 +24808,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24286
24808
  archivedAt?: string | null | undefined;
24287
24809
  effectiveThinkingOptionId?: string | null | undefined;
24288
24810
  lastUsage?: AgentUsage | undefined;
24811
+ activeTurnStartedAt?: string | null | undefined;
24289
24812
  lastError?: string | undefined;
24290
24813
  pendingPlanReview?: boolean | undefined;
24291
24814
  } | null;
@@ -24345,6 +24868,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24345
24868
  archivedAt?: string | null | undefined;
24346
24869
  effectiveThinkingOptionId?: string | null | undefined;
24347
24870
  lastUsage?: AgentUsage | undefined;
24871
+ activeTurnStartedAt?: string | null | undefined;
24348
24872
  lastError?: string | undefined;
24349
24873
  pendingPlanReview?: boolean | undefined;
24350
24874
  } | null;
@@ -24404,6 +24928,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24404
24928
  archivedAt?: string | null | undefined;
24405
24929
  effectiveThinkingOptionId?: string | null | undefined;
24406
24930
  lastUsage?: AgentUsage | undefined;
24931
+ activeTurnStartedAt?: string | null | undefined;
24407
24932
  lastError?: string | undefined;
24408
24933
  pendingPlanReview?: boolean | undefined;
24409
24934
  } | null;
@@ -24903,6 +25428,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24903
25428
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
24904
25429
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
24905
25430
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
25431
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24906
25432
  lastError: z.ZodOptional<z.ZodString>;
24907
25433
  title: z.ZodNullable<z.ZodString>;
24908
25434
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -24935,6 +25461,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24935
25461
  archivedAt?: string | null | undefined;
24936
25462
  effectiveThinkingOptionId?: string | null | undefined;
24937
25463
  lastUsage?: AgentUsage | undefined;
25464
+ activeTurnStartedAt?: string | null | undefined;
24938
25465
  lastError?: string | undefined;
24939
25466
  pendingPlanReview?: boolean | undefined;
24940
25467
  }, {
@@ -24961,6 +25488,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24961
25488
  archivedAt?: string | null | undefined;
24962
25489
  effectiveThinkingOptionId?: string | null | undefined;
24963
25490
  lastUsage?: AgentUsage | undefined;
25491
+ activeTurnStartedAt?: string | null | undefined;
24964
25492
  lastError?: string | undefined;
24965
25493
  pendingPlanReview?: boolean | undefined;
24966
25494
  }>>;
@@ -24994,6 +25522,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24994
25522
  archivedAt?: string | null | undefined;
24995
25523
  effectiveThinkingOptionId?: string | null | undefined;
24996
25524
  lastUsage?: AgentUsage | undefined;
25525
+ activeTurnStartedAt?: string | null | undefined;
24997
25526
  lastError?: string | undefined;
24998
25527
  pendingPlanReview?: boolean | undefined;
24999
25528
  } | null;
@@ -25026,6 +25555,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25026
25555
  archivedAt?: string | null | undefined;
25027
25556
  effectiveThinkingOptionId?: string | null | undefined;
25028
25557
  lastUsage?: AgentUsage | undefined;
25558
+ activeTurnStartedAt?: string | null | undefined;
25029
25559
  lastError?: string | undefined;
25030
25560
  pendingPlanReview?: boolean | undefined;
25031
25561
  } | null;
@@ -25061,6 +25591,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25061
25591
  archivedAt?: string | null | undefined;
25062
25592
  effectiveThinkingOptionId?: string | null | undefined;
25063
25593
  lastUsage?: AgentUsage | undefined;
25594
+ activeTurnStartedAt?: string | null | undefined;
25064
25595
  lastError?: string | undefined;
25065
25596
  pendingPlanReview?: boolean | undefined;
25066
25597
  } | null;
@@ -25096,6 +25627,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25096
25627
  archivedAt?: string | null | undefined;
25097
25628
  effectiveThinkingOptionId?: string | null | undefined;
25098
25629
  lastUsage?: AgentUsage | undefined;
25630
+ activeTurnStartedAt?: string | null | undefined;
25099
25631
  lastError?: string | undefined;
25100
25632
  pendingPlanReview?: boolean | undefined;
25101
25633
  } | null;
@@ -26534,6 +27066,129 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26534
27066
  requestId: string;
26535
27067
  githubFeaturesEnabled: boolean;
26536
27068
  };
27069
+ }>, z.ZodObject<{
27070
+ type: z.ZodLiteral<"checkout_pr_search_response">;
27071
+ payload: z.ZodObject<{
27072
+ cwd: z.ZodString;
27073
+ pullRequests: z.ZodArray<z.ZodObject<{
27074
+ number: z.ZodNumber;
27075
+ title: z.ZodString;
27076
+ authorLogin: z.ZodNullable<z.ZodString>;
27077
+ url: z.ZodString;
27078
+ headRefName: z.ZodString;
27079
+ baseRefName: z.ZodString;
27080
+ isDraft: z.ZodBoolean;
27081
+ state: z.ZodEnum<["open", "closed", "merged"]>;
27082
+ }, "strip", z.ZodTypeAny, {
27083
+ number: number;
27084
+ title: string;
27085
+ url: string;
27086
+ state: "closed" | "open" | "merged";
27087
+ baseRefName: string;
27088
+ headRefName: string;
27089
+ authorLogin: string | null;
27090
+ isDraft: boolean;
27091
+ }, {
27092
+ number: number;
27093
+ title: string;
27094
+ url: string;
27095
+ state: "closed" | "open" | "merged";
27096
+ baseRefName: string;
27097
+ headRefName: string;
27098
+ authorLogin: string | null;
27099
+ isDraft: boolean;
27100
+ }>, "many">;
27101
+ githubFeaturesEnabled: z.ZodBoolean;
27102
+ error: z.ZodNullable<z.ZodObject<{
27103
+ code: z.ZodEnum<["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]>;
27104
+ message: z.ZodString;
27105
+ }, "strip", z.ZodTypeAny, {
27106
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
27107
+ message: string;
27108
+ }, {
27109
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
27110
+ message: string;
27111
+ }>>;
27112
+ requestId: z.ZodString;
27113
+ }, "strip", z.ZodTypeAny, {
27114
+ error: {
27115
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
27116
+ message: string;
27117
+ } | null;
27118
+ cwd: string;
27119
+ requestId: string;
27120
+ githubFeaturesEnabled: boolean;
27121
+ pullRequests: {
27122
+ number: number;
27123
+ title: string;
27124
+ url: string;
27125
+ state: "closed" | "open" | "merged";
27126
+ baseRefName: string;
27127
+ headRefName: string;
27128
+ authorLogin: string | null;
27129
+ isDraft: boolean;
27130
+ }[];
27131
+ }, {
27132
+ error: {
27133
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
27134
+ message: string;
27135
+ } | null;
27136
+ cwd: string;
27137
+ requestId: string;
27138
+ githubFeaturesEnabled: boolean;
27139
+ pullRequests: {
27140
+ number: number;
27141
+ title: string;
27142
+ url: string;
27143
+ state: "closed" | "open" | "merged";
27144
+ baseRefName: string;
27145
+ headRefName: string;
27146
+ authorLogin: string | null;
27147
+ isDraft: boolean;
27148
+ }[];
27149
+ }>;
27150
+ }, "strip", z.ZodTypeAny, {
27151
+ type: "checkout_pr_search_response";
27152
+ payload: {
27153
+ error: {
27154
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
27155
+ message: string;
27156
+ } | null;
27157
+ cwd: string;
27158
+ requestId: string;
27159
+ githubFeaturesEnabled: boolean;
27160
+ pullRequests: {
27161
+ number: number;
27162
+ title: string;
27163
+ url: string;
27164
+ state: "closed" | "open" | "merged";
27165
+ baseRefName: string;
27166
+ headRefName: string;
27167
+ authorLogin: string | null;
27168
+ isDraft: boolean;
27169
+ }[];
27170
+ };
27171
+ }, {
27172
+ type: "checkout_pr_search_response";
27173
+ payload: {
27174
+ error: {
27175
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
27176
+ message: string;
27177
+ } | null;
27178
+ cwd: string;
27179
+ requestId: string;
27180
+ githubFeaturesEnabled: boolean;
27181
+ pullRequests: {
27182
+ number: number;
27183
+ title: string;
27184
+ url: string;
27185
+ state: "closed" | "open" | "merged";
27186
+ baseRefName: string;
27187
+ headRefName: string;
27188
+ authorLogin: string | null;
27189
+ isDraft: boolean;
27190
+ }[];
27191
+ };
26537
27192
  }>, z.ZodObject<{
26538
27193
  type: z.ZodLiteral<"checkout_pr_failure_logs_response">;
26539
27194
  payload: z.ZodObject<{
@@ -29287,6 +29942,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29287
29942
  archivedAt?: string | null | undefined;
29288
29943
  effectiveThinkingOptionId?: string | null | undefined;
29289
29944
  lastUsage?: AgentUsage | undefined;
29945
+ activeTurnStartedAt?: string | null | undefined;
29290
29946
  lastError?: string | undefined;
29291
29947
  pendingPlanReview?: boolean | undefined;
29292
29948
  };
@@ -29332,6 +29988,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29332
29988
  } | {
29333
29989
  provider: string;
29334
29990
  type: "turn_started";
29991
+ startedAt?: string | undefined;
29335
29992
  } | {
29336
29993
  provider: string;
29337
29994
  type: "turn_completed";
@@ -29407,6 +30064,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29407
30064
  archivedAt?: string | null | undefined;
29408
30065
  effectiveThinkingOptionId?: string | null | undefined;
29409
30066
  lastUsage?: AgentUsage | undefined;
30067
+ activeTurnStartedAt?: string | null | undefined;
29410
30068
  lastError?: string | undefined;
29411
30069
  pendingPlanReview?: boolean | undefined;
29412
30070
  };
@@ -29439,6 +30097,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29439
30097
  archivedAt?: string | null | undefined;
29440
30098
  effectiveThinkingOptionId?: string | null | undefined;
29441
30099
  lastUsage?: AgentUsage | undefined;
30100
+ activeTurnStartedAt?: string | null | undefined;
29442
30101
  lastError?: string | undefined;
29443
30102
  pendingPlanReview?: boolean | undefined;
29444
30103
  };
@@ -29506,6 +30165,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29506
30165
  archivedAt?: string | null | undefined;
29507
30166
  effectiveThinkingOptionId?: string | null | undefined;
29508
30167
  lastUsage?: AgentUsage | undefined;
30168
+ activeTurnStartedAt?: string | null | undefined;
29509
30169
  lastError?: string | undefined;
29510
30170
  pendingPlanReview?: boolean | undefined;
29511
30171
  } | null;
@@ -29614,6 +30274,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29614
30274
  archivedAt?: string | null | undefined;
29615
30275
  effectiveThinkingOptionId?: string | null | undefined;
29616
30276
  lastUsage?: AgentUsage | undefined;
30277
+ activeTurnStartedAt?: string | null | undefined;
29617
30278
  lastError?: string | undefined;
29618
30279
  pendingPlanReview?: boolean | undefined;
29619
30280
  } | null;
@@ -29866,6 +30527,27 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29866
30527
  requestId: string;
29867
30528
  githubFeaturesEnabled: boolean;
29868
30529
  };
30530
+ } | {
30531
+ type: "checkout_pr_search_response";
30532
+ payload: {
30533
+ error: {
30534
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
30535
+ message: string;
30536
+ } | null;
30537
+ cwd: string;
30538
+ requestId: string;
30539
+ githubFeaturesEnabled: boolean;
30540
+ pullRequests: {
30541
+ number: number;
30542
+ title: string;
30543
+ url: string;
30544
+ state: "closed" | "open" | "merged";
30545
+ baseRefName: string;
30546
+ headRefName: string;
30547
+ authorLogin: string | null;
30548
+ isDraft: boolean;
30549
+ }[];
30550
+ };
29869
30551
  } | {
29870
30552
  type: "checkout_pr_failure_logs_response";
29871
30553
  payload: {
@@ -30450,6 +31132,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30450
31132
  archivedAt?: string | null | undefined;
30451
31133
  effectiveThinkingOptionId?: string | null | undefined;
30452
31134
  lastUsage?: AgentUsage | undefined;
31135
+ activeTurnStartedAt?: string | null | undefined;
30453
31136
  lastError?: string | undefined;
30454
31137
  pendingPlanReview?: boolean | undefined;
30455
31138
  };
@@ -30495,6 +31178,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30495
31178
  } | {
30496
31179
  provider: string;
30497
31180
  type: "turn_started";
31181
+ startedAt?: string | undefined;
30498
31182
  } | {
30499
31183
  provider: string;
30500
31184
  type: "turn_completed";
@@ -30570,6 +31254,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30570
31254
  archivedAt?: string | null | undefined;
30571
31255
  effectiveThinkingOptionId?: string | null | undefined;
30572
31256
  lastUsage?: AgentUsage | undefined;
31257
+ activeTurnStartedAt?: string | null | undefined;
30573
31258
  lastError?: string | undefined;
30574
31259
  pendingPlanReview?: boolean | undefined;
30575
31260
  };
@@ -30602,6 +31287,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30602
31287
  archivedAt?: string | null | undefined;
30603
31288
  effectiveThinkingOptionId?: string | null | undefined;
30604
31289
  lastUsage?: AgentUsage | undefined;
31290
+ activeTurnStartedAt?: string | null | undefined;
30605
31291
  lastError?: string | undefined;
30606
31292
  pendingPlanReview?: boolean | undefined;
30607
31293
  };
@@ -30669,6 +31355,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30669
31355
  archivedAt?: string | null | undefined;
30670
31356
  effectiveThinkingOptionId?: string | null | undefined;
30671
31357
  lastUsage?: AgentUsage | undefined;
31358
+ activeTurnStartedAt?: string | null | undefined;
30672
31359
  lastError?: string | undefined;
30673
31360
  pendingPlanReview?: boolean | undefined;
30674
31361
  } | null;
@@ -30777,6 +31464,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30777
31464
  archivedAt?: string | null | undefined;
30778
31465
  effectiveThinkingOptionId?: string | null | undefined;
30779
31466
  lastUsage?: AgentUsage | undefined;
31467
+ activeTurnStartedAt?: string | null | undefined;
30780
31468
  lastError?: string | undefined;
30781
31469
  pendingPlanReview?: boolean | undefined;
30782
31470
  } | null;
@@ -31029,6 +31717,27 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
31029
31717
  requestId: string;
31030
31718
  githubFeaturesEnabled: boolean;
31031
31719
  };
31720
+ } | {
31721
+ type: "checkout_pr_search_response";
31722
+ payload: {
31723
+ error: {
31724
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
31725
+ message: string;
31726
+ } | null;
31727
+ cwd: string;
31728
+ requestId: string;
31729
+ githubFeaturesEnabled: boolean;
31730
+ pullRequests: {
31731
+ number: number;
31732
+ title: string;
31733
+ url: string;
31734
+ state: "closed" | "open" | "merged";
31735
+ baseRefName: string;
31736
+ headRefName: string;
31737
+ authorLogin: string | null;
31738
+ isDraft: boolean;
31739
+ }[];
31740
+ };
31032
31741
  } | {
31033
31742
  type: "checkout_pr_failure_logs_response";
31034
31743
  payload: {
@@ -31976,6 +32685,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
31976
32685
  newBranchName: z.ZodOptional<z.ZodString>;
31977
32686
  createWorktree: z.ZodOptional<z.ZodBoolean>;
31978
32687
  worktreeSlug: z.ZodOptional<z.ZodString>;
32688
+ attachBranchName: z.ZodOptional<z.ZodString>;
32689
+ attachBranchSource: z.ZodOptional<z.ZodEnum<["local", "remote"]>>;
31979
32690
  }, "strip", z.ZodTypeAny, {
31980
32691
  baseBranch?: string | undefined;
31981
32692
  baseBranchSource?: "local" | "remote" | undefined;
@@ -31984,6 +32695,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
31984
32695
  createNewBranch?: boolean | undefined;
31985
32696
  newBranchName?: string | undefined;
31986
32697
  createWorktree?: boolean | undefined;
32698
+ attachBranchName?: string | undefined;
32699
+ attachBranchSource?: "local" | "remote" | undefined;
31987
32700
  }, {
31988
32701
  baseBranch?: string | undefined;
31989
32702
  baseBranchSource?: "local" | "remote" | undefined;
@@ -31992,6 +32705,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
31992
32705
  createNewBranch?: boolean | undefined;
31993
32706
  newBranchName?: string | undefined;
31994
32707
  createWorktree?: boolean | undefined;
32708
+ attachBranchName?: string | undefined;
32709
+ attachBranchSource?: "local" | "remote" | undefined;
31995
32710
  }>>;
31996
32711
  bootstrapSetupOverride: z.ZodOptional<z.ZodType<BootstrapSetupOverride, z.ZodTypeDef, BootstrapSetupOverride>>;
31997
32712
  generalPreferencesApplied: z.ZodOptional<z.ZodBoolean>;
@@ -32056,6 +32771,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
32056
32771
  createNewBranch?: boolean | undefined;
32057
32772
  newBranchName?: string | undefined;
32058
32773
  createWorktree?: boolean | undefined;
32774
+ attachBranchName?: string | undefined;
32775
+ attachBranchSource?: "local" | "remote" | undefined;
32059
32776
  } | undefined;
32060
32777
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
32061
32778
  }, {
@@ -32117,6 +32834,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
32117
32834
  createNewBranch?: boolean | undefined;
32118
32835
  newBranchName?: string | undefined;
32119
32836
  createWorktree?: boolean | undefined;
32837
+ attachBranchName?: string | undefined;
32838
+ attachBranchSource?: "local" | "remote" | undefined;
32120
32839
  } | undefined;
32121
32840
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
32122
32841
  }>, z.ZodObject<{
@@ -32664,6 +33383,27 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
32664
33383
  type: "checkout_pr_status_request";
32665
33384
  requestId: string;
32666
33385
  remoteName?: string | undefined;
33386
+ }>, z.ZodObject<{
33387
+ type: z.ZodLiteral<"checkout_pr_search_request">;
33388
+ cwd: z.ZodString;
33389
+ query: z.ZodOptional<z.ZodString>;
33390
+ limit: z.ZodOptional<z.ZodNumber>;
33391
+ remoteName: z.ZodOptional<z.ZodString>;
33392
+ requestId: z.ZodString;
33393
+ }, "strip", z.ZodTypeAny, {
33394
+ cwd: string;
33395
+ type: "checkout_pr_search_request";
33396
+ requestId: string;
33397
+ remoteName?: string | undefined;
33398
+ limit?: number | undefined;
33399
+ query?: string | undefined;
33400
+ }, {
33401
+ cwd: string;
33402
+ type: "checkout_pr_search_request";
33403
+ requestId: string;
33404
+ remoteName?: string | undefined;
33405
+ limit?: number | undefined;
33406
+ query?: string | undefined;
32667
33407
  }>, z.ZodObject<{
32668
33408
  type: z.ZodLiteral<"checkout_pr_failure_logs_request">;
32669
33409
  cwd: z.ZodString;
@@ -33417,6 +34157,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33417
34157
  createNewBranch?: boolean | undefined;
33418
34158
  newBranchName?: string | undefined;
33419
34159
  createWorktree?: boolean | undefined;
34160
+ attachBranchName?: string | undefined;
34161
+ attachBranchSource?: "local" | "remote" | undefined;
33420
34162
  } | undefined;
33421
34163
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
33422
34164
  } | {
@@ -33566,6 +34308,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33566
34308
  type: "checkout_pr_status_request";
33567
34309
  requestId: string;
33568
34310
  remoteName?: string | undefined;
34311
+ } | {
34312
+ cwd: string;
34313
+ type: "checkout_pr_search_request";
34314
+ requestId: string;
34315
+ remoteName?: string | undefined;
34316
+ limit?: number | undefined;
34317
+ query?: string | undefined;
33569
34318
  } | {
33570
34319
  cwd: string;
33571
34320
  type: "checkout_pr_failure_logs_request";
@@ -33892,6 +34641,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
33892
34641
  createNewBranch?: boolean | undefined;
33893
34642
  newBranchName?: string | undefined;
33894
34643
  createWorktree?: boolean | undefined;
34644
+ attachBranchName?: string | undefined;
34645
+ attachBranchSource?: "local" | "remote" | undefined;
33895
34646
  } | undefined;
33896
34647
  bootstrapSetupOverride?: BootstrapSetupOverride | undefined;
33897
34648
  } | {
@@ -34041,6 +34792,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
34041
34792
  type: "checkout_pr_status_request";
34042
34793
  requestId: string;
34043
34794
  remoteName?: string | undefined;
34795
+ } | {
34796
+ cwd: string;
34797
+ type: "checkout_pr_search_request";
34798
+ requestId: string;
34799
+ remoteName?: string | undefined;
34800
+ limit?: number | undefined;
34801
+ query?: string | undefined;
34044
34802
  } | {
34045
34803
  cwd: string;
34046
34804
  type: "checkout_pr_failure_logs_request";
@@ -34478,6 +35236,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34478
35236
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
34479
35237
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
34480
35238
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
35239
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34481
35240
  lastError: z.ZodOptional<z.ZodString>;
34482
35241
  title: z.ZodNullable<z.ZodString>;
34483
35242
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -34510,6 +35269,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34510
35269
  archivedAt?: string | null | undefined;
34511
35270
  effectiveThinkingOptionId?: string | null | undefined;
34512
35271
  lastUsage?: AgentUsage | undefined;
35272
+ activeTurnStartedAt?: string | null | undefined;
34513
35273
  lastError?: string | undefined;
34514
35274
  pendingPlanReview?: boolean | undefined;
34515
35275
  }, {
@@ -34536,6 +35296,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34536
35296
  archivedAt?: string | null | undefined;
34537
35297
  effectiveThinkingOptionId?: string | null | undefined;
34538
35298
  lastUsage?: AgentUsage | undefined;
35299
+ activeTurnStartedAt?: string | null | undefined;
34539
35300
  lastError?: string | undefined;
34540
35301
  pendingPlanReview?: boolean | undefined;
34541
35302
  }>;
@@ -34683,6 +35444,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34683
35444
  archivedAt?: string | null | undefined;
34684
35445
  effectiveThinkingOptionId?: string | null | undefined;
34685
35446
  lastUsage?: AgentUsage | undefined;
35447
+ activeTurnStartedAt?: string | null | undefined;
34686
35448
  lastError?: string | undefined;
34687
35449
  pendingPlanReview?: boolean | undefined;
34688
35450
  };
@@ -34738,6 +35500,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34738
35500
  archivedAt?: string | null | undefined;
34739
35501
  effectiveThinkingOptionId?: string | null | undefined;
34740
35502
  lastUsage?: AgentUsage | undefined;
35503
+ activeTurnStartedAt?: string | null | undefined;
34741
35504
  lastError?: string | undefined;
34742
35505
  pendingPlanReview?: boolean | undefined;
34743
35506
  };
@@ -34805,6 +35568,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34805
35568
  archivedAt?: string | null | undefined;
34806
35569
  effectiveThinkingOptionId?: string | null | undefined;
34807
35570
  lastUsage?: AgentUsage | undefined;
35571
+ activeTurnStartedAt?: string | null | undefined;
34808
35572
  lastError?: string | undefined;
34809
35573
  pendingPlanReview?: boolean | undefined;
34810
35574
  };
@@ -34866,6 +35630,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34866
35630
  archivedAt?: string | null | undefined;
34867
35631
  effectiveThinkingOptionId?: string | null | undefined;
34868
35632
  lastUsage?: AgentUsage | undefined;
35633
+ activeTurnStartedAt?: string | null | undefined;
34869
35634
  lastError?: string | undefined;
34870
35635
  pendingPlanReview?: boolean | undefined;
34871
35636
  };
@@ -34918,12 +35683,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34918
35683
  }>, z.ZodObject<{
34919
35684
  type: z.ZodLiteral<"turn_started">;
34920
35685
  provider: z.ZodEnum<[string, ...string[]]>;
35686
+ startedAt: z.ZodOptional<z.ZodString>;
34921
35687
  }, "strip", z.ZodTypeAny, {
34922
35688
  provider: string;
34923
35689
  type: "turn_started";
35690
+ startedAt?: string | undefined;
34924
35691
  }, {
34925
35692
  provider: string;
34926
35693
  type: "turn_started";
35694
+ startedAt?: string | undefined;
34927
35695
  }>, z.ZodObject<{
34928
35696
  type: z.ZodLiteral<"turn_completed">;
34929
35697
  provider: z.ZodEnum<[string, ...string[]]>;
@@ -35092,6 +35860,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35092
35860
  } | {
35093
35861
  provider: string;
35094
35862
  type: "turn_started";
35863
+ startedAt?: string | undefined;
35095
35864
  } | {
35096
35865
  provider: string;
35097
35866
  type: "turn_completed";
@@ -35147,6 +35916,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35147
35916
  } | {
35148
35917
  provider: string;
35149
35918
  type: "turn_started";
35919
+ startedAt?: string | undefined;
35150
35920
  } | {
35151
35921
  provider: string;
35152
35922
  type: "turn_completed";
@@ -35205,6 +35975,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35205
35975
  } | {
35206
35976
  provider: string;
35207
35977
  type: "turn_started";
35978
+ startedAt?: string | undefined;
35208
35979
  } | {
35209
35980
  provider: string;
35210
35981
  type: "turn_completed";
@@ -35263,6 +36034,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35263
36034
  } | {
35264
36035
  provider: string;
35265
36036
  type: "turn_started";
36037
+ startedAt?: string | undefined;
35266
36038
  } | {
35267
36039
  provider: string;
35268
36040
  type: "turn_completed";
@@ -35332,6 +36104,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35332
36104
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
35333
36105
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
35334
36106
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
36107
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35335
36108
  lastError: z.ZodOptional<z.ZodString>;
35336
36109
  title: z.ZodNullable<z.ZodString>;
35337
36110
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -35364,6 +36137,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35364
36137
  archivedAt?: string | null | undefined;
35365
36138
  effectiveThinkingOptionId?: string | null | undefined;
35366
36139
  lastUsage?: AgentUsage | undefined;
36140
+ activeTurnStartedAt?: string | null | undefined;
35367
36141
  lastError?: string | undefined;
35368
36142
  pendingPlanReview?: boolean | undefined;
35369
36143
  }, {
@@ -35390,6 +36164,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35390
36164
  archivedAt?: string | null | undefined;
35391
36165
  effectiveThinkingOptionId?: string | null | undefined;
35392
36166
  lastUsage?: AgentUsage | undefined;
36167
+ activeTurnStartedAt?: string | null | undefined;
35393
36168
  lastError?: string | undefined;
35394
36169
  pendingPlanReview?: boolean | undefined;
35395
36170
  }>;
@@ -35420,6 +36195,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35420
36195
  archivedAt?: string | null | undefined;
35421
36196
  effectiveThinkingOptionId?: string | null | undefined;
35422
36197
  lastUsage?: AgentUsage | undefined;
36198
+ activeTurnStartedAt?: string | null | undefined;
35423
36199
  lastError?: string | undefined;
35424
36200
  pendingPlanReview?: boolean | undefined;
35425
36201
  };
@@ -35450,6 +36226,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35450
36226
  archivedAt?: string | null | undefined;
35451
36227
  effectiveThinkingOptionId?: string | null | undefined;
35452
36228
  lastUsage?: AgentUsage | undefined;
36229
+ activeTurnStartedAt?: string | null | undefined;
35453
36230
  lastError?: string | undefined;
35454
36231
  pendingPlanReview?: boolean | undefined;
35455
36232
  };
@@ -35483,6 +36260,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35483
36260
  archivedAt?: string | null | undefined;
35484
36261
  effectiveThinkingOptionId?: string | null | undefined;
35485
36262
  lastUsage?: AgentUsage | undefined;
36263
+ activeTurnStartedAt?: string | null | undefined;
35486
36264
  lastError?: string | undefined;
35487
36265
  pendingPlanReview?: boolean | undefined;
35488
36266
  };
@@ -35516,6 +36294,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35516
36294
  archivedAt?: string | null | undefined;
35517
36295
  effectiveThinkingOptionId?: string | null | undefined;
35518
36296
  lastUsage?: AgentUsage | undefined;
36297
+ activeTurnStartedAt?: string | null | undefined;
35519
36298
  lastError?: string | undefined;
35520
36299
  pendingPlanReview?: boolean | undefined;
35521
36300
  };
@@ -35544,6 +36323,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35544
36323
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
35545
36324
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
35546
36325
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
36326
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35547
36327
  lastError: z.ZodOptional<z.ZodString>;
35548
36328
  title: z.ZodNullable<z.ZodString>;
35549
36329
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -35576,6 +36356,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35576
36356
  archivedAt?: string | null | undefined;
35577
36357
  effectiveThinkingOptionId?: string | null | undefined;
35578
36358
  lastUsage?: AgentUsage | undefined;
36359
+ activeTurnStartedAt?: string | null | undefined;
35579
36360
  lastError?: string | undefined;
35580
36361
  pendingPlanReview?: boolean | undefined;
35581
36362
  }, {
@@ -35602,6 +36383,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35602
36383
  archivedAt?: string | null | undefined;
35603
36384
  effectiveThinkingOptionId?: string | null | undefined;
35604
36385
  lastUsage?: AgentUsage | undefined;
36386
+ activeTurnStartedAt?: string | null | undefined;
35605
36387
  lastError?: string | undefined;
35606
36388
  pendingPlanReview?: boolean | undefined;
35607
36389
  }>;
@@ -35748,6 +36530,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35748
36530
  archivedAt?: string | null | undefined;
35749
36531
  effectiveThinkingOptionId?: string | null | undefined;
35750
36532
  lastUsage?: AgentUsage | undefined;
36533
+ activeTurnStartedAt?: string | null | undefined;
35751
36534
  lastError?: string | undefined;
35752
36535
  pendingPlanReview?: boolean | undefined;
35753
36536
  };
@@ -35802,6 +36585,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35802
36585
  archivedAt?: string | null | undefined;
35803
36586
  effectiveThinkingOptionId?: string | null | undefined;
35804
36587
  lastUsage?: AgentUsage | undefined;
36588
+ activeTurnStartedAt?: string | null | undefined;
35805
36589
  lastError?: string | undefined;
35806
36590
  pendingPlanReview?: boolean | undefined;
35807
36591
  };
@@ -35871,6 +36655,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35871
36655
  archivedAt?: string | null | undefined;
35872
36656
  effectiveThinkingOptionId?: string | null | undefined;
35873
36657
  lastUsage?: AgentUsage | undefined;
36658
+ activeTurnStartedAt?: string | null | undefined;
35874
36659
  lastError?: string | undefined;
35875
36660
  pendingPlanReview?: boolean | undefined;
35876
36661
  };
@@ -35934,6 +36719,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35934
36719
  archivedAt?: string | null | undefined;
35935
36720
  effectiveThinkingOptionId?: string | null | undefined;
35936
36721
  lastUsage?: AgentUsage | undefined;
36722
+ activeTurnStartedAt?: string | null | undefined;
35937
36723
  lastError?: string | undefined;
35938
36724
  pendingPlanReview?: boolean | undefined;
35939
36725
  };
@@ -36000,6 +36786,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36000
36786
  archivedAt?: string | null | undefined;
36001
36787
  effectiveThinkingOptionId?: string | null | undefined;
36002
36788
  lastUsage?: AgentUsage | undefined;
36789
+ activeTurnStartedAt?: string | null | undefined;
36003
36790
  lastError?: string | undefined;
36004
36791
  pendingPlanReview?: boolean | undefined;
36005
36792
  };
@@ -36066,6 +36853,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36066
36853
  archivedAt?: string | null | undefined;
36067
36854
  effectiveThinkingOptionId?: string | null | undefined;
36068
36855
  lastUsage?: AgentUsage | undefined;
36856
+ activeTurnStartedAt?: string | null | undefined;
36069
36857
  lastError?: string | undefined;
36070
36858
  pendingPlanReview?: boolean | undefined;
36071
36859
  };
@@ -36126,6 +36914,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36126
36914
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
36127
36915
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
36128
36916
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
36917
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36129
36918
  lastError: z.ZodOptional<z.ZodString>;
36130
36919
  title: z.ZodNullable<z.ZodString>;
36131
36920
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -36158,6 +36947,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36158
36947
  archivedAt?: string | null | undefined;
36159
36948
  effectiveThinkingOptionId?: string | null | undefined;
36160
36949
  lastUsage?: AgentUsage | undefined;
36950
+ activeTurnStartedAt?: string | null | undefined;
36161
36951
  lastError?: string | undefined;
36162
36952
  pendingPlanReview?: boolean | undefined;
36163
36953
  }, {
@@ -36184,6 +36974,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36184
36974
  archivedAt?: string | null | undefined;
36185
36975
  effectiveThinkingOptionId?: string | null | undefined;
36186
36976
  lastUsage?: AgentUsage | undefined;
36977
+ activeTurnStartedAt?: string | null | undefined;
36187
36978
  lastError?: string | undefined;
36188
36979
  pendingPlanReview?: boolean | undefined;
36189
36980
  }>>;
@@ -36333,6 +37124,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36333
37124
  archivedAt?: string | null | undefined;
36334
37125
  effectiveThinkingOptionId?: string | null | undefined;
36335
37126
  lastUsage?: AgentUsage | undefined;
37127
+ activeTurnStartedAt?: string | null | undefined;
36336
37128
  lastError?: string | undefined;
36337
37129
  pendingPlanReview?: boolean | undefined;
36338
37130
  } | null;
@@ -36389,6 +37181,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36389
37181
  archivedAt?: string | null | undefined;
36390
37182
  effectiveThinkingOptionId?: string | null | undefined;
36391
37183
  lastUsage?: AgentUsage | undefined;
37184
+ activeTurnStartedAt?: string | null | undefined;
36392
37185
  lastError?: string | undefined;
36393
37186
  pendingPlanReview?: boolean | undefined;
36394
37187
  } | null;
@@ -36448,6 +37241,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36448
37241
  archivedAt?: string | null | undefined;
36449
37242
  effectiveThinkingOptionId?: string | null | undefined;
36450
37243
  lastUsage?: AgentUsage | undefined;
37244
+ activeTurnStartedAt?: string | null | undefined;
36451
37245
  lastError?: string | undefined;
36452
37246
  pendingPlanReview?: boolean | undefined;
36453
37247
  } | null;
@@ -36507,6 +37301,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36507
37301
  archivedAt?: string | null | undefined;
36508
37302
  effectiveThinkingOptionId?: string | null | undefined;
36509
37303
  lastUsage?: AgentUsage | undefined;
37304
+ activeTurnStartedAt?: string | null | undefined;
36510
37305
  lastError?: string | undefined;
36511
37306
  pendingPlanReview?: boolean | undefined;
36512
37307
  } | null;
@@ -37006,6 +37801,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37006
37801
  persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, z.ZodTypeDef, AgentPersistenceHandle | null>>;
37007
37802
  runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, z.ZodTypeDef, AgentRuntimeInfo>>;
37008
37803
  lastUsage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
37804
+ activeTurnStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37009
37805
  lastError: z.ZodOptional<z.ZodString>;
37010
37806
  title: z.ZodNullable<z.ZodString>;
37011
37807
  labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -37038,6 +37834,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37038
37834
  archivedAt?: string | null | undefined;
37039
37835
  effectiveThinkingOptionId?: string | null | undefined;
37040
37836
  lastUsage?: AgentUsage | undefined;
37837
+ activeTurnStartedAt?: string | null | undefined;
37041
37838
  lastError?: string | undefined;
37042
37839
  pendingPlanReview?: boolean | undefined;
37043
37840
  }, {
@@ -37064,6 +37861,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37064
37861
  archivedAt?: string | null | undefined;
37065
37862
  effectiveThinkingOptionId?: string | null | undefined;
37066
37863
  lastUsage?: AgentUsage | undefined;
37864
+ activeTurnStartedAt?: string | null | undefined;
37067
37865
  lastError?: string | undefined;
37068
37866
  pendingPlanReview?: boolean | undefined;
37069
37867
  }>>;
@@ -37097,6 +37895,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37097
37895
  archivedAt?: string | null | undefined;
37098
37896
  effectiveThinkingOptionId?: string | null | undefined;
37099
37897
  lastUsage?: AgentUsage | undefined;
37898
+ activeTurnStartedAt?: string | null | undefined;
37100
37899
  lastError?: string | undefined;
37101
37900
  pendingPlanReview?: boolean | undefined;
37102
37901
  } | null;
@@ -37129,6 +37928,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37129
37928
  archivedAt?: string | null | undefined;
37130
37929
  effectiveThinkingOptionId?: string | null | undefined;
37131
37930
  lastUsage?: AgentUsage | undefined;
37931
+ activeTurnStartedAt?: string | null | undefined;
37132
37932
  lastError?: string | undefined;
37133
37933
  pendingPlanReview?: boolean | undefined;
37134
37934
  } | null;
@@ -37164,6 +37964,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37164
37964
  archivedAt?: string | null | undefined;
37165
37965
  effectiveThinkingOptionId?: string | null | undefined;
37166
37966
  lastUsage?: AgentUsage | undefined;
37967
+ activeTurnStartedAt?: string | null | undefined;
37167
37968
  lastError?: string | undefined;
37168
37969
  pendingPlanReview?: boolean | undefined;
37169
37970
  } | null;
@@ -37199,6 +38000,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
37199
38000
  archivedAt?: string | null | undefined;
37200
38001
  effectiveThinkingOptionId?: string | null | undefined;
37201
38002
  lastUsage?: AgentUsage | undefined;
38003
+ activeTurnStartedAt?: string | null | undefined;
37202
38004
  lastError?: string | undefined;
37203
38005
  pendingPlanReview?: boolean | undefined;
37204
38006
  } | null;
@@ -38637,6 +39439,129 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
38637
39439
  requestId: string;
38638
39440
  githubFeaturesEnabled: boolean;
38639
39441
  };
39442
+ }>, z.ZodObject<{
39443
+ type: z.ZodLiteral<"checkout_pr_search_response">;
39444
+ payload: z.ZodObject<{
39445
+ cwd: z.ZodString;
39446
+ pullRequests: z.ZodArray<z.ZodObject<{
39447
+ number: z.ZodNumber;
39448
+ title: z.ZodString;
39449
+ authorLogin: z.ZodNullable<z.ZodString>;
39450
+ url: z.ZodString;
39451
+ headRefName: z.ZodString;
39452
+ baseRefName: z.ZodString;
39453
+ isDraft: z.ZodBoolean;
39454
+ state: z.ZodEnum<["open", "closed", "merged"]>;
39455
+ }, "strip", z.ZodTypeAny, {
39456
+ number: number;
39457
+ title: string;
39458
+ url: string;
39459
+ state: "closed" | "open" | "merged";
39460
+ baseRefName: string;
39461
+ headRefName: string;
39462
+ authorLogin: string | null;
39463
+ isDraft: boolean;
39464
+ }, {
39465
+ number: number;
39466
+ title: string;
39467
+ url: string;
39468
+ state: "closed" | "open" | "merged";
39469
+ baseRefName: string;
39470
+ headRefName: string;
39471
+ authorLogin: string | null;
39472
+ isDraft: boolean;
39473
+ }>, "many">;
39474
+ githubFeaturesEnabled: z.ZodBoolean;
39475
+ error: z.ZodNullable<z.ZodObject<{
39476
+ code: z.ZodEnum<["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]>;
39477
+ message: z.ZodString;
39478
+ }, "strip", z.ZodTypeAny, {
39479
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
39480
+ message: string;
39481
+ }, {
39482
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
39483
+ message: string;
39484
+ }>>;
39485
+ requestId: z.ZodString;
39486
+ }, "strip", z.ZodTypeAny, {
39487
+ error: {
39488
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
39489
+ message: string;
39490
+ } | null;
39491
+ cwd: string;
39492
+ requestId: string;
39493
+ githubFeaturesEnabled: boolean;
39494
+ pullRequests: {
39495
+ number: number;
39496
+ title: string;
39497
+ url: string;
39498
+ state: "closed" | "open" | "merged";
39499
+ baseRefName: string;
39500
+ headRefName: string;
39501
+ authorLogin: string | null;
39502
+ isDraft: boolean;
39503
+ }[];
39504
+ }, {
39505
+ error: {
39506
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
39507
+ message: string;
39508
+ } | null;
39509
+ cwd: string;
39510
+ requestId: string;
39511
+ githubFeaturesEnabled: boolean;
39512
+ pullRequests: {
39513
+ number: number;
39514
+ title: string;
39515
+ url: string;
39516
+ state: "closed" | "open" | "merged";
39517
+ baseRefName: string;
39518
+ headRefName: string;
39519
+ authorLogin: string | null;
39520
+ isDraft: boolean;
39521
+ }[];
39522
+ }>;
39523
+ }, "strip", z.ZodTypeAny, {
39524
+ type: "checkout_pr_search_response";
39525
+ payload: {
39526
+ error: {
39527
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
39528
+ message: string;
39529
+ } | null;
39530
+ cwd: string;
39531
+ requestId: string;
39532
+ githubFeaturesEnabled: boolean;
39533
+ pullRequests: {
39534
+ number: number;
39535
+ title: string;
39536
+ url: string;
39537
+ state: "closed" | "open" | "merged";
39538
+ baseRefName: string;
39539
+ headRefName: string;
39540
+ authorLogin: string | null;
39541
+ isDraft: boolean;
39542
+ }[];
39543
+ };
39544
+ }, {
39545
+ type: "checkout_pr_search_response";
39546
+ payload: {
39547
+ error: {
39548
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
39549
+ message: string;
39550
+ } | null;
39551
+ cwd: string;
39552
+ requestId: string;
39553
+ githubFeaturesEnabled: boolean;
39554
+ pullRequests: {
39555
+ number: number;
39556
+ title: string;
39557
+ url: string;
39558
+ state: "closed" | "open" | "merged";
39559
+ baseRefName: string;
39560
+ headRefName: string;
39561
+ authorLogin: string | null;
39562
+ isDraft: boolean;
39563
+ }[];
39564
+ };
38640
39565
  }>, z.ZodObject<{
38641
39566
  type: z.ZodLiteral<"checkout_pr_failure_logs_response">;
38642
39567
  payload: z.ZodObject<{
@@ -41390,6 +42315,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41390
42315
  archivedAt?: string | null | undefined;
41391
42316
  effectiveThinkingOptionId?: string | null | undefined;
41392
42317
  lastUsage?: AgentUsage | undefined;
42318
+ activeTurnStartedAt?: string | null | undefined;
41393
42319
  lastError?: string | undefined;
41394
42320
  pendingPlanReview?: boolean | undefined;
41395
42321
  };
@@ -41435,6 +42361,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41435
42361
  } | {
41436
42362
  provider: string;
41437
42363
  type: "turn_started";
42364
+ startedAt?: string | undefined;
41438
42365
  } | {
41439
42366
  provider: string;
41440
42367
  type: "turn_completed";
@@ -41510,6 +42437,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41510
42437
  archivedAt?: string | null | undefined;
41511
42438
  effectiveThinkingOptionId?: string | null | undefined;
41512
42439
  lastUsage?: AgentUsage | undefined;
42440
+ activeTurnStartedAt?: string | null | undefined;
41513
42441
  lastError?: string | undefined;
41514
42442
  pendingPlanReview?: boolean | undefined;
41515
42443
  };
@@ -41542,6 +42470,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41542
42470
  archivedAt?: string | null | undefined;
41543
42471
  effectiveThinkingOptionId?: string | null | undefined;
41544
42472
  lastUsage?: AgentUsage | undefined;
42473
+ activeTurnStartedAt?: string | null | undefined;
41545
42474
  lastError?: string | undefined;
41546
42475
  pendingPlanReview?: boolean | undefined;
41547
42476
  };
@@ -41609,6 +42538,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41609
42538
  archivedAt?: string | null | undefined;
41610
42539
  effectiveThinkingOptionId?: string | null | undefined;
41611
42540
  lastUsage?: AgentUsage | undefined;
42541
+ activeTurnStartedAt?: string | null | undefined;
41612
42542
  lastError?: string | undefined;
41613
42543
  pendingPlanReview?: boolean | undefined;
41614
42544
  } | null;
@@ -41717,6 +42647,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41717
42647
  archivedAt?: string | null | undefined;
41718
42648
  effectiveThinkingOptionId?: string | null | undefined;
41719
42649
  lastUsage?: AgentUsage | undefined;
42650
+ activeTurnStartedAt?: string | null | undefined;
41720
42651
  lastError?: string | undefined;
41721
42652
  pendingPlanReview?: boolean | undefined;
41722
42653
  } | null;
@@ -41969,6 +42900,27 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
41969
42900
  requestId: string;
41970
42901
  githubFeaturesEnabled: boolean;
41971
42902
  };
42903
+ } | {
42904
+ type: "checkout_pr_search_response";
42905
+ payload: {
42906
+ error: {
42907
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
42908
+ message: string;
42909
+ } | null;
42910
+ cwd: string;
42911
+ requestId: string;
42912
+ githubFeaturesEnabled: boolean;
42913
+ pullRequests: {
42914
+ number: number;
42915
+ title: string;
42916
+ url: string;
42917
+ state: "closed" | "open" | "merged";
42918
+ baseRefName: string;
42919
+ headRefName: string;
42920
+ authorLogin: string | null;
42921
+ isDraft: boolean;
42922
+ }[];
42923
+ };
41972
42924
  } | {
41973
42925
  type: "checkout_pr_failure_logs_response";
41974
42926
  payload: {
@@ -42553,6 +43505,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
42553
43505
  archivedAt?: string | null | undefined;
42554
43506
  effectiveThinkingOptionId?: string | null | undefined;
42555
43507
  lastUsage?: AgentUsage | undefined;
43508
+ activeTurnStartedAt?: string | null | undefined;
42556
43509
  lastError?: string | undefined;
42557
43510
  pendingPlanReview?: boolean | undefined;
42558
43511
  };
@@ -42598,6 +43551,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
42598
43551
  } | {
42599
43552
  provider: string;
42600
43553
  type: "turn_started";
43554
+ startedAt?: string | undefined;
42601
43555
  } | {
42602
43556
  provider: string;
42603
43557
  type: "turn_completed";
@@ -42673,6 +43627,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
42673
43627
  archivedAt?: string | null | undefined;
42674
43628
  effectiveThinkingOptionId?: string | null | undefined;
42675
43629
  lastUsage?: AgentUsage | undefined;
43630
+ activeTurnStartedAt?: string | null | undefined;
42676
43631
  lastError?: string | undefined;
42677
43632
  pendingPlanReview?: boolean | undefined;
42678
43633
  };
@@ -42705,6 +43660,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
42705
43660
  archivedAt?: string | null | undefined;
42706
43661
  effectiveThinkingOptionId?: string | null | undefined;
42707
43662
  lastUsage?: AgentUsage | undefined;
43663
+ activeTurnStartedAt?: string | null | undefined;
42708
43664
  lastError?: string | undefined;
42709
43665
  pendingPlanReview?: boolean | undefined;
42710
43666
  };
@@ -42772,6 +43728,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
42772
43728
  archivedAt?: string | null | undefined;
42773
43729
  effectiveThinkingOptionId?: string | null | undefined;
42774
43730
  lastUsage?: AgentUsage | undefined;
43731
+ activeTurnStartedAt?: string | null | undefined;
42775
43732
  lastError?: string | undefined;
42776
43733
  pendingPlanReview?: boolean | undefined;
42777
43734
  } | null;
@@ -42880,6 +43837,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
42880
43837
  archivedAt?: string | null | undefined;
42881
43838
  effectiveThinkingOptionId?: string | null | undefined;
42882
43839
  lastUsage?: AgentUsage | undefined;
43840
+ activeTurnStartedAt?: string | null | undefined;
42883
43841
  lastError?: string | undefined;
42884
43842
  pendingPlanReview?: boolean | undefined;
42885
43843
  } | null;
@@ -43132,6 +44090,27 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
43132
44090
  requestId: string;
43133
44091
  githubFeaturesEnabled: boolean;
43134
44092
  };
44093
+ } | {
44094
+ type: "checkout_pr_search_response";
44095
+ payload: {
44096
+ error: {
44097
+ code: "NOT_GIT_REPO" | "NOT_ALLOWED" | "MERGE_CONFLICT" | "UNKNOWN";
44098
+ message: string;
44099
+ } | null;
44100
+ cwd: string;
44101
+ requestId: string;
44102
+ githubFeaturesEnabled: boolean;
44103
+ pullRequests: {
44104
+ number: number;
44105
+ title: string;
44106
+ url: string;
44107
+ state: "closed" | "open" | "merged";
44108
+ baseRefName: string;
44109
+ headRefName: string;
44110
+ authorLogin: string | null;
44111
+ isDraft: boolean;
44112
+ }[];
44113
+ };
43135
44114
  } | {
43136
44115
  type: "checkout_pr_failure_logs_response";
43137
44116
  payload: {