@getpaseo/protocol 0.2.0-beta.1 → 0.2.0-beta.3

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.
@@ -208,6 +208,7 @@ export declare const AgentStreamEventPayloadSchema: z.ZodDiscriminatedUnion<[z.Z
208
208
  body: z.ZodString;
209
209
  data: z.ZodObject<{
210
210
  serverId: z.ZodString;
211
+ workspaceId: z.ZodOptional<z.ZodString>;
211
212
  agentId: z.ZodString;
212
213
  reason: z.ZodEnum<{
213
214
  finished: "finished";
@@ -654,7 +655,7 @@ export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
654
655
  }, z.core.$strip>], "type">;
655
656
  export declare const ChangeRequestCheckoutSourceSchema: z.ZodObject<{
656
657
  kind: z.ZodLiteral<"change_request">;
657
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
658
+ forge: z.ZodOptional<z.ZodString>;
658
659
  number: z.ZodNumber;
659
660
  projectPath: z.ZodOptional<z.ZodString>;
660
661
  }, z.core.$strip>;
@@ -969,6 +970,21 @@ export declare const DaemonGetPairingOfferRequestSchema: z.ZodObject<{
969
970
  type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
970
971
  requestId: z.ZodString;
971
972
  }, z.core.$strip>;
973
+ export declare const HubManagementDaemonConnectRequestSchema: z.ZodObject<{
974
+ type: z.ZodLiteral<"hub.management.daemon.connect.request">;
975
+ requestId: z.ZodString;
976
+ hubUrl: z.ZodString;
977
+ token: z.ZodString;
978
+ }, z.core.$strip>;
979
+ export declare const HubManagementDaemonGetStatusRequestSchema: z.ZodObject<{
980
+ type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
981
+ requestId: z.ZodString;
982
+ }, z.core.$strip>;
983
+ export declare const HubManagementDaemonDisconnectRequestSchema: z.ZodObject<{
984
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
985
+ requestId: z.ZodString;
986
+ force: z.ZodOptional<z.ZodBoolean>;
987
+ }, z.core.$strip>;
972
988
  export declare const DiagnosticsRequestSchema: z.ZodObject<{
973
989
  type: z.ZodLiteral<"diagnostics.request">;
974
990
  requestId: z.ZodString;
@@ -1030,6 +1046,10 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
1030
1046
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1031
1047
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1032
1048
  terminals: z.ZodOptional<z.ZodUnknown>;
1049
+ servicePorts: z.ZodOptional<z.ZodObject<{
1050
+ range: z.ZodOptional<z.ZodString>;
1051
+ portScript: z.ZodOptional<z.ZodString>;
1052
+ }, z.core.$strict>>;
1033
1053
  }, z.core.$loose>>;
1034
1054
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1035
1055
  type: z.ZodOptional<z.ZodUnknown>;
@@ -1090,7 +1110,7 @@ declare const GitSetupOptionsSchema: z.ZodObject<{
1090
1110
  }>>;
1091
1111
  checkoutSource: z.ZodOptional<z.ZodObject<{
1092
1112
  kind: z.ZodLiteral<"change_request">;
1093
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1113
+ forge: z.ZodOptional<z.ZodString>;
1094
1114
  number: z.ZodNumber;
1095
1115
  projectPath: z.ZodOptional<z.ZodString>;
1096
1116
  }, z.core.$strip>>;
@@ -1148,6 +1168,7 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
1148
1168
  }, z.core.$strip>;
1149
1169
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1150
1170
  workspaceId: z.ZodOptional<z.ZodString>;
1171
+ callerAgentId: z.ZodOptional<z.ZodString>;
1151
1172
  worktreeName: z.ZodOptional<z.ZodString>;
1152
1173
  initialPrompt: z.ZodOptional<z.ZodString>;
1153
1174
  clientMessageId: z.ZodOptional<z.ZodString>;
@@ -1246,7 +1267,7 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
1246
1267
  }>>;
1247
1268
  checkoutSource: z.ZodOptional<z.ZodObject<{
1248
1269
  kind: z.ZodLiteral<"change_request">;
1249
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1270
+ forge: z.ZodOptional<z.ZodString>;
1250
1271
  number: z.ZodNumber;
1251
1272
  projectPath: z.ZodOptional<z.ZodString>;
1252
1273
  }, z.core.$strip>>;
@@ -1421,6 +1442,11 @@ export declare const ProviderSubagentTimelineRequestMessageSchema: z.ZodObject<{
1421
1442
  }, z.core.$strip>>;
1422
1443
  limit: z.ZodOptional<z.ZodNumber>;
1423
1444
  }, z.core.$strip>;
1445
+ export declare const SetAgentTimelineSubscriptionRequestMessageSchema: z.ZodObject<{
1446
+ type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
1447
+ agentIds: z.ZodArray<z.ZodString>;
1448
+ requestId: z.ZodString;
1449
+ }, z.core.$strip>;
1424
1450
  export declare const AgentForkContextRequestMessageSchema: z.ZodObject<{
1425
1451
  type: z.ZodLiteral<"agent.fork_context.request">;
1426
1452
  agentId: z.ZodString;
@@ -2251,7 +2277,7 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
2251
2277
  }>>;
2252
2278
  checkoutSource: z.ZodOptional<z.ZodObject<{
2253
2279
  kind: z.ZodLiteral<"change_request">;
2254
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2280
+ forge: z.ZodOptional<z.ZodString>;
2255
2281
  number: z.ZodNumber;
2256
2282
  projectPath: z.ZodOptional<z.ZodString>;
2257
2283
  }, z.core.$strip>>;
@@ -2430,9 +2456,10 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
2430
2456
  }>>;
2431
2457
  refName: z.ZodOptional<z.ZodString>;
2432
2458
  baseBranch: z.ZodOptional<z.ZodString>;
2459
+ branchName: z.ZodOptional<z.ZodString>;
2433
2460
  checkoutSource: z.ZodOptional<z.ZodObject<{
2434
2461
  kind: z.ZodLiteral<"change_request">;
2435
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2462
+ forge: z.ZodOptional<z.ZodString>;
2436
2463
  number: z.ZodNumber;
2437
2464
  projectPath: z.ZodOptional<z.ZodString>;
2438
2465
  }, z.core.$strip>>;
@@ -2487,6 +2514,44 @@ export declare const FileExplorerRequestSchema: z.ZodObject<{
2487
2514
  requestId: z.ZodString;
2488
2515
  acceptBinary: z.ZodOptional<z.ZodBoolean>;
2489
2516
  }, z.core.$strip>;
2517
+ export declare const FileVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2518
+ status: z.ZodLiteral<"ready">;
2519
+ cwd: z.ZodString;
2520
+ path: z.ZodString;
2521
+ size: z.ZodNumber;
2522
+ modifiedAt: z.ZodString;
2523
+ revision: z.ZodOptional<z.ZodString>;
2524
+ }, z.core.$strip>, z.ZodObject<{
2525
+ status: z.ZodLiteral<"missing">;
2526
+ cwd: z.ZodString;
2527
+ path: z.ZodString;
2528
+ }, z.core.$strip>, z.ZodObject<{
2529
+ status: z.ZodLiteral<"error">;
2530
+ cwd: z.ZodString;
2531
+ path: z.ZodString;
2532
+ error: z.ZodString;
2533
+ }, z.core.$strip>], "status">;
2534
+ export declare const FileSubscribeRequestSchema: z.ZodObject<{
2535
+ type: z.ZodLiteral<"fs.file.subscribe.request">;
2536
+ cwd: z.ZodString;
2537
+ path: z.ZodString;
2538
+ subscriptionId: z.ZodString;
2539
+ requestId: z.ZodString;
2540
+ }, z.core.$strip>;
2541
+ export declare const FileUnsubscribeRequestSchema: z.ZodObject<{
2542
+ type: z.ZodLiteral<"fs.file.unsubscribe.request">;
2543
+ subscriptionId: z.ZodString;
2544
+ requestId: z.ZodString;
2545
+ }, z.core.$strip>;
2546
+ export declare const FileWriteRequestSchema: z.ZodObject<{
2547
+ type: z.ZodLiteral<"fs.file.write.request">;
2548
+ cwd: z.ZodString;
2549
+ path: z.ZodString;
2550
+ content: z.ZodString;
2551
+ expectedModifiedAt: z.ZodString;
2552
+ expectedRevision: z.ZodOptional<z.ZodString>;
2553
+ requestId: z.ZodString;
2554
+ }, z.core.$strip>;
2490
2555
  export declare const ProjectIconRequestSchema: z.ZodObject<{
2491
2556
  type: z.ZodLiteral<"project_icon_request">;
2492
2557
  cwd: z.ZodString;
@@ -2655,7 +2720,59 @@ export declare const CaptureTerminalRequestSchema: z.ZodObject<{
2655
2720
  stripAnsi: z.ZodDefault<z.ZodBoolean>;
2656
2721
  requestId: z.ZodString;
2657
2722
  }, z.core.$strip>;
2723
+ export declare const HubExecutionAgentCreateRequestSchema: z.ZodObject<{
2724
+ type: z.ZodLiteral<"hub.execution.agent.create.request">;
2725
+ requestId: z.ZodString;
2726
+ executionId: z.ZodString;
2727
+ provider: z.ZodString;
2728
+ cwd: z.ZodString;
2729
+ prompt: z.ZodString;
2730
+ workspaceId: z.ZodOptional<z.ZodString>;
2731
+ model: z.ZodOptional<z.ZodString>;
2732
+ modeId: z.ZodOptional<z.ZodString>;
2733
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
2734
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2735
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2736
+ worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2737
+ mode: z.ZodLiteral<"branch-off">;
2738
+ newBranch: z.ZodString;
2739
+ base: z.ZodOptional<z.ZodString>;
2740
+ }, z.core.$strip>, z.ZodObject<{
2741
+ mode: z.ZodLiteral<"checkout-branch">;
2742
+ branch: z.ZodString;
2743
+ }, z.core.$strip>, z.ZodObject<{
2744
+ mode: z.ZodLiteral<"checkout-pr">;
2745
+ prNumber: z.ZodNumber;
2746
+ }, z.core.$strip>], "mode">>;
2747
+ autoArchive: z.ZodOptional<z.ZodBoolean>;
2748
+ }, z.core.$strip>;
2749
+ export type HubExecutionAgentCreateRequest = z.infer<typeof HubExecutionAgentCreateRequestSchema>;
2658
2750
  export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2751
+ type: z.ZodLiteral<"hub.execution.agent.create.request">;
2752
+ requestId: z.ZodString;
2753
+ executionId: z.ZodString;
2754
+ provider: z.ZodString;
2755
+ cwd: z.ZodString;
2756
+ prompt: z.ZodString;
2757
+ workspaceId: z.ZodOptional<z.ZodString>;
2758
+ model: z.ZodOptional<z.ZodString>;
2759
+ modeId: z.ZodOptional<z.ZodString>;
2760
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
2761
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2762
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2763
+ worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2764
+ mode: z.ZodLiteral<"branch-off">;
2765
+ newBranch: z.ZodString;
2766
+ base: z.ZodOptional<z.ZodString>;
2767
+ }, z.core.$strip>, z.ZodObject<{
2768
+ mode: z.ZodLiteral<"checkout-branch">;
2769
+ branch: z.ZodString;
2770
+ }, z.core.$strip>, z.ZodObject<{
2771
+ mode: z.ZodLiteral<"checkout-pr">;
2772
+ prNumber: z.ZodNumber;
2773
+ }, z.core.$strip>], "mode">>;
2774
+ autoArchive: z.ZodOptional<z.ZodBoolean>;
2775
+ }, z.core.$strip>, z.ZodObject<{
2659
2776
  type: z.ZodLiteral<"browser.automation.execute.response">;
2660
2777
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2661
2778
  requestId: z.ZodString;
@@ -3130,6 +3247,18 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3130
3247
  }, z.core.$strip>, z.ZodObject<{
3131
3248
  type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
3132
3249
  requestId: z.ZodString;
3250
+ }, z.core.$strip>, z.ZodObject<{
3251
+ type: z.ZodLiteral<"hub.management.daemon.connect.request">;
3252
+ requestId: z.ZodString;
3253
+ hubUrl: z.ZodString;
3254
+ token: z.ZodString;
3255
+ }, z.core.$strip>, z.ZodObject<{
3256
+ type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
3257
+ requestId: z.ZodString;
3258
+ }, z.core.$strip>, z.ZodObject<{
3259
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
3260
+ requestId: z.ZodString;
3261
+ force: z.ZodOptional<z.ZodBoolean>;
3133
3262
  }, z.core.$strip>, z.ZodObject<{
3134
3263
  type: z.ZodLiteral<"diagnostics.request">;
3135
3264
  requestId: z.ZodString;
@@ -3187,6 +3316,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3187
3316
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3188
3317
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3189
3318
  terminals: z.ZodOptional<z.ZodUnknown>;
3319
+ servicePorts: z.ZodOptional<z.ZodObject<{
3320
+ range: z.ZodOptional<z.ZodString>;
3321
+ portScript: z.ZodOptional<z.ZodString>;
3322
+ }, z.core.$strict>>;
3190
3323
  }, z.core.$loose>>;
3191
3324
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3192
3325
  type: z.ZodOptional<z.ZodUnknown>;
@@ -3268,6 +3401,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3268
3401
  }, z.core.$strip>;
3269
3402
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3270
3403
  workspaceId: z.ZodOptional<z.ZodString>;
3404
+ callerAgentId: z.ZodOptional<z.ZodString>;
3271
3405
  worktreeName: z.ZodOptional<z.ZodString>;
3272
3406
  initialPrompt: z.ZodOptional<z.ZodString>;
3273
3407
  clientMessageId: z.ZodOptional<z.ZodString>;
@@ -3366,7 +3500,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3366
3500
  }>>;
3367
3501
  checkoutSource: z.ZodOptional<z.ZodObject<{
3368
3502
  kind: z.ZodLiteral<"change_request">;
3369
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3503
+ forge: z.ZodOptional<z.ZodString>;
3370
3504
  number: z.ZodNumber;
3371
3505
  projectPath: z.ZodOptional<z.ZodString>;
3372
3506
  }, z.core.$strip>>;
@@ -3530,6 +3664,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3530
3664
  seq: z.ZodNumber;
3531
3665
  }, z.core.$strip>>;
3532
3666
  limit: z.ZodOptional<z.ZodNumber>;
3667
+ }, z.core.$strip>, z.ZodObject<{
3668
+ type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
3669
+ agentIds: z.ZodArray<z.ZodString>;
3670
+ requestId: z.ZodString;
3533
3671
  }, z.core.$strip>, z.ZodObject<{
3534
3672
  type: z.ZodLiteral<"agent.fork_context.request">;
3535
3673
  agentId: z.ZodString;
@@ -3969,7 +4107,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3969
4107
  }>>;
3970
4108
  checkoutSource: z.ZodOptional<z.ZodObject<{
3971
4109
  kind: z.ZodLiteral<"change_request">;
3972
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4110
+ forge: z.ZodOptional<z.ZodString>;
3973
4111
  number: z.ZodNumber;
3974
4112
  projectPath: z.ZodOptional<z.ZodString>;
3975
4113
  }, z.core.$strip>>;
@@ -4121,9 +4259,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
4121
4259
  }>>;
4122
4260
  refName: z.ZodOptional<z.ZodString>;
4123
4261
  baseBranch: z.ZodOptional<z.ZodString>;
4262
+ branchName: z.ZodOptional<z.ZodString>;
4124
4263
  checkoutSource: z.ZodOptional<z.ZodObject<{
4125
4264
  kind: z.ZodLiteral<"change_request">;
4126
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4265
+ forge: z.ZodOptional<z.ZodString>;
4127
4266
  number: z.ZodNumber;
4128
4267
  projectPath: z.ZodOptional<z.ZodString>;
4129
4268
  }, z.core.$strip>>;
@@ -4144,6 +4283,24 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
4144
4283
  }>;
4145
4284
  requestId: z.ZodString;
4146
4285
  acceptBinary: z.ZodOptional<z.ZodBoolean>;
4286
+ }, z.core.$strip>, z.ZodObject<{
4287
+ type: z.ZodLiteral<"fs.file.subscribe.request">;
4288
+ cwd: z.ZodString;
4289
+ path: z.ZodString;
4290
+ subscriptionId: z.ZodString;
4291
+ requestId: z.ZodString;
4292
+ }, z.core.$strip>, z.ZodObject<{
4293
+ type: z.ZodLiteral<"fs.file.unsubscribe.request">;
4294
+ subscriptionId: z.ZodString;
4295
+ requestId: z.ZodString;
4296
+ }, z.core.$strip>, z.ZodObject<{
4297
+ type: z.ZodLiteral<"fs.file.write.request">;
4298
+ cwd: z.ZodString;
4299
+ path: z.ZodString;
4300
+ content: z.ZodString;
4301
+ expectedModifiedAt: z.ZodString;
4302
+ expectedRevision: z.ZodOptional<z.ZodString>;
4303
+ requestId: z.ZodString;
4147
4304
  }, z.core.$strip>, z.ZodObject<{
4148
4305
  type: z.ZodLiteral<"project_icon_request">;
4149
4306
  cwd: z.ZodString;
@@ -4629,6 +4786,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4629
4786
  projectAdd: z.ZodOptional<z.ZodBoolean>;
4630
4787
  worktreeRestore: z.ZodOptional<z.ZodBoolean>;
4631
4788
  workspaceRecovery: z.ZodOptional<z.ZodBoolean>;
4789
+ workspaceFileEditing: z.ZodOptional<z.ZodBoolean>;
4632
4790
  providerUsageList: z.ZodOptional<z.ZodBoolean>;
4633
4791
  agentDetach: z.ZodOptional<z.ZodBoolean>;
4634
4792
  daemonDiagnostics: z.ZodOptional<z.ZodBoolean>;
@@ -4637,6 +4795,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4637
4795
  agentForkContextCursor: z.ZodOptional<z.ZodBoolean>;
4638
4796
  providerSubagents: z.ZodOptional<z.ZodBoolean>;
4639
4797
  workspacePinning: z.ZodOptional<z.ZodBoolean>;
4798
+ hubRelationship: z.ZodOptional<z.ZodBoolean>;
4640
4799
  projectGithubClone: z.ZodOptional<z.ZodBoolean>;
4641
4800
  workspaceGithubRepositorySearch: z.ZodOptional<z.ZodBoolean>;
4642
4801
  projectCreateDirectory: z.ZodOptional<z.ZodBoolean>;
@@ -4644,6 +4803,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4644
4803
  providerRemoval: z.ZodOptional<z.ZodBoolean>;
4645
4804
  importSessionWorkspaceTarget: z.ZodOptional<z.ZodBoolean>;
4646
4805
  forgeProviders: z.ZodOptional<z.ZodBoolean>;
4806
+ selectiveAgentTimeline: z.ZodOptional<z.ZodBoolean>;
4807
+ stableProjectIdentity: z.ZodOptional<z.ZodBoolean>;
4647
4808
  }, z.core.$strip>>;
4648
4809
  }, z.core.$loose>, z.ZodTransform<{
4649
4810
  hostname: string | null;
@@ -4680,6 +4841,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4680
4841
  projectAdd?: boolean | undefined;
4681
4842
  worktreeRestore?: boolean | undefined;
4682
4843
  workspaceRecovery?: boolean | undefined;
4844
+ workspaceFileEditing?: boolean | undefined;
4683
4845
  providerUsageList?: boolean | undefined;
4684
4846
  agentDetach?: boolean | undefined;
4685
4847
  daemonDiagnostics?: boolean | undefined;
@@ -4688,6 +4850,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4688
4850
  agentForkContextCursor?: boolean | undefined;
4689
4851
  providerSubagents?: boolean | undefined;
4690
4852
  workspacePinning?: boolean | undefined;
4853
+ hubRelationship?: boolean | undefined;
4691
4854
  projectGithubClone?: boolean | undefined;
4692
4855
  workspaceGithubRepositorySearch?: boolean | undefined;
4693
4856
  projectCreateDirectory?: boolean | undefined;
@@ -4695,6 +4858,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4695
4858
  providerRemoval?: boolean | undefined;
4696
4859
  importSessionWorkspaceTarget?: boolean | undefined;
4697
4860
  forgeProviders?: boolean | undefined;
4861
+ selectiveAgentTimeline?: boolean | undefined;
4862
+ stableProjectIdentity?: boolean | undefined;
4698
4863
  } | undefined;
4699
4864
  }, {
4700
4865
  [x: string]: unknown;
@@ -4732,6 +4897,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4732
4897
  projectAdd?: boolean | undefined;
4733
4898
  worktreeRestore?: boolean | undefined;
4734
4899
  workspaceRecovery?: boolean | undefined;
4900
+ workspaceFileEditing?: boolean | undefined;
4735
4901
  providerUsageList?: boolean | undefined;
4736
4902
  agentDetach?: boolean | undefined;
4737
4903
  daemonDiagnostics?: boolean | undefined;
@@ -4740,6 +4906,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4740
4906
  agentForkContextCursor?: boolean | undefined;
4741
4907
  providerSubagents?: boolean | undefined;
4742
4908
  workspacePinning?: boolean | undefined;
4909
+ hubRelationship?: boolean | undefined;
4743
4910
  projectGithubClone?: boolean | undefined;
4744
4911
  workspaceGithubRepositorySearch?: boolean | undefined;
4745
4912
  projectCreateDirectory?: boolean | undefined;
@@ -4747,6 +4914,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
4747
4914
  providerRemoval?: boolean | undefined;
4748
4915
  importSessionWorkspaceTarget?: boolean | undefined;
4749
4916
  forgeProviders?: boolean | undefined;
4917
+ selectiveAgentTimeline?: boolean | undefined;
4918
+ stableProjectIdentity?: boolean | undefined;
4750
4919
  } | undefined;
4751
4920
  }>>;
4752
4921
  export declare const StatusMessageSchema: z.ZodObject<{
@@ -6041,6 +6210,7 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
6041
6210
  body: z.ZodString;
6042
6211
  data: z.ZodObject<{
6043
6212
  serverId: z.ZodString;
6213
+ workspaceId: z.ZodOptional<z.ZodString>;
6044
6214
  agentId: z.ZodString;
6045
6215
  reason: z.ZodEnum<{
6046
6216
  finished: "finished";
@@ -7390,6 +7560,26 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
7390
7560
  removedProjectId: z.ZodOptional<z.ZodString>;
7391
7561
  }, z.core.$strip>], "kind">;
7392
7562
  }, z.core.$strip>;
7563
+ export declare const ProjectUpdateMessageSchema: z.ZodObject<{
7564
+ type: z.ZodLiteral<"project.update">;
7565
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
7566
+ kind: z.ZodLiteral<"upsert">;
7567
+ project: z.ZodObject<{
7568
+ projectId: z.ZodString;
7569
+ projectDisplayName: z.ZodString;
7570
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7571
+ projectRootPath: z.ZodString;
7572
+ projectKind: z.ZodEnum<{
7573
+ git: "git";
7574
+ directory: "directory";
7575
+ non_git: "non_git";
7576
+ }>;
7577
+ }, z.core.$strip>;
7578
+ }, z.core.$strip>, z.ZodObject<{
7579
+ kind: z.ZodLiteral<"remove">;
7580
+ projectId: z.ZodString;
7581
+ }, z.core.$strip>], "kind">;
7582
+ }, z.core.$strip>;
7393
7583
  export declare const ScriptStatusUpdateMessageSchema: z.ZodObject<{
7394
7584
  type: z.ZodLiteral<"script_status_update">;
7395
7585
  payload: z.ZodObject<{
@@ -8503,6 +8693,40 @@ export declare const ProviderSubagentUpdateMessageSchema: z.ZodObject<{
8503
8693
  subagentId: z.ZodString;
8504
8694
  }, z.core.$strip>], "kind">;
8505
8695
  }, z.core.$strip>;
8696
+ export declare const SetAgentTimelineSubscriptionResponseMessageSchema: z.ZodObject<{
8697
+ type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
8698
+ payload: z.ZodObject<{
8699
+ agentIds: z.ZodArray<z.ZodString>;
8700
+ requestId: z.ZodString;
8701
+ }, z.core.$strip>;
8702
+ }, z.core.$strip>;
8703
+ export declare const AgentAttentionRequiredMessageSchema: z.ZodObject<{
8704
+ type: z.ZodLiteral<"agent_attention_required">;
8705
+ payload: z.ZodObject<{
8706
+ agentId: z.ZodString;
8707
+ reason: z.ZodEnum<{
8708
+ finished: "finished";
8709
+ error: "error";
8710
+ permission: "permission";
8711
+ }>;
8712
+ timestamp: z.ZodString;
8713
+ shouldNotify: z.ZodBoolean;
8714
+ notification: z.ZodOptional<z.ZodObject<{
8715
+ title: z.ZodString;
8716
+ body: z.ZodString;
8717
+ data: z.ZodObject<{
8718
+ serverId: z.ZodString;
8719
+ workspaceId: z.ZodOptional<z.ZodString>;
8720
+ agentId: z.ZodString;
8721
+ reason: z.ZodEnum<{
8722
+ finished: "finished";
8723
+ error: "error";
8724
+ permission: "permission";
8725
+ }>;
8726
+ }, z.core.$strip>;
8727
+ }, z.core.$strip>>;
8728
+ }, z.core.$strip>;
8729
+ }, z.core.$strip>;
8506
8730
  export declare const AgentForkContextResponseMessageSchema: z.ZodObject<{
8507
8731
  type: z.ZodLiteral<"agent.fork_context.response">;
8508
8732
  payload: z.ZodObject<{
@@ -9259,6 +9483,85 @@ export declare const DaemonGetStatusResponseSchema: z.ZodObject<{
9259
9483
  }, z.core.$strip>>;
9260
9484
  }, z.core.$loose>;
9261
9485
  }, z.core.$strip>;
9486
+ export declare const HubRelationshipStatusSchema: z.ZodObject<{
9487
+ state: z.ZodEnum<{
9488
+ not_connected: "not_connected";
9489
+ connecting: "connecting";
9490
+ connected: "connected";
9491
+ reconnecting: "reconnecting";
9492
+ disconnecting: "disconnecting";
9493
+ revoked: "revoked";
9494
+ }>;
9495
+ daemonId: z.ZodNullable<z.ZodString>;
9496
+ hubOrigin: z.ZodNullable<z.ZodString>;
9497
+ scopes: z.ZodArray<z.ZodString>;
9498
+ connectedAt: z.ZodNullable<z.ZodString>;
9499
+ lastError: z.ZodNullable<z.ZodString>;
9500
+ }, z.core.$strip>;
9501
+ export declare const HubManagementDaemonConnectResponseSchema: z.ZodObject<{
9502
+ type: z.ZodLiteral<"hub.management.daemon.connect.response">;
9503
+ payload: z.ZodObject<{
9504
+ requestId: z.ZodString;
9505
+ status: z.ZodObject<{
9506
+ state: z.ZodEnum<{
9507
+ not_connected: "not_connected";
9508
+ connecting: "connecting";
9509
+ connected: "connected";
9510
+ reconnecting: "reconnecting";
9511
+ disconnecting: "disconnecting";
9512
+ revoked: "revoked";
9513
+ }>;
9514
+ daemonId: z.ZodNullable<z.ZodString>;
9515
+ hubOrigin: z.ZodNullable<z.ZodString>;
9516
+ scopes: z.ZodArray<z.ZodString>;
9517
+ connectedAt: z.ZodNullable<z.ZodString>;
9518
+ lastError: z.ZodNullable<z.ZodString>;
9519
+ }, z.core.$strip>;
9520
+ }, z.core.$strip>;
9521
+ }, z.core.$strip>;
9522
+ export declare const HubManagementDaemonGetStatusResponseSchema: z.ZodObject<{
9523
+ type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
9524
+ payload: z.ZodObject<{
9525
+ requestId: z.ZodString;
9526
+ status: z.ZodObject<{
9527
+ state: z.ZodEnum<{
9528
+ not_connected: "not_connected";
9529
+ connecting: "connecting";
9530
+ connected: "connected";
9531
+ reconnecting: "reconnecting";
9532
+ disconnecting: "disconnecting";
9533
+ revoked: "revoked";
9534
+ }>;
9535
+ daemonId: z.ZodNullable<z.ZodString>;
9536
+ hubOrigin: z.ZodNullable<z.ZodString>;
9537
+ scopes: z.ZodArray<z.ZodString>;
9538
+ connectedAt: z.ZodNullable<z.ZodString>;
9539
+ lastError: z.ZodNullable<z.ZodString>;
9540
+ }, z.core.$strip>;
9541
+ }, z.core.$strip>;
9542
+ }, z.core.$strip>;
9543
+ export declare const HubManagementDaemonDisconnectResponseSchema: z.ZodObject<{
9544
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
9545
+ payload: z.ZodObject<{
9546
+ requestId: z.ZodString;
9547
+ status: z.ZodObject<{
9548
+ state: z.ZodEnum<{
9549
+ not_connected: "not_connected";
9550
+ connecting: "connecting";
9551
+ connected: "connected";
9552
+ reconnecting: "reconnecting";
9553
+ disconnecting: "disconnecting";
9554
+ revoked: "revoked";
9555
+ }>;
9556
+ daemonId: z.ZodNullable<z.ZodString>;
9557
+ hubOrigin: z.ZodNullable<z.ZodString>;
9558
+ scopes: z.ZodArray<z.ZodString>;
9559
+ connectedAt: z.ZodNullable<z.ZodString>;
9560
+ lastError: z.ZodNullable<z.ZodString>;
9561
+ }, z.core.$strip>;
9562
+ warning: z.ZodOptional<z.ZodString>;
9563
+ }, z.core.$strip>;
9564
+ }, z.core.$strip>;
9262
9565
  export declare const DaemonGetPairingOfferResponseSchema: z.ZodObject<{
9263
9566
  type: z.ZodLiteral<"daemon.get_pairing_offer.response">;
9264
9567
  payload: z.ZodObject<{
@@ -9326,6 +9629,10 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
9326
9629
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
9327
9630
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
9328
9631
  terminals: z.ZodOptional<z.ZodUnknown>;
9632
+ servicePorts: z.ZodOptional<z.ZodObject<{
9633
+ range: z.ZodOptional<z.ZodString>;
9634
+ portScript: z.ZodOptional<z.ZodString>;
9635
+ }, z.core.$strict>>;
9329
9636
  }, z.core.$loose>>;
9330
9637
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
9331
9638
  type: z.ZodOptional<z.ZodUnknown>;
@@ -9381,6 +9688,10 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
9381
9688
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
9382
9689
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
9383
9690
  terminals: z.ZodOptional<z.ZodUnknown>;
9691
+ servicePorts: z.ZodOptional<z.ZodObject<{
9692
+ range: z.ZodOptional<z.ZodString>;
9693
+ portScript: z.ZodOptional<z.ZodString>;
9694
+ }, z.core.$strict>>;
9384
9695
  }, z.core.$loose>>;
9385
9696
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
9386
9697
  type: z.ZodOptional<z.ZodUnknown>;
@@ -11225,11 +11536,128 @@ export declare const FileExplorerResponseSchema: z.ZodObject<{
11225
11536
  mimeType: z.ZodOptional<z.ZodString>;
11226
11537
  size: z.ZodNumber;
11227
11538
  modifiedAt: z.ZodString;
11539
+ revision: z.ZodOptional<z.ZodString>;
11228
11540
  }, z.core.$strip>>;
11229
11541
  error: z.ZodNullable<z.ZodString>;
11230
11542
  requestId: z.ZodString;
11231
11543
  }, z.core.$strip>;
11232
11544
  }, z.core.$strip>;
11545
+ export declare const FileSubscribeResponseSchema: z.ZodObject<{
11546
+ type: z.ZodLiteral<"fs.file.subscribe.response">;
11547
+ payload: z.ZodObject<{
11548
+ subscriptionId: z.ZodString;
11549
+ initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
11550
+ status: z.ZodLiteral<"ready">;
11551
+ cwd: z.ZodString;
11552
+ path: z.ZodString;
11553
+ size: z.ZodNumber;
11554
+ modifiedAt: z.ZodString;
11555
+ revision: z.ZodOptional<z.ZodString>;
11556
+ }, z.core.$strip>, z.ZodObject<{
11557
+ status: z.ZodLiteral<"missing">;
11558
+ cwd: z.ZodString;
11559
+ path: z.ZodString;
11560
+ }, z.core.$strip>, z.ZodObject<{
11561
+ status: z.ZodLiteral<"error">;
11562
+ cwd: z.ZodString;
11563
+ path: z.ZodString;
11564
+ error: z.ZodString;
11565
+ }, z.core.$strip>], "status">;
11566
+ requestId: z.ZodString;
11567
+ }, z.core.$strip>;
11568
+ }, z.core.$strip>;
11569
+ export declare const FileUnsubscribeResponseSchema: z.ZodObject<{
11570
+ type: z.ZodLiteral<"fs.file.unsubscribe.response">;
11571
+ payload: z.ZodObject<{
11572
+ subscriptionId: z.ZodString;
11573
+ requestId: z.ZodString;
11574
+ }, z.core.$strip>;
11575
+ }, z.core.$strip>;
11576
+ export declare const FileWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11577
+ status: z.ZodLiteral<"written">;
11578
+ modifiedAt: z.ZodString;
11579
+ size: z.ZodNumber;
11580
+ revision: z.ZodOptional<z.ZodString>;
11581
+ }, z.core.$strip>, z.ZodObject<{
11582
+ status: z.ZodLiteral<"conflict">;
11583
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
11584
+ status: z.ZodLiteral<"ready">;
11585
+ cwd: z.ZodString;
11586
+ path: z.ZodString;
11587
+ size: z.ZodNumber;
11588
+ modifiedAt: z.ZodString;
11589
+ revision: z.ZodOptional<z.ZodString>;
11590
+ }, z.core.$strip>, z.ZodObject<{
11591
+ status: z.ZodLiteral<"missing">;
11592
+ cwd: z.ZodString;
11593
+ path: z.ZodString;
11594
+ }, z.core.$strip>, z.ZodObject<{
11595
+ status: z.ZodLiteral<"error">;
11596
+ cwd: z.ZodString;
11597
+ path: z.ZodString;
11598
+ error: z.ZodString;
11599
+ }, z.core.$strip>], "status">;
11600
+ }, z.core.$strip>, z.ZodObject<{
11601
+ status: z.ZodLiteral<"error">;
11602
+ error: z.ZodString;
11603
+ }, z.core.$strip>], "status">;
11604
+ export declare const FileWriteResponseSchema: z.ZodObject<{
11605
+ type: z.ZodLiteral<"fs.file.write.response">;
11606
+ payload: z.ZodObject<{
11607
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
11608
+ status: z.ZodLiteral<"written">;
11609
+ modifiedAt: z.ZodString;
11610
+ size: z.ZodNumber;
11611
+ revision: z.ZodOptional<z.ZodString>;
11612
+ }, z.core.$strip>, z.ZodObject<{
11613
+ status: z.ZodLiteral<"conflict">;
11614
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
11615
+ status: z.ZodLiteral<"ready">;
11616
+ cwd: z.ZodString;
11617
+ path: z.ZodString;
11618
+ size: z.ZodNumber;
11619
+ modifiedAt: z.ZodString;
11620
+ revision: z.ZodOptional<z.ZodString>;
11621
+ }, z.core.$strip>, z.ZodObject<{
11622
+ status: z.ZodLiteral<"missing">;
11623
+ cwd: z.ZodString;
11624
+ path: z.ZodString;
11625
+ }, z.core.$strip>, z.ZodObject<{
11626
+ status: z.ZodLiteral<"error">;
11627
+ cwd: z.ZodString;
11628
+ path: z.ZodString;
11629
+ error: z.ZodString;
11630
+ }, z.core.$strip>], "status">;
11631
+ }, z.core.$strip>, z.ZodObject<{
11632
+ status: z.ZodLiteral<"error">;
11633
+ error: z.ZodString;
11634
+ }, z.core.$strip>], "status">;
11635
+ requestId: z.ZodString;
11636
+ }, z.core.$strip>;
11637
+ }, z.core.$strip>;
11638
+ export declare const FileUpdateSchema: z.ZodObject<{
11639
+ type: z.ZodLiteral<"fs.file.update">;
11640
+ payload: z.ZodObject<{
11641
+ subscriptionId: z.ZodString;
11642
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
11643
+ status: z.ZodLiteral<"ready">;
11644
+ cwd: z.ZodString;
11645
+ path: z.ZodString;
11646
+ size: z.ZodNumber;
11647
+ modifiedAt: z.ZodString;
11648
+ revision: z.ZodOptional<z.ZodString>;
11649
+ }, z.core.$strip>, z.ZodObject<{
11650
+ status: z.ZodLiteral<"missing">;
11651
+ cwd: z.ZodString;
11652
+ path: z.ZodString;
11653
+ }, z.core.$strip>, z.ZodObject<{
11654
+ status: z.ZodLiteral<"error">;
11655
+ cwd: z.ZodString;
11656
+ path: z.ZodString;
11657
+ error: z.ZodString;
11658
+ }, z.core.$strip>], "status">;
11659
+ }, z.core.$strip>;
11660
+ }, z.core.$strip>;
11233
11661
  declare const ProjectIconSchema: z.ZodObject<{
11234
11662
  data: z.ZodString;
11235
11663
  mimeType: z.ZodString;
@@ -11680,10 +12108,10 @@ export declare const ListTerminalsResponseSchema: z.ZodObject<{
11680
12108
  payload: z.ZodObject<{
11681
12109
  cwd: z.ZodOptional<z.ZodString>;
11682
12110
  terminals: z.ZodArray<z.ZodObject<{
12111
+ workspaceId: z.ZodOptional<z.ZodString>;
11683
12112
  title: z.ZodOptional<z.ZodString>;
11684
12113
  name: z.ZodString;
11685
12114
  id: z.ZodString;
11686
- workspaceId: z.ZodOptional<z.ZodString>;
11687
12115
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11688
12116
  state: z.ZodCatch<z.ZodEnum<{
11689
12117
  idle: "idle";
@@ -11705,10 +12133,10 @@ export declare const TerminalsChangedSchema: z.ZodObject<{
11705
12133
  payload: z.ZodObject<{
11706
12134
  cwd: z.ZodString;
11707
12135
  terminals: z.ZodArray<z.ZodObject<{
12136
+ workspaceId: z.ZodOptional<z.ZodString>;
11708
12137
  title: z.ZodOptional<z.ZodString>;
11709
12138
  name: z.ZodString;
11710
12139
  id: z.ZodString;
11711
- workspaceId: z.ZodOptional<z.ZodString>;
11712
12140
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11713
12141
  state: z.ZodCatch<z.ZodEnum<{
11714
12142
  idle: "idle";
@@ -11833,8 +12261,632 @@ export declare const DaemonUpdateProgressMessageSchema: z.ZodObject<{
11833
12261
  }>;
11834
12262
  }, z.core.$strip>;
11835
12263
  }, z.core.$strip>;
12264
+ export declare const HubExecutionAgentCreateResponseSchema: z.ZodObject<{
12265
+ type: z.ZodLiteral<"hub.execution.agent.create.response">;
12266
+ payload: z.ZodObject<{
12267
+ requestId: z.ZodString;
12268
+ executionId: z.ZodString;
12269
+ agentId: z.ZodNullable<z.ZodString>;
12270
+ agent: z.ZodNullable<z.ZodObject<{
12271
+ id: z.ZodString;
12272
+ provider: z.ZodString;
12273
+ cwd: z.ZodString;
12274
+ workspaceId: z.ZodOptional<z.ZodString>;
12275
+ model: z.ZodNullable<z.ZodString>;
12276
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12277
+ type: z.ZodLiteral<"toggle">;
12278
+ id: z.ZodString;
12279
+ label: z.ZodString;
12280
+ description: z.ZodOptional<z.ZodString>;
12281
+ tooltip: z.ZodOptional<z.ZodString>;
12282
+ icon: z.ZodOptional<z.ZodString>;
12283
+ value: z.ZodBoolean;
12284
+ }, z.core.$strip>, z.ZodObject<{
12285
+ type: z.ZodLiteral<"select">;
12286
+ id: z.ZodString;
12287
+ label: z.ZodString;
12288
+ description: z.ZodOptional<z.ZodString>;
12289
+ tooltip: z.ZodOptional<z.ZodString>;
12290
+ icon: z.ZodOptional<z.ZodString>;
12291
+ value: z.ZodNullable<z.ZodString>;
12292
+ options: z.ZodArray<z.ZodObject<{
12293
+ id: z.ZodString;
12294
+ label: z.ZodString;
12295
+ description: z.ZodOptional<z.ZodString>;
12296
+ isDefault: z.ZodOptional<z.ZodBoolean>;
12297
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12298
+ }, z.core.$strip>>;
12299
+ }, z.core.$strip>], "type">>>;
12300
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12301
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12302
+ createdAt: z.ZodString;
12303
+ updatedAt: z.ZodString;
12304
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
12305
+ status: z.ZodEnum<{
12306
+ error: "error";
12307
+ initializing: "initializing";
12308
+ idle: "idle";
12309
+ running: "running";
12310
+ closed: "closed";
12311
+ }>;
12312
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
12313
+ currentModeId: z.ZodNullable<z.ZodString>;
12314
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
12315
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
12316
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
12317
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
12318
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12319
+ lastError: z.ZodOptional<z.ZodString>;
12320
+ title: z.ZodNullable<z.ZodString>;
12321
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12322
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
12323
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12324
+ finished: "finished";
12325
+ error: "error";
12326
+ permission: "permission";
12327
+ }>>>;
12328
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12329
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12330
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
12331
+ }, z.core.$strip>>;
12332
+ success: z.ZodBoolean;
12333
+ error: z.ZodNullable<z.ZodString>;
12334
+ }, z.core.$strip>;
12335
+ }, z.core.$strip>;
12336
+ export declare const HubExecutionAgentUpdateSchema: z.ZodObject<{
12337
+ type: z.ZodLiteral<"hub.execution.agent.update">;
12338
+ payload: z.ZodObject<{
12339
+ executionId: z.ZodString;
12340
+ agentId: z.ZodString;
12341
+ agent: z.ZodObject<{
12342
+ id: z.ZodString;
12343
+ provider: z.ZodString;
12344
+ cwd: z.ZodString;
12345
+ workspaceId: z.ZodOptional<z.ZodString>;
12346
+ model: z.ZodNullable<z.ZodString>;
12347
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12348
+ type: z.ZodLiteral<"toggle">;
12349
+ id: z.ZodString;
12350
+ label: z.ZodString;
12351
+ description: z.ZodOptional<z.ZodString>;
12352
+ tooltip: z.ZodOptional<z.ZodString>;
12353
+ icon: z.ZodOptional<z.ZodString>;
12354
+ value: z.ZodBoolean;
12355
+ }, z.core.$strip>, z.ZodObject<{
12356
+ type: z.ZodLiteral<"select">;
12357
+ id: z.ZodString;
12358
+ label: z.ZodString;
12359
+ description: z.ZodOptional<z.ZodString>;
12360
+ tooltip: z.ZodOptional<z.ZodString>;
12361
+ icon: z.ZodOptional<z.ZodString>;
12362
+ value: z.ZodNullable<z.ZodString>;
12363
+ options: z.ZodArray<z.ZodObject<{
12364
+ id: z.ZodString;
12365
+ label: z.ZodString;
12366
+ description: z.ZodOptional<z.ZodString>;
12367
+ isDefault: z.ZodOptional<z.ZodBoolean>;
12368
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12369
+ }, z.core.$strip>>;
12370
+ }, z.core.$strip>], "type">>>;
12371
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12372
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12373
+ createdAt: z.ZodString;
12374
+ updatedAt: z.ZodString;
12375
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
12376
+ status: z.ZodEnum<{
12377
+ error: "error";
12378
+ initializing: "initializing";
12379
+ idle: "idle";
12380
+ running: "running";
12381
+ closed: "closed";
12382
+ }>;
12383
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
12384
+ currentModeId: z.ZodNullable<z.ZodString>;
12385
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
12386
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
12387
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
12388
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
12389
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12390
+ lastError: z.ZodOptional<z.ZodString>;
12391
+ title: z.ZodNullable<z.ZodString>;
12392
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12393
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
12394
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12395
+ finished: "finished";
12396
+ error: "error";
12397
+ permission: "permission";
12398
+ }>>>;
12399
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12400
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12401
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
12402
+ }, z.core.$strip>;
12403
+ }, z.core.$strip>;
12404
+ }, z.core.$strip>;
12405
+ export declare const HubExecutionAgentStreamSchema: z.ZodObject<{
12406
+ type: z.ZodLiteral<"hub.execution.agent.stream">;
12407
+ payload: z.ZodObject<{
12408
+ executionId: z.ZodString;
12409
+ agentId: z.ZodString;
12410
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
12411
+ type: z.ZodLiteral<"thread_started">;
12412
+ sessionId: z.ZodString;
12413
+ provider: z.ZodString;
12414
+ }, z.core.$strip>, z.ZodObject<{
12415
+ type: z.ZodLiteral<"turn_started">;
12416
+ provider: z.ZodString;
12417
+ }, z.core.$strip>, z.ZodObject<{
12418
+ type: z.ZodLiteral<"turn_completed">;
12419
+ provider: z.ZodString;
12420
+ usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12421
+ }, z.core.$strip>, z.ZodObject<{
12422
+ type: z.ZodLiteral<"turn_failed">;
12423
+ provider: z.ZodString;
12424
+ error: z.ZodString;
12425
+ code: z.ZodOptional<z.ZodString>;
12426
+ diagnostic: z.ZodOptional<z.ZodString>;
12427
+ }, z.core.$strip>, z.ZodObject<{
12428
+ type: z.ZodLiteral<"turn_canceled">;
12429
+ provider: z.ZodString;
12430
+ reason: z.ZodString;
12431
+ }, z.core.$strip>, z.ZodObject<{
12432
+ type: z.ZodLiteral<"timeline">;
12433
+ provider: z.ZodString;
12434
+ item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
12435
+ }, z.core.$strip>, z.ZodObject<{
12436
+ type: z.ZodLiteral<"permission_requested">;
12437
+ provider: z.ZodString;
12438
+ request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
12439
+ }, z.core.$strip>, z.ZodObject<{
12440
+ type: z.ZodLiteral<"permission_resolved">;
12441
+ provider: z.ZodString;
12442
+ requestId: z.ZodString;
12443
+ resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
12444
+ }, z.core.$strip>, z.ZodObject<{
12445
+ type: z.ZodLiteral<"attention_required">;
12446
+ provider: z.ZodString;
12447
+ reason: z.ZodEnum<{
12448
+ finished: "finished";
12449
+ error: "error";
12450
+ permission: "permission";
12451
+ }>;
12452
+ timestamp: z.ZodString;
12453
+ shouldNotify: z.ZodBoolean;
12454
+ notification: z.ZodOptional<z.ZodObject<{
12455
+ title: z.ZodString;
12456
+ body: z.ZodString;
12457
+ data: z.ZodObject<{
12458
+ serverId: z.ZodString;
12459
+ workspaceId: z.ZodOptional<z.ZodString>;
12460
+ agentId: z.ZodString;
12461
+ reason: z.ZodEnum<{
12462
+ finished: "finished";
12463
+ error: "error";
12464
+ permission: "permission";
12465
+ }>;
12466
+ }, z.core.$strip>;
12467
+ }, z.core.$strip>>;
12468
+ }, z.core.$strip>], "type">;
12469
+ }, z.core.$strip>;
12470
+ }, z.core.$strip>;
12471
+ export type HubExecutionAgentCreateResponse = z.infer<typeof HubExecutionAgentCreateResponseSchema>;
12472
+ export type HubExecutionAgentUpdate = z.infer<typeof HubExecutionAgentUpdateSchema>;
12473
+ export type HubExecutionAgentStream = z.infer<typeof HubExecutionAgentStreamSchema>;
12474
+ export declare const HubExecutionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12475
+ type: z.ZodLiteral<"hub.execution.agent.create.response">;
12476
+ payload: z.ZodObject<{
12477
+ requestId: z.ZodString;
12478
+ executionId: z.ZodString;
12479
+ agentId: z.ZodNullable<z.ZodString>;
12480
+ agent: z.ZodNullable<z.ZodObject<{
12481
+ id: z.ZodString;
12482
+ provider: z.ZodString;
12483
+ cwd: z.ZodString;
12484
+ workspaceId: z.ZodOptional<z.ZodString>;
12485
+ model: z.ZodNullable<z.ZodString>;
12486
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12487
+ type: z.ZodLiteral<"toggle">;
12488
+ id: z.ZodString;
12489
+ label: z.ZodString;
12490
+ description: z.ZodOptional<z.ZodString>;
12491
+ tooltip: z.ZodOptional<z.ZodString>;
12492
+ icon: z.ZodOptional<z.ZodString>;
12493
+ value: z.ZodBoolean;
12494
+ }, z.core.$strip>, z.ZodObject<{
12495
+ type: z.ZodLiteral<"select">;
12496
+ id: z.ZodString;
12497
+ label: z.ZodString;
12498
+ description: z.ZodOptional<z.ZodString>;
12499
+ tooltip: z.ZodOptional<z.ZodString>;
12500
+ icon: z.ZodOptional<z.ZodString>;
12501
+ value: z.ZodNullable<z.ZodString>;
12502
+ options: z.ZodArray<z.ZodObject<{
12503
+ id: z.ZodString;
12504
+ label: z.ZodString;
12505
+ description: z.ZodOptional<z.ZodString>;
12506
+ isDefault: z.ZodOptional<z.ZodBoolean>;
12507
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12508
+ }, z.core.$strip>>;
12509
+ }, z.core.$strip>], "type">>>;
12510
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12511
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12512
+ createdAt: z.ZodString;
12513
+ updatedAt: z.ZodString;
12514
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
12515
+ status: z.ZodEnum<{
12516
+ error: "error";
12517
+ initializing: "initializing";
12518
+ idle: "idle";
12519
+ running: "running";
12520
+ closed: "closed";
12521
+ }>;
12522
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
12523
+ currentModeId: z.ZodNullable<z.ZodString>;
12524
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
12525
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
12526
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
12527
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
12528
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12529
+ lastError: z.ZodOptional<z.ZodString>;
12530
+ title: z.ZodNullable<z.ZodString>;
12531
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12532
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
12533
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12534
+ finished: "finished";
12535
+ error: "error";
12536
+ permission: "permission";
12537
+ }>>>;
12538
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12539
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12540
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
12541
+ }, z.core.$strip>>;
12542
+ success: z.ZodBoolean;
12543
+ error: z.ZodNullable<z.ZodString>;
12544
+ }, z.core.$strip>;
12545
+ }, z.core.$strip>, z.ZodObject<{
12546
+ type: z.ZodLiteral<"hub.execution.agent.update">;
12547
+ payload: z.ZodObject<{
12548
+ executionId: z.ZodString;
12549
+ agentId: z.ZodString;
12550
+ agent: z.ZodObject<{
12551
+ id: z.ZodString;
12552
+ provider: z.ZodString;
12553
+ cwd: z.ZodString;
12554
+ workspaceId: z.ZodOptional<z.ZodString>;
12555
+ model: z.ZodNullable<z.ZodString>;
12556
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12557
+ type: z.ZodLiteral<"toggle">;
12558
+ id: z.ZodString;
12559
+ label: z.ZodString;
12560
+ description: z.ZodOptional<z.ZodString>;
12561
+ tooltip: z.ZodOptional<z.ZodString>;
12562
+ icon: z.ZodOptional<z.ZodString>;
12563
+ value: z.ZodBoolean;
12564
+ }, z.core.$strip>, z.ZodObject<{
12565
+ type: z.ZodLiteral<"select">;
12566
+ id: z.ZodString;
12567
+ label: z.ZodString;
12568
+ description: z.ZodOptional<z.ZodString>;
12569
+ tooltip: z.ZodOptional<z.ZodString>;
12570
+ icon: z.ZodOptional<z.ZodString>;
12571
+ value: z.ZodNullable<z.ZodString>;
12572
+ options: z.ZodArray<z.ZodObject<{
12573
+ id: z.ZodString;
12574
+ label: z.ZodString;
12575
+ description: z.ZodOptional<z.ZodString>;
12576
+ isDefault: z.ZodOptional<z.ZodBoolean>;
12577
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12578
+ }, z.core.$strip>>;
12579
+ }, z.core.$strip>], "type">>>;
12580
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12581
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12582
+ createdAt: z.ZodString;
12583
+ updatedAt: z.ZodString;
12584
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
12585
+ status: z.ZodEnum<{
12586
+ error: "error";
12587
+ initializing: "initializing";
12588
+ idle: "idle";
12589
+ running: "running";
12590
+ closed: "closed";
12591
+ }>;
12592
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
12593
+ currentModeId: z.ZodNullable<z.ZodString>;
12594
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
12595
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
12596
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
12597
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
12598
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12599
+ lastError: z.ZodOptional<z.ZodString>;
12600
+ title: z.ZodNullable<z.ZodString>;
12601
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12602
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
12603
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12604
+ finished: "finished";
12605
+ error: "error";
12606
+ permission: "permission";
12607
+ }>>>;
12608
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12609
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12610
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
12611
+ }, z.core.$strip>;
12612
+ }, z.core.$strip>;
12613
+ }, z.core.$strip>, z.ZodObject<{
12614
+ type: z.ZodLiteral<"hub.execution.agent.stream">;
12615
+ payload: z.ZodObject<{
12616
+ executionId: z.ZodString;
12617
+ agentId: z.ZodString;
12618
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
12619
+ type: z.ZodLiteral<"thread_started">;
12620
+ sessionId: z.ZodString;
12621
+ provider: z.ZodString;
12622
+ }, z.core.$strip>, z.ZodObject<{
12623
+ type: z.ZodLiteral<"turn_started">;
12624
+ provider: z.ZodString;
12625
+ }, z.core.$strip>, z.ZodObject<{
12626
+ type: z.ZodLiteral<"turn_completed">;
12627
+ provider: z.ZodString;
12628
+ usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12629
+ }, z.core.$strip>, z.ZodObject<{
12630
+ type: z.ZodLiteral<"turn_failed">;
12631
+ provider: z.ZodString;
12632
+ error: z.ZodString;
12633
+ code: z.ZodOptional<z.ZodString>;
12634
+ diagnostic: z.ZodOptional<z.ZodString>;
12635
+ }, z.core.$strip>, z.ZodObject<{
12636
+ type: z.ZodLiteral<"turn_canceled">;
12637
+ provider: z.ZodString;
12638
+ reason: z.ZodString;
12639
+ }, z.core.$strip>, z.ZodObject<{
12640
+ type: z.ZodLiteral<"timeline">;
12641
+ provider: z.ZodString;
12642
+ item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
12643
+ }, z.core.$strip>, z.ZodObject<{
12644
+ type: z.ZodLiteral<"permission_requested">;
12645
+ provider: z.ZodString;
12646
+ request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
12647
+ }, z.core.$strip>, z.ZodObject<{
12648
+ type: z.ZodLiteral<"permission_resolved">;
12649
+ provider: z.ZodString;
12650
+ requestId: z.ZodString;
12651
+ resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
12652
+ }, z.core.$strip>, z.ZodObject<{
12653
+ type: z.ZodLiteral<"attention_required">;
12654
+ provider: z.ZodString;
12655
+ reason: z.ZodEnum<{
12656
+ finished: "finished";
12657
+ error: "error";
12658
+ permission: "permission";
12659
+ }>;
12660
+ timestamp: z.ZodString;
12661
+ shouldNotify: z.ZodBoolean;
12662
+ notification: z.ZodOptional<z.ZodObject<{
12663
+ title: z.ZodString;
12664
+ body: z.ZodString;
12665
+ data: z.ZodObject<{
12666
+ serverId: z.ZodString;
12667
+ workspaceId: z.ZodOptional<z.ZodString>;
12668
+ agentId: z.ZodString;
12669
+ reason: z.ZodEnum<{
12670
+ finished: "finished";
12671
+ error: "error";
12672
+ permission: "permission";
12673
+ }>;
12674
+ }, z.core.$strip>;
12675
+ }, z.core.$strip>>;
12676
+ }, z.core.$strip>], "type">;
12677
+ }, z.core.$strip>;
12678
+ }, z.core.$strip>], "type">;
12679
+ export type HubExecutionOutboundMessage = z.infer<typeof HubExecutionOutboundMessageSchema>;
12680
+ export declare class HubMessageCorrelationError extends Error {
12681
+ constructor(messageType: HubExecutionOutboundMessage["type"]);
12682
+ }
12683
+ export declare function parseHubExecutionOutboundMessage(value: unknown): HubExecutionOutboundMessage;
11836
12684
  export type DaemonUpdateProgressMessage = z.infer<typeof DaemonUpdateProgressMessageSchema>;
11837
12685
  export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12686
+ type: z.ZodLiteral<"hub.execution.agent.create.response">;
12687
+ payload: z.ZodObject<{
12688
+ requestId: z.ZodString;
12689
+ executionId: z.ZodString;
12690
+ agentId: z.ZodNullable<z.ZodString>;
12691
+ agent: z.ZodNullable<z.ZodObject<{
12692
+ id: z.ZodString;
12693
+ provider: z.ZodString;
12694
+ cwd: z.ZodString;
12695
+ workspaceId: z.ZodOptional<z.ZodString>;
12696
+ model: z.ZodNullable<z.ZodString>;
12697
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12698
+ type: z.ZodLiteral<"toggle">;
12699
+ id: z.ZodString;
12700
+ label: z.ZodString;
12701
+ description: z.ZodOptional<z.ZodString>;
12702
+ tooltip: z.ZodOptional<z.ZodString>;
12703
+ icon: z.ZodOptional<z.ZodString>;
12704
+ value: z.ZodBoolean;
12705
+ }, z.core.$strip>, z.ZodObject<{
12706
+ type: z.ZodLiteral<"select">;
12707
+ id: z.ZodString;
12708
+ label: z.ZodString;
12709
+ description: z.ZodOptional<z.ZodString>;
12710
+ tooltip: z.ZodOptional<z.ZodString>;
12711
+ icon: z.ZodOptional<z.ZodString>;
12712
+ value: z.ZodNullable<z.ZodString>;
12713
+ options: z.ZodArray<z.ZodObject<{
12714
+ id: z.ZodString;
12715
+ label: z.ZodString;
12716
+ description: z.ZodOptional<z.ZodString>;
12717
+ isDefault: z.ZodOptional<z.ZodBoolean>;
12718
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12719
+ }, z.core.$strip>>;
12720
+ }, z.core.$strip>], "type">>>;
12721
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12722
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12723
+ createdAt: z.ZodString;
12724
+ updatedAt: z.ZodString;
12725
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
12726
+ status: z.ZodEnum<{
12727
+ error: "error";
12728
+ initializing: "initializing";
12729
+ idle: "idle";
12730
+ running: "running";
12731
+ closed: "closed";
12732
+ }>;
12733
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
12734
+ currentModeId: z.ZodNullable<z.ZodString>;
12735
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
12736
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
12737
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
12738
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
12739
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12740
+ lastError: z.ZodOptional<z.ZodString>;
12741
+ title: z.ZodNullable<z.ZodString>;
12742
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12743
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
12744
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12745
+ finished: "finished";
12746
+ error: "error";
12747
+ permission: "permission";
12748
+ }>>>;
12749
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12750
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12751
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
12752
+ }, z.core.$strip>>;
12753
+ success: z.ZodBoolean;
12754
+ error: z.ZodNullable<z.ZodString>;
12755
+ }, z.core.$strip>;
12756
+ }, z.core.$strip>, z.ZodObject<{
12757
+ type: z.ZodLiteral<"hub.execution.agent.update">;
12758
+ payload: z.ZodObject<{
12759
+ executionId: z.ZodString;
12760
+ agentId: z.ZodString;
12761
+ agent: z.ZodObject<{
12762
+ id: z.ZodString;
12763
+ provider: z.ZodString;
12764
+ cwd: z.ZodString;
12765
+ workspaceId: z.ZodOptional<z.ZodString>;
12766
+ model: z.ZodNullable<z.ZodString>;
12767
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12768
+ type: z.ZodLiteral<"toggle">;
12769
+ id: z.ZodString;
12770
+ label: z.ZodString;
12771
+ description: z.ZodOptional<z.ZodString>;
12772
+ tooltip: z.ZodOptional<z.ZodString>;
12773
+ icon: z.ZodOptional<z.ZodString>;
12774
+ value: z.ZodBoolean;
12775
+ }, z.core.$strip>, z.ZodObject<{
12776
+ type: z.ZodLiteral<"select">;
12777
+ id: z.ZodString;
12778
+ label: z.ZodString;
12779
+ description: z.ZodOptional<z.ZodString>;
12780
+ tooltip: z.ZodOptional<z.ZodString>;
12781
+ icon: z.ZodOptional<z.ZodString>;
12782
+ value: z.ZodNullable<z.ZodString>;
12783
+ options: z.ZodArray<z.ZodObject<{
12784
+ id: z.ZodString;
12785
+ label: z.ZodString;
12786
+ description: z.ZodOptional<z.ZodString>;
12787
+ isDefault: z.ZodOptional<z.ZodBoolean>;
12788
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12789
+ }, z.core.$strip>>;
12790
+ }, z.core.$strip>], "type">>>;
12791
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12792
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12793
+ createdAt: z.ZodString;
12794
+ updatedAt: z.ZodString;
12795
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
12796
+ status: z.ZodEnum<{
12797
+ error: "error";
12798
+ initializing: "initializing";
12799
+ idle: "idle";
12800
+ running: "running";
12801
+ closed: "closed";
12802
+ }>;
12803
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
12804
+ currentModeId: z.ZodNullable<z.ZodString>;
12805
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
12806
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
12807
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
12808
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
12809
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12810
+ lastError: z.ZodOptional<z.ZodString>;
12811
+ title: z.ZodNullable<z.ZodString>;
12812
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
12813
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
12814
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12815
+ finished: "finished";
12816
+ error: "error";
12817
+ permission: "permission";
12818
+ }>>>;
12819
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12820
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12821
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
12822
+ }, z.core.$strip>;
12823
+ }, z.core.$strip>;
12824
+ }, z.core.$strip>, z.ZodObject<{
12825
+ type: z.ZodLiteral<"hub.execution.agent.stream">;
12826
+ payload: z.ZodObject<{
12827
+ executionId: z.ZodString;
12828
+ agentId: z.ZodString;
12829
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
12830
+ type: z.ZodLiteral<"thread_started">;
12831
+ sessionId: z.ZodString;
12832
+ provider: z.ZodString;
12833
+ }, z.core.$strip>, z.ZodObject<{
12834
+ type: z.ZodLiteral<"turn_started">;
12835
+ provider: z.ZodString;
12836
+ }, z.core.$strip>, z.ZodObject<{
12837
+ type: z.ZodLiteral<"turn_completed">;
12838
+ provider: z.ZodString;
12839
+ usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
12840
+ }, z.core.$strip>, z.ZodObject<{
12841
+ type: z.ZodLiteral<"turn_failed">;
12842
+ provider: z.ZodString;
12843
+ error: z.ZodString;
12844
+ code: z.ZodOptional<z.ZodString>;
12845
+ diagnostic: z.ZodOptional<z.ZodString>;
12846
+ }, z.core.$strip>, z.ZodObject<{
12847
+ type: z.ZodLiteral<"turn_canceled">;
12848
+ provider: z.ZodString;
12849
+ reason: z.ZodString;
12850
+ }, z.core.$strip>, z.ZodObject<{
12851
+ type: z.ZodLiteral<"timeline">;
12852
+ provider: z.ZodString;
12853
+ item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
12854
+ }, z.core.$strip>, z.ZodObject<{
12855
+ type: z.ZodLiteral<"permission_requested">;
12856
+ provider: z.ZodString;
12857
+ request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
12858
+ }, z.core.$strip>, z.ZodObject<{
12859
+ type: z.ZodLiteral<"permission_resolved">;
12860
+ provider: z.ZodString;
12861
+ requestId: z.ZodString;
12862
+ resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
12863
+ }, z.core.$strip>, z.ZodObject<{
12864
+ type: z.ZodLiteral<"attention_required">;
12865
+ provider: z.ZodString;
12866
+ reason: z.ZodEnum<{
12867
+ finished: "finished";
12868
+ error: "error";
12869
+ permission: "permission";
12870
+ }>;
12871
+ timestamp: z.ZodString;
12872
+ shouldNotify: z.ZodBoolean;
12873
+ notification: z.ZodOptional<z.ZodObject<{
12874
+ title: z.ZodString;
12875
+ body: z.ZodString;
12876
+ data: z.ZodObject<{
12877
+ serverId: z.ZodString;
12878
+ workspaceId: z.ZodOptional<z.ZodString>;
12879
+ agentId: z.ZodString;
12880
+ reason: z.ZodEnum<{
12881
+ finished: "finished";
12882
+ error: "error";
12883
+ permission: "permission";
12884
+ }>;
12885
+ }, z.core.$strip>;
12886
+ }, z.core.$strip>>;
12887
+ }, z.core.$strip>], "type">;
12888
+ }, z.core.$strip>;
12889
+ }, z.core.$strip>, z.ZodObject<{
11838
12890
  type: z.ZodLiteral<"browser.automation.execute.request">;
11839
12891
  requestId: z.ZodString;
11840
12892
  agentId: z.ZodOptional<z.ZodString>;
@@ -12686,6 +13738,25 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
12686
13738
  }, z.core.$strip>>;
12687
13739
  removedProjectId: z.ZodOptional<z.ZodString>;
12688
13740
  }, z.core.$strip>], "kind">;
13741
+ }, z.core.$strip>, z.ZodObject<{
13742
+ type: z.ZodLiteral<"project.update">;
13743
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
13744
+ kind: z.ZodLiteral<"upsert">;
13745
+ project: z.ZodObject<{
13746
+ projectId: z.ZodString;
13747
+ projectDisplayName: z.ZodString;
13748
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13749
+ projectRootPath: z.ZodString;
13750
+ projectKind: z.ZodEnum<{
13751
+ git: "git";
13752
+ directory: "directory";
13753
+ non_git: "non_git";
13754
+ }>;
13755
+ }, z.core.$strip>;
13756
+ }, z.core.$strip>, z.ZodObject<{
13757
+ kind: z.ZodLiteral<"remove">;
13758
+ projectId: z.ZodString;
13759
+ }, z.core.$strip>], "kind">;
12689
13760
  }, z.core.$strip>, z.ZodObject<{
12690
13761
  type: z.ZodLiteral<"script_status_update">;
12691
13762
  payload: z.ZodObject<{
@@ -12831,6 +13902,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
12831
13902
  body: z.ZodString;
12832
13903
  data: z.ZodObject<{
12833
13904
  serverId: z.ZodString;
13905
+ workspaceId: z.ZodOptional<z.ZodString>;
12834
13906
  agentId: z.ZodString;
12835
13907
  reason: z.ZodEnum<{
12836
13908
  finished: "finished";
@@ -14599,6 +15671,38 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
14599
15671
  parentAgentId: z.ZodString;
14600
15672
  subagentId: z.ZodString;
14601
15673
  }, z.core.$strip>], "kind">;
15674
+ }, z.core.$strip>, z.ZodObject<{
15675
+ type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
15676
+ payload: z.ZodObject<{
15677
+ agentIds: z.ZodArray<z.ZodString>;
15678
+ requestId: z.ZodString;
15679
+ }, z.core.$strip>;
15680
+ }, z.core.$strip>, z.ZodObject<{
15681
+ type: z.ZodLiteral<"agent_attention_required">;
15682
+ payload: z.ZodObject<{
15683
+ agentId: z.ZodString;
15684
+ reason: z.ZodEnum<{
15685
+ finished: "finished";
15686
+ error: "error";
15687
+ permission: "permission";
15688
+ }>;
15689
+ timestamp: z.ZodString;
15690
+ shouldNotify: z.ZodBoolean;
15691
+ notification: z.ZodOptional<z.ZodObject<{
15692
+ title: z.ZodString;
15693
+ body: z.ZodString;
15694
+ data: z.ZodObject<{
15695
+ serverId: z.ZodString;
15696
+ workspaceId: z.ZodOptional<z.ZodString>;
15697
+ agentId: z.ZodString;
15698
+ reason: z.ZodEnum<{
15699
+ finished: "finished";
15700
+ error: "error";
15701
+ permission: "permission";
15702
+ }>;
15703
+ }, z.core.$strip>;
15704
+ }, z.core.$strip>>;
15705
+ }, z.core.$strip>;
14602
15706
  }, z.core.$strip>, z.ZodObject<{
14603
15707
  type: z.ZodLiteral<"agent.fork_context.response">;
14604
15708
  payload: z.ZodObject<{
@@ -15252,6 +16356,67 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
15252
16356
  qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15253
16357
  relayEnabled: z.ZodBoolean;
15254
16358
  }, z.core.$loose>;
16359
+ }, z.core.$strip>, z.ZodObject<{
16360
+ type: z.ZodLiteral<"hub.management.daemon.connect.response">;
16361
+ payload: z.ZodObject<{
16362
+ requestId: z.ZodString;
16363
+ status: z.ZodObject<{
16364
+ state: z.ZodEnum<{
16365
+ not_connected: "not_connected";
16366
+ connecting: "connecting";
16367
+ connected: "connected";
16368
+ reconnecting: "reconnecting";
16369
+ disconnecting: "disconnecting";
16370
+ revoked: "revoked";
16371
+ }>;
16372
+ daemonId: z.ZodNullable<z.ZodString>;
16373
+ hubOrigin: z.ZodNullable<z.ZodString>;
16374
+ scopes: z.ZodArray<z.ZodString>;
16375
+ connectedAt: z.ZodNullable<z.ZodString>;
16376
+ lastError: z.ZodNullable<z.ZodString>;
16377
+ }, z.core.$strip>;
16378
+ }, z.core.$strip>;
16379
+ }, z.core.$strip>, z.ZodObject<{
16380
+ type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
16381
+ payload: z.ZodObject<{
16382
+ requestId: z.ZodString;
16383
+ status: z.ZodObject<{
16384
+ state: z.ZodEnum<{
16385
+ not_connected: "not_connected";
16386
+ connecting: "connecting";
16387
+ connected: "connected";
16388
+ reconnecting: "reconnecting";
16389
+ disconnecting: "disconnecting";
16390
+ revoked: "revoked";
16391
+ }>;
16392
+ daemonId: z.ZodNullable<z.ZodString>;
16393
+ hubOrigin: z.ZodNullable<z.ZodString>;
16394
+ scopes: z.ZodArray<z.ZodString>;
16395
+ connectedAt: z.ZodNullable<z.ZodString>;
16396
+ lastError: z.ZodNullable<z.ZodString>;
16397
+ }, z.core.$strip>;
16398
+ }, z.core.$strip>;
16399
+ }, z.core.$strip>, z.ZodObject<{
16400
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
16401
+ payload: z.ZodObject<{
16402
+ requestId: z.ZodString;
16403
+ status: z.ZodObject<{
16404
+ state: z.ZodEnum<{
16405
+ not_connected: "not_connected";
16406
+ connecting: "connecting";
16407
+ connected: "connected";
16408
+ reconnecting: "reconnecting";
16409
+ disconnecting: "disconnecting";
16410
+ revoked: "revoked";
16411
+ }>;
16412
+ daemonId: z.ZodNullable<z.ZodString>;
16413
+ hubOrigin: z.ZodNullable<z.ZodString>;
16414
+ scopes: z.ZodArray<z.ZodString>;
16415
+ connectedAt: z.ZodNullable<z.ZodString>;
16416
+ lastError: z.ZodNullable<z.ZodString>;
16417
+ }, z.core.$strip>;
16418
+ warning: z.ZodOptional<z.ZodString>;
16419
+ }, z.core.$strip>;
15255
16420
  }, z.core.$strip>, z.ZodObject<{
15256
16421
  type: z.ZodLiteral<"diagnostics.response">;
15257
16422
  payload: z.ZodObject<{
@@ -15347,6 +16512,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
15347
16512
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
15348
16513
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
15349
16514
  terminals: z.ZodOptional<z.ZodUnknown>;
16515
+ servicePorts: z.ZodOptional<z.ZodObject<{
16516
+ range: z.ZodOptional<z.ZodString>;
16517
+ portScript: z.ZodOptional<z.ZodString>;
16518
+ }, z.core.$strict>>;
15350
16519
  }, z.core.$loose>>;
15351
16520
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15352
16521
  type: z.ZodOptional<z.ZodUnknown>;
@@ -15401,6 +16570,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
15401
16570
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
15402
16571
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
15403
16572
  terminals: z.ZodOptional<z.ZodUnknown>;
16573
+ servicePorts: z.ZodOptional<z.ZodObject<{
16574
+ range: z.ZodOptional<z.ZodString>;
16575
+ portScript: z.ZodOptional<z.ZodString>;
16576
+ }, z.core.$strict>>;
15404
16577
  }, z.core.$loose>>;
15405
16578
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15406
16579
  type: z.ZodOptional<z.ZodUnknown>;
@@ -17153,10 +18326,95 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
17153
18326
  mimeType: z.ZodOptional<z.ZodString>;
17154
18327
  size: z.ZodNumber;
17155
18328
  modifiedAt: z.ZodString;
18329
+ revision: z.ZodOptional<z.ZodString>;
17156
18330
  }, z.core.$strip>>;
17157
18331
  error: z.ZodNullable<z.ZodString>;
17158
18332
  requestId: z.ZodString;
17159
18333
  }, z.core.$strip>;
18334
+ }, z.core.$strip>, z.ZodObject<{
18335
+ type: z.ZodLiteral<"fs.file.subscribe.response">;
18336
+ payload: z.ZodObject<{
18337
+ subscriptionId: z.ZodString;
18338
+ initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
18339
+ status: z.ZodLiteral<"ready">;
18340
+ cwd: z.ZodString;
18341
+ path: z.ZodString;
18342
+ size: z.ZodNumber;
18343
+ modifiedAt: z.ZodString;
18344
+ revision: z.ZodOptional<z.ZodString>;
18345
+ }, z.core.$strip>, z.ZodObject<{
18346
+ status: z.ZodLiteral<"missing">;
18347
+ cwd: z.ZodString;
18348
+ path: z.ZodString;
18349
+ }, z.core.$strip>, z.ZodObject<{
18350
+ status: z.ZodLiteral<"error">;
18351
+ cwd: z.ZodString;
18352
+ path: z.ZodString;
18353
+ error: z.ZodString;
18354
+ }, z.core.$strip>], "status">;
18355
+ requestId: z.ZodString;
18356
+ }, z.core.$strip>;
18357
+ }, z.core.$strip>, z.ZodObject<{
18358
+ type: z.ZodLiteral<"fs.file.unsubscribe.response">;
18359
+ payload: z.ZodObject<{
18360
+ subscriptionId: z.ZodString;
18361
+ requestId: z.ZodString;
18362
+ }, z.core.$strip>;
18363
+ }, z.core.$strip>, z.ZodObject<{
18364
+ type: z.ZodLiteral<"fs.file.write.response">;
18365
+ payload: z.ZodObject<{
18366
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
18367
+ status: z.ZodLiteral<"written">;
18368
+ modifiedAt: z.ZodString;
18369
+ size: z.ZodNumber;
18370
+ revision: z.ZodOptional<z.ZodString>;
18371
+ }, z.core.$strip>, z.ZodObject<{
18372
+ status: z.ZodLiteral<"conflict">;
18373
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
18374
+ status: z.ZodLiteral<"ready">;
18375
+ cwd: z.ZodString;
18376
+ path: z.ZodString;
18377
+ size: z.ZodNumber;
18378
+ modifiedAt: z.ZodString;
18379
+ revision: z.ZodOptional<z.ZodString>;
18380
+ }, z.core.$strip>, z.ZodObject<{
18381
+ status: z.ZodLiteral<"missing">;
18382
+ cwd: z.ZodString;
18383
+ path: z.ZodString;
18384
+ }, z.core.$strip>, z.ZodObject<{
18385
+ status: z.ZodLiteral<"error">;
18386
+ cwd: z.ZodString;
18387
+ path: z.ZodString;
18388
+ error: z.ZodString;
18389
+ }, z.core.$strip>], "status">;
18390
+ }, z.core.$strip>, z.ZodObject<{
18391
+ status: z.ZodLiteral<"error">;
18392
+ error: z.ZodString;
18393
+ }, z.core.$strip>], "status">;
18394
+ requestId: z.ZodString;
18395
+ }, z.core.$strip>;
18396
+ }, z.core.$strip>, z.ZodObject<{
18397
+ type: z.ZodLiteral<"fs.file.update">;
18398
+ payload: z.ZodObject<{
18399
+ subscriptionId: z.ZodString;
18400
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
18401
+ status: z.ZodLiteral<"ready">;
18402
+ cwd: z.ZodString;
18403
+ path: z.ZodString;
18404
+ size: z.ZodNumber;
18405
+ modifiedAt: z.ZodString;
18406
+ revision: z.ZodOptional<z.ZodString>;
18407
+ }, z.core.$strip>, z.ZodObject<{
18408
+ status: z.ZodLiteral<"missing">;
18409
+ cwd: z.ZodString;
18410
+ path: z.ZodString;
18411
+ }, z.core.$strip>, z.ZodObject<{
18412
+ status: z.ZodLiteral<"error">;
18413
+ cwd: z.ZodString;
18414
+ path: z.ZodString;
18415
+ error: z.ZodString;
18416
+ }, z.core.$strip>], "status">;
18417
+ }, z.core.$strip>;
17160
18418
  }, z.core.$strip>, z.ZodObject<{
17161
18419
  type: z.ZodLiteral<"project_icon_response">;
17162
18420
  payload: z.ZodObject<{
@@ -17400,10 +18658,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
17400
18658
  payload: z.ZodObject<{
17401
18659
  cwd: z.ZodOptional<z.ZodString>;
17402
18660
  terminals: z.ZodArray<z.ZodObject<{
18661
+ workspaceId: z.ZodOptional<z.ZodString>;
17403
18662
  title: z.ZodOptional<z.ZodString>;
17404
18663
  name: z.ZodString;
17405
18664
  id: z.ZodString;
17406
- workspaceId: z.ZodOptional<z.ZodString>;
17407
18665
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17408
18666
  state: z.ZodCatch<z.ZodEnum<{
17409
18667
  idle: "idle";
@@ -17424,10 +18682,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
17424
18682
  payload: z.ZodObject<{
17425
18683
  cwd: z.ZodString;
17426
18684
  terminals: z.ZodArray<z.ZodObject<{
18685
+ workspaceId: z.ZodOptional<z.ZodString>;
17427
18686
  title: z.ZodOptional<z.ZodString>;
17428
18687
  name: z.ZodString;
17429
18688
  id: z.ZodString;
17430
- workspaceId: z.ZodOptional<z.ZodString>;
17431
18689
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17432
18690
  state: z.ZodCatch<z.ZodEnum<{
17433
18691
  idle: "idle";
@@ -18822,6 +20080,15 @@ export type ArchiveWorkspaceRequest = z.infer<typeof ArchiveWorkspaceRequestSche
18822
20080
  export type WorkspaceClearAttentionRequest = z.infer<typeof WorkspaceClearAttentionRequestSchema>;
18823
20081
  export type FileExplorerRequest = z.infer<typeof FileExplorerRequestSchema>;
18824
20082
  export type FileExplorerResponse = z.infer<typeof FileExplorerResponseSchema>;
20083
+ export type FileVersion = z.infer<typeof FileVersionSchema>;
20084
+ export type FileSubscribeRequest = z.infer<typeof FileSubscribeRequestSchema>;
20085
+ export type FileSubscribeResponse = z.infer<typeof FileSubscribeResponseSchema>;
20086
+ export type FileUnsubscribeRequest = z.infer<typeof FileUnsubscribeRequestSchema>;
20087
+ export type FileUnsubscribeResponse = z.infer<typeof FileUnsubscribeResponseSchema>;
20088
+ export type FileWriteRequest = z.infer<typeof FileWriteRequestSchema>;
20089
+ export type FileWriteResponse = z.infer<typeof FileWriteResponseSchema>;
20090
+ export type FileWriteResult = z.infer<typeof FileWriteResultSchema>;
20091
+ export type FileUpdate = z.infer<typeof FileUpdateSchema>;
18825
20092
  export type ProjectIconRequest = z.infer<typeof ProjectIconRequestSchema>;
18826
20093
  export type ProjectIconResponse = z.infer<typeof ProjectIconResponseSchema>;
18827
20094
  export type ProjectIcon = z.infer<typeof ProjectIconSchema>;
@@ -18884,9 +20151,11 @@ export declare const WSHelloMessageSchema: z.ZodObject<{
18884
20151
  voice: z.ZodOptional<z.ZodBoolean>;
18885
20152
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
18886
20153
  reasoning_merge_enum: z.ZodOptional<z.ZodBoolean>;
20154
+ selective_agent_timeline: z.ZodOptional<z.ZodBoolean>;
18887
20155
  custom_mode_icons: z.ZodOptional<z.ZodBoolean>;
18888
20156
  terminal_reflowable_snapshot: z.ZodOptional<z.ZodBoolean>;
18889
20157
  provider_subagents: z.ZodOptional<z.ZodBoolean>;
20158
+ project_updates: z.ZodOptional<z.ZodBoolean>;
18890
20159
  browser_host: z.ZodOptional<z.ZodObject<{
18891
20160
  supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("select" | "type" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
18892
20161
  hostKind: z.ZodDefault<z.ZodString>;
@@ -18900,6 +20169,31 @@ export declare const WSRecordingStateMessageSchema: z.ZodObject<{
18900
20169
  export declare const WSSessionInboundSchema: z.ZodObject<{
18901
20170
  type: z.ZodLiteral<"session">;
18902
20171
  message: z.ZodDiscriminatedUnion<[z.ZodObject<{
20172
+ type: z.ZodLiteral<"hub.execution.agent.create.request">;
20173
+ requestId: z.ZodString;
20174
+ executionId: z.ZodString;
20175
+ provider: z.ZodString;
20176
+ cwd: z.ZodString;
20177
+ prompt: z.ZodString;
20178
+ workspaceId: z.ZodOptional<z.ZodString>;
20179
+ model: z.ZodOptional<z.ZodString>;
20180
+ modeId: z.ZodOptional<z.ZodString>;
20181
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
20182
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20183
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20184
+ worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
20185
+ mode: z.ZodLiteral<"branch-off">;
20186
+ newBranch: z.ZodString;
20187
+ base: z.ZodOptional<z.ZodString>;
20188
+ }, z.core.$strip>, z.ZodObject<{
20189
+ mode: z.ZodLiteral<"checkout-branch">;
20190
+ branch: z.ZodString;
20191
+ }, z.core.$strip>, z.ZodObject<{
20192
+ mode: z.ZodLiteral<"checkout-pr">;
20193
+ prNumber: z.ZodNumber;
20194
+ }, z.core.$strip>], "mode">>;
20195
+ autoArchive: z.ZodOptional<z.ZodBoolean>;
20196
+ }, z.core.$strip>, z.ZodObject<{
18903
20197
  type: z.ZodLiteral<"browser.automation.execute.response">;
18904
20198
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
18905
20199
  requestId: z.ZodString;
@@ -19374,6 +20668,18 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19374
20668
  }, z.core.$strip>, z.ZodObject<{
19375
20669
  type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
19376
20670
  requestId: z.ZodString;
20671
+ }, z.core.$strip>, z.ZodObject<{
20672
+ type: z.ZodLiteral<"hub.management.daemon.connect.request">;
20673
+ requestId: z.ZodString;
20674
+ hubUrl: z.ZodString;
20675
+ token: z.ZodString;
20676
+ }, z.core.$strip>, z.ZodObject<{
20677
+ type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
20678
+ requestId: z.ZodString;
20679
+ }, z.core.$strip>, z.ZodObject<{
20680
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
20681
+ requestId: z.ZodString;
20682
+ force: z.ZodOptional<z.ZodBoolean>;
19377
20683
  }, z.core.$strip>, z.ZodObject<{
19378
20684
  type: z.ZodLiteral<"diagnostics.request">;
19379
20685
  requestId: z.ZodString;
@@ -19431,6 +20737,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19431
20737
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
19432
20738
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
19433
20739
  terminals: z.ZodOptional<z.ZodUnknown>;
20740
+ servicePorts: z.ZodOptional<z.ZodObject<{
20741
+ range: z.ZodOptional<z.ZodString>;
20742
+ portScript: z.ZodOptional<z.ZodString>;
20743
+ }, z.core.$strict>>;
19434
20744
  }, z.core.$loose>>;
19435
20745
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
19436
20746
  type: z.ZodOptional<z.ZodUnknown>;
@@ -19512,6 +20822,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19512
20822
  }, z.core.$strip>;
19513
20823
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19514
20824
  workspaceId: z.ZodOptional<z.ZodString>;
20825
+ callerAgentId: z.ZodOptional<z.ZodString>;
19515
20826
  worktreeName: z.ZodOptional<z.ZodString>;
19516
20827
  initialPrompt: z.ZodOptional<z.ZodString>;
19517
20828
  clientMessageId: z.ZodOptional<z.ZodString>;
@@ -19610,7 +20921,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19610
20921
  }>>;
19611
20922
  checkoutSource: z.ZodOptional<z.ZodObject<{
19612
20923
  kind: z.ZodLiteral<"change_request">;
19613
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
20924
+ forge: z.ZodOptional<z.ZodString>;
19614
20925
  number: z.ZodNumber;
19615
20926
  projectPath: z.ZodOptional<z.ZodString>;
19616
20927
  }, z.core.$strip>>;
@@ -19774,6 +21085,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19774
21085
  seq: z.ZodNumber;
19775
21086
  }, z.core.$strip>>;
19776
21087
  limit: z.ZodOptional<z.ZodNumber>;
21088
+ }, z.core.$strip>, z.ZodObject<{
21089
+ type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
21090
+ agentIds: z.ZodArray<z.ZodString>;
21091
+ requestId: z.ZodString;
19777
21092
  }, z.core.$strip>, z.ZodObject<{
19778
21093
  type: z.ZodLiteral<"agent.fork_context.request">;
19779
21094
  agentId: z.ZodString;
@@ -20213,7 +21528,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20213
21528
  }>>;
20214
21529
  checkoutSource: z.ZodOptional<z.ZodObject<{
20215
21530
  kind: z.ZodLiteral<"change_request">;
20216
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21531
+ forge: z.ZodOptional<z.ZodString>;
20217
21532
  number: z.ZodNumber;
20218
21533
  projectPath: z.ZodOptional<z.ZodString>;
20219
21534
  }, z.core.$strip>>;
@@ -20365,9 +21680,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20365
21680
  }>>;
20366
21681
  refName: z.ZodOptional<z.ZodString>;
20367
21682
  baseBranch: z.ZodOptional<z.ZodString>;
21683
+ branchName: z.ZodOptional<z.ZodString>;
20368
21684
  checkoutSource: z.ZodOptional<z.ZodObject<{
20369
21685
  kind: z.ZodLiteral<"change_request">;
20370
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21686
+ forge: z.ZodOptional<z.ZodString>;
20371
21687
  number: z.ZodNumber;
20372
21688
  projectPath: z.ZodOptional<z.ZodString>;
20373
21689
  }, z.core.$strip>>;
@@ -20388,6 +21704,24 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20388
21704
  }>;
20389
21705
  requestId: z.ZodString;
20390
21706
  acceptBinary: z.ZodOptional<z.ZodBoolean>;
21707
+ }, z.core.$strip>, z.ZodObject<{
21708
+ type: z.ZodLiteral<"fs.file.subscribe.request">;
21709
+ cwd: z.ZodString;
21710
+ path: z.ZodString;
21711
+ subscriptionId: z.ZodString;
21712
+ requestId: z.ZodString;
21713
+ }, z.core.$strip>, z.ZodObject<{
21714
+ type: z.ZodLiteral<"fs.file.unsubscribe.request">;
21715
+ subscriptionId: z.ZodString;
21716
+ requestId: z.ZodString;
21717
+ }, z.core.$strip>, z.ZodObject<{
21718
+ type: z.ZodLiteral<"fs.file.write.request">;
21719
+ cwd: z.ZodString;
21720
+ path: z.ZodString;
21721
+ content: z.ZodString;
21722
+ expectedModifiedAt: z.ZodString;
21723
+ expectedRevision: z.ZodOptional<z.ZodString>;
21724
+ requestId: z.ZodString;
20391
21725
  }, z.core.$strip>, z.ZodObject<{
20392
21726
  type: z.ZodLiteral<"project_icon_request">;
20393
21727
  cwd: z.ZodString;
@@ -20706,6 +22040,210 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20706
22040
  export declare const WSSessionOutboundSchema: z.ZodObject<{
20707
22041
  type: z.ZodLiteral<"session">;
20708
22042
  message: z.ZodDiscriminatedUnion<[z.ZodObject<{
22043
+ type: z.ZodLiteral<"hub.execution.agent.create.response">;
22044
+ payload: z.ZodObject<{
22045
+ requestId: z.ZodString;
22046
+ executionId: z.ZodString;
22047
+ agentId: z.ZodNullable<z.ZodString>;
22048
+ agent: z.ZodNullable<z.ZodObject<{
22049
+ id: z.ZodString;
22050
+ provider: z.ZodString;
22051
+ cwd: z.ZodString;
22052
+ workspaceId: z.ZodOptional<z.ZodString>;
22053
+ model: z.ZodNullable<z.ZodString>;
22054
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
22055
+ type: z.ZodLiteral<"toggle">;
22056
+ id: z.ZodString;
22057
+ label: z.ZodString;
22058
+ description: z.ZodOptional<z.ZodString>;
22059
+ tooltip: z.ZodOptional<z.ZodString>;
22060
+ icon: z.ZodOptional<z.ZodString>;
22061
+ value: z.ZodBoolean;
22062
+ }, z.core.$strip>, z.ZodObject<{
22063
+ type: z.ZodLiteral<"select">;
22064
+ id: z.ZodString;
22065
+ label: z.ZodString;
22066
+ description: z.ZodOptional<z.ZodString>;
22067
+ tooltip: z.ZodOptional<z.ZodString>;
22068
+ icon: z.ZodOptional<z.ZodString>;
22069
+ value: z.ZodNullable<z.ZodString>;
22070
+ options: z.ZodArray<z.ZodObject<{
22071
+ id: z.ZodString;
22072
+ label: z.ZodString;
22073
+ description: z.ZodOptional<z.ZodString>;
22074
+ isDefault: z.ZodOptional<z.ZodBoolean>;
22075
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22076
+ }, z.core.$strip>>;
22077
+ }, z.core.$strip>], "type">>>;
22078
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22079
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22080
+ createdAt: z.ZodString;
22081
+ updatedAt: z.ZodString;
22082
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
22083
+ status: z.ZodEnum<{
22084
+ error: "error";
22085
+ initializing: "initializing";
22086
+ idle: "idle";
22087
+ running: "running";
22088
+ closed: "closed";
22089
+ }>;
22090
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
22091
+ currentModeId: z.ZodNullable<z.ZodString>;
22092
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
22093
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
22094
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
22095
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
22096
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
22097
+ lastError: z.ZodOptional<z.ZodString>;
22098
+ title: z.ZodNullable<z.ZodString>;
22099
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
22100
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
22101
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22102
+ finished: "finished";
22103
+ error: "error";
22104
+ permission: "permission";
22105
+ }>>>;
22106
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22107
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22108
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
22109
+ }, z.core.$strip>>;
22110
+ success: z.ZodBoolean;
22111
+ error: z.ZodNullable<z.ZodString>;
22112
+ }, z.core.$strip>;
22113
+ }, z.core.$strip>, z.ZodObject<{
22114
+ type: z.ZodLiteral<"hub.execution.agent.update">;
22115
+ payload: z.ZodObject<{
22116
+ executionId: z.ZodString;
22117
+ agentId: z.ZodString;
22118
+ agent: z.ZodObject<{
22119
+ id: z.ZodString;
22120
+ provider: z.ZodString;
22121
+ cwd: z.ZodString;
22122
+ workspaceId: z.ZodOptional<z.ZodString>;
22123
+ model: z.ZodNullable<z.ZodString>;
22124
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
22125
+ type: z.ZodLiteral<"toggle">;
22126
+ id: z.ZodString;
22127
+ label: z.ZodString;
22128
+ description: z.ZodOptional<z.ZodString>;
22129
+ tooltip: z.ZodOptional<z.ZodString>;
22130
+ icon: z.ZodOptional<z.ZodString>;
22131
+ value: z.ZodBoolean;
22132
+ }, z.core.$strip>, z.ZodObject<{
22133
+ type: z.ZodLiteral<"select">;
22134
+ id: z.ZodString;
22135
+ label: z.ZodString;
22136
+ description: z.ZodOptional<z.ZodString>;
22137
+ tooltip: z.ZodOptional<z.ZodString>;
22138
+ icon: z.ZodOptional<z.ZodString>;
22139
+ value: z.ZodNullable<z.ZodString>;
22140
+ options: z.ZodArray<z.ZodObject<{
22141
+ id: z.ZodString;
22142
+ label: z.ZodString;
22143
+ description: z.ZodOptional<z.ZodString>;
22144
+ isDefault: z.ZodOptional<z.ZodBoolean>;
22145
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22146
+ }, z.core.$strip>>;
22147
+ }, z.core.$strip>], "type">>>;
22148
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22149
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22150
+ createdAt: z.ZodString;
22151
+ updatedAt: z.ZodString;
22152
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
22153
+ status: z.ZodEnum<{
22154
+ error: "error";
22155
+ initializing: "initializing";
22156
+ idle: "idle";
22157
+ running: "running";
22158
+ closed: "closed";
22159
+ }>;
22160
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
22161
+ currentModeId: z.ZodNullable<z.ZodString>;
22162
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
22163
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
22164
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
22165
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
22166
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
22167
+ lastError: z.ZodOptional<z.ZodString>;
22168
+ title: z.ZodNullable<z.ZodString>;
22169
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
22170
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
22171
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22172
+ finished: "finished";
22173
+ error: "error";
22174
+ permission: "permission";
22175
+ }>>>;
22176
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22177
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22178
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
22179
+ }, z.core.$strip>;
22180
+ }, z.core.$strip>;
22181
+ }, z.core.$strip>, z.ZodObject<{
22182
+ type: z.ZodLiteral<"hub.execution.agent.stream">;
22183
+ payload: z.ZodObject<{
22184
+ executionId: z.ZodString;
22185
+ agentId: z.ZodString;
22186
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
22187
+ type: z.ZodLiteral<"thread_started">;
22188
+ sessionId: z.ZodString;
22189
+ provider: z.ZodString;
22190
+ }, z.core.$strip>, z.ZodObject<{
22191
+ type: z.ZodLiteral<"turn_started">;
22192
+ provider: z.ZodString;
22193
+ }, z.core.$strip>, z.ZodObject<{
22194
+ type: z.ZodLiteral<"turn_completed">;
22195
+ provider: z.ZodString;
22196
+ usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
22197
+ }, z.core.$strip>, z.ZodObject<{
22198
+ type: z.ZodLiteral<"turn_failed">;
22199
+ provider: z.ZodString;
22200
+ error: z.ZodString;
22201
+ code: z.ZodOptional<z.ZodString>;
22202
+ diagnostic: z.ZodOptional<z.ZodString>;
22203
+ }, z.core.$strip>, z.ZodObject<{
22204
+ type: z.ZodLiteral<"turn_canceled">;
22205
+ provider: z.ZodString;
22206
+ reason: z.ZodString;
22207
+ }, z.core.$strip>, z.ZodObject<{
22208
+ type: z.ZodLiteral<"timeline">;
22209
+ provider: z.ZodString;
22210
+ item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
22211
+ }, z.core.$strip>, z.ZodObject<{
22212
+ type: z.ZodLiteral<"permission_requested">;
22213
+ provider: z.ZodString;
22214
+ request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
22215
+ }, z.core.$strip>, z.ZodObject<{
22216
+ type: z.ZodLiteral<"permission_resolved">;
22217
+ provider: z.ZodString;
22218
+ requestId: z.ZodString;
22219
+ resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
22220
+ }, z.core.$strip>, z.ZodObject<{
22221
+ type: z.ZodLiteral<"attention_required">;
22222
+ provider: z.ZodString;
22223
+ reason: z.ZodEnum<{
22224
+ finished: "finished";
22225
+ error: "error";
22226
+ permission: "permission";
22227
+ }>;
22228
+ timestamp: z.ZodString;
22229
+ shouldNotify: z.ZodBoolean;
22230
+ notification: z.ZodOptional<z.ZodObject<{
22231
+ title: z.ZodString;
22232
+ body: z.ZodString;
22233
+ data: z.ZodObject<{
22234
+ serverId: z.ZodString;
22235
+ workspaceId: z.ZodOptional<z.ZodString>;
22236
+ agentId: z.ZodString;
22237
+ reason: z.ZodEnum<{
22238
+ finished: "finished";
22239
+ error: "error";
22240
+ permission: "permission";
22241
+ }>;
22242
+ }, z.core.$strip>;
22243
+ }, z.core.$strip>>;
22244
+ }, z.core.$strip>], "type">;
22245
+ }, z.core.$strip>;
22246
+ }, z.core.$strip>, z.ZodObject<{
20709
22247
  type: z.ZodLiteral<"browser.automation.execute.request">;
20710
22248
  requestId: z.ZodString;
20711
22249
  agentId: z.ZodOptional<z.ZodString>;
@@ -21557,6 +23095,25 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21557
23095
  }, z.core.$strip>>;
21558
23096
  removedProjectId: z.ZodOptional<z.ZodString>;
21559
23097
  }, z.core.$strip>], "kind">;
23098
+ }, z.core.$strip>, z.ZodObject<{
23099
+ type: z.ZodLiteral<"project.update">;
23100
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
23101
+ kind: z.ZodLiteral<"upsert">;
23102
+ project: z.ZodObject<{
23103
+ projectId: z.ZodString;
23104
+ projectDisplayName: z.ZodString;
23105
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23106
+ projectRootPath: z.ZodString;
23107
+ projectKind: z.ZodEnum<{
23108
+ git: "git";
23109
+ directory: "directory";
23110
+ non_git: "non_git";
23111
+ }>;
23112
+ }, z.core.$strip>;
23113
+ }, z.core.$strip>, z.ZodObject<{
23114
+ kind: z.ZodLiteral<"remove">;
23115
+ projectId: z.ZodString;
23116
+ }, z.core.$strip>], "kind">;
21560
23117
  }, z.core.$strip>, z.ZodObject<{
21561
23118
  type: z.ZodLiteral<"script_status_update">;
21562
23119
  payload: z.ZodObject<{
@@ -21702,6 +23259,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21702
23259
  body: z.ZodString;
21703
23260
  data: z.ZodObject<{
21704
23261
  serverId: z.ZodString;
23262
+ workspaceId: z.ZodOptional<z.ZodString>;
21705
23263
  agentId: z.ZodString;
21706
23264
  reason: z.ZodEnum<{
21707
23265
  finished: "finished";
@@ -23470,6 +25028,38 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23470
25028
  parentAgentId: z.ZodString;
23471
25029
  subagentId: z.ZodString;
23472
25030
  }, z.core.$strip>], "kind">;
25031
+ }, z.core.$strip>, z.ZodObject<{
25032
+ type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
25033
+ payload: z.ZodObject<{
25034
+ agentIds: z.ZodArray<z.ZodString>;
25035
+ requestId: z.ZodString;
25036
+ }, z.core.$strip>;
25037
+ }, z.core.$strip>, z.ZodObject<{
25038
+ type: z.ZodLiteral<"agent_attention_required">;
25039
+ payload: z.ZodObject<{
25040
+ agentId: z.ZodString;
25041
+ reason: z.ZodEnum<{
25042
+ finished: "finished";
25043
+ error: "error";
25044
+ permission: "permission";
25045
+ }>;
25046
+ timestamp: z.ZodString;
25047
+ shouldNotify: z.ZodBoolean;
25048
+ notification: z.ZodOptional<z.ZodObject<{
25049
+ title: z.ZodString;
25050
+ body: z.ZodString;
25051
+ data: z.ZodObject<{
25052
+ serverId: z.ZodString;
25053
+ workspaceId: z.ZodOptional<z.ZodString>;
25054
+ agentId: z.ZodString;
25055
+ reason: z.ZodEnum<{
25056
+ finished: "finished";
25057
+ error: "error";
25058
+ permission: "permission";
25059
+ }>;
25060
+ }, z.core.$strip>;
25061
+ }, z.core.$strip>>;
25062
+ }, z.core.$strip>;
23473
25063
  }, z.core.$strip>, z.ZodObject<{
23474
25064
  type: z.ZodLiteral<"agent.fork_context.response">;
23475
25065
  payload: z.ZodObject<{
@@ -24123,6 +25713,67 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24123
25713
  qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24124
25714
  relayEnabled: z.ZodBoolean;
24125
25715
  }, z.core.$loose>;
25716
+ }, z.core.$strip>, z.ZodObject<{
25717
+ type: z.ZodLiteral<"hub.management.daemon.connect.response">;
25718
+ payload: z.ZodObject<{
25719
+ requestId: z.ZodString;
25720
+ status: z.ZodObject<{
25721
+ state: z.ZodEnum<{
25722
+ not_connected: "not_connected";
25723
+ connecting: "connecting";
25724
+ connected: "connected";
25725
+ reconnecting: "reconnecting";
25726
+ disconnecting: "disconnecting";
25727
+ revoked: "revoked";
25728
+ }>;
25729
+ daemonId: z.ZodNullable<z.ZodString>;
25730
+ hubOrigin: z.ZodNullable<z.ZodString>;
25731
+ scopes: z.ZodArray<z.ZodString>;
25732
+ connectedAt: z.ZodNullable<z.ZodString>;
25733
+ lastError: z.ZodNullable<z.ZodString>;
25734
+ }, z.core.$strip>;
25735
+ }, z.core.$strip>;
25736
+ }, z.core.$strip>, z.ZodObject<{
25737
+ type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
25738
+ payload: z.ZodObject<{
25739
+ requestId: z.ZodString;
25740
+ status: z.ZodObject<{
25741
+ state: z.ZodEnum<{
25742
+ not_connected: "not_connected";
25743
+ connecting: "connecting";
25744
+ connected: "connected";
25745
+ reconnecting: "reconnecting";
25746
+ disconnecting: "disconnecting";
25747
+ revoked: "revoked";
25748
+ }>;
25749
+ daemonId: z.ZodNullable<z.ZodString>;
25750
+ hubOrigin: z.ZodNullable<z.ZodString>;
25751
+ scopes: z.ZodArray<z.ZodString>;
25752
+ connectedAt: z.ZodNullable<z.ZodString>;
25753
+ lastError: z.ZodNullable<z.ZodString>;
25754
+ }, z.core.$strip>;
25755
+ }, z.core.$strip>;
25756
+ }, z.core.$strip>, z.ZodObject<{
25757
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
25758
+ payload: z.ZodObject<{
25759
+ requestId: z.ZodString;
25760
+ status: z.ZodObject<{
25761
+ state: z.ZodEnum<{
25762
+ not_connected: "not_connected";
25763
+ connecting: "connecting";
25764
+ connected: "connected";
25765
+ reconnecting: "reconnecting";
25766
+ disconnecting: "disconnecting";
25767
+ revoked: "revoked";
25768
+ }>;
25769
+ daemonId: z.ZodNullable<z.ZodString>;
25770
+ hubOrigin: z.ZodNullable<z.ZodString>;
25771
+ scopes: z.ZodArray<z.ZodString>;
25772
+ connectedAt: z.ZodNullable<z.ZodString>;
25773
+ lastError: z.ZodNullable<z.ZodString>;
25774
+ }, z.core.$strip>;
25775
+ warning: z.ZodOptional<z.ZodString>;
25776
+ }, z.core.$strip>;
24126
25777
  }, z.core.$strip>, z.ZodObject<{
24127
25778
  type: z.ZodLiteral<"diagnostics.response">;
24128
25779
  payload: z.ZodObject<{
@@ -24218,6 +25869,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24218
25869
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
24219
25870
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
24220
25871
  terminals: z.ZodOptional<z.ZodUnknown>;
25872
+ servicePorts: z.ZodOptional<z.ZodObject<{
25873
+ range: z.ZodOptional<z.ZodString>;
25874
+ portScript: z.ZodOptional<z.ZodString>;
25875
+ }, z.core.$strict>>;
24221
25876
  }, z.core.$loose>>;
24222
25877
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
24223
25878
  type: z.ZodOptional<z.ZodUnknown>;
@@ -24272,6 +25927,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24272
25927
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
24273
25928
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
24274
25929
  terminals: z.ZodOptional<z.ZodUnknown>;
25930
+ servicePorts: z.ZodOptional<z.ZodObject<{
25931
+ range: z.ZodOptional<z.ZodString>;
25932
+ portScript: z.ZodOptional<z.ZodString>;
25933
+ }, z.core.$strict>>;
24275
25934
  }, z.core.$loose>>;
24276
25935
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
24277
25936
  type: z.ZodOptional<z.ZodUnknown>;
@@ -26024,10 +27683,95 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26024
27683
  mimeType: z.ZodOptional<z.ZodString>;
26025
27684
  size: z.ZodNumber;
26026
27685
  modifiedAt: z.ZodString;
27686
+ revision: z.ZodOptional<z.ZodString>;
26027
27687
  }, z.core.$strip>>;
26028
27688
  error: z.ZodNullable<z.ZodString>;
26029
27689
  requestId: z.ZodString;
26030
27690
  }, z.core.$strip>;
27691
+ }, z.core.$strip>, z.ZodObject<{
27692
+ type: z.ZodLiteral<"fs.file.subscribe.response">;
27693
+ payload: z.ZodObject<{
27694
+ subscriptionId: z.ZodString;
27695
+ initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
27696
+ status: z.ZodLiteral<"ready">;
27697
+ cwd: z.ZodString;
27698
+ path: z.ZodString;
27699
+ size: z.ZodNumber;
27700
+ modifiedAt: z.ZodString;
27701
+ revision: z.ZodOptional<z.ZodString>;
27702
+ }, z.core.$strip>, z.ZodObject<{
27703
+ status: z.ZodLiteral<"missing">;
27704
+ cwd: z.ZodString;
27705
+ path: z.ZodString;
27706
+ }, z.core.$strip>, z.ZodObject<{
27707
+ status: z.ZodLiteral<"error">;
27708
+ cwd: z.ZodString;
27709
+ path: z.ZodString;
27710
+ error: z.ZodString;
27711
+ }, z.core.$strip>], "status">;
27712
+ requestId: z.ZodString;
27713
+ }, z.core.$strip>;
27714
+ }, z.core.$strip>, z.ZodObject<{
27715
+ type: z.ZodLiteral<"fs.file.unsubscribe.response">;
27716
+ payload: z.ZodObject<{
27717
+ subscriptionId: z.ZodString;
27718
+ requestId: z.ZodString;
27719
+ }, z.core.$strip>;
27720
+ }, z.core.$strip>, z.ZodObject<{
27721
+ type: z.ZodLiteral<"fs.file.write.response">;
27722
+ payload: z.ZodObject<{
27723
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
27724
+ status: z.ZodLiteral<"written">;
27725
+ modifiedAt: z.ZodString;
27726
+ size: z.ZodNumber;
27727
+ revision: z.ZodOptional<z.ZodString>;
27728
+ }, z.core.$strip>, z.ZodObject<{
27729
+ status: z.ZodLiteral<"conflict">;
27730
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
27731
+ status: z.ZodLiteral<"ready">;
27732
+ cwd: z.ZodString;
27733
+ path: z.ZodString;
27734
+ size: z.ZodNumber;
27735
+ modifiedAt: z.ZodString;
27736
+ revision: z.ZodOptional<z.ZodString>;
27737
+ }, z.core.$strip>, z.ZodObject<{
27738
+ status: z.ZodLiteral<"missing">;
27739
+ cwd: z.ZodString;
27740
+ path: z.ZodString;
27741
+ }, z.core.$strip>, z.ZodObject<{
27742
+ status: z.ZodLiteral<"error">;
27743
+ cwd: z.ZodString;
27744
+ path: z.ZodString;
27745
+ error: z.ZodString;
27746
+ }, z.core.$strip>], "status">;
27747
+ }, z.core.$strip>, z.ZodObject<{
27748
+ status: z.ZodLiteral<"error">;
27749
+ error: z.ZodString;
27750
+ }, z.core.$strip>], "status">;
27751
+ requestId: z.ZodString;
27752
+ }, z.core.$strip>;
27753
+ }, z.core.$strip>, z.ZodObject<{
27754
+ type: z.ZodLiteral<"fs.file.update">;
27755
+ payload: z.ZodObject<{
27756
+ subscriptionId: z.ZodString;
27757
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
27758
+ status: z.ZodLiteral<"ready">;
27759
+ cwd: z.ZodString;
27760
+ path: z.ZodString;
27761
+ size: z.ZodNumber;
27762
+ modifiedAt: z.ZodString;
27763
+ revision: z.ZodOptional<z.ZodString>;
27764
+ }, z.core.$strip>, z.ZodObject<{
27765
+ status: z.ZodLiteral<"missing">;
27766
+ cwd: z.ZodString;
27767
+ path: z.ZodString;
27768
+ }, z.core.$strip>, z.ZodObject<{
27769
+ status: z.ZodLiteral<"error">;
27770
+ cwd: z.ZodString;
27771
+ path: z.ZodString;
27772
+ error: z.ZodString;
27773
+ }, z.core.$strip>], "status">;
27774
+ }, z.core.$strip>;
26031
27775
  }, z.core.$strip>, z.ZodObject<{
26032
27776
  type: z.ZodLiteral<"project_icon_response">;
26033
27777
  payload: z.ZodObject<{
@@ -26271,10 +28015,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26271
28015
  payload: z.ZodObject<{
26272
28016
  cwd: z.ZodOptional<z.ZodString>;
26273
28017
  terminals: z.ZodArray<z.ZodObject<{
28018
+ workspaceId: z.ZodOptional<z.ZodString>;
26274
28019
  title: z.ZodOptional<z.ZodString>;
26275
28020
  name: z.ZodString;
26276
28021
  id: z.ZodString;
26277
- workspaceId: z.ZodOptional<z.ZodString>;
26278
28022
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26279
28023
  state: z.ZodCatch<z.ZodEnum<{
26280
28024
  idle: "idle";
@@ -26295,10 +28039,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26295
28039
  payload: z.ZodObject<{
26296
28040
  cwd: z.ZodString;
26297
28041
  terminals: z.ZodArray<z.ZodObject<{
28042
+ workspaceId: z.ZodOptional<z.ZodString>;
26298
28043
  title: z.ZodOptional<z.ZodString>;
26299
28044
  name: z.ZodString;
26300
28045
  id: z.ZodString;
26301
- workspaceId: z.ZodOptional<z.ZodString>;
26302
28046
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26303
28047
  state: z.ZodCatch<z.ZodEnum<{
26304
28048
  idle: "idle";
@@ -27442,9 +29186,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
27442
29186
  voice: z.ZodOptional<z.ZodBoolean>;
27443
29187
  pushNotifications: z.ZodOptional<z.ZodBoolean>;
27444
29188
  reasoning_merge_enum: z.ZodOptional<z.ZodBoolean>;
29189
+ selective_agent_timeline: z.ZodOptional<z.ZodBoolean>;
27445
29190
  custom_mode_icons: z.ZodOptional<z.ZodBoolean>;
27446
29191
  terminal_reflowable_snapshot: z.ZodOptional<z.ZodBoolean>;
27447
29192
  provider_subagents: z.ZodOptional<z.ZodBoolean>;
29193
+ project_updates: z.ZodOptional<z.ZodBoolean>;
27448
29194
  browser_host: z.ZodOptional<z.ZodObject<{
27449
29195
  supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("select" | "type" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
27450
29196
  hostKind: z.ZodDefault<z.ZodString>;
@@ -27456,6 +29202,31 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
27456
29202
  }, z.core.$strip>, z.ZodObject<{
27457
29203
  type: z.ZodLiteral<"session">;
27458
29204
  message: z.ZodDiscriminatedUnion<[z.ZodObject<{
29205
+ type: z.ZodLiteral<"hub.execution.agent.create.request">;
29206
+ requestId: z.ZodString;
29207
+ executionId: z.ZodString;
29208
+ provider: z.ZodString;
29209
+ cwd: z.ZodString;
29210
+ prompt: z.ZodString;
29211
+ workspaceId: z.ZodOptional<z.ZodString>;
29212
+ model: z.ZodOptional<z.ZodString>;
29213
+ modeId: z.ZodOptional<z.ZodString>;
29214
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
29215
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29216
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
29217
+ worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
29218
+ mode: z.ZodLiteral<"branch-off">;
29219
+ newBranch: z.ZodString;
29220
+ base: z.ZodOptional<z.ZodString>;
29221
+ }, z.core.$strip>, z.ZodObject<{
29222
+ mode: z.ZodLiteral<"checkout-branch">;
29223
+ branch: z.ZodString;
29224
+ }, z.core.$strip>, z.ZodObject<{
29225
+ mode: z.ZodLiteral<"checkout-pr">;
29226
+ prNumber: z.ZodNumber;
29227
+ }, z.core.$strip>], "mode">>;
29228
+ autoArchive: z.ZodOptional<z.ZodBoolean>;
29229
+ }, z.core.$strip>, z.ZodObject<{
27459
29230
  type: z.ZodLiteral<"browser.automation.execute.response">;
27460
29231
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
27461
29232
  requestId: z.ZodString;
@@ -27930,6 +29701,18 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
27930
29701
  }, z.core.$strip>, z.ZodObject<{
27931
29702
  type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
27932
29703
  requestId: z.ZodString;
29704
+ }, z.core.$strip>, z.ZodObject<{
29705
+ type: z.ZodLiteral<"hub.management.daemon.connect.request">;
29706
+ requestId: z.ZodString;
29707
+ hubUrl: z.ZodString;
29708
+ token: z.ZodString;
29709
+ }, z.core.$strip>, z.ZodObject<{
29710
+ type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
29711
+ requestId: z.ZodString;
29712
+ }, z.core.$strip>, z.ZodObject<{
29713
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
29714
+ requestId: z.ZodString;
29715
+ force: z.ZodOptional<z.ZodBoolean>;
27933
29716
  }, z.core.$strip>, z.ZodObject<{
27934
29717
  type: z.ZodLiteral<"diagnostics.request">;
27935
29718
  requestId: z.ZodString;
@@ -27987,6 +29770,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
27987
29770
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
27988
29771
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
27989
29772
  terminals: z.ZodOptional<z.ZodUnknown>;
29773
+ servicePorts: z.ZodOptional<z.ZodObject<{
29774
+ range: z.ZodOptional<z.ZodString>;
29775
+ portScript: z.ZodOptional<z.ZodString>;
29776
+ }, z.core.$strict>>;
27990
29777
  }, z.core.$loose>>;
27991
29778
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
27992
29779
  type: z.ZodOptional<z.ZodUnknown>;
@@ -28068,6 +29855,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
28068
29855
  }, z.core.$strip>;
28069
29856
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28070
29857
  workspaceId: z.ZodOptional<z.ZodString>;
29858
+ callerAgentId: z.ZodOptional<z.ZodString>;
28071
29859
  worktreeName: z.ZodOptional<z.ZodString>;
28072
29860
  initialPrompt: z.ZodOptional<z.ZodString>;
28073
29861
  clientMessageId: z.ZodOptional<z.ZodString>;
@@ -28166,7 +29954,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
28166
29954
  }>>;
28167
29955
  checkoutSource: z.ZodOptional<z.ZodObject<{
28168
29956
  kind: z.ZodLiteral<"change_request">;
28169
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
29957
+ forge: z.ZodOptional<z.ZodString>;
28170
29958
  number: z.ZodNumber;
28171
29959
  projectPath: z.ZodOptional<z.ZodString>;
28172
29960
  }, z.core.$strip>>;
@@ -28330,6 +30118,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
28330
30118
  seq: z.ZodNumber;
28331
30119
  }, z.core.$strip>>;
28332
30120
  limit: z.ZodOptional<z.ZodNumber>;
30121
+ }, z.core.$strip>, z.ZodObject<{
30122
+ type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
30123
+ agentIds: z.ZodArray<z.ZodString>;
30124
+ requestId: z.ZodString;
28333
30125
  }, z.core.$strip>, z.ZodObject<{
28334
30126
  type: z.ZodLiteral<"agent.fork_context.request">;
28335
30127
  agentId: z.ZodString;
@@ -28769,7 +30561,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
28769
30561
  }>>;
28770
30562
  checkoutSource: z.ZodOptional<z.ZodObject<{
28771
30563
  kind: z.ZodLiteral<"change_request">;
28772
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30564
+ forge: z.ZodOptional<z.ZodString>;
28773
30565
  number: z.ZodNumber;
28774
30566
  projectPath: z.ZodOptional<z.ZodString>;
28775
30567
  }, z.core.$strip>>;
@@ -28921,9 +30713,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
28921
30713
  }>>;
28922
30714
  refName: z.ZodOptional<z.ZodString>;
28923
30715
  baseBranch: z.ZodOptional<z.ZodString>;
30716
+ branchName: z.ZodOptional<z.ZodString>;
28924
30717
  checkoutSource: z.ZodOptional<z.ZodObject<{
28925
30718
  kind: z.ZodLiteral<"change_request">;
28926
- forge: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30719
+ forge: z.ZodOptional<z.ZodString>;
28927
30720
  number: z.ZodNumber;
28928
30721
  projectPath: z.ZodOptional<z.ZodString>;
28929
30722
  }, z.core.$strip>>;
@@ -28944,6 +30737,24 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
28944
30737
  }>;
28945
30738
  requestId: z.ZodString;
28946
30739
  acceptBinary: z.ZodOptional<z.ZodBoolean>;
30740
+ }, z.core.$strip>, z.ZodObject<{
30741
+ type: z.ZodLiteral<"fs.file.subscribe.request">;
30742
+ cwd: z.ZodString;
30743
+ path: z.ZodString;
30744
+ subscriptionId: z.ZodString;
30745
+ requestId: z.ZodString;
30746
+ }, z.core.$strip>, z.ZodObject<{
30747
+ type: z.ZodLiteral<"fs.file.unsubscribe.request">;
30748
+ subscriptionId: z.ZodString;
30749
+ requestId: z.ZodString;
30750
+ }, z.core.$strip>, z.ZodObject<{
30751
+ type: z.ZodLiteral<"fs.file.write.request">;
30752
+ cwd: z.ZodString;
30753
+ path: z.ZodString;
30754
+ content: z.ZodString;
30755
+ expectedModifiedAt: z.ZodString;
30756
+ expectedRevision: z.ZodOptional<z.ZodString>;
30757
+ requestId: z.ZodString;
28947
30758
  }, z.core.$strip>, z.ZodObject<{
28948
30759
  type: z.ZodLiteral<"project_icon_request">;
28949
30760
  cwd: z.ZodString;
@@ -29264,6 +31075,210 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
29264
31075
  }, z.core.$strip>, z.ZodObject<{
29265
31076
  type: z.ZodLiteral<"session">;
29266
31077
  message: z.ZodDiscriminatedUnion<[z.ZodObject<{
31078
+ type: z.ZodLiteral<"hub.execution.agent.create.response">;
31079
+ payload: z.ZodObject<{
31080
+ requestId: z.ZodString;
31081
+ executionId: z.ZodString;
31082
+ agentId: z.ZodNullable<z.ZodString>;
31083
+ agent: z.ZodNullable<z.ZodObject<{
31084
+ id: z.ZodString;
31085
+ provider: z.ZodString;
31086
+ cwd: z.ZodString;
31087
+ workspaceId: z.ZodOptional<z.ZodString>;
31088
+ model: z.ZodNullable<z.ZodString>;
31089
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
31090
+ type: z.ZodLiteral<"toggle">;
31091
+ id: z.ZodString;
31092
+ label: z.ZodString;
31093
+ description: z.ZodOptional<z.ZodString>;
31094
+ tooltip: z.ZodOptional<z.ZodString>;
31095
+ icon: z.ZodOptional<z.ZodString>;
31096
+ value: z.ZodBoolean;
31097
+ }, z.core.$strip>, z.ZodObject<{
31098
+ type: z.ZodLiteral<"select">;
31099
+ id: z.ZodString;
31100
+ label: z.ZodString;
31101
+ description: z.ZodOptional<z.ZodString>;
31102
+ tooltip: z.ZodOptional<z.ZodString>;
31103
+ icon: z.ZodOptional<z.ZodString>;
31104
+ value: z.ZodNullable<z.ZodString>;
31105
+ options: z.ZodArray<z.ZodObject<{
31106
+ id: z.ZodString;
31107
+ label: z.ZodString;
31108
+ description: z.ZodOptional<z.ZodString>;
31109
+ isDefault: z.ZodOptional<z.ZodBoolean>;
31110
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31111
+ }, z.core.$strip>>;
31112
+ }, z.core.$strip>], "type">>>;
31113
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31114
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31115
+ createdAt: z.ZodString;
31116
+ updatedAt: z.ZodString;
31117
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
31118
+ status: z.ZodEnum<{
31119
+ error: "error";
31120
+ initializing: "initializing";
31121
+ idle: "idle";
31122
+ running: "running";
31123
+ closed: "closed";
31124
+ }>;
31125
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
31126
+ currentModeId: z.ZodNullable<z.ZodString>;
31127
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
31128
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
31129
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
31130
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
31131
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
31132
+ lastError: z.ZodOptional<z.ZodString>;
31133
+ title: z.ZodNullable<z.ZodString>;
31134
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
31135
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
31136
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
31137
+ finished: "finished";
31138
+ error: "error";
31139
+ permission: "permission";
31140
+ }>>>;
31141
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31142
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31143
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
31144
+ }, z.core.$strip>>;
31145
+ success: z.ZodBoolean;
31146
+ error: z.ZodNullable<z.ZodString>;
31147
+ }, z.core.$strip>;
31148
+ }, z.core.$strip>, z.ZodObject<{
31149
+ type: z.ZodLiteral<"hub.execution.agent.update">;
31150
+ payload: z.ZodObject<{
31151
+ executionId: z.ZodString;
31152
+ agentId: z.ZodString;
31153
+ agent: z.ZodObject<{
31154
+ id: z.ZodString;
31155
+ provider: z.ZodString;
31156
+ cwd: z.ZodString;
31157
+ workspaceId: z.ZodOptional<z.ZodString>;
31158
+ model: z.ZodNullable<z.ZodString>;
31159
+ features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
31160
+ type: z.ZodLiteral<"toggle">;
31161
+ id: z.ZodString;
31162
+ label: z.ZodString;
31163
+ description: z.ZodOptional<z.ZodString>;
31164
+ tooltip: z.ZodOptional<z.ZodString>;
31165
+ icon: z.ZodOptional<z.ZodString>;
31166
+ value: z.ZodBoolean;
31167
+ }, z.core.$strip>, z.ZodObject<{
31168
+ type: z.ZodLiteral<"select">;
31169
+ id: z.ZodString;
31170
+ label: z.ZodString;
31171
+ description: z.ZodOptional<z.ZodString>;
31172
+ tooltip: z.ZodOptional<z.ZodString>;
31173
+ icon: z.ZodOptional<z.ZodString>;
31174
+ value: z.ZodNullable<z.ZodString>;
31175
+ options: z.ZodArray<z.ZodObject<{
31176
+ id: z.ZodString;
31177
+ label: z.ZodString;
31178
+ description: z.ZodOptional<z.ZodString>;
31179
+ isDefault: z.ZodOptional<z.ZodBoolean>;
31180
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31181
+ }, z.core.$strip>>;
31182
+ }, z.core.$strip>], "type">>>;
31183
+ thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31184
+ effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31185
+ createdAt: z.ZodString;
31186
+ updatedAt: z.ZodString;
31187
+ lastUserMessageAt: z.ZodNullable<z.ZodString>;
31188
+ status: z.ZodEnum<{
31189
+ error: "error";
31190
+ initializing: "initializing";
31191
+ idle: "idle";
31192
+ running: "running";
31193
+ closed: "closed";
31194
+ }>;
31195
+ capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
31196
+ currentModeId: z.ZodNullable<z.ZodString>;
31197
+ availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
31198
+ pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
31199
+ persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
31200
+ runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
31201
+ lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
31202
+ lastError: z.ZodOptional<z.ZodString>;
31203
+ title: z.ZodNullable<z.ZodString>;
31204
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
31205
+ requiresAttention: z.ZodOptional<z.ZodBoolean>;
31206
+ attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
31207
+ finished: "finished";
31208
+ error: "error";
31209
+ permission: "permission";
31210
+ }>>>;
31211
+ attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31212
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31213
+ providerUnavailable: z.ZodOptional<z.ZodBoolean>;
31214
+ }, z.core.$strip>;
31215
+ }, z.core.$strip>;
31216
+ }, z.core.$strip>, z.ZodObject<{
31217
+ type: z.ZodLiteral<"hub.execution.agent.stream">;
31218
+ payload: z.ZodObject<{
31219
+ executionId: z.ZodString;
31220
+ agentId: z.ZodString;
31221
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
31222
+ type: z.ZodLiteral<"thread_started">;
31223
+ sessionId: z.ZodString;
31224
+ provider: z.ZodString;
31225
+ }, z.core.$strip>, z.ZodObject<{
31226
+ type: z.ZodLiteral<"turn_started">;
31227
+ provider: z.ZodString;
31228
+ }, z.core.$strip>, z.ZodObject<{
31229
+ type: z.ZodLiteral<"turn_completed">;
31230
+ provider: z.ZodString;
31231
+ usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
31232
+ }, z.core.$strip>, z.ZodObject<{
31233
+ type: z.ZodLiteral<"turn_failed">;
31234
+ provider: z.ZodString;
31235
+ error: z.ZodString;
31236
+ code: z.ZodOptional<z.ZodString>;
31237
+ diagnostic: z.ZodOptional<z.ZodString>;
31238
+ }, z.core.$strip>, z.ZodObject<{
31239
+ type: z.ZodLiteral<"turn_canceled">;
31240
+ provider: z.ZodString;
31241
+ reason: z.ZodString;
31242
+ }, z.core.$strip>, z.ZodObject<{
31243
+ type: z.ZodLiteral<"timeline">;
31244
+ provider: z.ZodString;
31245
+ item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
31246
+ }, z.core.$strip>, z.ZodObject<{
31247
+ type: z.ZodLiteral<"permission_requested">;
31248
+ provider: z.ZodString;
31249
+ request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
31250
+ }, z.core.$strip>, z.ZodObject<{
31251
+ type: z.ZodLiteral<"permission_resolved">;
31252
+ provider: z.ZodString;
31253
+ requestId: z.ZodString;
31254
+ resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
31255
+ }, z.core.$strip>, z.ZodObject<{
31256
+ type: z.ZodLiteral<"attention_required">;
31257
+ provider: z.ZodString;
31258
+ reason: z.ZodEnum<{
31259
+ finished: "finished";
31260
+ error: "error";
31261
+ permission: "permission";
31262
+ }>;
31263
+ timestamp: z.ZodString;
31264
+ shouldNotify: z.ZodBoolean;
31265
+ notification: z.ZodOptional<z.ZodObject<{
31266
+ title: z.ZodString;
31267
+ body: z.ZodString;
31268
+ data: z.ZodObject<{
31269
+ serverId: z.ZodString;
31270
+ workspaceId: z.ZodOptional<z.ZodString>;
31271
+ agentId: z.ZodString;
31272
+ reason: z.ZodEnum<{
31273
+ finished: "finished";
31274
+ error: "error";
31275
+ permission: "permission";
31276
+ }>;
31277
+ }, z.core.$strip>;
31278
+ }, z.core.$strip>>;
31279
+ }, z.core.$strip>], "type">;
31280
+ }, z.core.$strip>;
31281
+ }, z.core.$strip>, z.ZodObject<{
29267
31282
  type: z.ZodLiteral<"browser.automation.execute.request">;
29268
31283
  requestId: z.ZodString;
29269
31284
  agentId: z.ZodOptional<z.ZodString>;
@@ -30115,6 +32130,25 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
30115
32130
  }, z.core.$strip>>;
30116
32131
  removedProjectId: z.ZodOptional<z.ZodString>;
30117
32132
  }, z.core.$strip>], "kind">;
32133
+ }, z.core.$strip>, z.ZodObject<{
32134
+ type: z.ZodLiteral<"project.update">;
32135
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
32136
+ kind: z.ZodLiteral<"upsert">;
32137
+ project: z.ZodObject<{
32138
+ projectId: z.ZodString;
32139
+ projectDisplayName: z.ZodString;
32140
+ projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32141
+ projectRootPath: z.ZodString;
32142
+ projectKind: z.ZodEnum<{
32143
+ git: "git";
32144
+ directory: "directory";
32145
+ non_git: "non_git";
32146
+ }>;
32147
+ }, z.core.$strip>;
32148
+ }, z.core.$strip>, z.ZodObject<{
32149
+ kind: z.ZodLiteral<"remove">;
32150
+ projectId: z.ZodString;
32151
+ }, z.core.$strip>], "kind">;
30118
32152
  }, z.core.$strip>, z.ZodObject<{
30119
32153
  type: z.ZodLiteral<"script_status_update">;
30120
32154
  payload: z.ZodObject<{
@@ -30260,6 +32294,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
30260
32294
  body: z.ZodString;
30261
32295
  data: z.ZodObject<{
30262
32296
  serverId: z.ZodString;
32297
+ workspaceId: z.ZodOptional<z.ZodString>;
30263
32298
  agentId: z.ZodString;
30264
32299
  reason: z.ZodEnum<{
30265
32300
  finished: "finished";
@@ -32028,6 +34063,38 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
32028
34063
  parentAgentId: z.ZodString;
32029
34064
  subagentId: z.ZodString;
32030
34065
  }, z.core.$strip>], "kind">;
34066
+ }, z.core.$strip>, z.ZodObject<{
34067
+ type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
34068
+ payload: z.ZodObject<{
34069
+ agentIds: z.ZodArray<z.ZodString>;
34070
+ requestId: z.ZodString;
34071
+ }, z.core.$strip>;
34072
+ }, z.core.$strip>, z.ZodObject<{
34073
+ type: z.ZodLiteral<"agent_attention_required">;
34074
+ payload: z.ZodObject<{
34075
+ agentId: z.ZodString;
34076
+ reason: z.ZodEnum<{
34077
+ finished: "finished";
34078
+ error: "error";
34079
+ permission: "permission";
34080
+ }>;
34081
+ timestamp: z.ZodString;
34082
+ shouldNotify: z.ZodBoolean;
34083
+ notification: z.ZodOptional<z.ZodObject<{
34084
+ title: z.ZodString;
34085
+ body: z.ZodString;
34086
+ data: z.ZodObject<{
34087
+ serverId: z.ZodString;
34088
+ workspaceId: z.ZodOptional<z.ZodString>;
34089
+ agentId: z.ZodString;
34090
+ reason: z.ZodEnum<{
34091
+ finished: "finished";
34092
+ error: "error";
34093
+ permission: "permission";
34094
+ }>;
34095
+ }, z.core.$strip>;
34096
+ }, z.core.$strip>>;
34097
+ }, z.core.$strip>;
32031
34098
  }, z.core.$strip>, z.ZodObject<{
32032
34099
  type: z.ZodLiteral<"agent.fork_context.response">;
32033
34100
  payload: z.ZodObject<{
@@ -32681,6 +34748,67 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
32681
34748
  qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32682
34749
  relayEnabled: z.ZodBoolean;
32683
34750
  }, z.core.$loose>;
34751
+ }, z.core.$strip>, z.ZodObject<{
34752
+ type: z.ZodLiteral<"hub.management.daemon.connect.response">;
34753
+ payload: z.ZodObject<{
34754
+ requestId: z.ZodString;
34755
+ status: z.ZodObject<{
34756
+ state: z.ZodEnum<{
34757
+ not_connected: "not_connected";
34758
+ connecting: "connecting";
34759
+ connected: "connected";
34760
+ reconnecting: "reconnecting";
34761
+ disconnecting: "disconnecting";
34762
+ revoked: "revoked";
34763
+ }>;
34764
+ daemonId: z.ZodNullable<z.ZodString>;
34765
+ hubOrigin: z.ZodNullable<z.ZodString>;
34766
+ scopes: z.ZodArray<z.ZodString>;
34767
+ connectedAt: z.ZodNullable<z.ZodString>;
34768
+ lastError: z.ZodNullable<z.ZodString>;
34769
+ }, z.core.$strip>;
34770
+ }, z.core.$strip>;
34771
+ }, z.core.$strip>, z.ZodObject<{
34772
+ type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
34773
+ payload: z.ZodObject<{
34774
+ requestId: z.ZodString;
34775
+ status: z.ZodObject<{
34776
+ state: z.ZodEnum<{
34777
+ not_connected: "not_connected";
34778
+ connecting: "connecting";
34779
+ connected: "connected";
34780
+ reconnecting: "reconnecting";
34781
+ disconnecting: "disconnecting";
34782
+ revoked: "revoked";
34783
+ }>;
34784
+ daemonId: z.ZodNullable<z.ZodString>;
34785
+ hubOrigin: z.ZodNullable<z.ZodString>;
34786
+ scopes: z.ZodArray<z.ZodString>;
34787
+ connectedAt: z.ZodNullable<z.ZodString>;
34788
+ lastError: z.ZodNullable<z.ZodString>;
34789
+ }, z.core.$strip>;
34790
+ }, z.core.$strip>;
34791
+ }, z.core.$strip>, z.ZodObject<{
34792
+ type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
34793
+ payload: z.ZodObject<{
34794
+ requestId: z.ZodString;
34795
+ status: z.ZodObject<{
34796
+ state: z.ZodEnum<{
34797
+ not_connected: "not_connected";
34798
+ connecting: "connecting";
34799
+ connected: "connected";
34800
+ reconnecting: "reconnecting";
34801
+ disconnecting: "disconnecting";
34802
+ revoked: "revoked";
34803
+ }>;
34804
+ daemonId: z.ZodNullable<z.ZodString>;
34805
+ hubOrigin: z.ZodNullable<z.ZodString>;
34806
+ scopes: z.ZodArray<z.ZodString>;
34807
+ connectedAt: z.ZodNullable<z.ZodString>;
34808
+ lastError: z.ZodNullable<z.ZodString>;
34809
+ }, z.core.$strip>;
34810
+ warning: z.ZodOptional<z.ZodString>;
34811
+ }, z.core.$strip>;
32684
34812
  }, z.core.$strip>, z.ZodObject<{
32685
34813
  type: z.ZodLiteral<"diagnostics.response">;
32686
34814
  payload: z.ZodObject<{
@@ -32776,6 +34904,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
32776
34904
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32777
34905
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32778
34906
  terminals: z.ZodOptional<z.ZodUnknown>;
34907
+ servicePorts: z.ZodOptional<z.ZodObject<{
34908
+ range: z.ZodOptional<z.ZodString>;
34909
+ portScript: z.ZodOptional<z.ZodString>;
34910
+ }, z.core.$strict>>;
32779
34911
  }, z.core.$loose>>;
32780
34912
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
32781
34913
  type: z.ZodOptional<z.ZodUnknown>;
@@ -32830,6 +34962,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
32830
34962
  setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32831
34963
  teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32832
34964
  terminals: z.ZodOptional<z.ZodUnknown>;
34965
+ servicePorts: z.ZodOptional<z.ZodObject<{
34966
+ range: z.ZodOptional<z.ZodString>;
34967
+ portScript: z.ZodOptional<z.ZodString>;
34968
+ }, z.core.$strict>>;
32833
34969
  }, z.core.$loose>>;
32834
34970
  scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
32835
34971
  type: z.ZodOptional<z.ZodUnknown>;
@@ -34582,10 +36718,95 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
34582
36718
  mimeType: z.ZodOptional<z.ZodString>;
34583
36719
  size: z.ZodNumber;
34584
36720
  modifiedAt: z.ZodString;
36721
+ revision: z.ZodOptional<z.ZodString>;
34585
36722
  }, z.core.$strip>>;
34586
36723
  error: z.ZodNullable<z.ZodString>;
34587
36724
  requestId: z.ZodString;
34588
36725
  }, z.core.$strip>;
36726
+ }, z.core.$strip>, z.ZodObject<{
36727
+ type: z.ZodLiteral<"fs.file.subscribe.response">;
36728
+ payload: z.ZodObject<{
36729
+ subscriptionId: z.ZodString;
36730
+ initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
36731
+ status: z.ZodLiteral<"ready">;
36732
+ cwd: z.ZodString;
36733
+ path: z.ZodString;
36734
+ size: z.ZodNumber;
36735
+ modifiedAt: z.ZodString;
36736
+ revision: z.ZodOptional<z.ZodString>;
36737
+ }, z.core.$strip>, z.ZodObject<{
36738
+ status: z.ZodLiteral<"missing">;
36739
+ cwd: z.ZodString;
36740
+ path: z.ZodString;
36741
+ }, z.core.$strip>, z.ZodObject<{
36742
+ status: z.ZodLiteral<"error">;
36743
+ cwd: z.ZodString;
36744
+ path: z.ZodString;
36745
+ error: z.ZodString;
36746
+ }, z.core.$strip>], "status">;
36747
+ requestId: z.ZodString;
36748
+ }, z.core.$strip>;
36749
+ }, z.core.$strip>, z.ZodObject<{
36750
+ type: z.ZodLiteral<"fs.file.unsubscribe.response">;
36751
+ payload: z.ZodObject<{
36752
+ subscriptionId: z.ZodString;
36753
+ requestId: z.ZodString;
36754
+ }, z.core.$strip>;
36755
+ }, z.core.$strip>, z.ZodObject<{
36756
+ type: z.ZodLiteral<"fs.file.write.response">;
36757
+ payload: z.ZodObject<{
36758
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
36759
+ status: z.ZodLiteral<"written">;
36760
+ modifiedAt: z.ZodString;
36761
+ size: z.ZodNumber;
36762
+ revision: z.ZodOptional<z.ZodString>;
36763
+ }, z.core.$strip>, z.ZodObject<{
36764
+ status: z.ZodLiteral<"conflict">;
36765
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
36766
+ status: z.ZodLiteral<"ready">;
36767
+ cwd: z.ZodString;
36768
+ path: z.ZodString;
36769
+ size: z.ZodNumber;
36770
+ modifiedAt: z.ZodString;
36771
+ revision: z.ZodOptional<z.ZodString>;
36772
+ }, z.core.$strip>, z.ZodObject<{
36773
+ status: z.ZodLiteral<"missing">;
36774
+ cwd: z.ZodString;
36775
+ path: z.ZodString;
36776
+ }, z.core.$strip>, z.ZodObject<{
36777
+ status: z.ZodLiteral<"error">;
36778
+ cwd: z.ZodString;
36779
+ path: z.ZodString;
36780
+ error: z.ZodString;
36781
+ }, z.core.$strip>], "status">;
36782
+ }, z.core.$strip>, z.ZodObject<{
36783
+ status: z.ZodLiteral<"error">;
36784
+ error: z.ZodString;
36785
+ }, z.core.$strip>], "status">;
36786
+ requestId: z.ZodString;
36787
+ }, z.core.$strip>;
36788
+ }, z.core.$strip>, z.ZodObject<{
36789
+ type: z.ZodLiteral<"fs.file.update">;
36790
+ payload: z.ZodObject<{
36791
+ subscriptionId: z.ZodString;
36792
+ version: z.ZodDiscriminatedUnion<[z.ZodObject<{
36793
+ status: z.ZodLiteral<"ready">;
36794
+ cwd: z.ZodString;
36795
+ path: z.ZodString;
36796
+ size: z.ZodNumber;
36797
+ modifiedAt: z.ZodString;
36798
+ revision: z.ZodOptional<z.ZodString>;
36799
+ }, z.core.$strip>, z.ZodObject<{
36800
+ status: z.ZodLiteral<"missing">;
36801
+ cwd: z.ZodString;
36802
+ path: z.ZodString;
36803
+ }, z.core.$strip>, z.ZodObject<{
36804
+ status: z.ZodLiteral<"error">;
36805
+ cwd: z.ZodString;
36806
+ path: z.ZodString;
36807
+ error: z.ZodString;
36808
+ }, z.core.$strip>], "status">;
36809
+ }, z.core.$strip>;
34589
36810
  }, z.core.$strip>, z.ZodObject<{
34590
36811
  type: z.ZodLiteral<"project_icon_response">;
34591
36812
  payload: z.ZodObject<{
@@ -34829,10 +37050,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
34829
37050
  payload: z.ZodObject<{
34830
37051
  cwd: z.ZodOptional<z.ZodString>;
34831
37052
  terminals: z.ZodArray<z.ZodObject<{
37053
+ workspaceId: z.ZodOptional<z.ZodString>;
34832
37054
  title: z.ZodOptional<z.ZodString>;
34833
37055
  name: z.ZodString;
34834
37056
  id: z.ZodString;
34835
- workspaceId: z.ZodOptional<z.ZodString>;
34836
37057
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34837
37058
  state: z.ZodCatch<z.ZodEnum<{
34838
37059
  idle: "idle";
@@ -34853,10 +37074,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
34853
37074
  payload: z.ZodObject<{
34854
37075
  cwd: z.ZodString;
34855
37076
  terminals: z.ZodArray<z.ZodObject<{
37077
+ workspaceId: z.ZodOptional<z.ZodString>;
34856
37078
  title: z.ZodOptional<z.ZodString>;
34857
37079
  name: z.ZodString;
34858
37080
  id: z.ZodString;
34859
- workspaceId: z.ZodOptional<z.ZodString>;
34860
37081
  activity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34861
37082
  state: z.ZodCatch<z.ZodEnum<{
34862
37083
  idle: "idle";