@getpaseo/protocol 0.2.0-beta.1 → 0.2.0-beta.2
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.
- package/dist/agent-types.d.ts +1 -0
- package/dist/binary-frames/file-transfer.d.ts +1 -0
- package/dist/binary-frames/file-transfer.js +1 -0
- package/dist/client-capabilities.d.ts +2 -0
- package/dist/client-capabilities.js +6 -0
- package/dist/generated/validation/ws-outbound.aot.js +40177 -30652
- package/dist/messages.d.ts +2221 -14
- package/dist/messages.js +275 -5
- package/dist/paseo-config-schema.d.ts +21 -0
- package/dist/paseo-config-schema.js +19 -0
- package/dist/provider-manifest.js +2 -2
- package/dist/schedule/cadence.d.ts +6 -0
- package/dist/schedule/cadence.js +28 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +407 -0
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -654,7 +654,7 @@ export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
654
654
|
}, z.core.$strip>], "type">;
|
|
655
655
|
export declare const ChangeRequestCheckoutSourceSchema: z.ZodObject<{
|
|
656
656
|
kind: z.ZodLiteral<"change_request">;
|
|
657
|
-
forge: z.
|
|
657
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
658
658
|
number: z.ZodNumber;
|
|
659
659
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
660
660
|
}, z.core.$strip>;
|
|
@@ -969,6 +969,21 @@ export declare const DaemonGetPairingOfferRequestSchema: z.ZodObject<{
|
|
|
969
969
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
970
970
|
requestId: z.ZodString;
|
|
971
971
|
}, z.core.$strip>;
|
|
972
|
+
export declare const HubManagementDaemonConnectRequestSchema: z.ZodObject<{
|
|
973
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.request">;
|
|
974
|
+
requestId: z.ZodString;
|
|
975
|
+
hubUrl: z.ZodString;
|
|
976
|
+
token: z.ZodString;
|
|
977
|
+
}, z.core.$strip>;
|
|
978
|
+
export declare const HubManagementDaemonGetStatusRequestSchema: z.ZodObject<{
|
|
979
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
|
|
980
|
+
requestId: z.ZodString;
|
|
981
|
+
}, z.core.$strip>;
|
|
982
|
+
export declare const HubManagementDaemonDisconnectRequestSchema: z.ZodObject<{
|
|
983
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
|
|
984
|
+
requestId: z.ZodString;
|
|
985
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
986
|
+
}, z.core.$strip>;
|
|
972
987
|
export declare const DiagnosticsRequestSchema: z.ZodObject<{
|
|
973
988
|
type: z.ZodLiteral<"diagnostics.request">;
|
|
974
989
|
requestId: z.ZodString;
|
|
@@ -1030,6 +1045,10 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
|
|
|
1030
1045
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1031
1046
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1032
1047
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
1048
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
1049
|
+
range: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
}, z.core.$strict>>;
|
|
1033
1052
|
}, z.core.$loose>>;
|
|
1034
1053
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1035
1054
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1090,7 +1109,7 @@ declare const GitSetupOptionsSchema: z.ZodObject<{
|
|
|
1090
1109
|
}>>;
|
|
1091
1110
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
1092
1111
|
kind: z.ZodLiteral<"change_request">;
|
|
1093
|
-
forge: z.
|
|
1112
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
1094
1113
|
number: z.ZodNumber;
|
|
1095
1114
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1096
1115
|
}, z.core.$strip>>;
|
|
@@ -1148,6 +1167,7 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
|
|
|
1148
1167
|
}, z.core.$strip>;
|
|
1149
1168
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1150
1169
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
callerAgentId: z.ZodOptional<z.ZodString>;
|
|
1151
1171
|
worktreeName: z.ZodOptional<z.ZodString>;
|
|
1152
1172
|
initialPrompt: z.ZodOptional<z.ZodString>;
|
|
1153
1173
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
@@ -1246,7 +1266,7 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
|
|
|
1246
1266
|
}>>;
|
|
1247
1267
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
1248
1268
|
kind: z.ZodLiteral<"change_request">;
|
|
1249
|
-
forge: z.
|
|
1269
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
1250
1270
|
number: z.ZodNumber;
|
|
1251
1271
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1252
1272
|
}, z.core.$strip>>;
|
|
@@ -1421,6 +1441,11 @@ export declare const ProviderSubagentTimelineRequestMessageSchema: z.ZodObject<{
|
|
|
1421
1441
|
}, z.core.$strip>>;
|
|
1422
1442
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1423
1443
|
}, z.core.$strip>;
|
|
1444
|
+
export declare const SetAgentTimelineSubscriptionRequestMessageSchema: z.ZodObject<{
|
|
1445
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
|
|
1446
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
1447
|
+
requestId: z.ZodString;
|
|
1448
|
+
}, z.core.$strip>;
|
|
1424
1449
|
export declare const AgentForkContextRequestMessageSchema: z.ZodObject<{
|
|
1425
1450
|
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
1426
1451
|
agentId: z.ZodString;
|
|
@@ -2251,7 +2276,7 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
|
|
|
2251
2276
|
}>>;
|
|
2252
2277
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
2253
2278
|
kind: z.ZodLiteral<"change_request">;
|
|
2254
|
-
forge: z.
|
|
2279
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
2255
2280
|
number: z.ZodNumber;
|
|
2256
2281
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
2257
2282
|
}, z.core.$strip>>;
|
|
@@ -2430,9 +2455,10 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
|
|
|
2430
2455
|
}>>;
|
|
2431
2456
|
refName: z.ZodOptional<z.ZodString>;
|
|
2432
2457
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
2433
2459
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
2434
2460
|
kind: z.ZodLiteral<"change_request">;
|
|
2435
|
-
forge: z.
|
|
2461
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
2436
2462
|
number: z.ZodNumber;
|
|
2437
2463
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
2438
2464
|
}, z.core.$strip>>;
|
|
@@ -2487,6 +2513,44 @@ export declare const FileExplorerRequestSchema: z.ZodObject<{
|
|
|
2487
2513
|
requestId: z.ZodString;
|
|
2488
2514
|
acceptBinary: z.ZodOptional<z.ZodBoolean>;
|
|
2489
2515
|
}, z.core.$strip>;
|
|
2516
|
+
export declare const FileVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2517
|
+
status: z.ZodLiteral<"ready">;
|
|
2518
|
+
cwd: z.ZodString;
|
|
2519
|
+
path: z.ZodString;
|
|
2520
|
+
size: z.ZodNumber;
|
|
2521
|
+
modifiedAt: z.ZodString;
|
|
2522
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
2523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2524
|
+
status: z.ZodLiteral<"missing">;
|
|
2525
|
+
cwd: z.ZodString;
|
|
2526
|
+
path: z.ZodString;
|
|
2527
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2528
|
+
status: z.ZodLiteral<"error">;
|
|
2529
|
+
cwd: z.ZodString;
|
|
2530
|
+
path: z.ZodString;
|
|
2531
|
+
error: z.ZodString;
|
|
2532
|
+
}, z.core.$strip>], "status">;
|
|
2533
|
+
export declare const FileSubscribeRequestSchema: z.ZodObject<{
|
|
2534
|
+
type: z.ZodLiteral<"fs.file.subscribe.request">;
|
|
2535
|
+
cwd: z.ZodString;
|
|
2536
|
+
path: z.ZodString;
|
|
2537
|
+
subscriptionId: z.ZodString;
|
|
2538
|
+
requestId: z.ZodString;
|
|
2539
|
+
}, z.core.$strip>;
|
|
2540
|
+
export declare const FileUnsubscribeRequestSchema: z.ZodObject<{
|
|
2541
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.request">;
|
|
2542
|
+
subscriptionId: z.ZodString;
|
|
2543
|
+
requestId: z.ZodString;
|
|
2544
|
+
}, z.core.$strip>;
|
|
2545
|
+
export declare const FileWriteRequestSchema: z.ZodObject<{
|
|
2546
|
+
type: z.ZodLiteral<"fs.file.write.request">;
|
|
2547
|
+
cwd: z.ZodString;
|
|
2548
|
+
path: z.ZodString;
|
|
2549
|
+
content: z.ZodString;
|
|
2550
|
+
expectedModifiedAt: z.ZodString;
|
|
2551
|
+
expectedRevision: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
requestId: z.ZodString;
|
|
2553
|
+
}, z.core.$strip>;
|
|
2490
2554
|
export declare const ProjectIconRequestSchema: z.ZodObject<{
|
|
2491
2555
|
type: z.ZodLiteral<"project_icon_request">;
|
|
2492
2556
|
cwd: z.ZodString;
|
|
@@ -2655,7 +2719,59 @@ export declare const CaptureTerminalRequestSchema: z.ZodObject<{
|
|
|
2655
2719
|
stripAnsi: z.ZodDefault<z.ZodBoolean>;
|
|
2656
2720
|
requestId: z.ZodString;
|
|
2657
2721
|
}, z.core.$strip>;
|
|
2722
|
+
export declare const HubExecutionAgentCreateRequestSchema: z.ZodObject<{
|
|
2723
|
+
type: z.ZodLiteral<"hub.execution.agent.create.request">;
|
|
2724
|
+
requestId: z.ZodString;
|
|
2725
|
+
executionId: z.ZodString;
|
|
2726
|
+
provider: z.ZodString;
|
|
2727
|
+
cwd: z.ZodString;
|
|
2728
|
+
prompt: z.ZodString;
|
|
2729
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
2730
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2731
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
2732
|
+
thinkingOptionId: z.ZodOptional<z.ZodString>;
|
|
2733
|
+
featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2734
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2735
|
+
worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2736
|
+
mode: z.ZodLiteral<"branch-off">;
|
|
2737
|
+
newBranch: z.ZodString;
|
|
2738
|
+
base: z.ZodOptional<z.ZodString>;
|
|
2739
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2740
|
+
mode: z.ZodLiteral<"checkout-branch">;
|
|
2741
|
+
branch: z.ZodString;
|
|
2742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2743
|
+
mode: z.ZodLiteral<"checkout-pr">;
|
|
2744
|
+
prNumber: z.ZodNumber;
|
|
2745
|
+
}, z.core.$strip>], "mode">>;
|
|
2746
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
2747
|
+
}, z.core.$strip>;
|
|
2748
|
+
export type HubExecutionAgentCreateRequest = z.infer<typeof HubExecutionAgentCreateRequestSchema>;
|
|
2658
2749
|
export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2750
|
+
type: z.ZodLiteral<"hub.execution.agent.create.request">;
|
|
2751
|
+
requestId: z.ZodString;
|
|
2752
|
+
executionId: z.ZodString;
|
|
2753
|
+
provider: z.ZodString;
|
|
2754
|
+
cwd: z.ZodString;
|
|
2755
|
+
prompt: z.ZodString;
|
|
2756
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
2757
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2758
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
2759
|
+
thinkingOptionId: z.ZodOptional<z.ZodString>;
|
|
2760
|
+
featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2761
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2762
|
+
worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2763
|
+
mode: z.ZodLiteral<"branch-off">;
|
|
2764
|
+
newBranch: z.ZodString;
|
|
2765
|
+
base: z.ZodOptional<z.ZodString>;
|
|
2766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2767
|
+
mode: z.ZodLiteral<"checkout-branch">;
|
|
2768
|
+
branch: z.ZodString;
|
|
2769
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2770
|
+
mode: z.ZodLiteral<"checkout-pr">;
|
|
2771
|
+
prNumber: z.ZodNumber;
|
|
2772
|
+
}, z.core.$strip>], "mode">>;
|
|
2773
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
2774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2659
2775
|
type: z.ZodLiteral<"browser.automation.execute.response">;
|
|
2660
2776
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2661
2777
|
requestId: z.ZodString;
|
|
@@ -3130,6 +3246,18 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3130
3246
|
}, z.core.$strip>, z.ZodObject<{
|
|
3131
3247
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
3132
3248
|
requestId: z.ZodString;
|
|
3249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3250
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.request">;
|
|
3251
|
+
requestId: z.ZodString;
|
|
3252
|
+
hubUrl: z.ZodString;
|
|
3253
|
+
token: z.ZodString;
|
|
3254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3255
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
|
|
3256
|
+
requestId: z.ZodString;
|
|
3257
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3258
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
|
|
3259
|
+
requestId: z.ZodString;
|
|
3260
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
3133
3261
|
}, z.core.$strip>, z.ZodObject<{
|
|
3134
3262
|
type: z.ZodLiteral<"diagnostics.request">;
|
|
3135
3263
|
requestId: z.ZodString;
|
|
@@ -3187,6 +3315,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3187
3315
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3188
3316
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3189
3317
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
3318
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
3319
|
+
range: z.ZodOptional<z.ZodString>;
|
|
3320
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
3321
|
+
}, z.core.$strict>>;
|
|
3190
3322
|
}, z.core.$loose>>;
|
|
3191
3323
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3192
3324
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -3268,6 +3400,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3268
3400
|
}, z.core.$strip>;
|
|
3269
3401
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3270
3402
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
3403
|
+
callerAgentId: z.ZodOptional<z.ZodString>;
|
|
3271
3404
|
worktreeName: z.ZodOptional<z.ZodString>;
|
|
3272
3405
|
initialPrompt: z.ZodOptional<z.ZodString>;
|
|
3273
3406
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
@@ -3366,7 +3499,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3366
3499
|
}>>;
|
|
3367
3500
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
3368
3501
|
kind: z.ZodLiteral<"change_request">;
|
|
3369
|
-
forge: z.
|
|
3502
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
3370
3503
|
number: z.ZodNumber;
|
|
3371
3504
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
3372
3505
|
}, z.core.$strip>>;
|
|
@@ -3530,6 +3663,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3530
3663
|
seq: z.ZodNumber;
|
|
3531
3664
|
}, z.core.$strip>>;
|
|
3532
3665
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
3666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3667
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
|
|
3668
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
3669
|
+
requestId: z.ZodString;
|
|
3533
3670
|
}, z.core.$strip>, z.ZodObject<{
|
|
3534
3671
|
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
3535
3672
|
agentId: z.ZodString;
|
|
@@ -3969,7 +4106,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3969
4106
|
}>>;
|
|
3970
4107
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
3971
4108
|
kind: z.ZodLiteral<"change_request">;
|
|
3972
|
-
forge: z.
|
|
4109
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
3973
4110
|
number: z.ZodNumber;
|
|
3974
4111
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
3975
4112
|
}, z.core.$strip>>;
|
|
@@ -4121,9 +4258,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
4121
4258
|
}>>;
|
|
4122
4259
|
refName: z.ZodOptional<z.ZodString>;
|
|
4123
4260
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
4261
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
4124
4262
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
4125
4263
|
kind: z.ZodLiteral<"change_request">;
|
|
4126
|
-
forge: z.
|
|
4264
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
4127
4265
|
number: z.ZodNumber;
|
|
4128
4266
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
4129
4267
|
}, z.core.$strip>>;
|
|
@@ -4144,6 +4282,24 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
4144
4282
|
}>;
|
|
4145
4283
|
requestId: z.ZodString;
|
|
4146
4284
|
acceptBinary: z.ZodOptional<z.ZodBoolean>;
|
|
4285
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4286
|
+
type: z.ZodLiteral<"fs.file.subscribe.request">;
|
|
4287
|
+
cwd: z.ZodString;
|
|
4288
|
+
path: z.ZodString;
|
|
4289
|
+
subscriptionId: z.ZodString;
|
|
4290
|
+
requestId: z.ZodString;
|
|
4291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4292
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.request">;
|
|
4293
|
+
subscriptionId: z.ZodString;
|
|
4294
|
+
requestId: z.ZodString;
|
|
4295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4296
|
+
type: z.ZodLiteral<"fs.file.write.request">;
|
|
4297
|
+
cwd: z.ZodString;
|
|
4298
|
+
path: z.ZodString;
|
|
4299
|
+
content: z.ZodString;
|
|
4300
|
+
expectedModifiedAt: z.ZodString;
|
|
4301
|
+
expectedRevision: z.ZodOptional<z.ZodString>;
|
|
4302
|
+
requestId: z.ZodString;
|
|
4147
4303
|
}, z.core.$strip>, z.ZodObject<{
|
|
4148
4304
|
type: z.ZodLiteral<"project_icon_request">;
|
|
4149
4305
|
cwd: z.ZodString;
|
|
@@ -4629,6 +4785,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4629
4785
|
projectAdd: z.ZodOptional<z.ZodBoolean>;
|
|
4630
4786
|
worktreeRestore: z.ZodOptional<z.ZodBoolean>;
|
|
4631
4787
|
workspaceRecovery: z.ZodOptional<z.ZodBoolean>;
|
|
4788
|
+
workspaceFileEditing: z.ZodOptional<z.ZodBoolean>;
|
|
4632
4789
|
providerUsageList: z.ZodOptional<z.ZodBoolean>;
|
|
4633
4790
|
agentDetach: z.ZodOptional<z.ZodBoolean>;
|
|
4634
4791
|
daemonDiagnostics: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4637,6 +4794,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4637
4794
|
agentForkContextCursor: z.ZodOptional<z.ZodBoolean>;
|
|
4638
4795
|
providerSubagents: z.ZodOptional<z.ZodBoolean>;
|
|
4639
4796
|
workspacePinning: z.ZodOptional<z.ZodBoolean>;
|
|
4797
|
+
hubRelationship: z.ZodOptional<z.ZodBoolean>;
|
|
4640
4798
|
projectGithubClone: z.ZodOptional<z.ZodBoolean>;
|
|
4641
4799
|
workspaceGithubRepositorySearch: z.ZodOptional<z.ZodBoolean>;
|
|
4642
4800
|
projectCreateDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4644,6 +4802,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4644
4802
|
providerRemoval: z.ZodOptional<z.ZodBoolean>;
|
|
4645
4803
|
importSessionWorkspaceTarget: z.ZodOptional<z.ZodBoolean>;
|
|
4646
4804
|
forgeProviders: z.ZodOptional<z.ZodBoolean>;
|
|
4805
|
+
selectiveAgentTimeline: z.ZodOptional<z.ZodBoolean>;
|
|
4806
|
+
stableProjectIdentity: z.ZodOptional<z.ZodBoolean>;
|
|
4647
4807
|
}, z.core.$strip>>;
|
|
4648
4808
|
}, z.core.$loose>, z.ZodTransform<{
|
|
4649
4809
|
hostname: string | null;
|
|
@@ -4680,6 +4840,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4680
4840
|
projectAdd?: boolean | undefined;
|
|
4681
4841
|
worktreeRestore?: boolean | undefined;
|
|
4682
4842
|
workspaceRecovery?: boolean | undefined;
|
|
4843
|
+
workspaceFileEditing?: boolean | undefined;
|
|
4683
4844
|
providerUsageList?: boolean | undefined;
|
|
4684
4845
|
agentDetach?: boolean | undefined;
|
|
4685
4846
|
daemonDiagnostics?: boolean | undefined;
|
|
@@ -4688,6 +4849,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4688
4849
|
agentForkContextCursor?: boolean | undefined;
|
|
4689
4850
|
providerSubagents?: boolean | undefined;
|
|
4690
4851
|
workspacePinning?: boolean | undefined;
|
|
4852
|
+
hubRelationship?: boolean | undefined;
|
|
4691
4853
|
projectGithubClone?: boolean | undefined;
|
|
4692
4854
|
workspaceGithubRepositorySearch?: boolean | undefined;
|
|
4693
4855
|
projectCreateDirectory?: boolean | undefined;
|
|
@@ -4695,6 +4857,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4695
4857
|
providerRemoval?: boolean | undefined;
|
|
4696
4858
|
importSessionWorkspaceTarget?: boolean | undefined;
|
|
4697
4859
|
forgeProviders?: boolean | undefined;
|
|
4860
|
+
selectiveAgentTimeline?: boolean | undefined;
|
|
4861
|
+
stableProjectIdentity?: boolean | undefined;
|
|
4698
4862
|
} | undefined;
|
|
4699
4863
|
}, {
|
|
4700
4864
|
[x: string]: unknown;
|
|
@@ -4732,6 +4896,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4732
4896
|
projectAdd?: boolean | undefined;
|
|
4733
4897
|
worktreeRestore?: boolean | undefined;
|
|
4734
4898
|
workspaceRecovery?: boolean | undefined;
|
|
4899
|
+
workspaceFileEditing?: boolean | undefined;
|
|
4735
4900
|
providerUsageList?: boolean | undefined;
|
|
4736
4901
|
agentDetach?: boolean | undefined;
|
|
4737
4902
|
daemonDiagnostics?: boolean | undefined;
|
|
@@ -4740,6 +4905,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4740
4905
|
agentForkContextCursor?: boolean | undefined;
|
|
4741
4906
|
providerSubagents?: boolean | undefined;
|
|
4742
4907
|
workspacePinning?: boolean | undefined;
|
|
4908
|
+
hubRelationship?: boolean | undefined;
|
|
4743
4909
|
projectGithubClone?: boolean | undefined;
|
|
4744
4910
|
workspaceGithubRepositorySearch?: boolean | undefined;
|
|
4745
4911
|
projectCreateDirectory?: boolean | undefined;
|
|
@@ -4747,6 +4913,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
4747
4913
|
providerRemoval?: boolean | undefined;
|
|
4748
4914
|
importSessionWorkspaceTarget?: boolean | undefined;
|
|
4749
4915
|
forgeProviders?: boolean | undefined;
|
|
4916
|
+
selectiveAgentTimeline?: boolean | undefined;
|
|
4917
|
+
stableProjectIdentity?: boolean | undefined;
|
|
4750
4918
|
} | undefined;
|
|
4751
4919
|
}>>;
|
|
4752
4920
|
export declare const StatusMessageSchema: z.ZodObject<{
|
|
@@ -7390,6 +7558,26 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
|
|
|
7390
7558
|
removedProjectId: z.ZodOptional<z.ZodString>;
|
|
7391
7559
|
}, z.core.$strip>], "kind">;
|
|
7392
7560
|
}, z.core.$strip>;
|
|
7561
|
+
export declare const ProjectUpdateMessageSchema: z.ZodObject<{
|
|
7562
|
+
type: z.ZodLiteral<"project.update">;
|
|
7563
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7564
|
+
kind: z.ZodLiteral<"upsert">;
|
|
7565
|
+
project: z.ZodObject<{
|
|
7566
|
+
projectId: z.ZodString;
|
|
7567
|
+
projectDisplayName: z.ZodString;
|
|
7568
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7569
|
+
projectRootPath: z.ZodString;
|
|
7570
|
+
projectKind: z.ZodEnum<{
|
|
7571
|
+
git: "git";
|
|
7572
|
+
directory: "directory";
|
|
7573
|
+
non_git: "non_git";
|
|
7574
|
+
}>;
|
|
7575
|
+
}, z.core.$strip>;
|
|
7576
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7577
|
+
kind: z.ZodLiteral<"remove">;
|
|
7578
|
+
projectId: z.ZodString;
|
|
7579
|
+
}, z.core.$strip>], "kind">;
|
|
7580
|
+
}, z.core.$strip>;
|
|
7393
7581
|
export declare const ScriptStatusUpdateMessageSchema: z.ZodObject<{
|
|
7394
7582
|
type: z.ZodLiteral<"script_status_update">;
|
|
7395
7583
|
payload: z.ZodObject<{
|
|
@@ -8503,6 +8691,39 @@ export declare const ProviderSubagentUpdateMessageSchema: z.ZodObject<{
|
|
|
8503
8691
|
subagentId: z.ZodString;
|
|
8504
8692
|
}, z.core.$strip>], "kind">;
|
|
8505
8693
|
}, z.core.$strip>;
|
|
8694
|
+
export declare const SetAgentTimelineSubscriptionResponseMessageSchema: z.ZodObject<{
|
|
8695
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
|
|
8696
|
+
payload: z.ZodObject<{
|
|
8697
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
8698
|
+
requestId: z.ZodString;
|
|
8699
|
+
}, z.core.$strip>;
|
|
8700
|
+
}, z.core.$strip>;
|
|
8701
|
+
export declare const AgentAttentionRequiredMessageSchema: z.ZodObject<{
|
|
8702
|
+
type: z.ZodLiteral<"agent_attention_required">;
|
|
8703
|
+
payload: z.ZodObject<{
|
|
8704
|
+
agentId: z.ZodString;
|
|
8705
|
+
reason: z.ZodEnum<{
|
|
8706
|
+
finished: "finished";
|
|
8707
|
+
error: "error";
|
|
8708
|
+
permission: "permission";
|
|
8709
|
+
}>;
|
|
8710
|
+
timestamp: z.ZodString;
|
|
8711
|
+
shouldNotify: z.ZodBoolean;
|
|
8712
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
8713
|
+
title: z.ZodString;
|
|
8714
|
+
body: z.ZodString;
|
|
8715
|
+
data: z.ZodObject<{
|
|
8716
|
+
serverId: z.ZodString;
|
|
8717
|
+
agentId: z.ZodString;
|
|
8718
|
+
reason: z.ZodEnum<{
|
|
8719
|
+
finished: "finished";
|
|
8720
|
+
error: "error";
|
|
8721
|
+
permission: "permission";
|
|
8722
|
+
}>;
|
|
8723
|
+
}, z.core.$strip>;
|
|
8724
|
+
}, z.core.$strip>>;
|
|
8725
|
+
}, z.core.$strip>;
|
|
8726
|
+
}, z.core.$strip>;
|
|
8506
8727
|
export declare const AgentForkContextResponseMessageSchema: z.ZodObject<{
|
|
8507
8728
|
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
8508
8729
|
payload: z.ZodObject<{
|
|
@@ -9259,6 +9480,85 @@ export declare const DaemonGetStatusResponseSchema: z.ZodObject<{
|
|
|
9259
9480
|
}, z.core.$strip>>;
|
|
9260
9481
|
}, z.core.$loose>;
|
|
9261
9482
|
}, z.core.$strip>;
|
|
9483
|
+
export declare const HubRelationshipStatusSchema: z.ZodObject<{
|
|
9484
|
+
state: z.ZodEnum<{
|
|
9485
|
+
not_connected: "not_connected";
|
|
9486
|
+
connecting: "connecting";
|
|
9487
|
+
connected: "connected";
|
|
9488
|
+
reconnecting: "reconnecting";
|
|
9489
|
+
disconnecting: "disconnecting";
|
|
9490
|
+
revoked: "revoked";
|
|
9491
|
+
}>;
|
|
9492
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
9493
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
9494
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
9495
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
9496
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
9497
|
+
}, z.core.$strip>;
|
|
9498
|
+
export declare const HubManagementDaemonConnectResponseSchema: z.ZodObject<{
|
|
9499
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.response">;
|
|
9500
|
+
payload: z.ZodObject<{
|
|
9501
|
+
requestId: z.ZodString;
|
|
9502
|
+
status: z.ZodObject<{
|
|
9503
|
+
state: z.ZodEnum<{
|
|
9504
|
+
not_connected: "not_connected";
|
|
9505
|
+
connecting: "connecting";
|
|
9506
|
+
connected: "connected";
|
|
9507
|
+
reconnecting: "reconnecting";
|
|
9508
|
+
disconnecting: "disconnecting";
|
|
9509
|
+
revoked: "revoked";
|
|
9510
|
+
}>;
|
|
9511
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
9512
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
9513
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
9514
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
9515
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
9516
|
+
}, z.core.$strip>;
|
|
9517
|
+
}, z.core.$strip>;
|
|
9518
|
+
}, z.core.$strip>;
|
|
9519
|
+
export declare const HubManagementDaemonGetStatusResponseSchema: z.ZodObject<{
|
|
9520
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
|
|
9521
|
+
payload: z.ZodObject<{
|
|
9522
|
+
requestId: z.ZodString;
|
|
9523
|
+
status: z.ZodObject<{
|
|
9524
|
+
state: z.ZodEnum<{
|
|
9525
|
+
not_connected: "not_connected";
|
|
9526
|
+
connecting: "connecting";
|
|
9527
|
+
connected: "connected";
|
|
9528
|
+
reconnecting: "reconnecting";
|
|
9529
|
+
disconnecting: "disconnecting";
|
|
9530
|
+
revoked: "revoked";
|
|
9531
|
+
}>;
|
|
9532
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
9533
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
9534
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
9535
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
9536
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
9537
|
+
}, z.core.$strip>;
|
|
9538
|
+
}, z.core.$strip>;
|
|
9539
|
+
}, z.core.$strip>;
|
|
9540
|
+
export declare const HubManagementDaemonDisconnectResponseSchema: z.ZodObject<{
|
|
9541
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
|
|
9542
|
+
payload: z.ZodObject<{
|
|
9543
|
+
requestId: z.ZodString;
|
|
9544
|
+
status: z.ZodObject<{
|
|
9545
|
+
state: z.ZodEnum<{
|
|
9546
|
+
not_connected: "not_connected";
|
|
9547
|
+
connecting: "connecting";
|
|
9548
|
+
connected: "connected";
|
|
9549
|
+
reconnecting: "reconnecting";
|
|
9550
|
+
disconnecting: "disconnecting";
|
|
9551
|
+
revoked: "revoked";
|
|
9552
|
+
}>;
|
|
9553
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
9554
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
9555
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
9556
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
9557
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
9558
|
+
}, z.core.$strip>;
|
|
9559
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
9560
|
+
}, z.core.$strip>;
|
|
9561
|
+
}, z.core.$strip>;
|
|
9262
9562
|
export declare const DaemonGetPairingOfferResponseSchema: z.ZodObject<{
|
|
9263
9563
|
type: z.ZodLiteral<"daemon.get_pairing_offer.response">;
|
|
9264
9564
|
payload: z.ZodObject<{
|
|
@@ -9326,6 +9626,10 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
|
|
|
9326
9626
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
9327
9627
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
9328
9628
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
9629
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
9630
|
+
range: z.ZodOptional<z.ZodString>;
|
|
9631
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
9632
|
+
}, z.core.$strict>>;
|
|
9329
9633
|
}, z.core.$loose>>;
|
|
9330
9634
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9331
9635
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -9381,6 +9685,10 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
|
|
|
9381
9685
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
9382
9686
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
9383
9687
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
9688
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
9689
|
+
range: z.ZodOptional<z.ZodString>;
|
|
9690
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
9691
|
+
}, z.core.$strict>>;
|
|
9384
9692
|
}, z.core.$loose>>;
|
|
9385
9693
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9386
9694
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -11225,11 +11533,128 @@ export declare const FileExplorerResponseSchema: z.ZodObject<{
|
|
|
11225
11533
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
11226
11534
|
size: z.ZodNumber;
|
|
11227
11535
|
modifiedAt: z.ZodString;
|
|
11536
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11228
11537
|
}, z.core.$strip>>;
|
|
11229
11538
|
error: z.ZodNullable<z.ZodString>;
|
|
11230
11539
|
requestId: z.ZodString;
|
|
11231
11540
|
}, z.core.$strip>;
|
|
11232
11541
|
}, z.core.$strip>;
|
|
11542
|
+
export declare const FileSubscribeResponseSchema: z.ZodObject<{
|
|
11543
|
+
type: z.ZodLiteral<"fs.file.subscribe.response">;
|
|
11544
|
+
payload: z.ZodObject<{
|
|
11545
|
+
subscriptionId: z.ZodString;
|
|
11546
|
+
initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11547
|
+
status: z.ZodLiteral<"ready">;
|
|
11548
|
+
cwd: z.ZodString;
|
|
11549
|
+
path: z.ZodString;
|
|
11550
|
+
size: z.ZodNumber;
|
|
11551
|
+
modifiedAt: z.ZodString;
|
|
11552
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11554
|
+
status: z.ZodLiteral<"missing">;
|
|
11555
|
+
cwd: z.ZodString;
|
|
11556
|
+
path: z.ZodString;
|
|
11557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11558
|
+
status: z.ZodLiteral<"error">;
|
|
11559
|
+
cwd: z.ZodString;
|
|
11560
|
+
path: z.ZodString;
|
|
11561
|
+
error: z.ZodString;
|
|
11562
|
+
}, z.core.$strip>], "status">;
|
|
11563
|
+
requestId: z.ZodString;
|
|
11564
|
+
}, z.core.$strip>;
|
|
11565
|
+
}, z.core.$strip>;
|
|
11566
|
+
export declare const FileUnsubscribeResponseSchema: z.ZodObject<{
|
|
11567
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.response">;
|
|
11568
|
+
payload: z.ZodObject<{
|
|
11569
|
+
subscriptionId: z.ZodString;
|
|
11570
|
+
requestId: z.ZodString;
|
|
11571
|
+
}, z.core.$strip>;
|
|
11572
|
+
}, z.core.$strip>;
|
|
11573
|
+
export declare const FileWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11574
|
+
status: z.ZodLiteral<"written">;
|
|
11575
|
+
modifiedAt: z.ZodString;
|
|
11576
|
+
size: z.ZodNumber;
|
|
11577
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11579
|
+
status: z.ZodLiteral<"conflict">;
|
|
11580
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11581
|
+
status: z.ZodLiteral<"ready">;
|
|
11582
|
+
cwd: z.ZodString;
|
|
11583
|
+
path: z.ZodString;
|
|
11584
|
+
size: z.ZodNumber;
|
|
11585
|
+
modifiedAt: z.ZodString;
|
|
11586
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11587
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11588
|
+
status: z.ZodLiteral<"missing">;
|
|
11589
|
+
cwd: z.ZodString;
|
|
11590
|
+
path: z.ZodString;
|
|
11591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11592
|
+
status: z.ZodLiteral<"error">;
|
|
11593
|
+
cwd: z.ZodString;
|
|
11594
|
+
path: z.ZodString;
|
|
11595
|
+
error: z.ZodString;
|
|
11596
|
+
}, z.core.$strip>], "status">;
|
|
11597
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11598
|
+
status: z.ZodLiteral<"error">;
|
|
11599
|
+
error: z.ZodString;
|
|
11600
|
+
}, z.core.$strip>], "status">;
|
|
11601
|
+
export declare const FileWriteResponseSchema: z.ZodObject<{
|
|
11602
|
+
type: z.ZodLiteral<"fs.file.write.response">;
|
|
11603
|
+
payload: z.ZodObject<{
|
|
11604
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11605
|
+
status: z.ZodLiteral<"written">;
|
|
11606
|
+
modifiedAt: z.ZodString;
|
|
11607
|
+
size: z.ZodNumber;
|
|
11608
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11609
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11610
|
+
status: z.ZodLiteral<"conflict">;
|
|
11611
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11612
|
+
status: z.ZodLiteral<"ready">;
|
|
11613
|
+
cwd: z.ZodString;
|
|
11614
|
+
path: z.ZodString;
|
|
11615
|
+
size: z.ZodNumber;
|
|
11616
|
+
modifiedAt: z.ZodString;
|
|
11617
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11619
|
+
status: z.ZodLiteral<"missing">;
|
|
11620
|
+
cwd: z.ZodString;
|
|
11621
|
+
path: z.ZodString;
|
|
11622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11623
|
+
status: z.ZodLiteral<"error">;
|
|
11624
|
+
cwd: z.ZodString;
|
|
11625
|
+
path: z.ZodString;
|
|
11626
|
+
error: z.ZodString;
|
|
11627
|
+
}, z.core.$strip>], "status">;
|
|
11628
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11629
|
+
status: z.ZodLiteral<"error">;
|
|
11630
|
+
error: z.ZodString;
|
|
11631
|
+
}, z.core.$strip>], "status">;
|
|
11632
|
+
requestId: z.ZodString;
|
|
11633
|
+
}, z.core.$strip>;
|
|
11634
|
+
}, z.core.$strip>;
|
|
11635
|
+
export declare const FileUpdateSchema: z.ZodObject<{
|
|
11636
|
+
type: z.ZodLiteral<"fs.file.update">;
|
|
11637
|
+
payload: z.ZodObject<{
|
|
11638
|
+
subscriptionId: z.ZodString;
|
|
11639
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11640
|
+
status: z.ZodLiteral<"ready">;
|
|
11641
|
+
cwd: z.ZodString;
|
|
11642
|
+
path: z.ZodString;
|
|
11643
|
+
size: z.ZodNumber;
|
|
11644
|
+
modifiedAt: z.ZodString;
|
|
11645
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11647
|
+
status: z.ZodLiteral<"missing">;
|
|
11648
|
+
cwd: z.ZodString;
|
|
11649
|
+
path: z.ZodString;
|
|
11650
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11651
|
+
status: z.ZodLiteral<"error">;
|
|
11652
|
+
cwd: z.ZodString;
|
|
11653
|
+
path: z.ZodString;
|
|
11654
|
+
error: z.ZodString;
|
|
11655
|
+
}, z.core.$strip>], "status">;
|
|
11656
|
+
}, z.core.$strip>;
|
|
11657
|
+
}, z.core.$strip>;
|
|
11233
11658
|
declare const ProjectIconSchema: z.ZodObject<{
|
|
11234
11659
|
data: z.ZodString;
|
|
11235
11660
|
mimeType: z.ZodString;
|
|
@@ -11833,8 +12258,629 @@ export declare const DaemonUpdateProgressMessageSchema: z.ZodObject<{
|
|
|
11833
12258
|
}>;
|
|
11834
12259
|
}, z.core.$strip>;
|
|
11835
12260
|
}, z.core.$strip>;
|
|
12261
|
+
export declare const HubExecutionAgentCreateResponseSchema: z.ZodObject<{
|
|
12262
|
+
type: z.ZodLiteral<"hub.execution.agent.create.response">;
|
|
12263
|
+
payload: z.ZodObject<{
|
|
12264
|
+
requestId: z.ZodString;
|
|
12265
|
+
executionId: z.ZodString;
|
|
12266
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
12267
|
+
agent: z.ZodNullable<z.ZodObject<{
|
|
12268
|
+
id: z.ZodString;
|
|
12269
|
+
provider: z.ZodString;
|
|
12270
|
+
cwd: z.ZodString;
|
|
12271
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12272
|
+
model: z.ZodNullable<z.ZodString>;
|
|
12273
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12274
|
+
type: z.ZodLiteral<"toggle">;
|
|
12275
|
+
id: z.ZodString;
|
|
12276
|
+
label: z.ZodString;
|
|
12277
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12278
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12279
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12280
|
+
value: z.ZodBoolean;
|
|
12281
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12282
|
+
type: z.ZodLiteral<"select">;
|
|
12283
|
+
id: z.ZodString;
|
|
12284
|
+
label: z.ZodString;
|
|
12285
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12286
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12287
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12288
|
+
value: z.ZodNullable<z.ZodString>;
|
|
12289
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12290
|
+
id: z.ZodString;
|
|
12291
|
+
label: z.ZodString;
|
|
12292
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12293
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
12294
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12295
|
+
}, z.core.$strip>>;
|
|
12296
|
+
}, z.core.$strip>], "type">>>;
|
|
12297
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12298
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12299
|
+
createdAt: z.ZodString;
|
|
12300
|
+
updatedAt: z.ZodString;
|
|
12301
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
12302
|
+
status: z.ZodEnum<{
|
|
12303
|
+
error: "error";
|
|
12304
|
+
initializing: "initializing";
|
|
12305
|
+
idle: "idle";
|
|
12306
|
+
running: "running";
|
|
12307
|
+
closed: "closed";
|
|
12308
|
+
}>;
|
|
12309
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
12310
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
12311
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
12312
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
12313
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
12314
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
12315
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12316
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
12317
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12318
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12319
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
12320
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12321
|
+
finished: "finished";
|
|
12322
|
+
error: "error";
|
|
12323
|
+
permission: "permission";
|
|
12324
|
+
}>>>;
|
|
12325
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12326
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12327
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
12328
|
+
}, z.core.$strip>>;
|
|
12329
|
+
success: z.ZodBoolean;
|
|
12330
|
+
error: z.ZodNullable<z.ZodString>;
|
|
12331
|
+
}, z.core.$strip>;
|
|
12332
|
+
}, z.core.$strip>;
|
|
12333
|
+
export declare const HubExecutionAgentUpdateSchema: z.ZodObject<{
|
|
12334
|
+
type: z.ZodLiteral<"hub.execution.agent.update">;
|
|
12335
|
+
payload: z.ZodObject<{
|
|
12336
|
+
executionId: z.ZodString;
|
|
12337
|
+
agentId: z.ZodString;
|
|
12338
|
+
agent: z.ZodObject<{
|
|
12339
|
+
id: z.ZodString;
|
|
12340
|
+
provider: z.ZodString;
|
|
12341
|
+
cwd: z.ZodString;
|
|
12342
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12343
|
+
model: z.ZodNullable<z.ZodString>;
|
|
12344
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12345
|
+
type: z.ZodLiteral<"toggle">;
|
|
12346
|
+
id: z.ZodString;
|
|
12347
|
+
label: z.ZodString;
|
|
12348
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12349
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12350
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12351
|
+
value: z.ZodBoolean;
|
|
12352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12353
|
+
type: z.ZodLiteral<"select">;
|
|
12354
|
+
id: z.ZodString;
|
|
12355
|
+
label: z.ZodString;
|
|
12356
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12357
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12358
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12359
|
+
value: z.ZodNullable<z.ZodString>;
|
|
12360
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12361
|
+
id: z.ZodString;
|
|
12362
|
+
label: z.ZodString;
|
|
12363
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12364
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
12365
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12366
|
+
}, z.core.$strip>>;
|
|
12367
|
+
}, z.core.$strip>], "type">>>;
|
|
12368
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12369
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12370
|
+
createdAt: z.ZodString;
|
|
12371
|
+
updatedAt: z.ZodString;
|
|
12372
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
12373
|
+
status: z.ZodEnum<{
|
|
12374
|
+
error: "error";
|
|
12375
|
+
initializing: "initializing";
|
|
12376
|
+
idle: "idle";
|
|
12377
|
+
running: "running";
|
|
12378
|
+
closed: "closed";
|
|
12379
|
+
}>;
|
|
12380
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
12381
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
12382
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
12383
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
12384
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
12385
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
12386
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12387
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
12388
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12389
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12390
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
12391
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12392
|
+
finished: "finished";
|
|
12393
|
+
error: "error";
|
|
12394
|
+
permission: "permission";
|
|
12395
|
+
}>>>;
|
|
12396
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12397
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12398
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
12399
|
+
}, z.core.$strip>;
|
|
12400
|
+
}, z.core.$strip>;
|
|
12401
|
+
}, z.core.$strip>;
|
|
12402
|
+
export declare const HubExecutionAgentStreamSchema: z.ZodObject<{
|
|
12403
|
+
type: z.ZodLiteral<"hub.execution.agent.stream">;
|
|
12404
|
+
payload: z.ZodObject<{
|
|
12405
|
+
executionId: z.ZodString;
|
|
12406
|
+
agentId: z.ZodString;
|
|
12407
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12408
|
+
type: z.ZodLiteral<"thread_started">;
|
|
12409
|
+
sessionId: z.ZodString;
|
|
12410
|
+
provider: z.ZodString;
|
|
12411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12412
|
+
type: z.ZodLiteral<"turn_started">;
|
|
12413
|
+
provider: z.ZodString;
|
|
12414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12415
|
+
type: z.ZodLiteral<"turn_completed">;
|
|
12416
|
+
provider: z.ZodString;
|
|
12417
|
+
usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12419
|
+
type: z.ZodLiteral<"turn_failed">;
|
|
12420
|
+
provider: z.ZodString;
|
|
12421
|
+
error: z.ZodString;
|
|
12422
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12423
|
+
diagnostic: z.ZodOptional<z.ZodString>;
|
|
12424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12425
|
+
type: z.ZodLiteral<"turn_canceled">;
|
|
12426
|
+
provider: z.ZodString;
|
|
12427
|
+
reason: z.ZodString;
|
|
12428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12429
|
+
type: z.ZodLiteral<"timeline">;
|
|
12430
|
+
provider: z.ZodString;
|
|
12431
|
+
item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
|
|
12432
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12433
|
+
type: z.ZodLiteral<"permission_requested">;
|
|
12434
|
+
provider: z.ZodString;
|
|
12435
|
+
request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
|
|
12436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12437
|
+
type: z.ZodLiteral<"permission_resolved">;
|
|
12438
|
+
provider: z.ZodString;
|
|
12439
|
+
requestId: z.ZodString;
|
|
12440
|
+
resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
|
|
12441
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12442
|
+
type: z.ZodLiteral<"attention_required">;
|
|
12443
|
+
provider: z.ZodString;
|
|
12444
|
+
reason: z.ZodEnum<{
|
|
12445
|
+
finished: "finished";
|
|
12446
|
+
error: "error";
|
|
12447
|
+
permission: "permission";
|
|
12448
|
+
}>;
|
|
12449
|
+
timestamp: z.ZodString;
|
|
12450
|
+
shouldNotify: z.ZodBoolean;
|
|
12451
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
12452
|
+
title: z.ZodString;
|
|
12453
|
+
body: z.ZodString;
|
|
12454
|
+
data: z.ZodObject<{
|
|
12455
|
+
serverId: z.ZodString;
|
|
12456
|
+
agentId: z.ZodString;
|
|
12457
|
+
reason: z.ZodEnum<{
|
|
12458
|
+
finished: "finished";
|
|
12459
|
+
error: "error";
|
|
12460
|
+
permission: "permission";
|
|
12461
|
+
}>;
|
|
12462
|
+
}, z.core.$strip>;
|
|
12463
|
+
}, z.core.$strip>>;
|
|
12464
|
+
}, z.core.$strip>], "type">;
|
|
12465
|
+
}, z.core.$strip>;
|
|
12466
|
+
}, z.core.$strip>;
|
|
12467
|
+
export type HubExecutionAgentCreateResponse = z.infer<typeof HubExecutionAgentCreateResponseSchema>;
|
|
12468
|
+
export type HubExecutionAgentUpdate = z.infer<typeof HubExecutionAgentUpdateSchema>;
|
|
12469
|
+
export type HubExecutionAgentStream = z.infer<typeof HubExecutionAgentStreamSchema>;
|
|
12470
|
+
export declare const HubExecutionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12471
|
+
type: z.ZodLiteral<"hub.execution.agent.create.response">;
|
|
12472
|
+
payload: z.ZodObject<{
|
|
12473
|
+
requestId: z.ZodString;
|
|
12474
|
+
executionId: z.ZodString;
|
|
12475
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
12476
|
+
agent: z.ZodNullable<z.ZodObject<{
|
|
12477
|
+
id: z.ZodString;
|
|
12478
|
+
provider: z.ZodString;
|
|
12479
|
+
cwd: z.ZodString;
|
|
12480
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12481
|
+
model: z.ZodNullable<z.ZodString>;
|
|
12482
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12483
|
+
type: z.ZodLiteral<"toggle">;
|
|
12484
|
+
id: z.ZodString;
|
|
12485
|
+
label: z.ZodString;
|
|
12486
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12487
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12488
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12489
|
+
value: z.ZodBoolean;
|
|
12490
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12491
|
+
type: z.ZodLiteral<"select">;
|
|
12492
|
+
id: z.ZodString;
|
|
12493
|
+
label: z.ZodString;
|
|
12494
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12495
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12496
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12497
|
+
value: z.ZodNullable<z.ZodString>;
|
|
12498
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12499
|
+
id: z.ZodString;
|
|
12500
|
+
label: z.ZodString;
|
|
12501
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12502
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
12503
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12504
|
+
}, z.core.$strip>>;
|
|
12505
|
+
}, z.core.$strip>], "type">>>;
|
|
12506
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12507
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12508
|
+
createdAt: z.ZodString;
|
|
12509
|
+
updatedAt: z.ZodString;
|
|
12510
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
12511
|
+
status: z.ZodEnum<{
|
|
12512
|
+
error: "error";
|
|
12513
|
+
initializing: "initializing";
|
|
12514
|
+
idle: "idle";
|
|
12515
|
+
running: "running";
|
|
12516
|
+
closed: "closed";
|
|
12517
|
+
}>;
|
|
12518
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
12519
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
12520
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
12521
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
12522
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
12523
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
12524
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12525
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
12526
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12527
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12528
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
12529
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12530
|
+
finished: "finished";
|
|
12531
|
+
error: "error";
|
|
12532
|
+
permission: "permission";
|
|
12533
|
+
}>>>;
|
|
12534
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12535
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12536
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
12537
|
+
}, z.core.$strip>>;
|
|
12538
|
+
success: z.ZodBoolean;
|
|
12539
|
+
error: z.ZodNullable<z.ZodString>;
|
|
12540
|
+
}, z.core.$strip>;
|
|
12541
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12542
|
+
type: z.ZodLiteral<"hub.execution.agent.update">;
|
|
12543
|
+
payload: z.ZodObject<{
|
|
12544
|
+
executionId: z.ZodString;
|
|
12545
|
+
agentId: z.ZodString;
|
|
12546
|
+
agent: z.ZodObject<{
|
|
12547
|
+
id: z.ZodString;
|
|
12548
|
+
provider: z.ZodString;
|
|
12549
|
+
cwd: z.ZodString;
|
|
12550
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12551
|
+
model: z.ZodNullable<z.ZodString>;
|
|
12552
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12553
|
+
type: z.ZodLiteral<"toggle">;
|
|
12554
|
+
id: z.ZodString;
|
|
12555
|
+
label: z.ZodString;
|
|
12556
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12557
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12558
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12559
|
+
value: z.ZodBoolean;
|
|
12560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12561
|
+
type: z.ZodLiteral<"select">;
|
|
12562
|
+
id: z.ZodString;
|
|
12563
|
+
label: z.ZodString;
|
|
12564
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12565
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12566
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12567
|
+
value: z.ZodNullable<z.ZodString>;
|
|
12568
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12569
|
+
id: z.ZodString;
|
|
12570
|
+
label: z.ZodString;
|
|
12571
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12572
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
12573
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12574
|
+
}, z.core.$strip>>;
|
|
12575
|
+
}, z.core.$strip>], "type">>>;
|
|
12576
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12577
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12578
|
+
createdAt: z.ZodString;
|
|
12579
|
+
updatedAt: z.ZodString;
|
|
12580
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
12581
|
+
status: z.ZodEnum<{
|
|
12582
|
+
error: "error";
|
|
12583
|
+
initializing: "initializing";
|
|
12584
|
+
idle: "idle";
|
|
12585
|
+
running: "running";
|
|
12586
|
+
closed: "closed";
|
|
12587
|
+
}>;
|
|
12588
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
12589
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
12590
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
12591
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
12592
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
12593
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
12594
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12595
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
12596
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12597
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12598
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
12599
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12600
|
+
finished: "finished";
|
|
12601
|
+
error: "error";
|
|
12602
|
+
permission: "permission";
|
|
12603
|
+
}>>>;
|
|
12604
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12605
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12606
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
12607
|
+
}, z.core.$strip>;
|
|
12608
|
+
}, z.core.$strip>;
|
|
12609
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12610
|
+
type: z.ZodLiteral<"hub.execution.agent.stream">;
|
|
12611
|
+
payload: z.ZodObject<{
|
|
12612
|
+
executionId: z.ZodString;
|
|
12613
|
+
agentId: z.ZodString;
|
|
12614
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12615
|
+
type: z.ZodLiteral<"thread_started">;
|
|
12616
|
+
sessionId: z.ZodString;
|
|
12617
|
+
provider: z.ZodString;
|
|
12618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12619
|
+
type: z.ZodLiteral<"turn_started">;
|
|
12620
|
+
provider: z.ZodString;
|
|
12621
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12622
|
+
type: z.ZodLiteral<"turn_completed">;
|
|
12623
|
+
provider: z.ZodString;
|
|
12624
|
+
usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12625
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12626
|
+
type: z.ZodLiteral<"turn_failed">;
|
|
12627
|
+
provider: z.ZodString;
|
|
12628
|
+
error: z.ZodString;
|
|
12629
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12630
|
+
diagnostic: z.ZodOptional<z.ZodString>;
|
|
12631
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12632
|
+
type: z.ZodLiteral<"turn_canceled">;
|
|
12633
|
+
provider: z.ZodString;
|
|
12634
|
+
reason: z.ZodString;
|
|
12635
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12636
|
+
type: z.ZodLiteral<"timeline">;
|
|
12637
|
+
provider: z.ZodString;
|
|
12638
|
+
item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
|
|
12639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12640
|
+
type: z.ZodLiteral<"permission_requested">;
|
|
12641
|
+
provider: z.ZodString;
|
|
12642
|
+
request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
|
|
12643
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12644
|
+
type: z.ZodLiteral<"permission_resolved">;
|
|
12645
|
+
provider: z.ZodString;
|
|
12646
|
+
requestId: z.ZodString;
|
|
12647
|
+
resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
|
|
12648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12649
|
+
type: z.ZodLiteral<"attention_required">;
|
|
12650
|
+
provider: z.ZodString;
|
|
12651
|
+
reason: z.ZodEnum<{
|
|
12652
|
+
finished: "finished";
|
|
12653
|
+
error: "error";
|
|
12654
|
+
permission: "permission";
|
|
12655
|
+
}>;
|
|
12656
|
+
timestamp: z.ZodString;
|
|
12657
|
+
shouldNotify: z.ZodBoolean;
|
|
12658
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
12659
|
+
title: z.ZodString;
|
|
12660
|
+
body: z.ZodString;
|
|
12661
|
+
data: z.ZodObject<{
|
|
12662
|
+
serverId: z.ZodString;
|
|
12663
|
+
agentId: z.ZodString;
|
|
12664
|
+
reason: z.ZodEnum<{
|
|
12665
|
+
finished: "finished";
|
|
12666
|
+
error: "error";
|
|
12667
|
+
permission: "permission";
|
|
12668
|
+
}>;
|
|
12669
|
+
}, z.core.$strip>;
|
|
12670
|
+
}, z.core.$strip>>;
|
|
12671
|
+
}, z.core.$strip>], "type">;
|
|
12672
|
+
}, z.core.$strip>;
|
|
12673
|
+
}, z.core.$strip>], "type">;
|
|
12674
|
+
export type HubExecutionOutboundMessage = z.infer<typeof HubExecutionOutboundMessageSchema>;
|
|
12675
|
+
export declare class HubMessageCorrelationError extends Error {
|
|
12676
|
+
constructor(messageType: HubExecutionOutboundMessage["type"]);
|
|
12677
|
+
}
|
|
12678
|
+
export declare function parseHubExecutionOutboundMessage(value: unknown): HubExecutionOutboundMessage;
|
|
11836
12679
|
export type DaemonUpdateProgressMessage = z.infer<typeof DaemonUpdateProgressMessageSchema>;
|
|
11837
12680
|
export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12681
|
+
type: z.ZodLiteral<"hub.execution.agent.create.response">;
|
|
12682
|
+
payload: z.ZodObject<{
|
|
12683
|
+
requestId: z.ZodString;
|
|
12684
|
+
executionId: z.ZodString;
|
|
12685
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
12686
|
+
agent: z.ZodNullable<z.ZodObject<{
|
|
12687
|
+
id: z.ZodString;
|
|
12688
|
+
provider: z.ZodString;
|
|
12689
|
+
cwd: z.ZodString;
|
|
12690
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12691
|
+
model: z.ZodNullable<z.ZodString>;
|
|
12692
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12693
|
+
type: z.ZodLiteral<"toggle">;
|
|
12694
|
+
id: z.ZodString;
|
|
12695
|
+
label: z.ZodString;
|
|
12696
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12697
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12698
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12699
|
+
value: z.ZodBoolean;
|
|
12700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12701
|
+
type: z.ZodLiteral<"select">;
|
|
12702
|
+
id: z.ZodString;
|
|
12703
|
+
label: z.ZodString;
|
|
12704
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12705
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12706
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12707
|
+
value: z.ZodNullable<z.ZodString>;
|
|
12708
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12709
|
+
id: z.ZodString;
|
|
12710
|
+
label: z.ZodString;
|
|
12711
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12712
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
12713
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12714
|
+
}, z.core.$strip>>;
|
|
12715
|
+
}, z.core.$strip>], "type">>>;
|
|
12716
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12717
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12718
|
+
createdAt: z.ZodString;
|
|
12719
|
+
updatedAt: z.ZodString;
|
|
12720
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
12721
|
+
status: z.ZodEnum<{
|
|
12722
|
+
error: "error";
|
|
12723
|
+
initializing: "initializing";
|
|
12724
|
+
idle: "idle";
|
|
12725
|
+
running: "running";
|
|
12726
|
+
closed: "closed";
|
|
12727
|
+
}>;
|
|
12728
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
12729
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
12730
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
12731
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
12732
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
12733
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
12734
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12735
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
12736
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12737
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12738
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
12739
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12740
|
+
finished: "finished";
|
|
12741
|
+
error: "error";
|
|
12742
|
+
permission: "permission";
|
|
12743
|
+
}>>>;
|
|
12744
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12745
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12746
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
12747
|
+
}, z.core.$strip>>;
|
|
12748
|
+
success: z.ZodBoolean;
|
|
12749
|
+
error: z.ZodNullable<z.ZodString>;
|
|
12750
|
+
}, z.core.$strip>;
|
|
12751
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12752
|
+
type: z.ZodLiteral<"hub.execution.agent.update">;
|
|
12753
|
+
payload: z.ZodObject<{
|
|
12754
|
+
executionId: z.ZodString;
|
|
12755
|
+
agentId: z.ZodString;
|
|
12756
|
+
agent: z.ZodObject<{
|
|
12757
|
+
id: z.ZodString;
|
|
12758
|
+
provider: z.ZodString;
|
|
12759
|
+
cwd: z.ZodString;
|
|
12760
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
12761
|
+
model: z.ZodNullable<z.ZodString>;
|
|
12762
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12763
|
+
type: z.ZodLiteral<"toggle">;
|
|
12764
|
+
id: z.ZodString;
|
|
12765
|
+
label: z.ZodString;
|
|
12766
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12767
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12768
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12769
|
+
value: z.ZodBoolean;
|
|
12770
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12771
|
+
type: z.ZodLiteral<"select">;
|
|
12772
|
+
id: z.ZodString;
|
|
12773
|
+
label: z.ZodString;
|
|
12774
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12775
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
12776
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12777
|
+
value: z.ZodNullable<z.ZodString>;
|
|
12778
|
+
options: z.ZodArray<z.ZodObject<{
|
|
12779
|
+
id: z.ZodString;
|
|
12780
|
+
label: z.ZodString;
|
|
12781
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12782
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
12783
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12784
|
+
}, z.core.$strip>>;
|
|
12785
|
+
}, z.core.$strip>], "type">>>;
|
|
12786
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12787
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12788
|
+
createdAt: z.ZodString;
|
|
12789
|
+
updatedAt: z.ZodString;
|
|
12790
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
12791
|
+
status: z.ZodEnum<{
|
|
12792
|
+
error: "error";
|
|
12793
|
+
initializing: "initializing";
|
|
12794
|
+
idle: "idle";
|
|
12795
|
+
running: "running";
|
|
12796
|
+
closed: "closed";
|
|
12797
|
+
}>;
|
|
12798
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
12799
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
12800
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
12801
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
12802
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
12803
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
12804
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12805
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
12806
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12807
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12808
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
12809
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12810
|
+
finished: "finished";
|
|
12811
|
+
error: "error";
|
|
12812
|
+
permission: "permission";
|
|
12813
|
+
}>>>;
|
|
12814
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12815
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12816
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
12817
|
+
}, z.core.$strip>;
|
|
12818
|
+
}, z.core.$strip>;
|
|
12819
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12820
|
+
type: z.ZodLiteral<"hub.execution.agent.stream">;
|
|
12821
|
+
payload: z.ZodObject<{
|
|
12822
|
+
executionId: z.ZodString;
|
|
12823
|
+
agentId: z.ZodString;
|
|
12824
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12825
|
+
type: z.ZodLiteral<"thread_started">;
|
|
12826
|
+
sessionId: z.ZodString;
|
|
12827
|
+
provider: z.ZodString;
|
|
12828
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12829
|
+
type: z.ZodLiteral<"turn_started">;
|
|
12830
|
+
provider: z.ZodString;
|
|
12831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12832
|
+
type: z.ZodLiteral<"turn_completed">;
|
|
12833
|
+
provider: z.ZodString;
|
|
12834
|
+
usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
12835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12836
|
+
type: z.ZodLiteral<"turn_failed">;
|
|
12837
|
+
provider: z.ZodString;
|
|
12838
|
+
error: z.ZodString;
|
|
12839
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12840
|
+
diagnostic: z.ZodOptional<z.ZodString>;
|
|
12841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12842
|
+
type: z.ZodLiteral<"turn_canceled">;
|
|
12843
|
+
provider: z.ZodString;
|
|
12844
|
+
reason: z.ZodString;
|
|
12845
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12846
|
+
type: z.ZodLiteral<"timeline">;
|
|
12847
|
+
provider: z.ZodString;
|
|
12848
|
+
item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
|
|
12849
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12850
|
+
type: z.ZodLiteral<"permission_requested">;
|
|
12851
|
+
provider: z.ZodString;
|
|
12852
|
+
request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
|
|
12853
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12854
|
+
type: z.ZodLiteral<"permission_resolved">;
|
|
12855
|
+
provider: z.ZodString;
|
|
12856
|
+
requestId: z.ZodString;
|
|
12857
|
+
resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
|
|
12858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12859
|
+
type: z.ZodLiteral<"attention_required">;
|
|
12860
|
+
provider: z.ZodString;
|
|
12861
|
+
reason: z.ZodEnum<{
|
|
12862
|
+
finished: "finished";
|
|
12863
|
+
error: "error";
|
|
12864
|
+
permission: "permission";
|
|
12865
|
+
}>;
|
|
12866
|
+
timestamp: z.ZodString;
|
|
12867
|
+
shouldNotify: z.ZodBoolean;
|
|
12868
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
12869
|
+
title: z.ZodString;
|
|
12870
|
+
body: z.ZodString;
|
|
12871
|
+
data: z.ZodObject<{
|
|
12872
|
+
serverId: z.ZodString;
|
|
12873
|
+
agentId: z.ZodString;
|
|
12874
|
+
reason: z.ZodEnum<{
|
|
12875
|
+
finished: "finished";
|
|
12876
|
+
error: "error";
|
|
12877
|
+
permission: "permission";
|
|
12878
|
+
}>;
|
|
12879
|
+
}, z.core.$strip>;
|
|
12880
|
+
}, z.core.$strip>>;
|
|
12881
|
+
}, z.core.$strip>], "type">;
|
|
12882
|
+
}, z.core.$strip>;
|
|
12883
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11838
12884
|
type: z.ZodLiteral<"browser.automation.execute.request">;
|
|
11839
12885
|
requestId: z.ZodString;
|
|
11840
12886
|
agentId: z.ZodOptional<z.ZodString>;
|
|
@@ -12686,6 +13732,25 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
12686
13732
|
}, z.core.$strip>>;
|
|
12687
13733
|
removedProjectId: z.ZodOptional<z.ZodString>;
|
|
12688
13734
|
}, z.core.$strip>], "kind">;
|
|
13735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13736
|
+
type: z.ZodLiteral<"project.update">;
|
|
13737
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13738
|
+
kind: z.ZodLiteral<"upsert">;
|
|
13739
|
+
project: z.ZodObject<{
|
|
13740
|
+
projectId: z.ZodString;
|
|
13741
|
+
projectDisplayName: z.ZodString;
|
|
13742
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13743
|
+
projectRootPath: z.ZodString;
|
|
13744
|
+
projectKind: z.ZodEnum<{
|
|
13745
|
+
git: "git";
|
|
13746
|
+
directory: "directory";
|
|
13747
|
+
non_git: "non_git";
|
|
13748
|
+
}>;
|
|
13749
|
+
}, z.core.$strip>;
|
|
13750
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13751
|
+
kind: z.ZodLiteral<"remove">;
|
|
13752
|
+
projectId: z.ZodString;
|
|
13753
|
+
}, z.core.$strip>], "kind">;
|
|
12689
13754
|
}, z.core.$strip>, z.ZodObject<{
|
|
12690
13755
|
type: z.ZodLiteral<"script_status_update">;
|
|
12691
13756
|
payload: z.ZodObject<{
|
|
@@ -14599,6 +15664,37 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
14599
15664
|
parentAgentId: z.ZodString;
|
|
14600
15665
|
subagentId: z.ZodString;
|
|
14601
15666
|
}, z.core.$strip>], "kind">;
|
|
15667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15668
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
|
|
15669
|
+
payload: z.ZodObject<{
|
|
15670
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
15671
|
+
requestId: z.ZodString;
|
|
15672
|
+
}, z.core.$strip>;
|
|
15673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15674
|
+
type: z.ZodLiteral<"agent_attention_required">;
|
|
15675
|
+
payload: z.ZodObject<{
|
|
15676
|
+
agentId: z.ZodString;
|
|
15677
|
+
reason: z.ZodEnum<{
|
|
15678
|
+
finished: "finished";
|
|
15679
|
+
error: "error";
|
|
15680
|
+
permission: "permission";
|
|
15681
|
+
}>;
|
|
15682
|
+
timestamp: z.ZodString;
|
|
15683
|
+
shouldNotify: z.ZodBoolean;
|
|
15684
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
15685
|
+
title: z.ZodString;
|
|
15686
|
+
body: z.ZodString;
|
|
15687
|
+
data: z.ZodObject<{
|
|
15688
|
+
serverId: z.ZodString;
|
|
15689
|
+
agentId: z.ZodString;
|
|
15690
|
+
reason: z.ZodEnum<{
|
|
15691
|
+
finished: "finished";
|
|
15692
|
+
error: "error";
|
|
15693
|
+
permission: "permission";
|
|
15694
|
+
}>;
|
|
15695
|
+
}, z.core.$strip>;
|
|
15696
|
+
}, z.core.$strip>>;
|
|
15697
|
+
}, z.core.$strip>;
|
|
14602
15698
|
}, z.core.$strip>, z.ZodObject<{
|
|
14603
15699
|
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
14604
15700
|
payload: z.ZodObject<{
|
|
@@ -15252,6 +16348,67 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
15252
16348
|
qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15253
16349
|
relayEnabled: z.ZodBoolean;
|
|
15254
16350
|
}, z.core.$loose>;
|
|
16351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16352
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.response">;
|
|
16353
|
+
payload: z.ZodObject<{
|
|
16354
|
+
requestId: z.ZodString;
|
|
16355
|
+
status: z.ZodObject<{
|
|
16356
|
+
state: z.ZodEnum<{
|
|
16357
|
+
not_connected: "not_connected";
|
|
16358
|
+
connecting: "connecting";
|
|
16359
|
+
connected: "connected";
|
|
16360
|
+
reconnecting: "reconnecting";
|
|
16361
|
+
disconnecting: "disconnecting";
|
|
16362
|
+
revoked: "revoked";
|
|
16363
|
+
}>;
|
|
16364
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
16365
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
16366
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
16367
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
16368
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
16369
|
+
}, z.core.$strip>;
|
|
16370
|
+
}, z.core.$strip>;
|
|
16371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16372
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
|
|
16373
|
+
payload: z.ZodObject<{
|
|
16374
|
+
requestId: z.ZodString;
|
|
16375
|
+
status: z.ZodObject<{
|
|
16376
|
+
state: z.ZodEnum<{
|
|
16377
|
+
not_connected: "not_connected";
|
|
16378
|
+
connecting: "connecting";
|
|
16379
|
+
connected: "connected";
|
|
16380
|
+
reconnecting: "reconnecting";
|
|
16381
|
+
disconnecting: "disconnecting";
|
|
16382
|
+
revoked: "revoked";
|
|
16383
|
+
}>;
|
|
16384
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
16385
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
16386
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
16387
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
16388
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
16389
|
+
}, z.core.$strip>;
|
|
16390
|
+
}, z.core.$strip>;
|
|
16391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16392
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
|
|
16393
|
+
payload: z.ZodObject<{
|
|
16394
|
+
requestId: z.ZodString;
|
|
16395
|
+
status: z.ZodObject<{
|
|
16396
|
+
state: z.ZodEnum<{
|
|
16397
|
+
not_connected: "not_connected";
|
|
16398
|
+
connecting: "connecting";
|
|
16399
|
+
connected: "connected";
|
|
16400
|
+
reconnecting: "reconnecting";
|
|
16401
|
+
disconnecting: "disconnecting";
|
|
16402
|
+
revoked: "revoked";
|
|
16403
|
+
}>;
|
|
16404
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
16405
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
16406
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
16407
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
16408
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
16409
|
+
}, z.core.$strip>;
|
|
16410
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
16411
|
+
}, z.core.$strip>;
|
|
15255
16412
|
}, z.core.$strip>, z.ZodObject<{
|
|
15256
16413
|
type: z.ZodLiteral<"diagnostics.response">;
|
|
15257
16414
|
payload: z.ZodObject<{
|
|
@@ -15347,6 +16504,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
15347
16504
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15348
16505
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15349
16506
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
16507
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
16508
|
+
range: z.ZodOptional<z.ZodString>;
|
|
16509
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
16510
|
+
}, z.core.$strict>>;
|
|
15350
16511
|
}, z.core.$loose>>;
|
|
15351
16512
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15352
16513
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -15401,6 +16562,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
15401
16562
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15402
16563
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15403
16564
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
16565
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
16566
|
+
range: z.ZodOptional<z.ZodString>;
|
|
16567
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
16568
|
+
}, z.core.$strict>>;
|
|
15404
16569
|
}, z.core.$loose>>;
|
|
15405
16570
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15406
16571
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -17153,10 +18318,95 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
17153
18318
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
17154
18319
|
size: z.ZodNumber;
|
|
17155
18320
|
modifiedAt: z.ZodString;
|
|
18321
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
17156
18322
|
}, z.core.$strip>>;
|
|
17157
18323
|
error: z.ZodNullable<z.ZodString>;
|
|
17158
18324
|
requestId: z.ZodString;
|
|
17159
18325
|
}, z.core.$strip>;
|
|
18326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18327
|
+
type: z.ZodLiteral<"fs.file.subscribe.response">;
|
|
18328
|
+
payload: z.ZodObject<{
|
|
18329
|
+
subscriptionId: z.ZodString;
|
|
18330
|
+
initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18331
|
+
status: z.ZodLiteral<"ready">;
|
|
18332
|
+
cwd: z.ZodString;
|
|
18333
|
+
path: z.ZodString;
|
|
18334
|
+
size: z.ZodNumber;
|
|
18335
|
+
modifiedAt: z.ZodString;
|
|
18336
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
18337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18338
|
+
status: z.ZodLiteral<"missing">;
|
|
18339
|
+
cwd: z.ZodString;
|
|
18340
|
+
path: z.ZodString;
|
|
18341
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18342
|
+
status: z.ZodLiteral<"error">;
|
|
18343
|
+
cwd: z.ZodString;
|
|
18344
|
+
path: z.ZodString;
|
|
18345
|
+
error: z.ZodString;
|
|
18346
|
+
}, z.core.$strip>], "status">;
|
|
18347
|
+
requestId: z.ZodString;
|
|
18348
|
+
}, z.core.$strip>;
|
|
18349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18350
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.response">;
|
|
18351
|
+
payload: z.ZodObject<{
|
|
18352
|
+
subscriptionId: z.ZodString;
|
|
18353
|
+
requestId: z.ZodString;
|
|
18354
|
+
}, z.core.$strip>;
|
|
18355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18356
|
+
type: z.ZodLiteral<"fs.file.write.response">;
|
|
18357
|
+
payload: z.ZodObject<{
|
|
18358
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18359
|
+
status: z.ZodLiteral<"written">;
|
|
18360
|
+
modifiedAt: z.ZodString;
|
|
18361
|
+
size: z.ZodNumber;
|
|
18362
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
18363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18364
|
+
status: z.ZodLiteral<"conflict">;
|
|
18365
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18366
|
+
status: z.ZodLiteral<"ready">;
|
|
18367
|
+
cwd: z.ZodString;
|
|
18368
|
+
path: z.ZodString;
|
|
18369
|
+
size: z.ZodNumber;
|
|
18370
|
+
modifiedAt: z.ZodString;
|
|
18371
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
18372
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18373
|
+
status: z.ZodLiteral<"missing">;
|
|
18374
|
+
cwd: z.ZodString;
|
|
18375
|
+
path: z.ZodString;
|
|
18376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18377
|
+
status: z.ZodLiteral<"error">;
|
|
18378
|
+
cwd: z.ZodString;
|
|
18379
|
+
path: z.ZodString;
|
|
18380
|
+
error: z.ZodString;
|
|
18381
|
+
}, z.core.$strip>], "status">;
|
|
18382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18383
|
+
status: z.ZodLiteral<"error">;
|
|
18384
|
+
error: z.ZodString;
|
|
18385
|
+
}, z.core.$strip>], "status">;
|
|
18386
|
+
requestId: z.ZodString;
|
|
18387
|
+
}, z.core.$strip>;
|
|
18388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18389
|
+
type: z.ZodLiteral<"fs.file.update">;
|
|
18390
|
+
payload: z.ZodObject<{
|
|
18391
|
+
subscriptionId: z.ZodString;
|
|
18392
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18393
|
+
status: z.ZodLiteral<"ready">;
|
|
18394
|
+
cwd: z.ZodString;
|
|
18395
|
+
path: z.ZodString;
|
|
18396
|
+
size: z.ZodNumber;
|
|
18397
|
+
modifiedAt: z.ZodString;
|
|
18398
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
18399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18400
|
+
status: z.ZodLiteral<"missing">;
|
|
18401
|
+
cwd: z.ZodString;
|
|
18402
|
+
path: z.ZodString;
|
|
18403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18404
|
+
status: z.ZodLiteral<"error">;
|
|
18405
|
+
cwd: z.ZodString;
|
|
18406
|
+
path: z.ZodString;
|
|
18407
|
+
error: z.ZodString;
|
|
18408
|
+
}, z.core.$strip>], "status">;
|
|
18409
|
+
}, z.core.$strip>;
|
|
17160
18410
|
}, z.core.$strip>, z.ZodObject<{
|
|
17161
18411
|
type: z.ZodLiteral<"project_icon_response">;
|
|
17162
18412
|
payload: z.ZodObject<{
|
|
@@ -18822,6 +20072,15 @@ export type ArchiveWorkspaceRequest = z.infer<typeof ArchiveWorkspaceRequestSche
|
|
|
18822
20072
|
export type WorkspaceClearAttentionRequest = z.infer<typeof WorkspaceClearAttentionRequestSchema>;
|
|
18823
20073
|
export type FileExplorerRequest = z.infer<typeof FileExplorerRequestSchema>;
|
|
18824
20074
|
export type FileExplorerResponse = z.infer<typeof FileExplorerResponseSchema>;
|
|
20075
|
+
export type FileVersion = z.infer<typeof FileVersionSchema>;
|
|
20076
|
+
export type FileSubscribeRequest = z.infer<typeof FileSubscribeRequestSchema>;
|
|
20077
|
+
export type FileSubscribeResponse = z.infer<typeof FileSubscribeResponseSchema>;
|
|
20078
|
+
export type FileUnsubscribeRequest = z.infer<typeof FileUnsubscribeRequestSchema>;
|
|
20079
|
+
export type FileUnsubscribeResponse = z.infer<typeof FileUnsubscribeResponseSchema>;
|
|
20080
|
+
export type FileWriteRequest = z.infer<typeof FileWriteRequestSchema>;
|
|
20081
|
+
export type FileWriteResponse = z.infer<typeof FileWriteResponseSchema>;
|
|
20082
|
+
export type FileWriteResult = z.infer<typeof FileWriteResultSchema>;
|
|
20083
|
+
export type FileUpdate = z.infer<typeof FileUpdateSchema>;
|
|
18825
20084
|
export type ProjectIconRequest = z.infer<typeof ProjectIconRequestSchema>;
|
|
18826
20085
|
export type ProjectIconResponse = z.infer<typeof ProjectIconResponseSchema>;
|
|
18827
20086
|
export type ProjectIcon = z.infer<typeof ProjectIconSchema>;
|
|
@@ -18884,9 +20143,11 @@ export declare const WSHelloMessageSchema: z.ZodObject<{
|
|
|
18884
20143
|
voice: z.ZodOptional<z.ZodBoolean>;
|
|
18885
20144
|
pushNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
18886
20145
|
reasoning_merge_enum: z.ZodOptional<z.ZodBoolean>;
|
|
20146
|
+
selective_agent_timeline: z.ZodOptional<z.ZodBoolean>;
|
|
18887
20147
|
custom_mode_icons: z.ZodOptional<z.ZodBoolean>;
|
|
18888
20148
|
terminal_reflowable_snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
18889
20149
|
provider_subagents: z.ZodOptional<z.ZodBoolean>;
|
|
20150
|
+
project_updates: z.ZodOptional<z.ZodBoolean>;
|
|
18890
20151
|
browser_host: z.ZodOptional<z.ZodObject<{
|
|
18891
20152
|
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
20153
|
hostKind: z.ZodDefault<z.ZodString>;
|
|
@@ -18900,6 +20161,31 @@ export declare const WSRecordingStateMessageSchema: z.ZodObject<{
|
|
|
18900
20161
|
export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
18901
20162
|
type: z.ZodLiteral<"session">;
|
|
18902
20163
|
message: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20164
|
+
type: z.ZodLiteral<"hub.execution.agent.create.request">;
|
|
20165
|
+
requestId: z.ZodString;
|
|
20166
|
+
executionId: z.ZodString;
|
|
20167
|
+
provider: z.ZodString;
|
|
20168
|
+
cwd: z.ZodString;
|
|
20169
|
+
prompt: z.ZodString;
|
|
20170
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
20171
|
+
model: z.ZodOptional<z.ZodString>;
|
|
20172
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
20173
|
+
thinkingOptionId: z.ZodOptional<z.ZodString>;
|
|
20174
|
+
featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20175
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20176
|
+
worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20177
|
+
mode: z.ZodLiteral<"branch-off">;
|
|
20178
|
+
newBranch: z.ZodString;
|
|
20179
|
+
base: z.ZodOptional<z.ZodString>;
|
|
20180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20181
|
+
mode: z.ZodLiteral<"checkout-branch">;
|
|
20182
|
+
branch: z.ZodString;
|
|
20183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20184
|
+
mode: z.ZodLiteral<"checkout-pr">;
|
|
20185
|
+
prNumber: z.ZodNumber;
|
|
20186
|
+
}, z.core.$strip>], "mode">>;
|
|
20187
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
20188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18903
20189
|
type: z.ZodLiteral<"browser.automation.execute.response">;
|
|
18904
20190
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18905
20191
|
requestId: z.ZodString;
|
|
@@ -19374,6 +20660,18 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
19374
20660
|
}, z.core.$strip>, z.ZodObject<{
|
|
19375
20661
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
19376
20662
|
requestId: z.ZodString;
|
|
20663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20664
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.request">;
|
|
20665
|
+
requestId: z.ZodString;
|
|
20666
|
+
hubUrl: z.ZodString;
|
|
20667
|
+
token: z.ZodString;
|
|
20668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20669
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
|
|
20670
|
+
requestId: z.ZodString;
|
|
20671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20672
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
|
|
20673
|
+
requestId: z.ZodString;
|
|
20674
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
19377
20675
|
}, z.core.$strip>, z.ZodObject<{
|
|
19378
20676
|
type: z.ZodLiteral<"diagnostics.request">;
|
|
19379
20677
|
requestId: z.ZodString;
|
|
@@ -19431,6 +20729,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
19431
20729
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
19432
20730
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
19433
20731
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
20732
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
20733
|
+
range: z.ZodOptional<z.ZodString>;
|
|
20734
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
20735
|
+
}, z.core.$strict>>;
|
|
19434
20736
|
}, z.core.$loose>>;
|
|
19435
20737
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
19436
20738
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -19512,6 +20814,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
19512
20814
|
}, z.core.$strip>;
|
|
19513
20815
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19514
20816
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
20817
|
+
callerAgentId: z.ZodOptional<z.ZodString>;
|
|
19515
20818
|
worktreeName: z.ZodOptional<z.ZodString>;
|
|
19516
20819
|
initialPrompt: z.ZodOptional<z.ZodString>;
|
|
19517
20820
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
@@ -19610,7 +20913,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
19610
20913
|
}>>;
|
|
19611
20914
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
19612
20915
|
kind: z.ZodLiteral<"change_request">;
|
|
19613
|
-
forge: z.
|
|
20916
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
19614
20917
|
number: z.ZodNumber;
|
|
19615
20918
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
19616
20919
|
}, z.core.$strip>>;
|
|
@@ -19774,6 +21077,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
19774
21077
|
seq: z.ZodNumber;
|
|
19775
21078
|
}, z.core.$strip>>;
|
|
19776
21079
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
21080
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21081
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
|
|
21082
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
21083
|
+
requestId: z.ZodString;
|
|
19777
21084
|
}, z.core.$strip>, z.ZodObject<{
|
|
19778
21085
|
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
19779
21086
|
agentId: z.ZodString;
|
|
@@ -20213,7 +21520,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
20213
21520
|
}>>;
|
|
20214
21521
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
20215
21522
|
kind: z.ZodLiteral<"change_request">;
|
|
20216
|
-
forge: z.
|
|
21523
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
20217
21524
|
number: z.ZodNumber;
|
|
20218
21525
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
20219
21526
|
}, z.core.$strip>>;
|
|
@@ -20365,9 +21672,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
20365
21672
|
}>>;
|
|
20366
21673
|
refName: z.ZodOptional<z.ZodString>;
|
|
20367
21674
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
21675
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
20368
21676
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
20369
21677
|
kind: z.ZodLiteral<"change_request">;
|
|
20370
|
-
forge: z.
|
|
21678
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
20371
21679
|
number: z.ZodNumber;
|
|
20372
21680
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
20373
21681
|
}, z.core.$strip>>;
|
|
@@ -20388,6 +21696,24 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
20388
21696
|
}>;
|
|
20389
21697
|
requestId: z.ZodString;
|
|
20390
21698
|
acceptBinary: z.ZodOptional<z.ZodBoolean>;
|
|
21699
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21700
|
+
type: z.ZodLiteral<"fs.file.subscribe.request">;
|
|
21701
|
+
cwd: z.ZodString;
|
|
21702
|
+
path: z.ZodString;
|
|
21703
|
+
subscriptionId: z.ZodString;
|
|
21704
|
+
requestId: z.ZodString;
|
|
21705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21706
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.request">;
|
|
21707
|
+
subscriptionId: z.ZodString;
|
|
21708
|
+
requestId: z.ZodString;
|
|
21709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21710
|
+
type: z.ZodLiteral<"fs.file.write.request">;
|
|
21711
|
+
cwd: z.ZodString;
|
|
21712
|
+
path: z.ZodString;
|
|
21713
|
+
content: z.ZodString;
|
|
21714
|
+
expectedModifiedAt: z.ZodString;
|
|
21715
|
+
expectedRevision: z.ZodOptional<z.ZodString>;
|
|
21716
|
+
requestId: z.ZodString;
|
|
20391
21717
|
}, z.core.$strip>, z.ZodObject<{
|
|
20392
21718
|
type: z.ZodLiteral<"project_icon_request">;
|
|
20393
21719
|
cwd: z.ZodString;
|
|
@@ -20706,6 +22032,209 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
20706
22032
|
export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
20707
22033
|
type: z.ZodLiteral<"session">;
|
|
20708
22034
|
message: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22035
|
+
type: z.ZodLiteral<"hub.execution.agent.create.response">;
|
|
22036
|
+
payload: z.ZodObject<{
|
|
22037
|
+
requestId: z.ZodString;
|
|
22038
|
+
executionId: z.ZodString;
|
|
22039
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
22040
|
+
agent: z.ZodNullable<z.ZodObject<{
|
|
22041
|
+
id: z.ZodString;
|
|
22042
|
+
provider: z.ZodString;
|
|
22043
|
+
cwd: z.ZodString;
|
|
22044
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
22045
|
+
model: z.ZodNullable<z.ZodString>;
|
|
22046
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22047
|
+
type: z.ZodLiteral<"toggle">;
|
|
22048
|
+
id: z.ZodString;
|
|
22049
|
+
label: z.ZodString;
|
|
22050
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22051
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
22052
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
22053
|
+
value: z.ZodBoolean;
|
|
22054
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22055
|
+
type: z.ZodLiteral<"select">;
|
|
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.ZodNullable<z.ZodString>;
|
|
22062
|
+
options: z.ZodArray<z.ZodObject<{
|
|
22063
|
+
id: z.ZodString;
|
|
22064
|
+
label: z.ZodString;
|
|
22065
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22066
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
22067
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22068
|
+
}, z.core.$strip>>;
|
|
22069
|
+
}, z.core.$strip>], "type">>>;
|
|
22070
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22071
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22072
|
+
createdAt: z.ZodString;
|
|
22073
|
+
updatedAt: z.ZodString;
|
|
22074
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
22075
|
+
status: z.ZodEnum<{
|
|
22076
|
+
error: "error";
|
|
22077
|
+
initializing: "initializing";
|
|
22078
|
+
idle: "idle";
|
|
22079
|
+
running: "running";
|
|
22080
|
+
closed: "closed";
|
|
22081
|
+
}>;
|
|
22082
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
22083
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
22084
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
22085
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
22086
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
22087
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
22088
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
22089
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
22090
|
+
title: z.ZodNullable<z.ZodString>;
|
|
22091
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22092
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
22093
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
22094
|
+
finished: "finished";
|
|
22095
|
+
error: "error";
|
|
22096
|
+
permission: "permission";
|
|
22097
|
+
}>>>;
|
|
22098
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22099
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22100
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
22101
|
+
}, z.core.$strip>>;
|
|
22102
|
+
success: z.ZodBoolean;
|
|
22103
|
+
error: z.ZodNullable<z.ZodString>;
|
|
22104
|
+
}, z.core.$strip>;
|
|
22105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22106
|
+
type: z.ZodLiteral<"hub.execution.agent.update">;
|
|
22107
|
+
payload: z.ZodObject<{
|
|
22108
|
+
executionId: z.ZodString;
|
|
22109
|
+
agentId: z.ZodString;
|
|
22110
|
+
agent: z.ZodObject<{
|
|
22111
|
+
id: z.ZodString;
|
|
22112
|
+
provider: z.ZodString;
|
|
22113
|
+
cwd: z.ZodString;
|
|
22114
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
22115
|
+
model: z.ZodNullable<z.ZodString>;
|
|
22116
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22117
|
+
type: z.ZodLiteral<"toggle">;
|
|
22118
|
+
id: z.ZodString;
|
|
22119
|
+
label: z.ZodString;
|
|
22120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22121
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
22122
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
22123
|
+
value: z.ZodBoolean;
|
|
22124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22125
|
+
type: z.ZodLiteral<"select">;
|
|
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.ZodNullable<z.ZodString>;
|
|
22132
|
+
options: z.ZodArray<z.ZodObject<{
|
|
22133
|
+
id: z.ZodString;
|
|
22134
|
+
label: z.ZodString;
|
|
22135
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22136
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
22137
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22138
|
+
}, z.core.$strip>>;
|
|
22139
|
+
}, z.core.$strip>], "type">>>;
|
|
22140
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22141
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22142
|
+
createdAt: z.ZodString;
|
|
22143
|
+
updatedAt: z.ZodString;
|
|
22144
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
22145
|
+
status: z.ZodEnum<{
|
|
22146
|
+
error: "error";
|
|
22147
|
+
initializing: "initializing";
|
|
22148
|
+
idle: "idle";
|
|
22149
|
+
running: "running";
|
|
22150
|
+
closed: "closed";
|
|
22151
|
+
}>;
|
|
22152
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
22153
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
22154
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
22155
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
22156
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
22157
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
22158
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
22159
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
22160
|
+
title: z.ZodNullable<z.ZodString>;
|
|
22161
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22162
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
22163
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
22164
|
+
finished: "finished";
|
|
22165
|
+
error: "error";
|
|
22166
|
+
permission: "permission";
|
|
22167
|
+
}>>>;
|
|
22168
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22169
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22170
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
22171
|
+
}, z.core.$strip>;
|
|
22172
|
+
}, z.core.$strip>;
|
|
22173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22174
|
+
type: z.ZodLiteral<"hub.execution.agent.stream">;
|
|
22175
|
+
payload: z.ZodObject<{
|
|
22176
|
+
executionId: z.ZodString;
|
|
22177
|
+
agentId: z.ZodString;
|
|
22178
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22179
|
+
type: z.ZodLiteral<"thread_started">;
|
|
22180
|
+
sessionId: z.ZodString;
|
|
22181
|
+
provider: z.ZodString;
|
|
22182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22183
|
+
type: z.ZodLiteral<"turn_started">;
|
|
22184
|
+
provider: z.ZodString;
|
|
22185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22186
|
+
type: z.ZodLiteral<"turn_completed">;
|
|
22187
|
+
provider: z.ZodString;
|
|
22188
|
+
usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
22189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22190
|
+
type: z.ZodLiteral<"turn_failed">;
|
|
22191
|
+
provider: z.ZodString;
|
|
22192
|
+
error: z.ZodString;
|
|
22193
|
+
code: z.ZodOptional<z.ZodString>;
|
|
22194
|
+
diagnostic: z.ZodOptional<z.ZodString>;
|
|
22195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22196
|
+
type: z.ZodLiteral<"turn_canceled">;
|
|
22197
|
+
provider: z.ZodString;
|
|
22198
|
+
reason: z.ZodString;
|
|
22199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22200
|
+
type: z.ZodLiteral<"timeline">;
|
|
22201
|
+
provider: z.ZodString;
|
|
22202
|
+
item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
|
|
22203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22204
|
+
type: z.ZodLiteral<"permission_requested">;
|
|
22205
|
+
provider: z.ZodString;
|
|
22206
|
+
request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
|
|
22207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22208
|
+
type: z.ZodLiteral<"permission_resolved">;
|
|
22209
|
+
provider: z.ZodString;
|
|
22210
|
+
requestId: z.ZodString;
|
|
22211
|
+
resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
|
|
22212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22213
|
+
type: z.ZodLiteral<"attention_required">;
|
|
22214
|
+
provider: z.ZodString;
|
|
22215
|
+
reason: z.ZodEnum<{
|
|
22216
|
+
finished: "finished";
|
|
22217
|
+
error: "error";
|
|
22218
|
+
permission: "permission";
|
|
22219
|
+
}>;
|
|
22220
|
+
timestamp: z.ZodString;
|
|
22221
|
+
shouldNotify: z.ZodBoolean;
|
|
22222
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
22223
|
+
title: z.ZodString;
|
|
22224
|
+
body: z.ZodString;
|
|
22225
|
+
data: z.ZodObject<{
|
|
22226
|
+
serverId: z.ZodString;
|
|
22227
|
+
agentId: z.ZodString;
|
|
22228
|
+
reason: z.ZodEnum<{
|
|
22229
|
+
finished: "finished";
|
|
22230
|
+
error: "error";
|
|
22231
|
+
permission: "permission";
|
|
22232
|
+
}>;
|
|
22233
|
+
}, z.core.$strip>;
|
|
22234
|
+
}, z.core.$strip>>;
|
|
22235
|
+
}, z.core.$strip>], "type">;
|
|
22236
|
+
}, z.core.$strip>;
|
|
22237
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20709
22238
|
type: z.ZodLiteral<"browser.automation.execute.request">;
|
|
20710
22239
|
requestId: z.ZodString;
|
|
20711
22240
|
agentId: z.ZodOptional<z.ZodString>;
|
|
@@ -21557,6 +23086,25 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
21557
23086
|
}, z.core.$strip>>;
|
|
21558
23087
|
removedProjectId: z.ZodOptional<z.ZodString>;
|
|
21559
23088
|
}, z.core.$strip>], "kind">;
|
|
23089
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23090
|
+
type: z.ZodLiteral<"project.update">;
|
|
23091
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23092
|
+
kind: z.ZodLiteral<"upsert">;
|
|
23093
|
+
project: z.ZodObject<{
|
|
23094
|
+
projectId: z.ZodString;
|
|
23095
|
+
projectDisplayName: z.ZodString;
|
|
23096
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23097
|
+
projectRootPath: z.ZodString;
|
|
23098
|
+
projectKind: z.ZodEnum<{
|
|
23099
|
+
git: "git";
|
|
23100
|
+
directory: "directory";
|
|
23101
|
+
non_git: "non_git";
|
|
23102
|
+
}>;
|
|
23103
|
+
}, z.core.$strip>;
|
|
23104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23105
|
+
kind: z.ZodLiteral<"remove">;
|
|
23106
|
+
projectId: z.ZodString;
|
|
23107
|
+
}, z.core.$strip>], "kind">;
|
|
21560
23108
|
}, z.core.$strip>, z.ZodObject<{
|
|
21561
23109
|
type: z.ZodLiteral<"script_status_update">;
|
|
21562
23110
|
payload: z.ZodObject<{
|
|
@@ -23470,6 +25018,37 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
23470
25018
|
parentAgentId: z.ZodString;
|
|
23471
25019
|
subagentId: z.ZodString;
|
|
23472
25020
|
}, z.core.$strip>], "kind">;
|
|
25021
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25022
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
|
|
25023
|
+
payload: z.ZodObject<{
|
|
25024
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
25025
|
+
requestId: z.ZodString;
|
|
25026
|
+
}, z.core.$strip>;
|
|
25027
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25028
|
+
type: z.ZodLiteral<"agent_attention_required">;
|
|
25029
|
+
payload: z.ZodObject<{
|
|
25030
|
+
agentId: z.ZodString;
|
|
25031
|
+
reason: z.ZodEnum<{
|
|
25032
|
+
finished: "finished";
|
|
25033
|
+
error: "error";
|
|
25034
|
+
permission: "permission";
|
|
25035
|
+
}>;
|
|
25036
|
+
timestamp: z.ZodString;
|
|
25037
|
+
shouldNotify: z.ZodBoolean;
|
|
25038
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
25039
|
+
title: z.ZodString;
|
|
25040
|
+
body: z.ZodString;
|
|
25041
|
+
data: z.ZodObject<{
|
|
25042
|
+
serverId: z.ZodString;
|
|
25043
|
+
agentId: z.ZodString;
|
|
25044
|
+
reason: z.ZodEnum<{
|
|
25045
|
+
finished: "finished";
|
|
25046
|
+
error: "error";
|
|
25047
|
+
permission: "permission";
|
|
25048
|
+
}>;
|
|
25049
|
+
}, z.core.$strip>;
|
|
25050
|
+
}, z.core.$strip>>;
|
|
25051
|
+
}, z.core.$strip>;
|
|
23473
25052
|
}, z.core.$strip>, z.ZodObject<{
|
|
23474
25053
|
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
23475
25054
|
payload: z.ZodObject<{
|
|
@@ -24123,6 +25702,67 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
24123
25702
|
qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24124
25703
|
relayEnabled: z.ZodBoolean;
|
|
24125
25704
|
}, z.core.$loose>;
|
|
25705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25706
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.response">;
|
|
25707
|
+
payload: z.ZodObject<{
|
|
25708
|
+
requestId: z.ZodString;
|
|
25709
|
+
status: z.ZodObject<{
|
|
25710
|
+
state: z.ZodEnum<{
|
|
25711
|
+
not_connected: "not_connected";
|
|
25712
|
+
connecting: "connecting";
|
|
25713
|
+
connected: "connected";
|
|
25714
|
+
reconnecting: "reconnecting";
|
|
25715
|
+
disconnecting: "disconnecting";
|
|
25716
|
+
revoked: "revoked";
|
|
25717
|
+
}>;
|
|
25718
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
25719
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
25720
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
25721
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
25722
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
25723
|
+
}, z.core.$strip>;
|
|
25724
|
+
}, z.core.$strip>;
|
|
25725
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25726
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
|
|
25727
|
+
payload: z.ZodObject<{
|
|
25728
|
+
requestId: z.ZodString;
|
|
25729
|
+
status: z.ZodObject<{
|
|
25730
|
+
state: z.ZodEnum<{
|
|
25731
|
+
not_connected: "not_connected";
|
|
25732
|
+
connecting: "connecting";
|
|
25733
|
+
connected: "connected";
|
|
25734
|
+
reconnecting: "reconnecting";
|
|
25735
|
+
disconnecting: "disconnecting";
|
|
25736
|
+
revoked: "revoked";
|
|
25737
|
+
}>;
|
|
25738
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
25739
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
25740
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
25741
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
25742
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
25743
|
+
}, z.core.$strip>;
|
|
25744
|
+
}, z.core.$strip>;
|
|
25745
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25746
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
|
|
25747
|
+
payload: z.ZodObject<{
|
|
25748
|
+
requestId: z.ZodString;
|
|
25749
|
+
status: z.ZodObject<{
|
|
25750
|
+
state: z.ZodEnum<{
|
|
25751
|
+
not_connected: "not_connected";
|
|
25752
|
+
connecting: "connecting";
|
|
25753
|
+
connected: "connected";
|
|
25754
|
+
reconnecting: "reconnecting";
|
|
25755
|
+
disconnecting: "disconnecting";
|
|
25756
|
+
revoked: "revoked";
|
|
25757
|
+
}>;
|
|
25758
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
25759
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
25760
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
25761
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
25762
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
25763
|
+
}, z.core.$strip>;
|
|
25764
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
25765
|
+
}, z.core.$strip>;
|
|
24126
25766
|
}, z.core.$strip>, z.ZodObject<{
|
|
24127
25767
|
type: z.ZodLiteral<"diagnostics.response">;
|
|
24128
25768
|
payload: z.ZodObject<{
|
|
@@ -24218,6 +25858,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
24218
25858
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24219
25859
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24220
25860
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
25861
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
25862
|
+
range: z.ZodOptional<z.ZodString>;
|
|
25863
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
25864
|
+
}, z.core.$strict>>;
|
|
24221
25865
|
}, z.core.$loose>>;
|
|
24222
25866
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
24223
25867
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -24272,6 +25916,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
24272
25916
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24273
25917
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24274
25918
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
25919
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
25920
|
+
range: z.ZodOptional<z.ZodString>;
|
|
25921
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
25922
|
+
}, z.core.$strict>>;
|
|
24275
25923
|
}, z.core.$loose>>;
|
|
24276
25924
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
24277
25925
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -26024,10 +27672,95 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
26024
27672
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
26025
27673
|
size: z.ZodNumber;
|
|
26026
27674
|
modifiedAt: z.ZodString;
|
|
27675
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
26027
27676
|
}, z.core.$strip>>;
|
|
26028
27677
|
error: z.ZodNullable<z.ZodString>;
|
|
26029
27678
|
requestId: z.ZodString;
|
|
26030
27679
|
}, z.core.$strip>;
|
|
27680
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27681
|
+
type: z.ZodLiteral<"fs.file.subscribe.response">;
|
|
27682
|
+
payload: z.ZodObject<{
|
|
27683
|
+
subscriptionId: z.ZodString;
|
|
27684
|
+
initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27685
|
+
status: z.ZodLiteral<"ready">;
|
|
27686
|
+
cwd: z.ZodString;
|
|
27687
|
+
path: z.ZodString;
|
|
27688
|
+
size: z.ZodNumber;
|
|
27689
|
+
modifiedAt: z.ZodString;
|
|
27690
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
27691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27692
|
+
status: z.ZodLiteral<"missing">;
|
|
27693
|
+
cwd: z.ZodString;
|
|
27694
|
+
path: z.ZodString;
|
|
27695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27696
|
+
status: z.ZodLiteral<"error">;
|
|
27697
|
+
cwd: z.ZodString;
|
|
27698
|
+
path: z.ZodString;
|
|
27699
|
+
error: z.ZodString;
|
|
27700
|
+
}, z.core.$strip>], "status">;
|
|
27701
|
+
requestId: z.ZodString;
|
|
27702
|
+
}, z.core.$strip>;
|
|
27703
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27704
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.response">;
|
|
27705
|
+
payload: z.ZodObject<{
|
|
27706
|
+
subscriptionId: z.ZodString;
|
|
27707
|
+
requestId: z.ZodString;
|
|
27708
|
+
}, z.core.$strip>;
|
|
27709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27710
|
+
type: z.ZodLiteral<"fs.file.write.response">;
|
|
27711
|
+
payload: z.ZodObject<{
|
|
27712
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27713
|
+
status: z.ZodLiteral<"written">;
|
|
27714
|
+
modifiedAt: z.ZodString;
|
|
27715
|
+
size: z.ZodNumber;
|
|
27716
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
27717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27718
|
+
status: z.ZodLiteral<"conflict">;
|
|
27719
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27720
|
+
status: z.ZodLiteral<"ready">;
|
|
27721
|
+
cwd: z.ZodString;
|
|
27722
|
+
path: z.ZodString;
|
|
27723
|
+
size: z.ZodNumber;
|
|
27724
|
+
modifiedAt: z.ZodString;
|
|
27725
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
27726
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27727
|
+
status: z.ZodLiteral<"missing">;
|
|
27728
|
+
cwd: z.ZodString;
|
|
27729
|
+
path: z.ZodString;
|
|
27730
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27731
|
+
status: z.ZodLiteral<"error">;
|
|
27732
|
+
cwd: z.ZodString;
|
|
27733
|
+
path: z.ZodString;
|
|
27734
|
+
error: z.ZodString;
|
|
27735
|
+
}, z.core.$strip>], "status">;
|
|
27736
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27737
|
+
status: z.ZodLiteral<"error">;
|
|
27738
|
+
error: z.ZodString;
|
|
27739
|
+
}, z.core.$strip>], "status">;
|
|
27740
|
+
requestId: z.ZodString;
|
|
27741
|
+
}, z.core.$strip>;
|
|
27742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27743
|
+
type: z.ZodLiteral<"fs.file.update">;
|
|
27744
|
+
payload: z.ZodObject<{
|
|
27745
|
+
subscriptionId: z.ZodString;
|
|
27746
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27747
|
+
status: z.ZodLiteral<"ready">;
|
|
27748
|
+
cwd: z.ZodString;
|
|
27749
|
+
path: z.ZodString;
|
|
27750
|
+
size: z.ZodNumber;
|
|
27751
|
+
modifiedAt: z.ZodString;
|
|
27752
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
27753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27754
|
+
status: z.ZodLiteral<"missing">;
|
|
27755
|
+
cwd: z.ZodString;
|
|
27756
|
+
path: z.ZodString;
|
|
27757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27758
|
+
status: z.ZodLiteral<"error">;
|
|
27759
|
+
cwd: z.ZodString;
|
|
27760
|
+
path: z.ZodString;
|
|
27761
|
+
error: z.ZodString;
|
|
27762
|
+
}, z.core.$strip>], "status">;
|
|
27763
|
+
}, z.core.$strip>;
|
|
26031
27764
|
}, z.core.$strip>, z.ZodObject<{
|
|
26032
27765
|
type: z.ZodLiteral<"project_icon_response">;
|
|
26033
27766
|
payload: z.ZodObject<{
|
|
@@ -27442,9 +29175,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
27442
29175
|
voice: z.ZodOptional<z.ZodBoolean>;
|
|
27443
29176
|
pushNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
27444
29177
|
reasoning_merge_enum: z.ZodOptional<z.ZodBoolean>;
|
|
29178
|
+
selective_agent_timeline: z.ZodOptional<z.ZodBoolean>;
|
|
27445
29179
|
custom_mode_icons: z.ZodOptional<z.ZodBoolean>;
|
|
27446
29180
|
terminal_reflowable_snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
27447
29181
|
provider_subagents: z.ZodOptional<z.ZodBoolean>;
|
|
29182
|
+
project_updates: z.ZodOptional<z.ZodBoolean>;
|
|
27448
29183
|
browser_host: z.ZodOptional<z.ZodObject<{
|
|
27449
29184
|
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
29185
|
hostKind: z.ZodDefault<z.ZodString>;
|
|
@@ -27456,6 +29191,31 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
27456
29191
|
}, z.core.$strip>, z.ZodObject<{
|
|
27457
29192
|
type: z.ZodLiteral<"session">;
|
|
27458
29193
|
message: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29194
|
+
type: z.ZodLiteral<"hub.execution.agent.create.request">;
|
|
29195
|
+
requestId: z.ZodString;
|
|
29196
|
+
executionId: z.ZodString;
|
|
29197
|
+
provider: z.ZodString;
|
|
29198
|
+
cwd: z.ZodString;
|
|
29199
|
+
prompt: z.ZodString;
|
|
29200
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
29201
|
+
model: z.ZodOptional<z.ZodString>;
|
|
29202
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
29203
|
+
thinkingOptionId: z.ZodOptional<z.ZodString>;
|
|
29204
|
+
featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29205
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29206
|
+
worktree: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29207
|
+
mode: z.ZodLiteral<"branch-off">;
|
|
29208
|
+
newBranch: z.ZodString;
|
|
29209
|
+
base: z.ZodOptional<z.ZodString>;
|
|
29210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29211
|
+
mode: z.ZodLiteral<"checkout-branch">;
|
|
29212
|
+
branch: z.ZodString;
|
|
29213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29214
|
+
mode: z.ZodLiteral<"checkout-pr">;
|
|
29215
|
+
prNumber: z.ZodNumber;
|
|
29216
|
+
}, z.core.$strip>], "mode">>;
|
|
29217
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
29218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27459
29219
|
type: z.ZodLiteral<"browser.automation.execute.response">;
|
|
27460
29220
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27461
29221
|
requestId: z.ZodString;
|
|
@@ -27930,6 +29690,18 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
27930
29690
|
}, z.core.$strip>, z.ZodObject<{
|
|
27931
29691
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
27932
29692
|
requestId: z.ZodString;
|
|
29693
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29694
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.request">;
|
|
29695
|
+
requestId: z.ZodString;
|
|
29696
|
+
hubUrl: z.ZodString;
|
|
29697
|
+
token: z.ZodString;
|
|
29698
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29699
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.request">;
|
|
29700
|
+
requestId: z.ZodString;
|
|
29701
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29702
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.request">;
|
|
29703
|
+
requestId: z.ZodString;
|
|
29704
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
27933
29705
|
}, z.core.$strip>, z.ZodObject<{
|
|
27934
29706
|
type: z.ZodLiteral<"diagnostics.request">;
|
|
27935
29707
|
requestId: z.ZodString;
|
|
@@ -27987,6 +29759,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
27987
29759
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
27988
29760
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
27989
29761
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
29762
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
29763
|
+
range: z.ZodOptional<z.ZodString>;
|
|
29764
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
29765
|
+
}, z.core.$strict>>;
|
|
27990
29766
|
}, z.core.$loose>>;
|
|
27991
29767
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27992
29768
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -28068,6 +29844,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28068
29844
|
}, z.core.$strip>;
|
|
28069
29845
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28070
29846
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
29847
|
+
callerAgentId: z.ZodOptional<z.ZodString>;
|
|
28071
29848
|
worktreeName: z.ZodOptional<z.ZodString>;
|
|
28072
29849
|
initialPrompt: z.ZodOptional<z.ZodString>;
|
|
28073
29850
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
@@ -28166,7 +29943,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28166
29943
|
}>>;
|
|
28167
29944
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
28168
29945
|
kind: z.ZodLiteral<"change_request">;
|
|
28169
|
-
forge: z.
|
|
29946
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
28170
29947
|
number: z.ZodNumber;
|
|
28171
29948
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
28172
29949
|
}, z.core.$strip>>;
|
|
@@ -28330,6 +30107,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28330
30107
|
seq: z.ZodNumber;
|
|
28331
30108
|
}, z.core.$strip>>;
|
|
28332
30109
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
30110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30111
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.request">;
|
|
30112
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
30113
|
+
requestId: z.ZodString;
|
|
28333
30114
|
}, z.core.$strip>, z.ZodObject<{
|
|
28334
30115
|
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
28335
30116
|
agentId: z.ZodString;
|
|
@@ -28769,7 +30550,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28769
30550
|
}>>;
|
|
28770
30551
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
28771
30552
|
kind: z.ZodLiteral<"change_request">;
|
|
28772
|
-
forge: z.
|
|
30553
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
28773
30554
|
number: z.ZodNumber;
|
|
28774
30555
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
28775
30556
|
}, z.core.$strip>>;
|
|
@@ -28921,9 +30702,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28921
30702
|
}>>;
|
|
28922
30703
|
refName: z.ZodOptional<z.ZodString>;
|
|
28923
30704
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
30705
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
28924
30706
|
checkoutSource: z.ZodOptional<z.ZodObject<{
|
|
28925
30707
|
kind: z.ZodLiteral<"change_request">;
|
|
28926
|
-
forge: z.
|
|
30708
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
28927
30709
|
number: z.ZodNumber;
|
|
28928
30710
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
28929
30711
|
}, z.core.$strip>>;
|
|
@@ -28944,6 +30726,24 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28944
30726
|
}>;
|
|
28945
30727
|
requestId: z.ZodString;
|
|
28946
30728
|
acceptBinary: z.ZodOptional<z.ZodBoolean>;
|
|
30729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30730
|
+
type: z.ZodLiteral<"fs.file.subscribe.request">;
|
|
30731
|
+
cwd: z.ZodString;
|
|
30732
|
+
path: z.ZodString;
|
|
30733
|
+
subscriptionId: z.ZodString;
|
|
30734
|
+
requestId: z.ZodString;
|
|
30735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30736
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.request">;
|
|
30737
|
+
subscriptionId: z.ZodString;
|
|
30738
|
+
requestId: z.ZodString;
|
|
30739
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30740
|
+
type: z.ZodLiteral<"fs.file.write.request">;
|
|
30741
|
+
cwd: z.ZodString;
|
|
30742
|
+
path: z.ZodString;
|
|
30743
|
+
content: z.ZodString;
|
|
30744
|
+
expectedModifiedAt: z.ZodString;
|
|
30745
|
+
expectedRevision: z.ZodOptional<z.ZodString>;
|
|
30746
|
+
requestId: z.ZodString;
|
|
28947
30747
|
}, z.core.$strip>, z.ZodObject<{
|
|
28948
30748
|
type: z.ZodLiteral<"project_icon_request">;
|
|
28949
30749
|
cwd: z.ZodString;
|
|
@@ -29264,6 +31064,209 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
29264
31064
|
}, z.core.$strip>, z.ZodObject<{
|
|
29265
31065
|
type: z.ZodLiteral<"session">;
|
|
29266
31066
|
message: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31067
|
+
type: z.ZodLiteral<"hub.execution.agent.create.response">;
|
|
31068
|
+
payload: z.ZodObject<{
|
|
31069
|
+
requestId: z.ZodString;
|
|
31070
|
+
executionId: z.ZodString;
|
|
31071
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
31072
|
+
agent: z.ZodNullable<z.ZodObject<{
|
|
31073
|
+
id: z.ZodString;
|
|
31074
|
+
provider: z.ZodString;
|
|
31075
|
+
cwd: z.ZodString;
|
|
31076
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
31077
|
+
model: z.ZodNullable<z.ZodString>;
|
|
31078
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31079
|
+
type: z.ZodLiteral<"toggle">;
|
|
31080
|
+
id: z.ZodString;
|
|
31081
|
+
label: z.ZodString;
|
|
31082
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31083
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
31084
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
31085
|
+
value: z.ZodBoolean;
|
|
31086
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31087
|
+
type: z.ZodLiteral<"select">;
|
|
31088
|
+
id: z.ZodString;
|
|
31089
|
+
label: z.ZodString;
|
|
31090
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31091
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
31092
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
31093
|
+
value: z.ZodNullable<z.ZodString>;
|
|
31094
|
+
options: z.ZodArray<z.ZodObject<{
|
|
31095
|
+
id: z.ZodString;
|
|
31096
|
+
label: z.ZodString;
|
|
31097
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31098
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
31099
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31100
|
+
}, z.core.$strip>>;
|
|
31101
|
+
}, z.core.$strip>], "type">>>;
|
|
31102
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31103
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31104
|
+
createdAt: z.ZodString;
|
|
31105
|
+
updatedAt: z.ZodString;
|
|
31106
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
31107
|
+
status: z.ZodEnum<{
|
|
31108
|
+
error: "error";
|
|
31109
|
+
initializing: "initializing";
|
|
31110
|
+
idle: "idle";
|
|
31111
|
+
running: "running";
|
|
31112
|
+
closed: "closed";
|
|
31113
|
+
}>;
|
|
31114
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
31115
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
31116
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
31117
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
31118
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
31119
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
31120
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
31121
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
31122
|
+
title: z.ZodNullable<z.ZodString>;
|
|
31123
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31124
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
31125
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
31126
|
+
finished: "finished";
|
|
31127
|
+
error: "error";
|
|
31128
|
+
permission: "permission";
|
|
31129
|
+
}>>>;
|
|
31130
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31131
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31132
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
31133
|
+
}, z.core.$strip>>;
|
|
31134
|
+
success: z.ZodBoolean;
|
|
31135
|
+
error: z.ZodNullable<z.ZodString>;
|
|
31136
|
+
}, z.core.$strip>;
|
|
31137
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31138
|
+
type: z.ZodLiteral<"hub.execution.agent.update">;
|
|
31139
|
+
payload: z.ZodObject<{
|
|
31140
|
+
executionId: z.ZodString;
|
|
31141
|
+
agentId: z.ZodString;
|
|
31142
|
+
agent: z.ZodObject<{
|
|
31143
|
+
id: z.ZodString;
|
|
31144
|
+
provider: z.ZodString;
|
|
31145
|
+
cwd: z.ZodString;
|
|
31146
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
31147
|
+
model: z.ZodNullable<z.ZodString>;
|
|
31148
|
+
features: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31149
|
+
type: z.ZodLiteral<"toggle">;
|
|
31150
|
+
id: z.ZodString;
|
|
31151
|
+
label: z.ZodString;
|
|
31152
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31153
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
31154
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
31155
|
+
value: z.ZodBoolean;
|
|
31156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31157
|
+
type: z.ZodLiteral<"select">;
|
|
31158
|
+
id: z.ZodString;
|
|
31159
|
+
label: z.ZodString;
|
|
31160
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31161
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
31162
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
31163
|
+
value: z.ZodNullable<z.ZodString>;
|
|
31164
|
+
options: z.ZodArray<z.ZodObject<{
|
|
31165
|
+
id: z.ZodString;
|
|
31166
|
+
label: z.ZodString;
|
|
31167
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31168
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
31169
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31170
|
+
}, z.core.$strip>>;
|
|
31171
|
+
}, z.core.$strip>], "type">>>;
|
|
31172
|
+
thinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31173
|
+
effectiveThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31174
|
+
createdAt: z.ZodString;
|
|
31175
|
+
updatedAt: z.ZodString;
|
|
31176
|
+
lastUserMessageAt: z.ZodNullable<z.ZodString>;
|
|
31177
|
+
status: z.ZodEnum<{
|
|
31178
|
+
error: "error";
|
|
31179
|
+
initializing: "initializing";
|
|
31180
|
+
idle: "idle";
|
|
31181
|
+
running: "running";
|
|
31182
|
+
closed: "closed";
|
|
31183
|
+
}>;
|
|
31184
|
+
capabilities: z.ZodType<AgentCapabilityFlags, unknown, z.core.$ZodTypeInternals<AgentCapabilityFlags, unknown>>;
|
|
31185
|
+
currentModeId: z.ZodNullable<z.ZodString>;
|
|
31186
|
+
availableModes: z.ZodArray<z.ZodType<AgentMode, unknown, z.core.$ZodTypeInternals<AgentMode, unknown>>>;
|
|
31187
|
+
pendingPermissions: z.ZodArray<z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>>;
|
|
31188
|
+
persistence: z.ZodNullable<z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>>;
|
|
31189
|
+
runtimeInfo: z.ZodOptional<z.ZodType<AgentRuntimeInfo, unknown, z.core.$ZodTypeInternals<AgentRuntimeInfo, unknown>>>;
|
|
31190
|
+
lastUsage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
31191
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
31192
|
+
title: z.ZodNullable<z.ZodString>;
|
|
31193
|
+
labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31194
|
+
requiresAttention: z.ZodOptional<z.ZodBoolean>;
|
|
31195
|
+
attentionReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
31196
|
+
finished: "finished";
|
|
31197
|
+
error: "error";
|
|
31198
|
+
permission: "permission";
|
|
31199
|
+
}>>>;
|
|
31200
|
+
attentionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31201
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31202
|
+
providerUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
31203
|
+
}, z.core.$strip>;
|
|
31204
|
+
}, z.core.$strip>;
|
|
31205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31206
|
+
type: z.ZodLiteral<"hub.execution.agent.stream">;
|
|
31207
|
+
payload: z.ZodObject<{
|
|
31208
|
+
executionId: z.ZodString;
|
|
31209
|
+
agentId: z.ZodString;
|
|
31210
|
+
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31211
|
+
type: z.ZodLiteral<"thread_started">;
|
|
31212
|
+
sessionId: z.ZodString;
|
|
31213
|
+
provider: z.ZodString;
|
|
31214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31215
|
+
type: z.ZodLiteral<"turn_started">;
|
|
31216
|
+
provider: z.ZodString;
|
|
31217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31218
|
+
type: z.ZodLiteral<"turn_completed">;
|
|
31219
|
+
provider: z.ZodString;
|
|
31220
|
+
usage: z.ZodOptional<z.ZodType<AgentUsage, unknown, z.core.$ZodTypeInternals<AgentUsage, unknown>>>;
|
|
31221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31222
|
+
type: z.ZodLiteral<"turn_failed">;
|
|
31223
|
+
provider: z.ZodString;
|
|
31224
|
+
error: z.ZodString;
|
|
31225
|
+
code: z.ZodOptional<z.ZodString>;
|
|
31226
|
+
diagnostic: z.ZodOptional<z.ZodString>;
|
|
31227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31228
|
+
type: z.ZodLiteral<"turn_canceled">;
|
|
31229
|
+
provider: z.ZodString;
|
|
31230
|
+
reason: z.ZodString;
|
|
31231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31232
|
+
type: z.ZodLiteral<"timeline">;
|
|
31233
|
+
provider: z.ZodString;
|
|
31234
|
+
item: z.ZodType<AgentTimelineItem, unknown, z.core.$ZodTypeInternals<AgentTimelineItem, unknown>>;
|
|
31235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31236
|
+
type: z.ZodLiteral<"permission_requested">;
|
|
31237
|
+
provider: z.ZodString;
|
|
31238
|
+
request: z.ZodType<AgentPermissionRequest, unknown, z.core.$ZodTypeInternals<AgentPermissionRequest, unknown>>;
|
|
31239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31240
|
+
type: z.ZodLiteral<"permission_resolved">;
|
|
31241
|
+
provider: z.ZodString;
|
|
31242
|
+
requestId: z.ZodString;
|
|
31243
|
+
resolution: z.ZodType<AgentPermissionResponse, unknown, z.core.$ZodTypeInternals<AgentPermissionResponse, unknown>>;
|
|
31244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31245
|
+
type: z.ZodLiteral<"attention_required">;
|
|
31246
|
+
provider: z.ZodString;
|
|
31247
|
+
reason: z.ZodEnum<{
|
|
31248
|
+
finished: "finished";
|
|
31249
|
+
error: "error";
|
|
31250
|
+
permission: "permission";
|
|
31251
|
+
}>;
|
|
31252
|
+
timestamp: z.ZodString;
|
|
31253
|
+
shouldNotify: z.ZodBoolean;
|
|
31254
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
31255
|
+
title: z.ZodString;
|
|
31256
|
+
body: z.ZodString;
|
|
31257
|
+
data: z.ZodObject<{
|
|
31258
|
+
serverId: z.ZodString;
|
|
31259
|
+
agentId: z.ZodString;
|
|
31260
|
+
reason: z.ZodEnum<{
|
|
31261
|
+
finished: "finished";
|
|
31262
|
+
error: "error";
|
|
31263
|
+
permission: "permission";
|
|
31264
|
+
}>;
|
|
31265
|
+
}, z.core.$strip>;
|
|
31266
|
+
}, z.core.$strip>>;
|
|
31267
|
+
}, z.core.$strip>], "type">;
|
|
31268
|
+
}, z.core.$strip>;
|
|
31269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29267
31270
|
type: z.ZodLiteral<"browser.automation.execute.request">;
|
|
29268
31271
|
requestId: z.ZodString;
|
|
29269
31272
|
agentId: z.ZodOptional<z.ZodString>;
|
|
@@ -30115,6 +32118,25 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
30115
32118
|
}, z.core.$strip>>;
|
|
30116
32119
|
removedProjectId: z.ZodOptional<z.ZodString>;
|
|
30117
32120
|
}, z.core.$strip>], "kind">;
|
|
32121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32122
|
+
type: z.ZodLiteral<"project.update">;
|
|
32123
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32124
|
+
kind: z.ZodLiteral<"upsert">;
|
|
32125
|
+
project: z.ZodObject<{
|
|
32126
|
+
projectId: z.ZodString;
|
|
32127
|
+
projectDisplayName: z.ZodString;
|
|
32128
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32129
|
+
projectRootPath: z.ZodString;
|
|
32130
|
+
projectKind: z.ZodEnum<{
|
|
32131
|
+
git: "git";
|
|
32132
|
+
directory: "directory";
|
|
32133
|
+
non_git: "non_git";
|
|
32134
|
+
}>;
|
|
32135
|
+
}, z.core.$strip>;
|
|
32136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32137
|
+
kind: z.ZodLiteral<"remove">;
|
|
32138
|
+
projectId: z.ZodString;
|
|
32139
|
+
}, z.core.$strip>], "kind">;
|
|
30118
32140
|
}, z.core.$strip>, z.ZodObject<{
|
|
30119
32141
|
type: z.ZodLiteral<"script_status_update">;
|
|
30120
32142
|
payload: z.ZodObject<{
|
|
@@ -32028,6 +34050,37 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
32028
34050
|
parentAgentId: z.ZodString;
|
|
32029
34051
|
subagentId: z.ZodString;
|
|
32030
34052
|
}, z.core.$strip>], "kind">;
|
|
34053
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34054
|
+
type: z.ZodLiteral<"agent.timeline.set_subscription.response">;
|
|
34055
|
+
payload: z.ZodObject<{
|
|
34056
|
+
agentIds: z.ZodArray<z.ZodString>;
|
|
34057
|
+
requestId: z.ZodString;
|
|
34058
|
+
}, z.core.$strip>;
|
|
34059
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34060
|
+
type: z.ZodLiteral<"agent_attention_required">;
|
|
34061
|
+
payload: z.ZodObject<{
|
|
34062
|
+
agentId: z.ZodString;
|
|
34063
|
+
reason: z.ZodEnum<{
|
|
34064
|
+
finished: "finished";
|
|
34065
|
+
error: "error";
|
|
34066
|
+
permission: "permission";
|
|
34067
|
+
}>;
|
|
34068
|
+
timestamp: z.ZodString;
|
|
34069
|
+
shouldNotify: z.ZodBoolean;
|
|
34070
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
34071
|
+
title: z.ZodString;
|
|
34072
|
+
body: z.ZodString;
|
|
34073
|
+
data: z.ZodObject<{
|
|
34074
|
+
serverId: z.ZodString;
|
|
34075
|
+
agentId: z.ZodString;
|
|
34076
|
+
reason: z.ZodEnum<{
|
|
34077
|
+
finished: "finished";
|
|
34078
|
+
error: "error";
|
|
34079
|
+
permission: "permission";
|
|
34080
|
+
}>;
|
|
34081
|
+
}, z.core.$strip>;
|
|
34082
|
+
}, z.core.$strip>>;
|
|
34083
|
+
}, z.core.$strip>;
|
|
32031
34084
|
}, z.core.$strip>, z.ZodObject<{
|
|
32032
34085
|
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
32033
34086
|
payload: z.ZodObject<{
|
|
@@ -32681,6 +34734,67 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
32681
34734
|
qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32682
34735
|
relayEnabled: z.ZodBoolean;
|
|
32683
34736
|
}, z.core.$loose>;
|
|
34737
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34738
|
+
type: z.ZodLiteral<"hub.management.daemon.connect.response">;
|
|
34739
|
+
payload: z.ZodObject<{
|
|
34740
|
+
requestId: z.ZodString;
|
|
34741
|
+
status: z.ZodObject<{
|
|
34742
|
+
state: z.ZodEnum<{
|
|
34743
|
+
not_connected: "not_connected";
|
|
34744
|
+
connecting: "connecting";
|
|
34745
|
+
connected: "connected";
|
|
34746
|
+
reconnecting: "reconnecting";
|
|
34747
|
+
disconnecting: "disconnecting";
|
|
34748
|
+
revoked: "revoked";
|
|
34749
|
+
}>;
|
|
34750
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
34751
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
34752
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
34753
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
34754
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
34755
|
+
}, z.core.$strip>;
|
|
34756
|
+
}, z.core.$strip>;
|
|
34757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34758
|
+
type: z.ZodLiteral<"hub.management.daemon.get_status.response">;
|
|
34759
|
+
payload: z.ZodObject<{
|
|
34760
|
+
requestId: z.ZodString;
|
|
34761
|
+
status: z.ZodObject<{
|
|
34762
|
+
state: z.ZodEnum<{
|
|
34763
|
+
not_connected: "not_connected";
|
|
34764
|
+
connecting: "connecting";
|
|
34765
|
+
connected: "connected";
|
|
34766
|
+
reconnecting: "reconnecting";
|
|
34767
|
+
disconnecting: "disconnecting";
|
|
34768
|
+
revoked: "revoked";
|
|
34769
|
+
}>;
|
|
34770
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
34771
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
34772
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
34773
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
34774
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
34775
|
+
}, z.core.$strip>;
|
|
34776
|
+
}, z.core.$strip>;
|
|
34777
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34778
|
+
type: z.ZodLiteral<"hub.management.daemon.disconnect.response">;
|
|
34779
|
+
payload: z.ZodObject<{
|
|
34780
|
+
requestId: z.ZodString;
|
|
34781
|
+
status: z.ZodObject<{
|
|
34782
|
+
state: z.ZodEnum<{
|
|
34783
|
+
not_connected: "not_connected";
|
|
34784
|
+
connecting: "connecting";
|
|
34785
|
+
connected: "connected";
|
|
34786
|
+
reconnecting: "reconnecting";
|
|
34787
|
+
disconnecting: "disconnecting";
|
|
34788
|
+
revoked: "revoked";
|
|
34789
|
+
}>;
|
|
34790
|
+
daemonId: z.ZodNullable<z.ZodString>;
|
|
34791
|
+
hubOrigin: z.ZodNullable<z.ZodString>;
|
|
34792
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
34793
|
+
connectedAt: z.ZodNullable<z.ZodString>;
|
|
34794
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
34795
|
+
}, z.core.$strip>;
|
|
34796
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
34797
|
+
}, z.core.$strip>;
|
|
32684
34798
|
}, z.core.$strip>, z.ZodObject<{
|
|
32685
34799
|
type: z.ZodLiteral<"diagnostics.response">;
|
|
32686
34800
|
payload: z.ZodObject<{
|
|
@@ -32776,6 +34890,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
32776
34890
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
32777
34891
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
32778
34892
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
34893
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
34894
|
+
range: z.ZodOptional<z.ZodString>;
|
|
34895
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
34896
|
+
}, z.core.$strict>>;
|
|
32779
34897
|
}, z.core.$loose>>;
|
|
32780
34898
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32781
34899
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -32830,6 +34948,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
32830
34948
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
32831
34949
|
teardown: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
32832
34950
|
terminals: z.ZodOptional<z.ZodUnknown>;
|
|
34951
|
+
servicePorts: z.ZodOptional<z.ZodObject<{
|
|
34952
|
+
range: z.ZodOptional<z.ZodString>;
|
|
34953
|
+
portScript: z.ZodOptional<z.ZodString>;
|
|
34954
|
+
}, z.core.$strict>>;
|
|
32833
34955
|
}, z.core.$loose>>;
|
|
32834
34956
|
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32835
34957
|
type: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -34582,10 +36704,95 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
34582
36704
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
34583
36705
|
size: z.ZodNumber;
|
|
34584
36706
|
modifiedAt: z.ZodString;
|
|
36707
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
34585
36708
|
}, z.core.$strip>>;
|
|
34586
36709
|
error: z.ZodNullable<z.ZodString>;
|
|
34587
36710
|
requestId: z.ZodString;
|
|
34588
36711
|
}, z.core.$strip>;
|
|
36712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36713
|
+
type: z.ZodLiteral<"fs.file.subscribe.response">;
|
|
36714
|
+
payload: z.ZodObject<{
|
|
36715
|
+
subscriptionId: z.ZodString;
|
|
36716
|
+
initial: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36717
|
+
status: z.ZodLiteral<"ready">;
|
|
36718
|
+
cwd: z.ZodString;
|
|
36719
|
+
path: z.ZodString;
|
|
36720
|
+
size: z.ZodNumber;
|
|
36721
|
+
modifiedAt: z.ZodString;
|
|
36722
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
36723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36724
|
+
status: z.ZodLiteral<"missing">;
|
|
36725
|
+
cwd: z.ZodString;
|
|
36726
|
+
path: z.ZodString;
|
|
36727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36728
|
+
status: z.ZodLiteral<"error">;
|
|
36729
|
+
cwd: z.ZodString;
|
|
36730
|
+
path: z.ZodString;
|
|
36731
|
+
error: z.ZodString;
|
|
36732
|
+
}, z.core.$strip>], "status">;
|
|
36733
|
+
requestId: z.ZodString;
|
|
36734
|
+
}, z.core.$strip>;
|
|
36735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36736
|
+
type: z.ZodLiteral<"fs.file.unsubscribe.response">;
|
|
36737
|
+
payload: z.ZodObject<{
|
|
36738
|
+
subscriptionId: z.ZodString;
|
|
36739
|
+
requestId: z.ZodString;
|
|
36740
|
+
}, z.core.$strip>;
|
|
36741
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36742
|
+
type: z.ZodLiteral<"fs.file.write.response">;
|
|
36743
|
+
payload: z.ZodObject<{
|
|
36744
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36745
|
+
status: z.ZodLiteral<"written">;
|
|
36746
|
+
modifiedAt: z.ZodString;
|
|
36747
|
+
size: z.ZodNumber;
|
|
36748
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
36749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36750
|
+
status: z.ZodLiteral<"conflict">;
|
|
36751
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36752
|
+
status: z.ZodLiteral<"ready">;
|
|
36753
|
+
cwd: z.ZodString;
|
|
36754
|
+
path: z.ZodString;
|
|
36755
|
+
size: z.ZodNumber;
|
|
36756
|
+
modifiedAt: z.ZodString;
|
|
36757
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
36758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36759
|
+
status: z.ZodLiteral<"missing">;
|
|
36760
|
+
cwd: z.ZodString;
|
|
36761
|
+
path: z.ZodString;
|
|
36762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36763
|
+
status: z.ZodLiteral<"error">;
|
|
36764
|
+
cwd: z.ZodString;
|
|
36765
|
+
path: z.ZodString;
|
|
36766
|
+
error: z.ZodString;
|
|
36767
|
+
}, z.core.$strip>], "status">;
|
|
36768
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36769
|
+
status: z.ZodLiteral<"error">;
|
|
36770
|
+
error: z.ZodString;
|
|
36771
|
+
}, z.core.$strip>], "status">;
|
|
36772
|
+
requestId: z.ZodString;
|
|
36773
|
+
}, z.core.$strip>;
|
|
36774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36775
|
+
type: z.ZodLiteral<"fs.file.update">;
|
|
36776
|
+
payload: z.ZodObject<{
|
|
36777
|
+
subscriptionId: z.ZodString;
|
|
36778
|
+
version: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36779
|
+
status: z.ZodLiteral<"ready">;
|
|
36780
|
+
cwd: z.ZodString;
|
|
36781
|
+
path: z.ZodString;
|
|
36782
|
+
size: z.ZodNumber;
|
|
36783
|
+
modifiedAt: z.ZodString;
|
|
36784
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
36785
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36786
|
+
status: z.ZodLiteral<"missing">;
|
|
36787
|
+
cwd: z.ZodString;
|
|
36788
|
+
path: z.ZodString;
|
|
36789
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36790
|
+
status: z.ZodLiteral<"error">;
|
|
36791
|
+
cwd: z.ZodString;
|
|
36792
|
+
path: z.ZodString;
|
|
36793
|
+
error: z.ZodString;
|
|
36794
|
+
}, z.core.$strip>], "status">;
|
|
36795
|
+
}, z.core.$strip>;
|
|
34589
36796
|
}, z.core.$strip>, z.ZodObject<{
|
|
34590
36797
|
type: z.ZodLiteral<"project_icon_response">;
|
|
34591
36798
|
payload: z.ZodObject<{
|