feat(framework): preflight checks + framework doctor#173
Merged
Conversation
Turnkey should fail early and clearly, not mid-run. A live run now verifies its prerequisites (Claude Code installed + runnable) before starting the dashboard and driver; if missing, it prints install guidance and exits instead of a cryptic spawn error deep in the flow. - preflight(): checks node + the agent CLI (injectable probe for tests) - framework doctor: reports the checks and exits by their outcome - --skip-preflight escape hatch; --fake never runs preflight (needs no CLI) 6 new tests (42 total); doctor smoke verified (node + claude versions); full typecheck + build clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adoption polish for the now-published
@gemstack/framework@0.1.0. A turnkey tool should fail early and clearly when a prerequisite is missing, not spawn a broken process mid-run.\claude` not found - install Claude Code ...` and exits 2, instead of a cryptic spawn error after the dashboard and preset detection.framework doctorreports the checks (node + agent CLI) and exits by their outcome.--skip-preflightescape hatch;--fakenever runs preflight (it needs no CLI).6 new tests (42 total).
framework doctorsmoke: prints node +claudeversions, exit 0. Full typecheck + build clean. Changeset (minor).