Skip to content

feat: add bootcamp deps for a standalone dependency report#65

Merged
Arthur742Ramos merged 1 commit into
mainfrom
arthur742ramos/deps-command
Jun 15, 2026
Merged

feat: add bootcamp deps for a standalone dependency report#65
Arthur742Ramos merged 1 commit into
mainfrom
arthur742ramos/deps-command

Conversation

@Arthur742Ramos

Copy link
Copy Markdown
Owner

Summary

Adds bootcamp deps <repo-url> β€” a standalone, deterministic dependency report that exposes the existing extractDependencies engine (the same one that generates DEPENDENCIES.md) as a first-class command. No LLM involved.

πŸ“¦ Dependencies
Repository: local/repo-bootcamp
Package manager: npm (package.json)

  Runtime       11
  Development   17
  Total         28

By category
  TypeScript: cosmiconfig-typescript-loader, @types/express, @types/node, …
  Testing: @playwright/test, @vitest/coverage-v8, supertest, vitest
  CLI: chalk, commander, ora
  …

Runtime dependencies
  @github/copilot-sdk           ^1.0.0
  chalk                         ^5.3.0
  …

Details

  • Multi-ecosystem. Detects and parses npm (package.json), Cargo (Cargo.toml), pip/Poetry (requirements.txt / pyproject.toml), and Go (go.mod).
  • Three output modes:
    • default β€” human-readable report: runtime/dev/peer counts, smart category grouping, 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
  • Graceful no-op. Repositories with no recognized manifest print a clear message (or { "dependencies": null } under --json) and exit 0.
  • Same resolve/clone/cleanup plumbing (and -b/--keep-temp handling) as the other standalone commands. This completes the deterministic command set: scan/health/metrics/security/deps.

Testing

  • Unit: report, --json, --diagram, no-manifest (human + JSON), --keep-temp, extraction failure, resolve failure β€” 8 tests.
  • E2E: bootcamp deps against a real local fixture repo (report, --json, --diagram) β€” 3 tests.
  • Full suite green locally: typecheck, lint, build, 1155/1155 unit tests.

πŸ€– Generated with Claude Code

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>
@Arthur742Ramos Arthur742Ramos merged commit 4263e0e into main Jun 15, 2026
13 checks passed
@Arthur742Ramos Arthur742Ramos deleted the arthur742ramos/deps-command branch June 15, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants