@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.
- package/README.md +203 -280
- package/dist/adapters/customDeadChain.d.ts +2 -1
- package/dist/adapters/customDeadChain.js +100 -8
- package/dist/adapters/customLeftovers.js +33 -10
- package/dist/adapters/index.d.ts +3 -0
- package/dist/adapters/index.js +7 -1
- package/dist/adapters/jscpd.d.ts +1 -0
- package/dist/adapters/jscpd.js +10 -1
- package/dist/adapters/presidio.d.ts +2 -0
- package/dist/adapters/presidio.js +158 -0
- package/dist/adapters/privacyDetector.d.ts +10 -0
- package/dist/adapters/privacyDetector.js +600 -0
- package/dist/adapters/telemetryDetector.d.ts +2 -0
- package/dist/adapters/telemetryDetector.js +118 -0
- package/dist/agentPack/generateAgentPack.d.ts +7 -0
- package/dist/agentPack/generateAgentPack.js +89 -1
- package/dist/agentPack/templates/index.js +14 -11
- package/dist/agentPack/templates/skills.js +47 -0
- package/dist/cli/commands/agent.d.ts +5 -0
- package/dist/cli/commands/agent.js +10 -0
- package/dist/cli/commands/init.js +38 -13
- package/dist/cli/commands/privacyReview.d.ts +9 -0
- package/dist/cli/commands/privacyReview.js +304 -0
- package/dist/cli/commands/scan.js +27 -1
- package/dist/cli/commands/setup.js +49 -9
- package/dist/cli/index.js +63 -7
- package/dist/core/config.d.ts +23 -0
- package/dist/core/config.js +114 -5
- package/dist/core/engine.d.ts +3 -0
- package/dist/core/engine.js +31 -9
- package/dist/core/finding.d.ts +16 -2
- package/dist/core/finding.js +5 -0
- package/dist/core/paths.js +5 -0
- package/dist/core/privacyReview.d.ts +51 -0
- package/dist/core/privacyReview.js +94 -0
- package/dist/core/projectDetector.js +6 -1
- package/dist/core/scanPlanner.js +4 -0
- package/dist/core/scoring.js +6 -0
- package/dist/core/toolRunner.js +25 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/mcp/tools/shared.d.ts +1 -1
- package/dist/reporters/html.js +8 -6
- package/dist/reporters/json.js +3 -5
- package/dist/reporters/markdown.js +7 -0
- package/dist/reporters/sarif.js +6 -0
- package/dist/reporters/terminal.js +1 -5
- package/dist/rules/severityMap.d.ts +1 -0
- package/dist/rules/severityMap.js +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,280 +1,203 @@
|
|
|
1
|
-
# VibeDoctor
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
npx @neuralaxis/vibedoctor
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
1.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
`
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
vibedoctor agent
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
|
192
|
-
|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
195
|
-
|
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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 };
|