feat: add bootcamp deps for a standalone dependency report#65
Merged
Conversation
Expose the deterministic dependency-analysis engine (already used to generate DEPENDENCIES.md) as a standalone command. `bootcamp deps <repo>` resolves the repository, detects its package manager (npm, Cargo, pip/Poetry, or Go), and reports the dependency breakdown without invoking the LLM. Output modes: - default: human-readable report with runtime/dev/peer counts, smart category grouping, and per-package versions - `--json`: machine-readable counts, categories, and full lists - `--diagram`: the raw Mermaid dependency graph, ready to pipe into a renderer or a Markdown fence This extends the standalone deterministic command set (scan/health/metrics/security/deps) and reuses the tested `extractDependencies` / `generateDependencyDiagram` engine. Covered by unit tests (report, JSON, diagram, no-manifest, keep-temp, extraction failure, resolve failure) and an e2e test that runs `bootcamp deps` against a real local fixture repo. Co-Authored-By: Claude Opus 4.8 <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.
Summary
Adds
bootcamp deps <repo-url>β a standalone, deterministic dependency report that exposes the existingextractDependenciesengine (the same one that generatesDEPENDENCIES.md) as a first-class command. No LLM involved.Details
package.json), Cargo (Cargo.toml), pip/Poetry (requirements.txt/pyproject.toml), and Go (go.mod).--jsonβ machine-readable counts, categories, and full lists--diagramβ the raw Mermaid dependency graph, ready to pipe into a renderer or a Markdown fence{ "dependencies": null }under--json) and exit 0.-b/--keep-temphandling) as the other standalone commands. This completes the deterministic command set:scan/health/metrics/security/deps.Testing
--json,--diagram, no-manifest (human + JSON),--keep-temp, extraction failure, resolve failure β 8 tests.bootcamp depsagainst a real local fixture repo (report,--json,--diagram) β 3 tests.π€ Generated with Claude Code