@agent-vm/gateway-control-contracts 0.0.109 → 0.0.110
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/index.d.ts +162 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -402,7 +402,7 @@ declare const GatewayControlRuntimeStatusPayloadSchema: z.ZodObject<{
|
|
|
402
402
|
}>>;
|
|
403
403
|
statusKind: z.ZodString;
|
|
404
404
|
}, z.core.$strict>;
|
|
405
|
-
declare const
|
|
405
|
+
declare const GatewayControlZoneGitPushControllerHostActionPayloadSchema: z.ZodObject<{
|
|
406
406
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
407
407
|
callerContext: z.ZodObject<{
|
|
408
408
|
callerContextId: z.ZodString;
|
|
@@ -422,6 +422,63 @@ declare const GatewayControlToolPortalControllerHostActionPayloadSchema: z.ZodOb
|
|
|
422
422
|
}, z.core.$strict>;
|
|
423
423
|
expectedHead: z.ZodString;
|
|
424
424
|
}, z.core.$strict>;
|
|
425
|
+
declare const GatewayControlControllerHostProbePayloadSchema: z.ZodObject<{
|
|
426
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
427
|
+
callerContext: z.ZodObject<{
|
|
428
|
+
callerContextId: z.ZodString;
|
|
429
|
+
}, z.core.$strict>;
|
|
430
|
+
correlation: z.ZodObject<{
|
|
431
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
432
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
433
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
435
|
+
sessionKeyDigest: z.ZodOptional<z.ZodString>;
|
|
436
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
437
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
438
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
name: z.ZodString;
|
|
440
|
+
namespace: z.ZodString;
|
|
441
|
+
}, z.core.$strict>>;
|
|
442
|
+
}, z.core.$strict>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
declare const GatewayControlToolPortalControllerHostActionPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
445
|
+
actionId: z.ZodLiteral<"zone_git_push">;
|
|
446
|
+
callerContext: z.ZodObject<{
|
|
447
|
+
callerContextId: z.ZodString;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
correlation: z.ZodObject<{
|
|
450
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
451
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
452
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
453
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
454
|
+
sessionKeyDigest: z.ZodOptional<z.ZodString>;
|
|
455
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
456
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
457
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
458
|
+
name: z.ZodString;
|
|
459
|
+
namespace: z.ZodString;
|
|
460
|
+
}, z.core.$strict>>;
|
|
461
|
+
}, z.core.$strict>;
|
|
462
|
+
expectedHead: z.ZodString;
|
|
463
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
464
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
465
|
+
callerContext: z.ZodObject<{
|
|
466
|
+
callerContextId: z.ZodString;
|
|
467
|
+
}, z.core.$strict>;
|
|
468
|
+
correlation: z.ZodObject<{
|
|
469
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
470
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
471
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
472
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
473
|
+
sessionKeyDigest: z.ZodOptional<z.ZodString>;
|
|
474
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
475
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
476
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
name: z.ZodString;
|
|
478
|
+
namespace: z.ZodString;
|
|
479
|
+
}, z.core.$strict>>;
|
|
480
|
+
}, z.core.$strict>;
|
|
481
|
+
}, z.core.$strict>], "actionId">;
|
|
425
482
|
declare const GatewayControlZoneGitCommitSummarySchema: z.ZodObject<{
|
|
426
483
|
sha: z.ZodString;
|
|
427
484
|
subject: z.ZodString;
|
|
@@ -435,7 +492,11 @@ declare const GatewayControlZoneGitPushResultSchema: z.ZodObject<{
|
|
|
435
492
|
}, z.core.$strict>>;
|
|
436
493
|
remoteHead: z.ZodString;
|
|
437
494
|
}, z.core.$strict>;
|
|
438
|
-
declare const
|
|
495
|
+
declare const GatewayControlControllerHostProbeResultSchema: z.ZodObject<{
|
|
496
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
497
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
498
|
+
}, z.core.$strict>;
|
|
499
|
+
declare const GatewayControlZoneGitPushControllerHostActionResultSchema: z.ZodObject<{
|
|
439
500
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
440
501
|
result: z.ZodObject<{
|
|
441
502
|
branch: z.ZodString;
|
|
@@ -447,6 +508,31 @@ declare const GatewayControlToolPortalControllerHostActionResultSchema: z.ZodObj
|
|
|
447
508
|
remoteHead: z.ZodString;
|
|
448
509
|
}, z.core.$strict>;
|
|
449
510
|
}, z.core.$strict>;
|
|
511
|
+
declare const GatewayControlControllerHostProbeActionResultSchema: z.ZodObject<{
|
|
512
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
513
|
+
result: z.ZodObject<{
|
|
514
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
515
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
516
|
+
}, z.core.$strict>;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
declare const GatewayControlToolPortalControllerHostActionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
519
|
+
actionId: z.ZodLiteral<"zone_git_push">;
|
|
520
|
+
result: z.ZodObject<{
|
|
521
|
+
branch: z.ZodString;
|
|
522
|
+
localHead: z.ZodString;
|
|
523
|
+
pushedCommits: z.ZodArray<z.ZodObject<{
|
|
524
|
+
sha: z.ZodString;
|
|
525
|
+
subject: z.ZodString;
|
|
526
|
+
}, z.core.$strict>>;
|
|
527
|
+
remoteHead: z.ZodString;
|
|
528
|
+
}, z.core.$strict>;
|
|
529
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
530
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
531
|
+
result: z.ZodObject<{
|
|
532
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
533
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
}, z.core.$strict>], "actionId">;
|
|
450
536
|
declare const GatewayControlActiveOperationIdSchema: z.ZodString;
|
|
451
537
|
declare const GatewayInitiatedOperationCancelPayloadSchema: z.ZodObject<{
|
|
452
538
|
activeOperationId: z.ZodString;
|
|
@@ -825,7 +911,7 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
|
|
|
825
911
|
}, z.core.$strict>], "result">;
|
|
826
912
|
declare const GatewayControlRpcControllerHostActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
827
913
|
responseToMessageId: z.ZodString;
|
|
828
|
-
controllerHostAction: z.ZodObject<{
|
|
914
|
+
controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
829
915
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
830
916
|
result: z.ZodObject<{
|
|
831
917
|
branch: z.ZodString;
|
|
@@ -836,7 +922,13 @@ declare const GatewayControlRpcControllerHostActionResponsePayloadSchema: z.ZodD
|
|
|
836
922
|
}, z.core.$strict>>;
|
|
837
923
|
remoteHead: z.ZodString;
|
|
838
924
|
}, z.core.$strict>;
|
|
839
|
-
}, z.core.$strict
|
|
925
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
926
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
927
|
+
result: z.ZodObject<{
|
|
928
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
929
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
930
|
+
}, z.core.$strict>;
|
|
931
|
+
}, z.core.$strict>], "actionId">;
|
|
840
932
|
result: z.ZodLiteral<"ok">;
|
|
841
933
|
activeOperationId: z.ZodOptional<z.ZodNever>;
|
|
842
934
|
approvalRequired: z.ZodOptional<z.ZodNever>;
|
|
@@ -1133,7 +1225,7 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
|
|
|
1133
1225
|
leaseUse: z.ZodOptional<z.ZodNever>;
|
|
1134
1226
|
}, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1135
1227
|
responseToMessageId: z.ZodString;
|
|
1136
|
-
controllerHostAction: z.ZodObject<{
|
|
1228
|
+
controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1137
1229
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
1138
1230
|
result: z.ZodObject<{
|
|
1139
1231
|
branch: z.ZodString;
|
|
@@ -1144,7 +1236,13 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
|
|
|
1144
1236
|
}, z.core.$strict>>;
|
|
1145
1237
|
remoteHead: z.ZodString;
|
|
1146
1238
|
}, z.core.$strict>;
|
|
1147
|
-
}, z.core.$strict
|
|
1239
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1240
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
1241
|
+
result: z.ZodObject<{
|
|
1242
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
1243
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
1244
|
+
}, z.core.$strict>;
|
|
1245
|
+
}, z.core.$strict>], "actionId">;
|
|
1148
1246
|
result: z.ZodLiteral<"ok">;
|
|
1149
1247
|
activeOperationId: z.ZodOptional<z.ZodNever>;
|
|
1150
1248
|
approvalRequired: z.ZodOptional<z.ZodNever>;
|
|
@@ -1504,7 +1602,7 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
|
|
|
1504
1602
|
operation: z.ZodLiteral<"tool_portal_controller_host_action">;
|
|
1505
1603
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1506
1604
|
responseToMessageId: z.ZodString;
|
|
1507
|
-
controllerHostAction: z.ZodObject<{
|
|
1605
|
+
controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1508
1606
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
1509
1607
|
result: z.ZodObject<{
|
|
1510
1608
|
branch: z.ZodString;
|
|
@@ -1515,7 +1613,13 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
|
|
|
1515
1613
|
}, z.core.$strict>>;
|
|
1516
1614
|
remoteHead: z.ZodString;
|
|
1517
1615
|
}, z.core.$strict>;
|
|
1518
|
-
}, z.core.$strict
|
|
1616
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1617
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
1618
|
+
result: z.ZodObject<{
|
|
1619
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
1620
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
1621
|
+
}, z.core.$strict>;
|
|
1622
|
+
}, z.core.$strict>], "actionId">;
|
|
1519
1623
|
result: z.ZodLiteral<"ok">;
|
|
1520
1624
|
activeOperationId: z.ZodOptional<z.ZodNever>;
|
|
1521
1625
|
approvalRequired: z.ZodOptional<z.ZodNever>;
|
|
@@ -1870,7 +1974,7 @@ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
1870
1974
|
traceId: z.ZodOptional<z.ZodString>;
|
|
1871
1975
|
kind: z.ZodLiteral<"command">;
|
|
1872
1976
|
operation: z.ZodLiteral<"tool_portal_controller_host_action">;
|
|
1873
|
-
payload: z.ZodObject<{
|
|
1977
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1874
1978
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
1875
1979
|
callerContext: z.ZodObject<{
|
|
1876
1980
|
callerContextId: z.ZodString;
|
|
@@ -1889,7 +1993,25 @@ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
1889
1993
|
}, z.core.$strict>>;
|
|
1890
1994
|
}, z.core.$strict>;
|
|
1891
1995
|
expectedHead: z.ZodString;
|
|
1892
|
-
}, z.core.$strict
|
|
1996
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1997
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
1998
|
+
callerContext: z.ZodObject<{
|
|
1999
|
+
callerContextId: z.ZodString;
|
|
2000
|
+
}, z.core.$strict>;
|
|
2001
|
+
correlation: z.ZodObject<{
|
|
2002
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
2003
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2004
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
sessionKeyDigest: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
2009
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
2010
|
+
name: z.ZodString;
|
|
2011
|
+
namespace: z.ZodString;
|
|
2012
|
+
}, z.core.$strict>>;
|
|
2013
|
+
}, z.core.$strict>;
|
|
2014
|
+
}, z.core.$strict>], "actionId">;
|
|
1893
2015
|
}, z.core.$strict>, z.ZodObject<{
|
|
1894
2016
|
causationId: z.ZodOptional<z.ZodString>;
|
|
1895
2017
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
@@ -2367,7 +2489,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2367
2489
|
traceId: z.ZodOptional<z.ZodString>;
|
|
2368
2490
|
kind: z.ZodLiteral<"command">;
|
|
2369
2491
|
operation: z.ZodLiteral<"tool_portal_controller_host_action">;
|
|
2370
|
-
payload: z.ZodObject<{
|
|
2492
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2371
2493
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
2372
2494
|
callerContext: z.ZodObject<{
|
|
2373
2495
|
callerContextId: z.ZodString;
|
|
@@ -2386,7 +2508,25 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2386
2508
|
}, z.core.$strict>>;
|
|
2387
2509
|
}, z.core.$strict>;
|
|
2388
2510
|
expectedHead: z.ZodString;
|
|
2389
|
-
}, z.core.$strict
|
|
2511
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2512
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
2513
|
+
callerContext: z.ZodObject<{
|
|
2514
|
+
callerContextId: z.ZodString;
|
|
2515
|
+
}, z.core.$strict>;
|
|
2516
|
+
correlation: z.ZodObject<{
|
|
2517
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
2518
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2519
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2520
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
2521
|
+
sessionKeyDigest: z.ZodOptional<z.ZodString>;
|
|
2522
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2523
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
2524
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
2525
|
+
name: z.ZodString;
|
|
2526
|
+
namespace: z.ZodString;
|
|
2527
|
+
}, z.core.$strict>>;
|
|
2528
|
+
}, z.core.$strict>;
|
|
2529
|
+
}, z.core.$strict>], "actionId">;
|
|
2390
2530
|
}, z.core.$strict>, z.ZodObject<{
|
|
2391
2531
|
causationId: z.ZodOptional<z.ZodString>;
|
|
2392
2532
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
@@ -2898,7 +3038,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2898
3038
|
operation: z.ZodLiteral<"tool_portal_controller_host_action">;
|
|
2899
3039
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2900
3040
|
responseToMessageId: z.ZodString;
|
|
2901
|
-
controllerHostAction: z.ZodObject<{
|
|
3041
|
+
controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2902
3042
|
actionId: z.ZodLiteral<"zone_git_push">;
|
|
2903
3043
|
result: z.ZodObject<{
|
|
2904
3044
|
branch: z.ZodString;
|
|
@@ -2909,7 +3049,13 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2909
3049
|
}, z.core.$strict>>;
|
|
2910
3050
|
remoteHead: z.ZodString;
|
|
2911
3051
|
}, z.core.$strict>;
|
|
2912
|
-
}, z.core.$strict
|
|
3052
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3053
|
+
actionId: z.ZodLiteral<"controller_host_probe">;
|
|
3054
|
+
result: z.ZodObject<{
|
|
3055
|
+
entryNames: z.ZodArray<z.ZodString>;
|
|
3056
|
+
probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
|
|
3057
|
+
}, z.core.$strict>;
|
|
3058
|
+
}, z.core.$strict>], "actionId">;
|
|
2913
3059
|
result: z.ZodLiteral<"ok">;
|
|
2914
3060
|
activeOperationId: z.ZodOptional<z.ZodNever>;
|
|
2915
3061
|
approvalRequired: z.ZodOptional<z.ZodNever>;
|
|
@@ -3091,11 +3237,12 @@ type GatewayControlProviderRuntimeHealth = z.infer<typeof GatewayControlProvider
|
|
|
3091
3237
|
type GatewayControlHeartbeatPayload = z.infer<typeof GatewayControlHeartbeatPayloadSchema>;
|
|
3092
3238
|
type GatewayControlHealthEventPayload = z.infer<typeof GatewayControlHealthEventPayloadSchema>;
|
|
3093
3239
|
type GatewayControlRuntimeStatusPayload = z.infer<typeof GatewayControlRuntimeStatusPayloadSchema>;
|
|
3240
|
+
type GatewayControlControllerHostProbeResult = z.infer<typeof GatewayControlControllerHostProbeResultSchema>;
|
|
3094
3241
|
type GatewayControlToolPortalControllerHostActionPayload = z.infer<typeof GatewayControlToolPortalControllerHostActionPayloadSchema>;
|
|
3095
3242
|
type GatewayControlToolPortalControllerHostActionResult = z.infer<typeof GatewayControlToolPortalControllerHostActionResultSchema>;
|
|
3096
3243
|
type GatewayControlZoneGitPushResult = z.infer<typeof GatewayControlZoneGitPushResultSchema>;
|
|
3097
3244
|
declare function buildGatewayControlJsonSchemas(): Readonly<Record<string, unknown>>;
|
|
3098
3245
|
declare function assertGatewayControlDomainRegistered(): 'gateway_control';
|
|
3099
3246
|
//#endregion
|
|
3100
|
-
export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlControllerToGatewayEvents, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlGatewayToControllerEvents, GatewayControlHealthEventPayload, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayload, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayload, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayload, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshot, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseUseEndPayload, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayload, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshot, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayload, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealth, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessage, GatewayControlRpcMessageSchema, GatewayControlRpcOperation, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayload, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayload, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResult, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
|
|
3247
|
+
export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerHostProbeActionResultSchema, GatewayControlControllerHostProbePayloadSchema, GatewayControlControllerHostProbeResult, GatewayControlControllerHostProbeResultSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlControllerToGatewayEvents, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlGatewayToControllerEvents, GatewayControlHealthEventPayload, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayload, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayload, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayload, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshot, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseUseEndPayload, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayload, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshot, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayload, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealth, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessage, GatewayControlRpcMessageSchema, GatewayControlRpcOperation, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayload, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayload, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResult, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushControllerHostActionPayloadSchema, GatewayControlZoneGitPushControllerHostActionResultSchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
|
|
3101
3248
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;cAca,0BAAA,EAA0B,CAAA,CAAA,UAAA;AAAA,cAE1B,gCAAA,EAAgC,CAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;cAkBhC,6BAAA,EAA6B,CAAA,CAAA,OAAA;;;;;;;;;;cAM7B,yCAAA,EAAyC,CAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;;;cAsBzC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAOjC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIvC,0CAAA,EAA0C,CAAA,CAAA,SAAA;AAAA,cAE1C,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAevC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAMpC,+CAAA,EAA+C,CAAA,CAAA,UAAA;AAAA,cAE/C,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAOtC,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;UAQ3C,4CAAA;EAAA,SACP,OAAA;EAAA,SACA,iBAAA;EAAA,SACA,OAAA;EAAA,SACA,UAAA;EAAA,SACA,YAAA;EAAA,SACA,MAAA;AAAA;AAAA,iBAGM,4CAAA,CACf,KAAA,EAAO,4CAAA;AAAA,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,QAClD,+CAAA;AAAA,KAEI,0CAAA,GAA6C,CAAA,CAAE,KAAA,QACnD,gDAAA;AAAA,KAEI,sCAAA,GAAyC,CAAA,CAAE,KAAA,QAC/C,4CAAA;AAAA,KAEI,4BAAA,GAA+B,CAAA,CAAE,KAAA,QAAa,kCAAA;AAAA,KAC9C,2BAAA,GAA8B,CAAA,CAAE,KAAA,QAAa,iCAAA;AAAA,KAC7C,gCAAA,GAAmC,CAAA,CAAE,KAAA,QACzC,sCAAA;AAAA,KAEI,sCAAA,GAAyC,CAAA,CAAE,KAAA,QAC/C,4CAAA;AAAA,KAEI,8BAAA,GAAiC,CAAA,CAAE,KAAA,QAAa,oCAAA;AAAA,KAChD,kCAAA,GAAqC,CAAA,CAAE,KAAA,QAC3C,wCAAA;AAAA,KAEI,mCAAA,GAAsC,CAAA,CAAE,KAAA,QAC5C,yCAAA;AAAA,KAEI,8BAAA,GAAiC,CAAA,CAAE,KAAA,QAAa,oCAAA;AAAA,KAChD,gCAAA,GAAmC,CAAA,CAAE,KAAA,QACzC,sCAAA;AAAA,KAEI,kCAAA,GAAqC,CAAA,CAAE,KAAA,QAC3C,wCAAA;AAAA,KAEI,uCAAA,GAA0C,CAAA,CAAE,KAAA,QAChD,6CAAA;AAAA,KAEI,mDAAA,GAAsD,CAAA,CAAE,KAAA,QAC5D,yDAAA;AAAA,KAEI,kDAAA,GAAqD,CAAA,CAAE,KAAA,QAC3D,wDAAA;AAAA,KAEI,+BAAA,GAAkC,CAAA,CAAE,KAAA,QAAa,qCAAA;AAAA,iBAE7C,8BAAA,CAAA,GAAkC,QAAA,CAAS,MAAA;AAAA,iBAiB3C,oCAAA,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -235,12 +235,18 @@ const GatewayControlRuntimeStatusPayloadSchema = z.object({
|
|
|
235
235
|
]).optional(),
|
|
236
236
|
statusKind: z.string().min(1)
|
|
237
237
|
}).strict();
|
|
238
|
-
const
|
|
238
|
+
const GatewayControlZoneGitPushControllerHostActionPayloadSchema = z.object({
|
|
239
239
|
actionId: z.literal("zone_git_push"),
|
|
240
240
|
callerContext: GatewayControlCallerContextRefSchema,
|
|
241
241
|
correlation: GatewayControlToolCallCorrelationSchema,
|
|
242
242
|
expectedHead: z.string().min(1)
|
|
243
243
|
}).strict();
|
|
244
|
+
const GatewayControlControllerHostProbePayloadSchema = z.object({
|
|
245
|
+
actionId: z.literal("controller_host_probe"),
|
|
246
|
+
callerContext: GatewayControlCallerContextRefSchema,
|
|
247
|
+
correlation: GatewayControlToolCallCorrelationSchema
|
|
248
|
+
}).strict();
|
|
249
|
+
const GatewayControlToolPortalControllerHostActionPayloadSchema = z.discriminatedUnion("actionId", [GatewayControlZoneGitPushControllerHostActionPayloadSchema, GatewayControlControllerHostProbePayloadSchema]);
|
|
244
250
|
const GatewayControlZoneGitCommitSummarySchema = z.object({
|
|
245
251
|
sha: z.string().min(1),
|
|
246
252
|
subject: z.string()
|
|
@@ -251,10 +257,19 @@ const GatewayControlZoneGitPushResultSchema = z.object({
|
|
|
251
257
|
pushedCommits: z.array(GatewayControlZoneGitCommitSummarySchema),
|
|
252
258
|
remoteHead: z.string().min(1)
|
|
253
259
|
}).strict();
|
|
254
|
-
const
|
|
260
|
+
const GatewayControlControllerHostProbeResultSchema = z.object({
|
|
261
|
+
entryNames: z.array(z.string().min(1)).max(64),
|
|
262
|
+
probeKind: z.literal("controller_cache_dir_listing")
|
|
263
|
+
}).strict();
|
|
264
|
+
const GatewayControlZoneGitPushControllerHostActionResultSchema = z.object({
|
|
255
265
|
actionId: z.literal("zone_git_push"),
|
|
256
266
|
result: GatewayControlZoneGitPushResultSchema
|
|
257
267
|
}).strict();
|
|
268
|
+
const GatewayControlControllerHostProbeActionResultSchema = z.object({
|
|
269
|
+
actionId: z.literal("controller_host_probe"),
|
|
270
|
+
result: GatewayControlControllerHostProbeResultSchema
|
|
271
|
+
}).strict();
|
|
272
|
+
const GatewayControlToolPortalControllerHostActionResultSchema = z.discriminatedUnion("actionId", [GatewayControlZoneGitPushControllerHostActionResultSchema, GatewayControlControllerHostProbeActionResultSchema]);
|
|
258
273
|
const GatewayControlActiveOperationIdSchema = z.string().uuid();
|
|
259
274
|
const GatewayInitiatedOperationCancelPayloadSchema = z.object({
|
|
260
275
|
activeOperationId: GatewayControlActiveOperationIdSchema,
|
|
@@ -669,6 +684,6 @@ function assertGatewayControlDomainRegistered() {
|
|
|
669
684
|
return KnownControlDomainSchema.extract(["gateway_control"]).parse("gateway_control");
|
|
670
685
|
}
|
|
671
686
|
//#endregion
|
|
672
|
-
export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessageSchema, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
|
|
687
|
+
export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerHostProbeActionResultSchema, GatewayControlControllerHostProbePayloadSchema, GatewayControlControllerHostProbeResultSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessageSchema, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushControllerHostActionPayloadSchema, GatewayControlZoneGitPushControllerHostActionResultSchema, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
|
|
673
688
|
|
|
674
689
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n\tControlCorrelationSchema,\n\tControlRpcErrorSchema,\n\tControlRpcResultBaseSchema,\n\tControlSessionStateSchema,\n\ttype ControlSessionControllerToPeerEvents,\n\ttype ControlSessionPeerToControllerEvents,\n\tKnownControlDomainSchema,\n\ttype ControlDeliveryPolicy,\n\ttype ControlEnvelope,\n\ttype ControlMessageKind,\n} from '@agent-vm/control-protocol-contracts';\nimport { z } from 'zod/v4';\n\nexport const GatewayControlDomainSchema = z.literal('gateway_control');\n\nexport const GatewayControlRpcOperationSchema = z.enum([\n\t'control_ping',\n\t'caller_context_register',\n\t'lease_create',\n\t'lease_get',\n\t'lease_peek',\n\t'lease_renew',\n\t'lease_release',\n\t'lease_use_start',\n\t'lease_use_heartbeat',\n\t'lease_use_end',\n\t'health_event',\n\t'runtime_status',\n\t'tool_portal_controller_host_action',\n\t'operation_cancel',\n\t'recovery_command',\n]);\n\nexport const GatewayControlRpcResultSchema = z.enum([\n\t...ControlRpcResultBaseSchema.options,\n\t'approval_required',\n\t'approval_stale',\n]);\n\nexport const GatewayControlForbiddenPayloadFieldSchema = z.enum([\n\t'adminToken',\n\t'agentId',\n\t'approvalProof',\n\t'argv',\n\t'controllerInstanceId',\n\t'cwd',\n\t'credentialProfileId',\n\t'egressPolicy',\n\t'env',\n\t'executablePath',\n\t'hostWorkMountDir',\n\t'profileId',\n\t'rawCredentialRef',\n\t'retryPolicy',\n\t'routeToken',\n\t'sessionKey',\n\t'sshIdentityPem',\n\t'vmGenerationOverride',\n\t'workMountDir',\n]);\n\nexport const GatewayControlCapabilityRefSchema = z\n\t.object({\n\t\tname: z.string().min(1),\n\t\tnamespace: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlToolCallCorrelationSchema = ControlCorrelationSchema.extend({\n\tcapability: GatewayControlCapabilityRefSchema.optional(),\n}).strict();\n\nexport const GatewayControlTrustedCallerContextIdSchema = z.string().uuid();\n\nexport const GatewayControlTrustedLeaseContextSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tagentWorkspaceDir: z.string().min(1),\n\t\tapprovalScopeId: z.string().min(1).optional(),\n\t\tcallerContextId: GatewayControlTrustedCallerContextIdSchema,\n\t\tcustodyScopeId: z.string().min(1).optional(),\n\t\thostWorkMountDir: z.string().min(1),\n\t\tprofileId: z.string().min(1),\n\t\tsessionKeyDigest: z.string().min(32),\n\t\tworkMountDir: z.string().min(1),\n\t\tzoneId: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlCallerContextRefSchema = z\n\t.object({\n\t\tcallerContextId: GatewayControlTrustedCallerContextIdSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlCallerContextProofAlgorithmSchema = z.literal('hmac-sha256');\n\nexport const GatewayControlCallerContextProofSchema = z\n\t.object({\n\t\talgorithm: GatewayControlCallerContextProofAlgorithmSchema,\n\t\tdigest: z.string().min(32),\n\t})\n\t.strict();\n\nexport const GatewayControlCallerContextAgentAuthoritySchema = z\n\t.object({\n\t\talgorithm: GatewayControlCallerContextProofAlgorithmSchema,\n\t\tdigest: z.string().min(32),\n\t\tkeyId: z.string().min(1),\n\t})\n\t.strict();\n\nexport interface GatewayControlCallerContextProofPayloadInput {\n\treadonly agentId: string;\n\treadonly agentWorkspaceDir: string;\n\treadonly purpose?: 'tool_vm_lease' | 'tool_portal_controller_host_action' | undefined;\n\treadonly sessionKey: string;\n\treadonly workMountDir: string;\n\treadonly zoneId: string;\n}\n\nexport function buildGatewayControlCallerContextProofPayload(\n\tinput: GatewayControlCallerContextProofPayloadInput,\n): string {\n\tconst purpose = input.purpose ?? 'tool_vm_lease';\n\treturn [\n\t\t'gateway-control-caller-context-v1',\n\t\tinput.zoneId,\n\t\tinput.agentId,\n\t\tinput.agentWorkspaceDir,\n\t\tinput.workMountDir,\n\t\tinput.sessionKey,\n\t\tpurpose,\n\t].join('\\u0000');\n}\n\nexport function buildGatewayControlCallerContextAgentAuthorityPayload(\n\tinput: GatewayControlCallerContextProofPayloadInput,\n): string {\n\tconst purpose = input.purpose ?? 'tool_vm_lease';\n\treturn [\n\t\t'gateway-control-agent-authority-v1',\n\t\tinput.zoneId,\n\t\tinput.agentId,\n\t\tinput.agentWorkspaceDir,\n\t\tinput.workMountDir,\n\t\tinput.sessionKey,\n\t\tpurpose,\n\t].join('\\u0000');\n}\n\nexport const GatewayControlCallerContextRegisterPayloadSchema = z\n\t.object({\n\t\tadapterEvidence: z\n\t\t\t.object({\n\t\t\t\tagentAuthority: GatewayControlCallerContextAgentAuthoritySchema,\n\t\t\t\tagentId: z.string().min(1),\n\t\t\t\tagentWorkspaceDir: z.string().min(1),\n\t\t\t\tproof: GatewayControlCallerContextProofSchema,\n\t\t\t\tpurpose: z.enum(['tool_vm_lease', 'tool_portal_controller_host_action']).optional(),\n\t\t\t\tsessionKey: z.string().min(1),\n\t\t\t\tworkMountDir: z.string().min(1),\n\t\t\t\tzoneId: z.string().min(1),\n\t\t\t})\n\t\t\t.strict(),\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema.optional(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseCreateIntentPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema.optional(),\n\t\tgatewayWorkspaceDir: z.string().min(1).optional(),\n\t\tidleTtlHintMs: z.number().int().positive().optional(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseIdPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tleaseId: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseStartPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema.optional(),\n\t\tleaseId: z.string().min(1),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseHeartbeatPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tleaseId: z.string().min(1),\n\t\tobservedAtMs: z.number().int().positive().optional(),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseEndPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tleaseId: z.string().min(1),\n\t\treason: z.enum(['completed', 'failed', 'cancelled', 'timed_out']),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlHealthEventResultSchema = z.enum([\n\t'ok',\n\t'failed',\n\t'timeout',\n\t'degraded',\n]);\n\nexport const GatewayControlProviderRuntimeHealthSchema = z.enum([\n\t'healthy',\n\t'transitioning',\n\t'unhealthy_recoverable',\n\t'unhealthy_unrecoverable',\n]);\n\nexport const GatewayControlControllerRequestHealthOperationSchema = z.enum([\n\t'zone-git-push',\n\t'lease-create',\n\t'lease-get',\n\t'lease-peek',\n\t'lease-release',\n\t'lease-use-start',\n\t'lease-use-end',\n]);\n\nexport const GatewayControlSessionHealthOperationSchema = z.enum([\n\t'control-session-hello',\n\t'control-session-heartbeat',\n\t'control-session-disconnect',\n\t'control-session-reconnect',\n]);\n\nexport const GatewayControlToolVmSshHealthOperationSchema = z.enum([\n\t'command',\n\t'file-bridge',\n\t'finalize',\n\t'probe',\n]);\n\nconst GatewayControlHealthEventBaseSchema = z\n\t.object({\n\t\tcorrelation: ControlCorrelationSchema.optional(),\n\t\tobservedAtMs: z.number().int().positive(),\n\t\tresult: GatewayControlHealthEventResultSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlHealthEventPayloadSchema = z.discriminatedUnion('eventKind', [\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\tchannelProviderId: z.string().min(1),\n\t\teventKind: z.literal('agent-channel-provider-health'),\n\t\tproviderRuntimeHealth: GatewayControlProviderRuntimeHealthSchema,\n\t\tsafeDetails: z.record(z.string(), z.string()).optional(),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\tattempt: z.number().int().positive(),\n\t\telapsedMs: z.number().int().nonnegative(),\n\t\terrorCode: z.string().min(1).optional(),\n\t\teventKind: z.literal('controller-request'),\n\t\tmaxAttempts: z.number().int().positive(),\n\t\toperation: GatewayControlControllerRequestHealthOperationSchema,\n\t\tstatusCode: z.number().int().positive().optional(),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\telapsedMs: z.number().int().nonnegative(),\n\t\teventKind: z.literal('gateway-control-session'),\n\t\toperation: GatewayControlSessionHealthOperationSchema,\n\t\tsafeDetails: z\n\t\t\t.object({\n\t\t\t\tpeerId: z.string().min(1),\n\t\t\t})\n\t\t\t.catchall(z.string()),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\teventKind: z.literal('gateway-plugin-health'),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\tagentId: z.string().min(1),\n\t\telapsedMs: z.number().int().nonnegative(),\n\t\terrorCode: z.string().min(1).optional(),\n\t\tleaseId: z.string().min(1),\n\t\teventKind: z.literal('tool-vm-ssh'),\n\t\toperation: GatewayControlToolVmSshHealthOperationSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRuntimeFindingSchema = z\n\t.object({\n\t\tid: z.string().min(1),\n\t\tok: z.boolean(),\n\t\tsafeMessage: z.string().min(1).optional(),\n\t\tseverity: z.enum(['info', 'warning', 'error']).optional(),\n\t})\n\t.strict();\n\nexport const GatewayControlRuntimeStatusPayloadSchema = z\n\t.object({\n\t\tfindings: z.array(GatewayControlRuntimeFindingSchema),\n\t\tobservedAtMs: z.number().int().positive(),\n\t\tproviderRuntimeHealth: z\n\t\t\t.enum(['healthy', 'transitioning', 'unhealthy_recoverable', 'unhealthy_unrecoverable'])\n\t\t\t.optional(),\n\t\tstatusKind: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlToolPortalControllerHostActionPayloadSchema = z\n\t.object({\n\t\tactionId: z.literal('zone_git_push'),\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema,\n\t\texpectedHead: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlZoneGitCommitSummarySchema = z\n\t.object({\n\t\tsha: z.string().min(1),\n\t\tsubject: z.string(),\n\t})\n\t.strict();\n\nexport const GatewayControlZoneGitPushResultSchema = z\n\t.object({\n\t\tbranch: z.string().min(1),\n\t\tlocalHead: z.string().min(1),\n\t\tpushedCommits: z.array(GatewayControlZoneGitCommitSummarySchema),\n\t\tremoteHead: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlToolPortalControllerHostActionResultSchema = z\n\t.object({\n\t\tactionId: z.literal('zone_git_push'),\n\t\tresult: GatewayControlZoneGitPushResultSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlActiveOperationIdSchema = z.string().uuid();\n\nexport const GatewayInitiatedOperationCancelPayloadSchema = z\n\t.object({\n\t\tactiveOperationId: GatewayControlActiveOperationIdSchema,\n\t\tinitiatedBy: z.literal('gateway'),\n\t\treason: z.enum(['caller_cancelled', 'gateway_shutdown', 'operation_failed']),\n\t})\n\t.strict();\n\nexport const ControllerInitiatedGatewayOperationCancelPayloadSchema = z\n\t.object({\n\t\tactiveOperationId: GatewayControlActiveOperationIdSchema,\n\t\tinitiatedBy: z.literal('controller'),\n\t\treason: z.enum(['controller_recovery', 'operator_cancelled', 'timeout']),\n\t})\n\t.strict();\n\nexport const GatewayControlOperationCancelPayloadSchema = z.discriminatedUnion('initiatedBy', [\n\tGatewayInitiatedOperationCancelPayloadSchema,\n\tControllerInitiatedGatewayOperationCancelPayloadSchema,\n]);\n\nexport const GatewayControlRecoveryCommandPayloadSchema = z.discriminatedUnion('action', [\n\tz.object({ action: z.literal('refresh_runtime_status') }).strict(),\n\tz.object({ action: z.literal('restart_control_service') }).strict(),\n\tz\n\t\t.object({\n\t\t\taction: z.literal('close_stale_session'),\n\t\t\ttargetSessionId: z.string().uuid(),\n\t\t})\n\t\t.strict(),\n]);\n\nexport const GatewayControlPingPayloadSchema = z.object({}).strict();\n\nexport const GatewayControlHeartbeatPayloadSchema = z\n\t.object({\n\t\telapsedMs: z.number().int().nonnegative().optional(),\n\t\tobservedAtMs: z.number().int().positive(),\n\t})\n\t.strict();\n\nexport const GatewayControlRpcErrorSchema = ControlRpcErrorSchema;\n\nexport const GatewayControlSessionStateSchema = ControlSessionStateSchema;\n\nexport const GatewayControlToolVmSshAccessSchema = z\n\t.object({\n\t\thost: z.string().min(1),\n\t\tidentityPem: z.string().min(1).optional(),\n\t\tknownHostsLine: z.string().optional(),\n\t\tport: z.number().int().positive(),\n\t\tuser: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseSnapshotSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tactiveUseId: z.string().uuid().optional(),\n\t\texpiresAtMs: z.number().int().positive().optional(),\n\t\tidleTtlMs: z.number().int().positive(),\n\t\tleaseId: z.string().min(1),\n\t\tssh: GatewayControlToolVmSshAccessSchema.optional(),\n\t\tstate: z.enum(['idle', 'active', 'expired', 'released']),\n\t\ttcpSlot: z.number().int().nonnegative(),\n\t\ttransport: z.literal('ssh-sandbox'),\n\t\tworkdir: z.string().min(1),\n\t\tzoneId: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseSnapshotSchema = z\n\t.object({\n\t\texpiresAt: z.number().int().positive().optional(),\n\t\theartbeatAfterMs: z.number().int().positive().optional(),\n\t\tleaseId: z.string().min(1),\n\t\tstate: z.enum(['active', 'ended', 'expired']),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseRejectionReasonSchema = z.enum([\n\t'absent',\n\t'generation_stale',\n\t'force_released',\n\t'releasing',\n\t'use_tombstoned',\n\t'runtime_not_ready',\n]);\n\nexport const GatewayControlRpcDomainCorrelationSchema = ControlCorrelationSchema;\n\nconst GatewayControlRpcForbiddenResponseFieldsSchema = {\n\tactiveOperationId: z.never().optional(),\n\tapprovalRequired: z.never().optional(),\n\tcallerContext: z.never().optional(),\n\tcontrollerHostAction: z.never().optional(),\n\terror: z.never().optional(),\n\tlease: z.never().optional(),\n\tleaseRejectionReason: z.never().optional(),\n\tleaseUse: z.never().optional(),\n} as const;\n\nexport const GatewayControlRpcResponseBasePayloadSchema = z.object({\n\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\tresponseToMessageId: z.string().uuid(),\n\tresult: GatewayControlRpcResultSchema,\n});\n\nconst GatewayControlRpcErrorResponseResultSchema = z.enum([\n\t'failed',\n\t'timeout',\n\t'rejected',\n\t'cancelled',\n\t'stale_generation',\n\t'approval_required',\n\t'approval_stale',\n]);\n\nconst GatewayControlRpcResponseCorrelationSchema = z\n\t.object({\n\t\tresponseToMessageId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlRpcBareResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcCallerContextResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcLeaseResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tlease: GatewayControlLeaseSnapshotSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema.optional(),\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema,\n\t\tresult: z.literal('rejected'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema.optional(),\n\t\tresult: z.enum([\n\t\t\t'failed',\n\t\t\t'timeout',\n\t\t\t'cancelled',\n\t\t\t'stale_generation',\n\t\t\t'approval_required',\n\t\t\t'approval_stale',\n\t\t]),\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcLeaseUseResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tleaseUse: GatewayControlLeaseUseSnapshotSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema.optional(),\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema,\n\t\tresult: z.literal('rejected'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema.optional(),\n\t\tresult: z.enum([\n\t\t\t'failed',\n\t\t\t'timeout',\n\t\t\t'cancelled',\n\t\t\t'stale_generation',\n\t\t\t'approval_required',\n\t\t\t'approval_stale',\n\t\t]),\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcControllerHostActionResponsePayloadSchema = z.discriminatedUnion(\n\t'result',\n\t[\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\tcontrollerHostAction: GatewayControlToolPortalControllerHostActionResultSchema,\n\t\t\tresult: z.literal('ok'),\n\t\t}).strict(),\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\terror: GatewayControlRpcErrorSchema,\n\t\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t\t}).strict(),\n\t],\n);\n\nexport const GatewayControlRpcOperationCancelResponsePayloadSchema = z.discriminatedUnion(\n\t'result',\n\t[\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\tactiveOperationId: GatewayControlActiveOperationIdSchema,\n\t\t\tresult: z.literal('ok'),\n\t\t}).strict(),\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\tactiveOperationId: GatewayControlActiveOperationIdSchema.optional(),\n\t\t\terror: GatewayControlRpcErrorSchema,\n\t\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t\t}).strict(),\n\t],\n);\n\nexport const GatewayControlRpcResponsePayloadSchema = z.union([\n\tGatewayControlRpcBareResponsePayloadSchema,\n\tGatewayControlRpcCallerContextResponsePayloadSchema,\n\tGatewayControlRpcLeaseResponsePayloadSchema,\n\tGatewayControlRpcLeaseUseResponsePayloadSchema,\n\tGatewayControlRpcControllerHostActionResponsePayloadSchema,\n\tGatewayControlRpcOperationCancelResponsePayloadSchema,\n]);\n\nconst GatewayControlRpcControlPingCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('control_ping'),\n\t\tpayload: GatewayControlRpcBareResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcCallerContextRegisterCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('caller_context_register'),\n\t\tpayload: GatewayControlRpcCallerContextResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcLeaseCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.enum(['lease_create', 'lease_get', 'lease_peek', 'lease_renew', 'lease_release']),\n\t\tpayload: GatewayControlRpcLeaseResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcLeaseUseCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.enum(['lease_use_start', 'lease_use_heartbeat', 'lease_use_end']),\n\t\tpayload: GatewayControlRpcLeaseUseResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcControllerHostActionCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('tool_portal_controller_host_action'),\n\t\tpayload: GatewayControlRpcControllerHostActionResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcOperationCancelCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('operation_cancel'),\n\t\tpayload: GatewayControlRpcOperationCancelResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcRecoveryCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('recovery_command'),\n\t\tpayload: GatewayControlRpcBareResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlHeartbeatMessageSchema = z\n\t.object({\n\t\tkind: z.literal('heartbeat'),\n\t\toperation: z.never().optional(),\n\t\tpayload: GatewayControlHeartbeatPayloadSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlRpcCommandResultMessageSchema = z.discriminatedUnion('operation', [\n\tGatewayControlRpcControlPingCommandResultMessageSchema,\n\tGatewayControlRpcCallerContextRegisterCommandResultMessageSchema,\n\tGatewayControlRpcLeaseCommandResultMessageSchema,\n\tGatewayControlRpcLeaseUseCommandResultMessageSchema,\n\tGatewayControlRpcControllerHostActionCommandResultMessageSchema,\n\tGatewayControlRpcOperationCancelCommandResultMessageSchema,\n\tGatewayControlRpcRecoveryCommandResultMessageSchema,\n]);\n\nexport const GatewayControlRpcCommandMessageSchema = z.discriminatedUnion('operation', [\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('control_ping'),\n\t\tpayload: GatewayControlPingPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('caller_context_register'),\n\t\tpayload: GatewayControlCallerContextRegisterPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_create'),\n\t\tpayload: GatewayControlLeaseCreateIntentPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_get'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_peek'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_renew'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_release'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_use_start'),\n\t\tpayload: GatewayControlLeaseUseStartPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_use_heartbeat'),\n\t\tpayload: GatewayControlLeaseUseHeartbeatPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_use_end'),\n\t\tpayload: GatewayControlLeaseUseEndPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('tool_portal_controller_host_action'),\n\t\tpayload: GatewayControlToolPortalControllerHostActionPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('operation_cancel'),\n\t\tpayload: GatewayControlOperationCancelPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('recovery_command'),\n\t\tpayload: GatewayControlRecoveryCommandPayloadSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcEventMessageSchema = z.discriminatedUnion('operation', [\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('event'),\n\t\toperation: z.literal('health_event'),\n\t\tpayload: GatewayControlHealthEventPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('event'),\n\t\toperation: z.literal('runtime_status'),\n\t\tpayload: GatewayControlRuntimeStatusPayloadSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlEventOnlyOperationSchema = z.enum(['health_event', 'runtime_status']);\n\nexport const GatewayControlRpcCommandResultOperationSchema =\n\tGatewayControlRpcOperationSchema.exclude(GatewayControlEventOnlyOperationSchema.options);\n\nexport const GatewayControlRpcMessageSchema = z.union([\n\tGatewayControlHeartbeatMessageSchema,\n\tGatewayControlRpcCommandMessageSchema,\n\tGatewayControlRpcEventMessageSchema,\n\tGatewayControlRpcCommandResultMessageSchema,\n]);\n\nexport const gatewayControlDeliveryPolicyByKind = {\n\theartbeat: 'critical_idempotent',\n} as const satisfies Partial<Record<ControlMessageKind, ControlDeliveryPolicy>>;\n\nexport const gatewayControlDeliveryPolicyByOperation = {\n\tcaller_context_register: 'critical_idempotent',\n\tcontrol_ping: 'acked_idempotent',\n\thealth_event: 'append_only_observation',\n\tlease_create: 'critical_idempotent',\n\tlease_get: 'acked_idempotent',\n\tlease_peek: 'acked_idempotent',\n\tlease_release: 'acked_idempotent',\n\tlease_renew: 'single_use_critical',\n\tlease_use_end: 'acked_idempotent',\n\tlease_use_heartbeat: 'single_use_critical',\n\tlease_use_start: 'critical_idempotent',\n\toperation_cancel: 'acked_idempotent',\n\trecovery_command: 'critical_idempotent',\n\truntime_status: 'latest_wins',\n\ttool_portal_controller_host_action: 'single_use_critical',\n} as const satisfies Record<GatewayControlRpcOperation, ControlDeliveryPolicy>;\n\nexport function deriveGatewayControlDeliveryPolicy(\n\tenvelope: Pick<ControlEnvelope, 'idempotencyKey' | 'kind' | 'operation'>,\n): ControlDeliveryPolicy {\n\tif (envelope.operation === 'lease_create' && envelope.idempotencyKey === undefined) {\n\t\treturn 'single_use_critical';\n\t}\n\tconst parsedOperation = GatewayControlRpcOperationSchema.safeParse(envelope.operation);\n\tif (parsedOperation.success) {\n\t\tconst operationPolicy = gatewayControlDeliveryPolicyByOperation[parsedOperation.data];\n\t\tif (operationPolicy !== undefined) {\n\t\t\treturn operationPolicy;\n\t\t}\n\t}\n\tconst kindPolicy =\n\t\tenvelope.kind === 'heartbeat' ? gatewayControlDeliveryPolicyByKind.heartbeat : undefined;\n\tif (kindPolicy !== undefined) {\n\t\treturn kindPolicy;\n\t}\n\tthrow new Error(\n\t\t`no gateway control delivery policy for ${envelope.kind}:${envelope.operation ?? '<none>'}`,\n\t);\n}\n\nexport function assertGatewayControlEnvelopeDeliveryPolicy(envelope: ControlEnvelope): void {\n\tconst derivedPolicy = deriveGatewayControlDeliveryPolicy(envelope);\n\tif (envelope.deliveryPolicy !== derivedPolicy) {\n\t\tthrow new Error(\n\t\t\t`control delivery policy mismatch: ${envelope.deliveryPolicy} !== ${derivedPolicy}`,\n\t\t);\n\t}\n}\n\nexport const gatewayControlCommandExecutionTimeoutMsByOperation = {\n\tcaller_context_register: 5_000,\n\tcontrol_ping: 5_000,\n\thealth_event: 5_000,\n\tlease_create: 180_000,\n\tlease_get: 5_000,\n\tlease_peek: 5_000,\n\tlease_release: 5_000,\n\tlease_renew: 10_000,\n\tlease_use_end: 5_000,\n\tlease_use_heartbeat: 5_000,\n\tlease_use_start: 10_000,\n\toperation_cancel: 5_000,\n\trecovery_command: 10_000,\n\truntime_status: 5_000,\n\ttool_portal_controller_host_action: 120_000,\n} as const satisfies Record<GatewayControlRpcOperation, number>;\n\nexport type GatewayControlRpcOperation = z.infer<typeof GatewayControlRpcOperationSchema>;\nexport type GatewayControlRpcMessage = z.infer<typeof GatewayControlRpcMessageSchema>;\nexport type GatewayControlControllerToGatewayEvents =\n\tControlSessionControllerToPeerEvents<GatewayControlRpcMessage>;\nexport type GatewayControlGatewayToControllerEvents =\n\tControlSessionPeerToControllerEvents<GatewayControlRpcMessage>;\nexport type GatewayControlCallerContextRef = z.infer<typeof GatewayControlCallerContextRefSchema>;\nexport type GatewayControlCallerContextProof = z.infer<\n\ttypeof GatewayControlCallerContextProofSchema\n>;\nexport type GatewayControlCallerContextAgentAuthority = z.infer<\n\ttypeof GatewayControlCallerContextAgentAuthoritySchema\n>;\nexport type GatewayControlCallerContextRegisterPayload = z.infer<\n\ttypeof GatewayControlCallerContextRegisterPayloadSchema\n>;\nexport type GatewayControlLeaseCreateIntentPayload = z.infer<\n\ttypeof GatewayControlLeaseCreateIntentPayloadSchema\n>;\nexport type GatewayControlLeaseIdPayload = z.infer<typeof GatewayControlLeaseIdPayloadSchema>;\nexport type GatewayControlLeaseSnapshot = z.infer<typeof GatewayControlLeaseSnapshotSchema>;\nexport type GatewayControlLeaseUseEndPayload = z.infer<\n\ttypeof GatewayControlLeaseUseEndPayloadSchema\n>;\nexport type GatewayControlLeaseUseHeartbeatPayload = z.infer<\n\ttypeof GatewayControlLeaseUseHeartbeatPayloadSchema\n>;\nexport type GatewayControlLeaseUseSnapshot = z.infer<typeof GatewayControlLeaseUseSnapshotSchema>;\nexport type GatewayControlLeaseUseStartPayload = z.infer<\n\ttypeof GatewayControlLeaseUseStartPayloadSchema\n>;\nexport type GatewayControlProviderRuntimeHealth = z.infer<\n\ttypeof GatewayControlProviderRuntimeHealthSchema\n>;\nexport type GatewayControlHeartbeatPayload = z.infer<typeof GatewayControlHeartbeatPayloadSchema>;\nexport type GatewayControlHealthEventPayload = z.infer<\n\ttypeof GatewayControlHealthEventPayloadSchema\n>;\nexport type GatewayControlRuntimeStatusPayload = z.infer<\n\ttypeof GatewayControlRuntimeStatusPayloadSchema\n>;\nexport type GatewayControlToolPortalControllerHostActionPayload = z.infer<\n\ttypeof GatewayControlToolPortalControllerHostActionPayloadSchema\n>;\nexport type GatewayControlToolPortalControllerHostActionResult = z.infer<\n\ttypeof GatewayControlToolPortalControllerHostActionResultSchema\n>;\nexport type GatewayControlZoneGitPushResult = z.infer<typeof GatewayControlZoneGitPushResultSchema>;\n\nexport function buildGatewayControlJsonSchemas(): Readonly<Record<string, unknown>> {\n\treturn {\n\t\tdomain: z.toJSONSchema(GatewayControlDomainSchema, {\n\t\t\tio: 'input',\n\t\t\tunrepresentable: 'any',\n\t\t}),\n\t\tmessage: z.toJSONSchema(GatewayControlRpcMessageSchema, {\n\t\t\tio: 'input',\n\t\t\tunrepresentable: 'any',\n\t\t}),\n\t\toperation: z.toJSONSchema(GatewayControlRpcOperationSchema, {\n\t\t\tio: 'input',\n\t\t\tunrepresentable: 'any',\n\t\t}),\n\t};\n}\n\nexport function assertGatewayControlDomainRegistered(): 'gateway_control' {\n\treturn KnownControlDomainSchema.extract(['gateway_control']).parse('gateway_control');\n}\n"],"mappings":";;;AAcA,MAAa,6BAA6B,EAAE,QAAQ,kBAAkB;AAEtE,MAAa,mCAAmC,EAAE,KAAK;CACtD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAEF,MAAa,gCAAgC,EAAE,KAAK;CACnD,GAAG,2BAA2B;CAC9B;CACA;CACA,CAAC;AAEF,MAAa,4CAA4C,EAAE,KAAK;CAC/D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAEF,MAAa,oCAAoC,EAC/C,OAAO;CACP,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,WAAW,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC5B,CAAC,CACD,QAAQ;AAEV,MAAa,0CAA0C,yBAAyB,OAAO,EACtF,YAAY,kCAAkC,UAAU,EACxD,CAAC,CAAC,QAAQ;AAEX,MAAa,6CAA6C,EAAE,QAAQ,CAAC,MAAM;AAE3E,MAAa,0CAA0C,EACrD,OAAO;CACP,SAAS,EAA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zE,OAAO,yBAAyB,QAAQ,CAAC,kBAAkB,CAAC,CAAC,MAAM,kBAAkB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n\tControlCorrelationSchema,\n\tControlRpcErrorSchema,\n\tControlRpcResultBaseSchema,\n\tControlSessionStateSchema,\n\ttype ControlSessionControllerToPeerEvents,\n\ttype ControlSessionPeerToControllerEvents,\n\tKnownControlDomainSchema,\n\ttype ControlDeliveryPolicy,\n\ttype ControlEnvelope,\n\ttype ControlMessageKind,\n} from '@agent-vm/control-protocol-contracts';\nimport { z } from 'zod/v4';\n\nexport const GatewayControlDomainSchema = z.literal('gateway_control');\n\nexport const GatewayControlRpcOperationSchema = z.enum([\n\t'control_ping',\n\t'caller_context_register',\n\t'lease_create',\n\t'lease_get',\n\t'lease_peek',\n\t'lease_renew',\n\t'lease_release',\n\t'lease_use_start',\n\t'lease_use_heartbeat',\n\t'lease_use_end',\n\t'health_event',\n\t'runtime_status',\n\t'tool_portal_controller_host_action',\n\t'operation_cancel',\n\t'recovery_command',\n]);\n\nexport const GatewayControlRpcResultSchema = z.enum([\n\t...ControlRpcResultBaseSchema.options,\n\t'approval_required',\n\t'approval_stale',\n]);\n\nexport const GatewayControlForbiddenPayloadFieldSchema = z.enum([\n\t'adminToken',\n\t'agentId',\n\t'approvalProof',\n\t'argv',\n\t'controllerInstanceId',\n\t'cwd',\n\t'credentialProfileId',\n\t'egressPolicy',\n\t'env',\n\t'executablePath',\n\t'hostWorkMountDir',\n\t'profileId',\n\t'rawCredentialRef',\n\t'retryPolicy',\n\t'routeToken',\n\t'sessionKey',\n\t'sshIdentityPem',\n\t'vmGenerationOverride',\n\t'workMountDir',\n]);\n\nexport const GatewayControlCapabilityRefSchema = z\n\t.object({\n\t\tname: z.string().min(1),\n\t\tnamespace: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlToolCallCorrelationSchema = ControlCorrelationSchema.extend({\n\tcapability: GatewayControlCapabilityRefSchema.optional(),\n}).strict();\n\nexport const GatewayControlTrustedCallerContextIdSchema = z.string().uuid();\n\nexport const GatewayControlTrustedLeaseContextSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tagentWorkspaceDir: z.string().min(1),\n\t\tapprovalScopeId: z.string().min(1).optional(),\n\t\tcallerContextId: GatewayControlTrustedCallerContextIdSchema,\n\t\tcustodyScopeId: z.string().min(1).optional(),\n\t\thostWorkMountDir: z.string().min(1),\n\t\tprofileId: z.string().min(1),\n\t\tsessionKeyDigest: z.string().min(32),\n\t\tworkMountDir: z.string().min(1),\n\t\tzoneId: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlCallerContextRefSchema = z\n\t.object({\n\t\tcallerContextId: GatewayControlTrustedCallerContextIdSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlCallerContextProofAlgorithmSchema = z.literal('hmac-sha256');\n\nexport const GatewayControlCallerContextProofSchema = z\n\t.object({\n\t\talgorithm: GatewayControlCallerContextProofAlgorithmSchema,\n\t\tdigest: z.string().min(32),\n\t})\n\t.strict();\n\nexport const GatewayControlCallerContextAgentAuthoritySchema = z\n\t.object({\n\t\talgorithm: GatewayControlCallerContextProofAlgorithmSchema,\n\t\tdigest: z.string().min(32),\n\t\tkeyId: z.string().min(1),\n\t})\n\t.strict();\n\nexport interface GatewayControlCallerContextProofPayloadInput {\n\treadonly agentId: string;\n\treadonly agentWorkspaceDir: string;\n\treadonly purpose?: 'tool_vm_lease' | 'tool_portal_controller_host_action' | undefined;\n\treadonly sessionKey: string;\n\treadonly workMountDir: string;\n\treadonly zoneId: string;\n}\n\nexport function buildGatewayControlCallerContextProofPayload(\n\tinput: GatewayControlCallerContextProofPayloadInput,\n): string {\n\tconst purpose = input.purpose ?? 'tool_vm_lease';\n\treturn [\n\t\t'gateway-control-caller-context-v1',\n\t\tinput.zoneId,\n\t\tinput.agentId,\n\t\tinput.agentWorkspaceDir,\n\t\tinput.workMountDir,\n\t\tinput.sessionKey,\n\t\tpurpose,\n\t].join('\\u0000');\n}\n\nexport function buildGatewayControlCallerContextAgentAuthorityPayload(\n\tinput: GatewayControlCallerContextProofPayloadInput,\n): string {\n\tconst purpose = input.purpose ?? 'tool_vm_lease';\n\treturn [\n\t\t'gateway-control-agent-authority-v1',\n\t\tinput.zoneId,\n\t\tinput.agentId,\n\t\tinput.agentWorkspaceDir,\n\t\tinput.workMountDir,\n\t\tinput.sessionKey,\n\t\tpurpose,\n\t].join('\\u0000');\n}\n\nexport const GatewayControlCallerContextRegisterPayloadSchema = z\n\t.object({\n\t\tadapterEvidence: z\n\t\t\t.object({\n\t\t\t\tagentAuthority: GatewayControlCallerContextAgentAuthoritySchema,\n\t\t\t\tagentId: z.string().min(1),\n\t\t\t\tagentWorkspaceDir: z.string().min(1),\n\t\t\t\tproof: GatewayControlCallerContextProofSchema,\n\t\t\t\tpurpose: z.enum(['tool_vm_lease', 'tool_portal_controller_host_action']).optional(),\n\t\t\t\tsessionKey: z.string().min(1),\n\t\t\t\tworkMountDir: z.string().min(1),\n\t\t\t\tzoneId: z.string().min(1),\n\t\t\t})\n\t\t\t.strict(),\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema.optional(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseCreateIntentPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema.optional(),\n\t\tgatewayWorkspaceDir: z.string().min(1).optional(),\n\t\tidleTtlHintMs: z.number().int().positive().optional(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseIdPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tleaseId: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseStartPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema.optional(),\n\t\tleaseId: z.string().min(1),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseHeartbeatPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tleaseId: z.string().min(1),\n\t\tobservedAtMs: z.number().int().positive().optional(),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseEndPayloadSchema = z\n\t.object({\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tleaseId: z.string().min(1),\n\t\treason: z.enum(['completed', 'failed', 'cancelled', 'timed_out']),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlHealthEventResultSchema = z.enum([\n\t'ok',\n\t'failed',\n\t'timeout',\n\t'degraded',\n]);\n\nexport const GatewayControlProviderRuntimeHealthSchema = z.enum([\n\t'healthy',\n\t'transitioning',\n\t'unhealthy_recoverable',\n\t'unhealthy_unrecoverable',\n]);\n\nexport const GatewayControlControllerRequestHealthOperationSchema = z.enum([\n\t'zone-git-push',\n\t'lease-create',\n\t'lease-get',\n\t'lease-peek',\n\t'lease-release',\n\t'lease-use-start',\n\t'lease-use-end',\n]);\n\nexport const GatewayControlSessionHealthOperationSchema = z.enum([\n\t'control-session-hello',\n\t'control-session-heartbeat',\n\t'control-session-disconnect',\n\t'control-session-reconnect',\n]);\n\nexport const GatewayControlToolVmSshHealthOperationSchema = z.enum([\n\t'command',\n\t'file-bridge',\n\t'finalize',\n\t'probe',\n]);\n\nconst GatewayControlHealthEventBaseSchema = z\n\t.object({\n\t\tcorrelation: ControlCorrelationSchema.optional(),\n\t\tobservedAtMs: z.number().int().positive(),\n\t\tresult: GatewayControlHealthEventResultSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlHealthEventPayloadSchema = z.discriminatedUnion('eventKind', [\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\tchannelProviderId: z.string().min(1),\n\t\teventKind: z.literal('agent-channel-provider-health'),\n\t\tproviderRuntimeHealth: GatewayControlProviderRuntimeHealthSchema,\n\t\tsafeDetails: z.record(z.string(), z.string()).optional(),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\tattempt: z.number().int().positive(),\n\t\telapsedMs: z.number().int().nonnegative(),\n\t\terrorCode: z.string().min(1).optional(),\n\t\teventKind: z.literal('controller-request'),\n\t\tmaxAttempts: z.number().int().positive(),\n\t\toperation: GatewayControlControllerRequestHealthOperationSchema,\n\t\tstatusCode: z.number().int().positive().optional(),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\telapsedMs: z.number().int().nonnegative(),\n\t\teventKind: z.literal('gateway-control-session'),\n\t\toperation: GatewayControlSessionHealthOperationSchema,\n\t\tsafeDetails: z\n\t\t\t.object({\n\t\t\t\tpeerId: z.string().min(1),\n\t\t\t})\n\t\t\t.catchall(z.string()),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\teventKind: z.literal('gateway-plugin-health'),\n\t}).strict(),\n\tGatewayControlHealthEventBaseSchema.extend({\n\t\tagentId: z.string().min(1),\n\t\telapsedMs: z.number().int().nonnegative(),\n\t\terrorCode: z.string().min(1).optional(),\n\t\tleaseId: z.string().min(1),\n\t\teventKind: z.literal('tool-vm-ssh'),\n\t\toperation: GatewayControlToolVmSshHealthOperationSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRuntimeFindingSchema = z\n\t.object({\n\t\tid: z.string().min(1),\n\t\tok: z.boolean(),\n\t\tsafeMessage: z.string().min(1).optional(),\n\t\tseverity: z.enum(['info', 'warning', 'error']).optional(),\n\t})\n\t.strict();\n\nexport const GatewayControlRuntimeStatusPayloadSchema = z\n\t.object({\n\t\tfindings: z.array(GatewayControlRuntimeFindingSchema),\n\t\tobservedAtMs: z.number().int().positive(),\n\t\tproviderRuntimeHealth: z\n\t\t\t.enum(['healthy', 'transitioning', 'unhealthy_recoverable', 'unhealthy_unrecoverable'])\n\t\t\t.optional(),\n\t\tstatusKind: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlZoneGitPushControllerHostActionPayloadSchema = z\n\t.object({\n\t\tactionId: z.literal('zone_git_push'),\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema,\n\t\texpectedHead: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlControllerHostProbePayloadSchema = z\n\t.object({\n\t\tactionId: z.literal('controller_host_probe'),\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tcorrelation: GatewayControlToolCallCorrelationSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlToolPortalControllerHostActionPayloadSchema = z.discriminatedUnion(\n\t'actionId',\n\t[\n\t\tGatewayControlZoneGitPushControllerHostActionPayloadSchema,\n\t\tGatewayControlControllerHostProbePayloadSchema,\n\t],\n);\n\nexport const GatewayControlZoneGitCommitSummarySchema = z\n\t.object({\n\t\tsha: z.string().min(1),\n\t\tsubject: z.string(),\n\t})\n\t.strict();\n\nexport const GatewayControlZoneGitPushResultSchema = z\n\t.object({\n\t\tbranch: z.string().min(1),\n\t\tlocalHead: z.string().min(1),\n\t\tpushedCommits: z.array(GatewayControlZoneGitCommitSummarySchema),\n\t\tremoteHead: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlControllerHostProbeResultSchema = z\n\t.object({\n\t\tentryNames: z.array(z.string().min(1)).max(64),\n\t\tprobeKind: z.literal('controller_cache_dir_listing'),\n\t})\n\t.strict();\n\nexport const GatewayControlZoneGitPushControllerHostActionResultSchema = z\n\t.object({\n\t\tactionId: z.literal('zone_git_push'),\n\t\tresult: GatewayControlZoneGitPushResultSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlControllerHostProbeActionResultSchema = z\n\t.object({\n\t\tactionId: z.literal('controller_host_probe'),\n\t\tresult: GatewayControlControllerHostProbeResultSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlToolPortalControllerHostActionResultSchema = z.discriminatedUnion(\n\t'actionId',\n\t[\n\t\tGatewayControlZoneGitPushControllerHostActionResultSchema,\n\t\tGatewayControlControllerHostProbeActionResultSchema,\n\t],\n);\n\nexport const GatewayControlActiveOperationIdSchema = z.string().uuid();\n\nexport const GatewayInitiatedOperationCancelPayloadSchema = z\n\t.object({\n\t\tactiveOperationId: GatewayControlActiveOperationIdSchema,\n\t\tinitiatedBy: z.literal('gateway'),\n\t\treason: z.enum(['caller_cancelled', 'gateway_shutdown', 'operation_failed']),\n\t})\n\t.strict();\n\nexport const ControllerInitiatedGatewayOperationCancelPayloadSchema = z\n\t.object({\n\t\tactiveOperationId: GatewayControlActiveOperationIdSchema,\n\t\tinitiatedBy: z.literal('controller'),\n\t\treason: z.enum(['controller_recovery', 'operator_cancelled', 'timeout']),\n\t})\n\t.strict();\n\nexport const GatewayControlOperationCancelPayloadSchema = z.discriminatedUnion('initiatedBy', [\n\tGatewayInitiatedOperationCancelPayloadSchema,\n\tControllerInitiatedGatewayOperationCancelPayloadSchema,\n]);\n\nexport const GatewayControlRecoveryCommandPayloadSchema = z.discriminatedUnion('action', [\n\tz.object({ action: z.literal('refresh_runtime_status') }).strict(),\n\tz.object({ action: z.literal('restart_control_service') }).strict(),\n\tz\n\t\t.object({\n\t\t\taction: z.literal('close_stale_session'),\n\t\t\ttargetSessionId: z.string().uuid(),\n\t\t})\n\t\t.strict(),\n]);\n\nexport const GatewayControlPingPayloadSchema = z.object({}).strict();\n\nexport const GatewayControlHeartbeatPayloadSchema = z\n\t.object({\n\t\telapsedMs: z.number().int().nonnegative().optional(),\n\t\tobservedAtMs: z.number().int().positive(),\n\t})\n\t.strict();\n\nexport const GatewayControlRpcErrorSchema = ControlRpcErrorSchema;\n\nexport const GatewayControlSessionStateSchema = ControlSessionStateSchema;\n\nexport const GatewayControlToolVmSshAccessSchema = z\n\t.object({\n\t\thost: z.string().min(1),\n\t\tidentityPem: z.string().min(1).optional(),\n\t\tknownHostsLine: z.string().optional(),\n\t\tport: z.number().int().positive(),\n\t\tuser: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseSnapshotSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tactiveUseId: z.string().uuid().optional(),\n\t\texpiresAtMs: z.number().int().positive().optional(),\n\t\tidleTtlMs: z.number().int().positive(),\n\t\tleaseId: z.string().min(1),\n\t\tssh: GatewayControlToolVmSshAccessSchema.optional(),\n\t\tstate: z.enum(['idle', 'active', 'expired', 'released']),\n\t\ttcpSlot: z.number().int().nonnegative(),\n\t\ttransport: z.literal('ssh-sandbox'),\n\t\tworkdir: z.string().min(1),\n\t\tzoneId: z.string().min(1),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseUseSnapshotSchema = z\n\t.object({\n\t\texpiresAt: z.number().int().positive().optional(),\n\t\theartbeatAfterMs: z.number().int().positive().optional(),\n\t\tleaseId: z.string().min(1),\n\t\tstate: z.enum(['active', 'ended', 'expired']),\n\t\tuseId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlLeaseRejectionReasonSchema = z.enum([\n\t'absent',\n\t'generation_stale',\n\t'force_released',\n\t'releasing',\n\t'use_tombstoned',\n\t'runtime_not_ready',\n]);\n\nexport const GatewayControlRpcDomainCorrelationSchema = ControlCorrelationSchema;\n\nconst GatewayControlRpcForbiddenResponseFieldsSchema = {\n\tactiveOperationId: z.never().optional(),\n\tapprovalRequired: z.never().optional(),\n\tcallerContext: z.never().optional(),\n\tcontrollerHostAction: z.never().optional(),\n\terror: z.never().optional(),\n\tlease: z.never().optional(),\n\tleaseRejectionReason: z.never().optional(),\n\tleaseUse: z.never().optional(),\n} as const;\n\nexport const GatewayControlRpcResponseBasePayloadSchema = z.object({\n\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\tresponseToMessageId: z.string().uuid(),\n\tresult: GatewayControlRpcResultSchema,\n});\n\nconst GatewayControlRpcErrorResponseResultSchema = z.enum([\n\t'failed',\n\t'timeout',\n\t'rejected',\n\t'cancelled',\n\t'stale_generation',\n\t'approval_required',\n\t'approval_stale',\n]);\n\nconst GatewayControlRpcResponseCorrelationSchema = z\n\t.object({\n\t\tresponseToMessageId: z.string().uuid(),\n\t})\n\t.strict();\n\nexport const GatewayControlRpcBareResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcCallerContextResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tcallerContext: GatewayControlCallerContextRefSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcLeaseResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tlease: GatewayControlLeaseSnapshotSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema.optional(),\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema,\n\t\tresult: z.literal('rejected'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema.optional(),\n\t\tresult: z.enum([\n\t\t\t'failed',\n\t\t\t'timeout',\n\t\t\t'cancelled',\n\t\t\t'stale_generation',\n\t\t\t'approval_required',\n\t\t\t'approval_stale',\n\t\t]),\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcLeaseUseResponsePayloadSchema = z.discriminatedUnion('result', [\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\tleaseUse: GatewayControlLeaseUseSnapshotSchema,\n\t\tresult: z.literal('ok'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema.optional(),\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema,\n\t\tresult: z.literal('rejected'),\n\t}).strict(),\n\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\terror: GatewayControlRpcErrorSchema,\n\t\tleaseRejectionReason: GatewayControlLeaseRejectionReasonSchema.optional(),\n\t\tresult: z.enum([\n\t\t\t'failed',\n\t\t\t'timeout',\n\t\t\t'cancelled',\n\t\t\t'stale_generation',\n\t\t\t'approval_required',\n\t\t\t'approval_stale',\n\t\t]),\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcControllerHostActionResponsePayloadSchema = z.discriminatedUnion(\n\t'result',\n\t[\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\tcontrollerHostAction: GatewayControlToolPortalControllerHostActionResultSchema,\n\t\t\tresult: z.literal('ok'),\n\t\t}).strict(),\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\terror: GatewayControlRpcErrorSchema,\n\t\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t\t}).strict(),\n\t],\n);\n\nexport const GatewayControlRpcOperationCancelResponsePayloadSchema = z.discriminatedUnion(\n\t'result',\n\t[\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\tactiveOperationId: GatewayControlActiveOperationIdSchema,\n\t\t\tresult: z.literal('ok'),\n\t\t}).strict(),\n\t\tGatewayControlRpcResponseCorrelationSchema.extend({\n\t\t\t...GatewayControlRpcForbiddenResponseFieldsSchema,\n\t\t\tactiveOperationId: GatewayControlActiveOperationIdSchema.optional(),\n\t\t\terror: GatewayControlRpcErrorSchema,\n\t\t\tresult: GatewayControlRpcErrorResponseResultSchema,\n\t\t}).strict(),\n\t],\n);\n\nexport const GatewayControlRpcResponsePayloadSchema = z.union([\n\tGatewayControlRpcBareResponsePayloadSchema,\n\tGatewayControlRpcCallerContextResponsePayloadSchema,\n\tGatewayControlRpcLeaseResponsePayloadSchema,\n\tGatewayControlRpcLeaseUseResponsePayloadSchema,\n\tGatewayControlRpcControllerHostActionResponsePayloadSchema,\n\tGatewayControlRpcOperationCancelResponsePayloadSchema,\n]);\n\nconst GatewayControlRpcControlPingCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('control_ping'),\n\t\tpayload: GatewayControlRpcBareResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcCallerContextRegisterCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('caller_context_register'),\n\t\tpayload: GatewayControlRpcCallerContextResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcLeaseCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.enum(['lease_create', 'lease_get', 'lease_peek', 'lease_renew', 'lease_release']),\n\t\tpayload: GatewayControlRpcLeaseResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcLeaseUseCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.enum(['lease_use_start', 'lease_use_heartbeat', 'lease_use_end']),\n\t\tpayload: GatewayControlRpcLeaseUseResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcControllerHostActionCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('tool_portal_controller_host_action'),\n\t\tpayload: GatewayControlRpcControllerHostActionResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcOperationCancelCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('operation_cancel'),\n\t\tpayload: GatewayControlRpcOperationCancelResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlRpcRecoveryCommandResultMessageSchema =\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command_result'),\n\t\toperation: z.literal('recovery_command'),\n\t\tpayload: GatewayControlRpcBareResponsePayloadSchema,\n\t}).strict();\n\nconst GatewayControlHeartbeatMessageSchema = z\n\t.object({\n\t\tkind: z.literal('heartbeat'),\n\t\toperation: z.never().optional(),\n\t\tpayload: GatewayControlHeartbeatPayloadSchema,\n\t})\n\t.strict();\n\nexport const GatewayControlRpcCommandResultMessageSchema = z.discriminatedUnion('operation', [\n\tGatewayControlRpcControlPingCommandResultMessageSchema,\n\tGatewayControlRpcCallerContextRegisterCommandResultMessageSchema,\n\tGatewayControlRpcLeaseCommandResultMessageSchema,\n\tGatewayControlRpcLeaseUseCommandResultMessageSchema,\n\tGatewayControlRpcControllerHostActionCommandResultMessageSchema,\n\tGatewayControlRpcOperationCancelCommandResultMessageSchema,\n\tGatewayControlRpcRecoveryCommandResultMessageSchema,\n]);\n\nexport const GatewayControlRpcCommandMessageSchema = z.discriminatedUnion('operation', [\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('control_ping'),\n\t\tpayload: GatewayControlPingPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('caller_context_register'),\n\t\tpayload: GatewayControlCallerContextRegisterPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_create'),\n\t\tpayload: GatewayControlLeaseCreateIntentPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_get'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_peek'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_renew'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_release'),\n\t\tpayload: GatewayControlLeaseIdPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_use_start'),\n\t\tpayload: GatewayControlLeaseUseStartPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_use_heartbeat'),\n\t\tpayload: GatewayControlLeaseUseHeartbeatPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('lease_use_end'),\n\t\tpayload: GatewayControlLeaseUseEndPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('tool_portal_controller_host_action'),\n\t\tpayload: GatewayControlToolPortalControllerHostActionPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('operation_cancel'),\n\t\tpayload: GatewayControlOperationCancelPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('command'),\n\t\toperation: z.literal('recovery_command'),\n\t\tpayload: GatewayControlRecoveryCommandPayloadSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlRpcEventMessageSchema = z.discriminatedUnion('operation', [\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('event'),\n\t\toperation: z.literal('health_event'),\n\t\tpayload: GatewayControlHealthEventPayloadSchema,\n\t}).strict(),\n\tGatewayControlRpcDomainCorrelationSchema.extend({\n\t\tkind: z.literal('event'),\n\t\toperation: z.literal('runtime_status'),\n\t\tpayload: GatewayControlRuntimeStatusPayloadSchema,\n\t}).strict(),\n]);\n\nexport const GatewayControlEventOnlyOperationSchema = z.enum(['health_event', 'runtime_status']);\n\nexport const GatewayControlRpcCommandResultOperationSchema =\n\tGatewayControlRpcOperationSchema.exclude(GatewayControlEventOnlyOperationSchema.options);\n\nexport const GatewayControlRpcMessageSchema = z.union([\n\tGatewayControlHeartbeatMessageSchema,\n\tGatewayControlRpcCommandMessageSchema,\n\tGatewayControlRpcEventMessageSchema,\n\tGatewayControlRpcCommandResultMessageSchema,\n]);\n\nexport const gatewayControlDeliveryPolicyByKind = {\n\theartbeat: 'critical_idempotent',\n} as const satisfies Partial<Record<ControlMessageKind, ControlDeliveryPolicy>>;\n\nexport const gatewayControlDeliveryPolicyByOperation = {\n\tcaller_context_register: 'critical_idempotent',\n\tcontrol_ping: 'acked_idempotent',\n\thealth_event: 'append_only_observation',\n\tlease_create: 'critical_idempotent',\n\tlease_get: 'acked_idempotent',\n\tlease_peek: 'acked_idempotent',\n\tlease_release: 'acked_idempotent',\n\tlease_renew: 'single_use_critical',\n\tlease_use_end: 'acked_idempotent',\n\tlease_use_heartbeat: 'single_use_critical',\n\tlease_use_start: 'critical_idempotent',\n\toperation_cancel: 'acked_idempotent',\n\trecovery_command: 'critical_idempotent',\n\truntime_status: 'latest_wins',\n\ttool_portal_controller_host_action: 'single_use_critical',\n} as const satisfies Record<GatewayControlRpcOperation, ControlDeliveryPolicy>;\n\nexport function deriveGatewayControlDeliveryPolicy(\n\tenvelope: Pick<ControlEnvelope, 'idempotencyKey' | 'kind' | 'operation'>,\n): ControlDeliveryPolicy {\n\tif (envelope.operation === 'lease_create' && envelope.idempotencyKey === undefined) {\n\t\treturn 'single_use_critical';\n\t}\n\tconst parsedOperation = GatewayControlRpcOperationSchema.safeParse(envelope.operation);\n\tif (parsedOperation.success) {\n\t\tconst operationPolicy = gatewayControlDeliveryPolicyByOperation[parsedOperation.data];\n\t\tif (operationPolicy !== undefined) {\n\t\t\treturn operationPolicy;\n\t\t}\n\t}\n\tconst kindPolicy =\n\t\tenvelope.kind === 'heartbeat' ? gatewayControlDeliveryPolicyByKind.heartbeat : undefined;\n\tif (kindPolicy !== undefined) {\n\t\treturn kindPolicy;\n\t}\n\tthrow new Error(\n\t\t`no gateway control delivery policy for ${envelope.kind}:${envelope.operation ?? '<none>'}`,\n\t);\n}\n\nexport function assertGatewayControlEnvelopeDeliveryPolicy(envelope: ControlEnvelope): void {\n\tconst derivedPolicy = deriveGatewayControlDeliveryPolicy(envelope);\n\tif (envelope.deliveryPolicy !== derivedPolicy) {\n\t\tthrow new Error(\n\t\t\t`control delivery policy mismatch: ${envelope.deliveryPolicy} !== ${derivedPolicy}`,\n\t\t);\n\t}\n}\n\nexport const gatewayControlCommandExecutionTimeoutMsByOperation = {\n\tcaller_context_register: 5_000,\n\tcontrol_ping: 5_000,\n\thealth_event: 5_000,\n\tlease_create: 180_000,\n\tlease_get: 5_000,\n\tlease_peek: 5_000,\n\tlease_release: 5_000,\n\tlease_renew: 10_000,\n\tlease_use_end: 5_000,\n\tlease_use_heartbeat: 5_000,\n\tlease_use_start: 10_000,\n\toperation_cancel: 5_000,\n\trecovery_command: 10_000,\n\truntime_status: 5_000,\n\ttool_portal_controller_host_action: 120_000,\n} as const satisfies Record<GatewayControlRpcOperation, number>;\n\nexport type GatewayControlRpcOperation = z.infer<typeof GatewayControlRpcOperationSchema>;\nexport type GatewayControlRpcMessage = z.infer<typeof GatewayControlRpcMessageSchema>;\nexport type GatewayControlControllerToGatewayEvents =\n\tControlSessionControllerToPeerEvents<GatewayControlRpcMessage>;\nexport type GatewayControlGatewayToControllerEvents =\n\tControlSessionPeerToControllerEvents<GatewayControlRpcMessage>;\nexport type GatewayControlCallerContextRef = z.infer<typeof GatewayControlCallerContextRefSchema>;\nexport type GatewayControlCallerContextProof = z.infer<\n\ttypeof GatewayControlCallerContextProofSchema\n>;\nexport type GatewayControlCallerContextAgentAuthority = z.infer<\n\ttypeof GatewayControlCallerContextAgentAuthoritySchema\n>;\nexport type GatewayControlCallerContextRegisterPayload = z.infer<\n\ttypeof GatewayControlCallerContextRegisterPayloadSchema\n>;\nexport type GatewayControlLeaseCreateIntentPayload = z.infer<\n\ttypeof GatewayControlLeaseCreateIntentPayloadSchema\n>;\nexport type GatewayControlLeaseIdPayload = z.infer<typeof GatewayControlLeaseIdPayloadSchema>;\nexport type GatewayControlLeaseSnapshot = z.infer<typeof GatewayControlLeaseSnapshotSchema>;\nexport type GatewayControlLeaseUseEndPayload = z.infer<\n\ttypeof GatewayControlLeaseUseEndPayloadSchema\n>;\nexport type GatewayControlLeaseUseHeartbeatPayload = z.infer<\n\ttypeof GatewayControlLeaseUseHeartbeatPayloadSchema\n>;\nexport type GatewayControlLeaseUseSnapshot = z.infer<typeof GatewayControlLeaseUseSnapshotSchema>;\nexport type GatewayControlLeaseUseStartPayload = z.infer<\n\ttypeof GatewayControlLeaseUseStartPayloadSchema\n>;\nexport type GatewayControlProviderRuntimeHealth = z.infer<\n\ttypeof GatewayControlProviderRuntimeHealthSchema\n>;\nexport type GatewayControlHeartbeatPayload = z.infer<typeof GatewayControlHeartbeatPayloadSchema>;\nexport type GatewayControlHealthEventPayload = z.infer<\n\ttypeof GatewayControlHealthEventPayloadSchema\n>;\nexport type GatewayControlRuntimeStatusPayload = z.infer<\n\ttypeof GatewayControlRuntimeStatusPayloadSchema\n>;\nexport type GatewayControlControllerHostProbeResult = z.infer<\n\ttypeof GatewayControlControllerHostProbeResultSchema\n>;\nexport type GatewayControlToolPortalControllerHostActionPayload = z.infer<\n\ttypeof GatewayControlToolPortalControllerHostActionPayloadSchema\n>;\nexport type GatewayControlToolPortalControllerHostActionResult = z.infer<\n\ttypeof GatewayControlToolPortalControllerHostActionResultSchema\n>;\nexport type GatewayControlZoneGitPushResult = z.infer<typeof GatewayControlZoneGitPushResultSchema>;\n\nexport function buildGatewayControlJsonSchemas(): Readonly<Record<string, unknown>> {\n\treturn {\n\t\tdomain: z.toJSONSchema(GatewayControlDomainSchema, {\n\t\t\tio: 'input',\n\t\t\tunrepresentable: 'any',\n\t\t}),\n\t\tmessage: z.toJSONSchema(GatewayControlRpcMessageSchema, {\n\t\t\tio: 'input',\n\t\t\tunrepresentable: 'any',\n\t\t}),\n\t\toperation: z.toJSONSchema(GatewayControlRpcOperationSchema, {\n\t\t\tio: 'input',\n\t\t\tunrepresentable: 'any',\n\t\t}),\n\t};\n}\n\nexport function assertGatewayControlDomainRegistered(): 'gateway_control' {\n\treturn KnownControlDomainSchema.extract(['gateway_control']).parse('gateway_control');\n}\n"],"mappings":";;;AAcA,MAAa,6BAA6B,EAAE,QAAQ,kBAAkB;AAEtE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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-vm/gateway-control-contracts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
4
4
|
"description": "Gateway control domain contracts for agent-vm Socket.IO sessions.",
|
|
5
5
|
"homepage": "https://github.com/ShravanSunder/agent-vm#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"zod": "^4.4.3",
|
|
33
|
-
"@agent-vm/control-protocol-contracts": "0.0.
|
|
33
|
+
"@agent-vm/control-protocol-contracts": "0.0.110"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"vitest": "^4.1.5"
|