@kici-dev/engine 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +13 -1
  2. package/dist/audit/access-log-policy.js +12 -0
  3. package/dist/audit/retention-policy.js +6 -0
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +8 -7
  6. package/dist/labels.d.ts +7 -0
  7. package/dist/labels.js +11 -2
  8. package/dist/metrics/metric-catalog.generated.d.ts +50 -0
  9. package/dist/metrics/metric-catalog.generated.js +60 -0
  10. package/dist/protocol/analytics-events.d.ts +16 -0
  11. package/dist/protocol/analytics-events.js +20 -0
  12. package/dist/protocol/dashboard-write-operations.d.ts +4 -1
  13. package/dist/protocol/dashboard-write-operations.js +11 -1
  14. package/dist/protocol/messages/access-log.d.ts +16 -0
  15. package/dist/protocol/messages/access-log.js +3 -0
  16. package/dist/protocol/messages/actor.d.ts +2 -0
  17. package/dist/protocol/messages/actor.js +12 -2
  18. package/dist/protocol/messages/auth.d.ts +1 -0
  19. package/dist/protocol/messages/capabilities.d.ts +1 -0
  20. package/dist/protocol/messages/dashboard-global-workflows.d.ts +2 -0
  21. package/dist/protocol/messages/dashboard.d.ts +559 -6
  22. package/dist/protocol/messages/dashboard.js +164 -9
  23. package/dist/protocol/messages/event-log.d.ts +4 -0
  24. package/dist/protocol/messages/event-log.js +4 -0
  25. package/dist/protocol/messages/execution-status.d.ts +56 -3
  26. package/dist/protocol/messages/execution-status.js +44 -4
  27. package/dist/protocol/messages/orchestrator-agent.d.ts +164 -0
  28. package/dist/protocol/messages/orchestrator-agent.js +118 -2
  29. package/dist/protocol/messages/peer.d.ts +13 -0
  30. package/dist/protocol/messages/peer.js +14 -1
  31. package/dist/protocol/messages/platform-orchestrator.d.ts +152 -0
  32. package/dist/protocol/messages/platform-orchestrator.js +3 -55
  33. package/dist/protocol/messages/run-events.d.ts +1 -0
  34. package/dist/provider/index.d.ts +1 -0
  35. package/dist/provider/index.js +2 -1
  36. package/dist/provider/lock-file-parse-error.d.ts +14 -0
  37. package/dist/provider/lock-file-parse-error.js +22 -0
  38. package/dist/trigger/types.d.ts +8 -1
  39. package/dist/trigger/types.js +3 -1
  40. package/dist/ws/close-codes.d.ts +7 -0
  41. package/dist/ws/close-codes.js +8 -1
  42. package/package.json +15 -8
  43. package/sbom.spdx.json +5 -5
@@ -295,6 +295,7 @@ export declare const orchCapabilitiesUpdateSchema: z.ZodObject<{
295
295
  "variables.delete": "variables.delete";
296
296
  "environments.create": "environments.create";
297
297
  "environments.update": "environments.update";
298
+ "environments.test_access.set": "environments.test_access.set";
298
299
  "environments.delete": "environments.delete";
299
300
  "environments.bindings.set": "environments.bindings.set";
300
301
  "environments.source_overrides.set": "environments.source_overrides.set";
@@ -452,6 +453,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
452
453
  type: z.ZodLiteral<"platform_operator">;
453
454
  sub: z.ZodString;
454
455
  reason: z.ZodString;
456
+ sessionId: z.ZodOptional<z.ZodString>;
455
457
  }, z.core.$strip>, z.ZodObject<{
456
458
  type: z.ZodLiteral<"system">;
457
459
  component: z.ZodString;
@@ -474,6 +476,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
474
476
  type: z.ZodLiteral<"platform_operator">;
475
477
  sub: z.ZodString;
476
478
  reason: z.ZodString;
479
+ sessionId: z.ZodOptional<z.ZodString>;
477
480
  }, z.core.$strip>, z.ZodObject<{
478
481
  type: z.ZodLiteral<"system">;
479
482
  component: z.ZodString;
@@ -481,6 +484,76 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
481
484
  runId: z.ZodString;
482
485
  jobId: z.ZodString;
483
486
  stepIndex: z.ZodNumber;
487
+ }, z.core.$strip>, z.ZodObject<{
488
+ type: z.ZodLiteral<"dashboard.runs.list">;
489
+ requestId: z.ZodString;
490
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
491
+ type: z.ZodLiteral<"user">;
492
+ sub: z.ZodString;
493
+ }, z.core.$strip>, z.ZodObject<{
494
+ type: z.ZodLiteral<"api_key">;
495
+ keyId: z.ZodString;
496
+ ownerSub: z.ZodString;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ type: z.ZodLiteral<"service_account">;
499
+ id: z.ZodString;
500
+ }, z.core.$strip>, z.ZodObject<{
501
+ type: z.ZodLiteral<"platform_operator">;
502
+ sub: z.ZodString;
503
+ reason: z.ZodString;
504
+ sessionId: z.ZodOptional<z.ZodString>;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ type: z.ZodLiteral<"system">;
507
+ component: z.ZodString;
508
+ }, z.core.$strip>], "type">;
509
+ limit: z.ZodOptional<z.ZodNumber>;
510
+ cursor: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ type: z.ZodLiteral<"dashboard.runs.filters">;
513
+ requestId: z.ZodString;
514
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
515
+ type: z.ZodLiteral<"user">;
516
+ sub: z.ZodString;
517
+ }, z.core.$strip>, z.ZodObject<{
518
+ type: z.ZodLiteral<"api_key">;
519
+ keyId: z.ZodString;
520
+ ownerSub: z.ZodString;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ type: z.ZodLiteral<"service_account">;
523
+ id: z.ZodString;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ type: z.ZodLiteral<"platform_operator">;
526
+ sub: z.ZodString;
527
+ reason: z.ZodString;
528
+ sessionId: z.ZodOptional<z.ZodString>;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ type: z.ZodLiteral<"system">;
531
+ component: z.ZodString;
532
+ }, z.core.$strip>], "type">;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ type: z.ZodLiteral<"dashboard.sources.list">;
535
+ requestId: z.ZodString;
536
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
537
+ type: z.ZodLiteral<"user">;
538
+ sub: z.ZodString;
539
+ }, z.core.$strip>, z.ZodObject<{
540
+ type: z.ZodLiteral<"api_key">;
541
+ keyId: z.ZodString;
542
+ ownerSub: z.ZodString;
543
+ }, z.core.$strip>, z.ZodObject<{
544
+ type: z.ZodLiteral<"service_account">;
545
+ id: z.ZodString;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ type: z.ZodLiteral<"platform_operator">;
548
+ sub: z.ZodString;
549
+ reason: z.ZodString;
550
+ sessionId: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$strip>, z.ZodObject<{
552
+ type: z.ZodLiteral<"system">;
553
+ component: z.ZodString;
554
+ }, z.core.$strip>], "type">;
555
+ limit: z.ZodOptional<z.ZodNumber>;
556
+ cursor: z.ZodOptional<z.ZodString>;
484
557
  }, z.core.$strip>, z.ZodObject<{
485
558
  type: z.ZodLiteral<"run.rerun.request">;
486
559
  requestId: z.ZodString;
@@ -498,6 +571,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
498
571
  type: z.ZodLiteral<"platform_operator">;
499
572
  sub: z.ZodString;
500
573
  reason: z.ZodString;
574
+ sessionId: z.ZodOptional<z.ZodString>;
501
575
  }, z.core.$strip>, z.ZodObject<{
502
576
  type: z.ZodLiteral<"system">;
503
577
  component: z.ZodString;
@@ -521,6 +595,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
521
595
  type: z.ZodLiteral<"platform_operator">;
522
596
  sub: z.ZodString;
523
597
  reason: z.ZodString;
598
+ sessionId: z.ZodOptional<z.ZodString>;
524
599
  }, z.core.$strip>, z.ZodObject<{
525
600
  type: z.ZodLiteral<"system">;
526
601
  component: z.ZodString;
@@ -543,6 +618,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
543
618
  type: z.ZodLiteral<"platform_operator">;
544
619
  sub: z.ZodString;
545
620
  reason: z.ZodString;
621
+ sessionId: z.ZodOptional<z.ZodString>;
546
622
  }, z.core.$strip>, z.ZodObject<{
547
623
  type: z.ZodLiteral<"system">;
548
624
  component: z.ZodString;
@@ -566,6 +642,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
566
642
  type: z.ZodLiteral<"platform_operator">;
567
643
  sub: z.ZodString;
568
644
  reason: z.ZodString;
645
+ sessionId: z.ZodOptional<z.ZodString>;
569
646
  }, z.core.$strip>, z.ZodObject<{
570
647
  type: z.ZodLiteral<"system">;
571
648
  component: z.ZodString;
@@ -588,6 +665,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
588
665
  type: z.ZodLiteral<"platform_operator">;
589
666
  sub: z.ZodString;
590
667
  reason: z.ZodString;
668
+ sessionId: z.ZodOptional<z.ZodString>;
591
669
  }, z.core.$strip>, z.ZodObject<{
592
670
  type: z.ZodLiteral<"system">;
593
671
  component: z.ZodString;
@@ -611,6 +689,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
611
689
  type: z.ZodLiteral<"platform_operator">;
612
690
  sub: z.ZodString;
613
691
  reason: z.ZodString;
692
+ sessionId: z.ZodOptional<z.ZodString>;
614
693
  }, z.core.$strip>, z.ZodObject<{
615
694
  type: z.ZodLiteral<"system">;
616
695
  component: z.ZodString;
@@ -632,6 +711,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
632
711
  type: z.ZodLiteral<"platform_operator">;
633
712
  sub: z.ZodString;
634
713
  reason: z.ZodString;
714
+ sessionId: z.ZodOptional<z.ZodString>;
635
715
  }, z.core.$strip>, z.ZodObject<{
636
716
  type: z.ZodLiteral<"system">;
637
717
  component: z.ZodString;
@@ -654,6 +734,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
654
734
  type: z.ZodLiteral<"platform_operator">;
655
735
  sub: z.ZodString;
656
736
  reason: z.ZodString;
737
+ sessionId: z.ZodOptional<z.ZodString>;
657
738
  }, z.core.$strip>, z.ZodObject<{
658
739
  type: z.ZodLiteral<"system">;
659
740
  component: z.ZodString;
@@ -691,6 +772,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
691
772
  type: z.ZodLiteral<"platform_operator">;
692
773
  sub: z.ZodString;
693
774
  reason: z.ZodString;
775
+ sessionId: z.ZodOptional<z.ZodString>;
694
776
  }, z.core.$strip>, z.ZodObject<{
695
777
  type: z.ZodLiteral<"system">;
696
778
  component: z.ZodString;
@@ -714,6 +796,30 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
714
796
  holdExpirySeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
715
797
  enabled: z.ZodOptional<z.ZodBoolean>;
716
798
  }, z.core.$strip>;
799
+ }, z.core.$strip>, z.ZodObject<{
800
+ type: z.ZodLiteral<"dashboard.environments.test_access.set">;
801
+ requestId: z.ZodString;
802
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
803
+ type: z.ZodLiteral<"user">;
804
+ sub: z.ZodString;
805
+ }, z.core.$strip>, z.ZodObject<{
806
+ type: z.ZodLiteral<"api_key">;
807
+ keyId: z.ZodString;
808
+ ownerSub: z.ZodString;
809
+ }, z.core.$strip>, z.ZodObject<{
810
+ type: z.ZodLiteral<"service_account">;
811
+ id: z.ZodString;
812
+ }, z.core.$strip>, z.ZodObject<{
813
+ type: z.ZodLiteral<"platform_operator">;
814
+ sub: z.ZodString;
815
+ reason: z.ZodString;
816
+ sessionId: z.ZodOptional<z.ZodString>;
817
+ }, z.core.$strip>, z.ZodObject<{
818
+ type: z.ZodLiteral<"system">;
819
+ component: z.ZodString;
820
+ }, z.core.$strip>], "type">;
821
+ environmentId: z.ZodString;
822
+ allowLocalExecution: z.ZodBoolean;
717
823
  }, z.core.$strip>, z.ZodObject<{
718
824
  type: z.ZodLiteral<"dashboard.environments.delete">;
719
825
  requestId: z.ZodString;
@@ -731,6 +837,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
731
837
  type: z.ZodLiteral<"platform_operator">;
732
838
  sub: z.ZodString;
733
839
  reason: z.ZodString;
840
+ sessionId: z.ZodOptional<z.ZodString>;
734
841
  }, z.core.$strip>, z.ZodObject<{
735
842
  type: z.ZodLiteral<"system">;
736
843
  component: z.ZodString;
@@ -753,6 +860,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
753
860
  type: z.ZodLiteral<"platform_operator">;
754
861
  sub: z.ZodString;
755
862
  reason: z.ZodString;
863
+ sessionId: z.ZodOptional<z.ZodString>;
756
864
  }, z.core.$strip>, z.ZodObject<{
757
865
  type: z.ZodLiteral<"system">;
758
866
  component: z.ZodString;
@@ -775,6 +883,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
775
883
  type: z.ZodLiteral<"platform_operator">;
776
884
  sub: z.ZodString;
777
885
  reason: z.ZodString;
886
+ sessionId: z.ZodOptional<z.ZodString>;
778
887
  }, z.core.$strip>, z.ZodObject<{
779
888
  type: z.ZodLiteral<"system">;
780
889
  component: z.ZodString;
@@ -800,6 +909,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
800
909
  type: z.ZodLiteral<"platform_operator">;
801
910
  sub: z.ZodString;
802
911
  reason: z.ZodString;
912
+ sessionId: z.ZodOptional<z.ZodString>;
803
913
  }, z.core.$strip>, z.ZodObject<{
804
914
  type: z.ZodLiteral<"system">;
805
915
  component: z.ZodString;
@@ -823,6 +933,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
823
933
  type: z.ZodLiteral<"platform_operator">;
824
934
  sub: z.ZodString;
825
935
  reason: z.ZodString;
936
+ sessionId: z.ZodOptional<z.ZodString>;
826
937
  }, z.core.$strip>, z.ZodObject<{
827
938
  type: z.ZodLiteral<"system">;
828
939
  component: z.ZodString;
@@ -846,6 +957,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
846
957
  type: z.ZodLiteral<"platform_operator">;
847
958
  sub: z.ZodString;
848
959
  reason: z.ZodString;
960
+ sessionId: z.ZodOptional<z.ZodString>;
849
961
  }, z.core.$strip>, z.ZodObject<{
850
962
  type: z.ZodLiteral<"system">;
851
963
  component: z.ZodString;
@@ -871,6 +983,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
871
983
  type: z.ZodLiteral<"platform_operator">;
872
984
  sub: z.ZodString;
873
985
  reason: z.ZodString;
986
+ sessionId: z.ZodOptional<z.ZodString>;
874
987
  }, z.core.$strip>, z.ZodObject<{
875
988
  type: z.ZodLiteral<"system">;
876
989
  component: z.ZodString;
@@ -895,6 +1008,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
895
1008
  type: z.ZodLiteral<"platform_operator">;
896
1009
  sub: z.ZodString;
897
1010
  reason: z.ZodString;
1011
+ sessionId: z.ZodOptional<z.ZodString>;
898
1012
  }, z.core.$strip>, z.ZodObject<{
899
1013
  type: z.ZodLiteral<"system">;
900
1014
  component: z.ZodString;
@@ -917,6 +1031,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
917
1031
  type: z.ZodLiteral<"platform_operator">;
918
1032
  sub: z.ZodString;
919
1033
  reason: z.ZodString;
1034
+ sessionId: z.ZodOptional<z.ZodString>;
920
1035
  }, z.core.$strip>, z.ZodObject<{
921
1036
  type: z.ZodLiteral<"system">;
922
1037
  component: z.ZodString;
@@ -940,6 +1055,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
940
1055
  type: z.ZodLiteral<"platform_operator">;
941
1056
  sub: z.ZodString;
942
1057
  reason: z.ZodString;
1058
+ sessionId: z.ZodOptional<z.ZodString>;
943
1059
  }, z.core.$strip>, z.ZodObject<{
944
1060
  type: z.ZodLiteral<"system">;
945
1061
  component: z.ZodString;
@@ -961,6 +1077,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
961
1077
  type: z.ZodLiteral<"platform_operator">;
962
1078
  sub: z.ZodString;
963
1079
  reason: z.ZodString;
1080
+ sessionId: z.ZodOptional<z.ZodString>;
964
1081
  }, z.core.$strip>, z.ZodObject<{
965
1082
  type: z.ZodLiteral<"system">;
966
1083
  component: z.ZodString;
@@ -985,6 +1102,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
985
1102
  type: z.ZodLiteral<"platform_operator">;
986
1103
  sub: z.ZodString;
987
1104
  reason: z.ZodString;
1105
+ sessionId: z.ZodOptional<z.ZodString>;
988
1106
  }, z.core.$strip>, z.ZodObject<{
989
1107
  type: z.ZodLiteral<"system">;
990
1108
  component: z.ZodString;
@@ -1008,6 +1126,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1008
1126
  type: z.ZodLiteral<"platform_operator">;
1009
1127
  sub: z.ZodString;
1010
1128
  reason: z.ZodString;
1129
+ sessionId: z.ZodOptional<z.ZodString>;
1011
1130
  }, z.core.$strip>, z.ZodObject<{
1012
1131
  type: z.ZodLiteral<"system">;
1013
1132
  component: z.ZodString;
@@ -1030,6 +1149,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1030
1149
  type: z.ZodLiteral<"platform_operator">;
1031
1150
  sub: z.ZodString;
1032
1151
  reason: z.ZodString;
1152
+ sessionId: z.ZodOptional<z.ZodString>;
1033
1153
  }, z.core.$strip>, z.ZodObject<{
1034
1154
  type: z.ZodLiteral<"system">;
1035
1155
  component: z.ZodString;
@@ -1053,6 +1173,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1053
1173
  type: z.ZodLiteral<"platform_operator">;
1054
1174
  sub: z.ZodString;
1055
1175
  reason: z.ZodString;
1176
+ sessionId: z.ZodOptional<z.ZodString>;
1056
1177
  }, z.core.$strip>, z.ZodObject<{
1057
1178
  type: z.ZodLiteral<"system">;
1058
1179
  component: z.ZodString;
@@ -1075,6 +1196,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1075
1196
  type: z.ZodLiteral<"platform_operator">;
1076
1197
  sub: z.ZodString;
1077
1198
  reason: z.ZodString;
1199
+ sessionId: z.ZodOptional<z.ZodString>;
1078
1200
  }, z.core.$strip>, z.ZodObject<{
1079
1201
  type: z.ZodLiteral<"system">;
1080
1202
  component: z.ZodString;
@@ -1099,6 +1221,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1099
1221
  type: z.ZodLiteral<"platform_operator">;
1100
1222
  sub: z.ZodString;
1101
1223
  reason: z.ZodString;
1224
+ sessionId: z.ZodOptional<z.ZodString>;
1102
1225
  }, z.core.$strip>, z.ZodObject<{
1103
1226
  type: z.ZodLiteral<"system">;
1104
1227
  component: z.ZodString;
@@ -1131,6 +1254,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1131
1254
  type: z.ZodLiteral<"platform_operator">;
1132
1255
  sub: z.ZodString;
1133
1256
  reason: z.ZodString;
1257
+ sessionId: z.ZodOptional<z.ZodString>;
1134
1258
  }, z.core.$strip>, z.ZodObject<{
1135
1259
  type: z.ZodLiteral<"system">;
1136
1260
  component: z.ZodString;
@@ -1153,6 +1277,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1153
1277
  type: z.ZodLiteral<"platform_operator">;
1154
1278
  sub: z.ZodString;
1155
1279
  reason: z.ZodString;
1280
+ sessionId: z.ZodOptional<z.ZodString>;
1156
1281
  }, z.core.$strip>, z.ZodObject<{
1157
1282
  type: z.ZodLiteral<"system">;
1158
1283
  component: z.ZodString;
@@ -1176,6 +1301,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1176
1301
  type: z.ZodLiteral<"platform_operator">;
1177
1302
  sub: z.ZodString;
1178
1303
  reason: z.ZodString;
1304
+ sessionId: z.ZodOptional<z.ZodString>;
1179
1305
  }, z.core.$strip>, z.ZodObject<{
1180
1306
  type: z.ZodLiteral<"system">;
1181
1307
  component: z.ZodString;
@@ -1199,6 +1325,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1199
1325
  type: z.ZodLiteral<"platform_operator">;
1200
1326
  sub: z.ZodString;
1201
1327
  reason: z.ZodString;
1328
+ sessionId: z.ZodOptional<z.ZodString>;
1202
1329
  }, z.core.$strip>, z.ZodObject<{
1203
1330
  type: z.ZodLiteral<"system">;
1204
1331
  component: z.ZodString;
@@ -1222,6 +1349,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1222
1349
  type: z.ZodLiteral<"platform_operator">;
1223
1350
  sub: z.ZodString;
1224
1351
  reason: z.ZodString;
1352
+ sessionId: z.ZodOptional<z.ZodString>;
1225
1353
  }, z.core.$strip>, z.ZodObject<{
1226
1354
  type: z.ZodLiteral<"system">;
1227
1355
  component: z.ZodString;
@@ -1245,6 +1373,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1245
1373
  type: z.ZodLiteral<"platform_operator">;
1246
1374
  sub: z.ZodString;
1247
1375
  reason: z.ZodString;
1376
+ sessionId: z.ZodOptional<z.ZodString>;
1248
1377
  }, z.core.$strip>, z.ZodObject<{
1249
1378
  type: z.ZodLiteral<"system">;
1250
1379
  component: z.ZodString;
@@ -1267,6 +1396,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1267
1396
  type: z.ZodLiteral<"platform_operator">;
1268
1397
  sub: z.ZodString;
1269
1398
  reason: z.ZodString;
1399
+ sessionId: z.ZodOptional<z.ZodString>;
1270
1400
  }, z.core.$strip>, z.ZodObject<{
1271
1401
  type: z.ZodLiteral<"system">;
1272
1402
  component: z.ZodString;
@@ -1288,6 +1418,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1288
1418
  type: z.ZodLiteral<"platform_operator">;
1289
1419
  sub: z.ZodString;
1290
1420
  reason: z.ZodString;
1421
+ sessionId: z.ZodOptional<z.ZodString>;
1291
1422
  }, z.core.$strip>, z.ZodObject<{
1292
1423
  type: z.ZodLiteral<"system">;
1293
1424
  component: z.ZodString;
@@ -1310,6 +1441,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1310
1441
  type: z.ZodLiteral<"platform_operator">;
1311
1442
  sub: z.ZodString;
1312
1443
  reason: z.ZodString;
1444
+ sessionId: z.ZodOptional<z.ZodString>;
1313
1445
  }, z.core.$strip>, z.ZodObject<{
1314
1446
  type: z.ZodLiteral<"system">;
1315
1447
  component: z.ZodString;
@@ -1331,6 +1463,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1331
1463
  type: z.ZodLiteral<"platform_operator">;
1332
1464
  sub: z.ZodString;
1333
1465
  reason: z.ZodString;
1466
+ sessionId: z.ZodOptional<z.ZodString>;
1334
1467
  }, z.core.$strip>, z.ZodObject<{
1335
1468
  type: z.ZodLiteral<"system">;
1336
1469
  component: z.ZodString;
@@ -1353,6 +1486,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1353
1486
  type: z.ZodLiteral<"platform_operator">;
1354
1487
  sub: z.ZodString;
1355
1488
  reason: z.ZodString;
1489
+ sessionId: z.ZodOptional<z.ZodString>;
1356
1490
  }, z.core.$strip>, z.ZodObject<{
1357
1491
  type: z.ZodLiteral<"system">;
1358
1492
  component: z.ZodString;
@@ -1374,6 +1508,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1374
1508
  type: z.ZodLiteral<"platform_operator">;
1375
1509
  sub: z.ZodString;
1376
1510
  reason: z.ZodString;
1511
+ sessionId: z.ZodOptional<z.ZodString>;
1377
1512
  }, z.core.$strip>, z.ZodObject<{
1378
1513
  type: z.ZodLiteral<"system">;
1379
1514
  component: z.ZodString;
@@ -1396,6 +1531,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1396
1531
  type: z.ZodLiteral<"platform_operator">;
1397
1532
  sub: z.ZodString;
1398
1533
  reason: z.ZodString;
1534
+ sessionId: z.ZodOptional<z.ZodString>;
1399
1535
  }, z.core.$strip>, z.ZodObject<{
1400
1536
  type: z.ZodLiteral<"system">;
1401
1537
  component: z.ZodString;
@@ -1418,6 +1554,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1418
1554
  type: z.ZodLiteral<"platform_operator">;
1419
1555
  sub: z.ZodString;
1420
1556
  reason: z.ZodString;
1557
+ sessionId: z.ZodOptional<z.ZodString>;
1421
1558
  }, z.core.$strip>, z.ZodObject<{
1422
1559
  type: z.ZodLiteral<"system">;
1423
1560
  component: z.ZodString;
@@ -1431,6 +1568,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1431
1568
  processed: "processed";
1432
1569
  duplicate: "duplicate";
1433
1570
  lockfile_missing: "lockfile_missing";
1571
+ lockfile_corrupt: "lockfile_corrupt";
1434
1572
  }>>;
1435
1573
  fromTimestamp: z.ZodOptional<z.ZodString>;
1436
1574
  toTimestamp: z.ZodOptional<z.ZodString>;
@@ -1454,6 +1592,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1454
1592
  type: z.ZodLiteral<"platform_operator">;
1455
1593
  sub: z.ZodString;
1456
1594
  reason: z.ZodString;
1595
+ sessionId: z.ZodOptional<z.ZodString>;
1457
1596
  }, z.core.$strip>, z.ZodObject<{
1458
1597
  type: z.ZodLiteral<"system">;
1459
1598
  component: z.ZodString;
@@ -1478,6 +1617,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1478
1617
  type: z.ZodLiteral<"platform_operator">;
1479
1618
  sub: z.ZodString;
1480
1619
  reason: z.ZodString;
1620
+ sessionId: z.ZodOptional<z.ZodString>;
1481
1621
  }, z.core.$strip>, z.ZodObject<{
1482
1622
  type: z.ZodLiteral<"system">;
1483
1623
  component: z.ZodString;
@@ -1502,6 +1642,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1502
1642
  type: z.ZodLiteral<"platform_operator">;
1503
1643
  sub: z.ZodString;
1504
1644
  reason: z.ZodString;
1645
+ sessionId: z.ZodOptional<z.ZodString>;
1505
1646
  }, z.core.$strip>, z.ZodObject<{
1506
1647
  type: z.ZodLiteral<"system">;
1507
1648
  component: z.ZodString;
@@ -1526,6 +1667,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1526
1667
  type: z.ZodLiteral<"platform_operator">;
1527
1668
  sub: z.ZodString;
1528
1669
  reason: z.ZodString;
1670
+ sessionId: z.ZodOptional<z.ZodString>;
1529
1671
  }, z.core.$strip>, z.ZodObject<{
1530
1672
  type: z.ZodLiteral<"system">;
1531
1673
  component: z.ZodString;
@@ -1548,6 +1690,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1548
1690
  type: z.ZodLiteral<"platform_operator">;
1549
1691
  sub: z.ZodString;
1550
1692
  reason: z.ZodString;
1693
+ sessionId: z.ZodOptional<z.ZodString>;
1551
1694
  }, z.core.$strip>, z.ZodObject<{
1552
1695
  type: z.ZodLiteral<"system">;
1553
1696
  component: z.ZodString;
@@ -1571,6 +1714,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1571
1714
  type: z.ZodLiteral<"platform_operator">;
1572
1715
  sub: z.ZodString;
1573
1716
  reason: z.ZodString;
1717
+ sessionId: z.ZodOptional<z.ZodString>;
1574
1718
  }, z.core.$strip>, z.ZodObject<{
1575
1719
  type: z.ZodLiteral<"system">;
1576
1720
  component: z.ZodString;
@@ -1594,6 +1738,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1594
1738
  type: z.ZodLiteral<"platform_operator">;
1595
1739
  sub: z.ZodString;
1596
1740
  reason: z.ZodString;
1741
+ sessionId: z.ZodOptional<z.ZodString>;
1597
1742
  }, z.core.$strip>, z.ZodObject<{
1598
1743
  type: z.ZodLiteral<"system">;
1599
1744
  component: z.ZodString;
@@ -1615,6 +1760,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1615
1760
  type: z.ZodLiteral<"platform_operator">;
1616
1761
  sub: z.ZodString;
1617
1762
  reason: z.ZodString;
1763
+ sessionId: z.ZodOptional<z.ZodString>;
1618
1764
  }, z.core.$strip>, z.ZodObject<{
1619
1765
  type: z.ZodLiteral<"system">;
1620
1766
  component: z.ZodString;
@@ -1649,6 +1795,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1649
1795
  type: z.ZodLiteral<"platform_operator">;
1650
1796
  sub: z.ZodString;
1651
1797
  reason: z.ZodString;
1798
+ sessionId: z.ZodOptional<z.ZodString>;
1652
1799
  }, z.core.$strip>, z.ZodObject<{
1653
1800
  type: z.ZodLiteral<"system">;
1654
1801
  component: z.ZodString;
@@ -1669,6 +1816,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1669
1816
  "registration.delete": "registration.delete";
1670
1817
  "global_workflows.update": "global_workflows.update";
1671
1818
  "run.detail.read": "run.detail.read";
1819
+ "runs.list.read": "runs.list.read";
1820
+ "runs.filters.read": "runs.filters.read";
1821
+ "sources.list.read": "sources.list.read";
1672
1822
  "run.payload.read": "run.payload.read";
1673
1823
  "run.orch_logs.read": "run.orch_logs.read";
1674
1824
  "step.logs.read": "step.logs.read";
@@ -1962,6 +2112,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
1962
2112
  "variables.delete": "variables.delete";
1963
2113
  "environments.create": "environments.create";
1964
2114
  "environments.update": "environments.update";
2115
+ "environments.test_access.set": "environments.test_access.set";
1965
2116
  "environments.delete": "environments.delete";
1966
2117
  "environments.bindings.set": "environments.bindings.set";
1967
2118
  "environments.source_overrides.set": "environments.source_overrides.set";
@@ -2040,6 +2191,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2040
2191
  "variables.delete": "variables.delete";
2041
2192
  "environments.create": "environments.create";
2042
2193
  "environments.update": "environments.update";
2194
+ "environments.test_access.set": "environments.test_access.set";
2043
2195
  "environments.delete": "environments.delete";
2044
2196
  "environments.bindings.set": "environments.bindings.set";
2045
2197
  "environments.source_overrides.set": "environments.source_overrides.set";
@@ -4,10 +4,8 @@ import { orchCapabilitiesSchema } from "./capabilities.js";
4
4
  import { authFailureSchema, authRequestSchema, authSuccessSchema } from "./auth.js";
5
5
  import { executionStatusSchema, jobStatusForwardSchema, stateReplaySchema, stepStatusForwardSchema } from "./execution-status.js";
6
6
  import { sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema } from "./source-registration.js";
7
- import { dashboardAccessLogListRequestSchema } from "./access-log.js";
8
- import { dashboardOrchLogsRequestSchema, jobContextMessageSchema, runEventMessageSchema } from "./run-events.js";
9
- import { globalWorkflowsGetRequestSchema, globalWorkflowsUpdateRequestSchema } from "./dashboard-global-workflows.js";
10
- import { backendGetRequestSchema, backendSyncRequestSchema, backendTestRequestSchema, backendsListRequestSchema, backendsSyncAllRequestSchema, dashboardDiagnosticsRequestSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardPayloadRequestSchema, dashboardRunDetailRequestSchema, dashboardScalerAgentsRequestSchema, dashboardScalerCapacityRequestSchema, dashboardStepLogsRequestSchema, envBindingsListRequestSchema, envBindingsSetRequestSchema, envCreateRequestSchema, envDeleteRequestSchema, envGetRequestSchema, envHistoryRequestSchema, envListRequestSchema, envSecretDeleteRequestSchema, envSecretScopeCreateRequestSchema, envSecretScopeDeleteRequestSchema, envSecretScopeRenameRequestSchema, envSecretSetRequestSchema, envSecretsListRequestSchema, envSourceOverrideDeleteRequestSchema, envSourceOverrideSetRequestSchema, envSourceOverridesListRequestSchema, envUpdateRequestSchema, envVarDeleteRequestSchema, envVarSetRequestSchema, envVarsListRequestSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, manualScheduleRequestSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationsListRequestSchema, runCancelRequestSchema, runRerunRequestSchema } from "./dashboard.js";
7
+ import { jobContextMessageSchema, runEventMessageSchema } from "./run-events.js";
8
+ import { dashboardPlatformToOrchSchema } from "./dashboard.js";
11
9
  import { z } from "zod";
12
10
  //#region src/protocol/messages/platform-orchestrator.ts
13
11
  /** Trust policy update pushed from Platform to orchestrator when policy or identity links change. */
@@ -329,57 +327,7 @@ const platformToOrchestratorMessageSchema = z.discriminatedUnion("type", [
329
327
  peerDiscoverSchema,
330
328
  peerUpdateSchema,
331
329
  staleCheckrunCleanupSchema,
332
- dashboardRunDetailRequestSchema,
333
- dashboardStepLogsRequestSchema,
334
- runRerunRequestSchema,
335
- manualScheduleRequestSchema,
336
- runCancelRequestSchema,
337
- dashboardPayloadRequestSchema,
338
- dashboardOrchLogsRequestSchema,
339
- envListRequestSchema,
340
- envGetRequestSchema,
341
- envCreateRequestSchema,
342
- envUpdateRequestSchema,
343
- envDeleteRequestSchema,
344
- envVarsListRequestSchema,
345
- envVarSetRequestSchema,
346
- envVarDeleteRequestSchema,
347
- envSourceOverridesListRequestSchema,
348
- envSourceOverrideSetRequestSchema,
349
- envSourceOverrideDeleteRequestSchema,
350
- envBindingsListRequestSchema,
351
- envBindingsSetRequestSchema,
352
- envSecretsListRequestSchema,
353
- envSecretSetRequestSchema,
354
- envSecretDeleteRequestSchema,
355
- envSecretScopeCreateRequestSchema,
356
- envSecretScopeRenameRequestSchema,
357
- envSecretScopeDeleteRequestSchema,
358
- envHistoryRequestSchema,
359
- heldRunsListRequestSchema,
360
- heldRunApproveRequestSchema,
361
- heldRunRejectRequestSchema,
362
- registrationsListRequestSchema,
363
- registrationDisableRequestSchema,
364
- registrationDeleteRequestSchema,
365
- dashboardDiagnosticsRequestSchema,
366
- dashboardScalerCapacityRequestSchema,
367
- dashboardScalerAgentsRequestSchema,
368
- backendsListRequestSchema,
369
- backendGetRequestSchema,
370
- backendsSyncAllRequestSchema,
371
- backendSyncRequestSchema,
372
- backendTestRequestSchema,
373
- dashboardEventLogListRequestSchema,
374
- dashboardEventLogDetailRequestSchema,
375
- dashboardEventLogPayloadStreamRequestSchema,
376
- dashboardEventDlqListRequestSchema,
377
- dashboardEventDlqCountRequestSchema,
378
- dashboardEventDlqRetryRequestSchema,
379
- dashboardEventDlqDiscardRequestSchema,
380
- globalWorkflowsGetRequestSchema,
381
- globalWorkflowsUpdateRequestSchema,
382
- dashboardAccessLogListRequestSchema
330
+ ...dashboardPlatformToOrchSchema.options
383
331
  ]);
384
332
  /** All messages that flow from Orchestrator to Platform.
385
333
  *
@@ -136,6 +136,7 @@ export declare const dashboardOrchLogsRequestSchema: z.ZodObject<{
136
136
  type: z.ZodLiteral<"platform_operator">;
137
137
  sub: z.ZodString;
138
138
  reason: z.ZodString;
139
+ sessionId: z.ZodOptional<z.ZodString>;
139
140
  }, z.core.$strip>, z.ZodObject<{
140
141
  type: z.ZodLiteral<"system">;
141
142
  component: z.ZodString;
@@ -14,6 +14,7 @@
14
14
  export type { ProviderType } from './types.js';
15
15
  export type { WebhookNormalizer, AccessCacheInvalidation } from './webhook-normalizer.js';
16
16
  export type { LockFileFetcher } from './lock-file-fetcher.js';
17
+ export { LockFileParseError } from './lock-file-parse-error.js';
17
18
  export type { ChangedFilesFetcher } from './changed-files-fetcher.js';
18
19
  export type { CloneTokenProvider, ProviderGitAuth } from './clone-token-provider.js';
19
20
  export type { RepoUrlBuilder } from './repo-url-builder.js';
@@ -1,3 +1,4 @@
1
1
  import "../chunk-gOLHoazu.js";
2
+ import { LockFileParseError } from "./lock-file-parse-error.js";
2
3
  import { CheckRunConclusion } from "./check-run-conclusion.js";
3
- export { CheckRunConclusion };
4
+ export { CheckRunConclusion, LockFileParseError };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Thrown by a LockFileFetcher when a lock file is present at the repo ref but
3
+ * cannot be parsed or validated (empty content, invalid JSON, missing/invalid
4
+ * schemaVersion). Distinct from "not found" (the fetcher returns null) and from
5
+ * transient fetch errors (plain Error). The orchestrator routes this to a
6
+ * `lock_resolution` init-failure run.
7
+ */
8
+ export declare class LockFileParseError extends Error {
9
+ readonly repoIdentifier: string;
10
+ readonly ref: string;
11
+ readonly name = "LockFileParseError";
12
+ constructor(repoIdentifier: string, ref: string, message: string);
13
+ }
14
+ //# sourceMappingURL=lock-file-parse-error.d.ts.map
@@ -0,0 +1,22 @@
1
+ import "../chunk-gOLHoazu.js";
2
+ //#region src/provider/lock-file-parse-error.ts
3
+ /**
4
+ * Thrown by a LockFileFetcher when a lock file is present at the repo ref but
5
+ * cannot be parsed or validated (empty content, invalid JSON, missing/invalid
6
+ * schemaVersion). Distinct from "not found" (the fetcher returns null) and from
7
+ * transient fetch errors (plain Error). The orchestrator routes this to a
8
+ * `lock_resolution` init-failure run.
9
+ */
10
+ var LockFileParseError = class LockFileParseError extends Error {
11
+ name = "LockFileParseError";
12
+ constructor(repoIdentifier, ref, message) {
13
+ super(message);
14
+ this.repoIdentifier = repoIdentifier;
15
+ this.ref = ref;
16
+ Object.setPrototypeOf(this, LockFileParseError.prototype);
17
+ }
18
+ };
19
+ //#endregion
20
+ export { LockFileParseError };
21
+
22
+ //# sourceMappingURL=lock-file-parse-error.js.map