@praneeth_54/agentdoctor 1.1.0 → 2.0.0
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/CHANGELOG.md +119 -5
- package/README.md +165 -332
- package/dist/agents/aider/adapter.d.ts +1 -0
- package/dist/agents/aider/adapter.js +1 -0
- package/dist/agents/aider/detector.d.ts +14 -0
- package/dist/agents/aider/detector.js +120 -0
- package/dist/agents/copilot/adapter.d.ts +1 -0
- package/dist/agents/copilot/adapter.js +1 -0
- package/dist/agents/copilot/detector.d.ts +13 -0
- package/dist/agents/copilot/detector.js +113 -0
- package/dist/agents/gemini/adapter.d.ts +1 -0
- package/dist/agents/gemini/adapter.js +1 -0
- package/dist/agents/gemini/detector.d.ts +13 -0
- package/dist/agents/gemini/detector.js +151 -0
- package/dist/agents/registry.js +13 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/agents/windsurf/adapter.d.ts +1 -0
- package/dist/agents/windsurf/adapter.js +1 -0
- package/dist/agents/windsurf/detector.d.ts +14 -0
- package/dist/agents/windsurf/detector.js +119 -0
- package/dist/architecture/c4.d.ts +22 -0
- package/dist/architecture/c4.js +62 -0
- package/dist/cli/commands/brain.d.ts +12 -0
- package/dist/cli/commands/brain.js +162 -0
- package/dist/cli/commands/complete.d.ts +23 -0
- package/dist/cli/commands/complete.js +232 -0
- package/dist/cli/commands/explain.js +1 -1
- package/dist/cli/commands/fix.js +22 -2
- package/dist/cli/commands/mcp.d.ts +8 -0
- package/dist/cli/commands/mcp.js +14 -0
- package/dist/cli/commands/platform.d.ts +15 -0
- package/dist/cli/commands/platform.js +191 -0
- package/dist/cli/commands/v2.d.ts +55 -0
- package/dist/cli/commands/v2.js +278 -0
- package/dist/cli/program.js +809 -2
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +5 -1
- package/dist/contracts/adapters.d.ts +7 -0
- package/dist/contracts/adapters.js +60 -0
- package/dist/contracts/index.d.ts +162 -0
- package/dist/contracts/index.js +18 -0
- package/dist/core/baseline/store.d.ts +48 -0
- package/dist/core/baseline/store.js +163 -0
- package/dist/core/brain-cli/service.d.ts +26 -0
- package/dist/core/brain-cli/service.js +175 -0
- package/dist/core/brain-product/init.d.ts +45 -0
- package/dist/core/brain-product/init.js +232 -0
- package/dist/core/changes/analyze.d.ts +41 -0
- package/dist/core/changes/analyze.js +223 -0
- package/dist/core/context-health/analyze.d.ts +15 -0
- package/dist/core/context-health/analyze.js +234 -0
- package/dist/core/fix/apply.d.ts +21 -4
- package/dist/core/fix/apply.js +118 -18
- package/dist/core/fix/backup.d.ts +30 -0
- package/dist/core/fix/backup.js +193 -0
- package/dist/core/fix/plan.d.ts +6 -3
- package/dist/core/fix/plan.js +113 -9
- package/dist/core/fix/render.d.ts +2 -0
- package/dist/core/fix/render.js +36 -21
- package/dist/core/fix/run.js +5 -1
- package/dist/core/fix/safe-target.d.ts +14 -0
- package/dist/core/fix/safe-target.js +81 -0
- package/dist/core/fix/types.d.ts +12 -1
- package/dist/core/fix/types.js +2 -0
- package/dist/core/fix/writers/claude-settings.js +3 -1
- package/dist/core/fix/writers/codex-config.d.ts +3 -0
- package/dist/core/fix/writers/codex-config.js +24 -3
- package/dist/core/fix/writers/cursorignore.js +3 -1
- package/dist/core/fix/writers/simple-ignore.d.ts +16 -0
- package/dist/core/fix/writers/simple-ignore.js +68 -0
- package/dist/core/monorepo/detect.d.ts +13 -0
- package/dist/core/monorepo/detect.js +121 -0
- package/dist/core/rules/build-context.js +22 -3
- package/dist/core/rules/context/generated-directory.js +11 -1
- package/dist/core/rules/context/large-instruction-file.js +6 -0
- package/dist/core/rules/context/large-log-file.js +16 -1
- package/dist/core/rules/ignore.d.ts +11 -1
- package/dist/core/rules/ignore.js +22 -1
- package/dist/core/rules/instructions/empty-instructions.js +7 -0
- package/dist/core/rules/security/env-file-exposure.js +23 -2
- package/dist/core/rules/security/private-key-file.js +1 -1
- package/dist/core/scanner/scan.js +1 -1
- package/dist/core/schemas/validate.d.ts +6 -0
- package/dist/core/schemas/validate.js +62 -0
- package/dist/core/scoring/compute-scores.d.ts +1 -1
- package/dist/core/scoring/compute-scores.js +5 -1
- package/dist/core/scoring/placeholder.d.ts +1 -1
- package/dist/core/scoring/placeholder.js +5 -1
- package/dist/core/secrets/scan.d.ts +23 -0
- package/dist/core/secrets/scan.js +172 -0
- package/dist/dashboard/server.d.ts +24 -0
- package/dist/dashboard/server.js +386 -0
- package/dist/enforcement/runner.d.ts +23 -0
- package/dist/enforcement/runner.js +56 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +12 -0
- package/dist/integrations/github/pr-analyze.d.ts +28 -0
- package/dist/integrations/github/pr-analyze.js +98 -0
- package/dist/integrations/local-ai/provider.d.ts +45 -0
- package/dist/integrations/local-ai/provider.js +104 -0
- package/dist/intelligence/git/analyze.d.ts +34 -0
- package/dist/intelligence/git/analyze.js +136 -0
- package/dist/intelligence/graph/build.d.ts +13 -0
- package/dist/intelligence/graph/build.js +215 -0
- package/dist/knowledge/store.d.ts +25 -0
- package/dist/knowledge/store.js +91 -0
- package/dist/mcp/agentdoctor/server.d.ts +16 -0
- package/dist/mcp/agentdoctor/server.js +67 -0
- package/dist/mcp/brain/session.js +7 -7
- package/dist/mcp/intelligence/handlers.d.ts +11 -0
- package/dist/mcp/intelligence/handlers.js +175 -0
- package/dist/mcp/intelligence/path-safety.d.ts +11 -0
- package/dist/mcp/intelligence/path-safety.js +82 -0
- package/dist/mcp/intelligence/registry.d.ts +8 -0
- package/dist/mcp/intelligence/registry.js +160 -0
- package/dist/ops/health.d.ts +18 -0
- package/dist/ops/health.js +51 -0
- package/dist/platform/ai-quality/analyze.d.ts +9 -0
- package/dist/platform/ai-quality/analyze.js +65 -0
- package/dist/platform/architecture/drift.d.ts +17 -0
- package/dist/platform/architecture/drift.js +74 -0
- package/dist/platform/auth/local.d.ts +15 -0
- package/dist/platform/auth/local.js +58 -0
- package/dist/platform/context-security/analyze.d.ts +6 -0
- package/dist/platform/context-security/analyze.js +97 -0
- package/dist/platform/firewall/evaluate.d.ts +54 -0
- package/dist/platform/firewall/evaluate.js +308 -0
- package/dist/platform/graph/build.d.ts +6 -0
- package/dist/platform/graph/build.js +193 -0
- package/dist/platform/health/analyze.d.ts +7 -0
- package/dist/platform/health/analyze.js +186 -0
- package/dist/platform/index.d.ts +27 -0
- package/dist/platform/index.js +87 -0
- package/dist/platform/knowledge/analyze.d.ts +20 -0
- package/dist/platform/knowledge/analyze.js +96 -0
- package/dist/platform/provenance/build.d.ts +44 -0
- package/dist/platform/provenance/build.js +65 -0
- package/dist/platform/readiness/scorecard.d.ts +5 -0
- package/dist/platform/readiness/scorecard.js +98 -0
- package/dist/platform/refactor/impact.d.ts +20 -0
- package/dist/platform/refactor/impact.js +60 -0
- package/dist/platform/reports/export.d.ts +12 -0
- package/dist/platform/reports/export.js +92 -0
- package/dist/platform/security/redact.d.ts +15 -0
- package/dist/platform/security/redact.js +87 -0
- package/dist/platform/sessions/store.d.ts +32 -0
- package/dist/platform/sessions/store.js +97 -0
- package/dist/platform/store.d.ts +6 -0
- package/dist/platform/store.js +57 -0
- package/dist/platform/test-impact/analyze.d.ts +32 -0
- package/dist/platform/test-impact/analyze.js +164 -0
- package/dist/platform/time-machine/compare.d.ts +17 -0
- package/dist/platform/time-machine/compare.js +62 -0
- package/dist/platform/tokens/plan.d.ts +28 -0
- package/dist/platform/tokens/plan.js +89 -0
- package/dist/platform/types.d.ts +111 -0
- package/dist/platform/types.js +5 -0
- package/dist/plugins/runtime.d.ts +36 -0
- package/dist/plugins/runtime.js +101 -0
- package/dist/plugins/sdk.d.ts +29 -0
- package/dist/plugins/sdk.js +114 -0
- package/dist/policy/packs.d.ts +9 -0
- package/dist/policy/packs.js +59 -0
- package/dist/reporters/terminal/report.js +38 -5
- package/dist/storage/provider.d.ts +35 -0
- package/dist/storage/provider.js +103 -0
- package/dist/team/auth.d.ts +35 -0
- package/dist/team/auth.js +70 -0
- package/dist/types/index.d.ts +5 -1
- package/package.json +14 -7
package/CHANGELOG.md
CHANGED
|
@@ -9,8 +9,120 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Notes
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
|
|
12
|
+
- Post-cut work only. Version cut for **2.0.0** is recorded below (not yet
|
|
13
|
+
committed, tagged, or published unless a human does so separately).
|
|
14
|
+
|
|
15
|
+
## [2.0.0] — 2026-09-21
|
|
16
|
+
|
|
17
|
+
AgentDoctor 2.0 expands the product from Safety + Project Brain into **codebase
|
|
18
|
+
intelligence** for developers, agents, and engineering teams — while preserving
|
|
19
|
+
Safety CLI behavior and Brain MCP tool names.
|
|
20
|
+
|
|
21
|
+
Canonical docs: [docs/2.0/](docs/2.0/README.md). Readiness:
|
|
22
|
+
[docs/2.0/overview/readiness-matrix.md](docs/2.0/overview/readiness-matrix.md).
|
|
23
|
+
Limitations: [docs/2.0/overview/known-limitations.md](docs/2.0/overview/known-limitations.md).
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- Shared contracts layer (`CONTRACTS_VERSION`) unifying findings / graph /
|
|
28
|
+
knowledge / policy shapes.
|
|
29
|
+
- Repository Brain productization: `init`, proposal artifacts, `brain review` /
|
|
30
|
+
`brain proposals` / product snapshots (proposals never auto-approved).
|
|
31
|
+
- TypeScript/JavaScript AST intelligence graph (`graph`) with regex fallback.
|
|
32
|
+
- Git engineering intelligence (`health`) with per-metric method disclosure.
|
|
33
|
+
- C4-style architecture views (`c4`) labeled inferred/proposed.
|
|
34
|
+
- Impact surfaces: `impact`, `test-impact`, `refactor-impact`.
|
|
35
|
+
- Governed knowledge store with abstention (`knowledge`, `knowledge-create`,
|
|
36
|
+
`knowledge-approve`).
|
|
37
|
+
- Policy packs + AgentDoctor-controlled enforcement runner (`enforce`) distinct
|
|
38
|
+
from evaluate-only firewall.
|
|
39
|
+
- Combined MCP server (`agentdoctor mcp`) exposing Brain tools **plus**
|
|
40
|
+
intelligence tools without renaming `brain_*`.
|
|
41
|
+
- Dashboard `/api/v2/*` endpoints (graph, health, c4, knowledge,
|
|
42
|
+
projects/workspaces stubs).
|
|
43
|
+
- Local-dev team authentication (`team-register`, `team-login`) — not enterprise SSO.
|
|
44
|
+
- Ops health via `doctor --json`.
|
|
45
|
+
- Security hardening: MCP/dashboard path-safety, symlink skip in AST walk,
|
|
46
|
+
secret redaction on exports/API samples.
|
|
47
|
+
- Documentation tree: `docs/2.0/` (overview, guides, reports, audits, release).
|
|
48
|
+
- Additional 2.0 platform / Safety surfaces landed with this release train:
|
|
49
|
+
evaluate-only Action Policy Evaluator (`platform policy-check`, alias
|
|
50
|
+
`firewall-check`), session audit, provenance, context-security, architecture
|
|
51
|
+
drift, time-machine, token planner, readiness scorecard, multi-format reports,
|
|
52
|
+
Copilot / Windsurf / Gemini CLI / Aider adapters, Project Brain CLI
|
|
53
|
+
(`brain init|status|inspect|rebuild|history|search|export|import`),
|
|
54
|
+
`changes`, `context-health`, `secrets`, Safe Fix 2.0 backup/undo, named
|
|
55
|
+
baselines, monorepo `packages`, local `pr-review`, loopback `dashboard`,
|
|
56
|
+
`plugins`, optional `local-ai`.
|
|
57
|
+
|
|
58
|
+
### Security
|
|
59
|
+
|
|
60
|
+
- Path-traversal hardening for MCP `dependency_lookup` and dashboard hostile URLs.
|
|
61
|
+
- Evaluate-only policy evaluation remains explicit (`executionResult: "not-executed"`).
|
|
62
|
+
- `blocked-by-enforcement` only on the AgentDoctor-controlled runner block path.
|
|
63
|
+
- Loopback dashboard default retained; non-loopback requires explicit opt-in.
|
|
64
|
+
- Safe Fix target hardening: refuse symlink write-through, symlink ancestors,
|
|
65
|
+
directory targets, and non-allowlisted paths.
|
|
66
|
+
|
|
67
|
+
### Compatibility
|
|
68
|
+
|
|
69
|
+
- Safety `scan` / `fix` / `verify` workflows and exit codes preserved.
|
|
70
|
+
- Brain MCP tool names preserved (`brain_overview`, …, `brain_snapshot`).
|
|
71
|
+
- Additive CLI commands only; no intentional removal of 1.x public surfaces.
|
|
72
|
+
- Platform evaluate-only firewall behavior preserved.
|
|
73
|
+
|
|
74
|
+
### Known limitations (at release)
|
|
75
|
+
|
|
76
|
+
- AST analysis is TypeScript/JavaScript-focused; other languages unsupported for
|
|
77
|
+
deep graph analysis.
|
|
78
|
+
- Test-impact is heuristic/graph-based (no coverage-file oracle).
|
|
79
|
+
- C4 views are inferred, not approved architecture truth.
|
|
80
|
+
- No IDE interception of third-party agents.
|
|
81
|
+
- Local-dev team auth is not SSO.
|
|
82
|
+
- SQLite/Postgres/vector backends are not production-complete.
|
|
83
|
+
- See README limitations and `docs/2.0/overview/known-limitations.md`.
|
|
84
|
+
|
|
85
|
+
### Migration notes
|
|
86
|
+
|
|
87
|
+
- Upgrading from 1.1.x: existing `.agentdoctor` Safety/Brain data remains valid.
|
|
88
|
+
- New directories may appear under `.agentdoctor/repository-brain/`,
|
|
89
|
+
`.agentdoctor/knowledge/`, `.agentdoctor/team/`, `.agentdoctor/platform/`.
|
|
90
|
+
- Treat `init` outputs as **proposed** until reviewed.
|
|
91
|
+
- Prefer `agentdoctor mcp` for combined tools; `brain-mcp` remains for Brain-only clients.
|
|
92
|
+
- Full guide: [docs/2.0/guides/migration.md](docs/2.0/guides/migration.md).
|
|
93
|
+
|
|
94
|
+
### Notes
|
|
95
|
+
|
|
96
|
+
- Readiness matrix classifications remain honest; many 2.0 surfaces are
|
|
97
|
+
**implemented but partially validated**. No blanket 5/5 claims.
|
|
98
|
+
- Multi-writer Safe Fix is still not fully atomic across targets after preflight.
|
|
99
|
+
- Vitest 3 → 4/5 major upgrade remains deferred (dev-only moderate advisory).
|
|
100
|
+
- Do **not** auto-publish from CI agents. Tag/publish require a separate human step.
|
|
101
|
+
|
|
102
|
+
## [1.1.1] — 2026-09-20
|
|
103
|
+
|
|
104
|
+
Patch release: Marketplace Action naming + dependency security pins. npm, git tag,
|
|
105
|
+
GitHub Release, and Action default are aligned on **`1.1.1`**.
|
|
106
|
+
|
|
107
|
+
### Changed
|
|
108
|
+
|
|
109
|
+
- GitHub Action Marketplace display name is now `AgentDoctor Safety`.
|
|
110
|
+
- npm overrides pin patched transitive versions: `js-yaml@4.3.2`, `fast-uri@3.1.8`,
|
|
111
|
+
`hono@4.13.8`, `qs@6.16.0`.
|
|
112
|
+
- Fixture `fixtures/multi-agent-project` pins `next@15.5.24` (scan fixture only).
|
|
113
|
+
- Action default `version` input and CI smoke pins use `1.1.1`.
|
|
114
|
+
|
|
115
|
+
### Security
|
|
116
|
+
|
|
117
|
+
- Clears known high/moderate advisories on transitive lint/MCP stack dependencies
|
|
118
|
+
without changing the Safety CLI public API.
|
|
119
|
+
- Vitest / `@vitest/mocker` moderate advisory deferred (requires major upgrade).
|
|
120
|
+
|
|
121
|
+
### Docs
|
|
122
|
+
|
|
123
|
+
- [docs/archive/DEPENDENCY_SECURITY_AUDIT.md](docs/archive/DEPENDENCY_SECURITY_AUDIT.md)
|
|
124
|
+
- [docs/archive/DEPENDABOT_PR_REVIEW.md](docs/archive/DEPENDABOT_PR_REVIEW.md)
|
|
125
|
+
- [docs/release-notes/v1.1.1.md](docs/release-notes/v1.1.1.md)
|
|
14
126
|
|
|
15
127
|
## [1.1.0] — 2026-08-13
|
|
16
128
|
|
|
@@ -106,7 +218,7 @@ First production release: Scan → Fix → Verify → CI contract frozen for v1.
|
|
|
106
218
|
|
|
107
219
|
### Compatibility
|
|
108
220
|
|
|
109
|
-
- CLI + JSON + rule ID contracts frozen for v1 (see [docs/compatibility.md](docs/compatibility.md))
|
|
221
|
+
- CLI + JSON + rule ID contracts frozen for v1 (see [docs/reference/compatibility.md](docs/reference/compatibility.md))
|
|
110
222
|
- Action `version` input default is `1.0.0` (bumped after npm published `@praneeth_54/agentdoctor@1.0.0`)
|
|
111
223
|
|
|
112
224
|
## [0.3.0-beta] — 2026-08-07
|
|
@@ -150,7 +262,7 @@ Minor beta: deterministic readiness scoring and CLI `--min-score` enforcement.
|
|
|
150
262
|
|
|
151
263
|
- Deterministic readiness scoring (v1): `scan()` populates `scoringAvailable: true` and
|
|
152
264
|
`scores` (`overall`, `categories`, `agents`) from post-dedupe findings
|
|
153
|
-
([docs/scoring.md](docs/scoring.md))
|
|
265
|
+
([docs/reference/scoring.md](docs/reference/scoring.md))
|
|
154
266
|
- CLI `--min-score N` enforcement: exit code `1` when `scores.overall < N`
|
|
155
267
|
- `--ci` without `--min-score` remains report-only (exit `0` on successful scan)
|
|
156
268
|
- Scoring specification and compatibility / exit-code docs updated for shipped behavior
|
|
@@ -273,7 +385,9 @@ First public beta.
|
|
|
273
385
|
- Not a complete secret scanner
|
|
274
386
|
- Git “tracked secret” detection deferred
|
|
275
387
|
|
|
276
|
-
[Unreleased]: https://github.com/pranee54/AgentDoctor/compare/
|
|
388
|
+
[Unreleased]: https://github.com/pranee54/AgentDoctor/compare/v2.0.0...HEAD
|
|
389
|
+
[2.0.0]: https://github.com/pranee54/AgentDoctor/compare/v1.1.1...v2.0.0
|
|
390
|
+
[1.1.1]: https://github.com/pranee54/AgentDoctor/releases/tag/v1.1.1
|
|
277
391
|
[1.1.0]: https://github.com/pranee54/AgentDoctor/releases/tag/v1.1.0
|
|
278
392
|
[1.0.0]: https://github.com/pranee54/AgentDoctor/releases/tag/v1.0.0
|
|
279
393
|
[0.3.0-beta]: https://github.com/pranee54/AgentDoctor/releases/tag/v0.3.0-beta
|