@synth-deploy/server 1.0.6 → 1.2.0

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 (97) hide show
  1. package/dist/agent/envoy-client.d.ts +65 -15
  2. package/dist/agent/envoy-client.d.ts.map +1 -1
  3. package/dist/agent/envoy-client.js +58 -8
  4. package/dist/agent/envoy-client.js.map +1 -1
  5. package/dist/agent/stale-deployment-detector.js +1 -1
  6. package/dist/agent/stale-deployment-detector.js.map +1 -1
  7. package/dist/agent/synth-agent.d.ts +7 -5
  8. package/dist/agent/synth-agent.d.ts.map +1 -1
  9. package/dist/agent/synth-agent.js +59 -50
  10. package/dist/agent/synth-agent.js.map +1 -1
  11. package/dist/alert-webhooks/alert-parsers.d.ts +21 -0
  12. package/dist/alert-webhooks/alert-parsers.d.ts.map +1 -0
  13. package/dist/alert-webhooks/alert-parsers.js +184 -0
  14. package/dist/alert-webhooks/alert-parsers.js.map +1 -0
  15. package/dist/api/agent.d.ts +0 -6
  16. package/dist/api/agent.d.ts.map +1 -1
  17. package/dist/api/agent.js +6 -459
  18. package/dist/api/agent.js.map +1 -1
  19. package/dist/api/alert-webhooks.d.ts +13 -0
  20. package/dist/api/alert-webhooks.d.ts.map +1 -0
  21. package/dist/api/alert-webhooks.js +279 -0
  22. package/dist/api/alert-webhooks.js.map +1 -0
  23. package/dist/api/envoy-reports.js +2 -2
  24. package/dist/api/envoy-reports.js.map +1 -1
  25. package/dist/api/envoys.js +1 -1
  26. package/dist/api/envoys.js.map +1 -1
  27. package/dist/api/fleet.d.ts.map +1 -1
  28. package/dist/api/fleet.js +14 -15
  29. package/dist/api/fleet.js.map +1 -1
  30. package/dist/api/graph.js +3 -3
  31. package/dist/api/graph.js.map +1 -1
  32. package/dist/api/operations.d.ts +7 -0
  33. package/dist/api/operations.d.ts.map +1 -0
  34. package/dist/api/operations.js +1900 -0
  35. package/dist/api/operations.js.map +1 -0
  36. package/dist/api/partitions.js +1 -1
  37. package/dist/api/partitions.js.map +1 -1
  38. package/dist/api/schemas.d.ts +434 -133
  39. package/dist/api/schemas.d.ts.map +1 -1
  40. package/dist/api/schemas.js +53 -25
  41. package/dist/api/schemas.js.map +1 -1
  42. package/dist/api/system.d.ts.map +1 -1
  43. package/dist/api/system.js +22 -21
  44. package/dist/api/system.js.map +1 -1
  45. package/dist/artifact-analyzer.js +2 -2
  46. package/dist/artifact-analyzer.js.map +1 -1
  47. package/dist/fleet/fleet-executor.js +3 -3
  48. package/dist/fleet/fleet-executor.js.map +1 -1
  49. package/dist/graph/graph-executor.d.ts.map +1 -1
  50. package/dist/graph/graph-executor.js +18 -4
  51. package/dist/graph/graph-executor.js.map +1 -1
  52. package/dist/index.js +89 -61
  53. package/dist/index.js.map +1 -1
  54. package/dist/mcp/resources.js +3 -3
  55. package/dist/mcp/resources.js.map +1 -1
  56. package/dist/mcp/tools.d.ts.map +1 -1
  57. package/dist/mcp/tools.js +2 -9
  58. package/dist/mcp/tools.js.map +1 -1
  59. package/dist/middleware/auth.js +1 -1
  60. package/dist/middleware/auth.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/agent/envoy-client.ts +111 -19
  63. package/src/agent/stale-deployment-detector.ts +1 -1
  64. package/src/agent/synth-agent.ts +76 -56
  65. package/src/alert-webhooks/alert-parsers.ts +291 -0
  66. package/src/api/agent.ts +9 -528
  67. package/src/api/alert-webhooks.ts +354 -0
  68. package/src/api/envoy-reports.ts +2 -2
  69. package/src/api/envoys.ts +1 -1
  70. package/src/api/fleet.ts +14 -15
  71. package/src/api/graph.ts +3 -3
  72. package/src/api/operations.ts +2260 -0
  73. package/src/api/partitions.ts +1 -1
  74. package/src/api/schemas.ts +59 -27
  75. package/src/api/system.ts +23 -21
  76. package/src/artifact-analyzer.ts +2 -2
  77. package/src/fleet/fleet-executor.ts +3 -3
  78. package/src/graph/graph-executor.ts +18 -4
  79. package/src/index.ts +91 -61
  80. package/src/mcp/resources.ts +3 -3
  81. package/src/mcp/tools.ts +5 -9
  82. package/src/middleware/auth.ts +1 -1
  83. package/tests/agent-mode.test.ts +5 -376
  84. package/tests/api-handlers.test.ts +27 -27
  85. package/tests/composite-operations.test.ts +557 -0
  86. package/tests/decision-diary.test.ts +62 -63
  87. package/tests/diary-reader.test.ts +14 -18
  88. package/tests/mcp-tools.test.ts +1 -1
  89. package/tests/orchestration.test.ts +34 -30
  90. package/tests/partition-isolation.test.ts +4 -9
  91. package/tests/rbac-enforcement.test.ts +8 -8
  92. package/tests/ui-journey.test.ts +9 -9
  93. package/dist/api/deployments.d.ts +0 -11
  94. package/dist/api/deployments.d.ts.map +0 -1
  95. package/dist/api/deployments.js +0 -1098
  96. package/dist/api/deployments.js.map +0 -1
  97. package/src/api/deployments.ts +0 -1347
@@ -435,6 +435,31 @@ export declare const UpdateSettingsSchema: z.ZodObject<{
435
435
  baseUrl?: string | undefined;
436
436
  }[] | undefined;
437
437
  }>>;
438
+ approvalDefaults: z.ZodOptional<z.ZodObject<{
439
+ query: z.ZodOptional<z.ZodEnum<["auto", "required"]>>;
440
+ investigate: z.ZodOptional<z.ZodEnum<["auto", "required"]>>;
441
+ trigger: z.ZodOptional<z.ZodEnum<["auto", "required"]>>;
442
+ deploy: z.ZodOptional<z.ZodEnum<["auto", "required"]>>;
443
+ maintain: z.ZodOptional<z.ZodEnum<["auto", "required"]>>;
444
+ composite: z.ZodOptional<z.ZodEnum<["auto", "required"]>>;
445
+ environmentOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["auto", "required"]>>>>>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ deploy?: "auto" | "required" | undefined;
448
+ query?: "auto" | "required" | undefined;
449
+ investigate?: "auto" | "required" | undefined;
450
+ maintain?: "auto" | "required" | undefined;
451
+ trigger?: "auto" | "required" | undefined;
452
+ composite?: "auto" | "required" | undefined;
453
+ environmentOverrides?: Record<string, Record<string, "auto" | "required"> | undefined> | undefined;
454
+ }, {
455
+ deploy?: "auto" | "required" | undefined;
456
+ query?: "auto" | "required" | undefined;
457
+ investigate?: "auto" | "required" | undefined;
458
+ maintain?: "auto" | "required" | undefined;
459
+ trigger?: "auto" | "required" | undefined;
460
+ composite?: "auto" | "required" | undefined;
461
+ environmentOverrides?: Record<string, Record<string, "auto" | "required"> | undefined> | undefined;
462
+ }>>;
438
463
  }, "strip", z.ZodTypeAny, {
439
464
  llm?: {
440
465
  provider?: "custom" | "claude" | "openai" | "gemini" | "grok" | "deepseek" | "ollama" | undefined;
@@ -499,6 +524,15 @@ export declare const UpdateSettingsSchema: z.ZodObject<{
499
524
  name: string;
500
525
  description?: string | undefined;
501
526
  }[] | undefined;
527
+ approvalDefaults?: {
528
+ deploy?: "auto" | "required" | undefined;
529
+ query?: "auto" | "required" | undefined;
530
+ investigate?: "auto" | "required" | undefined;
531
+ maintain?: "auto" | "required" | undefined;
532
+ trigger?: "auto" | "required" | undefined;
533
+ composite?: "auto" | "required" | undefined;
534
+ environmentOverrides?: Record<string, Record<string, "auto" | "required"> | undefined> | undefined;
535
+ } | undefined;
502
536
  }, {
503
537
  llm?: {
504
538
  provider?: "custom" | "claude" | "openai" | "gemini" | "grok" | "deepseek" | "ollama" | undefined;
@@ -563,6 +597,15 @@ export declare const UpdateSettingsSchema: z.ZodObject<{
563
597
  name: string;
564
598
  description?: string | undefined;
565
599
  }[] | undefined;
600
+ approvalDefaults?: {
601
+ deploy?: "auto" | "required" | undefined;
602
+ query?: "auto" | "required" | undefined;
603
+ investigate?: "auto" | "required" | undefined;
604
+ maintain?: "auto" | "required" | undefined;
605
+ trigger?: "auto" | "required" | undefined;
606
+ composite?: "auto" | "required" | undefined;
607
+ environmentOverrides?: Record<string, Record<string, "auto" | "required"> | undefined> | undefined;
608
+ } | undefined;
566
609
  }>;
567
610
  export declare const UpdateArtifactSchema: z.ZodObject<{
568
611
  name: z.ZodOptional<z.ZodString>;
@@ -599,6 +642,144 @@ export declare const CreateDeploymentSchema: z.ZodObject<{
599
642
  partitionId?: string | undefined;
600
643
  envoyId?: string | undefined;
601
644
  }>;
645
+ export declare const CreateOperationSchema: z.ZodObject<{
646
+ artifactId: z.ZodOptional<z.ZodString>;
647
+ environmentId: z.ZodOptional<z.ZodString>;
648
+ partitionId: z.ZodOptional<z.ZodString>;
649
+ envoyId: z.ZodOptional<z.ZodString>;
650
+ version: z.ZodOptional<z.ZodString>;
651
+ type: z.ZodDefault<z.ZodEnum<["deploy", "maintain", "query", "investigate", "trigger", "composite"]>>;
652
+ intent: z.ZodOptional<z.ZodString>;
653
+ allowWrite: z.ZodOptional<z.ZodBoolean>;
654
+ /** Trigger-specific: condition expression (e.g. "disk_usage > 85") */
655
+ condition: z.ZodOptional<z.ZodString>;
656
+ /** Trigger-specific: what to do when the condition fires */
657
+ responseIntent: z.ZodOptional<z.ZodString>;
658
+ /** Parent operation that spawned this one (e.g. investigation → resolution) */
659
+ parentOperationId: z.ZodOptional<z.ZodString>;
660
+ /** Override to require manual approval even when auto-approve would apply */
661
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
662
+ /** Composite-specific: child operations to execute sequentially */
663
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
664
+ type: z.ZodLiteral<"deploy">;
665
+ artifactId: z.ZodString;
666
+ artifactVersionId: z.ZodOptional<z.ZodString>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ artifactId: string;
669
+ type: "deploy";
670
+ artifactVersionId?: string | undefined;
671
+ }, {
672
+ artifactId: string;
673
+ type: "deploy";
674
+ artifactVersionId?: string | undefined;
675
+ }>, z.ZodObject<{
676
+ type: z.ZodLiteral<"maintain">;
677
+ intent: z.ZodString;
678
+ }, "strip", z.ZodTypeAny, {
679
+ type: "maintain";
680
+ intent: string;
681
+ }, {
682
+ type: "maintain";
683
+ intent: string;
684
+ }>, z.ZodObject<{
685
+ type: z.ZodLiteral<"query">;
686
+ intent: z.ZodString;
687
+ }, "strip", z.ZodTypeAny, {
688
+ type: "query";
689
+ intent: string;
690
+ }, {
691
+ type: "query";
692
+ intent: string;
693
+ }>, z.ZodObject<{
694
+ type: z.ZodLiteral<"investigate">;
695
+ intent: z.ZodString;
696
+ allowWrite: z.ZodOptional<z.ZodBoolean>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type: "investigate";
699
+ intent: string;
700
+ allowWrite?: boolean | undefined;
701
+ }, {
702
+ type: "investigate";
703
+ intent: string;
704
+ allowWrite?: boolean | undefined;
705
+ }>, z.ZodObject<{
706
+ type: z.ZodLiteral<"trigger">;
707
+ condition: z.ZodString;
708
+ responseIntent: z.ZodString;
709
+ }, "strip", z.ZodTypeAny, {
710
+ type: "trigger";
711
+ condition: string;
712
+ responseIntent: string;
713
+ }, {
714
+ type: "trigger";
715
+ condition: string;
716
+ responseIntent: string;
717
+ }>]>, "many">>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ type: "deploy" | "query" | "investigate" | "maintain" | "trigger" | "composite";
720
+ artifactId?: string | undefined;
721
+ version?: string | undefined;
722
+ environmentId?: string | undefined;
723
+ partitionId?: string | undefined;
724
+ envoyId?: string | undefined;
725
+ intent?: string | undefined;
726
+ allowWrite?: boolean | undefined;
727
+ condition?: string | undefined;
728
+ responseIntent?: string | undefined;
729
+ parentOperationId?: string | undefined;
730
+ requireApproval?: boolean | undefined;
731
+ operations?: ({
732
+ artifactId: string;
733
+ type: "deploy";
734
+ artifactVersionId?: string | undefined;
735
+ } | {
736
+ type: "maintain";
737
+ intent: string;
738
+ } | {
739
+ type: "query";
740
+ intent: string;
741
+ } | {
742
+ type: "investigate";
743
+ intent: string;
744
+ allowWrite?: boolean | undefined;
745
+ } | {
746
+ type: "trigger";
747
+ condition: string;
748
+ responseIntent: string;
749
+ })[] | undefined;
750
+ }, {
751
+ artifactId?: string | undefined;
752
+ version?: string | undefined;
753
+ environmentId?: string | undefined;
754
+ type?: "deploy" | "query" | "investigate" | "maintain" | "trigger" | "composite" | undefined;
755
+ partitionId?: string | undefined;
756
+ envoyId?: string | undefined;
757
+ intent?: string | undefined;
758
+ allowWrite?: boolean | undefined;
759
+ condition?: string | undefined;
760
+ responseIntent?: string | undefined;
761
+ parentOperationId?: string | undefined;
762
+ requireApproval?: boolean | undefined;
763
+ operations?: ({
764
+ artifactId: string;
765
+ type: "deploy";
766
+ artifactVersionId?: string | undefined;
767
+ } | {
768
+ type: "maintain";
769
+ intent: string;
770
+ } | {
771
+ type: "query";
772
+ intent: string;
773
+ } | {
774
+ type: "investigate";
775
+ intent: string;
776
+ allowWrite?: boolean | undefined;
777
+ } | {
778
+ type: "trigger";
779
+ condition: string;
780
+ responseIntent: string;
781
+ })[] | undefined;
782
+ }>;
602
783
  export declare const ApproveDeploymentSchema: z.ZodObject<{
603
784
  approvedBy: z.ZodString;
604
785
  modifications: z.ZodOptional<z.ZodString>;
@@ -617,66 +798,80 @@ export declare const RejectDeploymentSchema: z.ZodObject<{
617
798
  reason: string;
618
799
  }>;
619
800
  export declare const ModifyDeploymentPlanSchema: z.ZodObject<{
620
- steps: z.ZodArray<z.ZodObject<{
621
- description: z.ZodString;
622
- action: z.ZodString;
623
- target: z.ZodString;
624
- reversible: z.ZodBoolean;
625
- rollbackAction: z.ZodOptional<z.ZodString>;
626
- }, "strip", z.ZodTypeAny, {
627
- target: string;
628
- description: string;
629
- action: string;
630
- reversible: boolean;
631
- rollbackAction?: string | undefined;
632
- }, {
633
- target: string;
634
- description: string;
635
- action: string;
636
- reversible: boolean;
637
- rollbackAction?: string | undefined;
638
- }>, "many">;
801
+ executionScript: z.ZodString;
802
+ rollbackScript: z.ZodOptional<z.ZodString>;
639
803
  reason: z.ZodString;
640
804
  }, "strip", z.ZodTypeAny, {
641
- steps: {
642
- target: string;
643
- description: string;
644
- action: string;
645
- reversible: boolean;
646
- rollbackAction?: string | undefined;
647
- }[];
648
805
  reason: string;
806
+ executionScript: string;
807
+ rollbackScript?: string | undefined;
649
808
  }, {
650
- steps: {
651
- target: string;
652
- description: string;
653
- action: string;
654
- reversible: boolean;
655
- rollbackAction?: string | undefined;
656
- }[];
657
809
  reason: string;
810
+ executionScript: string;
811
+ rollbackScript?: string | undefined;
658
812
  }>;
659
813
  export declare const SubmitPlanSchema: z.ZodObject<{
660
814
  plan: z.ZodObject<{
661
- steps: z.ZodArray<z.ZodObject<{
662
- description: z.ZodString;
663
- action: z.ZodString;
664
- target: z.ZodString;
665
- reversible: z.ZodBoolean;
666
- rollbackAction: z.ZodOptional<z.ZodString>;
815
+ scriptedPlan: z.ZodObject<{
816
+ platform: z.ZodEnum<["bash", "powershell"]>;
817
+ executionScript: z.ZodString;
818
+ dryRunScript: z.ZodNullable<z.ZodString>;
819
+ rollbackScript: z.ZodNullable<z.ZodString>;
820
+ reasoning: z.ZodString;
821
+ stepSummary: z.ZodArray<z.ZodObject<{
822
+ description: z.ZodString;
823
+ reversible: z.ZodBoolean;
824
+ }, "strip", z.ZodTypeAny, {
825
+ description: string;
826
+ reversible: boolean;
827
+ }, {
828
+ description: string;
829
+ reversible: boolean;
830
+ }>, "many">;
831
+ diffFromCurrent: z.ZodOptional<z.ZodArray<z.ZodObject<{
832
+ key: z.ZodString;
833
+ from: z.ZodString;
834
+ to: z.ZodString;
835
+ }, "strip", z.ZodTypeAny, {
836
+ from: string;
837
+ to: string;
838
+ key: string;
839
+ }, {
840
+ from: string;
841
+ to: string;
842
+ key: string;
843
+ }>, "many">>;
667
844
  }, "strip", z.ZodTypeAny, {
668
- target: string;
669
- description: string;
670
- action: string;
671
- reversible: boolean;
672
- rollbackAction?: string | undefined;
845
+ executionScript: string;
846
+ rollbackScript: string | null;
847
+ platform: "bash" | "powershell";
848
+ dryRunScript: string | null;
849
+ reasoning: string;
850
+ stepSummary: {
851
+ description: string;
852
+ reversible: boolean;
853
+ }[];
854
+ diffFromCurrent?: {
855
+ from: string;
856
+ to: string;
857
+ key: string;
858
+ }[] | undefined;
673
859
  }, {
674
- target: string;
675
- description: string;
676
- action: string;
677
- reversible: boolean;
678
- rollbackAction?: string | undefined;
679
- }>, "many">;
860
+ executionScript: string;
861
+ rollbackScript: string | null;
862
+ platform: "bash" | "powershell";
863
+ dryRunScript: string | null;
864
+ reasoning: string;
865
+ stepSummary: {
866
+ description: string;
867
+ reversible: boolean;
868
+ }[];
869
+ diffFromCurrent?: {
870
+ from: string;
871
+ to: string;
872
+ key: string;
873
+ }[] | undefined;
874
+ }>;
680
875
  reasoning: z.ZodString;
681
876
  diffFromCurrent: z.ZodOptional<z.ZodArray<z.ZodObject<{
682
877
  key: z.ZodString;
@@ -693,14 +888,23 @@ export declare const SubmitPlanSchema: z.ZodObject<{
693
888
  }>, "many">>;
694
889
  diffFromPreviousPlan: z.ZodOptional<z.ZodString>;
695
890
  }, "strip", z.ZodTypeAny, {
696
- steps: {
697
- target: string;
698
- description: string;
699
- action: string;
700
- reversible: boolean;
701
- rollbackAction?: string | undefined;
702
- }[];
703
891
  reasoning: string;
892
+ scriptedPlan: {
893
+ executionScript: string;
894
+ rollbackScript: string | null;
895
+ platform: "bash" | "powershell";
896
+ dryRunScript: string | null;
897
+ reasoning: string;
898
+ stepSummary: {
899
+ description: string;
900
+ reversible: boolean;
901
+ }[];
902
+ diffFromCurrent?: {
903
+ from: string;
904
+ to: string;
905
+ key: string;
906
+ }[] | undefined;
907
+ };
704
908
  diffFromCurrent?: {
705
909
  from: string;
706
910
  to: string;
@@ -708,14 +912,23 @@ export declare const SubmitPlanSchema: z.ZodObject<{
708
912
  }[] | undefined;
709
913
  diffFromPreviousPlan?: string | undefined;
710
914
  }, {
711
- steps: {
712
- target: string;
713
- description: string;
714
- action: string;
715
- reversible: boolean;
716
- rollbackAction?: string | undefined;
717
- }[];
718
915
  reasoning: string;
916
+ scriptedPlan: {
917
+ executionScript: string;
918
+ rollbackScript: string | null;
919
+ platform: "bash" | "powershell";
920
+ dryRunScript: string | null;
921
+ reasoning: string;
922
+ stepSummary: {
923
+ description: string;
924
+ reversible: boolean;
925
+ }[];
926
+ diffFromCurrent?: {
927
+ from: string;
928
+ to: string;
929
+ key: string;
930
+ }[] | undefined;
931
+ };
719
932
  diffFromCurrent?: {
720
933
  from: string;
721
934
  to: string;
@@ -724,55 +937,123 @@ export declare const SubmitPlanSchema: z.ZodObject<{
724
937
  diffFromPreviousPlan?: string | undefined;
725
938
  }>;
726
939
  rollbackPlan: z.ZodObject<{
727
- steps: z.ZodArray<z.ZodObject<{
728
- description: z.ZodString;
729
- action: z.ZodString;
730
- target: z.ZodString;
731
- reversible: z.ZodBoolean;
732
- rollbackAction: z.ZodOptional<z.ZodString>;
940
+ scriptedPlan: z.ZodObject<{
941
+ platform: z.ZodEnum<["bash", "powershell"]>;
942
+ executionScript: z.ZodString;
943
+ dryRunScript: z.ZodNullable<z.ZodString>;
944
+ rollbackScript: z.ZodNullable<z.ZodString>;
945
+ reasoning: z.ZodString;
946
+ stepSummary: z.ZodArray<z.ZodObject<{
947
+ description: z.ZodString;
948
+ reversible: z.ZodBoolean;
949
+ }, "strip", z.ZodTypeAny, {
950
+ description: string;
951
+ reversible: boolean;
952
+ }, {
953
+ description: string;
954
+ reversible: boolean;
955
+ }>, "many">;
956
+ diffFromCurrent: z.ZodOptional<z.ZodArray<z.ZodObject<{
957
+ key: z.ZodString;
958
+ from: z.ZodString;
959
+ to: z.ZodString;
960
+ }, "strip", z.ZodTypeAny, {
961
+ from: string;
962
+ to: string;
963
+ key: string;
964
+ }, {
965
+ from: string;
966
+ to: string;
967
+ key: string;
968
+ }>, "many">>;
733
969
  }, "strip", z.ZodTypeAny, {
734
- target: string;
735
- description: string;
736
- action: string;
737
- reversible: boolean;
738
- rollbackAction?: string | undefined;
970
+ executionScript: string;
971
+ rollbackScript: string | null;
972
+ platform: "bash" | "powershell";
973
+ dryRunScript: string | null;
974
+ reasoning: string;
975
+ stepSummary: {
976
+ description: string;
977
+ reversible: boolean;
978
+ }[];
979
+ diffFromCurrent?: {
980
+ from: string;
981
+ to: string;
982
+ key: string;
983
+ }[] | undefined;
739
984
  }, {
740
- target: string;
741
- description: string;
742
- action: string;
743
- reversible: boolean;
744
- rollbackAction?: string | undefined;
745
- }>, "many">;
985
+ executionScript: string;
986
+ rollbackScript: string | null;
987
+ platform: "bash" | "powershell";
988
+ dryRunScript: string | null;
989
+ reasoning: string;
990
+ stepSummary: {
991
+ description: string;
992
+ reversible: boolean;
993
+ }[];
994
+ diffFromCurrent?: {
995
+ from: string;
996
+ to: string;
997
+ key: string;
998
+ }[] | undefined;
999
+ }>;
746
1000
  reasoning: z.ZodString;
747
1001
  }, "strip", z.ZodTypeAny, {
748
- steps: {
749
- target: string;
750
- description: string;
751
- action: string;
752
- reversible: boolean;
753
- rollbackAction?: string | undefined;
754
- }[];
755
1002
  reasoning: string;
1003
+ scriptedPlan: {
1004
+ executionScript: string;
1005
+ rollbackScript: string | null;
1006
+ platform: "bash" | "powershell";
1007
+ dryRunScript: string | null;
1008
+ reasoning: string;
1009
+ stepSummary: {
1010
+ description: string;
1011
+ reversible: boolean;
1012
+ }[];
1013
+ diffFromCurrent?: {
1014
+ from: string;
1015
+ to: string;
1016
+ key: string;
1017
+ }[] | undefined;
1018
+ };
756
1019
  }, {
757
- steps: {
758
- target: string;
759
- description: string;
760
- action: string;
761
- reversible: boolean;
762
- rollbackAction?: string | undefined;
763
- }[];
764
1020
  reasoning: string;
1021
+ scriptedPlan: {
1022
+ executionScript: string;
1023
+ rollbackScript: string | null;
1024
+ platform: "bash" | "powershell";
1025
+ dryRunScript: string | null;
1026
+ reasoning: string;
1027
+ stepSummary: {
1028
+ description: string;
1029
+ reversible: boolean;
1030
+ }[];
1031
+ diffFromCurrent?: {
1032
+ from: string;
1033
+ to: string;
1034
+ key: string;
1035
+ }[] | undefined;
1036
+ };
765
1037
  }>;
766
1038
  }, "strip", z.ZodTypeAny, {
767
1039
  plan: {
768
- steps: {
769
- target: string;
770
- description: string;
771
- action: string;
772
- reversible: boolean;
773
- rollbackAction?: string | undefined;
774
- }[];
775
1040
  reasoning: string;
1041
+ scriptedPlan: {
1042
+ executionScript: string;
1043
+ rollbackScript: string | null;
1044
+ platform: "bash" | "powershell";
1045
+ dryRunScript: string | null;
1046
+ reasoning: string;
1047
+ stepSummary: {
1048
+ description: string;
1049
+ reversible: boolean;
1050
+ }[];
1051
+ diffFromCurrent?: {
1052
+ from: string;
1053
+ to: string;
1054
+ key: string;
1055
+ }[] | undefined;
1056
+ };
776
1057
  diffFromCurrent?: {
777
1058
  from: string;
778
1059
  to: string;
@@ -781,25 +1062,43 @@ export declare const SubmitPlanSchema: z.ZodObject<{
781
1062
  diffFromPreviousPlan?: string | undefined;
782
1063
  };
783
1064
  rollbackPlan: {
784
- steps: {
785
- target: string;
786
- description: string;
787
- action: string;
788
- reversible: boolean;
789
- rollbackAction?: string | undefined;
790
- }[];
791
1065
  reasoning: string;
1066
+ scriptedPlan: {
1067
+ executionScript: string;
1068
+ rollbackScript: string | null;
1069
+ platform: "bash" | "powershell";
1070
+ dryRunScript: string | null;
1071
+ reasoning: string;
1072
+ stepSummary: {
1073
+ description: string;
1074
+ reversible: boolean;
1075
+ }[];
1076
+ diffFromCurrent?: {
1077
+ from: string;
1078
+ to: string;
1079
+ key: string;
1080
+ }[] | undefined;
1081
+ };
792
1082
  };
793
1083
  }, {
794
1084
  plan: {
795
- steps: {
796
- target: string;
797
- description: string;
798
- action: string;
799
- reversible: boolean;
800
- rollbackAction?: string | undefined;
801
- }[];
802
1085
  reasoning: string;
1086
+ scriptedPlan: {
1087
+ executionScript: string;
1088
+ rollbackScript: string | null;
1089
+ platform: "bash" | "powershell";
1090
+ dryRunScript: string | null;
1091
+ reasoning: string;
1092
+ stepSummary: {
1093
+ description: string;
1094
+ reversible: boolean;
1095
+ }[];
1096
+ diffFromCurrent?: {
1097
+ from: string;
1098
+ to: string;
1099
+ key: string;
1100
+ }[] | undefined;
1101
+ };
803
1102
  diffFromCurrent?: {
804
1103
  from: string;
805
1104
  to: string;
@@ -808,14 +1107,23 @@ export declare const SubmitPlanSchema: z.ZodObject<{
808
1107
  diffFromPreviousPlan?: string | undefined;
809
1108
  };
810
1109
  rollbackPlan: {
811
- steps: {
812
- target: string;
813
- description: string;
814
- action: string;
815
- reversible: boolean;
816
- rollbackAction?: string | undefined;
817
- }[];
818
1110
  reasoning: string;
1111
+ scriptedPlan: {
1112
+ executionScript: string;
1113
+ rollbackScript: string | null;
1114
+ platform: "bash" | "powershell";
1115
+ dryRunScript: string | null;
1116
+ reasoning: string;
1117
+ stepSummary: {
1118
+ description: string;
1119
+ reversible: boolean;
1120
+ }[];
1121
+ diffFromCurrent?: {
1122
+ from: string;
1123
+ to: string;
1124
+ key: string;
1125
+ }[] | undefined;
1126
+ };
819
1127
  };
820
1128
  }>;
821
1129
  export declare const DeploymentListQuerySchema: z.ZodObject<{
@@ -842,14 +1150,17 @@ export declare const DebriefQuerySchema: z.ZodObject<{
842
1150
  limit: z.ZodOptional<z.ZodNumber>;
843
1151
  partitionId: z.ZodOptional<z.ZodString>;
844
1152
  decisionType: z.ZodOptional<z.ZodString>;
1153
+ q: z.ZodOptional<z.ZodString>;
845
1154
  }, "strip", z.ZodTypeAny, {
846
1155
  partitionId?: string | undefined;
847
1156
  limit?: number | undefined;
848
1157
  decisionType?: string | undefined;
1158
+ q?: string | undefined;
849
1159
  }, {
850
1160
  partitionId?: string | undefined;
851
1161
  limit?: number | undefined;
852
1162
  decisionType?: string | undefined;
1163
+ q?: string | undefined;
853
1164
  }>;
854
1165
  export declare const ProgressEventSchema: z.ZodObject<{
855
1166
  deploymentId: z.ZodString;
@@ -904,16 +1215,6 @@ export declare const TelemetryQuerySchema: z.ZodObject<{
904
1215
  actor?: string | undefined;
905
1216
  offset?: number | undefined;
906
1217
  }>;
907
- export declare const QueryRequestSchema: z.ZodObject<{
908
- query: z.ZodString;
909
- conversationId: z.ZodOptional<z.ZodString>;
910
- }, "strip", z.ZodTypeAny, {
911
- query: string;
912
- conversationId?: string | undefined;
913
- }, {
914
- query: string;
915
- conversationId?: string | undefined;
916
- }>;
917
1218
  export declare const LoginSchema: z.ZodObject<{
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