Repository navigation
LOU-D4: loushy doctor first-run diagnostic - #54
Merged
Merged
Conversation
LinuxDevil
commented
Oct 1, 2026
Owner
Adds `loushy doctor [agent.yaml|json] [--json]`, which checks Node against engines.node, the required peers (ai, zod) and optional provider peers against the SDK's peerDependencies, API-key env vars (name and set/not set only, never the value), and, given a spec, validates it with the existing loader and checks its provider, built-in tools, MCP server commands, Ollama reachability and Docker availability. Each non-ok line carries a concrete fix. Exit code is 1 on any failure, 0 otherwise. The core is a pure runDoctor(env: DoctorEnvironment) with everything external injected; doctor.ts is the thin CLI wrapper. The provider->env-var table moved from resolveProvider.ts to providers/providerEnv.ts (not in the public barrel) so the doctor reuses it instead of duplicating it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolve conflicts: keep both mcp and doctor commands (bin, tsup, fallow); take main's resolveProvider.ts; drop providerEnv.ts in favour of providerSpec.ts (listProviders(), modelFromEnv(caller, env)). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.