@pipeline-builder/pipeline-manager 0.0.1

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 (222) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +145 -0
  3. package/cdk.json +91 -0
  4. package/config.yml +94 -0
  5. package/dist/agent/ai.d.ts +48 -0
  6. package/dist/agent/ai.d.ts.map +1 -0
  7. package/dist/agent/ai.js +149 -0
  8. package/dist/agent/bootstrap.d.ts +39 -0
  9. package/dist/agent/bootstrap.d.ts.map +1 -0
  10. package/dist/agent/bootstrap.js +66 -0
  11. package/dist/agent/env-file.d.ts +17 -0
  12. package/dist/agent/env-file.d.ts.map +1 -0
  13. package/dist/agent/env-file.js +47 -0
  14. package/dist/agent/executor.d.ts +30 -0
  15. package/dist/agent/executor.d.ts.map +1 -0
  16. package/dist/agent/executor.js +60 -0
  17. package/dist/agent/health.d.ts +43 -0
  18. package/dist/agent/health.d.ts.map +1 -0
  19. package/dist/agent/health.js +109 -0
  20. package/dist/agent/ports.d.ts +26 -0
  21. package/dist/agent/ports.d.ts.map +1 -0
  22. package/dist/agent/ports.js +132 -0
  23. package/dist/agent/post-steps.d.ts +61 -0
  24. package/dist/agent/post-steps.d.ts.map +1 -0
  25. package/dist/agent/post-steps.js +131 -0
  26. package/dist/agent/prereqs.d.ts +26 -0
  27. package/dist/agent/prereqs.d.ts.map +1 -0
  28. package/dist/agent/prereqs.js +134 -0
  29. package/dist/agent/targets.d.ts +128 -0
  30. package/dist/agent/targets.d.ts.map +1 -0
  31. package/dist/agent/targets.js +265 -0
  32. package/dist/agent/tools.d.ts +13 -0
  33. package/dist/agent/tools.d.ts.map +1 -0
  34. package/dist/agent/tools.js +75 -0
  35. package/dist/agent/troubleshoot.d.ts +30 -0
  36. package/dist/agent/troubleshoot.d.ts.map +1 -0
  37. package/dist/agent/troubleshoot.js +87 -0
  38. package/dist/boilerplate.d.ts +3 -0
  39. package/dist/boilerplate.d.ts.map +1 -0
  40. package/dist/boilerplate.js +54 -0
  41. package/dist/cdk.json +91 -0
  42. package/dist/cli.d.ts +62 -0
  43. package/dist/cli.d.ts.map +1 -0
  44. package/dist/cli.js +463 -0
  45. package/dist/commands/audit-stacks.d.ts +24 -0
  46. package/dist/commands/audit-stacks.d.ts.map +1 -0
  47. package/dist/commands/audit-stacks.js +182 -0
  48. package/dist/commands/audit-tokens.d.ts +21 -0
  49. package/dist/commands/audit-tokens.d.ts.map +1 -0
  50. package/dist/commands/audit-tokens.js +153 -0
  51. package/dist/commands/bootstrap.d.ts +11 -0
  52. package/dist/commands/bootstrap.d.ts.map +1 -0
  53. package/dist/commands/bootstrap.js +159 -0
  54. package/dist/commands/create-pat.d.ts +27 -0
  55. package/dist/commands/create-pat.d.ts.map +1 -0
  56. package/dist/commands/create-pat.js +194 -0
  57. package/dist/commands/create-pipeline.d.ts +12 -0
  58. package/dist/commands/create-pipeline.d.ts.map +1 -0
  59. package/dist/commands/create-pipeline.js +315 -0
  60. package/dist/commands/deploy.d.ts +15 -0
  61. package/dist/commands/deploy.d.ts.map +1 -0
  62. package/dist/commands/deploy.js +157 -0
  63. package/dist/commands/entity-get.d.ts +51 -0
  64. package/dist/commands/entity-get.d.ts.map +1 -0
  65. package/dist/commands/entity-get.js +69 -0
  66. package/dist/commands/entity-list.d.ts +39 -0
  67. package/dist/commands/entity-list.d.ts.map +1 -0
  68. package/dist/commands/entity-list.js +88 -0
  69. package/dist/commands/get-pipeline.d.ts +13 -0
  70. package/dist/commands/get-pipeline.d.ts.map +1 -0
  71. package/dist/commands/get-pipeline.js +49 -0
  72. package/dist/commands/get-plugin.d.ts +13 -0
  73. package/dist/commands/get-plugin.d.ts.map +1 -0
  74. package/dist/commands/get-plugin.js +51 -0
  75. package/dist/commands/instantiate-template.d.ts +20 -0
  76. package/dist/commands/instantiate-template.d.ts.map +1 -0
  77. package/dist/commands/instantiate-template.js +274 -0
  78. package/dist/commands/list-pipelines.d.ts +20 -0
  79. package/dist/commands/list-pipelines.d.ts.map +1 -0
  80. package/dist/commands/list-pipelines.js +99 -0
  81. package/dist/commands/list-plugins.d.ts +20 -0
  82. package/dist/commands/list-plugins.d.ts.map +1 -0
  83. package/dist/commands/list-plugins.js +92 -0
  84. package/dist/commands/login.d.ts +21 -0
  85. package/dist/commands/login.d.ts.map +1 -0
  86. package/dist/commands/login.js +174 -0
  87. package/dist/commands/new-plugin.d.ts +12 -0
  88. package/dist/commands/new-plugin.d.ts.map +1 -0
  89. package/dist/commands/new-plugin.js +129 -0
  90. package/dist/commands/org-export.d.ts +25 -0
  91. package/dist/commands/org-export.d.ts.map +1 -0
  92. package/dist/commands/org-export.js +100 -0
  93. package/dist/commands/provision.d.ts +122 -0
  94. package/dist/commands/provision.d.ts.map +1 -0
  95. package/dist/commands/provision.js +867 -0
  96. package/dist/commands/redrive-events.d.ts +24 -0
  97. package/dist/commands/redrive-events.d.ts.map +1 -0
  98. package/dist/commands/redrive-events.js +127 -0
  99. package/dist/commands/register.d.ts +38 -0
  100. package/dist/commands/register.d.ts.map +1 -0
  101. package/dist/commands/register.js +160 -0
  102. package/dist/commands/setup-events.d.ts +15 -0
  103. package/dist/commands/setup-events.d.ts.map +1 -0
  104. package/dist/commands/setup-events.js +168 -0
  105. package/dist/commands/status.d.ts +11 -0
  106. package/dist/commands/status.d.ts.map +1 -0
  107. package/dist/commands/status.js +81 -0
  108. package/dist/commands/store-token.d.ts +26 -0
  109. package/dist/commands/store-token.d.ts.map +1 -0
  110. package/dist/commands/store-token.js +305 -0
  111. package/dist/commands/synth.d.ts +21 -0
  112. package/dist/commands/synth.d.ts.map +1 -0
  113. package/dist/commands/synth.js +158 -0
  114. package/dist/commands/upload-plugin.d.ts +21 -0
  115. package/dist/commands/upload-plugin.d.ts.map +1 -0
  116. package/dist/commands/upload-plugin.js +275 -0
  117. package/dist/commands/validate-plugin.d.ts +12 -0
  118. package/dist/commands/validate-plugin.d.ts.map +1 -0
  119. package/dist/commands/validate-plugin.js +175 -0
  120. package/dist/commands/validate-templates.d.ts +11 -0
  121. package/dist/commands/validate-templates.d.ts.map +1 -0
  122. package/dist/commands/validate-templates.js +116 -0
  123. package/dist/commands/version.d.ts +12 -0
  124. package/dist/commands/version.d.ts.map +1 -0
  125. package/dist/commands/version.js +216 -0
  126. package/dist/config/cli.constants.d.ts +116 -0
  127. package/dist/config/cli.constants.d.ts.map +1 -0
  128. package/dist/config/cli.constants.js +194 -0
  129. package/dist/config.yml +94 -0
  130. package/dist/lambda/token-renew-handler.d.ts +2 -0
  131. package/dist/lambda/token-renew-handler.d.ts.map +1 -0
  132. package/dist/lambda/token-renew-handler.js +125 -0
  133. package/dist/templates/events-stack.json +174 -0
  134. package/dist/templates/token-renew-stack.json +122 -0
  135. package/dist/types/config.d.ts +53 -0
  136. package/dist/types/config.d.ts.map +1 -0
  137. package/dist/types/config.js +4 -0
  138. package/dist/types/error.d.ts +61 -0
  139. package/dist/types/error.d.ts.map +1 -0
  140. package/dist/types/error.js +35 -0
  141. package/dist/types/index.d.ts +9 -0
  142. package/dist/types/index.d.ts.map +1 -0
  143. package/dist/types/index.js +11 -0
  144. package/dist/types/pipeline-template.d.ts +48 -0
  145. package/dist/types/pipeline-template.d.ts.map +1 -0
  146. package/dist/types/pipeline-template.js +4 -0
  147. package/dist/types/pipeline.d.ts +121 -0
  148. package/dist/types/pipeline.d.ts.map +1 -0
  149. package/dist/types/pipeline.js +4 -0
  150. package/dist/types/plugin.d.ts +135 -0
  151. package/dist/types/plugin.d.ts.map +1 -0
  152. package/dist/types/plugin.js +4 -0
  153. package/dist/utils/api-client.d.ts +26 -0
  154. package/dist/utils/api-client.d.ts.map +1 -0
  155. package/dist/utils/api-client.js +151 -0
  156. package/dist/utils/audit-log.d.ts +8 -0
  157. package/dist/utils/audit-log.d.ts.map +1 -0
  158. package/dist/utils/audit-log.js +57 -0
  159. package/dist/utils/auth-guard.d.ts +20 -0
  160. package/dist/utils/auth-guard.d.ts.map +1 -0
  161. package/dist/utils/auth-guard.js +22 -0
  162. package/dist/utils/auth-utils.d.ts +68 -0
  163. package/dist/utils/auth-utils.d.ts.map +1 -0
  164. package/dist/utils/auth-utils.js +77 -0
  165. package/dist/utils/aws-env.d.ts +21 -0
  166. package/dist/utils/aws-env.d.ts.map +1 -0
  167. package/dist/utils/aws-env.js +34 -0
  168. package/dist/utils/aws-secrets.d.ts +48 -0
  169. package/dist/utils/aws-secrets.d.ts.map +1 -0
  170. package/dist/utils/aws-secrets.js +115 -0
  171. package/dist/utils/banner.d.ts +19 -0
  172. package/dist/utils/banner.d.ts.map +1 -0
  173. package/dist/utils/banner.js +52 -0
  174. package/dist/utils/cdk-utils.d.ts +74 -0
  175. package/dist/utils/cdk-utils.d.ts.map +1 -0
  176. package/dist/utils/cdk-utils.js +152 -0
  177. package/dist/utils/command-utils.d.ts +75 -0
  178. package/dist/utils/command-utils.d.ts.map +1 -0
  179. package/dist/utils/command-utils.js +155 -0
  180. package/dist/utils/config-loader.d.ts +33 -0
  181. package/dist/utils/config-loader.d.ts.map +1 -0
  182. package/dist/utils/config-loader.js +154 -0
  183. package/dist/utils/cron.d.ts +28 -0
  184. package/dist/utils/cron.d.ts.map +1 -0
  185. package/dist/utils/cron.js +119 -0
  186. package/dist/utils/deploy-runner.d.ts +38 -0
  187. package/dist/utils/deploy-runner.d.ts.map +1 -0
  188. package/dist/utils/deploy-runner.js +112 -0
  189. package/dist/utils/error-handler.d.ts +29 -0
  190. package/dist/utils/error-handler.d.ts.map +1 -0
  191. package/dist/utils/error-handler.js +302 -0
  192. package/dist/utils/list-command-utils.d.ts +23 -0
  193. package/dist/utils/list-command-utils.d.ts.map +1 -0
  194. package/dist/utils/list-command-utils.js +57 -0
  195. package/dist/utils/output-utils.d.ts +40 -0
  196. package/dist/utils/output-utils.d.ts.map +1 -0
  197. package/dist/utils/output-utils.js +250 -0
  198. package/dist/utils/pipeline-config.d.ts +33 -0
  199. package/dist/utils/pipeline-config.d.ts.map +1 -0
  200. package/dist/utils/pipeline-config.js +55 -0
  201. package/dist/utils/platform-secret.d.ts +27 -0
  202. package/dist/utils/platform-secret.d.ts.map +1 -0
  203. package/dist/utils/platform-secret.js +92 -0
  204. package/dist/utils/plugin-resolver.d.ts +17 -0
  205. package/dist/utils/plugin-resolver.d.ts.map +1 -0
  206. package/dist/utils/plugin-resolver.js +101 -0
  207. package/dist/utils/preflight.d.ts +26 -0
  208. package/dist/utils/preflight.d.ts.map +1 -0
  209. package/dist/utils/preflight.js +59 -0
  210. package/dist/utils/rate-limiter.d.ts +15 -0
  211. package/dist/utils/rate-limiter.d.ts.map +1 -0
  212. package/dist/utils/rate-limiter.js +164 -0
  213. package/dist/utils/registry.d.ts +86 -0
  214. package/dist/utils/registry.d.ts.map +1 -0
  215. package/dist/utils/registry.js +140 -0
  216. package/dist/utils/response-utils.d.ts +21 -0
  217. package/dist/utils/response-utils.d.ts.map +1 -0
  218. package/dist/utils/response-utils.js +70 -0
  219. package/dist/utils/tls.d.ts +52 -0
  220. package/dist/utils/tls.d.ts.map +1 -0
  221. package/dist/utils/tls.js +88 -0
  222. package/package.json +181 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,145 @@
1
+ # @pipeline-builder/pipeline-manager
2
+
3
+ 📖 **[View documentation](https://mwashburn160.github.io/pipeline-builder/)**
4
+
5
+ CLI for [Pipeline Builder](https://mwashburn160.github.io/pipeline-builder/): install the platform itself with `provision`, then bootstrap, synth, deploy, and manage CDK pipelines + plugins against it.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @pipeline-builder/pipeline-manager
11
+ ```
12
+
13
+ Requires Node.js 24.14.0+.
14
+
15
+ ## Quick start
16
+
17
+ ```bash
18
+ # Authenticate against your Pipeline Builder platform
19
+ pipeline-manager auth login --url https://platform.example.com
20
+
21
+ # Bootstrap a new project in the current directory
22
+ pipeline-manager infra bootstrap
23
+
24
+ # Synthesize the CDK app into a CloudFormation template
25
+ pipeline-manager pipeline synth
26
+
27
+ # Deploy the pipeline to AWS
28
+ pipeline-manager pipeline deploy
29
+ ```
30
+
31
+ ## Install the platform (`provision`)
32
+
33
+ `provision` is the recommended way to stand up the **platform itself** (not a pipeline) — on Docker Compose, Minikube, EC2, or EKS (Auto Mode). It runs prerequisite checks, assembles the exact `bin/setup.sh` command (secrets masked, missing inputs reported — never guessed), shows the plan, and **deploys it end-to-end, gated by confirmation prompts** (`--yes` for CI; `--json` prints the plan and runs nothing).
34
+
35
+ ```bash
36
+ # Deploy local — shows the plan, then confirms (confirm → deploy → /health + /ready → init-platform):
37
+ pipeline-manager infra provision --target docker
38
+
39
+ # Inspect the plan as JSON, run nothing:
40
+ pipeline-manager infra provision --target docker --json
41
+
42
+ # Deploy to EKS Auto Mode (add --yes for non-interactive CI):
43
+ pipeline-manager infra provision --target eks \
44
+ --domain pipeline.example.com --hosted-zone-id Z123 --ghcr-token ghp_xxx --email
45
+
46
+ # Tear it down (AWS targets prompt you to TYPE the cluster/target id to confirm):
47
+ pipeline-manager infra provision --target eks --teardown
48
+
49
+ # Bootstrap a fresh machine — sparse-clones ONLY the deploy folders this target
50
+ # + options need (here: deploy/bin + deploy/local/docker), then deploys + registers:
51
+ pipeline-manager infra provision --target docker --repo --yes \
52
+ --admin-email admin@acme.com --admin-password 's3cret'
53
+
54
+ # Add post-install loads (each also adds its folder to the sparse clone):
55
+ pipeline-manager infra provision --target docker --repo --with-all --with-smoke-test
56
+ ```
57
+
58
+ - **Deploy (gated) or teardown.** `provision` shows the plan, then deploys — refusing on failed prerequisites or missing inputs, confirming before it runs (`--yes` auto-accepts for CI), then verifying health and running `init-platform`. **`--json`** prints the plan and runs nothing (the only non-executing mode). `--teardown` removes a deployment (`local`/`minikube` stop the stack; **EC2 deletes its CloudFormation stack and EKS runs `bin/shutdown.sh` (cluster + EFS + ACM + Route 53), both irreversibly** and require typing the stack/cluster id to confirm — `--force` skips it for CI).
59
+ - **Prerequisites, handled.** The checks mirror each target's `setup.sh` exactly — local: Docker, Docker Compose, `yq`, `openssl`; minikube: Docker, minikube, kubectl, `openssl` (+ `yq` with `--with-plugins`); ec2: AWS CLI + working credentials; eks: AWS CLI + credentials, `kubectl`, `openssl`, `envsubst` (+ `yq` with `--with-plugins`); `eksctl` is auto-installed by `setup.sh` (latest binary) when not already on PATH. Missing **single-binary** tools (`yq`, `kubectl`, `minikube`) are offered as an on-demand **fetch** into `~/.pipeline-manager/tools` and put on PATH — no `brew`/`apt`, no system change. For local/minikube it also **creates the target's `.env`** from `.env.example`, generating the `CHANGE_ME` secrets. Tools that aren't relocatable binaries (git, Docker/Compose, AWS CLI, openssl) fall back to the normal install instruction, and if you run from outside a checkout it **offers to sparse-clone** the deploy folders for you.
60
+ - **Self-healing.** On a failed deploy it matches known CloudFormation issues (cause + fix) and can auto-fix + retry a few — e.g. an existing SES identity → re-run with `--skip-ses-identity`. Gated and bounded by `--retries` (the scripts are idempotent, so a re-run resumes).
61
+ - **AI-optional.** Set `ANTHROPIC_API_KEY` (or `AI_PROVIDER` + its key) to parse a natural-language `--prompt` and add free-form failure diagnosis; without a key it falls back to the deterministic issue matcher.
62
+ - **Bootstrap a fresh machine (`--repo`).** Without a checkout, `--repo` git-clones the platform repo first, then runs from it. The clone is **sparse + partial** (`--filter=blob:none` + cone `sparse-checkout`, git ≥ 2.27 — else a full-clone fallback): it materializes only the deploy folders the selected target + options need. The common base is just `deploy/bin`; each target adds its own folder (e.g. `deploy/local/docker`; minikube is self-contained), and each post-install load adds its folder. Re-syncs are **additive** — a single `--workdir` can accumulate multiple targets. Override with `--repo <url>`, `--ref <branch|tag>`, `--workdir <dir>`.
63
+ - **Run in Docker, zero host installs.** Don't want `git`/`yq`/AWS CLI on your machine? [`deploy/bin/provision-docker.sh`](../../deploy/bin/provision-docker.sh) runs `provision` inside a throwaway `node:24-slim` container, installing only the tools the chosen target needs: **ec2** → git + AWS CLI (mounts `~/.aws` read-only); **eks** → + openssl + envsubst + eksctl + kubectl (mounts `~/.aws` + `~/.kube`); **local** → git + yq + openssl, with **Docker + Docker Compose used *externally*** from the host via the mounted socket (Docker Desktop already provides them — they're never installed in the image). Host footprint = just Docker. Args pass straight through: `deploy/bin/provision-docker.sh --target eks --repo --domain … --yes`. (On macOS the container can't drive Docker Desktop's CLI, so run **local** on the host instead — the wrapper shines for the AWS targets.)
64
+ - **Post-install steps.** After deploy + health, `provision` registers the admin (non-interactive with `--admin-email`/`--admin-password`) and runs the opt-in loads — passed as flags, or **offered interactively after the clone** when none are given (each picked load is then fetched via an additive sparse re-sync): `--with-plugins` (adds `deploy/plugins` + `deploy/codebuild`), `--with-compliance` (`deploy/compliance`), `--with-samples` (`deploy/samples`), or `--with-all`. Plus `--with-smoke-test` (read-only API check), **`--with-events`** (AWS event ingestion — a two-step bundle: **`store-token`** writes a platform JWT to Secrets Manager at pipeline-builder's own pattern `pipeline-builder/{orgId}/platform`, then **`setup-events`** deploys the EventBridge → SQS → Lambda that reads it), and repeatable `--post-step "<cmd>"`. Default is register-only; `--init skip` skips even that. All steps are idempotent, so re-running with more options just layers them on.
65
+
66
+ The underlying `bin/setup.sh` / `bin/shutdown.sh` scripts (and `aws cloudformation delete-stack` for ec2) remain the source of truth and can always be run directly. Full guide: [AWS deployment → AI-assisted install](https://mwashburn160.github.io/pipeline-builder/docs/aws-deployment#ai-assisted-install-provision).
67
+
68
+ ## Commands
69
+
70
+ ### Platform installation
71
+
72
+ | Command | Purpose |
73
+ | --- | --- |
74
+ | `provision` | Install (or tear down) the **platform** on local/Minikube/EC2/EKS: prereq checks + assembles the exact `bin/setup.sh` command, then **deploys it** (gated by confirmation; `--yes` for CI, `--json` to print the plan and run nothing), verifying health + running post-install steps. `--repo` bootstraps a fresh machine via a **sparse** clone of only the needed deploy folders; `--with-plugins`/`--with-compliance`/`--with-samples`/`--with-all`/`--with-smoke-test`/`--with-events`/`--post-step` add post-install steps; `--teardown` removes it. On failure it diagnoses + auto-fixes/retries known issues. See [Install the platform](#install-the-platform-provision). |
75
+
76
+ ### Project lifecycle
77
+
78
+ | Command | Purpose |
79
+ | --- | --- |
80
+ | `bootstrap` | Scaffold a new pipeline project with `cdk.json` and starter config |
81
+ | `synth` | Run CDK synth to emit the CloudFormation template for the pipeline |
82
+ | `deploy` | Deploy the synthesized pipeline stack to AWS (also registers the pipeline with the platform by its `pipelineId`) |
83
+ | `register` | Re-register a deployed pipeline with the platform and drain pending intents queued by prior failed deploys (recovery path; exits non-zero if any registration still fails) |
84
+ | `status` | Report the current deployment and execution status |
85
+
86
+ ### Resource management
87
+
88
+ | Command | Purpose |
89
+ | --- | --- |
90
+ | `create-pipeline` | Register a new pipeline definition with the platform |
91
+ | `list-pipelines` / `get-pipeline` | Inspect pipelines registered to your organization |
92
+ | `list-plugins` / `get-plugin` | Browse the plugin catalog and fetch a single plugin spec |
93
+ | `upload-plugin` | Publish a custom plugin spec + Dockerfile to the platform |
94
+ | `validate-templates` | Parse and validate `{{ ... }}` templates in a pipeline or plugin spec (local file, registered pipeline by ID, or registered plugin by `name:version`) |
95
+ | `org-export` | Export an organization's data as JSON for GDPR portability (sysadmins can export any org; org admins their own only) |
96
+
97
+ ### Auth & infrastructure
98
+
99
+ | Command | Purpose |
100
+ | --- | --- |
101
+ | `login` | Authenticate against the platform and persist the access token (supports `--refresh <token>` and `--org <orgId>` to switch organizations) |
102
+ | `store-token` | Generate a long-lived JWT and store it in AWS Secrets Manager (used by the events Lambda and CodePipeline synth steps). Add `--schedule` to also deploy a daily auto-renewal stack so the token never lapses |
103
+ | `setup-events` | Deploy the EventBridge → SQS → Lambda stack that streams CodePipeline events into the platform's reporting service |
104
+
105
+ ### Operator audits (cron-friendly)
106
+
107
+ These commands report drift and exit non-zero when findings exist. Designed to run on a schedule.
108
+
109
+ | Command | Purpose | Exit codes |
110
+ | --- | --- | --- |
111
+ | `audit-stacks` | Diff CloudFormation stacks tagged `pipeline-builder` against the platform's `pipeline_registry`. Surfaces orphaned stacks (no DB row) and missing stacks (DB row but no live stack). See [docs/aws-deployment.md](https://mwashburn160.github.io/pipeline-builder/docs/aws-deployment.html#drift-detection-audit-stacks). | `0` clean / `1` findings / `2` AWS error |
112
+ | `audit-tokens` | Scan platform tokens stored in AWS Secrets Manager and flag any expiring within `--warn-days` (default 7). Run before tokens lapse to avoid silent reporting outages. | `0` clean / `1` at-risk / `2` AWS error |
113
+
114
+ ### Misc
115
+
116
+ | Command | Purpose |
117
+ | --- | --- |
118
+ | `completions` | Print a shell completion script for `bash`, `zsh`, or `fish`. Source it from your shell profile, e.g. `eval "$(pipeline-manager completions bash)"` in `~/.bashrc` (completions are derived from the live command list, so they never drift) |
119
+ | `version` | Print CLI version info |
120
+
121
+ Run `pipeline-manager <command> --help` for the full flag reference on any command.
122
+
123
+ ## Environment variables
124
+
125
+ | Variable | Required | Purpose |
126
+ | --- | --- | --- |
127
+ | `PLATFORM_TOKEN` | Yes (for API ops) | Auth token for the Pipeline Builder platform |
128
+ | `PLATFORM_BASE_URL` | Yes (for API ops) | Base URL of your platform deployment |
129
+ | `AWS_REGION` | Yes (for deploy) | Target AWS region for `synth` / `deploy` / `provision` teardown |
130
+ | `ANTHROPIC_API_KEY` (or other provider key) | No | Enables `provision`'s natural-language `--prompt` parsing + failure diagnosis (else it falls back to the deterministic issue matcher) |
131
+ | `AI_PROVIDER` / `AI_MODEL` | No | Provider + model for `provision` (`anthropic` \| `openai` \| `google` \| `xai` \| `bedrock`) |
132
+
133
+ Full reference: [Environment Variables](https://mwashburn160.github.io/pipeline-builder/docs/environment-variables).
134
+
135
+ ## Documentation
136
+
137
+ - [Getting started](https://mwashburn160.github.io/pipeline-builder/)
138
+ - [CDK usage](https://mwashburn160.github.io/pipeline-builder/docs/cdk-usage)
139
+ - [Plugin catalog (119 plugins)](https://mwashburn160.github.io/pipeline-builder/docs/plugins/)
140
+ - [API reference](https://mwashburn160.github.io/pipeline-builder/docs/api-reference)
141
+ - [AWS deployment](https://mwashburn160.github.io/pipeline-builder/docs/aws-deployment)
142
+
143
+ ## License
144
+
145
+ Apache-2.0. See [LICENSE](./LICENSE).
package/cdk.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "app": "node boilerplate.js",
3
+ "watch": {
4
+ "include": [
5
+ "**"
6
+ ],
7
+ "exclude": [
8
+ "README.md",
9
+ "cdk*.json",
10
+ "jest.config.js",
11
+ "package*.json",
12
+ "yarn.lock",
13
+ "node_modules",
14
+ "test"
15
+ ]
16
+ },
17
+ "context": {
18
+ "notices": false,
19
+ "cli-telemetry": false,
20
+ "@aws-cdk/aws-lambda:recognizeLayerVersion": true,
21
+ "@aws-cdk/core:checkSecretUsage": true,
22
+ "@aws-cdk/core:target-partitions": [
23
+ "aws",
24
+ "aws-cn"
25
+ ],
26
+ "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
27
+ "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
28
+ "@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
29
+ "@aws-cdk/aws-iam:minimizePolicies": true,
30
+ "@aws-cdk/core:validateSnapshotRemovalPolicy": true,
31
+ "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
32
+ "@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
33
+ "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
34
+ "@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
35
+ "@aws-cdk/core:enablePartitionLiterals": true,
36
+ "@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
37
+ "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
38
+ "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
39
+ "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
40
+ "@aws-cdk/aws-route53-patters:useCertificate": true,
41
+ "@aws-cdk/customresources:installLatestAwsSdkDefault": false,
42
+ "@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
43
+ "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
44
+ "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
45
+ "@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
46
+ "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
47
+ "@aws-cdk/aws-redshift:columnId": true,
48
+ "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
49
+ "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
50
+ "@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
51
+ "@aws-cdk/aws-kms:aliasNameRef": true,
52
+ "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
53
+ "@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
54
+ "@aws-cdk/aws-efs:denyAnonymousAccess": true,
55
+ "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
56
+ "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
57
+ "@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true,
58
+ "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
59
+ "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
60
+ "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true,
61
+ "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
62
+ "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true,
63
+ "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true,
64
+ "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true,
65
+ "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true,
66
+ "@aws-cdk/aws-eks:nodegroupNameAttribute": true,
67
+ "@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true,
68
+ "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true,
69
+ "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false,
70
+ "@aws-cdk/aws-s3:keepNotificationInImportedBucket": false,
71
+ "@aws-cdk/aws-ecs:enableImdsBlockingDeprecatedFeature": false,
72
+ "@aws-cdk/aws-ecs:disableEcsImdsBlocking": true,
73
+ "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions": true,
74
+ "@aws-cdk/aws-dynamodb:resourcePolicyPerReplica": true,
75
+ "@aws-cdk/aws-ec2:ec2SumTImeoutEnabled": true,
76
+ "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": true,
77
+ "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId": true,
78
+ "@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics": true,
79
+ "@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages": true,
80
+ "@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy": true,
81
+ "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault": true,
82
+ "@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource": true,
83
+ "@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault": true,
84
+ "@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections": true,
85
+ "@aws-cdk/core:enableAdditionalMetadataCollection": false,
86
+ "@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": false,
87
+ "@aws-cdk/aws-s3:setUniqueReplicationRoleName": true,
88
+ "@aws-cdk/aws-events:requireEventBusPolicySid": true,
89
+ "@aws-cdk/aws-dynamodb:retainTableReplica": true
90
+ }
91
+ }
package/config.yml ADDED
@@ -0,0 +1,94 @@
1
+ # CLI Configuration File
2
+ # Save this as config.yml in your project root or specify with CLI_CONFIG_PATH
3
+
4
+ # ============================================================================
5
+ # API Configuration
6
+ # ============================================================================
7
+ api:
8
+ # Base URL for the API
9
+ # Can be overridden with PLATFORM_URL environment variable
10
+ baseUrl: https://localhost:8443
11
+
12
+ # Request timeout in milliseconds
13
+ timeout: 30000
14
+
15
+ # SSL/TLS Certificate Validation
16
+ # Set to false to disable certificate validation (DEVELOPMENT ONLY)
17
+ # Default: true (secure)
18
+ #
19
+ # WARNING: Setting this to false disables certificate validation and makes
20
+ # your application vulnerable to man-in-the-middle attacks. Only use this
21
+ # in development environments with self-signed certificates.
22
+ rejectUnauthorized: true
23
+
24
+ # API Endpoints
25
+ #
26
+ # Pipeline Endpoints:
27
+ # pipelineUrl - Single pipeline operations (GET by ID, POST)
28
+ # Used by: get-pipeline, create-pipeline
29
+ # Format: /api/pipeline/{id} or /api/pipeline
30
+ #
31
+ # pipelineListUrl - List/query multiple pipelines with filters
32
+ # Used by: list-pipelines
33
+ # Format: /api/pipelines?filter1=value1&filter2=value2
34
+ # Supports filters: id, accessModifier, isDefault, isActive,
35
+ # project, projectPattern, organizationPattern,
36
+ # limit, offset, sort
37
+ #
38
+ # Plugin Endpoints:
39
+ # pluginUrl - Single plugin operations (GET by ID)
40
+ # Used by: get-plugin
41
+ # Format: /api/plugin/{id}
42
+ #
43
+ # pluginListUrl - List/query multiple plugins with filters
44
+ # Used by: list-plugins
45
+ # Format: /api/plugins?filter1=value1&filter2=value2
46
+ # Supports filters: id, accessModifier, isDefault, isActive,
47
+ # name, namePattern, version, versionRange,
48
+ # imageTag, limit, offset, sort
49
+ #
50
+ # pluginUploadUrl - Plugin upload endpoint
51
+ # Used by: upload-plugin
52
+ # Format: /api/plugin/upload
53
+ #
54
+ # Note: Singular vs Plural URLs
55
+ # - Singular (/api/plugin, /api/pipeline) - Single resource operations
56
+ # - Plural (/api/plugins, /api/pipelines) - List/query operations
57
+ pipelineUrl: /api/pipeline
58
+ pipelineListUrl: /api/pipelines
59
+ pluginUrl: /api/plugin
60
+ pluginListUrl: /api/plugins
61
+ pluginUploadUrl: /api/plugin/upload
62
+
63
+ # ============================================================================
64
+ # AUTHENTICATION
65
+ # ============================================================================
66
+ # Authentication is handled via environment variable ONLY.
67
+ # DO NOT include auth configuration in this file.
68
+ #
69
+ # Set your token with:
70
+ # export PLATFORM_TOKEN='your-token-here'
71
+ #
72
+ # The token should NEVER be committed to version control.
73
+ # ============================================================================
74
+
75
+ # ============================================================================
76
+ # ENVIRONMENT VARIABLES
77
+ # ============================================================================
78
+ # The following environment variables are used by the CLI:
79
+ #
80
+ # REQUIRED:
81
+ # PLATFORM_TOKEN - Authentication token for API access
82
+ # Example: export PLATFORM_TOKEN='eyJhbG...'
83
+ #
84
+ # OPTIONAL:
85
+ # PLATFORM_URL - Override api.baseUrl
86
+ # Example: export PLATFORM_URL='https://api.example.com'
87
+ #
88
+ # CLI_CONFIG_PATH - Path to this config file
89
+ # Example: export CLI_CONFIG_PATH='/path/to/config.yml'
90
+ #
91
+ # TLS_REJECT_UNAUTHORIZED - Set to '0' to disable cert validation
92
+ # Example: export TLS_REJECT_UNAUTHORIZED='0'
93
+ #
94
+ # ============================================================================
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export interface AiOptions {
3
+ readonly provider?: string;
4
+ readonly model?: string;
5
+ }
6
+ /**
7
+ * True when the selected provider can be used: a key-based provider needs its API
8
+ * key, a keyless provider (Bedrock) needs either static AWS creds or an AWS region
9
+ * (the IAM-role signal). Kept in lockstep with ai-core's registry gating.
10
+ */
11
+ export declare function isAiConfigured(opts?: AiOptions): boolean;
12
+ /**
13
+ * Diagnose a CloudFormation / deploy failure. Returns a short plain-English
14
+ * cause + suggested next action, or null when AI is unavailable.
15
+ *
16
+ * The input is UNTRUSTED tool/log output — it is passed as data, never as
17
+ * instructions, and the result is advisory only (it never triggers an action).
18
+ */
19
+ export declare function diagnoseFailure(failureText: string, opts?: AiOptions): Promise<string | null>;
20
+ /**
21
+ * Recognized keys a goal can fill — mirrors the deterministic InputSpec keys.
22
+ * All optional: the model fills only what it can determine, and the deterministic
23
+ * layer validates + reports anything missing (so a sloppy parse can't cause a
24
+ * wrong deploy — it just yields a partial fill).
25
+ */
26
+ declare const GoalSchema: z.ZodObject<{
27
+ target: z.ZodOptional<z.ZodEnum<{
28
+ docker: "docker";
29
+ ec2: "ec2";
30
+ eks: "eks";
31
+ minikube: "minikube";
32
+ }>>;
33
+ region: z.ZodOptional<z.ZodString>;
34
+ domain: z.ZodOptional<z.ZodString>;
35
+ hostedZoneId: z.ZodOptional<z.ZodString>;
36
+ deployMode: z.ZodOptional<z.ZodEnum<{
37
+ private: "private";
38
+ public: "public";
39
+ }>>;
40
+ email: z.ZodOptional<z.ZodBoolean>;
41
+ emailFrom: z.ZodOptional<z.ZodString>;
42
+ alertEmail: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ export type ParsedGoal = z.infer<typeof GoalSchema>;
45
+ /** Parse a natural-language goal into known params via structured output. */
46
+ export declare function parseGoal(prompt: string, opts?: AiOptions): Promise<ParsedGoal | null>;
47
+ export {};
48
+ //# sourceMappingURL=ai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/agent/ai.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAmCD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,GAAE,SAAc,GAAG,OAAO,CAM5D;AA0BD;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,GAAE,SAAc,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAkBvG;AAED;;;;;GAKG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;iBASd,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,6EAA6E;AAC7E,wBAAsB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,SAAc,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAkBhG"}