fix: bootstrap hotfix — DTO erasure, wizard failure, port prefill, Pi SDK copy (mosaic-v0.0.26) #440
Reference in New Issue
Block a user
Delete Branch "fix/bootstrap-hotfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes four bugs found during real-run testing of
mosaic-v0.0.25. Closes #436.bootstrap.controller.tsusedimport type { BootstrapSetupDto }, erasing the class at runtime. NestJS@Body()fell back to plainObjectmetatype and ValidationPipe withwhitelist + forbidNonWhitelistedrejected every field. Fixed by changing to a value import. Covered by a new e2e test (bootstrap.e2e.spec.ts) via@nestjs/testing+ supertest + Fastify that exercises the real DI binding path.wizard.tshad!bootstrapResult.completed && headlessRun— interactive-mode failures were swallowed and the wizard printed✔ Wizard complete. Removed the&& headlessRunguard; failures now abort in both modes.@clack/promptsusesinitialValueto prefill the buffer;defaultValueis only used for empty submissions. AddedinitialValuetoWizardPrompter.text(), the Clack and Headless adapters, and all gateway config prompts. Port14242now shows in the field."What is Mosaic?"welcome note to include Pi SDK.Release
@mosaicstack/mosaicbumped0.0.25 → 0.0.26.Test plan
pnpm test— all 570 tests pass (351 gateway + 219 mosaic)pnpm typecheck— cleanpnpm lint— cleanpnpm format:check— cleansrc/admin/bootstrap.e2e.spec.ts— 4 tests, covers the regression🤖 Generated with Claude Code