@neuralaxis/vibedoctor 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +203 -280
  2. package/dist/adapters/customDeadChain.d.ts +2 -1
  3. package/dist/adapters/customDeadChain.js +100 -8
  4. package/dist/adapters/customLeftovers.js +33 -10
  5. package/dist/adapters/index.d.ts +3 -0
  6. package/dist/adapters/index.js +7 -1
  7. package/dist/adapters/jscpd.d.ts +1 -0
  8. package/dist/adapters/jscpd.js +10 -1
  9. package/dist/adapters/presidio.d.ts +2 -0
  10. package/dist/adapters/presidio.js +158 -0
  11. package/dist/adapters/privacyDetector.d.ts +10 -0
  12. package/dist/adapters/privacyDetector.js +600 -0
  13. package/dist/adapters/telemetryDetector.d.ts +2 -0
  14. package/dist/adapters/telemetryDetector.js +118 -0
  15. package/dist/agentPack/generateAgentPack.d.ts +7 -0
  16. package/dist/agentPack/generateAgentPack.js +89 -1
  17. package/dist/agentPack/templates/index.js +14 -11
  18. package/dist/agentPack/templates/skills.js +47 -0
  19. package/dist/cli/commands/agent.d.ts +5 -0
  20. package/dist/cli/commands/agent.js +10 -0
  21. package/dist/cli/commands/init.js +38 -13
  22. package/dist/cli/commands/privacyReview.d.ts +9 -0
  23. package/dist/cli/commands/privacyReview.js +304 -0
  24. package/dist/cli/commands/scan.js +27 -1
  25. package/dist/cli/commands/setup.js +49 -9
  26. package/dist/cli/index.js +63 -7
  27. package/dist/core/config.d.ts +23 -0
  28. package/dist/core/config.js +114 -5
  29. package/dist/core/engine.d.ts +3 -0
  30. package/dist/core/engine.js +31 -9
  31. package/dist/core/finding.d.ts +16 -2
  32. package/dist/core/finding.js +5 -0
  33. package/dist/core/paths.js +5 -0
  34. package/dist/core/privacyReview.d.ts +51 -0
  35. package/dist/core/privacyReview.js +94 -0
  36. package/dist/core/projectDetector.js +6 -1
  37. package/dist/core/scanPlanner.js +4 -0
  38. package/dist/core/scoring.js +6 -0
  39. package/dist/core/toolRunner.js +25 -4
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +5 -0
  42. package/dist/mcp/tools/shared.d.ts +1 -1
  43. package/dist/reporters/html.js +8 -6
  44. package/dist/reporters/json.js +3 -5
  45. package/dist/reporters/markdown.js +7 -0
  46. package/dist/reporters/sarif.js +6 -0
  47. package/dist/reporters/terminal.js +1 -5
  48. package/dist/rules/severityMap.d.ts +1 -0
  49. package/dist/rules/severityMap.js +1 -0
  50. package/package.json +3 -2
package/README.md CHANGED
@@ -1,280 +1,203 @@
1
- # VibeDoctor
2
-
3
- **A health check for code you didn't write line by line.**
4
-
5
- AI writes most of the code now. It ships fast, and it also leaves behind dead
6
- branches, half-removed fallbacks, commented-out experiments, untested files, and
7
- the occasional hardcoded secret. VibeDoctor is the checkup that catches all of
8
- that before it reaches your main branch.
9
-
10
- It runs the quality tools your project already uses, normalizes their output into
11
- one finding model, scores the repo, and tells humans **and** coding agents exactly
12
- what to fix next.
13
-
14
- ```bash
15
- npx @neuralaxis/vibedoctor scan
16
- ```
17
-
18
- ```text
19
- Health: 71/100 ⚠️
20
-
21
- Blockers: 1
22
- Fix next: 3
23
- Leftovers: 1
24
- Dead code candidates: 1
25
- Refactor candidates: 1
26
-
27
- BLOCKERS
28
- 1. Hardcoded secret in config (src/config.ts)
29
-
30
- FIX NEXT
31
- 1. Hardcoded secret (src/config.ts)
32
- 2. Dead chain candidate (src/legacy.ts)
33
- 3. Ready for refactor (src/report_builder.ts)
34
-
35
- READY FOR AGENT
36
- Run:
37
- vibedoctor agent-plan
38
- ```
39
-
40
- No dashboards, no SaaS sign-up, no config required to start. One command, one
41
- short answer.
42
-
43
- ## Why VibeDoctor
44
-
45
- - **Built for the AI era.** It specifically hunts the debt that generated code
46
- leaves behind: dead chains, legacy fallbacks, leftover comments, and untested
47
- surface area, not just lint noise.
48
- - **One score, one priority list.** Fifteen-plus tools collapse into a single
49
- health score and a ranked "fix next" list instead of a wall of warnings.
50
- - **Agent-native.** Ships skills and instructions for Codex, Claude Code, GitHub
51
- Copilot, and Cursor, plus an MCP server, so your agent can scan and self-correct.
52
- - **Honest by default.** Missing tools are reported as skipped, never silently
53
- counted as passing.
54
- - **Zero lock-in.** It orchestrates open tools you already trust and writes plain
55
- JSON, HTML, Markdown, and SARIF you own.
56
-
57
- ## What It Checks
58
-
59
- VibeDoctor detects the project shape, discovers local tool binaries from
60
- `node_modules/.bin` and Python virtualenv folders, then runs relevant adapters
61
- when available.
62
-
63
- It can report on:
64
-
65
- - type and lint failures from TypeScript, Pyright, Ruff, and Biome
66
- - secrets and dependency risk from Gitleaks, OSV-Scanner, Semgrep, deptry, and Knip
67
- - dead code from Vulture, Knip, and VibeDoctor's dead-chain detector
68
- - leftover AI or legacy code such as commented-out blocks, fallback flags, and stale TODOs
69
- - refactor-readiness hotspots, duplication, complexity, and coverage gaps
70
- - test coverage from coverage.py, Vitest, and Jest
71
-
72
- Missing tools are reported as skipped instead of treated as clean coverage.
73
-
74
- ## Quickstart
75
-
76
- From the repository or package you want to inspect:
77
-
78
- ```bash
79
- npx @neuralaxis/vibedoctor init
80
- npx @neuralaxis/vibedoctor setup
81
- npx @neuralaxis/vibedoctor scan --quick
82
- npx @neuralaxis/vibedoctor scan --changed
83
- ```
84
-
85
- Prefer a shorter command? Install it once and call the `vibedoctor` binary directly:
86
-
87
- ```bash
88
- npm install -g @neuralaxis/vibedoctor
89
- vibedoctor scan
90
- ```
91
-
92
- The remaining examples use the `vibedoctor` binary; prefix them with `npx @neuralaxis/vibedoctor` if you skip the global install.
93
-
94
- Want the strongest first scan? Run `vibedoctor setup --apply`. VibeDoctor will
95
- install the essential project-local npm/Python tools it can install safely, and
96
- print exact manual steps for native tools such as Gitleaks and OSV-Scanner.
97
-
98
- For the strongest signal in monorepos, run VibeDoctor from the package or service root you are actively changing. Running from the monorepo root is supported, but package roots usually produce tighter dependency and test-tool signal.
99
-
100
- After a scan, VibeDoctor writes:
101
-
102
- - `.vibedoctor/report.json` for tools and agents
103
- - `.vibedoctor/report.html` for a browser-readable report
104
- - `.vibedoctor/agent-plan.md` for guided repair work
105
-
106
- ## Common Workflows
107
-
108
- | Goal | Command |
109
- | --- | --- |
110
- | Initialize config | `vibedoctor init` |
111
- | Plan/install scanner tools | `vibedoctor setup` / `vibedoctor setup --apply` |
112
- | Fast local triage | `vibedoctor scan --quick` |
113
- | Review only changed files | `vibedoctor scan --changed` |
114
- | Full repository scan | `vibedoctor scan --full` |
115
- | Scan one category | `vibedoctor scan --category dead_code,leftovers --report json` |
116
- | Apply safe tool fixes | `vibedoctor fix --safe` |
117
- | Create a baseline | `vibedoctor baseline create` |
118
- | Explain one finding | `vibedoctor explain <finding-id>` |
119
- | Verify after edits | `vibedoctor verify` |
120
- | Generate agent plan | `vibedoctor agent-plan --format markdown` |
121
- | Start MCP server | `vibedoctor mcp` |
122
-
123
- `scan` and `verify` return a non-zero exit code when the configured score threshold or fail-fast checks are tripped, so they drop straight into a pre-commit hook or CI gate.
124
-
125
- ## Configuration
126
-
127
- `vibedoctor init` writes a `vibedoctor.yml` you can tune. Sensible defaults are
128
- baked in, so editing is optional. The most useful knobs:
129
-
130
- - `score.minimum` — the health score that `scan`/`verify` must clear to pass
131
- - `baseline.fail_only_on_new_issues` — only fail on debt introduced since the baseline
132
- - `checks.*` — enable/disable categories and set fail-fast rules for secrets, type errors, test failures, and vulnerabilities
133
- - `paths.include` / `paths.exclude` — scope what gets scanned
134
-
135
- Use `vibedoctor baseline create` to snapshot existing debt, then fail builds only
136
- on *new* problems while you pay down the rest over time.
137
-
138
- ## Tool Setup Philosophy
139
-
140
- VibeDoctor prefers tools already installed by the repository because that matches
141
- your real CI versions and config. It never treats a missing tool as a clean pass:
142
- missing tools are shown as skipped with install guidance.
143
-
144
- For a smoother first run, `vibedoctor setup` gives you the curated install plan.
145
- The default `essential` set is the smallest group needed to make the main product
146
- promise work across common repos:
147
-
148
- - built-in detectors: leftovers, dead-chain candidates, and refactor readiness
149
- - JS/TS: TypeScript, Biome, and Knip
150
- - Python: Ruff, Pyright, and Vulture
151
- - security/dependencies: Gitleaks and OSV-Scanner
152
-
153
- `vibedoctor setup --apply` installs automatable package-manager tools. Native
154
- binaries stay explicit for now so the CLI does not silently download executables
155
- into developer or CI machines.
156
-
157
- Additional setup scopes are available when you want broader or narrower plans:
158
-
159
- - `vibedoctor setup --include recommended` for recommended-only extras
160
- - `vibedoctor setup --include all` for the combined essential + recommended set
161
- - `vibedoctor setup --include npm` for JS/TS package installs only
162
- - `vibedoctor setup --include python` for Python package installs only
163
- - `vibedoctor setup --include manual` for native/manual binaries only
164
- - `vibedoctor setup --include built-in` for VibeDoctor's built-in detectors only
165
-
166
- ## Reports
167
-
168
- Use `scan --report <format>` or `report` commands depending on whether you want a fresh scan or a rendered artifact.
169
-
170
- ```bash
171
- vibedoctor scan --full --report json
172
- vibedoctor report --html
173
- vibedoctor report --markdown
174
- vibedoctor report --agent
175
- vibedoctor report --sarif
176
- ```
177
-
178
- JSON is the best format for automation. Terminal output is intentionally short and answers: health score, blockers, fix-next items, leftovers, dead-code candidates, skipped tools, and errored tool causes.
179
-
180
- ## Agent Pack
181
-
182
- VibeDoctor can install repo-scoped instructions and skills for Codex, Claude Code, GitHub Copilot, and Cursor.
183
-
184
- ```bash
185
- vibedoctor agent init --targets all
186
- vibedoctor agent doctor --targets all
187
- ```
188
-
189
- Generated files:
190
-
191
- | Target | Files |
192
- | --- | --- |
193
- | Codex | `AGENTS.md`, `.agents/skills/<skill>/SKILL.md`, `.agents/skills/<skill>/agents/openai.yaml` |
194
- | Claude Code | `.claude/skills/<skill>/SKILL.md` plus mirrored skill support files |
195
- | GitHub Copilot | `.github/copilot-instructions.md`, `.github/skills/<skill>/SKILL.md` plus mirrored skill support files |
196
- | Cursor | `.cursor/rules/vibedoctor.mdc`, `.cursor/mcp.json` |
197
- | Shared policy | `.vibedoctor/agent-policy.yml`, `.vibedoctor/agent-pack.json` |
198
-
199
- The canonical source is `.agents/skills`. `agent sync` mirrors those skills into the target-specific locations.
200
-
201
- ```bash
202
- vibedoctor agent pack
203
- vibedoctor agent sync --targets claude,copilot,cursor
204
- vibedoctor agent sync --targets all --force
205
- ```
206
-
207
- This follows the same packaging model used by the major coding agents:
208
-
209
- - Codex reads repository instructions from `AGENTS.md` and repo skills from `.agents/skills/<skill>/SKILL.md`. VibeDoctor also emits optional Codex `agents/openai.yaml` metadata for a cleaner app experience.
210
- - Claude Code reads project skills from `.claude/skills/<skill>/SKILL.md`, where the directory name becomes the slash command.
211
- - GitHub Copilot reads repository guidance from `.github/copilot-instructions.md` and can use agent instructions from `AGENTS.md`.
212
- - Cursor uses rule files and MCP configuration for always-on guidance and tool access.
213
-
214
- VibeDoctor ships repo-scoped skills, not a Codex or Claude plugin package. That is intentional for now: the CLI installs workflow guidance directly into the repository being scanned.
215
-
216
- ## MCP Server
217
-
218
- Start the MCP server with:
219
-
220
- ```bash
221
- vibedoctor mcp
222
- ```
223
-
224
- The server exposes structured tools for changed scans, full scans, safe fixes, report retrieval, agent-plan retrieval, finding explanations, and verification.
225
-
226
- ## Development
227
-
228
- Requirements:
229
-
230
- - Node.js 18 or newer
231
- - npm 10.x for lockfile-compatible installs
232
-
233
- Install dependencies and run the full local check:
234
-
235
- ```bash
236
- npm ci
237
- npm run check
238
- ```
239
-
240
- Useful scripts:
241
-
242
- ```bash
243
- npm test
244
- npm run typecheck
245
- npm run build
246
- npm run dev -- scan --quick
247
- ```
248
-
249
- `npm run build` emits production files into `dist/` from `src/` only. Generated output, dependencies, coverage, local virtualenvs, and VibeDoctor report artifacts are intentionally ignored by Git.
250
-
251
- ## Project Layout
252
-
253
- | Path | Purpose |
254
- | --- | --- |
255
- | `src/adapters` | Tool adapters and parsers |
256
- | `src/core` | Project detection, scan planning, scoring, baselines, and command execution |
257
- | `src/cli` | Command-line interface |
258
- | `src/agentPack` | Agent instructions, skills, policy, and target shims |
259
- | `src/mcp` | MCP server and tools |
260
- | `src/reporters` | Terminal, JSON, Markdown, HTML, SARIF, and agent reports |
261
- | `fixtures` | Small sample projects for integration tests |
262
- | `tests` | Unit, integration, and snapshot tests |
263
-
264
- ## Packaging
265
-
266
- Before publish or release packaging, run:
267
-
268
- ```bash
269
- npm pack --dry-run
270
- ```
271
-
272
- The `prepack` script rebuilds `dist/`, and the npm package includes only compiled output plus README, license, and package metadata.
273
-
274
- ## CI
275
-
276
- GitHub Actions runs `npm ci` and `npm run check` on Node 20 and 22 for pushes and pull requests to `main`.
277
-
278
- ## License
279
-
280
- VibeDoctor is licensed under GPL-3.0-or-later. You can use, copy, modify, and redistribute it under the GPL terms; distributed derivative works must provide corresponding source under compatible GPL terms.
1
+ # VibeDoctor
2
+
3
+ A health check for code you did not write line by line.
4
+
5
+ VibeDoctor is a local code-health CLI for JS, TS, Python, and mixed repositories. It turns scattered tool output into a ranked health report, safe repair workflow, Privacy Review artifact, MCP server, and reusable agent skills.
6
+
7
+ ```bash
8
+ npx @neuralaxis/vibedoctor scan --changed
9
+ ```
10
+
11
+ For a stronger first run:
12
+
13
+ ```bash
14
+ npx @neuralaxis/vibedoctor init
15
+ npx @neuralaxis/vibedoctor setup --apply
16
+ npx @neuralaxis/vibedoctor scan --quick
17
+ ```
18
+
19
+ Install once if you prefer the short binary:
20
+
21
+ ```bash
22
+ npm install -g @neuralaxis/vibedoctor
23
+ vibedoctor scan --full
24
+ ```
25
+
26
+ ## Release Demos
27
+
28
+ <video src="docs/assets/vibedoctor-product-release-demo-v0.1.1.mp4" controls muted playsinline width="100%"></video>
29
+
30
+ [Direct video link](docs/assets/vibedoctor-product-release-demo-v0.1.1.mp4)
31
+
32
+ ## Why VibeDoctor
33
+
34
+ - It focuses on the failure modes AI-heavy repos accumulate: dead branches, stale fallbacks, leftovers, weak coverage, and accidental sensitive-data exposure.
35
+ - It collapses many tool results into one finding model, one score, and a ranked fix list instead of a wall of unrelated warnings.
36
+ - It is agent-native without locking you into a hosted service: reports stay local and output remains plain JSON, HTML, Markdown, and SARIF.
37
+
38
+ ## What VibeDoctor Checks
39
+
40
+ VibeDoctor detects the project shape, discovers local tool binaries, runs the checks that make sense for the repo, and reports missing tools as skipped instead of pretending they passed.
41
+
42
+ - Type and lint failures from TypeScript, Pyright, Ruff, Biome, and similar local tools.
43
+ - Secrets and dependency risk from Gitleaks, OSV-Scanner, Semgrep, deptry, Knip, and project-native scanners when available.
44
+ - Privacy and PII exposure from VibeDoctor's deterministic detector, with optional Presidio support.
45
+ - Dead code from Vulture, Knip, and VibeDoctor's dead-chain detector.
46
+ - AI and legacy leftovers such as commented-out blocks, stale TODOs, fallback flags, and half-removed code.
47
+ - Refactor-readiness hotspots, duplication, complexity, and coverage gaps.
48
+ - Test and coverage signal from local JS and Python tooling.
49
+
50
+ After a scan, VibeDoctor writes machine-readable and human-readable artifacts under `.vibedoctor/`, including `report.json`, `report.html`, and `agent-plan.md`.
51
+
52
+ ## Tool Setup Philosophy
53
+
54
+ VibeDoctor prefers repository-local tools and config so the scan matches the versions you actually use in development and CI. Missing tools are reported as skipped with install guidance instead of being counted as clean.
55
+
56
+ ## Common CLI Workflows
57
+
58
+ | Goal | Command |
59
+ | --- | --- |
60
+ | Initialize config | `vibedoctor init` |
61
+ | Plan scanner setup | `vibedoctor setup` |
62
+ | Install automatable recommended tools | `vibedoctor setup --apply` |
63
+ | Fast local triage | `vibedoctor scan --quick` |
64
+ | Review changed files | `vibedoctor scan --changed` |
65
+ | Full repository scan | `vibedoctor scan --full` |
66
+ | Scan selected categories | `vibedoctor scan --category dead_code,leftovers --report json` |
67
+ | Scan privacy findings only | `vibedoctor scan --category privacy --report json` |
68
+ | Render reports | `vibedoctor report --html`, `--markdown`, `--sarif`, or `--agent` |
69
+ | Apply safe tool fixes | `vibedoctor fix --safe` |
70
+ | Create a baseline | `vibedoctor baseline create` |
71
+ | Explain a finding | `vibedoctor explain <finding-id>` |
72
+ | Verify after edits | `vibedoctor verify` |
73
+ | Generate an agent repair plan | `vibedoctor agent-plan --format markdown` |
74
+
75
+ `scan` and `verify` return a non-zero exit code when configured score thresholds or fail-fast checks are tripped, which makes them usable in pre-commit hooks and CI gates.
76
+
77
+ ## Privacy Review
78
+
79
+ Privacy Review is deterministic-first and advisory by default. The built-in privacy detector finds regulated identifiers, personal-data fields, sensitive attributes, and combination-risk patterns while storing masked evidence in reports.
80
+
81
+ ```bash
82
+ vibedoctor scan --category privacy --report json
83
+ vibedoctor privacy-review --refresh --format markdown
84
+ ```
85
+
86
+ By default, privacy findings affect the privacy category score but do not lower the overall health score or fail CI. To make privacy findings blocking, opt in through config:
87
+
88
+ - `checks.privacy.fail_on_regulated_identifiers`
89
+ - `checks.privacy.fail_on_sensitive_attributes`
90
+
91
+ The `privacy-review` command writes `.vibedoctor/privacy-review.json` with structured review decisions and merge-back metadata. Optional AI adjudication only runs when `checks.privacy.ai.enabled` is true and the configured API-key environment variables are present.
92
+
93
+ ## Agent Skills And Plugins
94
+
95
+ VibeDoctor has two agent surfaces.
96
+
97
+ Repo-local install:
98
+
99
+ ```bash
100
+ vibedoctor agent init --targets all
101
+ vibedoctor agent doctor --targets all
102
+ ```
103
+
104
+ This writes repository-scoped guidance and skills:
105
+
106
+ - `AGENTS.md`
107
+ - `.agents/skills/<skill>/SKILL.md`
108
+ - `.agents/skills/<skill>/agents/openai.yaml`
109
+ - `.claude/skills/<skill>/SKILL.md`
110
+ - `.github/skills/<skill>/SKILL.md`
111
+ - `.github/copilot-instructions.md`
112
+ - `.cursor/rules/vibedoctor.mdc`
113
+ - `.cursor/mcp.json`
114
+ - `.vibedoctor/agent-policy.yml`
115
+
116
+ Plugin bundle:
117
+
118
+ ```bash
119
+ vibedoctor agent plugin --target codex
120
+ vibedoctor agent plugin --target claude
121
+ vibedoctor agent plugin --targets all --force
122
+ ```
123
+
124
+ This materializes an installable bundle under `plugins/vibedoctor/`:
125
+
126
+ - `plugins/vibedoctor/.codex-plugin/plugin.json`
127
+ - `plugins/vibedoctor/.claude-plugin/plugin.json`
128
+ - `plugins/vibedoctor/skills/<skill>/SKILL.md`
129
+
130
+ Codex discovers the plugin from `.codex-plugin/plugin.json`, which points to `./skills/`. Claude Code uses the plugin namespace for skill commands, for example:
131
+
132
+ ```text
133
+ /vibedoctor:vibedoctor-health-scan
134
+ /vibedoctor:vibedoctor-privacy-review
135
+ ```
136
+
137
+ The canonical skill catalog is exported from the package root as `AGENT_SKILLS`, `DEFAULT_SKILL_NAMES`, and `SkillTemplate`, and the same templates generate repo skills, Claude skills, Copilot/Cursor shims, and packaged plugin skills.
138
+
139
+ ## MCP Server
140
+
141
+ Start the MCP server over stdio:
142
+
143
+ ```bash
144
+ vibedoctor mcp
145
+ ```
146
+
147
+ The MCP server exposes structured tools for changed scans, full scans, safe fixes, report retrieval, agent-plan retrieval, finding explanations, and verification. Agent configs generated by `vibedoctor agent init --targets all` include target-specific MCP wiring where supported.
148
+
149
+ ## Configuration
150
+
151
+ `vibedoctor init` writes `vibedoctor.yml`. Editing is optional, but these are the most common controls:
152
+
153
+ - `score.minimum`: health score required for `scan` and `verify` to pass.
154
+ - `baseline.fail_only_on_new_issues`: fail only on debt introduced after the baseline.
155
+ - `checks.*`: enable categories and fail-fast gates for secrets, type errors, test failures, and vulnerabilities.
156
+ - `checks.privacy.*`: tune deterministic privacy detection, masking, optional Presidio support, optional AI review, and CI blocking behavior.
157
+ - `paths.include` and `paths.exclude`: scope scanned files.
158
+
159
+ Use `vibedoctor baseline create` to snapshot existing debt, then fail builds only on new problems while you pay down the rest.
160
+
161
+ ## Development And Release
162
+
163
+ Requirements:
164
+
165
+ - Node.js 18 or newer
166
+ - npm 10.x
167
+
168
+ Run the local verification set:
169
+
170
+ ```bash
171
+ npm test
172
+ npm run typecheck
173
+ npm run build
174
+ npm pack --dry-run
175
+ ```
176
+
177
+ Useful development commands:
178
+
179
+ ```bash
180
+ npm run dev -- scan --quick
181
+ npm run dev -- agent init --targets all
182
+ npm run dev -- agent plugin --targets all --force
183
+ ```
184
+
185
+ `npm run build` emits production files into `dist/`. Plugin bundles under `plugins/` are generated on demand by `vibedoctor agent plugin ...` and are ignored in this repository by default.
186
+
187
+ ## Project Layout
188
+
189
+ | Path | Purpose |
190
+ | --- | --- |
191
+ | `src/adapters` | Tool adapters and parsers |
192
+ | `src/core` | Project detection, scan planning, scoring, baselines, and command execution |
193
+ | `src/cli` | Command-line interface |
194
+ | `src/agentPack` | Agent instructions, skills, policy, shims, and plugin generation |
195
+ | `src/mcp` | MCP server and tools |
196
+ | `src/reporters` | Terminal, JSON, Markdown, HTML, SARIF, and agent reports |
197
+ | `plugins/vibedoctor` | Generated Codex and Claude plugin bundle |
198
+ | `fixtures` | Sample projects for tests |
199
+ | `tests` | Unit, integration, and snapshot tests |
200
+
201
+ ## License
202
+
203
+ VibeDoctor is licensed under GPL-3.0-or-later.
@@ -1,4 +1,5 @@
1
1
  import type { Finding } from "../core/finding";
2
+ import type { VibeDoctorConfig } from "../core/config";
2
3
  import type { ProjectContext } from "../core/projectDetector";
3
4
  type CodeNode = {
4
5
  id: string;
@@ -16,5 +17,5 @@ type DeadChainCandidate = {
16
17
  reasons: string[];
17
18
  dependencies: string[];
18
19
  };
19
- export declare function detectDeadChains(project: ProjectContext, findings: Finding[]): Promise<Finding[]>;
20
+ export declare function detectDeadChains(project: ProjectContext, findings: Finding[], config?: Pick<VibeDoctorConfig, "paths">): Promise<Finding[]>;
20
21
  export type { CodeNode, DeadChainCandidate };