fix(wizard): resolve skills sync script path #690
Reference in New Issue
Block a user
Delete Branch "fix/installer-skills-sync-path"
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
Refs #462
Verification
REVIEW-OF-RECORD — APPROVE (#690, head
19c84feb7c). I reviewed the fresh-install skills sync path fix and found no blockers.Path resolution:
finalize.tsnow resolves framework helper scripts throughtools/_scripts/<name>first, then falls back to legacybin/<name>only when the current-layout script is absent. The helper is used for all finalize helper-script call sites in this file:mosaic-link-runtime-assets,mosaic-sync-skills, andmosaic-doctor. Missing-script errors point at the currenttools/_scriptslayout, which matches the framework installer.Fresh install / legacy behavior: the updated skills tests cover the fresh
tools/_scripts/mosaic-sync-skillspath and the legacybin/mosaic-sync-skillsfallback. I also ran a tempMOSAIC_HOMEframework sync-only install and verified the fresh layout hastools/_scripts/mosaic-sync-skills, no legacybin/mosaic-sync-skills, and the script installs a selected fakelintskill into the runtime skill directory while not linking an unselected skill. Legacy fallback remains intact by construction and test coverage.Scope/docs: the diff is limited to finalize path resolution, its skills tests, framework README helper paths, and a scratchpad. No unrelated installer/wizard/provider setup changes leaked in.
Reviewer verification on head
19c84feb:pnpm --filter @mosaicstack/mosaic test -- finalize-skillspass (6/6);pnpm --filter @mosaicstack/mosaic testpass (626/626); mosaic typecheck pass; mosaic lint pass; repo format:check pass; repo build pass (23/23); fresh temp framework sync + selected skill install smoke pass. PR CI reported green on pipeline 1641. APPROVE.REVIEW-OF-RECORD — APPROVE
Independent review (reviewer ≠ author). Blocker B2 (greenfield wizard: "Skills sync script not found at ~/.config/mosaic/bin/mosaic-sync-skills" → "Skills: install failed").
Root cause/fix: framework migration moved helper scripts
bin/→tools/_scripts/, butfinalize.tsstill resolvedmosaicHome/bin. Fix resolvestools/_scripts/<name>first with a legacybin/<name>fallback for pre-migration installs; missing-script warning points at the current layout; README examples updated.Tests: finalize-skills spec updated to current layout + new fallback-path test. Fresh-install verification documented (temp MOSAIC_HOME, MOSAIC_SYNC_ONLY=1).
CI: PR-event pipeline 1641 fully green (ci-postgres, typecheck, lint, format, test all success).
Approving for squash-merge to
next.