You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a27257
Browse filesBrowse the repository at this point in the historyBrowse files
- Keep within the spec's PHP 7.4 floor: replace str_starts_with /
str_contains / str_ends_with calls in envlite.php and the tests with
strpos/substr equivalents. The preflight gates on PHP_VERSION_ID >=
70400, but the rest of the file used PHP 8.0+ helpers and would fatal
before reaching preflight.
- Convert phase 5-8 failures into the spec's diagnostic format. Phases
throw RuntimeException on SHA256 mismatch, missing placeholders, and
I/O errors; init now wraps each phase in envlite_init_phase_guard,
which logs `envlite init: phase N: <cause>` and exits 1.
- Handle file_get_contents() returning false in phases 5/6/7. Required
reads (db.copy, sample configs) raise a structured `phase N: cannot
read <path>` failure; optional current-file reads short-circuit
cleanly so the owned_drifted branch never hashes null. The
observe_ht_sqlite step skips on read failure rather than recording
the empty-string hash.
- Align preflight npm floor with package.json engines (>= 10.2.3 vs
the previous 10.2.0) so preflight catches what `npm ci` would later.
Spec text updated to match.
- Correct the plan note that claimed no edits to package.json or
.gitignore — both are touched in this branch.
Copy file name to clipboardExpand all lines: docs/superpowers/plans/2026-05-08-envlite.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,12 @@
38
38
39
39
`envlite.php` will grow to ~700 lines. The single-file constraint comes from the spec; do not split it.
40
40
41
-
**Modified by this plan:** None. envlite is self-contained; no edits to `composer.json`, `package.json`, `phpunit.xml.dist`, or `.gitignore`.
41
+
**Modified by this plan:**
42
+
43
+
-`package.json` — adds an `envlite` npm script (convenience wrapper around `php tools/local-env/envlite.php`).
44
+
-`.gitignore` — ignores the `/.envlite/` state directory.
45
+
46
+
No edits to `composer.json`, `phpunit.xml.dist`, or `wp-config-sample.php`/`wp-tests-config-sample.php` (envlite reads the samples and writes adjacent files in their own paths).
0 commit comments