@skyf0xx/hedgehog 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,9 +15,16 @@ cli — argv, output rendering, and the confirmation gate in front of apply
|
|
|
15
15
|
|
|
16
16
|
## Adaptation points
|
|
17
17
|
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
- On the TypeScript substitute (a thin wrapper generating config/manifests
|
|
19
|
+
with no systems-level need), `provider` isn't a live target system —
|
|
20
|
+
there's no observed state to read, so `plan` and `apply` collapse into
|
|
21
|
+
one `render` layer producing the config/manifest text, and `provider`
|
|
22
|
+
drops entirely. The dry-run safety property below doesn't apply: the
|
|
23
|
+
tool's output *is* the printable, diffable artifact, so there's nothing
|
|
24
|
+
further to preview.
|
|
25
|
+
- Merge `plan` into `apply` only for a Go-stack tool that is genuinely
|
|
26
|
+
fire-and-forget (a one-shot bootstrap script) — and note that this gives
|
|
27
|
+
up the dry-run surface, which is the main reason to reach for this shape.
|
|
21
28
|
- Split `provider` per target (`provider/{module}`) when the tool spans
|
|
22
29
|
several systems with independent auth and failure modes; keep one layer
|
|
23
30
|
for a single target.
|
|
@@ -31,4 +38,6 @@ what a plan named. A tool that mutates during planning can't offer a
|
|
|
31
38
|
trustworthy dry run, and dry run is the safety property this shape exists
|
|
32
39
|
to provide — an infra tool without it is a script that edits production
|
|
33
40
|
with no preview. `plan` must be printable and diffable on its own, with
|
|
34
|
-
no credentials required beyond reading observed state.
|
|
41
|
+
no credentials required beyond reading observed state. This boundary is
|
|
42
|
+
moot on the TS/`render`-collapsed substitute above, where there's no live
|
|
43
|
+
target to mutate in the first place.
|