@otto-code/protocol 0.6.6 → 0.6.7

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.
@@ -178,6 +178,7 @@ export declare const MutableDaemonConfigSchema: z.ZodObject<{
178
178
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
179
179
  }, z.core.$loose>>;
180
180
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
181
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
181
182
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
182
183
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
183
184
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -329,6 +330,7 @@ export declare const MutableDaemonConfigPatchSchema: z.ZodObject<{
329
330
  preferWriterPersonalities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
330
331
  }, z.core.$loose>>>;
331
332
  autoArchiveAfterMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
333
+ hideMergeIntoBaseAction: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
332
334
  enableTerminalAgentHooks: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
333
335
  appendSystemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
334
336
  terminalProfiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1405,6 +1407,7 @@ export declare const SetDaemonConfigRequestMessageSchema: z.ZodObject<{
1405
1407
  preferWriterPersonalities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1406
1408
  }, z.core.$loose>>>;
1407
1409
  autoArchiveAfterMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1410
+ hideMergeIntoBaseAction: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1408
1411
  enableTerminalAgentHooks: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1409
1412
  appendSystemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1410
1413
  terminalProfiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1520,6 +1523,20 @@ export declare const SpeechTtsPreviewRequestSchema: z.ZodObject<{
1520
1523
  name: z.ZodString;
1521
1524
  }, z.core.$loose>>;
1522
1525
  }, z.core.$strip>;
1526
+ export declare const SpeechTtsSpeakRequestSchema: z.ZodObject<{
1527
+ type: z.ZodLiteral<"speech.tts.speak.request">;
1528
+ requestId: z.ZodString;
1529
+ text: z.ZodString;
1530
+ voice: z.ZodOptional<z.ZodObject<{
1531
+ provider: z.ZodOptional<z.ZodString>;
1532
+ model: z.ZodOptional<z.ZodString>;
1533
+ name: z.ZodString;
1534
+ }, z.core.$loose>>;
1535
+ }, z.core.$strip>;
1536
+ export declare const SpeechTtsSpeakCancelRequestSchema: z.ZodObject<{
1537
+ type: z.ZodLiteral<"speech.tts.speak.cancel.request">;
1538
+ requestId: z.ZodString;
1539
+ }, z.core.$strip>;
1523
1540
  export declare const VisualizerVoiceCuesGenerateRequestSchema: z.ZodObject<{
1524
1541
  type: z.ZodLiteral<"visualizer.voiceCues.generate.request">;
1525
1542
  requestId: z.ZodString;
@@ -3251,7 +3268,11 @@ export declare const RunsGetSnapshotResponseSchema: z.ZodObject<{
3251
3268
  runs: z.ZodArray<z.ZodObject<{
3252
3269
  id: z.ZodString;
3253
3270
  title: z.ZodString;
3271
+ description: z.ZodOptional<z.ZodString>;
3254
3272
  status: z.ZodString;
3273
+ kind: z.ZodOptional<z.ZodString>;
3274
+ graphId: z.ZodOptional<z.ZodString>;
3275
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3255
3276
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3256
3277
  autopilot: z.ZodOptional<z.ZodBoolean>;
3257
3278
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3304,7 +3325,11 @@ export declare const RunsUpdatedNotificationSchema: z.ZodObject<{
3304
3325
  run: z.ZodObject<{
3305
3326
  id: z.ZodString;
3306
3327
  title: z.ZodString;
3328
+ description: z.ZodOptional<z.ZodString>;
3307
3329
  status: z.ZodString;
3330
+ kind: z.ZodOptional<z.ZodString>;
3331
+ graphId: z.ZodOptional<z.ZodString>;
3332
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3308
3333
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3309
3334
  autopilot: z.ZodOptional<z.ZodBoolean>;
3310
3335
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3396,6 +3421,254 @@ export declare const RunsClearedNotificationSchema: z.ZodObject<{
3396
3421
  runIds: z.ZodArray<z.ZodString>;
3397
3422
  }, z.core.$strip>;
3398
3423
  }, z.core.$strip>;
3424
+ export declare const RunsGraphsListRequestSchema: z.ZodObject<{
3425
+ type: z.ZodLiteral<"runs.graphs.list.request">;
3426
+ requestId: z.ZodString;
3427
+ }, z.core.$strip>;
3428
+ export declare const RunsGraphsListResponseSchema: z.ZodObject<{
3429
+ type: z.ZodLiteral<"runs.graphs.list.response">;
3430
+ payload: z.ZodObject<{
3431
+ graphs: z.ZodArray<z.ZodObject<{
3432
+ id: z.ZodString;
3433
+ name: z.ZodString;
3434
+ description: z.ZodOptional<z.ZodString>;
3435
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3436
+ key: z.ZodString;
3437
+ label: z.ZodString;
3438
+ description: z.ZodOptional<z.ZodString>;
3439
+ multiline: z.ZodOptional<z.ZodBoolean>;
3440
+ required: z.ZodOptional<z.ZodBoolean>;
3441
+ defaultValue: z.ZodOptional<z.ZodString>;
3442
+ }, z.core.$loose>>>;
3443
+ nodes: z.ZodArray<z.ZodObject<{
3444
+ id: z.ZodString;
3445
+ kind: z.ZodString;
3446
+ title: z.ZodString;
3447
+ role: z.ZodOptional<z.ZodString>;
3448
+ prompt: z.ZodOptional<z.ZodString>;
3449
+ promptFromInput: z.ZodOptional<z.ZodString>;
3450
+ autonomous: z.ZodOptional<z.ZodBoolean>;
3451
+ loop: z.ZodOptional<z.ZodObject<{
3452
+ times: z.ZodOptional<z.ZodNumber>;
3453
+ until: z.ZodOptional<z.ZodObject<{
3454
+ criteria: z.ZodArray<z.ZodString>;
3455
+ judgeRole: z.ZodOptional<z.ZodString>;
3456
+ max: z.ZodNumber;
3457
+ }, z.core.$loose>>;
3458
+ }, z.core.$loose>>;
3459
+ model: z.ZodOptional<z.ZodString>;
3460
+ position: z.ZodOptional<z.ZodObject<{
3461
+ x: z.ZodNumber;
3462
+ y: z.ZodNumber;
3463
+ }, z.core.$loose>>;
3464
+ }, z.core.$loose>>;
3465
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3466
+ id: z.ZodOptional<z.ZodString>;
3467
+ from: z.ZodString;
3468
+ to: z.ZodString;
3469
+ }, z.core.$loose>>>;
3470
+ builtIn: z.ZodOptional<z.ZodBoolean>;
3471
+ createdAt: z.ZodOptional<z.ZodString>;
3472
+ updatedAt: z.ZodOptional<z.ZodString>;
3473
+ }, z.core.$loose>>;
3474
+ requestId: z.ZodString;
3475
+ }, z.core.$strip>;
3476
+ }, z.core.$strip>;
3477
+ export declare const RunsGraphsSaveRequestSchema: z.ZodObject<{
3478
+ type: z.ZodLiteral<"runs.graphs.save.request">;
3479
+ graph: z.ZodObject<{
3480
+ id: z.ZodString;
3481
+ name: z.ZodString;
3482
+ description: z.ZodOptional<z.ZodString>;
3483
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3484
+ key: z.ZodString;
3485
+ label: z.ZodString;
3486
+ description: z.ZodOptional<z.ZodString>;
3487
+ multiline: z.ZodOptional<z.ZodBoolean>;
3488
+ required: z.ZodOptional<z.ZodBoolean>;
3489
+ defaultValue: z.ZodOptional<z.ZodString>;
3490
+ }, z.core.$loose>>>;
3491
+ nodes: z.ZodArray<z.ZodObject<{
3492
+ id: z.ZodString;
3493
+ kind: z.ZodString;
3494
+ title: z.ZodString;
3495
+ role: z.ZodOptional<z.ZodString>;
3496
+ prompt: z.ZodOptional<z.ZodString>;
3497
+ promptFromInput: z.ZodOptional<z.ZodString>;
3498
+ autonomous: z.ZodOptional<z.ZodBoolean>;
3499
+ loop: z.ZodOptional<z.ZodObject<{
3500
+ times: z.ZodOptional<z.ZodNumber>;
3501
+ until: z.ZodOptional<z.ZodObject<{
3502
+ criteria: z.ZodArray<z.ZodString>;
3503
+ judgeRole: z.ZodOptional<z.ZodString>;
3504
+ max: z.ZodNumber;
3505
+ }, z.core.$loose>>;
3506
+ }, z.core.$loose>>;
3507
+ model: z.ZodOptional<z.ZodString>;
3508
+ position: z.ZodOptional<z.ZodObject<{
3509
+ x: z.ZodNumber;
3510
+ y: z.ZodNumber;
3511
+ }, z.core.$loose>>;
3512
+ }, z.core.$loose>>;
3513
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3514
+ id: z.ZodOptional<z.ZodString>;
3515
+ from: z.ZodString;
3516
+ to: z.ZodString;
3517
+ }, z.core.$loose>>>;
3518
+ builtIn: z.ZodOptional<z.ZodBoolean>;
3519
+ createdAt: z.ZodOptional<z.ZodString>;
3520
+ updatedAt: z.ZodOptional<z.ZodString>;
3521
+ }, z.core.$loose>;
3522
+ requestId: z.ZodString;
3523
+ }, z.core.$strip>;
3524
+ export declare const RunsGraphsSaveResponseSchema: z.ZodObject<{
3525
+ type: z.ZodLiteral<"runs.graphs.save.response">;
3526
+ payload: z.ZodObject<{
3527
+ graph: z.ZodOptional<z.ZodObject<{
3528
+ id: z.ZodString;
3529
+ name: z.ZodString;
3530
+ description: z.ZodOptional<z.ZodString>;
3531
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3532
+ key: z.ZodString;
3533
+ label: z.ZodString;
3534
+ description: z.ZodOptional<z.ZodString>;
3535
+ multiline: z.ZodOptional<z.ZodBoolean>;
3536
+ required: z.ZodOptional<z.ZodBoolean>;
3537
+ defaultValue: z.ZodOptional<z.ZodString>;
3538
+ }, z.core.$loose>>>;
3539
+ nodes: z.ZodArray<z.ZodObject<{
3540
+ id: z.ZodString;
3541
+ kind: z.ZodString;
3542
+ title: z.ZodString;
3543
+ role: z.ZodOptional<z.ZodString>;
3544
+ prompt: z.ZodOptional<z.ZodString>;
3545
+ promptFromInput: z.ZodOptional<z.ZodString>;
3546
+ autonomous: z.ZodOptional<z.ZodBoolean>;
3547
+ loop: z.ZodOptional<z.ZodObject<{
3548
+ times: z.ZodOptional<z.ZodNumber>;
3549
+ until: z.ZodOptional<z.ZodObject<{
3550
+ criteria: z.ZodArray<z.ZodString>;
3551
+ judgeRole: z.ZodOptional<z.ZodString>;
3552
+ max: z.ZodNumber;
3553
+ }, z.core.$loose>>;
3554
+ }, z.core.$loose>>;
3555
+ model: z.ZodOptional<z.ZodString>;
3556
+ position: z.ZodOptional<z.ZodObject<{
3557
+ x: z.ZodNumber;
3558
+ y: z.ZodNumber;
3559
+ }, z.core.$loose>>;
3560
+ }, z.core.$loose>>;
3561
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3562
+ id: z.ZodOptional<z.ZodString>;
3563
+ from: z.ZodString;
3564
+ to: z.ZodString;
3565
+ }, z.core.$loose>>>;
3566
+ builtIn: z.ZodOptional<z.ZodBoolean>;
3567
+ createdAt: z.ZodOptional<z.ZodString>;
3568
+ updatedAt: z.ZodOptional<z.ZodString>;
3569
+ }, z.core.$loose>>;
3570
+ error: z.ZodOptional<z.ZodString>;
3571
+ requestId: z.ZodString;
3572
+ }, z.core.$strip>;
3573
+ }, z.core.$strip>;
3574
+ export declare const RunsGraphsDeleteRequestSchema: z.ZodObject<{
3575
+ type: z.ZodLiteral<"runs.graphs.delete.request">;
3576
+ graphId: z.ZodString;
3577
+ requestId: z.ZodString;
3578
+ }, z.core.$strip>;
3579
+ export declare const RunsGraphsDeleteResponseSchema: z.ZodObject<{
3580
+ type: z.ZodLiteral<"runs.graphs.delete.response">;
3581
+ payload: z.ZodObject<{
3582
+ deleted: z.ZodBoolean;
3583
+ error: z.ZodOptional<z.ZodString>;
3584
+ requestId: z.ZodString;
3585
+ }, z.core.$strip>;
3586
+ }, z.core.$strip>;
3587
+ export declare const RunsGraphsChangedNotificationSchema: z.ZodObject<{
3588
+ type: z.ZodLiteral<"runs.graphs.changed.notification">;
3589
+ payload: z.ZodObject<{
3590
+ graphs: z.ZodArray<z.ZodObject<{
3591
+ id: z.ZodString;
3592
+ name: z.ZodString;
3593
+ description: z.ZodOptional<z.ZodString>;
3594
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3595
+ key: z.ZodString;
3596
+ label: z.ZodString;
3597
+ description: z.ZodOptional<z.ZodString>;
3598
+ multiline: z.ZodOptional<z.ZodBoolean>;
3599
+ required: z.ZodOptional<z.ZodBoolean>;
3600
+ defaultValue: z.ZodOptional<z.ZodString>;
3601
+ }, z.core.$loose>>>;
3602
+ nodes: z.ZodArray<z.ZodObject<{
3603
+ id: z.ZodString;
3604
+ kind: z.ZodString;
3605
+ title: z.ZodString;
3606
+ role: z.ZodOptional<z.ZodString>;
3607
+ prompt: z.ZodOptional<z.ZodString>;
3608
+ promptFromInput: z.ZodOptional<z.ZodString>;
3609
+ autonomous: z.ZodOptional<z.ZodBoolean>;
3610
+ loop: z.ZodOptional<z.ZodObject<{
3611
+ times: z.ZodOptional<z.ZodNumber>;
3612
+ until: z.ZodOptional<z.ZodObject<{
3613
+ criteria: z.ZodArray<z.ZodString>;
3614
+ judgeRole: z.ZodOptional<z.ZodString>;
3615
+ max: z.ZodNumber;
3616
+ }, z.core.$loose>>;
3617
+ }, z.core.$loose>>;
3618
+ model: z.ZodOptional<z.ZodString>;
3619
+ position: z.ZodOptional<z.ZodObject<{
3620
+ x: z.ZodNumber;
3621
+ y: z.ZodNumber;
3622
+ }, z.core.$loose>>;
3623
+ }, z.core.$loose>>;
3624
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3625
+ id: z.ZodOptional<z.ZodString>;
3626
+ from: z.ZodString;
3627
+ to: z.ZodString;
3628
+ }, z.core.$loose>>>;
3629
+ builtIn: z.ZodOptional<z.ZodBoolean>;
3630
+ createdAt: z.ZodOptional<z.ZodString>;
3631
+ updatedAt: z.ZodOptional<z.ZodString>;
3632
+ }, z.core.$loose>>;
3633
+ }, z.core.$strip>;
3634
+ }, z.core.$strip>;
3635
+ export declare const RunsStartRequestSchema: z.ZodObject<{
3636
+ type: z.ZodLiteral<"runs.start.request">;
3637
+ flavor: z.ZodString;
3638
+ cwd: z.ZodString;
3639
+ workspaceId: z.ZodOptional<z.ZodString>;
3640
+ title: z.ZodOptional<z.ZodString>;
3641
+ description: z.ZodOptional<z.ZodString>;
3642
+ orchestratorPersonalityId: z.ZodOptional<z.ZodString>;
3643
+ orchestratorProvider: z.ZodOptional<z.ZodString>;
3644
+ orchestratorModel: z.ZodOptional<z.ZodString>;
3645
+ orchestratorThinkingOptionId: z.ZodOptional<z.ZodString>;
3646
+ prompt: z.ZodOptional<z.ZodString>;
3647
+ graphId: z.ZodOptional<z.ZodString>;
3648
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3649
+ draft: z.ZodOptional<z.ZodBoolean>;
3650
+ runId: z.ZodOptional<z.ZodString>;
3651
+ requestId: z.ZodString;
3652
+ }, z.core.$strip>;
3653
+ export declare const RunsStartResponseSchema: z.ZodObject<{
3654
+ type: z.ZodLiteral<"runs.start.response">;
3655
+ payload: z.ZodObject<{
3656
+ runId: z.ZodOptional<z.ZodString>;
3657
+ agentId: z.ZodOptional<z.ZodString>;
3658
+ workspaceId: z.ZodOptional<z.ZodString>;
3659
+ error: z.ZodOptional<z.ZodString>;
3660
+ requestId: z.ZodString;
3661
+ }, z.core.$strip>;
3662
+ }, z.core.$strip>;
3663
+ export type RunsGraphsListRequest = z.infer<typeof RunsGraphsListRequestSchema>;
3664
+ export type RunsGraphsListResponse = z.infer<typeof RunsGraphsListResponseSchema>;
3665
+ export type RunsGraphsSaveRequest = z.infer<typeof RunsGraphsSaveRequestSchema>;
3666
+ export type RunsGraphsSaveResponse = z.infer<typeof RunsGraphsSaveResponseSchema>;
3667
+ export type RunsGraphsDeleteRequest = z.infer<typeof RunsGraphsDeleteRequestSchema>;
3668
+ export type RunsGraphsDeleteResponse = z.infer<typeof RunsGraphsDeleteResponseSchema>;
3669
+ export type RunsGraphsChangedNotification = z.infer<typeof RunsGraphsChangedNotificationSchema>;
3670
+ export type RunsStartRequest = z.infer<typeof RunsStartRequestSchema>;
3671
+ export type RunsStartResponse = z.infer<typeof RunsStartResponseSchema>;
3399
3672
  export type RunsGetSnapshotRequest = z.infer<typeof RunsGetSnapshotRequestSchema>;
3400
3673
  export type RunsGetSnapshotResponse = z.infer<typeof RunsGetSnapshotResponseSchema>;
3401
3674
  export type RunsUpdatedNotification = z.infer<typeof RunsUpdatedNotificationSchema>;
@@ -3974,6 +4247,15 @@ export declare const ArchiveWorkspaceRequestSchema: z.ZodObject<{
3974
4247
  type: z.ZodLiteral<"archive_workspace_request">;
3975
4248
  workspaceId: z.ZodString;
3976
4249
  requestId: z.ZodString;
4250
+ branchDisposition: z.ZodOptional<z.ZodEnum<{
4251
+ keep: "keep";
4252
+ delete: "delete";
4253
+ }>>;
4254
+ }, z.core.$strip>;
4255
+ export declare const WorkspaceArchivePreflightRequestSchema: z.ZodObject<{
4256
+ type: z.ZodLiteral<"workspace.archive.preflight.request">;
4257
+ requestId: z.ZodString;
4258
+ workspaceId: z.ZodString;
3977
4259
  }, z.core.$strip>;
3978
4260
  export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
3979
4261
  type: z.ZodLiteral<"workspace.create.request">;
@@ -4075,6 +4357,32 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
4075
4357
  worktreeSlug: z.ZodOptional<z.ZodString>;
4076
4358
  }, z.core.$strip>], "kind">;
4077
4359
  }, z.core.$strip>;
4360
+ export declare const WorktreeReattachTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4361
+ kind: z.ZodLiteral<"workspace">;
4362
+ workspaceId: z.ZodString;
4363
+ }, z.core.$strip>, z.ZodObject<{
4364
+ kind: z.ZodLiteral<"orphan">;
4365
+ worktreePath: z.ZodString;
4366
+ projectId: z.ZodOptional<z.ZodString>;
4367
+ }, z.core.$strip>], "kind">;
4368
+ export declare const WorktreeReattachRequestSchema: z.ZodObject<{
4369
+ type: z.ZodLiteral<"worktree.reattach.request">;
4370
+ requestId: z.ZodString;
4371
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4372
+ kind: z.ZodLiteral<"workspace">;
4373
+ workspaceId: z.ZodString;
4374
+ }, z.core.$strip>, z.ZodObject<{
4375
+ kind: z.ZodLiteral<"orphan">;
4376
+ worktreePath: z.ZodString;
4377
+ projectId: z.ZodOptional<z.ZodString>;
4378
+ }, z.core.$strip>], "kind">;
4379
+ }, z.core.$strip>;
4380
+ export declare const WorktreeReattachListRequestSchema: z.ZodObject<{
4381
+ type: z.ZodLiteral<"worktree.reattach.list.request">;
4382
+ requestId: z.ZodString;
4383
+ projectId: z.ZodOptional<z.ZodString>;
4384
+ cwd: z.ZodOptional<z.ZodString>;
4385
+ }, z.core.$strip>;
4078
4386
  export declare const WorkspaceClearAttentionRequestSchema: z.ZodObject<{
4079
4387
  type: z.ZodLiteral<"workspace.clear_attention.request">;
4080
4388
  workspaceId: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
@@ -4949,6 +5257,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
4949
5257
  preferWriterPersonalities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4950
5258
  }, z.core.$loose>>>;
4951
5259
  autoArchiveAfterMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5260
+ hideMergeIntoBaseAction: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4952
5261
  enableTerminalAgentHooks: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4953
5262
  appendSystemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4954
5263
  terminalProfiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -5061,6 +5370,18 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
5061
5370
  model: z.ZodOptional<z.ZodString>;
5062
5371
  name: z.ZodString;
5063
5372
  }, z.core.$loose>>;
5373
+ }, z.core.$strip>, z.ZodObject<{
5374
+ type: z.ZodLiteral<"speech.tts.speak.request">;
5375
+ requestId: z.ZodString;
5376
+ text: z.ZodString;
5377
+ voice: z.ZodOptional<z.ZodObject<{
5378
+ provider: z.ZodOptional<z.ZodString>;
5379
+ model: z.ZodOptional<z.ZodString>;
5380
+ name: z.ZodString;
5381
+ }, z.core.$loose>>;
5382
+ }, z.core.$strip>, z.ZodObject<{
5383
+ type: z.ZodLiteral<"speech.tts.speak.cancel.request">;
5384
+ requestId: z.ZodString;
5064
5385
  }, z.core.$strip>, z.ZodObject<{
5065
5386
  type: z.ZodLiteral<"visualizer.voiceCues.generate.request">;
5066
5387
  requestId: z.ZodString;
@@ -5618,6 +5939,76 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
5618
5939
  }, z.core.$strip>, z.ZodObject<{
5619
5940
  type: z.ZodLiteral<"runs.clear.request">;
5620
5941
  requestId: z.ZodString;
5942
+ }, z.core.$strip>, z.ZodObject<{
5943
+ type: z.ZodLiteral<"runs.graphs.list.request">;
5944
+ requestId: z.ZodString;
5945
+ }, z.core.$strip>, z.ZodObject<{
5946
+ type: z.ZodLiteral<"runs.graphs.save.request">;
5947
+ graph: z.ZodObject<{
5948
+ id: z.ZodString;
5949
+ name: z.ZodString;
5950
+ description: z.ZodOptional<z.ZodString>;
5951
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5952
+ key: z.ZodString;
5953
+ label: z.ZodString;
5954
+ description: z.ZodOptional<z.ZodString>;
5955
+ multiline: z.ZodOptional<z.ZodBoolean>;
5956
+ required: z.ZodOptional<z.ZodBoolean>;
5957
+ defaultValue: z.ZodOptional<z.ZodString>;
5958
+ }, z.core.$loose>>>;
5959
+ nodes: z.ZodArray<z.ZodObject<{
5960
+ id: z.ZodString;
5961
+ kind: z.ZodString;
5962
+ title: z.ZodString;
5963
+ role: z.ZodOptional<z.ZodString>;
5964
+ prompt: z.ZodOptional<z.ZodString>;
5965
+ promptFromInput: z.ZodOptional<z.ZodString>;
5966
+ autonomous: z.ZodOptional<z.ZodBoolean>;
5967
+ loop: z.ZodOptional<z.ZodObject<{
5968
+ times: z.ZodOptional<z.ZodNumber>;
5969
+ until: z.ZodOptional<z.ZodObject<{
5970
+ criteria: z.ZodArray<z.ZodString>;
5971
+ judgeRole: z.ZodOptional<z.ZodString>;
5972
+ max: z.ZodNumber;
5973
+ }, z.core.$loose>>;
5974
+ }, z.core.$loose>>;
5975
+ model: z.ZodOptional<z.ZodString>;
5976
+ position: z.ZodOptional<z.ZodObject<{
5977
+ x: z.ZodNumber;
5978
+ y: z.ZodNumber;
5979
+ }, z.core.$loose>>;
5980
+ }, z.core.$loose>>;
5981
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
5982
+ id: z.ZodOptional<z.ZodString>;
5983
+ from: z.ZodString;
5984
+ to: z.ZodString;
5985
+ }, z.core.$loose>>>;
5986
+ builtIn: z.ZodOptional<z.ZodBoolean>;
5987
+ createdAt: z.ZodOptional<z.ZodString>;
5988
+ updatedAt: z.ZodOptional<z.ZodString>;
5989
+ }, z.core.$loose>;
5990
+ requestId: z.ZodString;
5991
+ }, z.core.$strip>, z.ZodObject<{
5992
+ type: z.ZodLiteral<"runs.graphs.delete.request">;
5993
+ graphId: z.ZodString;
5994
+ requestId: z.ZodString;
5995
+ }, z.core.$strip>, z.ZodObject<{
5996
+ type: z.ZodLiteral<"runs.start.request">;
5997
+ flavor: z.ZodString;
5998
+ cwd: z.ZodString;
5999
+ workspaceId: z.ZodOptional<z.ZodString>;
6000
+ title: z.ZodOptional<z.ZodString>;
6001
+ description: z.ZodOptional<z.ZodString>;
6002
+ orchestratorPersonalityId: z.ZodOptional<z.ZodString>;
6003
+ orchestratorProvider: z.ZodOptional<z.ZodString>;
6004
+ orchestratorModel: z.ZodOptional<z.ZodString>;
6005
+ orchestratorThinkingOptionId: z.ZodOptional<z.ZodString>;
6006
+ prompt: z.ZodOptional<z.ZodString>;
6007
+ graphId: z.ZodOptional<z.ZodString>;
6008
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6009
+ draft: z.ZodOptional<z.ZodBoolean>;
6010
+ runId: z.ZodOptional<z.ZodString>;
6011
+ requestId: z.ZodString;
5621
6012
  }, z.core.$strip>, z.ZodObject<{
5622
6013
  type: z.ZodLiteral<"checkout_merge_request">;
5623
6014
  cwd: z.ZodString;
@@ -5993,6 +6384,30 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
5993
6384
  type: z.ZodLiteral<"archive_workspace_request">;
5994
6385
  workspaceId: z.ZodString;
5995
6386
  requestId: z.ZodString;
6387
+ branchDisposition: z.ZodOptional<z.ZodEnum<{
6388
+ keep: "keep";
6389
+ delete: "delete";
6390
+ }>>;
6391
+ }, z.core.$strip>, z.ZodObject<{
6392
+ type: z.ZodLiteral<"workspace.archive.preflight.request">;
6393
+ requestId: z.ZodString;
6394
+ workspaceId: z.ZodString;
6395
+ }, z.core.$strip>, z.ZodObject<{
6396
+ type: z.ZodLiteral<"worktree.reattach.list.request">;
6397
+ requestId: z.ZodString;
6398
+ projectId: z.ZodOptional<z.ZodString>;
6399
+ cwd: z.ZodOptional<z.ZodString>;
6400
+ }, z.core.$strip>, z.ZodObject<{
6401
+ type: z.ZodLiteral<"worktree.reattach.request">;
6402
+ requestId: z.ZodString;
6403
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
6404
+ kind: z.ZodLiteral<"workspace">;
6405
+ workspaceId: z.ZodString;
6406
+ }, z.core.$strip>, z.ZodObject<{
6407
+ kind: z.ZodLiteral<"orphan">;
6408
+ worktreePath: z.ZodString;
6409
+ projectId: z.ZodOptional<z.ZodString>;
6410
+ }, z.core.$strip>], "kind">;
5996
6411
  }, z.core.$strip>, z.ZodObject<{
5997
6412
  type: z.ZodLiteral<"workspace.create.request">;
5998
6413
  requestId: z.ZodString;
@@ -6717,6 +7132,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
6717
7132
  gitHostingProviders: z.ZodOptional<z.ZodBoolean>;
6718
7133
  agentPersonalities: z.ZodOptional<z.ZodBoolean>;
6719
7134
  ttsPreview: z.ZodOptional<z.ZodBoolean>;
7135
+ ttsSpeak: z.ZodOptional<z.ZodBoolean>;
6720
7136
  visualizerVoiceCues: z.ZodOptional<z.ZodBoolean>;
6721
7137
  setAgentPersonality: z.ZodOptional<z.ZodBoolean>;
6722
7138
  checkoutGitCommit: z.ZodOptional<z.ZodBoolean>;
@@ -6724,12 +7140,16 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
6724
7140
  checkoutGitRollback: z.ZodOptional<z.ZodBoolean>;
6725
7141
  checkoutGitLog: z.ZodOptional<z.ZodBoolean>;
6726
7142
  checkoutGitFileHistory: z.ZodOptional<z.ZodBoolean>;
7143
+ worktreeArchiveBranchCleanup: z.ZodOptional<z.ZodBoolean>;
7144
+ worktreeReattach: z.ZodOptional<z.ZodBoolean>;
7145
+ hideMergeIntoBaseSetting: z.ZodOptional<z.ZodBoolean>;
6727
7146
  agentTeams: z.ZodOptional<z.ZodBoolean>;
6728
7147
  modelTierOverrides: z.ZodOptional<z.ZodBoolean>;
6729
7148
  savedProviderEndpoints: z.ZodOptional<z.ZodBoolean>;
6730
7149
  agentOrchestration: z.ZodOptional<z.ZodBoolean>;
6731
7150
  activityStats: z.ZodOptional<z.ZodBoolean>;
6732
7151
  runsClear: z.ZodOptional<z.ZodBoolean>;
7152
+ orchestrationGraphs: z.ZodOptional<z.ZodBoolean>;
6733
7153
  projectLinks: z.ZodOptional<z.ZodBoolean>;
6734
7154
  fileOutsideWorkspace: z.ZodOptional<z.ZodBoolean>;
6735
7155
  promptSuggestions: z.ZodOptional<z.ZodBoolean>;
@@ -6793,6 +7213,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
6793
7213
  gitHostingProviders?: boolean | undefined;
6794
7214
  agentPersonalities?: boolean | undefined;
6795
7215
  ttsPreview?: boolean | undefined;
7216
+ ttsSpeak?: boolean | undefined;
6796
7217
  visualizerVoiceCues?: boolean | undefined;
6797
7218
  setAgentPersonality?: boolean | undefined;
6798
7219
  checkoutGitCommit?: boolean | undefined;
@@ -6800,12 +7221,16 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
6800
7221
  checkoutGitRollback?: boolean | undefined;
6801
7222
  checkoutGitLog?: boolean | undefined;
6802
7223
  checkoutGitFileHistory?: boolean | undefined;
7224
+ worktreeArchiveBranchCleanup?: boolean | undefined;
7225
+ worktreeReattach?: boolean | undefined;
7226
+ hideMergeIntoBaseSetting?: boolean | undefined;
6803
7227
  agentTeams?: boolean | undefined;
6804
7228
  modelTierOverrides?: boolean | undefined;
6805
7229
  savedProviderEndpoints?: boolean | undefined;
6806
7230
  agentOrchestration?: boolean | undefined;
6807
7231
  activityStats?: boolean | undefined;
6808
7232
  runsClear?: boolean | undefined;
7233
+ orchestrationGraphs?: boolean | undefined;
6809
7234
  projectLinks?: boolean | undefined;
6810
7235
  fileOutsideWorkspace?: boolean | undefined;
6811
7236
  promptSuggestions?: boolean | undefined;
@@ -6870,6 +7295,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
6870
7295
  gitHostingProviders?: boolean | undefined;
6871
7296
  agentPersonalities?: boolean | undefined;
6872
7297
  ttsPreview?: boolean | undefined;
7298
+ ttsSpeak?: boolean | undefined;
6873
7299
  visualizerVoiceCues?: boolean | undefined;
6874
7300
  setAgentPersonality?: boolean | undefined;
6875
7301
  checkoutGitCommit?: boolean | undefined;
@@ -6877,12 +7303,16 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
6877
7303
  checkoutGitRollback?: boolean | undefined;
6878
7304
  checkoutGitLog?: boolean | undefined;
6879
7305
  checkoutGitFileHistory?: boolean | undefined;
7306
+ worktreeArchiveBranchCleanup?: boolean | undefined;
7307
+ worktreeReattach?: boolean | undefined;
7308
+ hideMergeIntoBaseSetting?: boolean | undefined;
6880
7309
  agentTeams?: boolean | undefined;
6881
7310
  modelTierOverrides?: boolean | undefined;
6882
7311
  savedProviderEndpoints?: boolean | undefined;
6883
7312
  agentOrchestration?: boolean | undefined;
6884
7313
  activityStats?: boolean | undefined;
6885
7314
  runsClear?: boolean | undefined;
7315
+ orchestrationGraphs?: boolean | undefined;
6886
7316
  projectLinks?: boolean | undefined;
6887
7317
  fileOutsideWorkspace?: boolean | undefined;
6888
7318
  promptSuggestions?: boolean | undefined;
@@ -7153,6 +7583,7 @@ export declare const DaemonConfigChangedStatusPayloadSchema: z.ZodObject<{
7153
7583
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
7154
7584
  }, z.core.$loose>>;
7155
7585
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
7586
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
7156
7587
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
7157
7588
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
7158
7589
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7481,6 +7912,7 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
7481
7912
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
7482
7913
  }, z.core.$loose>>;
7483
7914
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
7915
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
7484
7916
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
7485
7917
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
7486
7918
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -9460,8 +9892,437 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
9460
9892
  };
9461
9893
  workspaceName?: string | null | undefined;
9462
9894
  } | undefined;
9463
- }>>>;
9464
- emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
9895
+ }>>>;
9896
+ emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
9897
+ projectId: z.ZodString;
9898
+ projectDisplayName: z.ZodString;
9899
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9900
+ projectRootPath: z.ZodString;
9901
+ projectKind: z.ZodEnum<{
9902
+ git: "git";
9903
+ directory: "directory";
9904
+ non_git: "non_git";
9905
+ }>;
9906
+ }, z.core.$strip>>>>;
9907
+ pageInfo: z.ZodObject<{
9908
+ nextCursor: z.ZodNullable<z.ZodString>;
9909
+ prevCursor: z.ZodNullable<z.ZodString>;
9910
+ hasMore: z.ZodBoolean;
9911
+ }, z.core.$strip>;
9912
+ }, z.core.$strip>;
9913
+ }, z.core.$strip>;
9914
+ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
9915
+ type: z.ZodLiteral<"workspace_update">;
9916
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
9917
+ kind: z.ZodLiteral<"upsert">;
9918
+ workspace: z.ZodPipe<z.ZodObject<{
9919
+ id: z.ZodString;
9920
+ projectId: z.ZodString;
9921
+ projectDisplayName: z.ZodString;
9922
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9923
+ projectRootPath: z.ZodString;
9924
+ workspaceDirectory: z.ZodOptional<z.ZodString>;
9925
+ projectKind: z.ZodEnum<{
9926
+ git: "git";
9927
+ directory: "directory";
9928
+ non_git: "non_git";
9929
+ }>;
9930
+ workspaceKind: z.ZodEnum<{
9931
+ worktree: "worktree";
9932
+ checkout: "checkout";
9933
+ directory: "directory";
9934
+ local_checkout: "local_checkout";
9935
+ }>;
9936
+ name: z.ZodString;
9937
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9938
+ archivingAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9939
+ status: z.ZodEnum<{
9940
+ running: "running";
9941
+ attention: "attention";
9942
+ needs_input: "needs_input";
9943
+ done: "done";
9944
+ failed: "failed";
9945
+ }>;
9946
+ statusEnteredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
9947
+ activityAt: z.ZodNullable<z.ZodString>;
9948
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9949
+ additions: z.ZodNumber;
9950
+ deletions: z.ZodNumber;
9951
+ }, z.core.$strip>>>;
9952
+ scripts: z.ZodDefault<z.ZodArray<z.ZodObject<{
9953
+ scriptName: z.ZodString;
9954
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9955
+ script: "script";
9956
+ service: "service";
9957
+ }>>>;
9958
+ hostname: z.ZodString;
9959
+ port: z.ZodNullable<z.ZodNumber>;
9960
+ localProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9961
+ publicProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9962
+ proxyUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9963
+ lifecycle: z.ZodEnum<{
9964
+ running: "running";
9965
+ stopped: "stopped";
9966
+ }>;
9967
+ health: z.ZodNullable<z.ZodEnum<{
9968
+ healthy: "healthy";
9969
+ unhealthy: "unhealthy";
9970
+ }>>;
9971
+ exitCode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
9972
+ terminalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9973
+ }, z.core.$strip>>>;
9974
+ gitRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9975
+ currentBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9976
+ remoteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9977
+ isOttoOwnedWorktree: z.ZodOptional<z.ZodBoolean>;
9978
+ isDirty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9979
+ aheadBehind: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9980
+ ahead: z.ZodNumber;
9981
+ behind: z.ZodNumber;
9982
+ }, z.core.$strip>>>;
9983
+ aheadOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9984
+ behindOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9985
+ }, z.core.$strip>>>;
9986
+ githubRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9987
+ featuresEnabled: z.ZodOptional<z.ZodBoolean>;
9988
+ pullRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9989
+ number: z.ZodOptional<z.ZodNumber>;
9990
+ url: z.ZodString;
9991
+ title: z.ZodString;
9992
+ state: z.ZodString;
9993
+ baseRefName: z.ZodString;
9994
+ headRefName: z.ZodString;
9995
+ isMerged: z.ZodBoolean;
9996
+ isDraft: z.ZodOptional<z.ZodBoolean>;
9997
+ mergeable: z.ZodOptional<z.ZodCatch<z.ZodEnum<{
9998
+ UNKNOWN: "UNKNOWN";
9999
+ MERGEABLE: "MERGEABLE";
10000
+ CONFLICTING: "CONFLICTING";
10001
+ }>>>;
10002
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
10003
+ name: z.ZodString;
10004
+ status: z.ZodEnum<{
10005
+ success: "success";
10006
+ pending: "pending";
10007
+ skipped: "skipped";
10008
+ failure: "failure";
10009
+ cancelled: "cancelled";
10010
+ }>;
10011
+ url: z.ZodNullable<z.ZodString>;
10012
+ workflow: z.ZodOptional<z.ZodString>;
10013
+ duration: z.ZodOptional<z.ZodString>;
10014
+ }, z.core.$strip>>>;
10015
+ checksStatus: z.ZodOptional<z.ZodEnum<{
10016
+ success: "success";
10017
+ pending: "pending";
10018
+ none: "none";
10019
+ failure: "failure";
10020
+ }>>;
10021
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
10022
+ pending: "pending";
10023
+ approved: "approved";
10024
+ changes_requested: "changes_requested";
10025
+ }>>>;
10026
+ repoOwner: z.ZodOptional<z.ZodString>;
10027
+ repoName: z.ZodOptional<z.ZodString>;
10028
+ github: z.ZodOptional<z.ZodUnknown>;
10029
+ }, z.core.$strip>>>;
10030
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10031
+ message: z.ZodString;
10032
+ }, z.core.$strip>>>;
10033
+ refreshedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10034
+ }, z.core.$strip>>>;
10035
+ project: z.ZodOptional<z.ZodObject<{
10036
+ projectKey: z.ZodString;
10037
+ projectName: z.ZodString;
10038
+ workspaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10039
+ checkout: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
10040
+ cwd: z.ZodString;
10041
+ isGit: z.ZodLiteral<false>;
10042
+ currentBranch: z.ZodNull;
10043
+ remoteUrl: z.ZodNull;
10044
+ worktreeRoot: z.ZodOptional<z.ZodNull>;
10045
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
10046
+ mainRepoRoot: z.ZodNull;
10047
+ }, z.core.$strip>, z.ZodTransform<{
10048
+ worktreeRoot: null;
10049
+ cwd: string;
10050
+ isGit: false;
10051
+ currentBranch: null;
10052
+ remoteUrl: null;
10053
+ isOttoOwnedWorktree: false;
10054
+ mainRepoRoot: null;
10055
+ }, {
10056
+ cwd: string;
10057
+ isGit: false;
10058
+ currentBranch: null;
10059
+ remoteUrl: null;
10060
+ isOttoOwnedWorktree: false;
10061
+ mainRepoRoot: null;
10062
+ worktreeRoot?: null | undefined;
10063
+ }>>, z.ZodPipe<z.ZodObject<{
10064
+ cwd: z.ZodString;
10065
+ isGit: z.ZodLiteral<true>;
10066
+ currentBranch: z.ZodNullable<z.ZodString>;
10067
+ remoteUrl: z.ZodNullable<z.ZodString>;
10068
+ worktreeRoot: z.ZodOptional<z.ZodString>;
10069
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
10070
+ mainRepoRoot: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10071
+ }, z.core.$strip>, z.ZodTransform<{
10072
+ worktreeRoot: string;
10073
+ cwd: string;
10074
+ isGit: true;
10075
+ currentBranch: string | null;
10076
+ remoteUrl: string | null;
10077
+ isOttoOwnedWorktree: false;
10078
+ mainRepoRoot: string | null;
10079
+ }, {
10080
+ cwd: string;
10081
+ isGit: true;
10082
+ currentBranch: string | null;
10083
+ remoteUrl: string | null;
10084
+ isOttoOwnedWorktree: false;
10085
+ mainRepoRoot: string | null;
10086
+ worktreeRoot?: string | undefined;
10087
+ }>>, z.ZodPipe<z.ZodObject<{
10088
+ cwd: z.ZodString;
10089
+ isGit: z.ZodLiteral<true>;
10090
+ currentBranch: z.ZodNullable<z.ZodString>;
10091
+ remoteUrl: z.ZodNullable<z.ZodString>;
10092
+ worktreeRoot: z.ZodOptional<z.ZodString>;
10093
+ isOttoOwnedWorktree: z.ZodLiteral<true>;
10094
+ mainRepoRoot: z.ZodString;
10095
+ }, z.core.$strip>, z.ZodTransform<{
10096
+ worktreeRoot: string;
10097
+ cwd: string;
10098
+ isGit: true;
10099
+ currentBranch: string | null;
10100
+ remoteUrl: string | null;
10101
+ isOttoOwnedWorktree: true;
10102
+ mainRepoRoot: string;
10103
+ }, {
10104
+ cwd: string;
10105
+ isGit: true;
10106
+ currentBranch: string | null;
10107
+ remoteUrl: string | null;
10108
+ isOttoOwnedWorktree: true;
10109
+ mainRepoRoot: string;
10110
+ worktreeRoot?: string | undefined;
10111
+ }>>]>;
10112
+ }, z.core.$strip>>;
10113
+ }, z.core.$strip>, z.ZodTransform<{
10114
+ workspaceDirectory: string;
10115
+ id: string;
10116
+ projectId: string;
10117
+ projectDisplayName: string;
10118
+ projectRootPath: string;
10119
+ projectKind: "git" | "directory" | "non_git";
10120
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
10121
+ name: string;
10122
+ archivingAt: string | null;
10123
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
10124
+ statusEnteredAt: string | null;
10125
+ activityAt: string | null;
10126
+ scripts: {
10127
+ scriptName: string;
10128
+ type: "script" | "service";
10129
+ hostname: string;
10130
+ port: number | null;
10131
+ proxyUrl: string | null;
10132
+ lifecycle: "running" | "stopped";
10133
+ health: "healthy" | "unhealthy" | null;
10134
+ exitCode: number | null;
10135
+ terminalId: string | null;
10136
+ localProxyUrl?: string | null | undefined;
10137
+ publicProxyUrl?: string | null | undefined;
10138
+ }[];
10139
+ projectCustomName?: string | null | undefined;
10140
+ title?: string | null | undefined;
10141
+ diffStat?: {
10142
+ additions: number;
10143
+ deletions: number;
10144
+ } | null | undefined;
10145
+ gitRuntime?: {
10146
+ currentBranch?: string | null | undefined;
10147
+ remoteUrl?: string | null | undefined;
10148
+ isOttoOwnedWorktree?: boolean | undefined;
10149
+ isDirty?: boolean | null | undefined;
10150
+ aheadBehind?: {
10151
+ ahead: number;
10152
+ behind: number;
10153
+ } | null | undefined;
10154
+ aheadOfOrigin?: number | null | undefined;
10155
+ behindOfOrigin?: number | null | undefined;
10156
+ } | null | undefined;
10157
+ githubRuntime?: {
10158
+ featuresEnabled?: boolean | undefined;
10159
+ pullRequest?: {
10160
+ url: string;
10161
+ title: string;
10162
+ state: string;
10163
+ baseRefName: string;
10164
+ headRefName: string;
10165
+ isMerged: boolean;
10166
+ number?: number | undefined;
10167
+ isDraft?: boolean | undefined;
10168
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
10169
+ checks?: {
10170
+ name: string;
10171
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
10172
+ url: string | null;
10173
+ workflow?: string | undefined;
10174
+ duration?: string | undefined;
10175
+ }[] | undefined;
10176
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
10177
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
10178
+ repoOwner?: string | undefined;
10179
+ repoName?: string | undefined;
10180
+ github?: unknown;
10181
+ } | null | undefined;
10182
+ error?: {
10183
+ message: string;
10184
+ } | null | undefined;
10185
+ refreshedAt?: string | null | undefined;
10186
+ } | null | undefined;
10187
+ project?: {
10188
+ projectKey: string;
10189
+ projectName: string;
10190
+ checkout: {
10191
+ worktreeRoot: null;
10192
+ cwd: string;
10193
+ isGit: false;
10194
+ currentBranch: null;
10195
+ remoteUrl: null;
10196
+ isOttoOwnedWorktree: false;
10197
+ mainRepoRoot: null;
10198
+ } | {
10199
+ worktreeRoot: string;
10200
+ cwd: string;
10201
+ isGit: true;
10202
+ currentBranch: string | null;
10203
+ remoteUrl: string | null;
10204
+ isOttoOwnedWorktree: false;
10205
+ mainRepoRoot: string | null;
10206
+ } | {
10207
+ worktreeRoot: string;
10208
+ cwd: string;
10209
+ isGit: true;
10210
+ currentBranch: string | null;
10211
+ remoteUrl: string | null;
10212
+ isOttoOwnedWorktree: true;
10213
+ mainRepoRoot: string;
10214
+ };
10215
+ workspaceName?: string | null | undefined;
10216
+ } | undefined;
10217
+ }, {
10218
+ id: string;
10219
+ projectId: string;
10220
+ projectDisplayName: string;
10221
+ projectRootPath: string;
10222
+ projectKind: "git" | "directory" | "non_git";
10223
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
10224
+ name: string;
10225
+ archivingAt: string | null;
10226
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
10227
+ statusEnteredAt: string | null;
10228
+ activityAt: string | null;
10229
+ scripts: {
10230
+ scriptName: string;
10231
+ type: "script" | "service";
10232
+ hostname: string;
10233
+ port: number | null;
10234
+ proxyUrl: string | null;
10235
+ lifecycle: "running" | "stopped";
10236
+ health: "healthy" | "unhealthy" | null;
10237
+ exitCode: number | null;
10238
+ terminalId: string | null;
10239
+ localProxyUrl?: string | null | undefined;
10240
+ publicProxyUrl?: string | null | undefined;
10241
+ }[];
10242
+ projectCustomName?: string | null | undefined;
10243
+ workspaceDirectory?: string | undefined;
10244
+ title?: string | null | undefined;
10245
+ diffStat?: {
10246
+ additions: number;
10247
+ deletions: number;
10248
+ } | null | undefined;
10249
+ gitRuntime?: {
10250
+ currentBranch?: string | null | undefined;
10251
+ remoteUrl?: string | null | undefined;
10252
+ isOttoOwnedWorktree?: boolean | undefined;
10253
+ isDirty?: boolean | null | undefined;
10254
+ aheadBehind?: {
10255
+ ahead: number;
10256
+ behind: number;
10257
+ } | null | undefined;
10258
+ aheadOfOrigin?: number | null | undefined;
10259
+ behindOfOrigin?: number | null | undefined;
10260
+ } | null | undefined;
10261
+ githubRuntime?: {
10262
+ featuresEnabled?: boolean | undefined;
10263
+ pullRequest?: {
10264
+ url: string;
10265
+ title: string;
10266
+ state: string;
10267
+ baseRefName: string;
10268
+ headRefName: string;
10269
+ isMerged: boolean;
10270
+ number?: number | undefined;
10271
+ isDraft?: boolean | undefined;
10272
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
10273
+ checks?: {
10274
+ name: string;
10275
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
10276
+ url: string | null;
10277
+ workflow?: string | undefined;
10278
+ duration?: string | undefined;
10279
+ }[] | undefined;
10280
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
10281
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
10282
+ repoOwner?: string | undefined;
10283
+ repoName?: string | undefined;
10284
+ github?: unknown;
10285
+ } | null | undefined;
10286
+ error?: {
10287
+ message: string;
10288
+ } | null | undefined;
10289
+ refreshedAt?: string | null | undefined;
10290
+ } | null | undefined;
10291
+ project?: {
10292
+ projectKey: string;
10293
+ projectName: string;
10294
+ checkout: {
10295
+ worktreeRoot: null;
10296
+ cwd: string;
10297
+ isGit: false;
10298
+ currentBranch: null;
10299
+ remoteUrl: null;
10300
+ isOttoOwnedWorktree: false;
10301
+ mainRepoRoot: null;
10302
+ } | {
10303
+ worktreeRoot: string;
10304
+ cwd: string;
10305
+ isGit: true;
10306
+ currentBranch: string | null;
10307
+ remoteUrl: string | null;
10308
+ isOttoOwnedWorktree: false;
10309
+ mainRepoRoot: string | null;
10310
+ } | {
10311
+ worktreeRoot: string;
10312
+ cwd: string;
10313
+ isGit: true;
10314
+ currentBranch: string | null;
10315
+ remoteUrl: string | null;
10316
+ isOttoOwnedWorktree: true;
10317
+ mainRepoRoot: string;
10318
+ };
10319
+ workspaceName?: string | null | undefined;
10320
+ } | undefined;
10321
+ }>>;
10322
+ }, z.core.$strip>, z.ZodObject<{
10323
+ kind: z.ZodLiteral<"remove">;
10324
+ id: z.ZodString;
10325
+ emptyProject: z.ZodOptional<z.ZodObject<{
9465
10326
  projectId: z.ZodString;
9466
10327
  projectDisplayName: z.ZodString;
9467
10328
  projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9471,19 +10332,138 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
9471
10332
  directory: "directory";
9472
10333
  non_git: "non_git";
9473
10334
  }>;
9474
- }, z.core.$strip>>>>;
9475
- pageInfo: z.ZodObject<{
9476
- nextCursor: z.ZodNullable<z.ZodString>;
9477
- prevCursor: z.ZodNullable<z.ZodString>;
9478
- hasMore: z.ZodBoolean;
10335
+ }, z.core.$strip>>;
10336
+ removedProjectId: z.ZodOptional<z.ZodString>;
10337
+ }, z.core.$strip>], "kind">;
10338
+ }, z.core.$strip>;
10339
+ export declare const ScriptStatusUpdateMessageSchema: z.ZodObject<{
10340
+ type: z.ZodLiteral<"script_status_update">;
10341
+ payload: z.ZodObject<{
10342
+ workspaceId: z.ZodString;
10343
+ scripts: z.ZodArray<z.ZodObject<{
10344
+ scriptName: z.ZodString;
10345
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10346
+ script: "script";
10347
+ service: "service";
10348
+ }>>>;
10349
+ hostname: z.ZodString;
10350
+ port: z.ZodNullable<z.ZodNumber>;
10351
+ localProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10352
+ publicProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10353
+ proxyUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10354
+ lifecycle: z.ZodEnum<{
10355
+ running: "running";
10356
+ stopped: "stopped";
10357
+ }>;
10358
+ health: z.ZodNullable<z.ZodEnum<{
10359
+ healthy: "healthy";
10360
+ unhealthy: "unhealthy";
10361
+ }>>;
10362
+ exitCode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10363
+ terminalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10364
+ }, z.core.$strip>>;
10365
+ }, z.core.$strip>;
10366
+ }, z.core.$strip>;
10367
+ export declare const WorkspaceSetupProgressMessageSchema: z.ZodObject<{
10368
+ type: z.ZodLiteral<"workspace_setup_progress">;
10369
+ payload: z.ZodObject<{
10370
+ workspaceId: z.ZodString;
10371
+ status: z.ZodEnum<{
10372
+ running: "running";
10373
+ failed: "failed";
10374
+ completed: "completed";
10375
+ }>;
10376
+ detail: z.ZodObject<{
10377
+ type: z.ZodLiteral<"worktree_setup">;
10378
+ worktreePath: z.ZodString;
10379
+ branchName: z.ZodString;
10380
+ log: z.ZodString;
10381
+ commands: z.ZodArray<z.ZodObject<{
10382
+ index: z.ZodNumber;
10383
+ command: z.ZodString;
10384
+ cwd: z.ZodString;
10385
+ log: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10386
+ status: z.ZodEnum<{
10387
+ running: "running";
10388
+ failed: "failed";
10389
+ completed: "completed";
10390
+ }>;
10391
+ exitCode: z.ZodNullable<z.ZodNumber>;
10392
+ durationMs: z.ZodOptional<z.ZodNumber>;
10393
+ }, z.core.$strip>>;
10394
+ truncated: z.ZodOptional<z.ZodBoolean>;
9479
10395
  }, z.core.$strip>;
10396
+ error: z.ZodNullable<z.ZodString>;
9480
10397
  }, z.core.$strip>;
9481
10398
  }, z.core.$strip>;
9482
- export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
9483
- type: z.ZodLiteral<"workspace_update">;
9484
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
9485
- kind: z.ZodLiteral<"upsert">;
9486
- workspace: z.ZodPipe<z.ZodObject<{
10399
+ export declare const WorkspaceSetupSnapshotSchema: z.ZodObject<{
10400
+ status: z.ZodEnum<{
10401
+ running: "running";
10402
+ failed: "failed";
10403
+ completed: "completed";
10404
+ }>;
10405
+ detail: z.ZodObject<{
10406
+ type: z.ZodLiteral<"worktree_setup">;
10407
+ worktreePath: z.ZodString;
10408
+ branchName: z.ZodString;
10409
+ log: z.ZodString;
10410
+ commands: z.ZodArray<z.ZodObject<{
10411
+ index: z.ZodNumber;
10412
+ command: z.ZodString;
10413
+ cwd: z.ZodString;
10414
+ log: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10415
+ status: z.ZodEnum<{
10416
+ running: "running";
10417
+ failed: "failed";
10418
+ completed: "completed";
10419
+ }>;
10420
+ exitCode: z.ZodNullable<z.ZodNumber>;
10421
+ durationMs: z.ZodOptional<z.ZodNumber>;
10422
+ }, z.core.$strip>>;
10423
+ truncated: z.ZodOptional<z.ZodBoolean>;
10424
+ }, z.core.$strip>;
10425
+ error: z.ZodNullable<z.ZodString>;
10426
+ }, z.core.$strip>;
10427
+ export declare const WorkspaceSetupStatusResponseMessageSchema: z.ZodObject<{
10428
+ type: z.ZodLiteral<"workspace_setup_status_response">;
10429
+ payload: z.ZodObject<{
10430
+ requestId: z.ZodString;
10431
+ workspaceId: z.ZodString;
10432
+ snapshot: z.ZodNullable<z.ZodObject<{
10433
+ status: z.ZodEnum<{
10434
+ running: "running";
10435
+ failed: "failed";
10436
+ completed: "completed";
10437
+ }>;
10438
+ detail: z.ZodObject<{
10439
+ type: z.ZodLiteral<"worktree_setup">;
10440
+ worktreePath: z.ZodString;
10441
+ branchName: z.ZodString;
10442
+ log: z.ZodString;
10443
+ commands: z.ZodArray<z.ZodObject<{
10444
+ index: z.ZodNumber;
10445
+ command: z.ZodString;
10446
+ cwd: z.ZodString;
10447
+ log: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10448
+ status: z.ZodEnum<{
10449
+ running: "running";
10450
+ failed: "failed";
10451
+ completed: "completed";
10452
+ }>;
10453
+ exitCode: z.ZodNullable<z.ZodNumber>;
10454
+ durationMs: z.ZodOptional<z.ZodNumber>;
10455
+ }, z.core.$strip>>;
10456
+ truncated: z.ZodOptional<z.ZodBoolean>;
10457
+ }, z.core.$strip>;
10458
+ error: z.ZodNullable<z.ZodString>;
10459
+ }, z.core.$strip>>;
10460
+ }, z.core.$strip>;
10461
+ }, z.core.$strip>;
10462
+ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
10463
+ type: z.ZodLiteral<"open_project_response">;
10464
+ payload: z.ZodObject<{
10465
+ requestId: z.ZodString;
10466
+ workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
9487
10467
  id: z.ZodString;
9488
10468
  projectId: z.ZodString;
9489
10469
  projectDisplayName: z.ZodString;
@@ -9886,11 +10866,18 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
9886
10866
  };
9887
10867
  workspaceName?: string | null | undefined;
9888
10868
  } | undefined;
9889
- }>>;
9890
- }, z.core.$strip>, z.ZodObject<{
9891
- kind: z.ZodLiteral<"remove">;
9892
- id: z.ZodString;
9893
- emptyProject: z.ZodOptional<z.ZodObject<{
10869
+ }>>>;
10870
+ error: z.ZodNullable<z.ZodString>;
10871
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
10872
+ directory_not_found: "directory_not_found";
10873
+ }>>>>;
10874
+ }, z.core.$strip>;
10875
+ }, z.core.$strip>;
10876
+ export declare const ProjectAddResponseSchema: z.ZodObject<{
10877
+ type: z.ZodLiteral<"project.add.response">;
10878
+ payload: z.ZodObject<{
10879
+ requestId: z.ZodString;
10880
+ project: z.ZodNullable<z.ZodObject<{
9894
10881
  projectId: z.ZodString;
9895
10882
  projectDisplayName: z.ZodString;
9896
10883
  projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9901,134 +10888,113 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
9901
10888
  non_git: "non_git";
9902
10889
  }>;
9903
10890
  }, z.core.$strip>>;
9904
- removedProjectId: z.ZodOptional<z.ZodString>;
9905
- }, z.core.$strip>], "kind">;
10891
+ error: z.ZodNullable<z.ZodString>;
10892
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
10893
+ directory_not_found: "directory_not_found";
10894
+ }>>>>;
10895
+ }, z.core.$strip>;
9906
10896
  }, z.core.$strip>;
9907
- export declare const ScriptStatusUpdateMessageSchema: z.ZodObject<{
9908
- type: z.ZodLiteral<"script_status_update">;
10897
+ export declare const StartWorkspaceScriptResponseMessageSchema: z.ZodObject<{
10898
+ type: z.ZodLiteral<"start_workspace_script_response">;
9909
10899
  payload: z.ZodObject<{
10900
+ requestId: z.ZodString;
9910
10901
  workspaceId: z.ZodString;
9911
- scripts: z.ZodArray<z.ZodObject<{
9912
- scriptName: z.ZodString;
9913
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9914
- script: "script";
9915
- service: "service";
9916
- }>>>;
9917
- hostname: z.ZodString;
9918
- port: z.ZodNullable<z.ZodNumber>;
9919
- localProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9920
- publicProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9921
- proxyUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9922
- lifecycle: z.ZodEnum<{
9923
- running: "running";
9924
- stopped: "stopped";
9925
- }>;
9926
- health: z.ZodNullable<z.ZodEnum<{
9927
- healthy: "healthy";
9928
- unhealthy: "unhealthy";
9929
- }>>;
9930
- exitCode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
9931
- terminalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10902
+ scriptName: z.ZodString;
10903
+ terminalId: z.ZodNullable<z.ZodString>;
10904
+ error: z.ZodNullable<z.ZodString>;
10905
+ }, z.core.$strip>;
10906
+ }, z.core.$strip>;
10907
+ export declare const LegacyListAvailableEditorsResponseMessageSchema: z.ZodObject<{
10908
+ type: z.ZodLiteral<"list_available_editors_response">;
10909
+ payload: z.ZodObject<{
10910
+ requestId: z.ZodString;
10911
+ editors: z.ZodArray<z.ZodObject<{
10912
+ id: z.ZodString;
10913
+ label: z.ZodString;
9932
10914
  }, z.core.$strip>>;
10915
+ error: z.ZodNullable<z.ZodString>;
9933
10916
  }, z.core.$strip>;
9934
10917
  }, z.core.$strip>;
9935
- export declare const WorkspaceSetupProgressMessageSchema: z.ZodObject<{
9936
- type: z.ZodLiteral<"workspace_setup_progress">;
10918
+ export declare const LegacyOpenInEditorResponseMessageSchema: z.ZodObject<{
10919
+ type: z.ZodLiteral<"open_in_editor_response">;
9937
10920
  payload: z.ZodObject<{
10921
+ requestId: z.ZodString;
10922
+ error: z.ZodNullable<z.ZodString>;
10923
+ }, z.core.$strip>;
10924
+ }, z.core.$strip>;
10925
+ export declare const ArchiveWorkspaceResponseMessageSchema: z.ZodObject<{
10926
+ type: z.ZodLiteral<"archive_workspace_response">;
10927
+ payload: z.ZodObject<{
10928
+ requestId: z.ZodString;
9938
10929
  workspaceId: z.ZodString;
9939
- status: z.ZodEnum<{
9940
- running: "running";
9941
- failed: "failed";
9942
- completed: "completed";
9943
- }>;
9944
- detail: z.ZodObject<{
9945
- type: z.ZodLiteral<"worktree_setup">;
9946
- worktreePath: z.ZodString;
9947
- branchName: z.ZodString;
9948
- log: z.ZodString;
9949
- commands: z.ZodArray<z.ZodObject<{
9950
- index: z.ZodNumber;
9951
- command: z.ZodString;
9952
- cwd: z.ZodString;
9953
- log: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9954
- status: z.ZodEnum<{
9955
- running: "running";
9956
- failed: "failed";
9957
- completed: "completed";
9958
- }>;
9959
- exitCode: z.ZodNullable<z.ZodNumber>;
9960
- durationMs: z.ZodOptional<z.ZodNumber>;
9961
- }, z.core.$strip>>;
9962
- truncated: z.ZodOptional<z.ZodBoolean>;
9963
- }, z.core.$strip>;
10930
+ archivedAt: z.ZodNullable<z.ZodString>;
9964
10931
  error: z.ZodNullable<z.ZodString>;
10932
+ deletedBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9965
10933
  }, z.core.$strip>;
9966
10934
  }, z.core.$strip>;
9967
- export declare const WorkspaceSetupSnapshotSchema: z.ZodObject<{
9968
- status: z.ZodEnum<{
9969
- running: "running";
9970
- failed: "failed";
9971
- completed: "completed";
10935
+ export declare const WorktreeArchiveBranchDetectionSchema: z.ZodObject<{
10936
+ isOttoWorktree: z.ZodBoolean;
10937
+ branchName: z.ZodNullable<z.ZodString>;
10938
+ baseBranch: z.ZodNullable<z.ZodString>;
10939
+ mergeState: z.ZodEnum<{
10940
+ unknown: "unknown";
10941
+ merged: "merged";
10942
+ unmerged: "unmerged";
9972
10943
  }>;
9973
- detail: z.ZodObject<{
9974
- type: z.ZodLiteral<"worktree_setup">;
9975
- worktreePath: z.ZodString;
9976
- branchName: z.ZodString;
9977
- log: z.ZodString;
9978
- commands: z.ZodArray<z.ZodObject<{
9979
- index: z.ZodNumber;
9980
- command: z.ZodString;
9981
- cwd: z.ZodString;
9982
- log: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9983
- status: z.ZodEnum<{
9984
- running: "running";
9985
- failed: "failed";
9986
- completed: "completed";
10944
+ unmergedCommitCount: z.ZodNullable<z.ZodNumber>;
10945
+ hasRemoteBranch: z.ZodBoolean;
10946
+ branchCheckedOutElsewhere: z.ZodBoolean;
10947
+ directoryWillBeRemoved: z.ZodBoolean;
10948
+ }, z.core.$strip>;
10949
+ export declare const WorkspaceArchivePreflightResponseSchema: z.ZodObject<{
10950
+ type: z.ZodLiteral<"workspace.archive.preflight.response">;
10951
+ payload: z.ZodObject<{
10952
+ requestId: z.ZodString;
10953
+ workspaceId: z.ZodString;
10954
+ detection: z.ZodNullable<z.ZodObject<{
10955
+ isOttoWorktree: z.ZodBoolean;
10956
+ branchName: z.ZodNullable<z.ZodString>;
10957
+ baseBranch: z.ZodNullable<z.ZodString>;
10958
+ mergeState: z.ZodEnum<{
10959
+ unknown: "unknown";
10960
+ merged: "merged";
10961
+ unmerged: "unmerged";
9987
10962
  }>;
9988
- exitCode: z.ZodNullable<z.ZodNumber>;
9989
- durationMs: z.ZodOptional<z.ZodNumber>;
10963
+ unmergedCommitCount: z.ZodNullable<z.ZodNumber>;
10964
+ hasRemoteBranch: z.ZodBoolean;
10965
+ branchCheckedOutElsewhere: z.ZodBoolean;
10966
+ directoryWillBeRemoved: z.ZodBoolean;
9990
10967
  }, z.core.$strip>>;
9991
- truncated: z.ZodOptional<z.ZodBoolean>;
10968
+ error: z.ZodNullable<z.ZodString>;
9992
10969
  }, z.core.$strip>;
9993
- error: z.ZodNullable<z.ZodString>;
9994
10970
  }, z.core.$strip>;
9995
- export declare const WorkspaceSetupStatusResponseMessageSchema: z.ZodObject<{
9996
- type: z.ZodLiteral<"workspace_setup_status_response">;
10971
+ export declare const WorktreeReattachCandidateSchema: z.ZodObject<{
10972
+ workspaceId: z.ZodNullable<z.ZodString>;
10973
+ worktreePath: z.ZodString;
10974
+ branchName: z.ZodNullable<z.ZodString>;
10975
+ baseBranch: z.ZodNullable<z.ZodString>;
10976
+ directoryOnDisk: z.ZodBoolean;
10977
+ displayName: z.ZodNullable<z.ZodString>;
10978
+ archivedAt: z.ZodNullable<z.ZodString>;
10979
+ }, z.core.$strip>;
10980
+ export declare const WorktreeReattachListResponseSchema: z.ZodObject<{
10981
+ type: z.ZodLiteral<"worktree.reattach.list.response">;
9997
10982
  payload: z.ZodObject<{
9998
10983
  requestId: z.ZodString;
9999
- workspaceId: z.ZodString;
10000
- snapshot: z.ZodNullable<z.ZodObject<{
10001
- status: z.ZodEnum<{
10002
- running: "running";
10003
- failed: "failed";
10004
- completed: "completed";
10005
- }>;
10006
- detail: z.ZodObject<{
10007
- type: z.ZodLiteral<"worktree_setup">;
10008
- worktreePath: z.ZodString;
10009
- branchName: z.ZodString;
10010
- log: z.ZodString;
10011
- commands: z.ZodArray<z.ZodObject<{
10012
- index: z.ZodNumber;
10013
- command: z.ZodString;
10014
- cwd: z.ZodString;
10015
- log: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10016
- status: z.ZodEnum<{
10017
- running: "running";
10018
- failed: "failed";
10019
- completed: "completed";
10020
- }>;
10021
- exitCode: z.ZodNullable<z.ZodNumber>;
10022
- durationMs: z.ZodOptional<z.ZodNumber>;
10023
- }, z.core.$strip>>;
10024
- truncated: z.ZodOptional<z.ZodBoolean>;
10025
- }, z.core.$strip>;
10026
- error: z.ZodNullable<z.ZodString>;
10984
+ candidates: z.ZodArray<z.ZodObject<{
10985
+ workspaceId: z.ZodNullable<z.ZodString>;
10986
+ worktreePath: z.ZodString;
10987
+ branchName: z.ZodNullable<z.ZodString>;
10988
+ baseBranch: z.ZodNullable<z.ZodString>;
10989
+ directoryOnDisk: z.ZodBoolean;
10990
+ displayName: z.ZodNullable<z.ZodString>;
10991
+ archivedAt: z.ZodNullable<z.ZodString>;
10027
10992
  }, z.core.$strip>>;
10993
+ error: z.ZodNullable<z.ZodString>;
10028
10994
  }, z.core.$strip>;
10029
10995
  }, z.core.$strip>;
10030
- export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
10031
- type: z.ZodLiteral<"open_project_response">;
10996
+ export declare const WorktreeReattachResponseSchema: z.ZodObject<{
10997
+ type: z.ZodLiteral<"worktree.reattach.response">;
10032
10998
  payload: z.ZodObject<{
10033
10999
  requestId: z.ZodString;
10034
11000
  workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
@@ -10436,67 +11402,6 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
10436
11402
  } | undefined;
10437
11403
  }>>>;
10438
11404
  error: z.ZodNullable<z.ZodString>;
10439
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
10440
- directory_not_found: "directory_not_found";
10441
- }>>>>;
10442
- }, z.core.$strip>;
10443
- }, z.core.$strip>;
10444
- export declare const ProjectAddResponseSchema: z.ZodObject<{
10445
- type: z.ZodLiteral<"project.add.response">;
10446
- payload: z.ZodObject<{
10447
- requestId: z.ZodString;
10448
- project: z.ZodNullable<z.ZodObject<{
10449
- projectId: z.ZodString;
10450
- projectDisplayName: z.ZodString;
10451
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10452
- projectRootPath: z.ZodString;
10453
- projectKind: z.ZodEnum<{
10454
- git: "git";
10455
- directory: "directory";
10456
- non_git: "non_git";
10457
- }>;
10458
- }, z.core.$strip>>;
10459
- error: z.ZodNullable<z.ZodString>;
10460
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
10461
- directory_not_found: "directory_not_found";
10462
- }>>>>;
10463
- }, z.core.$strip>;
10464
- }, z.core.$strip>;
10465
- export declare const StartWorkspaceScriptResponseMessageSchema: z.ZodObject<{
10466
- type: z.ZodLiteral<"start_workspace_script_response">;
10467
- payload: z.ZodObject<{
10468
- requestId: z.ZodString;
10469
- workspaceId: z.ZodString;
10470
- scriptName: z.ZodString;
10471
- terminalId: z.ZodNullable<z.ZodString>;
10472
- error: z.ZodNullable<z.ZodString>;
10473
- }, z.core.$strip>;
10474
- }, z.core.$strip>;
10475
- export declare const LegacyListAvailableEditorsResponseMessageSchema: z.ZodObject<{
10476
- type: z.ZodLiteral<"list_available_editors_response">;
10477
- payload: z.ZodObject<{
10478
- requestId: z.ZodString;
10479
- editors: z.ZodArray<z.ZodObject<{
10480
- id: z.ZodString;
10481
- label: z.ZodString;
10482
- }, z.core.$strip>>;
10483
- error: z.ZodNullable<z.ZodString>;
10484
- }, z.core.$strip>;
10485
- }, z.core.$strip>;
10486
- export declare const LegacyOpenInEditorResponseMessageSchema: z.ZodObject<{
10487
- type: z.ZodLiteral<"open_in_editor_response">;
10488
- payload: z.ZodObject<{
10489
- requestId: z.ZodString;
10490
- error: z.ZodNullable<z.ZodString>;
10491
- }, z.core.$strip>;
10492
- }, z.core.$strip>;
10493
- export declare const ArchiveWorkspaceResponseMessageSchema: z.ZodObject<{
10494
- type: z.ZodLiteral<"archive_workspace_response">;
10495
- payload: z.ZodObject<{
10496
- requestId: z.ZodString;
10497
- workspaceId: z.ZodString;
10498
- archivedAt: z.ZodNullable<z.ZodString>;
10499
- error: z.ZodNullable<z.ZodString>;
10500
11405
  }, z.core.$strip>;
10501
11406
  }, z.core.$strip>;
10502
11407
  export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
@@ -11568,6 +12473,7 @@ export declare const GetDaemonConfigResponseMessageSchema: z.ZodObject<{
11568
12473
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
11569
12474
  }, z.core.$loose>>;
11570
12475
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
12476
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
11571
12477
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
11572
12478
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
11573
12479
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -11719,6 +12625,23 @@ export declare const SpeechTtsPreviewResponseSchema: z.ZodObject<{
11719
12625
  }, z.core.$loose>;
11720
12626
  }, z.core.$strip>;
11721
12627
  export type SpeechTtsPreviewResult = z.infer<typeof SpeechTtsPreviewResponseSchema>["payload"];
12628
+ export declare const SpeechTtsSpeakResponseSchema: z.ZodObject<{
12629
+ type: z.ZodLiteral<"speech.tts.speak.response">;
12630
+ payload: z.ZodObject<{
12631
+ requestId: z.ZodString;
12632
+ ok: z.ZodOptional<z.ZodBoolean>;
12633
+ canceled: z.ZodOptional<z.ZodBoolean>;
12634
+ error: z.ZodOptional<z.ZodString>;
12635
+ }, z.core.$loose>;
12636
+ }, z.core.$strip>;
12637
+ export type SpeechTtsSpeakResult = z.infer<typeof SpeechTtsSpeakResponseSchema>["payload"];
12638
+ export declare const SpeechTtsSpeakCancelResponseSchema: z.ZodObject<{
12639
+ type: z.ZodLiteral<"speech.tts.speak.cancel.response">;
12640
+ payload: z.ZodObject<{
12641
+ requestId: z.ZodString;
12642
+ }, z.core.$loose>;
12643
+ }, z.core.$strip>;
12644
+ export type SpeechTtsSpeakCancelResult = z.infer<typeof SpeechTtsSpeakCancelResponseSchema>["payload"];
11722
12645
  export declare const VisualizerVoiceCuesGenerateResponseSchema: z.ZodObject<{
11723
12646
  type: z.ZodLiteral<"visualizer.voiceCues.generate.response">;
11724
12647
  payload: z.ZodObject<{
@@ -11835,6 +12758,7 @@ export declare const SetDaemonConfigResponseMessageSchema: z.ZodObject<{
11835
12758
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
11836
12759
  }, z.core.$loose>>;
11837
12760
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
12761
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
11838
12762
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
11839
12763
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
11840
12764
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -14298,8 +15222,8 @@ export declare const FileWatchEventSchema: z.ZodObject<{
14298
15222
  cwd: z.ZodString;
14299
15223
  path: z.ZodString;
14300
15224
  change: z.ZodEnum<{
14301
- changed: "changed";
14302
15225
  deleted: "deleted";
15226
+ changed: "changed";
14303
15227
  recreated: "recreated";
14304
15228
  }>;
14305
15229
  modifiedAt: z.ZodNullable<z.ZodString>;
@@ -16407,8 +17331,450 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
16407
17331
  mainRepoRoot: string;
16408
17332
  worktreeRoot?: string | undefined;
16409
17333
  }>>]>;
16410
- }, z.core.$strip>;
16411
- }, z.core.$strip>>;
17334
+ }, z.core.$strip>;
17335
+ }, z.core.$strip>>;
17336
+ pageInfo: z.ZodObject<{
17337
+ nextCursor: z.ZodNullable<z.ZodString>;
17338
+ prevCursor: z.ZodNullable<z.ZodString>;
17339
+ hasMore: z.ZodBoolean;
17340
+ }, z.core.$strip>;
17341
+ }, z.core.$strip>;
17342
+ }, z.core.$strip>, z.ZodObject<{
17343
+ type: z.ZodLiteral<"fetch_recent_provider_sessions_response">;
17344
+ payload: z.ZodObject<{
17345
+ requestId: z.ZodString;
17346
+ entries: z.ZodArray<z.ZodObject<{
17347
+ providerId: z.ZodString;
17348
+ providerLabel: z.ZodString;
17349
+ providerHandleId: z.ZodString;
17350
+ cwd: z.ZodString;
17351
+ title: z.ZodNullable<z.ZodString>;
17352
+ firstPromptPreview: z.ZodNullable<z.ZodString>;
17353
+ lastPromptPreview: z.ZodNullable<z.ZodString>;
17354
+ lastActivityAt: z.ZodString;
17355
+ }, z.core.$strip>>;
17356
+ filteredAlreadyImportedCount: z.ZodOptional<z.ZodNumber>;
17357
+ }, z.core.$strip>;
17358
+ }, z.core.$strip>, z.ZodObject<{
17359
+ type: z.ZodLiteral<"fetch_workspaces_response">;
17360
+ payload: z.ZodObject<{
17361
+ requestId: z.ZodString;
17362
+ subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17363
+ entries: z.ZodArray<z.ZodPipe<z.ZodObject<{
17364
+ id: z.ZodString;
17365
+ projectId: z.ZodString;
17366
+ projectDisplayName: z.ZodString;
17367
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17368
+ projectRootPath: z.ZodString;
17369
+ workspaceDirectory: z.ZodOptional<z.ZodString>;
17370
+ projectKind: z.ZodEnum<{
17371
+ git: "git";
17372
+ directory: "directory";
17373
+ non_git: "non_git";
17374
+ }>;
17375
+ workspaceKind: z.ZodEnum<{
17376
+ worktree: "worktree";
17377
+ checkout: "checkout";
17378
+ directory: "directory";
17379
+ local_checkout: "local_checkout";
17380
+ }>;
17381
+ name: z.ZodString;
17382
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17383
+ archivingAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17384
+ status: z.ZodEnum<{
17385
+ running: "running";
17386
+ attention: "attention";
17387
+ needs_input: "needs_input";
17388
+ done: "done";
17389
+ failed: "failed";
17390
+ }>;
17391
+ statusEnteredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
17392
+ activityAt: z.ZodNullable<z.ZodString>;
17393
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17394
+ additions: z.ZodNumber;
17395
+ deletions: z.ZodNumber;
17396
+ }, z.core.$strip>>>;
17397
+ scripts: z.ZodDefault<z.ZodArray<z.ZodObject<{
17398
+ scriptName: z.ZodString;
17399
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
17400
+ script: "script";
17401
+ service: "service";
17402
+ }>>>;
17403
+ hostname: z.ZodString;
17404
+ port: z.ZodNullable<z.ZodNumber>;
17405
+ localProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17406
+ publicProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17407
+ proxyUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17408
+ lifecycle: z.ZodEnum<{
17409
+ running: "running";
17410
+ stopped: "stopped";
17411
+ }>;
17412
+ health: z.ZodNullable<z.ZodEnum<{
17413
+ healthy: "healthy";
17414
+ unhealthy: "unhealthy";
17415
+ }>>;
17416
+ exitCode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
17417
+ terminalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17418
+ }, z.core.$strip>>>;
17419
+ gitRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17420
+ currentBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17421
+ remoteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17422
+ isOttoOwnedWorktree: z.ZodOptional<z.ZodBoolean>;
17423
+ isDirty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17424
+ aheadBehind: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17425
+ ahead: z.ZodNumber;
17426
+ behind: z.ZodNumber;
17427
+ }, z.core.$strip>>>;
17428
+ aheadOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17429
+ behindOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17430
+ }, z.core.$strip>>>;
17431
+ githubRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17432
+ featuresEnabled: z.ZodOptional<z.ZodBoolean>;
17433
+ pullRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17434
+ number: z.ZodOptional<z.ZodNumber>;
17435
+ url: z.ZodString;
17436
+ title: z.ZodString;
17437
+ state: z.ZodString;
17438
+ baseRefName: z.ZodString;
17439
+ headRefName: z.ZodString;
17440
+ isMerged: z.ZodBoolean;
17441
+ isDraft: z.ZodOptional<z.ZodBoolean>;
17442
+ mergeable: z.ZodOptional<z.ZodCatch<z.ZodEnum<{
17443
+ UNKNOWN: "UNKNOWN";
17444
+ MERGEABLE: "MERGEABLE";
17445
+ CONFLICTING: "CONFLICTING";
17446
+ }>>>;
17447
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
17448
+ name: z.ZodString;
17449
+ status: z.ZodEnum<{
17450
+ success: "success";
17451
+ pending: "pending";
17452
+ skipped: "skipped";
17453
+ failure: "failure";
17454
+ cancelled: "cancelled";
17455
+ }>;
17456
+ url: z.ZodNullable<z.ZodString>;
17457
+ workflow: z.ZodOptional<z.ZodString>;
17458
+ duration: z.ZodOptional<z.ZodString>;
17459
+ }, z.core.$strip>>>;
17460
+ checksStatus: z.ZodOptional<z.ZodEnum<{
17461
+ success: "success";
17462
+ pending: "pending";
17463
+ none: "none";
17464
+ failure: "failure";
17465
+ }>>;
17466
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17467
+ pending: "pending";
17468
+ approved: "approved";
17469
+ changes_requested: "changes_requested";
17470
+ }>>>;
17471
+ repoOwner: z.ZodOptional<z.ZodString>;
17472
+ repoName: z.ZodOptional<z.ZodString>;
17473
+ github: z.ZodOptional<z.ZodUnknown>;
17474
+ }, z.core.$strip>>>;
17475
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17476
+ message: z.ZodString;
17477
+ }, z.core.$strip>>>;
17478
+ refreshedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17479
+ }, z.core.$strip>>>;
17480
+ project: z.ZodOptional<z.ZodObject<{
17481
+ projectKey: z.ZodString;
17482
+ projectName: z.ZodString;
17483
+ workspaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17484
+ checkout: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
17485
+ cwd: z.ZodString;
17486
+ isGit: z.ZodLiteral<false>;
17487
+ currentBranch: z.ZodNull;
17488
+ remoteUrl: z.ZodNull;
17489
+ worktreeRoot: z.ZodOptional<z.ZodNull>;
17490
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
17491
+ mainRepoRoot: z.ZodNull;
17492
+ }, z.core.$strip>, z.ZodTransform<{
17493
+ worktreeRoot: null;
17494
+ cwd: string;
17495
+ isGit: false;
17496
+ currentBranch: null;
17497
+ remoteUrl: null;
17498
+ isOttoOwnedWorktree: false;
17499
+ mainRepoRoot: null;
17500
+ }, {
17501
+ cwd: string;
17502
+ isGit: false;
17503
+ currentBranch: null;
17504
+ remoteUrl: null;
17505
+ isOttoOwnedWorktree: false;
17506
+ mainRepoRoot: null;
17507
+ worktreeRoot?: null | undefined;
17508
+ }>>, z.ZodPipe<z.ZodObject<{
17509
+ cwd: z.ZodString;
17510
+ isGit: z.ZodLiteral<true>;
17511
+ currentBranch: z.ZodNullable<z.ZodString>;
17512
+ remoteUrl: z.ZodNullable<z.ZodString>;
17513
+ worktreeRoot: z.ZodOptional<z.ZodString>;
17514
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
17515
+ mainRepoRoot: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17516
+ }, z.core.$strip>, z.ZodTransform<{
17517
+ worktreeRoot: string;
17518
+ cwd: string;
17519
+ isGit: true;
17520
+ currentBranch: string | null;
17521
+ remoteUrl: string | null;
17522
+ isOttoOwnedWorktree: false;
17523
+ mainRepoRoot: string | null;
17524
+ }, {
17525
+ cwd: string;
17526
+ isGit: true;
17527
+ currentBranch: string | null;
17528
+ remoteUrl: string | null;
17529
+ isOttoOwnedWorktree: false;
17530
+ mainRepoRoot: string | null;
17531
+ worktreeRoot?: string | undefined;
17532
+ }>>, z.ZodPipe<z.ZodObject<{
17533
+ cwd: z.ZodString;
17534
+ isGit: z.ZodLiteral<true>;
17535
+ currentBranch: z.ZodNullable<z.ZodString>;
17536
+ remoteUrl: z.ZodNullable<z.ZodString>;
17537
+ worktreeRoot: z.ZodOptional<z.ZodString>;
17538
+ isOttoOwnedWorktree: z.ZodLiteral<true>;
17539
+ mainRepoRoot: z.ZodString;
17540
+ }, z.core.$strip>, z.ZodTransform<{
17541
+ worktreeRoot: string;
17542
+ cwd: string;
17543
+ isGit: true;
17544
+ currentBranch: string | null;
17545
+ remoteUrl: string | null;
17546
+ isOttoOwnedWorktree: true;
17547
+ mainRepoRoot: string;
17548
+ }, {
17549
+ cwd: string;
17550
+ isGit: true;
17551
+ currentBranch: string | null;
17552
+ remoteUrl: string | null;
17553
+ isOttoOwnedWorktree: true;
17554
+ mainRepoRoot: string;
17555
+ worktreeRoot?: string | undefined;
17556
+ }>>]>;
17557
+ }, z.core.$strip>>;
17558
+ }, z.core.$strip>, z.ZodTransform<{
17559
+ workspaceDirectory: string;
17560
+ id: string;
17561
+ projectId: string;
17562
+ projectDisplayName: string;
17563
+ projectRootPath: string;
17564
+ projectKind: "git" | "directory" | "non_git";
17565
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
17566
+ name: string;
17567
+ archivingAt: string | null;
17568
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
17569
+ statusEnteredAt: string | null;
17570
+ activityAt: string | null;
17571
+ scripts: {
17572
+ scriptName: string;
17573
+ type: "script" | "service";
17574
+ hostname: string;
17575
+ port: number | null;
17576
+ proxyUrl: string | null;
17577
+ lifecycle: "running" | "stopped";
17578
+ health: "healthy" | "unhealthy" | null;
17579
+ exitCode: number | null;
17580
+ terminalId: string | null;
17581
+ localProxyUrl?: string | null | undefined;
17582
+ publicProxyUrl?: string | null | undefined;
17583
+ }[];
17584
+ projectCustomName?: string | null | undefined;
17585
+ title?: string | null | undefined;
17586
+ diffStat?: {
17587
+ additions: number;
17588
+ deletions: number;
17589
+ } | null | undefined;
17590
+ gitRuntime?: {
17591
+ currentBranch?: string | null | undefined;
17592
+ remoteUrl?: string | null | undefined;
17593
+ isOttoOwnedWorktree?: boolean | undefined;
17594
+ isDirty?: boolean | null | undefined;
17595
+ aheadBehind?: {
17596
+ ahead: number;
17597
+ behind: number;
17598
+ } | null | undefined;
17599
+ aheadOfOrigin?: number | null | undefined;
17600
+ behindOfOrigin?: number | null | undefined;
17601
+ } | null | undefined;
17602
+ githubRuntime?: {
17603
+ featuresEnabled?: boolean | undefined;
17604
+ pullRequest?: {
17605
+ url: string;
17606
+ title: string;
17607
+ state: string;
17608
+ baseRefName: string;
17609
+ headRefName: string;
17610
+ isMerged: boolean;
17611
+ number?: number | undefined;
17612
+ isDraft?: boolean | undefined;
17613
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
17614
+ checks?: {
17615
+ name: string;
17616
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
17617
+ url: string | null;
17618
+ workflow?: string | undefined;
17619
+ duration?: string | undefined;
17620
+ }[] | undefined;
17621
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
17622
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
17623
+ repoOwner?: string | undefined;
17624
+ repoName?: string | undefined;
17625
+ github?: unknown;
17626
+ } | null | undefined;
17627
+ error?: {
17628
+ message: string;
17629
+ } | null | undefined;
17630
+ refreshedAt?: string | null | undefined;
17631
+ } | null | undefined;
17632
+ project?: {
17633
+ projectKey: string;
17634
+ projectName: string;
17635
+ checkout: {
17636
+ worktreeRoot: null;
17637
+ cwd: string;
17638
+ isGit: false;
17639
+ currentBranch: null;
17640
+ remoteUrl: null;
17641
+ isOttoOwnedWorktree: false;
17642
+ mainRepoRoot: null;
17643
+ } | {
17644
+ worktreeRoot: string;
17645
+ cwd: string;
17646
+ isGit: true;
17647
+ currentBranch: string | null;
17648
+ remoteUrl: string | null;
17649
+ isOttoOwnedWorktree: false;
17650
+ mainRepoRoot: string | null;
17651
+ } | {
17652
+ worktreeRoot: string;
17653
+ cwd: string;
17654
+ isGit: true;
17655
+ currentBranch: string | null;
17656
+ remoteUrl: string | null;
17657
+ isOttoOwnedWorktree: true;
17658
+ mainRepoRoot: string;
17659
+ };
17660
+ workspaceName?: string | null | undefined;
17661
+ } | undefined;
17662
+ }, {
17663
+ id: string;
17664
+ projectId: string;
17665
+ projectDisplayName: string;
17666
+ projectRootPath: string;
17667
+ projectKind: "git" | "directory" | "non_git";
17668
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
17669
+ name: string;
17670
+ archivingAt: string | null;
17671
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
17672
+ statusEnteredAt: string | null;
17673
+ activityAt: string | null;
17674
+ scripts: {
17675
+ scriptName: string;
17676
+ type: "script" | "service";
17677
+ hostname: string;
17678
+ port: number | null;
17679
+ proxyUrl: string | null;
17680
+ lifecycle: "running" | "stopped";
17681
+ health: "healthy" | "unhealthy" | null;
17682
+ exitCode: number | null;
17683
+ terminalId: string | null;
17684
+ localProxyUrl?: string | null | undefined;
17685
+ publicProxyUrl?: string | null | undefined;
17686
+ }[];
17687
+ projectCustomName?: string | null | undefined;
17688
+ workspaceDirectory?: string | undefined;
17689
+ title?: string | null | undefined;
17690
+ diffStat?: {
17691
+ additions: number;
17692
+ deletions: number;
17693
+ } | null | undefined;
17694
+ gitRuntime?: {
17695
+ currentBranch?: string | null | undefined;
17696
+ remoteUrl?: string | null | undefined;
17697
+ isOttoOwnedWorktree?: boolean | undefined;
17698
+ isDirty?: boolean | null | undefined;
17699
+ aheadBehind?: {
17700
+ ahead: number;
17701
+ behind: number;
17702
+ } | null | undefined;
17703
+ aheadOfOrigin?: number | null | undefined;
17704
+ behindOfOrigin?: number | null | undefined;
17705
+ } | null | undefined;
17706
+ githubRuntime?: {
17707
+ featuresEnabled?: boolean | undefined;
17708
+ pullRequest?: {
17709
+ url: string;
17710
+ title: string;
17711
+ state: string;
17712
+ baseRefName: string;
17713
+ headRefName: string;
17714
+ isMerged: boolean;
17715
+ number?: number | undefined;
17716
+ isDraft?: boolean | undefined;
17717
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
17718
+ checks?: {
17719
+ name: string;
17720
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
17721
+ url: string | null;
17722
+ workflow?: string | undefined;
17723
+ duration?: string | undefined;
17724
+ }[] | undefined;
17725
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
17726
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
17727
+ repoOwner?: string | undefined;
17728
+ repoName?: string | undefined;
17729
+ github?: unknown;
17730
+ } | null | undefined;
17731
+ error?: {
17732
+ message: string;
17733
+ } | null | undefined;
17734
+ refreshedAt?: string | null | undefined;
17735
+ } | null | undefined;
17736
+ project?: {
17737
+ projectKey: string;
17738
+ projectName: string;
17739
+ checkout: {
17740
+ worktreeRoot: null;
17741
+ cwd: string;
17742
+ isGit: false;
17743
+ currentBranch: null;
17744
+ remoteUrl: null;
17745
+ isOttoOwnedWorktree: false;
17746
+ mainRepoRoot: null;
17747
+ } | {
17748
+ worktreeRoot: string;
17749
+ cwd: string;
17750
+ isGit: true;
17751
+ currentBranch: string | null;
17752
+ remoteUrl: string | null;
17753
+ isOttoOwnedWorktree: false;
17754
+ mainRepoRoot: string | null;
17755
+ } | {
17756
+ worktreeRoot: string;
17757
+ cwd: string;
17758
+ isGit: true;
17759
+ currentBranch: string | null;
17760
+ remoteUrl: string | null;
17761
+ isOttoOwnedWorktree: true;
17762
+ mainRepoRoot: string;
17763
+ };
17764
+ workspaceName?: string | null | undefined;
17765
+ } | undefined;
17766
+ }>>>;
17767
+ emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
17768
+ projectId: z.ZodString;
17769
+ projectDisplayName: z.ZodString;
17770
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17771
+ projectRootPath: z.ZodString;
17772
+ projectKind: z.ZodEnum<{
17773
+ git: "git";
17774
+ directory: "directory";
17775
+ non_git: "non_git";
17776
+ }>;
17777
+ }, z.core.$strip>>>>;
16412
17778
  pageInfo: z.ZodObject<{
16413
17779
  nextCursor: z.ZodNullable<z.ZodString>;
16414
17780
  prevCursor: z.ZodNullable<z.ZodString>;
@@ -16416,27 +17782,30 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
16416
17782
  }, z.core.$strip>;
16417
17783
  }, z.core.$strip>;
16418
17784
  }, z.core.$strip>, z.ZodObject<{
16419
- type: z.ZodLiteral<"fetch_recent_provider_sessions_response">;
17785
+ type: z.ZodLiteral<"project.add.response">;
16420
17786
  payload: z.ZodObject<{
16421
17787
  requestId: z.ZodString;
16422
- entries: z.ZodArray<z.ZodObject<{
16423
- providerId: z.ZodString;
16424
- providerLabel: z.ZodString;
16425
- providerHandleId: z.ZodString;
16426
- cwd: z.ZodString;
16427
- title: z.ZodNullable<z.ZodString>;
16428
- firstPromptPreview: z.ZodNullable<z.ZodString>;
16429
- lastPromptPreview: z.ZodNullable<z.ZodString>;
16430
- lastActivityAt: z.ZodString;
17788
+ project: z.ZodNullable<z.ZodObject<{
17789
+ projectId: z.ZodString;
17790
+ projectDisplayName: z.ZodString;
17791
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17792
+ projectRootPath: z.ZodString;
17793
+ projectKind: z.ZodEnum<{
17794
+ git: "git";
17795
+ directory: "directory";
17796
+ non_git: "non_git";
17797
+ }>;
16431
17798
  }, z.core.$strip>>;
16432
- filteredAlreadyImportedCount: z.ZodOptional<z.ZodNumber>;
17799
+ error: z.ZodNullable<z.ZodString>;
17800
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17801
+ directory_not_found: "directory_not_found";
17802
+ }>>>>;
16433
17803
  }, z.core.$strip>;
16434
17804
  }, z.core.$strip>, z.ZodObject<{
16435
- type: z.ZodLiteral<"fetch_workspaces_response">;
17805
+ type: z.ZodLiteral<"open_project_response">;
16436
17806
  payload: z.ZodObject<{
16437
17807
  requestId: z.ZodString;
16438
- subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16439
- entries: z.ZodArray<z.ZodPipe<z.ZodObject<{
17808
+ workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
16440
17809
  id: z.ZodString;
16441
17810
  projectId: z.ZodString;
16442
17811
  projectDisplayName: z.ZodString;
@@ -16840,45 +18209,83 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
16840
18209
  workspaceName?: string | null | undefined;
16841
18210
  } | undefined;
16842
18211
  }>>>;
16843
- emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
16844
- projectId: z.ZodString;
16845
- projectDisplayName: z.ZodString;
16846
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16847
- projectRootPath: z.ZodString;
16848
- projectKind: z.ZodEnum<{
16849
- git: "git";
16850
- directory: "directory";
16851
- non_git: "non_git";
16852
- }>;
16853
- }, z.core.$strip>>>>;
16854
- pageInfo: z.ZodObject<{
16855
- nextCursor: z.ZodNullable<z.ZodString>;
16856
- prevCursor: z.ZodNullable<z.ZodString>;
16857
- hasMore: z.ZodBoolean;
16858
- }, z.core.$strip>;
18212
+ error: z.ZodNullable<z.ZodString>;
18213
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18214
+ directory_not_found: "directory_not_found";
18215
+ }>>>>;
16859
18216
  }, z.core.$strip>;
16860
18217
  }, z.core.$strip>, z.ZodObject<{
16861
- type: z.ZodLiteral<"project.add.response">;
18218
+ type: z.ZodLiteral<"start_workspace_script_response">;
16862
18219
  payload: z.ZodObject<{
16863
18220
  requestId: z.ZodString;
16864
- project: z.ZodNullable<z.ZodObject<{
16865
- projectId: z.ZodString;
16866
- projectDisplayName: z.ZodString;
16867
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16868
- projectRootPath: z.ZodString;
16869
- projectKind: z.ZodEnum<{
16870
- git: "git";
16871
- directory: "directory";
16872
- non_git: "non_git";
18221
+ workspaceId: z.ZodString;
18222
+ scriptName: z.ZodString;
18223
+ terminalId: z.ZodNullable<z.ZodString>;
18224
+ error: z.ZodNullable<z.ZodString>;
18225
+ }, z.core.$strip>;
18226
+ }, z.core.$strip>, z.ZodObject<{
18227
+ type: z.ZodLiteral<"list_available_editors_response">;
18228
+ payload: z.ZodObject<{
18229
+ requestId: z.ZodString;
18230
+ editors: z.ZodArray<z.ZodObject<{
18231
+ id: z.ZodString;
18232
+ label: z.ZodString;
18233
+ }, z.core.$strip>>;
18234
+ error: z.ZodNullable<z.ZodString>;
18235
+ }, z.core.$strip>;
18236
+ }, z.core.$strip>, z.ZodObject<{
18237
+ type: z.ZodLiteral<"open_in_editor_response">;
18238
+ payload: z.ZodObject<{
18239
+ requestId: z.ZodString;
18240
+ error: z.ZodNullable<z.ZodString>;
18241
+ }, z.core.$strip>;
18242
+ }, z.core.$strip>, z.ZodObject<{
18243
+ type: z.ZodLiteral<"archive_workspace_response">;
18244
+ payload: z.ZodObject<{
18245
+ requestId: z.ZodString;
18246
+ workspaceId: z.ZodString;
18247
+ archivedAt: z.ZodNullable<z.ZodString>;
18248
+ error: z.ZodNullable<z.ZodString>;
18249
+ deletedBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18250
+ }, z.core.$strip>;
18251
+ }, z.core.$strip>, z.ZodObject<{
18252
+ type: z.ZodLiteral<"workspace.archive.preflight.response">;
18253
+ payload: z.ZodObject<{
18254
+ requestId: z.ZodString;
18255
+ workspaceId: z.ZodString;
18256
+ detection: z.ZodNullable<z.ZodObject<{
18257
+ isOttoWorktree: z.ZodBoolean;
18258
+ branchName: z.ZodNullable<z.ZodString>;
18259
+ baseBranch: z.ZodNullable<z.ZodString>;
18260
+ mergeState: z.ZodEnum<{
18261
+ unknown: "unknown";
18262
+ merged: "merged";
18263
+ unmerged: "unmerged";
16873
18264
  }>;
18265
+ unmergedCommitCount: z.ZodNullable<z.ZodNumber>;
18266
+ hasRemoteBranch: z.ZodBoolean;
18267
+ branchCheckedOutElsewhere: z.ZodBoolean;
18268
+ directoryWillBeRemoved: z.ZodBoolean;
16874
18269
  }, z.core.$strip>>;
16875
18270
  error: z.ZodNullable<z.ZodString>;
16876
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16877
- directory_not_found: "directory_not_found";
16878
- }>>>>;
16879
18271
  }, z.core.$strip>;
16880
18272
  }, z.core.$strip>, z.ZodObject<{
16881
- type: z.ZodLiteral<"open_project_response">;
18273
+ type: z.ZodLiteral<"worktree.reattach.list.response">;
18274
+ payload: z.ZodObject<{
18275
+ requestId: z.ZodString;
18276
+ candidates: z.ZodArray<z.ZodObject<{
18277
+ workspaceId: z.ZodNullable<z.ZodString>;
18278
+ worktreePath: z.ZodString;
18279
+ branchName: z.ZodNullable<z.ZodString>;
18280
+ baseBranch: z.ZodNullable<z.ZodString>;
18281
+ directoryOnDisk: z.ZodBoolean;
18282
+ displayName: z.ZodNullable<z.ZodString>;
18283
+ archivedAt: z.ZodNullable<z.ZodString>;
18284
+ }, z.core.$strip>>;
18285
+ error: z.ZodNullable<z.ZodString>;
18286
+ }, z.core.$strip>;
18287
+ }, z.core.$strip>, z.ZodObject<{
18288
+ type: z.ZodLiteral<"worktree.reattach.response">;
16882
18289
  payload: z.ZodObject<{
16883
18290
  requestId: z.ZodString;
16884
18291
  workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
@@ -17286,42 +18693,6 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
17286
18693
  } | undefined;
17287
18694
  }>>>;
17288
18695
  error: z.ZodNullable<z.ZodString>;
17289
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17290
- directory_not_found: "directory_not_found";
17291
- }>>>>;
17292
- }, z.core.$strip>;
17293
- }, z.core.$strip>, z.ZodObject<{
17294
- type: z.ZodLiteral<"start_workspace_script_response">;
17295
- payload: z.ZodObject<{
17296
- requestId: z.ZodString;
17297
- workspaceId: z.ZodString;
17298
- scriptName: z.ZodString;
17299
- terminalId: z.ZodNullable<z.ZodString>;
17300
- error: z.ZodNullable<z.ZodString>;
17301
- }, z.core.$strip>;
17302
- }, z.core.$strip>, z.ZodObject<{
17303
- type: z.ZodLiteral<"list_available_editors_response">;
17304
- payload: z.ZodObject<{
17305
- requestId: z.ZodString;
17306
- editors: z.ZodArray<z.ZodObject<{
17307
- id: z.ZodString;
17308
- label: z.ZodString;
17309
- }, z.core.$strip>>;
17310
- error: z.ZodNullable<z.ZodString>;
17311
- }, z.core.$strip>;
17312
- }, z.core.$strip>, z.ZodObject<{
17313
- type: z.ZodLiteral<"open_in_editor_response">;
17314
- payload: z.ZodObject<{
17315
- requestId: z.ZodString;
17316
- error: z.ZodNullable<z.ZodString>;
17317
- }, z.core.$strip>;
17318
- }, z.core.$strip>, z.ZodObject<{
17319
- type: z.ZodLiteral<"archive_workspace_response">;
17320
- payload: z.ZodObject<{
17321
- requestId: z.ZodString;
17322
- workspaceId: z.ZodString;
17323
- archivedAt: z.ZodNullable<z.ZodString>;
17324
- error: z.ZodNullable<z.ZodString>;
17325
18696
  }, z.core.$strip>;
17326
18697
  }, z.core.$strip>, z.ZodObject<{
17327
18698
  type: z.ZodLiteral<"fetch_agent_response">;
@@ -18330,6 +19701,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
18330
19701
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
18331
19702
  }, z.core.$loose>>;
18332
19703
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
19704
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
18333
19705
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
18334
19706
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
18335
19707
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -18486,6 +19858,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
18486
19858
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
18487
19859
  }, z.core.$loose>>;
18488
19860
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
19861
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
18489
19862
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
18490
19863
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
18491
19864
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -18632,6 +20005,19 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
18632
20005
  format: z.ZodOptional<z.ZodString>;
18633
20006
  error: z.ZodOptional<z.ZodString>;
18634
20007
  }, z.core.$loose>;
20008
+ }, z.core.$strip>, z.ZodObject<{
20009
+ type: z.ZodLiteral<"speech.tts.speak.response">;
20010
+ payload: z.ZodObject<{
20011
+ requestId: z.ZodString;
20012
+ ok: z.ZodOptional<z.ZodBoolean>;
20013
+ canceled: z.ZodOptional<z.ZodBoolean>;
20014
+ error: z.ZodOptional<z.ZodString>;
20015
+ }, z.core.$loose>;
20016
+ }, z.core.$strip>, z.ZodObject<{
20017
+ type: z.ZodLiteral<"speech.tts.speak.cancel.response">;
20018
+ payload: z.ZodObject<{
20019
+ requestId: z.ZodString;
20020
+ }, z.core.$loose>;
18635
20021
  }, z.core.$strip>, z.ZodObject<{
18636
20022
  type: z.ZodLiteral<"visualizer.voiceCues.generate.response">;
18637
20023
  payload: z.ZodObject<{
@@ -19861,7 +21247,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
19861
21247
  runs: z.ZodArray<z.ZodObject<{
19862
21248
  id: z.ZodString;
19863
21249
  title: z.ZodString;
21250
+ description: z.ZodOptional<z.ZodString>;
19864
21251
  status: z.ZodString;
21252
+ kind: z.ZodOptional<z.ZodString>;
21253
+ graphId: z.ZodOptional<z.ZodString>;
21254
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19865
21255
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
19866
21256
  autopilot: z.ZodOptional<z.ZodBoolean>;
19867
21257
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -19913,7 +21303,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
19913
21303
  run: z.ZodObject<{
19914
21304
  id: z.ZodString;
19915
21305
  title: z.ZodString;
21306
+ description: z.ZodOptional<z.ZodString>;
19916
21307
  status: z.ZodString;
21308
+ kind: z.ZodOptional<z.ZodString>;
21309
+ graphId: z.ZodOptional<z.ZodString>;
21310
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19917
21311
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
19918
21312
  autopilot: z.ZodOptional<z.ZodBoolean>;
19919
21313
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -19983,6 +21377,166 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
19983
21377
  payload: z.ZodObject<{
19984
21378
  runIds: z.ZodArray<z.ZodString>;
19985
21379
  }, z.core.$strip>;
21380
+ }, z.core.$strip>, z.ZodObject<{
21381
+ type: z.ZodLiteral<"runs.graphs.list.response">;
21382
+ payload: z.ZodObject<{
21383
+ graphs: z.ZodArray<z.ZodObject<{
21384
+ id: z.ZodString;
21385
+ name: z.ZodString;
21386
+ description: z.ZodOptional<z.ZodString>;
21387
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
21388
+ key: z.ZodString;
21389
+ label: z.ZodString;
21390
+ description: z.ZodOptional<z.ZodString>;
21391
+ multiline: z.ZodOptional<z.ZodBoolean>;
21392
+ required: z.ZodOptional<z.ZodBoolean>;
21393
+ defaultValue: z.ZodOptional<z.ZodString>;
21394
+ }, z.core.$loose>>>;
21395
+ nodes: z.ZodArray<z.ZodObject<{
21396
+ id: z.ZodString;
21397
+ kind: z.ZodString;
21398
+ title: z.ZodString;
21399
+ role: z.ZodOptional<z.ZodString>;
21400
+ prompt: z.ZodOptional<z.ZodString>;
21401
+ promptFromInput: z.ZodOptional<z.ZodString>;
21402
+ autonomous: z.ZodOptional<z.ZodBoolean>;
21403
+ loop: z.ZodOptional<z.ZodObject<{
21404
+ times: z.ZodOptional<z.ZodNumber>;
21405
+ until: z.ZodOptional<z.ZodObject<{
21406
+ criteria: z.ZodArray<z.ZodString>;
21407
+ judgeRole: z.ZodOptional<z.ZodString>;
21408
+ max: z.ZodNumber;
21409
+ }, z.core.$loose>>;
21410
+ }, z.core.$loose>>;
21411
+ model: z.ZodOptional<z.ZodString>;
21412
+ position: z.ZodOptional<z.ZodObject<{
21413
+ x: z.ZodNumber;
21414
+ y: z.ZodNumber;
21415
+ }, z.core.$loose>>;
21416
+ }, z.core.$loose>>;
21417
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
21418
+ id: z.ZodOptional<z.ZodString>;
21419
+ from: z.ZodString;
21420
+ to: z.ZodString;
21421
+ }, z.core.$loose>>>;
21422
+ builtIn: z.ZodOptional<z.ZodBoolean>;
21423
+ createdAt: z.ZodOptional<z.ZodString>;
21424
+ updatedAt: z.ZodOptional<z.ZodString>;
21425
+ }, z.core.$loose>>;
21426
+ requestId: z.ZodString;
21427
+ }, z.core.$strip>;
21428
+ }, z.core.$strip>, z.ZodObject<{
21429
+ type: z.ZodLiteral<"runs.graphs.save.response">;
21430
+ payload: z.ZodObject<{
21431
+ graph: z.ZodOptional<z.ZodObject<{
21432
+ id: z.ZodString;
21433
+ name: z.ZodString;
21434
+ description: z.ZodOptional<z.ZodString>;
21435
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
21436
+ key: z.ZodString;
21437
+ label: z.ZodString;
21438
+ description: z.ZodOptional<z.ZodString>;
21439
+ multiline: z.ZodOptional<z.ZodBoolean>;
21440
+ required: z.ZodOptional<z.ZodBoolean>;
21441
+ defaultValue: z.ZodOptional<z.ZodString>;
21442
+ }, z.core.$loose>>>;
21443
+ nodes: z.ZodArray<z.ZodObject<{
21444
+ id: z.ZodString;
21445
+ kind: z.ZodString;
21446
+ title: z.ZodString;
21447
+ role: z.ZodOptional<z.ZodString>;
21448
+ prompt: z.ZodOptional<z.ZodString>;
21449
+ promptFromInput: z.ZodOptional<z.ZodString>;
21450
+ autonomous: z.ZodOptional<z.ZodBoolean>;
21451
+ loop: z.ZodOptional<z.ZodObject<{
21452
+ times: z.ZodOptional<z.ZodNumber>;
21453
+ until: z.ZodOptional<z.ZodObject<{
21454
+ criteria: z.ZodArray<z.ZodString>;
21455
+ judgeRole: z.ZodOptional<z.ZodString>;
21456
+ max: z.ZodNumber;
21457
+ }, z.core.$loose>>;
21458
+ }, z.core.$loose>>;
21459
+ model: z.ZodOptional<z.ZodString>;
21460
+ position: z.ZodOptional<z.ZodObject<{
21461
+ x: z.ZodNumber;
21462
+ y: z.ZodNumber;
21463
+ }, z.core.$loose>>;
21464
+ }, z.core.$loose>>;
21465
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
21466
+ id: z.ZodOptional<z.ZodString>;
21467
+ from: z.ZodString;
21468
+ to: z.ZodString;
21469
+ }, z.core.$loose>>>;
21470
+ builtIn: z.ZodOptional<z.ZodBoolean>;
21471
+ createdAt: z.ZodOptional<z.ZodString>;
21472
+ updatedAt: z.ZodOptional<z.ZodString>;
21473
+ }, z.core.$loose>>;
21474
+ error: z.ZodOptional<z.ZodString>;
21475
+ requestId: z.ZodString;
21476
+ }, z.core.$strip>;
21477
+ }, z.core.$strip>, z.ZodObject<{
21478
+ type: z.ZodLiteral<"runs.graphs.delete.response">;
21479
+ payload: z.ZodObject<{
21480
+ deleted: z.ZodBoolean;
21481
+ error: z.ZodOptional<z.ZodString>;
21482
+ requestId: z.ZodString;
21483
+ }, z.core.$strip>;
21484
+ }, z.core.$strip>, z.ZodObject<{
21485
+ type: z.ZodLiteral<"runs.graphs.changed.notification">;
21486
+ payload: z.ZodObject<{
21487
+ graphs: z.ZodArray<z.ZodObject<{
21488
+ id: z.ZodString;
21489
+ name: z.ZodString;
21490
+ description: z.ZodOptional<z.ZodString>;
21491
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
21492
+ key: z.ZodString;
21493
+ label: z.ZodString;
21494
+ description: z.ZodOptional<z.ZodString>;
21495
+ multiline: z.ZodOptional<z.ZodBoolean>;
21496
+ required: z.ZodOptional<z.ZodBoolean>;
21497
+ defaultValue: z.ZodOptional<z.ZodString>;
21498
+ }, z.core.$loose>>>;
21499
+ nodes: z.ZodArray<z.ZodObject<{
21500
+ id: z.ZodString;
21501
+ kind: z.ZodString;
21502
+ title: z.ZodString;
21503
+ role: z.ZodOptional<z.ZodString>;
21504
+ prompt: z.ZodOptional<z.ZodString>;
21505
+ promptFromInput: z.ZodOptional<z.ZodString>;
21506
+ autonomous: z.ZodOptional<z.ZodBoolean>;
21507
+ loop: z.ZodOptional<z.ZodObject<{
21508
+ times: z.ZodOptional<z.ZodNumber>;
21509
+ until: z.ZodOptional<z.ZodObject<{
21510
+ criteria: z.ZodArray<z.ZodString>;
21511
+ judgeRole: z.ZodOptional<z.ZodString>;
21512
+ max: z.ZodNumber;
21513
+ }, z.core.$loose>>;
21514
+ }, z.core.$loose>>;
21515
+ model: z.ZodOptional<z.ZodString>;
21516
+ position: z.ZodOptional<z.ZodObject<{
21517
+ x: z.ZodNumber;
21518
+ y: z.ZodNumber;
21519
+ }, z.core.$loose>>;
21520
+ }, z.core.$loose>>;
21521
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
21522
+ id: z.ZodOptional<z.ZodString>;
21523
+ from: z.ZodString;
21524
+ to: z.ZodString;
21525
+ }, z.core.$loose>>>;
21526
+ builtIn: z.ZodOptional<z.ZodBoolean>;
21527
+ createdAt: z.ZodOptional<z.ZodString>;
21528
+ updatedAt: z.ZodOptional<z.ZodString>;
21529
+ }, z.core.$loose>>;
21530
+ }, z.core.$strip>;
21531
+ }, z.core.$strip>, z.ZodObject<{
21532
+ type: z.ZodLiteral<"runs.start.response">;
21533
+ payload: z.ZodObject<{
21534
+ runId: z.ZodOptional<z.ZodString>;
21535
+ agentId: z.ZodOptional<z.ZodString>;
21536
+ workspaceId: z.ZodOptional<z.ZodString>;
21537
+ error: z.ZodOptional<z.ZodString>;
21538
+ requestId: z.ZodString;
21539
+ }, z.core.$strip>;
19986
21540
  }, z.core.$strip>, z.ZodObject<{
19987
21541
  type: z.ZodLiteral<"checkout_merge_response">;
19988
21542
  payload: z.ZodObject<{
@@ -21125,8 +22679,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
21125
22679
  cwd: z.ZodString;
21126
22680
  path: z.ZodString;
21127
22681
  change: z.ZodEnum<{
21128
- changed: "changed";
21129
22682
  deleted: "deleted";
22683
+ changed: "changed";
21130
22684
  recreated: "recreated";
21131
22685
  }>;
21132
22686
  modifiedAt: z.ZodNullable<z.ZodString>;
@@ -23313,6 +24867,12 @@ export type ProjectCheckoutLitePayload = z.infer<typeof ProjectCheckoutLitePaylo
23313
24867
  export type ProjectPlacementPayload = z.infer<typeof ProjectPlacementPayloadSchema>;
23314
24868
  export type WorkspaceStateBucket = z.infer<typeof WorkspaceStateBucketSchema>;
23315
24869
  export type WorkspaceDescriptorPayload = z.infer<typeof WorkspaceDescriptorPayloadSchema>;
24870
+ export type WorktreeReattachTarget = z.infer<typeof WorktreeReattachTargetSchema>;
24871
+ export type WorktreeReattachRequest = z.infer<typeof WorktreeReattachRequestSchema>;
24872
+ export type WorktreeReattachListRequest = z.infer<typeof WorktreeReattachListRequestSchema>;
24873
+ export type WorktreeReattachCandidate = z.infer<typeof WorktreeReattachCandidateSchema>;
24874
+ export type WorktreeReattachListResponse = z.infer<typeof WorktreeReattachListResponseSchema>;
24875
+ export type WorktreeReattachResponse = z.infer<typeof WorktreeReattachResponseSchema>;
23316
24876
  export type WorkspaceProjectDescriptorPayload = z.infer<typeof WorkspaceProjectDescriptorPayloadSchema>;
23317
24877
  export type WorkspaceScriptLifecycle = z.infer<typeof WorkspaceScriptLifecycleSchema>;
23318
24878
  export type WorkspaceScriptHealth = z.infer<typeof WorkspaceScriptHealthSchema>;
@@ -23328,6 +24888,9 @@ export type StartWorkspaceScriptResponseMessage = z.infer<typeof StartWorkspaceS
23328
24888
  export type LegacyListAvailableEditorsResponseMessage = z.infer<typeof LegacyListAvailableEditorsResponseMessageSchema>;
23329
24889
  export type LegacyOpenInEditorResponseMessage = z.infer<typeof LegacyOpenInEditorResponseMessageSchema>;
23330
24890
  export type ArchiveWorkspaceResponseMessage = z.infer<typeof ArchiveWorkspaceResponseMessageSchema>;
24891
+ export type WorkspaceArchivePreflightRequest = z.infer<typeof WorkspaceArchivePreflightRequestSchema>;
24892
+ export type WorkspaceArchivePreflightResponse = z.infer<typeof WorkspaceArchivePreflightResponseSchema>;
24893
+ export type WorktreeArchiveBranchDetection = z.infer<typeof WorktreeArchiveBranchDetectionSchema>;
23331
24894
  export type FetchAgentResponseMessage = z.infer<typeof FetchAgentResponseMessageSchema>;
23332
24895
  export type FetchAgentTimelineResponseMessage = z.infer<typeof FetchAgentTimelineResponseMessageSchema>;
23333
24896
  export type AgentForkContextResponseMessage = z.infer<typeof AgentForkContextResponseMessageSchema>;
@@ -23709,7 +25272,7 @@ export declare const WSHelloMessageSchema: z.ZodObject<{
23709
25272
  custom_mode_icons: z.ZodOptional<z.ZodBoolean>;
23710
25273
  terminal_reflowable_snapshot: z.ZodOptional<z.ZodBoolean>;
23711
25274
  browser_host: z.ZodOptional<z.ZodObject<{
23712
- supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "select" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "inspect" | "network" | "scroll" | "resize" | "close_tab" | "focus_tab" | "page_text" | "set_color_scheme" | "screenshot_element")[], string[]>>;
25275
+ supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "fill" | "select" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "inspect" | "network" | "scroll" | "resize" | "close_tab" | "focus_tab" | "page_text" | "set_color_scheme" | "screenshot_element")[], string[]>>;
23713
25276
  hostKind: z.ZodDefault<z.ZodString>;
23714
25277
  }, z.core.$loose>>;
23715
25278
  }, z.core.$loose>>;
@@ -24325,6 +25888,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
24325
25888
  preferWriterPersonalities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24326
25889
  }, z.core.$loose>>>;
24327
25890
  autoArchiveAfterMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
25891
+ hideMergeIntoBaseAction: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
24328
25892
  enableTerminalAgentHooks: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
24329
25893
  appendSystemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
24330
25894
  terminalProfiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -24437,6 +26001,18 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
24437
26001
  model: z.ZodOptional<z.ZodString>;
24438
26002
  name: z.ZodString;
24439
26003
  }, z.core.$loose>>;
26004
+ }, z.core.$strip>, z.ZodObject<{
26005
+ type: z.ZodLiteral<"speech.tts.speak.request">;
26006
+ requestId: z.ZodString;
26007
+ text: z.ZodString;
26008
+ voice: z.ZodOptional<z.ZodObject<{
26009
+ provider: z.ZodOptional<z.ZodString>;
26010
+ model: z.ZodOptional<z.ZodString>;
26011
+ name: z.ZodString;
26012
+ }, z.core.$loose>>;
26013
+ }, z.core.$strip>, z.ZodObject<{
26014
+ type: z.ZodLiteral<"speech.tts.speak.cancel.request">;
26015
+ requestId: z.ZodString;
24440
26016
  }, z.core.$strip>, z.ZodObject<{
24441
26017
  type: z.ZodLiteral<"visualizer.voiceCues.generate.request">;
24442
26018
  requestId: z.ZodString;
@@ -24994,6 +26570,76 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
24994
26570
  }, z.core.$strip>, z.ZodObject<{
24995
26571
  type: z.ZodLiteral<"runs.clear.request">;
24996
26572
  requestId: z.ZodString;
26573
+ }, z.core.$strip>, z.ZodObject<{
26574
+ type: z.ZodLiteral<"runs.graphs.list.request">;
26575
+ requestId: z.ZodString;
26576
+ }, z.core.$strip>, z.ZodObject<{
26577
+ type: z.ZodLiteral<"runs.graphs.save.request">;
26578
+ graph: z.ZodObject<{
26579
+ id: z.ZodString;
26580
+ name: z.ZodString;
26581
+ description: z.ZodOptional<z.ZodString>;
26582
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
26583
+ key: z.ZodString;
26584
+ label: z.ZodString;
26585
+ description: z.ZodOptional<z.ZodString>;
26586
+ multiline: z.ZodOptional<z.ZodBoolean>;
26587
+ required: z.ZodOptional<z.ZodBoolean>;
26588
+ defaultValue: z.ZodOptional<z.ZodString>;
26589
+ }, z.core.$loose>>>;
26590
+ nodes: z.ZodArray<z.ZodObject<{
26591
+ id: z.ZodString;
26592
+ kind: z.ZodString;
26593
+ title: z.ZodString;
26594
+ role: z.ZodOptional<z.ZodString>;
26595
+ prompt: z.ZodOptional<z.ZodString>;
26596
+ promptFromInput: z.ZodOptional<z.ZodString>;
26597
+ autonomous: z.ZodOptional<z.ZodBoolean>;
26598
+ loop: z.ZodOptional<z.ZodObject<{
26599
+ times: z.ZodOptional<z.ZodNumber>;
26600
+ until: z.ZodOptional<z.ZodObject<{
26601
+ criteria: z.ZodArray<z.ZodString>;
26602
+ judgeRole: z.ZodOptional<z.ZodString>;
26603
+ max: z.ZodNumber;
26604
+ }, z.core.$loose>>;
26605
+ }, z.core.$loose>>;
26606
+ model: z.ZodOptional<z.ZodString>;
26607
+ position: z.ZodOptional<z.ZodObject<{
26608
+ x: z.ZodNumber;
26609
+ y: z.ZodNumber;
26610
+ }, z.core.$loose>>;
26611
+ }, z.core.$loose>>;
26612
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
26613
+ id: z.ZodOptional<z.ZodString>;
26614
+ from: z.ZodString;
26615
+ to: z.ZodString;
26616
+ }, z.core.$loose>>>;
26617
+ builtIn: z.ZodOptional<z.ZodBoolean>;
26618
+ createdAt: z.ZodOptional<z.ZodString>;
26619
+ updatedAt: z.ZodOptional<z.ZodString>;
26620
+ }, z.core.$loose>;
26621
+ requestId: z.ZodString;
26622
+ }, z.core.$strip>, z.ZodObject<{
26623
+ type: z.ZodLiteral<"runs.graphs.delete.request">;
26624
+ graphId: z.ZodString;
26625
+ requestId: z.ZodString;
26626
+ }, z.core.$strip>, z.ZodObject<{
26627
+ type: z.ZodLiteral<"runs.start.request">;
26628
+ flavor: z.ZodString;
26629
+ cwd: z.ZodString;
26630
+ workspaceId: z.ZodOptional<z.ZodString>;
26631
+ title: z.ZodOptional<z.ZodString>;
26632
+ description: z.ZodOptional<z.ZodString>;
26633
+ orchestratorPersonalityId: z.ZodOptional<z.ZodString>;
26634
+ orchestratorProvider: z.ZodOptional<z.ZodString>;
26635
+ orchestratorModel: z.ZodOptional<z.ZodString>;
26636
+ orchestratorThinkingOptionId: z.ZodOptional<z.ZodString>;
26637
+ prompt: z.ZodOptional<z.ZodString>;
26638
+ graphId: z.ZodOptional<z.ZodString>;
26639
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26640
+ draft: z.ZodOptional<z.ZodBoolean>;
26641
+ runId: z.ZodOptional<z.ZodString>;
26642
+ requestId: z.ZodString;
24997
26643
  }, z.core.$strip>, z.ZodObject<{
24998
26644
  type: z.ZodLiteral<"checkout_merge_request">;
24999
26645
  cwd: z.ZodString;
@@ -25369,6 +27015,30 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
25369
27015
  type: z.ZodLiteral<"archive_workspace_request">;
25370
27016
  workspaceId: z.ZodString;
25371
27017
  requestId: z.ZodString;
27018
+ branchDisposition: z.ZodOptional<z.ZodEnum<{
27019
+ keep: "keep";
27020
+ delete: "delete";
27021
+ }>>;
27022
+ }, z.core.$strip>, z.ZodObject<{
27023
+ type: z.ZodLiteral<"workspace.archive.preflight.request">;
27024
+ requestId: z.ZodString;
27025
+ workspaceId: z.ZodString;
27026
+ }, z.core.$strip>, z.ZodObject<{
27027
+ type: z.ZodLiteral<"worktree.reattach.list.request">;
27028
+ requestId: z.ZodString;
27029
+ projectId: z.ZodOptional<z.ZodString>;
27030
+ cwd: z.ZodOptional<z.ZodString>;
27031
+ }, z.core.$strip>, z.ZodObject<{
27032
+ type: z.ZodLiteral<"worktree.reattach.request">;
27033
+ requestId: z.ZodString;
27034
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
27035
+ kind: z.ZodLiteral<"workspace">;
27036
+ workspaceId: z.ZodString;
27037
+ }, z.core.$strip>, z.ZodObject<{
27038
+ kind: z.ZodLiteral<"orphan">;
27039
+ worktreePath: z.ZodString;
27040
+ projectId: z.ZodOptional<z.ZodString>;
27041
+ }, z.core.$strip>], "kind">;
25372
27042
  }, z.core.$strip>, z.ZodObject<{
25373
27043
  type: z.ZodLiteral<"workspace.create.request">;
25374
27044
  requestId: z.ZodString;
@@ -27427,8 +29097,450 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
27427
29097
  mainRepoRoot: string;
27428
29098
  worktreeRoot?: string | undefined;
27429
29099
  }>>]>;
27430
- }, z.core.$strip>;
27431
- }, z.core.$strip>>;
29100
+ }, z.core.$strip>;
29101
+ }, z.core.$strip>>;
29102
+ pageInfo: z.ZodObject<{
29103
+ nextCursor: z.ZodNullable<z.ZodString>;
29104
+ prevCursor: z.ZodNullable<z.ZodString>;
29105
+ hasMore: z.ZodBoolean;
29106
+ }, z.core.$strip>;
29107
+ }, z.core.$strip>;
29108
+ }, z.core.$strip>, z.ZodObject<{
29109
+ type: z.ZodLiteral<"fetch_recent_provider_sessions_response">;
29110
+ payload: z.ZodObject<{
29111
+ requestId: z.ZodString;
29112
+ entries: z.ZodArray<z.ZodObject<{
29113
+ providerId: z.ZodString;
29114
+ providerLabel: z.ZodString;
29115
+ providerHandleId: z.ZodString;
29116
+ cwd: z.ZodString;
29117
+ title: z.ZodNullable<z.ZodString>;
29118
+ firstPromptPreview: z.ZodNullable<z.ZodString>;
29119
+ lastPromptPreview: z.ZodNullable<z.ZodString>;
29120
+ lastActivityAt: z.ZodString;
29121
+ }, z.core.$strip>>;
29122
+ filteredAlreadyImportedCount: z.ZodOptional<z.ZodNumber>;
29123
+ }, z.core.$strip>;
29124
+ }, z.core.$strip>, z.ZodObject<{
29125
+ type: z.ZodLiteral<"fetch_workspaces_response">;
29126
+ payload: z.ZodObject<{
29127
+ requestId: z.ZodString;
29128
+ subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29129
+ entries: z.ZodArray<z.ZodPipe<z.ZodObject<{
29130
+ id: z.ZodString;
29131
+ projectId: z.ZodString;
29132
+ projectDisplayName: z.ZodString;
29133
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29134
+ projectRootPath: z.ZodString;
29135
+ workspaceDirectory: z.ZodOptional<z.ZodString>;
29136
+ projectKind: z.ZodEnum<{
29137
+ git: "git";
29138
+ directory: "directory";
29139
+ non_git: "non_git";
29140
+ }>;
29141
+ workspaceKind: z.ZodEnum<{
29142
+ worktree: "worktree";
29143
+ checkout: "checkout";
29144
+ directory: "directory";
29145
+ local_checkout: "local_checkout";
29146
+ }>;
29147
+ name: z.ZodString;
29148
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29149
+ archivingAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
29150
+ status: z.ZodEnum<{
29151
+ running: "running";
29152
+ attention: "attention";
29153
+ needs_input: "needs_input";
29154
+ done: "done";
29155
+ failed: "failed";
29156
+ }>;
29157
+ statusEnteredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
29158
+ activityAt: z.ZodNullable<z.ZodString>;
29159
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29160
+ additions: z.ZodNumber;
29161
+ deletions: z.ZodNumber;
29162
+ }, z.core.$strip>>>;
29163
+ scripts: z.ZodDefault<z.ZodArray<z.ZodObject<{
29164
+ scriptName: z.ZodString;
29165
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
29166
+ script: "script";
29167
+ service: "service";
29168
+ }>>>;
29169
+ hostname: z.ZodString;
29170
+ port: z.ZodNullable<z.ZodNumber>;
29171
+ localProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29172
+ publicProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29173
+ proxyUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
29174
+ lifecycle: z.ZodEnum<{
29175
+ running: "running";
29176
+ stopped: "stopped";
29177
+ }>;
29178
+ health: z.ZodNullable<z.ZodEnum<{
29179
+ healthy: "healthy";
29180
+ unhealthy: "unhealthy";
29181
+ }>>;
29182
+ exitCode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
29183
+ terminalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
29184
+ }, z.core.$strip>>>;
29185
+ gitRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
29186
+ currentBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29187
+ remoteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29188
+ isOttoOwnedWorktree: z.ZodOptional<z.ZodBoolean>;
29189
+ isDirty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29190
+ aheadBehind: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29191
+ ahead: z.ZodNumber;
29192
+ behind: z.ZodNumber;
29193
+ }, z.core.$strip>>>;
29194
+ aheadOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29195
+ behindOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29196
+ }, z.core.$strip>>>;
29197
+ githubRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
29198
+ featuresEnabled: z.ZodOptional<z.ZodBoolean>;
29199
+ pullRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29200
+ number: z.ZodOptional<z.ZodNumber>;
29201
+ url: z.ZodString;
29202
+ title: z.ZodString;
29203
+ state: z.ZodString;
29204
+ baseRefName: z.ZodString;
29205
+ headRefName: z.ZodString;
29206
+ isMerged: z.ZodBoolean;
29207
+ isDraft: z.ZodOptional<z.ZodBoolean>;
29208
+ mergeable: z.ZodOptional<z.ZodCatch<z.ZodEnum<{
29209
+ UNKNOWN: "UNKNOWN";
29210
+ MERGEABLE: "MERGEABLE";
29211
+ CONFLICTING: "CONFLICTING";
29212
+ }>>>;
29213
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
29214
+ name: z.ZodString;
29215
+ status: z.ZodEnum<{
29216
+ success: "success";
29217
+ pending: "pending";
29218
+ skipped: "skipped";
29219
+ failure: "failure";
29220
+ cancelled: "cancelled";
29221
+ }>;
29222
+ url: z.ZodNullable<z.ZodString>;
29223
+ workflow: z.ZodOptional<z.ZodString>;
29224
+ duration: z.ZodOptional<z.ZodString>;
29225
+ }, z.core.$strip>>>;
29226
+ checksStatus: z.ZodOptional<z.ZodEnum<{
29227
+ success: "success";
29228
+ pending: "pending";
29229
+ none: "none";
29230
+ failure: "failure";
29231
+ }>>;
29232
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
29233
+ pending: "pending";
29234
+ approved: "approved";
29235
+ changes_requested: "changes_requested";
29236
+ }>>>;
29237
+ repoOwner: z.ZodOptional<z.ZodString>;
29238
+ repoName: z.ZodOptional<z.ZodString>;
29239
+ github: z.ZodOptional<z.ZodUnknown>;
29240
+ }, z.core.$strip>>>;
29241
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29242
+ message: z.ZodString;
29243
+ }, z.core.$strip>>>;
29244
+ refreshedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29245
+ }, z.core.$strip>>>;
29246
+ project: z.ZodOptional<z.ZodObject<{
29247
+ projectKey: z.ZodString;
29248
+ projectName: z.ZodString;
29249
+ workspaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29250
+ checkout: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
29251
+ cwd: z.ZodString;
29252
+ isGit: z.ZodLiteral<false>;
29253
+ currentBranch: z.ZodNull;
29254
+ remoteUrl: z.ZodNull;
29255
+ worktreeRoot: z.ZodOptional<z.ZodNull>;
29256
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
29257
+ mainRepoRoot: z.ZodNull;
29258
+ }, z.core.$strip>, z.ZodTransform<{
29259
+ worktreeRoot: null;
29260
+ cwd: string;
29261
+ isGit: false;
29262
+ currentBranch: null;
29263
+ remoteUrl: null;
29264
+ isOttoOwnedWorktree: false;
29265
+ mainRepoRoot: null;
29266
+ }, {
29267
+ cwd: string;
29268
+ isGit: false;
29269
+ currentBranch: null;
29270
+ remoteUrl: null;
29271
+ isOttoOwnedWorktree: false;
29272
+ mainRepoRoot: null;
29273
+ worktreeRoot?: null | undefined;
29274
+ }>>, z.ZodPipe<z.ZodObject<{
29275
+ cwd: z.ZodString;
29276
+ isGit: z.ZodLiteral<true>;
29277
+ currentBranch: z.ZodNullable<z.ZodString>;
29278
+ remoteUrl: z.ZodNullable<z.ZodString>;
29279
+ worktreeRoot: z.ZodOptional<z.ZodString>;
29280
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
29281
+ mainRepoRoot: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
29282
+ }, z.core.$strip>, z.ZodTransform<{
29283
+ worktreeRoot: string;
29284
+ cwd: string;
29285
+ isGit: true;
29286
+ currentBranch: string | null;
29287
+ remoteUrl: string | null;
29288
+ isOttoOwnedWorktree: false;
29289
+ mainRepoRoot: string | null;
29290
+ }, {
29291
+ cwd: string;
29292
+ isGit: true;
29293
+ currentBranch: string | null;
29294
+ remoteUrl: string | null;
29295
+ isOttoOwnedWorktree: false;
29296
+ mainRepoRoot: string | null;
29297
+ worktreeRoot?: string | undefined;
29298
+ }>>, z.ZodPipe<z.ZodObject<{
29299
+ cwd: z.ZodString;
29300
+ isGit: z.ZodLiteral<true>;
29301
+ currentBranch: z.ZodNullable<z.ZodString>;
29302
+ remoteUrl: z.ZodNullable<z.ZodString>;
29303
+ worktreeRoot: z.ZodOptional<z.ZodString>;
29304
+ isOttoOwnedWorktree: z.ZodLiteral<true>;
29305
+ mainRepoRoot: z.ZodString;
29306
+ }, z.core.$strip>, z.ZodTransform<{
29307
+ worktreeRoot: string;
29308
+ cwd: string;
29309
+ isGit: true;
29310
+ currentBranch: string | null;
29311
+ remoteUrl: string | null;
29312
+ isOttoOwnedWorktree: true;
29313
+ mainRepoRoot: string;
29314
+ }, {
29315
+ cwd: string;
29316
+ isGit: true;
29317
+ currentBranch: string | null;
29318
+ remoteUrl: string | null;
29319
+ isOttoOwnedWorktree: true;
29320
+ mainRepoRoot: string;
29321
+ worktreeRoot?: string | undefined;
29322
+ }>>]>;
29323
+ }, z.core.$strip>>;
29324
+ }, z.core.$strip>, z.ZodTransform<{
29325
+ workspaceDirectory: string;
29326
+ id: string;
29327
+ projectId: string;
29328
+ projectDisplayName: string;
29329
+ projectRootPath: string;
29330
+ projectKind: "git" | "directory" | "non_git";
29331
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
29332
+ name: string;
29333
+ archivingAt: string | null;
29334
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
29335
+ statusEnteredAt: string | null;
29336
+ activityAt: string | null;
29337
+ scripts: {
29338
+ scriptName: string;
29339
+ type: "script" | "service";
29340
+ hostname: string;
29341
+ port: number | null;
29342
+ proxyUrl: string | null;
29343
+ lifecycle: "running" | "stopped";
29344
+ health: "healthy" | "unhealthy" | null;
29345
+ exitCode: number | null;
29346
+ terminalId: string | null;
29347
+ localProxyUrl?: string | null | undefined;
29348
+ publicProxyUrl?: string | null | undefined;
29349
+ }[];
29350
+ projectCustomName?: string | null | undefined;
29351
+ title?: string | null | undefined;
29352
+ diffStat?: {
29353
+ additions: number;
29354
+ deletions: number;
29355
+ } | null | undefined;
29356
+ gitRuntime?: {
29357
+ currentBranch?: string | null | undefined;
29358
+ remoteUrl?: string | null | undefined;
29359
+ isOttoOwnedWorktree?: boolean | undefined;
29360
+ isDirty?: boolean | null | undefined;
29361
+ aheadBehind?: {
29362
+ ahead: number;
29363
+ behind: number;
29364
+ } | null | undefined;
29365
+ aheadOfOrigin?: number | null | undefined;
29366
+ behindOfOrigin?: number | null | undefined;
29367
+ } | null | undefined;
29368
+ githubRuntime?: {
29369
+ featuresEnabled?: boolean | undefined;
29370
+ pullRequest?: {
29371
+ url: string;
29372
+ title: string;
29373
+ state: string;
29374
+ baseRefName: string;
29375
+ headRefName: string;
29376
+ isMerged: boolean;
29377
+ number?: number | undefined;
29378
+ isDraft?: boolean | undefined;
29379
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
29380
+ checks?: {
29381
+ name: string;
29382
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
29383
+ url: string | null;
29384
+ workflow?: string | undefined;
29385
+ duration?: string | undefined;
29386
+ }[] | undefined;
29387
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
29388
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
29389
+ repoOwner?: string | undefined;
29390
+ repoName?: string | undefined;
29391
+ github?: unknown;
29392
+ } | null | undefined;
29393
+ error?: {
29394
+ message: string;
29395
+ } | null | undefined;
29396
+ refreshedAt?: string | null | undefined;
29397
+ } | null | undefined;
29398
+ project?: {
29399
+ projectKey: string;
29400
+ projectName: string;
29401
+ checkout: {
29402
+ worktreeRoot: null;
29403
+ cwd: string;
29404
+ isGit: false;
29405
+ currentBranch: null;
29406
+ remoteUrl: null;
29407
+ isOttoOwnedWorktree: false;
29408
+ mainRepoRoot: null;
29409
+ } | {
29410
+ worktreeRoot: string;
29411
+ cwd: string;
29412
+ isGit: true;
29413
+ currentBranch: string | null;
29414
+ remoteUrl: string | null;
29415
+ isOttoOwnedWorktree: false;
29416
+ mainRepoRoot: string | null;
29417
+ } | {
29418
+ worktreeRoot: string;
29419
+ cwd: string;
29420
+ isGit: true;
29421
+ currentBranch: string | null;
29422
+ remoteUrl: string | null;
29423
+ isOttoOwnedWorktree: true;
29424
+ mainRepoRoot: string;
29425
+ };
29426
+ workspaceName?: string | null | undefined;
29427
+ } | undefined;
29428
+ }, {
29429
+ id: string;
29430
+ projectId: string;
29431
+ projectDisplayName: string;
29432
+ projectRootPath: string;
29433
+ projectKind: "git" | "directory" | "non_git";
29434
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
29435
+ name: string;
29436
+ archivingAt: string | null;
29437
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
29438
+ statusEnteredAt: string | null;
29439
+ activityAt: string | null;
29440
+ scripts: {
29441
+ scriptName: string;
29442
+ type: "script" | "service";
29443
+ hostname: string;
29444
+ port: number | null;
29445
+ proxyUrl: string | null;
29446
+ lifecycle: "running" | "stopped";
29447
+ health: "healthy" | "unhealthy" | null;
29448
+ exitCode: number | null;
29449
+ terminalId: string | null;
29450
+ localProxyUrl?: string | null | undefined;
29451
+ publicProxyUrl?: string | null | undefined;
29452
+ }[];
29453
+ projectCustomName?: string | null | undefined;
29454
+ workspaceDirectory?: string | undefined;
29455
+ title?: string | null | undefined;
29456
+ diffStat?: {
29457
+ additions: number;
29458
+ deletions: number;
29459
+ } | null | undefined;
29460
+ gitRuntime?: {
29461
+ currentBranch?: string | null | undefined;
29462
+ remoteUrl?: string | null | undefined;
29463
+ isOttoOwnedWorktree?: boolean | undefined;
29464
+ isDirty?: boolean | null | undefined;
29465
+ aheadBehind?: {
29466
+ ahead: number;
29467
+ behind: number;
29468
+ } | null | undefined;
29469
+ aheadOfOrigin?: number | null | undefined;
29470
+ behindOfOrigin?: number | null | undefined;
29471
+ } | null | undefined;
29472
+ githubRuntime?: {
29473
+ featuresEnabled?: boolean | undefined;
29474
+ pullRequest?: {
29475
+ url: string;
29476
+ title: string;
29477
+ state: string;
29478
+ baseRefName: string;
29479
+ headRefName: string;
29480
+ isMerged: boolean;
29481
+ number?: number | undefined;
29482
+ isDraft?: boolean | undefined;
29483
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
29484
+ checks?: {
29485
+ name: string;
29486
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
29487
+ url: string | null;
29488
+ workflow?: string | undefined;
29489
+ duration?: string | undefined;
29490
+ }[] | undefined;
29491
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
29492
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
29493
+ repoOwner?: string | undefined;
29494
+ repoName?: string | undefined;
29495
+ github?: unknown;
29496
+ } | null | undefined;
29497
+ error?: {
29498
+ message: string;
29499
+ } | null | undefined;
29500
+ refreshedAt?: string | null | undefined;
29501
+ } | null | undefined;
29502
+ project?: {
29503
+ projectKey: string;
29504
+ projectName: string;
29505
+ checkout: {
29506
+ worktreeRoot: null;
29507
+ cwd: string;
29508
+ isGit: false;
29509
+ currentBranch: null;
29510
+ remoteUrl: null;
29511
+ isOttoOwnedWorktree: false;
29512
+ mainRepoRoot: null;
29513
+ } | {
29514
+ worktreeRoot: string;
29515
+ cwd: string;
29516
+ isGit: true;
29517
+ currentBranch: string | null;
29518
+ remoteUrl: string | null;
29519
+ isOttoOwnedWorktree: false;
29520
+ mainRepoRoot: string | null;
29521
+ } | {
29522
+ worktreeRoot: string;
29523
+ cwd: string;
29524
+ isGit: true;
29525
+ currentBranch: string | null;
29526
+ remoteUrl: string | null;
29527
+ isOttoOwnedWorktree: true;
29528
+ mainRepoRoot: string;
29529
+ };
29530
+ workspaceName?: string | null | undefined;
29531
+ } | undefined;
29532
+ }>>>;
29533
+ emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
29534
+ projectId: z.ZodString;
29535
+ projectDisplayName: z.ZodString;
29536
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29537
+ projectRootPath: z.ZodString;
29538
+ projectKind: z.ZodEnum<{
29539
+ git: "git";
29540
+ directory: "directory";
29541
+ non_git: "non_git";
29542
+ }>;
29543
+ }, z.core.$strip>>>>;
27432
29544
  pageInfo: z.ZodObject<{
27433
29545
  nextCursor: z.ZodNullable<z.ZodString>;
27434
29546
  prevCursor: z.ZodNullable<z.ZodString>;
@@ -27436,27 +29548,30 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
27436
29548
  }, z.core.$strip>;
27437
29549
  }, z.core.$strip>;
27438
29550
  }, z.core.$strip>, z.ZodObject<{
27439
- type: z.ZodLiteral<"fetch_recent_provider_sessions_response">;
29551
+ type: z.ZodLiteral<"project.add.response">;
27440
29552
  payload: z.ZodObject<{
27441
29553
  requestId: z.ZodString;
27442
- entries: z.ZodArray<z.ZodObject<{
27443
- providerId: z.ZodString;
27444
- providerLabel: z.ZodString;
27445
- providerHandleId: z.ZodString;
27446
- cwd: z.ZodString;
27447
- title: z.ZodNullable<z.ZodString>;
27448
- firstPromptPreview: z.ZodNullable<z.ZodString>;
27449
- lastPromptPreview: z.ZodNullable<z.ZodString>;
27450
- lastActivityAt: z.ZodString;
29554
+ project: z.ZodNullable<z.ZodObject<{
29555
+ projectId: z.ZodString;
29556
+ projectDisplayName: z.ZodString;
29557
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29558
+ projectRootPath: z.ZodString;
29559
+ projectKind: z.ZodEnum<{
29560
+ git: "git";
29561
+ directory: "directory";
29562
+ non_git: "non_git";
29563
+ }>;
27451
29564
  }, z.core.$strip>>;
27452
- filteredAlreadyImportedCount: z.ZodOptional<z.ZodNumber>;
29565
+ error: z.ZodNullable<z.ZodString>;
29566
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
29567
+ directory_not_found: "directory_not_found";
29568
+ }>>>>;
27453
29569
  }, z.core.$strip>;
27454
29570
  }, z.core.$strip>, z.ZodObject<{
27455
- type: z.ZodLiteral<"fetch_workspaces_response">;
29571
+ type: z.ZodLiteral<"open_project_response">;
27456
29572
  payload: z.ZodObject<{
27457
29573
  requestId: z.ZodString;
27458
- subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27459
- entries: z.ZodArray<z.ZodPipe<z.ZodObject<{
29574
+ workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
27460
29575
  id: z.ZodString;
27461
29576
  projectId: z.ZodString;
27462
29577
  projectDisplayName: z.ZodString;
@@ -27860,45 +29975,83 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
27860
29975
  workspaceName?: string | null | undefined;
27861
29976
  } | undefined;
27862
29977
  }>>>;
27863
- emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
27864
- projectId: z.ZodString;
27865
- projectDisplayName: z.ZodString;
27866
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27867
- projectRootPath: z.ZodString;
27868
- projectKind: z.ZodEnum<{
27869
- git: "git";
27870
- directory: "directory";
27871
- non_git: "non_git";
27872
- }>;
27873
- }, z.core.$strip>>>>;
27874
- pageInfo: z.ZodObject<{
27875
- nextCursor: z.ZodNullable<z.ZodString>;
27876
- prevCursor: z.ZodNullable<z.ZodString>;
27877
- hasMore: z.ZodBoolean;
27878
- }, z.core.$strip>;
29978
+ error: z.ZodNullable<z.ZodString>;
29979
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
29980
+ directory_not_found: "directory_not_found";
29981
+ }>>>>;
27879
29982
  }, z.core.$strip>;
27880
29983
  }, z.core.$strip>, z.ZodObject<{
27881
- type: z.ZodLiteral<"project.add.response">;
29984
+ type: z.ZodLiteral<"start_workspace_script_response">;
27882
29985
  payload: z.ZodObject<{
27883
29986
  requestId: z.ZodString;
27884
- project: z.ZodNullable<z.ZodObject<{
27885
- projectId: z.ZodString;
27886
- projectDisplayName: z.ZodString;
27887
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27888
- projectRootPath: z.ZodString;
27889
- projectKind: z.ZodEnum<{
27890
- git: "git";
27891
- directory: "directory";
27892
- non_git: "non_git";
27893
- }>;
29987
+ workspaceId: z.ZodString;
29988
+ scriptName: z.ZodString;
29989
+ terminalId: z.ZodNullable<z.ZodString>;
29990
+ error: z.ZodNullable<z.ZodString>;
29991
+ }, z.core.$strip>;
29992
+ }, z.core.$strip>, z.ZodObject<{
29993
+ type: z.ZodLiteral<"list_available_editors_response">;
29994
+ payload: z.ZodObject<{
29995
+ requestId: z.ZodString;
29996
+ editors: z.ZodArray<z.ZodObject<{
29997
+ id: z.ZodString;
29998
+ label: z.ZodString;
27894
29999
  }, z.core.$strip>>;
27895
30000
  error: z.ZodNullable<z.ZodString>;
27896
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
27897
- directory_not_found: "directory_not_found";
27898
- }>>>>;
27899
30001
  }, z.core.$strip>;
27900
30002
  }, z.core.$strip>, z.ZodObject<{
27901
- type: z.ZodLiteral<"open_project_response">;
30003
+ type: z.ZodLiteral<"open_in_editor_response">;
30004
+ payload: z.ZodObject<{
30005
+ requestId: z.ZodString;
30006
+ error: z.ZodNullable<z.ZodString>;
30007
+ }, z.core.$strip>;
30008
+ }, z.core.$strip>, z.ZodObject<{
30009
+ type: z.ZodLiteral<"archive_workspace_response">;
30010
+ payload: z.ZodObject<{
30011
+ requestId: z.ZodString;
30012
+ workspaceId: z.ZodString;
30013
+ archivedAt: z.ZodNullable<z.ZodString>;
30014
+ error: z.ZodNullable<z.ZodString>;
30015
+ deletedBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30016
+ }, z.core.$strip>;
30017
+ }, z.core.$strip>, z.ZodObject<{
30018
+ type: z.ZodLiteral<"workspace.archive.preflight.response">;
30019
+ payload: z.ZodObject<{
30020
+ requestId: z.ZodString;
30021
+ workspaceId: z.ZodString;
30022
+ detection: z.ZodNullable<z.ZodObject<{
30023
+ isOttoWorktree: z.ZodBoolean;
30024
+ branchName: z.ZodNullable<z.ZodString>;
30025
+ baseBranch: z.ZodNullable<z.ZodString>;
30026
+ mergeState: z.ZodEnum<{
30027
+ unknown: "unknown";
30028
+ merged: "merged";
30029
+ unmerged: "unmerged";
30030
+ }>;
30031
+ unmergedCommitCount: z.ZodNullable<z.ZodNumber>;
30032
+ hasRemoteBranch: z.ZodBoolean;
30033
+ branchCheckedOutElsewhere: z.ZodBoolean;
30034
+ directoryWillBeRemoved: z.ZodBoolean;
30035
+ }, z.core.$strip>>;
30036
+ error: z.ZodNullable<z.ZodString>;
30037
+ }, z.core.$strip>;
30038
+ }, z.core.$strip>, z.ZodObject<{
30039
+ type: z.ZodLiteral<"worktree.reattach.list.response">;
30040
+ payload: z.ZodObject<{
30041
+ requestId: z.ZodString;
30042
+ candidates: z.ZodArray<z.ZodObject<{
30043
+ workspaceId: z.ZodNullable<z.ZodString>;
30044
+ worktreePath: z.ZodString;
30045
+ branchName: z.ZodNullable<z.ZodString>;
30046
+ baseBranch: z.ZodNullable<z.ZodString>;
30047
+ directoryOnDisk: z.ZodBoolean;
30048
+ displayName: z.ZodNullable<z.ZodString>;
30049
+ archivedAt: z.ZodNullable<z.ZodString>;
30050
+ }, z.core.$strip>>;
30051
+ error: z.ZodNullable<z.ZodString>;
30052
+ }, z.core.$strip>;
30053
+ }, z.core.$strip>, z.ZodObject<{
30054
+ type: z.ZodLiteral<"worktree.reattach.response">;
27902
30055
  payload: z.ZodObject<{
27903
30056
  requestId: z.ZodString;
27904
30057
  workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
@@ -28306,42 +30459,6 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28306
30459
  } | undefined;
28307
30460
  }>>>;
28308
30461
  error: z.ZodNullable<z.ZodString>;
28309
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
28310
- directory_not_found: "directory_not_found";
28311
- }>>>>;
28312
- }, z.core.$strip>;
28313
- }, z.core.$strip>, z.ZodObject<{
28314
- type: z.ZodLiteral<"start_workspace_script_response">;
28315
- payload: z.ZodObject<{
28316
- requestId: z.ZodString;
28317
- workspaceId: z.ZodString;
28318
- scriptName: z.ZodString;
28319
- terminalId: z.ZodNullable<z.ZodString>;
28320
- error: z.ZodNullable<z.ZodString>;
28321
- }, z.core.$strip>;
28322
- }, z.core.$strip>, z.ZodObject<{
28323
- type: z.ZodLiteral<"list_available_editors_response">;
28324
- payload: z.ZodObject<{
28325
- requestId: z.ZodString;
28326
- editors: z.ZodArray<z.ZodObject<{
28327
- id: z.ZodString;
28328
- label: z.ZodString;
28329
- }, z.core.$strip>>;
28330
- error: z.ZodNullable<z.ZodString>;
28331
- }, z.core.$strip>;
28332
- }, z.core.$strip>, z.ZodObject<{
28333
- type: z.ZodLiteral<"open_in_editor_response">;
28334
- payload: z.ZodObject<{
28335
- requestId: z.ZodString;
28336
- error: z.ZodNullable<z.ZodString>;
28337
- }, z.core.$strip>;
28338
- }, z.core.$strip>, z.ZodObject<{
28339
- type: z.ZodLiteral<"archive_workspace_response">;
28340
- payload: z.ZodObject<{
28341
- requestId: z.ZodString;
28342
- workspaceId: z.ZodString;
28343
- archivedAt: z.ZodNullable<z.ZodString>;
28344
- error: z.ZodNullable<z.ZodString>;
28345
30462
  }, z.core.$strip>;
28346
30463
  }, z.core.$strip>, z.ZodObject<{
28347
30464
  type: z.ZodLiteral<"fetch_agent_response">;
@@ -29350,6 +31467,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29350
31467
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
29351
31468
  }, z.core.$loose>>;
29352
31469
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
31470
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
29353
31471
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
29354
31472
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
29355
31473
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -29506,6 +31624,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29506
31624
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
29507
31625
  }, z.core.$loose>>;
29508
31626
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
31627
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
29509
31628
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
29510
31629
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
29511
31630
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -29652,6 +31771,19 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29652
31771
  format: z.ZodOptional<z.ZodString>;
29653
31772
  error: z.ZodOptional<z.ZodString>;
29654
31773
  }, z.core.$loose>;
31774
+ }, z.core.$strip>, z.ZodObject<{
31775
+ type: z.ZodLiteral<"speech.tts.speak.response">;
31776
+ payload: z.ZodObject<{
31777
+ requestId: z.ZodString;
31778
+ ok: z.ZodOptional<z.ZodBoolean>;
31779
+ canceled: z.ZodOptional<z.ZodBoolean>;
31780
+ error: z.ZodOptional<z.ZodString>;
31781
+ }, z.core.$loose>;
31782
+ }, z.core.$strip>, z.ZodObject<{
31783
+ type: z.ZodLiteral<"speech.tts.speak.cancel.response">;
31784
+ payload: z.ZodObject<{
31785
+ requestId: z.ZodString;
31786
+ }, z.core.$loose>;
29655
31787
  }, z.core.$strip>, z.ZodObject<{
29656
31788
  type: z.ZodLiteral<"visualizer.voiceCues.generate.response">;
29657
31789
  payload: z.ZodObject<{
@@ -30881,7 +33013,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30881
33013
  runs: z.ZodArray<z.ZodObject<{
30882
33014
  id: z.ZodString;
30883
33015
  title: z.ZodString;
33016
+ description: z.ZodOptional<z.ZodString>;
30884
33017
  status: z.ZodString;
33018
+ kind: z.ZodOptional<z.ZodString>;
33019
+ graphId: z.ZodOptional<z.ZodString>;
33020
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30885
33021
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
30886
33022
  autopilot: z.ZodOptional<z.ZodBoolean>;
30887
33023
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -30933,7 +33069,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
30933
33069
  run: z.ZodObject<{
30934
33070
  id: z.ZodString;
30935
33071
  title: z.ZodString;
33072
+ description: z.ZodOptional<z.ZodString>;
30936
33073
  status: z.ZodString;
33074
+ kind: z.ZodOptional<z.ZodString>;
33075
+ graphId: z.ZodOptional<z.ZodString>;
33076
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30937
33077
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
30938
33078
  autopilot: z.ZodOptional<z.ZodBoolean>;
30939
33079
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -31003,6 +33143,166 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
31003
33143
  payload: z.ZodObject<{
31004
33144
  runIds: z.ZodArray<z.ZodString>;
31005
33145
  }, z.core.$strip>;
33146
+ }, z.core.$strip>, z.ZodObject<{
33147
+ type: z.ZodLiteral<"runs.graphs.list.response">;
33148
+ payload: z.ZodObject<{
33149
+ graphs: z.ZodArray<z.ZodObject<{
33150
+ id: z.ZodString;
33151
+ name: z.ZodString;
33152
+ description: z.ZodOptional<z.ZodString>;
33153
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
33154
+ key: z.ZodString;
33155
+ label: z.ZodString;
33156
+ description: z.ZodOptional<z.ZodString>;
33157
+ multiline: z.ZodOptional<z.ZodBoolean>;
33158
+ required: z.ZodOptional<z.ZodBoolean>;
33159
+ defaultValue: z.ZodOptional<z.ZodString>;
33160
+ }, z.core.$loose>>>;
33161
+ nodes: z.ZodArray<z.ZodObject<{
33162
+ id: z.ZodString;
33163
+ kind: z.ZodString;
33164
+ title: z.ZodString;
33165
+ role: z.ZodOptional<z.ZodString>;
33166
+ prompt: z.ZodOptional<z.ZodString>;
33167
+ promptFromInput: z.ZodOptional<z.ZodString>;
33168
+ autonomous: z.ZodOptional<z.ZodBoolean>;
33169
+ loop: z.ZodOptional<z.ZodObject<{
33170
+ times: z.ZodOptional<z.ZodNumber>;
33171
+ until: z.ZodOptional<z.ZodObject<{
33172
+ criteria: z.ZodArray<z.ZodString>;
33173
+ judgeRole: z.ZodOptional<z.ZodString>;
33174
+ max: z.ZodNumber;
33175
+ }, z.core.$loose>>;
33176
+ }, z.core.$loose>>;
33177
+ model: z.ZodOptional<z.ZodString>;
33178
+ position: z.ZodOptional<z.ZodObject<{
33179
+ x: z.ZodNumber;
33180
+ y: z.ZodNumber;
33181
+ }, z.core.$loose>>;
33182
+ }, z.core.$loose>>;
33183
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
33184
+ id: z.ZodOptional<z.ZodString>;
33185
+ from: z.ZodString;
33186
+ to: z.ZodString;
33187
+ }, z.core.$loose>>>;
33188
+ builtIn: z.ZodOptional<z.ZodBoolean>;
33189
+ createdAt: z.ZodOptional<z.ZodString>;
33190
+ updatedAt: z.ZodOptional<z.ZodString>;
33191
+ }, z.core.$loose>>;
33192
+ requestId: z.ZodString;
33193
+ }, z.core.$strip>;
33194
+ }, z.core.$strip>, z.ZodObject<{
33195
+ type: z.ZodLiteral<"runs.graphs.save.response">;
33196
+ payload: z.ZodObject<{
33197
+ graph: z.ZodOptional<z.ZodObject<{
33198
+ id: z.ZodString;
33199
+ name: z.ZodString;
33200
+ description: z.ZodOptional<z.ZodString>;
33201
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
33202
+ key: z.ZodString;
33203
+ label: z.ZodString;
33204
+ description: z.ZodOptional<z.ZodString>;
33205
+ multiline: z.ZodOptional<z.ZodBoolean>;
33206
+ required: z.ZodOptional<z.ZodBoolean>;
33207
+ defaultValue: z.ZodOptional<z.ZodString>;
33208
+ }, z.core.$loose>>>;
33209
+ nodes: z.ZodArray<z.ZodObject<{
33210
+ id: z.ZodString;
33211
+ kind: z.ZodString;
33212
+ title: z.ZodString;
33213
+ role: z.ZodOptional<z.ZodString>;
33214
+ prompt: z.ZodOptional<z.ZodString>;
33215
+ promptFromInput: z.ZodOptional<z.ZodString>;
33216
+ autonomous: z.ZodOptional<z.ZodBoolean>;
33217
+ loop: z.ZodOptional<z.ZodObject<{
33218
+ times: z.ZodOptional<z.ZodNumber>;
33219
+ until: z.ZodOptional<z.ZodObject<{
33220
+ criteria: z.ZodArray<z.ZodString>;
33221
+ judgeRole: z.ZodOptional<z.ZodString>;
33222
+ max: z.ZodNumber;
33223
+ }, z.core.$loose>>;
33224
+ }, z.core.$loose>>;
33225
+ model: z.ZodOptional<z.ZodString>;
33226
+ position: z.ZodOptional<z.ZodObject<{
33227
+ x: z.ZodNumber;
33228
+ y: z.ZodNumber;
33229
+ }, z.core.$loose>>;
33230
+ }, z.core.$loose>>;
33231
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
33232
+ id: z.ZodOptional<z.ZodString>;
33233
+ from: z.ZodString;
33234
+ to: z.ZodString;
33235
+ }, z.core.$loose>>>;
33236
+ builtIn: z.ZodOptional<z.ZodBoolean>;
33237
+ createdAt: z.ZodOptional<z.ZodString>;
33238
+ updatedAt: z.ZodOptional<z.ZodString>;
33239
+ }, z.core.$loose>>;
33240
+ error: z.ZodOptional<z.ZodString>;
33241
+ requestId: z.ZodString;
33242
+ }, z.core.$strip>;
33243
+ }, z.core.$strip>, z.ZodObject<{
33244
+ type: z.ZodLiteral<"runs.graphs.delete.response">;
33245
+ payload: z.ZodObject<{
33246
+ deleted: z.ZodBoolean;
33247
+ error: z.ZodOptional<z.ZodString>;
33248
+ requestId: z.ZodString;
33249
+ }, z.core.$strip>;
33250
+ }, z.core.$strip>, z.ZodObject<{
33251
+ type: z.ZodLiteral<"runs.graphs.changed.notification">;
33252
+ payload: z.ZodObject<{
33253
+ graphs: z.ZodArray<z.ZodObject<{
33254
+ id: z.ZodString;
33255
+ name: z.ZodString;
33256
+ description: z.ZodOptional<z.ZodString>;
33257
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
33258
+ key: z.ZodString;
33259
+ label: z.ZodString;
33260
+ description: z.ZodOptional<z.ZodString>;
33261
+ multiline: z.ZodOptional<z.ZodBoolean>;
33262
+ required: z.ZodOptional<z.ZodBoolean>;
33263
+ defaultValue: z.ZodOptional<z.ZodString>;
33264
+ }, z.core.$loose>>>;
33265
+ nodes: z.ZodArray<z.ZodObject<{
33266
+ id: z.ZodString;
33267
+ kind: z.ZodString;
33268
+ title: z.ZodString;
33269
+ role: z.ZodOptional<z.ZodString>;
33270
+ prompt: z.ZodOptional<z.ZodString>;
33271
+ promptFromInput: z.ZodOptional<z.ZodString>;
33272
+ autonomous: z.ZodOptional<z.ZodBoolean>;
33273
+ loop: z.ZodOptional<z.ZodObject<{
33274
+ times: z.ZodOptional<z.ZodNumber>;
33275
+ until: z.ZodOptional<z.ZodObject<{
33276
+ criteria: z.ZodArray<z.ZodString>;
33277
+ judgeRole: z.ZodOptional<z.ZodString>;
33278
+ max: z.ZodNumber;
33279
+ }, z.core.$loose>>;
33280
+ }, z.core.$loose>>;
33281
+ model: z.ZodOptional<z.ZodString>;
33282
+ position: z.ZodOptional<z.ZodObject<{
33283
+ x: z.ZodNumber;
33284
+ y: z.ZodNumber;
33285
+ }, z.core.$loose>>;
33286
+ }, z.core.$loose>>;
33287
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
33288
+ id: z.ZodOptional<z.ZodString>;
33289
+ from: z.ZodString;
33290
+ to: z.ZodString;
33291
+ }, z.core.$loose>>>;
33292
+ builtIn: z.ZodOptional<z.ZodBoolean>;
33293
+ createdAt: z.ZodOptional<z.ZodString>;
33294
+ updatedAt: z.ZodOptional<z.ZodString>;
33295
+ }, z.core.$loose>>;
33296
+ }, z.core.$strip>;
33297
+ }, z.core.$strip>, z.ZodObject<{
33298
+ type: z.ZodLiteral<"runs.start.response">;
33299
+ payload: z.ZodObject<{
33300
+ runId: z.ZodOptional<z.ZodString>;
33301
+ agentId: z.ZodOptional<z.ZodString>;
33302
+ workspaceId: z.ZodOptional<z.ZodString>;
33303
+ error: z.ZodOptional<z.ZodString>;
33304
+ requestId: z.ZodString;
33305
+ }, z.core.$strip>;
31006
33306
  }, z.core.$strip>, z.ZodObject<{
31007
33307
  type: z.ZodLiteral<"checkout_merge_response">;
31008
33308
  payload: z.ZodObject<{
@@ -32145,8 +34445,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
32145
34445
  cwd: z.ZodString;
32146
34446
  path: z.ZodString;
32147
34447
  change: z.ZodEnum<{
32148
- changed: "changed";
32149
34448
  deleted: "deleted";
34449
+ changed: "changed";
32150
34450
  recreated: "recreated";
32151
34451
  }>;
32152
34452
  modifiedAt: z.ZodNullable<z.ZodString>;
@@ -34332,7 +36632,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
34332
36632
  custom_mode_icons: z.ZodOptional<z.ZodBoolean>;
34333
36633
  terminal_reflowable_snapshot: z.ZodOptional<z.ZodBoolean>;
34334
36634
  browser_host: z.ZodOptional<z.ZodObject<{
34335
- supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "select" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "inspect" | "network" | "scroll" | "resize" | "close_tab" | "focus_tab" | "page_text" | "set_color_scheme" | "screenshot_element")[], string[]>>;
36635
+ supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "fill" | "select" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "inspect" | "network" | "scroll" | "resize" | "close_tab" | "focus_tab" | "page_text" | "set_color_scheme" | "screenshot_element")[], string[]>>;
34336
36636
  hostKind: z.ZodDefault<z.ZodString>;
34337
36637
  }, z.core.$loose>>;
34338
36638
  }, z.core.$loose>>;
@@ -34946,6 +37246,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
34946
37246
  preferWriterPersonalities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
34947
37247
  }, z.core.$loose>>>;
34948
37248
  autoArchiveAfterMerge: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
37249
+ hideMergeIntoBaseAction: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
34949
37250
  enableTerminalAgentHooks: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
34950
37251
  appendSystemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
34951
37252
  terminalProfiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -35058,6 +37359,18 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
35058
37359
  model: z.ZodOptional<z.ZodString>;
35059
37360
  name: z.ZodString;
35060
37361
  }, z.core.$loose>>;
37362
+ }, z.core.$strip>, z.ZodObject<{
37363
+ type: z.ZodLiteral<"speech.tts.speak.request">;
37364
+ requestId: z.ZodString;
37365
+ text: z.ZodString;
37366
+ voice: z.ZodOptional<z.ZodObject<{
37367
+ provider: z.ZodOptional<z.ZodString>;
37368
+ model: z.ZodOptional<z.ZodString>;
37369
+ name: z.ZodString;
37370
+ }, z.core.$loose>>;
37371
+ }, z.core.$strip>, z.ZodObject<{
37372
+ type: z.ZodLiteral<"speech.tts.speak.cancel.request">;
37373
+ requestId: z.ZodString;
35061
37374
  }, z.core.$strip>, z.ZodObject<{
35062
37375
  type: z.ZodLiteral<"visualizer.voiceCues.generate.request">;
35063
37376
  requestId: z.ZodString;
@@ -35615,6 +37928,76 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
35615
37928
  }, z.core.$strip>, z.ZodObject<{
35616
37929
  type: z.ZodLiteral<"runs.clear.request">;
35617
37930
  requestId: z.ZodString;
37931
+ }, z.core.$strip>, z.ZodObject<{
37932
+ type: z.ZodLiteral<"runs.graphs.list.request">;
37933
+ requestId: z.ZodString;
37934
+ }, z.core.$strip>, z.ZodObject<{
37935
+ type: z.ZodLiteral<"runs.graphs.save.request">;
37936
+ graph: z.ZodObject<{
37937
+ id: z.ZodString;
37938
+ name: z.ZodString;
37939
+ description: z.ZodOptional<z.ZodString>;
37940
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
37941
+ key: z.ZodString;
37942
+ label: z.ZodString;
37943
+ description: z.ZodOptional<z.ZodString>;
37944
+ multiline: z.ZodOptional<z.ZodBoolean>;
37945
+ required: z.ZodOptional<z.ZodBoolean>;
37946
+ defaultValue: z.ZodOptional<z.ZodString>;
37947
+ }, z.core.$loose>>>;
37948
+ nodes: z.ZodArray<z.ZodObject<{
37949
+ id: z.ZodString;
37950
+ kind: z.ZodString;
37951
+ title: z.ZodString;
37952
+ role: z.ZodOptional<z.ZodString>;
37953
+ prompt: z.ZodOptional<z.ZodString>;
37954
+ promptFromInput: z.ZodOptional<z.ZodString>;
37955
+ autonomous: z.ZodOptional<z.ZodBoolean>;
37956
+ loop: z.ZodOptional<z.ZodObject<{
37957
+ times: z.ZodOptional<z.ZodNumber>;
37958
+ until: z.ZodOptional<z.ZodObject<{
37959
+ criteria: z.ZodArray<z.ZodString>;
37960
+ judgeRole: z.ZodOptional<z.ZodString>;
37961
+ max: z.ZodNumber;
37962
+ }, z.core.$loose>>;
37963
+ }, z.core.$loose>>;
37964
+ model: z.ZodOptional<z.ZodString>;
37965
+ position: z.ZodOptional<z.ZodObject<{
37966
+ x: z.ZodNumber;
37967
+ y: z.ZodNumber;
37968
+ }, z.core.$loose>>;
37969
+ }, z.core.$loose>>;
37970
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
37971
+ id: z.ZodOptional<z.ZodString>;
37972
+ from: z.ZodString;
37973
+ to: z.ZodString;
37974
+ }, z.core.$loose>>>;
37975
+ builtIn: z.ZodOptional<z.ZodBoolean>;
37976
+ createdAt: z.ZodOptional<z.ZodString>;
37977
+ updatedAt: z.ZodOptional<z.ZodString>;
37978
+ }, z.core.$loose>;
37979
+ requestId: z.ZodString;
37980
+ }, z.core.$strip>, z.ZodObject<{
37981
+ type: z.ZodLiteral<"runs.graphs.delete.request">;
37982
+ graphId: z.ZodString;
37983
+ requestId: z.ZodString;
37984
+ }, z.core.$strip>, z.ZodObject<{
37985
+ type: z.ZodLiteral<"runs.start.request">;
37986
+ flavor: z.ZodString;
37987
+ cwd: z.ZodString;
37988
+ workspaceId: z.ZodOptional<z.ZodString>;
37989
+ title: z.ZodOptional<z.ZodString>;
37990
+ description: z.ZodOptional<z.ZodString>;
37991
+ orchestratorPersonalityId: z.ZodOptional<z.ZodString>;
37992
+ orchestratorProvider: z.ZodOptional<z.ZodString>;
37993
+ orchestratorModel: z.ZodOptional<z.ZodString>;
37994
+ orchestratorThinkingOptionId: z.ZodOptional<z.ZodString>;
37995
+ prompt: z.ZodOptional<z.ZodString>;
37996
+ graphId: z.ZodOptional<z.ZodString>;
37997
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37998
+ draft: z.ZodOptional<z.ZodBoolean>;
37999
+ runId: z.ZodOptional<z.ZodString>;
38000
+ requestId: z.ZodString;
35618
38001
  }, z.core.$strip>, z.ZodObject<{
35619
38002
  type: z.ZodLiteral<"checkout_merge_request">;
35620
38003
  cwd: z.ZodString;
@@ -35990,6 +38373,30 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
35990
38373
  type: z.ZodLiteral<"archive_workspace_request">;
35991
38374
  workspaceId: z.ZodString;
35992
38375
  requestId: z.ZodString;
38376
+ branchDisposition: z.ZodOptional<z.ZodEnum<{
38377
+ keep: "keep";
38378
+ delete: "delete";
38379
+ }>>;
38380
+ }, z.core.$strip>, z.ZodObject<{
38381
+ type: z.ZodLiteral<"workspace.archive.preflight.request">;
38382
+ requestId: z.ZodString;
38383
+ workspaceId: z.ZodString;
38384
+ }, z.core.$strip>, z.ZodObject<{
38385
+ type: z.ZodLiteral<"worktree.reattach.list.request">;
38386
+ requestId: z.ZodString;
38387
+ projectId: z.ZodOptional<z.ZodString>;
38388
+ cwd: z.ZodOptional<z.ZodString>;
38389
+ }, z.core.$strip>, z.ZodObject<{
38390
+ type: z.ZodLiteral<"worktree.reattach.request">;
38391
+ requestId: z.ZodString;
38392
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
38393
+ kind: z.ZodLiteral<"workspace">;
38394
+ workspaceId: z.ZodString;
38395
+ }, z.core.$strip>, z.ZodObject<{
38396
+ kind: z.ZodLiteral<"orphan">;
38397
+ worktreePath: z.ZodString;
38398
+ projectId: z.ZodOptional<z.ZodString>;
38399
+ }, z.core.$strip>], "kind">;
35993
38400
  }, z.core.$strip>, z.ZodObject<{
35994
38401
  type: z.ZodLiteral<"workspace.create.request">;
35995
38402
  requestId: z.ZodString;
@@ -38050,8 +40457,450 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
38050
40457
  mainRepoRoot: string;
38051
40458
  worktreeRoot?: string | undefined;
38052
40459
  }>>]>;
38053
- }, z.core.$strip>;
38054
- }, z.core.$strip>>;
40460
+ }, z.core.$strip>;
40461
+ }, z.core.$strip>>;
40462
+ pageInfo: z.ZodObject<{
40463
+ nextCursor: z.ZodNullable<z.ZodString>;
40464
+ prevCursor: z.ZodNullable<z.ZodString>;
40465
+ hasMore: z.ZodBoolean;
40466
+ }, z.core.$strip>;
40467
+ }, z.core.$strip>;
40468
+ }, z.core.$strip>, z.ZodObject<{
40469
+ type: z.ZodLiteral<"fetch_recent_provider_sessions_response">;
40470
+ payload: z.ZodObject<{
40471
+ requestId: z.ZodString;
40472
+ entries: z.ZodArray<z.ZodObject<{
40473
+ providerId: z.ZodString;
40474
+ providerLabel: z.ZodString;
40475
+ providerHandleId: z.ZodString;
40476
+ cwd: z.ZodString;
40477
+ title: z.ZodNullable<z.ZodString>;
40478
+ firstPromptPreview: z.ZodNullable<z.ZodString>;
40479
+ lastPromptPreview: z.ZodNullable<z.ZodString>;
40480
+ lastActivityAt: z.ZodString;
40481
+ }, z.core.$strip>>;
40482
+ filteredAlreadyImportedCount: z.ZodOptional<z.ZodNumber>;
40483
+ }, z.core.$strip>;
40484
+ }, z.core.$strip>, z.ZodObject<{
40485
+ type: z.ZodLiteral<"fetch_workspaces_response">;
40486
+ payload: z.ZodObject<{
40487
+ requestId: z.ZodString;
40488
+ subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40489
+ entries: z.ZodArray<z.ZodPipe<z.ZodObject<{
40490
+ id: z.ZodString;
40491
+ projectId: z.ZodString;
40492
+ projectDisplayName: z.ZodString;
40493
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40494
+ projectRootPath: z.ZodString;
40495
+ workspaceDirectory: z.ZodOptional<z.ZodString>;
40496
+ projectKind: z.ZodEnum<{
40497
+ git: "git";
40498
+ directory: "directory";
40499
+ non_git: "non_git";
40500
+ }>;
40501
+ workspaceKind: z.ZodEnum<{
40502
+ worktree: "worktree";
40503
+ checkout: "checkout";
40504
+ directory: "directory";
40505
+ local_checkout: "local_checkout";
40506
+ }>;
40507
+ name: z.ZodString;
40508
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40509
+ archivingAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40510
+ status: z.ZodEnum<{
40511
+ running: "running";
40512
+ attention: "attention";
40513
+ needs_input: "needs_input";
40514
+ done: "done";
40515
+ failed: "failed";
40516
+ }>;
40517
+ statusEnteredAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
40518
+ activityAt: z.ZodNullable<z.ZodString>;
40519
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40520
+ additions: z.ZodNumber;
40521
+ deletions: z.ZodNumber;
40522
+ }, z.core.$strip>>>;
40523
+ scripts: z.ZodDefault<z.ZodArray<z.ZodObject<{
40524
+ scriptName: z.ZodString;
40525
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
40526
+ script: "script";
40527
+ service: "service";
40528
+ }>>>;
40529
+ hostname: z.ZodString;
40530
+ port: z.ZodNullable<z.ZodNumber>;
40531
+ localProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40532
+ publicProxyUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40533
+ proxyUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40534
+ lifecycle: z.ZodEnum<{
40535
+ running: "running";
40536
+ stopped: "stopped";
40537
+ }>;
40538
+ health: z.ZodNullable<z.ZodEnum<{
40539
+ healthy: "healthy";
40540
+ unhealthy: "unhealthy";
40541
+ }>>;
40542
+ exitCode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40543
+ terminalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40544
+ }, z.core.$strip>>>;
40545
+ gitRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
40546
+ currentBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40547
+ remoteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40548
+ isOttoOwnedWorktree: z.ZodOptional<z.ZodBoolean>;
40549
+ isDirty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
40550
+ aheadBehind: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40551
+ ahead: z.ZodNumber;
40552
+ behind: z.ZodNumber;
40553
+ }, z.core.$strip>>>;
40554
+ aheadOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40555
+ behindOfOrigin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40556
+ }, z.core.$strip>>>;
40557
+ githubRuntime: z.ZodNullable<z.ZodOptional<z.ZodObject<{
40558
+ featuresEnabled: z.ZodOptional<z.ZodBoolean>;
40559
+ pullRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40560
+ number: z.ZodOptional<z.ZodNumber>;
40561
+ url: z.ZodString;
40562
+ title: z.ZodString;
40563
+ state: z.ZodString;
40564
+ baseRefName: z.ZodString;
40565
+ headRefName: z.ZodString;
40566
+ isMerged: z.ZodBoolean;
40567
+ isDraft: z.ZodOptional<z.ZodBoolean>;
40568
+ mergeable: z.ZodOptional<z.ZodCatch<z.ZodEnum<{
40569
+ UNKNOWN: "UNKNOWN";
40570
+ MERGEABLE: "MERGEABLE";
40571
+ CONFLICTING: "CONFLICTING";
40572
+ }>>>;
40573
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
40574
+ name: z.ZodString;
40575
+ status: z.ZodEnum<{
40576
+ success: "success";
40577
+ pending: "pending";
40578
+ skipped: "skipped";
40579
+ failure: "failure";
40580
+ cancelled: "cancelled";
40581
+ }>;
40582
+ url: z.ZodNullable<z.ZodString>;
40583
+ workflow: z.ZodOptional<z.ZodString>;
40584
+ duration: z.ZodOptional<z.ZodString>;
40585
+ }, z.core.$strip>>>;
40586
+ checksStatus: z.ZodOptional<z.ZodEnum<{
40587
+ success: "success";
40588
+ pending: "pending";
40589
+ none: "none";
40590
+ failure: "failure";
40591
+ }>>;
40592
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40593
+ pending: "pending";
40594
+ approved: "approved";
40595
+ changes_requested: "changes_requested";
40596
+ }>>>;
40597
+ repoOwner: z.ZodOptional<z.ZodString>;
40598
+ repoName: z.ZodOptional<z.ZodString>;
40599
+ github: z.ZodOptional<z.ZodUnknown>;
40600
+ }, z.core.$strip>>>;
40601
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40602
+ message: z.ZodString;
40603
+ }, z.core.$strip>>>;
40604
+ refreshedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40605
+ }, z.core.$strip>>>;
40606
+ project: z.ZodOptional<z.ZodObject<{
40607
+ projectKey: z.ZodString;
40608
+ projectName: z.ZodString;
40609
+ workspaceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40610
+ checkout: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
40611
+ cwd: z.ZodString;
40612
+ isGit: z.ZodLiteral<false>;
40613
+ currentBranch: z.ZodNull;
40614
+ remoteUrl: z.ZodNull;
40615
+ worktreeRoot: z.ZodOptional<z.ZodNull>;
40616
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
40617
+ mainRepoRoot: z.ZodNull;
40618
+ }, z.core.$strip>, z.ZodTransform<{
40619
+ worktreeRoot: null;
40620
+ cwd: string;
40621
+ isGit: false;
40622
+ currentBranch: null;
40623
+ remoteUrl: null;
40624
+ isOttoOwnedWorktree: false;
40625
+ mainRepoRoot: null;
40626
+ }, {
40627
+ cwd: string;
40628
+ isGit: false;
40629
+ currentBranch: null;
40630
+ remoteUrl: null;
40631
+ isOttoOwnedWorktree: false;
40632
+ mainRepoRoot: null;
40633
+ worktreeRoot?: null | undefined;
40634
+ }>>, z.ZodPipe<z.ZodObject<{
40635
+ cwd: z.ZodString;
40636
+ isGit: z.ZodLiteral<true>;
40637
+ currentBranch: z.ZodNullable<z.ZodString>;
40638
+ remoteUrl: z.ZodNullable<z.ZodString>;
40639
+ worktreeRoot: z.ZodOptional<z.ZodString>;
40640
+ isOttoOwnedWorktree: z.ZodLiteral<false>;
40641
+ mainRepoRoot: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40642
+ }, z.core.$strip>, z.ZodTransform<{
40643
+ worktreeRoot: string;
40644
+ cwd: string;
40645
+ isGit: true;
40646
+ currentBranch: string | null;
40647
+ remoteUrl: string | null;
40648
+ isOttoOwnedWorktree: false;
40649
+ mainRepoRoot: string | null;
40650
+ }, {
40651
+ cwd: string;
40652
+ isGit: true;
40653
+ currentBranch: string | null;
40654
+ remoteUrl: string | null;
40655
+ isOttoOwnedWorktree: false;
40656
+ mainRepoRoot: string | null;
40657
+ worktreeRoot?: string | undefined;
40658
+ }>>, z.ZodPipe<z.ZodObject<{
40659
+ cwd: z.ZodString;
40660
+ isGit: z.ZodLiteral<true>;
40661
+ currentBranch: z.ZodNullable<z.ZodString>;
40662
+ remoteUrl: z.ZodNullable<z.ZodString>;
40663
+ worktreeRoot: z.ZodOptional<z.ZodString>;
40664
+ isOttoOwnedWorktree: z.ZodLiteral<true>;
40665
+ mainRepoRoot: z.ZodString;
40666
+ }, z.core.$strip>, z.ZodTransform<{
40667
+ worktreeRoot: string;
40668
+ cwd: string;
40669
+ isGit: true;
40670
+ currentBranch: string | null;
40671
+ remoteUrl: string | null;
40672
+ isOttoOwnedWorktree: true;
40673
+ mainRepoRoot: string;
40674
+ }, {
40675
+ cwd: string;
40676
+ isGit: true;
40677
+ currentBranch: string | null;
40678
+ remoteUrl: string | null;
40679
+ isOttoOwnedWorktree: true;
40680
+ mainRepoRoot: string;
40681
+ worktreeRoot?: string | undefined;
40682
+ }>>]>;
40683
+ }, z.core.$strip>>;
40684
+ }, z.core.$strip>, z.ZodTransform<{
40685
+ workspaceDirectory: string;
40686
+ id: string;
40687
+ projectId: string;
40688
+ projectDisplayName: string;
40689
+ projectRootPath: string;
40690
+ projectKind: "git" | "directory" | "non_git";
40691
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
40692
+ name: string;
40693
+ archivingAt: string | null;
40694
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
40695
+ statusEnteredAt: string | null;
40696
+ activityAt: string | null;
40697
+ scripts: {
40698
+ scriptName: string;
40699
+ type: "script" | "service";
40700
+ hostname: string;
40701
+ port: number | null;
40702
+ proxyUrl: string | null;
40703
+ lifecycle: "running" | "stopped";
40704
+ health: "healthy" | "unhealthy" | null;
40705
+ exitCode: number | null;
40706
+ terminalId: string | null;
40707
+ localProxyUrl?: string | null | undefined;
40708
+ publicProxyUrl?: string | null | undefined;
40709
+ }[];
40710
+ projectCustomName?: string | null | undefined;
40711
+ title?: string | null | undefined;
40712
+ diffStat?: {
40713
+ additions: number;
40714
+ deletions: number;
40715
+ } | null | undefined;
40716
+ gitRuntime?: {
40717
+ currentBranch?: string | null | undefined;
40718
+ remoteUrl?: string | null | undefined;
40719
+ isOttoOwnedWorktree?: boolean | undefined;
40720
+ isDirty?: boolean | null | undefined;
40721
+ aheadBehind?: {
40722
+ ahead: number;
40723
+ behind: number;
40724
+ } | null | undefined;
40725
+ aheadOfOrigin?: number | null | undefined;
40726
+ behindOfOrigin?: number | null | undefined;
40727
+ } | null | undefined;
40728
+ githubRuntime?: {
40729
+ featuresEnabled?: boolean | undefined;
40730
+ pullRequest?: {
40731
+ url: string;
40732
+ title: string;
40733
+ state: string;
40734
+ baseRefName: string;
40735
+ headRefName: string;
40736
+ isMerged: boolean;
40737
+ number?: number | undefined;
40738
+ isDraft?: boolean | undefined;
40739
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
40740
+ checks?: {
40741
+ name: string;
40742
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
40743
+ url: string | null;
40744
+ workflow?: string | undefined;
40745
+ duration?: string | undefined;
40746
+ }[] | undefined;
40747
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
40748
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
40749
+ repoOwner?: string | undefined;
40750
+ repoName?: string | undefined;
40751
+ github?: unknown;
40752
+ } | null | undefined;
40753
+ error?: {
40754
+ message: string;
40755
+ } | null | undefined;
40756
+ refreshedAt?: string | null | undefined;
40757
+ } | null | undefined;
40758
+ project?: {
40759
+ projectKey: string;
40760
+ projectName: string;
40761
+ checkout: {
40762
+ worktreeRoot: null;
40763
+ cwd: string;
40764
+ isGit: false;
40765
+ currentBranch: null;
40766
+ remoteUrl: null;
40767
+ isOttoOwnedWorktree: false;
40768
+ mainRepoRoot: null;
40769
+ } | {
40770
+ worktreeRoot: string;
40771
+ cwd: string;
40772
+ isGit: true;
40773
+ currentBranch: string | null;
40774
+ remoteUrl: string | null;
40775
+ isOttoOwnedWorktree: false;
40776
+ mainRepoRoot: string | null;
40777
+ } | {
40778
+ worktreeRoot: string;
40779
+ cwd: string;
40780
+ isGit: true;
40781
+ currentBranch: string | null;
40782
+ remoteUrl: string | null;
40783
+ isOttoOwnedWorktree: true;
40784
+ mainRepoRoot: string;
40785
+ };
40786
+ workspaceName?: string | null | undefined;
40787
+ } | undefined;
40788
+ }, {
40789
+ id: string;
40790
+ projectId: string;
40791
+ projectDisplayName: string;
40792
+ projectRootPath: string;
40793
+ projectKind: "git" | "directory" | "non_git";
40794
+ workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
40795
+ name: string;
40796
+ archivingAt: string | null;
40797
+ status: "running" | "attention" | "needs_input" | "done" | "failed";
40798
+ statusEnteredAt: string | null;
40799
+ activityAt: string | null;
40800
+ scripts: {
40801
+ scriptName: string;
40802
+ type: "script" | "service";
40803
+ hostname: string;
40804
+ port: number | null;
40805
+ proxyUrl: string | null;
40806
+ lifecycle: "running" | "stopped";
40807
+ health: "healthy" | "unhealthy" | null;
40808
+ exitCode: number | null;
40809
+ terminalId: string | null;
40810
+ localProxyUrl?: string | null | undefined;
40811
+ publicProxyUrl?: string | null | undefined;
40812
+ }[];
40813
+ projectCustomName?: string | null | undefined;
40814
+ workspaceDirectory?: string | undefined;
40815
+ title?: string | null | undefined;
40816
+ diffStat?: {
40817
+ additions: number;
40818
+ deletions: number;
40819
+ } | null | undefined;
40820
+ gitRuntime?: {
40821
+ currentBranch?: string | null | undefined;
40822
+ remoteUrl?: string | null | undefined;
40823
+ isOttoOwnedWorktree?: boolean | undefined;
40824
+ isDirty?: boolean | null | undefined;
40825
+ aheadBehind?: {
40826
+ ahead: number;
40827
+ behind: number;
40828
+ } | null | undefined;
40829
+ aheadOfOrigin?: number | null | undefined;
40830
+ behindOfOrigin?: number | null | undefined;
40831
+ } | null | undefined;
40832
+ githubRuntime?: {
40833
+ featuresEnabled?: boolean | undefined;
40834
+ pullRequest?: {
40835
+ url: string;
40836
+ title: string;
40837
+ state: string;
40838
+ baseRefName: string;
40839
+ headRefName: string;
40840
+ isMerged: boolean;
40841
+ number?: number | undefined;
40842
+ isDraft?: boolean | undefined;
40843
+ mergeable?: "UNKNOWN" | "MERGEABLE" | "CONFLICTING" | undefined;
40844
+ checks?: {
40845
+ name: string;
40846
+ status: "success" | "pending" | "skipped" | "failure" | "cancelled";
40847
+ url: string | null;
40848
+ workflow?: string | undefined;
40849
+ duration?: string | undefined;
40850
+ }[] | undefined;
40851
+ checksStatus?: "success" | "pending" | "none" | "failure" | undefined;
40852
+ reviewDecision?: "pending" | "approved" | "changes_requested" | null | undefined;
40853
+ repoOwner?: string | undefined;
40854
+ repoName?: string | undefined;
40855
+ github?: unknown;
40856
+ } | null | undefined;
40857
+ error?: {
40858
+ message: string;
40859
+ } | null | undefined;
40860
+ refreshedAt?: string | null | undefined;
40861
+ } | null | undefined;
40862
+ project?: {
40863
+ projectKey: string;
40864
+ projectName: string;
40865
+ checkout: {
40866
+ worktreeRoot: null;
40867
+ cwd: string;
40868
+ isGit: false;
40869
+ currentBranch: null;
40870
+ remoteUrl: null;
40871
+ isOttoOwnedWorktree: false;
40872
+ mainRepoRoot: null;
40873
+ } | {
40874
+ worktreeRoot: string;
40875
+ cwd: string;
40876
+ isGit: true;
40877
+ currentBranch: string | null;
40878
+ remoteUrl: string | null;
40879
+ isOttoOwnedWorktree: false;
40880
+ mainRepoRoot: string | null;
40881
+ } | {
40882
+ worktreeRoot: string;
40883
+ cwd: string;
40884
+ isGit: true;
40885
+ currentBranch: string | null;
40886
+ remoteUrl: string | null;
40887
+ isOttoOwnedWorktree: true;
40888
+ mainRepoRoot: string;
40889
+ };
40890
+ workspaceName?: string | null | undefined;
40891
+ } | undefined;
40892
+ }>>>;
40893
+ emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
40894
+ projectId: z.ZodString;
40895
+ projectDisplayName: z.ZodString;
40896
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40897
+ projectRootPath: z.ZodString;
40898
+ projectKind: z.ZodEnum<{
40899
+ git: "git";
40900
+ directory: "directory";
40901
+ non_git: "non_git";
40902
+ }>;
40903
+ }, z.core.$strip>>>>;
38055
40904
  pageInfo: z.ZodObject<{
38056
40905
  nextCursor: z.ZodNullable<z.ZodString>;
38057
40906
  prevCursor: z.ZodNullable<z.ZodString>;
@@ -38059,27 +40908,30 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
38059
40908
  }, z.core.$strip>;
38060
40909
  }, z.core.$strip>;
38061
40910
  }, z.core.$strip>, z.ZodObject<{
38062
- type: z.ZodLiteral<"fetch_recent_provider_sessions_response">;
40911
+ type: z.ZodLiteral<"project.add.response">;
38063
40912
  payload: z.ZodObject<{
38064
40913
  requestId: z.ZodString;
38065
- entries: z.ZodArray<z.ZodObject<{
38066
- providerId: z.ZodString;
38067
- providerLabel: z.ZodString;
38068
- providerHandleId: z.ZodString;
38069
- cwd: z.ZodString;
38070
- title: z.ZodNullable<z.ZodString>;
38071
- firstPromptPreview: z.ZodNullable<z.ZodString>;
38072
- lastPromptPreview: z.ZodNullable<z.ZodString>;
38073
- lastActivityAt: z.ZodString;
40914
+ project: z.ZodNullable<z.ZodObject<{
40915
+ projectId: z.ZodString;
40916
+ projectDisplayName: z.ZodString;
40917
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40918
+ projectRootPath: z.ZodString;
40919
+ projectKind: z.ZodEnum<{
40920
+ git: "git";
40921
+ directory: "directory";
40922
+ non_git: "non_git";
40923
+ }>;
38074
40924
  }, z.core.$strip>>;
38075
- filteredAlreadyImportedCount: z.ZodOptional<z.ZodNumber>;
40925
+ error: z.ZodNullable<z.ZodString>;
40926
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40927
+ directory_not_found: "directory_not_found";
40928
+ }>>>>;
38076
40929
  }, z.core.$strip>;
38077
40930
  }, z.core.$strip>, z.ZodObject<{
38078
- type: z.ZodLiteral<"fetch_workspaces_response">;
40931
+ type: z.ZodLiteral<"open_project_response">;
38079
40932
  payload: z.ZodObject<{
38080
40933
  requestId: z.ZodString;
38081
- subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38082
- entries: z.ZodArray<z.ZodPipe<z.ZodObject<{
40934
+ workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
38083
40935
  id: z.ZodString;
38084
40936
  projectId: z.ZodString;
38085
40937
  projectDisplayName: z.ZodString;
@@ -38483,45 +41335,83 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
38483
41335
  workspaceName?: string | null | undefined;
38484
41336
  } | undefined;
38485
41337
  }>>>;
38486
- emptyProjects: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
38487
- projectId: z.ZodString;
38488
- projectDisplayName: z.ZodString;
38489
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38490
- projectRootPath: z.ZodString;
38491
- projectKind: z.ZodEnum<{
38492
- git: "git";
38493
- directory: "directory";
38494
- non_git: "non_git";
38495
- }>;
38496
- }, z.core.$strip>>>>;
38497
- pageInfo: z.ZodObject<{
38498
- nextCursor: z.ZodNullable<z.ZodString>;
38499
- prevCursor: z.ZodNullable<z.ZodString>;
38500
- hasMore: z.ZodBoolean;
38501
- }, z.core.$strip>;
41338
+ error: z.ZodNullable<z.ZodString>;
41339
+ errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
41340
+ directory_not_found: "directory_not_found";
41341
+ }>>>>;
38502
41342
  }, z.core.$strip>;
38503
41343
  }, z.core.$strip>, z.ZodObject<{
38504
- type: z.ZodLiteral<"project.add.response">;
41344
+ type: z.ZodLiteral<"start_workspace_script_response">;
38505
41345
  payload: z.ZodObject<{
38506
41346
  requestId: z.ZodString;
38507
- project: z.ZodNullable<z.ZodObject<{
38508
- projectId: z.ZodString;
38509
- projectDisplayName: z.ZodString;
38510
- projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38511
- projectRootPath: z.ZodString;
38512
- projectKind: z.ZodEnum<{
38513
- git: "git";
38514
- directory: "directory";
38515
- non_git: "non_git";
38516
- }>;
41347
+ workspaceId: z.ZodString;
41348
+ scriptName: z.ZodString;
41349
+ terminalId: z.ZodNullable<z.ZodString>;
41350
+ error: z.ZodNullable<z.ZodString>;
41351
+ }, z.core.$strip>;
41352
+ }, z.core.$strip>, z.ZodObject<{
41353
+ type: z.ZodLiteral<"list_available_editors_response">;
41354
+ payload: z.ZodObject<{
41355
+ requestId: z.ZodString;
41356
+ editors: z.ZodArray<z.ZodObject<{
41357
+ id: z.ZodString;
41358
+ label: z.ZodString;
38517
41359
  }, z.core.$strip>>;
38518
41360
  error: z.ZodNullable<z.ZodString>;
38519
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
38520
- directory_not_found: "directory_not_found";
38521
- }>>>>;
38522
41361
  }, z.core.$strip>;
38523
41362
  }, z.core.$strip>, z.ZodObject<{
38524
- type: z.ZodLiteral<"open_project_response">;
41363
+ type: z.ZodLiteral<"open_in_editor_response">;
41364
+ payload: z.ZodObject<{
41365
+ requestId: z.ZodString;
41366
+ error: z.ZodNullable<z.ZodString>;
41367
+ }, z.core.$strip>;
41368
+ }, z.core.$strip>, z.ZodObject<{
41369
+ type: z.ZodLiteral<"archive_workspace_response">;
41370
+ payload: z.ZodObject<{
41371
+ requestId: z.ZodString;
41372
+ workspaceId: z.ZodString;
41373
+ archivedAt: z.ZodNullable<z.ZodString>;
41374
+ error: z.ZodNullable<z.ZodString>;
41375
+ deletedBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41376
+ }, z.core.$strip>;
41377
+ }, z.core.$strip>, z.ZodObject<{
41378
+ type: z.ZodLiteral<"workspace.archive.preflight.response">;
41379
+ payload: z.ZodObject<{
41380
+ requestId: z.ZodString;
41381
+ workspaceId: z.ZodString;
41382
+ detection: z.ZodNullable<z.ZodObject<{
41383
+ isOttoWorktree: z.ZodBoolean;
41384
+ branchName: z.ZodNullable<z.ZodString>;
41385
+ baseBranch: z.ZodNullable<z.ZodString>;
41386
+ mergeState: z.ZodEnum<{
41387
+ unknown: "unknown";
41388
+ merged: "merged";
41389
+ unmerged: "unmerged";
41390
+ }>;
41391
+ unmergedCommitCount: z.ZodNullable<z.ZodNumber>;
41392
+ hasRemoteBranch: z.ZodBoolean;
41393
+ branchCheckedOutElsewhere: z.ZodBoolean;
41394
+ directoryWillBeRemoved: z.ZodBoolean;
41395
+ }, z.core.$strip>>;
41396
+ error: z.ZodNullable<z.ZodString>;
41397
+ }, z.core.$strip>;
41398
+ }, z.core.$strip>, z.ZodObject<{
41399
+ type: z.ZodLiteral<"worktree.reattach.list.response">;
41400
+ payload: z.ZodObject<{
41401
+ requestId: z.ZodString;
41402
+ candidates: z.ZodArray<z.ZodObject<{
41403
+ workspaceId: z.ZodNullable<z.ZodString>;
41404
+ worktreePath: z.ZodString;
41405
+ branchName: z.ZodNullable<z.ZodString>;
41406
+ baseBranch: z.ZodNullable<z.ZodString>;
41407
+ directoryOnDisk: z.ZodBoolean;
41408
+ displayName: z.ZodNullable<z.ZodString>;
41409
+ archivedAt: z.ZodNullable<z.ZodString>;
41410
+ }, z.core.$strip>>;
41411
+ error: z.ZodNullable<z.ZodString>;
41412
+ }, z.core.$strip>;
41413
+ }, z.core.$strip>, z.ZodObject<{
41414
+ type: z.ZodLiteral<"worktree.reattach.response">;
38525
41415
  payload: z.ZodObject<{
38526
41416
  requestId: z.ZodString;
38527
41417
  workspace: z.ZodNullable<z.ZodPipe<z.ZodObject<{
@@ -38929,42 +41819,6 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
38929
41819
  } | undefined;
38930
41820
  }>>>;
38931
41821
  error: z.ZodNullable<z.ZodString>;
38932
- errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
38933
- directory_not_found: "directory_not_found";
38934
- }>>>>;
38935
- }, z.core.$strip>;
38936
- }, z.core.$strip>, z.ZodObject<{
38937
- type: z.ZodLiteral<"start_workspace_script_response">;
38938
- payload: z.ZodObject<{
38939
- requestId: z.ZodString;
38940
- workspaceId: z.ZodString;
38941
- scriptName: z.ZodString;
38942
- terminalId: z.ZodNullable<z.ZodString>;
38943
- error: z.ZodNullable<z.ZodString>;
38944
- }, z.core.$strip>;
38945
- }, z.core.$strip>, z.ZodObject<{
38946
- type: z.ZodLiteral<"list_available_editors_response">;
38947
- payload: z.ZodObject<{
38948
- requestId: z.ZodString;
38949
- editors: z.ZodArray<z.ZodObject<{
38950
- id: z.ZodString;
38951
- label: z.ZodString;
38952
- }, z.core.$strip>>;
38953
- error: z.ZodNullable<z.ZodString>;
38954
- }, z.core.$strip>;
38955
- }, z.core.$strip>, z.ZodObject<{
38956
- type: z.ZodLiteral<"open_in_editor_response">;
38957
- payload: z.ZodObject<{
38958
- requestId: z.ZodString;
38959
- error: z.ZodNullable<z.ZodString>;
38960
- }, z.core.$strip>;
38961
- }, z.core.$strip>, z.ZodObject<{
38962
- type: z.ZodLiteral<"archive_workspace_response">;
38963
- payload: z.ZodObject<{
38964
- requestId: z.ZodString;
38965
- workspaceId: z.ZodString;
38966
- archivedAt: z.ZodNullable<z.ZodString>;
38967
- error: z.ZodNullable<z.ZodString>;
38968
41822
  }, z.core.$strip>;
38969
41823
  }, z.core.$strip>, z.ZodObject<{
38970
41824
  type: z.ZodLiteral<"fetch_agent_response">;
@@ -39973,6 +42827,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
39973
42827
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
39974
42828
  }, z.core.$loose>>;
39975
42829
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
42830
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
39976
42831
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
39977
42832
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
39978
42833
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -40129,6 +42984,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
40129
42984
  preferWriterPersonalities: z.ZodDefault<z.ZodBoolean>;
40130
42985
  }, z.core.$loose>>;
40131
42986
  autoArchiveAfterMerge: z.ZodDefault<z.ZodBoolean>;
42987
+ hideMergeIntoBaseAction: z.ZodDefault<z.ZodBoolean>;
40132
42988
  enableTerminalAgentHooks: z.ZodDefault<z.ZodBoolean>;
40133
42989
  appendSystemPrompt: z.ZodDefault<z.ZodString>;
40134
42990
  terminalProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -40275,6 +43131,19 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
40275
43131
  format: z.ZodOptional<z.ZodString>;
40276
43132
  error: z.ZodOptional<z.ZodString>;
40277
43133
  }, z.core.$loose>;
43134
+ }, z.core.$strip>, z.ZodObject<{
43135
+ type: z.ZodLiteral<"speech.tts.speak.response">;
43136
+ payload: z.ZodObject<{
43137
+ requestId: z.ZodString;
43138
+ ok: z.ZodOptional<z.ZodBoolean>;
43139
+ canceled: z.ZodOptional<z.ZodBoolean>;
43140
+ error: z.ZodOptional<z.ZodString>;
43141
+ }, z.core.$loose>;
43142
+ }, z.core.$strip>, z.ZodObject<{
43143
+ type: z.ZodLiteral<"speech.tts.speak.cancel.response">;
43144
+ payload: z.ZodObject<{
43145
+ requestId: z.ZodString;
43146
+ }, z.core.$loose>;
40278
43147
  }, z.core.$strip>, z.ZodObject<{
40279
43148
  type: z.ZodLiteral<"visualizer.voiceCues.generate.response">;
40280
43149
  payload: z.ZodObject<{
@@ -41504,7 +44373,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
41504
44373
  runs: z.ZodArray<z.ZodObject<{
41505
44374
  id: z.ZodString;
41506
44375
  title: z.ZodString;
44376
+ description: z.ZodOptional<z.ZodString>;
41507
44377
  status: z.ZodString;
44378
+ kind: z.ZodOptional<z.ZodString>;
44379
+ graphId: z.ZodOptional<z.ZodString>;
44380
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41508
44381
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
41509
44382
  autopilot: z.ZodOptional<z.ZodBoolean>;
41510
44383
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -41556,7 +44429,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
41556
44429
  run: z.ZodObject<{
41557
44430
  id: z.ZodString;
41558
44431
  title: z.ZodString;
44432
+ description: z.ZodOptional<z.ZodString>;
41559
44433
  status: z.ZodString;
44434
+ kind: z.ZodOptional<z.ZodString>;
44435
+ graphId: z.ZodOptional<z.ZodString>;
44436
+ graphInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41560
44437
  requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
41561
44438
  autopilot: z.ZodOptional<z.ZodBoolean>;
41562
44439
  phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -41626,6 +44503,166 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
41626
44503
  payload: z.ZodObject<{
41627
44504
  runIds: z.ZodArray<z.ZodString>;
41628
44505
  }, z.core.$strip>;
44506
+ }, z.core.$strip>, z.ZodObject<{
44507
+ type: z.ZodLiteral<"runs.graphs.list.response">;
44508
+ payload: z.ZodObject<{
44509
+ graphs: z.ZodArray<z.ZodObject<{
44510
+ id: z.ZodString;
44511
+ name: z.ZodString;
44512
+ description: z.ZodOptional<z.ZodString>;
44513
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
44514
+ key: z.ZodString;
44515
+ label: z.ZodString;
44516
+ description: z.ZodOptional<z.ZodString>;
44517
+ multiline: z.ZodOptional<z.ZodBoolean>;
44518
+ required: z.ZodOptional<z.ZodBoolean>;
44519
+ defaultValue: z.ZodOptional<z.ZodString>;
44520
+ }, z.core.$loose>>>;
44521
+ nodes: z.ZodArray<z.ZodObject<{
44522
+ id: z.ZodString;
44523
+ kind: z.ZodString;
44524
+ title: z.ZodString;
44525
+ role: z.ZodOptional<z.ZodString>;
44526
+ prompt: z.ZodOptional<z.ZodString>;
44527
+ promptFromInput: z.ZodOptional<z.ZodString>;
44528
+ autonomous: z.ZodOptional<z.ZodBoolean>;
44529
+ loop: z.ZodOptional<z.ZodObject<{
44530
+ times: z.ZodOptional<z.ZodNumber>;
44531
+ until: z.ZodOptional<z.ZodObject<{
44532
+ criteria: z.ZodArray<z.ZodString>;
44533
+ judgeRole: z.ZodOptional<z.ZodString>;
44534
+ max: z.ZodNumber;
44535
+ }, z.core.$loose>>;
44536
+ }, z.core.$loose>>;
44537
+ model: z.ZodOptional<z.ZodString>;
44538
+ position: z.ZodOptional<z.ZodObject<{
44539
+ x: z.ZodNumber;
44540
+ y: z.ZodNumber;
44541
+ }, z.core.$loose>>;
44542
+ }, z.core.$loose>>;
44543
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
44544
+ id: z.ZodOptional<z.ZodString>;
44545
+ from: z.ZodString;
44546
+ to: z.ZodString;
44547
+ }, z.core.$loose>>>;
44548
+ builtIn: z.ZodOptional<z.ZodBoolean>;
44549
+ createdAt: z.ZodOptional<z.ZodString>;
44550
+ updatedAt: z.ZodOptional<z.ZodString>;
44551
+ }, z.core.$loose>>;
44552
+ requestId: z.ZodString;
44553
+ }, z.core.$strip>;
44554
+ }, z.core.$strip>, z.ZodObject<{
44555
+ type: z.ZodLiteral<"runs.graphs.save.response">;
44556
+ payload: z.ZodObject<{
44557
+ graph: z.ZodOptional<z.ZodObject<{
44558
+ id: z.ZodString;
44559
+ name: z.ZodString;
44560
+ description: z.ZodOptional<z.ZodString>;
44561
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
44562
+ key: z.ZodString;
44563
+ label: z.ZodString;
44564
+ description: z.ZodOptional<z.ZodString>;
44565
+ multiline: z.ZodOptional<z.ZodBoolean>;
44566
+ required: z.ZodOptional<z.ZodBoolean>;
44567
+ defaultValue: z.ZodOptional<z.ZodString>;
44568
+ }, z.core.$loose>>>;
44569
+ nodes: z.ZodArray<z.ZodObject<{
44570
+ id: z.ZodString;
44571
+ kind: z.ZodString;
44572
+ title: z.ZodString;
44573
+ role: z.ZodOptional<z.ZodString>;
44574
+ prompt: z.ZodOptional<z.ZodString>;
44575
+ promptFromInput: z.ZodOptional<z.ZodString>;
44576
+ autonomous: z.ZodOptional<z.ZodBoolean>;
44577
+ loop: z.ZodOptional<z.ZodObject<{
44578
+ times: z.ZodOptional<z.ZodNumber>;
44579
+ until: z.ZodOptional<z.ZodObject<{
44580
+ criteria: z.ZodArray<z.ZodString>;
44581
+ judgeRole: z.ZodOptional<z.ZodString>;
44582
+ max: z.ZodNumber;
44583
+ }, z.core.$loose>>;
44584
+ }, z.core.$loose>>;
44585
+ model: z.ZodOptional<z.ZodString>;
44586
+ position: z.ZodOptional<z.ZodObject<{
44587
+ x: z.ZodNumber;
44588
+ y: z.ZodNumber;
44589
+ }, z.core.$loose>>;
44590
+ }, z.core.$loose>>;
44591
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
44592
+ id: z.ZodOptional<z.ZodString>;
44593
+ from: z.ZodString;
44594
+ to: z.ZodString;
44595
+ }, z.core.$loose>>>;
44596
+ builtIn: z.ZodOptional<z.ZodBoolean>;
44597
+ createdAt: z.ZodOptional<z.ZodString>;
44598
+ updatedAt: z.ZodOptional<z.ZodString>;
44599
+ }, z.core.$loose>>;
44600
+ error: z.ZodOptional<z.ZodString>;
44601
+ requestId: z.ZodString;
44602
+ }, z.core.$strip>;
44603
+ }, z.core.$strip>, z.ZodObject<{
44604
+ type: z.ZodLiteral<"runs.graphs.delete.response">;
44605
+ payload: z.ZodObject<{
44606
+ deleted: z.ZodBoolean;
44607
+ error: z.ZodOptional<z.ZodString>;
44608
+ requestId: z.ZodString;
44609
+ }, z.core.$strip>;
44610
+ }, z.core.$strip>, z.ZodObject<{
44611
+ type: z.ZodLiteral<"runs.graphs.changed.notification">;
44612
+ payload: z.ZodObject<{
44613
+ graphs: z.ZodArray<z.ZodObject<{
44614
+ id: z.ZodString;
44615
+ name: z.ZodString;
44616
+ description: z.ZodOptional<z.ZodString>;
44617
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
44618
+ key: z.ZodString;
44619
+ label: z.ZodString;
44620
+ description: z.ZodOptional<z.ZodString>;
44621
+ multiline: z.ZodOptional<z.ZodBoolean>;
44622
+ required: z.ZodOptional<z.ZodBoolean>;
44623
+ defaultValue: z.ZodOptional<z.ZodString>;
44624
+ }, z.core.$loose>>>;
44625
+ nodes: z.ZodArray<z.ZodObject<{
44626
+ id: z.ZodString;
44627
+ kind: z.ZodString;
44628
+ title: z.ZodString;
44629
+ role: z.ZodOptional<z.ZodString>;
44630
+ prompt: z.ZodOptional<z.ZodString>;
44631
+ promptFromInput: z.ZodOptional<z.ZodString>;
44632
+ autonomous: z.ZodOptional<z.ZodBoolean>;
44633
+ loop: z.ZodOptional<z.ZodObject<{
44634
+ times: z.ZodOptional<z.ZodNumber>;
44635
+ until: z.ZodOptional<z.ZodObject<{
44636
+ criteria: z.ZodArray<z.ZodString>;
44637
+ judgeRole: z.ZodOptional<z.ZodString>;
44638
+ max: z.ZodNumber;
44639
+ }, z.core.$loose>>;
44640
+ }, z.core.$loose>>;
44641
+ model: z.ZodOptional<z.ZodString>;
44642
+ position: z.ZodOptional<z.ZodObject<{
44643
+ x: z.ZodNumber;
44644
+ y: z.ZodNumber;
44645
+ }, z.core.$loose>>;
44646
+ }, z.core.$loose>>;
44647
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
44648
+ id: z.ZodOptional<z.ZodString>;
44649
+ from: z.ZodString;
44650
+ to: z.ZodString;
44651
+ }, z.core.$loose>>>;
44652
+ builtIn: z.ZodOptional<z.ZodBoolean>;
44653
+ createdAt: z.ZodOptional<z.ZodString>;
44654
+ updatedAt: z.ZodOptional<z.ZodString>;
44655
+ }, z.core.$loose>>;
44656
+ }, z.core.$strip>;
44657
+ }, z.core.$strip>, z.ZodObject<{
44658
+ type: z.ZodLiteral<"runs.start.response">;
44659
+ payload: z.ZodObject<{
44660
+ runId: z.ZodOptional<z.ZodString>;
44661
+ agentId: z.ZodOptional<z.ZodString>;
44662
+ workspaceId: z.ZodOptional<z.ZodString>;
44663
+ error: z.ZodOptional<z.ZodString>;
44664
+ requestId: z.ZodString;
44665
+ }, z.core.$strip>;
41629
44666
  }, z.core.$strip>, z.ZodObject<{
41630
44667
  type: z.ZodLiteral<"checkout_merge_response">;
41631
44668
  payload: z.ZodObject<{
@@ -42768,8 +45805,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
42768
45805
  cwd: z.ZodString;
42769
45806
  path: z.ZodString;
42770
45807
  change: z.ZodEnum<{
42771
- changed: "changed";
42772
45808
  deleted: "deleted";
45809
+ changed: "changed";
42773
45810
  recreated: "recreated";
42774
45811
  }>;
42775
45812
  modifiedAt: z.ZodNullable<z.ZodString>;