fix: scan bin/lib subdirectories in the inventory-manifest generator
gen-inventory-manifest.cjs's cli_modules family did a flat readdirSync of gsd-core/bin/lib/, invisible to anything shipped in a subdirectory. Found while registering this phase's 8 health-diagnostic-rules/*.cjs files in docs/INVENTORY.md (Standards-axis review) — the automated manifest cross-check couldn't see them even though the manual INVENTORY.md rows were correct. Adds collectOneLevelSubdirs (mirrors the existing collectNested's defensive statOrNull style) and merges flat + one-level-subdirectory results into cli_modules's single sorted array, using the same <subdir>/<file>.cjs key format INVENTORY.md's rows already use. Regenerating the manifest surfaced that three OTHER existing subdirectories (installer-migrations/, host-integration-adapters/, observability/ — pre-existing, unrelated to this phase) were equally invisible and had zero docs/INVENTORY.md rows at all. Added all 15 missing rows rather than leave a gap the fix itself just exposed. Also fixes 3 pre-existing lint-legacy-dir-name violations in the installer-migrations rows (legitimate references to the historical get-shit-done -> gsd-core rename these migrations clean up — marked with the guard's own gsd-allow-legacy-name exemption) and a stale health-diagnostic.cjs row that still said "RULES ships empty."
This commit is contained in:
@@ -378,9 +378,19 @@
|
||||
"graphify.cjs",
|
||||
"gsd2-import.cjs",
|
||||
"handshake-serialized.cjs",
|
||||
"health-diagnostic-rules/agent-install.cjs",
|
||||
"health-diagnostic-rules/config-validation.cjs",
|
||||
"health-diagnostic-rules/milestone-archive-hygiene.cjs",
|
||||
"health-diagnostic-rules/phase-structure.cjs",
|
||||
"health-diagnostic-rules/roadmap-disk-consistency.cjs",
|
||||
"health-diagnostic-rules/root-existence.cjs",
|
||||
"health-diagnostic-rules/state-consistency.cjs",
|
||||
"health-diagnostic-rules/worktree-health.cjs",
|
||||
"health-diagnostic-types.cjs",
|
||||
"health-diagnostic.cjs",
|
||||
"hook-bus.cjs",
|
||||
"host-integration-adapters/cline-sdk-binding.cjs",
|
||||
"host-integration-adapters/imperative-hook-bus.cjs",
|
||||
"host-integration-sdk.cjs",
|
||||
"host-integration.cjs",
|
||||
"host-runtime-detection.cjs",
|
||||
@@ -394,6 +404,16 @@
|
||||
"installer-migration-authoring.cjs",
|
||||
"installer-migration-report.cjs",
|
||||
"installer-migrations.cjs",
|
||||
"installer-migrations/000-first-time-baseline.cjs",
|
||||
"installer-migrations/001-legacy-orphan-files.cjs",
|
||||
"installer-migrations/002-codex-legacy-hooks-json.cjs",
|
||||
"installer-migrations/003-rename-get-shit-done-to-gsd-core.cjs",
|
||||
"installer-migrations/004-prune-stale-pristine-snapshots.cjs",
|
||||
"installer-migrations/005-opencode-baseline-commands-dir.cjs",
|
||||
"installer-migrations/006-pi-extension-cjs-to-js.cjs",
|
||||
"installer-migrations/007-retire-config-root-commonjs-marker.cjs",
|
||||
"installer-migrations/008-cursor-retire-commands-surface.cjs",
|
||||
"installer-migrations/009-pi-retire-reserved-hooks-dir.cjs",
|
||||
"intel-command-router.cjs",
|
||||
"intel.cjs",
|
||||
"io.cjs",
|
||||
@@ -411,6 +431,9 @@
|
||||
"model-profiles.cjs",
|
||||
"model-resolver.cjs",
|
||||
"normalize-test-command.cjs",
|
||||
"observability/event.cjs",
|
||||
"observability/logger.cjs",
|
||||
"observability/redaction.cjs",
|
||||
"onboard-projection.cjs",
|
||||
"package-identity.cjs",
|
||||
"package-legitimacy.cjs",
|
||||
|
||||
Reference in New Issue
Block a user