@praneeth_54/agentdoctor 2.1.0 → 3.0.1
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 +86 -3
- package/README.md +490 -290
- package/dist/agent/chat/deterministic.d.ts +6 -0
- package/dist/agent/chat/deterministic.js +180 -0
- package/dist/agent/chat/service.js +8 -14
- package/dist/agent/context/retrieve.d.ts +2 -1
- package/dist/agent/context/retrieve.js +14 -1
- package/dist/agent/index.d.ts +2 -0
- package/dist/agent/index.js +1 -0
- package/dist/agent/loop.d.ts +2 -0
- package/dist/agent/loop.js +31 -0
- package/dist/agent/roles.d.ts +12 -0
- package/dist/agent/roles.js +138 -0
- package/dist/agent/runtime.d.ts +21 -5
- package/dist/agent/runtime.js +141 -28
- package/dist/agent/tools/execute.d.ts +2 -0
- package/dist/agent/tools/execute.js +49 -43
- package/dist/agent/tools/write.d.ts +1 -1
- package/dist/agent/tools/write.js +18 -4
- package/dist/ai/config.js +1 -0
- package/dist/ai/providers/adversarial-local.d.ts +7 -0
- package/dist/ai/providers/adversarial-local.js +146 -0
- package/dist/ai/redact.d.ts +1 -0
- package/dist/ai/redact.js +47 -7
- package/dist/ai/types.d.ts +1 -1
- package/dist/cli/commands/agent.d.ts +2 -0
- package/dist/cli/commands/agent.js +32 -11
- package/dist/cli/commands/architecture.js +7 -2
- package/dist/cli/commands/brain.js +7 -2
- package/dist/cli/commands/chat.js +15 -7
- package/dist/cli/commands/complete.js +13 -3
- package/dist/cli/commands/fix.js +6 -0
- package/dist/cli/commands/learn.js +7 -2
- package/dist/cli/commands/mcp.js +7 -3
- package/dist/cli/commands/platform.js +7 -2
- package/dist/cli/commands/policy-graph-run.js +7 -0
- package/dist/cli/commands/product.d.ts +19 -0
- package/dist/cli/commands/product.js +157 -0
- package/dist/cli/commands/scan.js +6 -0
- package/dist/cli/commands/start.d.ts +15 -0
- package/dist/cli/commands/start.js +86 -0
- package/dist/cli/commands/v2.js +61 -11
- package/dist/cli/commands/verify.js +6 -0
- package/dist/cli/program.js +141 -0
- package/dist/cli/safe-root.d.ts +17 -0
- package/dist/cli/safe-root.js +32 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/core/brain-cli/service.js +5 -2
- package/dist/core/monorepo/detect.js +10 -0
- package/dist/core/secrets/scan.js +9 -0
- package/dist/core/understanding/brain/storage/store.d.ts +4 -0
- package/dist/core/understanding/brain/storage/store.js +22 -2
- package/dist/dashboard/page.d.ts +2 -0
- package/dist/dashboard/page.js +53 -0
- package/dist/dashboard/server.js +117 -140
- package/dist/dashboard/ui/client.d.ts +2 -0
- package/dist/dashboard/ui/client.js +2 -0
- package/dist/dashboard/ui/styles.d.ts +2 -0
- package/dist/dashboard/ui/styles.js +138 -0
- package/dist/discovery/files.js +13 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/intelligence/graph/build.js +46 -38
- package/dist/intelligence/graph/incremental.d.ts +2 -0
- package/dist/intelligence/graph/incremental.js +9 -0
- package/dist/intelligence/resolve/imports.js +1 -1
- package/dist/languages/dart.d.ts +10 -0
- package/dist/languages/dart.js +99 -0
- package/dist/languages/go.d.ts +13 -7
- package/dist/languages/go.js +84 -24
- package/dist/languages/index.d.ts +5 -1
- package/dist/languages/index.js +13 -36
- package/dist/languages/java.d.ts +10 -0
- package/dist/languages/java.js +80 -0
- package/dist/languages/kotlin.d.ts +10 -0
- package/dist/languages/kotlin.js +85 -0
- package/dist/languages/rust.d.ts +10 -0
- package/dist/languages/rust.js +93 -0
- package/dist/languages/types.d.ts +4 -3
- package/dist/mcp/agent/registry.d.ts +1 -1
- package/dist/mcp/agent/registry.js +109 -23
- package/dist/mcp/intelligence/handlers.d.ts +3 -0
- package/dist/mcp/intelligence/handlers.js +28 -0
- package/dist/mcp/intelligence/path-safety.d.ts +6 -1
- package/dist/mcp/intelligence/path-safety.js +55 -2
- package/dist/mcp/intelligence/registry.d.ts +1 -1
- package/dist/mcp/intelligence/registry.js +30 -1
- package/dist/platform/graph/build.js +9 -0
- package/dist/product/api/doctor.d.ts +14 -0
- package/dist/product/api/doctor.js +185 -0
- package/dist/product/api/openapi.d.ts +7 -0
- package/dist/product/api/openapi.js +122 -0
- package/dist/product/approval/model.d.ts +30 -0
- package/dist/product/approval/model.js +64 -0
- package/dist/product/approval/session.d.ts +49 -0
- package/dist/product/approval/session.js +134 -0
- package/dist/product/database/doctor.d.ts +30 -0
- package/dist/product/database/doctor.js +184 -0
- package/dist/product/decisions/ledger.d.ts +36 -0
- package/dist/product/decisions/ledger.js +141 -0
- package/dist/product/deps/analyze.d.ts +46 -0
- package/dist/product/deps/analyze.js +137 -0
- package/dist/product/deps/lockfiles.d.ts +25 -0
- package/dist/product/deps/lockfiles.js +200 -0
- package/dist/product/discovery/roots.d.ts +52 -0
- package/dist/product/discovery/roots.js +231 -0
- package/dist/product/dna/build.d.ts +50 -0
- package/dist/product/dna/build.js +255 -0
- package/dist/product/eval/lab.d.ts +17 -0
- package/dist/product/eval/lab.js +218 -0
- package/dist/product/events/doctor.d.ts +21 -0
- package/dist/product/events/doctor.js +147 -0
- package/dist/product/evidence-scan.d.ts +12 -0
- package/dist/product/evidence-scan.js +46 -0
- package/dist/product/evolution/timeline.d.ts +29 -0
- package/dist/product/evolution/timeline.js +123 -0
- package/dist/product/features/intelligence.d.ts +23 -0
- package/dist/product/features/intelligence.js +158 -0
- package/dist/product/forensic/mode.d.ts +25 -0
- package/dist/product/forensic/mode.js +70 -0
- package/dist/product/graph/enrich-languages.d.ts +20 -0
- package/dist/product/graph/enrich-languages.js +168 -0
- package/dist/product/health/code-health.d.ts +20 -0
- package/dist/product/health/code-health.js +149 -0
- package/dist/product/index.d.ts +72 -0
- package/dist/product/index.js +36 -0
- package/dist/product/ledger/change-ledger.d.ts +23 -0
- package/dist/product/ledger/change-ledger.js +64 -0
- package/dist/product/map/software-map.d.ts +17 -0
- package/dist/product/map/software-map.js +96 -0
- package/dist/product/memory/institutional.d.ts +16 -0
- package/dist/product/memory/institutional.js +92 -0
- package/dist/product/ops/incident.d.ts +20 -0
- package/dist/product/ops/incident.js +61 -0
- package/dist/product/ops/infra.d.ts +15 -0
- package/dist/product/ops/infra.js +112 -0
- package/dist/product/org/model.d.ts +34 -0
- package/dist/product/org/model.js +195 -0
- package/dist/product/privacy/doctor.d.ts +13 -0
- package/dist/product/privacy/doctor.js +90 -0
- package/dist/product/requirements/trace.d.ts +21 -0
- package/dist/product/requirements/trace.js +166 -0
- package/dist/product/search/index.d.ts +29 -0
- package/dist/product/search/index.js +116 -0
- package/dist/product/search/software-search.d.ts +19 -0
- package/dist/product/search/software-search.js +105 -0
- package/dist/product/security/doctor.d.ts +23 -0
- package/dist/product/security/doctor.js +124 -0
- package/dist/product/self/diagnose.d.ts +15 -0
- package/dist/product/self/diagnose.js +82 -0
- package/dist/product/techdebt/roadmap.d.ts +20 -0
- package/dist/product/techdebt/roadmap.js +118 -0
- package/dist/product/testbrain/analyze.d.ts +29 -0
- package/dist/product/testbrain/analyze.js +129 -0
- package/dist/product/truth.d.ts +12 -0
- package/dist/product/truth.js +30 -0
- package/dist/product/twin/digital-twin.d.ts +23 -0
- package/dist/product/twin/digital-twin.js +52 -0
- package/dist/product/twin/store.d.ts +21 -0
- package/dist/product/twin/store.js +78 -0
- package/dist/product/whatif/engine.d.ts +28 -0
- package/dist/product/whatif/engine.js +91 -0
- package/dist/project/ownership.d.ts +65 -0
- package/dist/project/ownership.js +169 -0
- package/dist/utils/fs.js +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,11 +7,92 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.0.1] — 2026-09-27
|
|
11
|
+
|
|
12
|
+
Production-hardening follow-up on the reviewed freeze remediation commit
|
|
13
|
+
`319810a`. This does **not** rewrite public **3.0.0** history.
|
|
14
|
+
|
|
15
|
+
Public relationship:
|
|
16
|
+
|
|
17
|
+
- **3.0.0** remains the original public npm/GitHub release (`v3.0.0` → `c21faf1`).
|
|
18
|
+
- **3.0.1** packages the freeze remediation that landed after that public release.
|
|
19
|
+
|
|
20
|
+
### Hardening included in 3.0.1
|
|
21
|
+
|
|
22
|
+
- Ownership boundary **v4** (realpath symlink semantics; containment ≠ ownership)
|
|
23
|
+
- CLI broad-root refusal (`resolveCliProjectRoot`) for intelligence surfaces
|
|
24
|
+
- MCP path ownership + STDIO transport adversarial coverage
|
|
25
|
+
- Deterministic local provider prompt-injection / tool-call E2E harness
|
|
26
|
+
- what-if ownership gate (`.private` / foreign targets fail closed)
|
|
27
|
+
- Brain / Twin / Graph stale-state stamps (`ownershipBoundaryVersion` / invalidation)
|
|
28
|
+
- Dashboard what-if/whatif aliases, ask-only chat, hostile route matrices
|
|
29
|
+
- CLI/dashboard certification inventories and hostile fixtures
|
|
30
|
+
|
|
31
|
+
Documented limitations from the freeze audit remain (TTY chat REPL not fully
|
|
32
|
+
automated; native Anthropic/Gemini not implemented; vendor LLMs EXTERNAL; knowledge
|
|
33
|
+
docs shallow readdir completeness).
|
|
34
|
+
|
|
35
|
+
## [3.0.0] — 2026-09-26
|
|
36
|
+
|
|
37
|
+
Public release of the **AgentDoctor 3.0 local core**: project intelligence, doctors,
|
|
38
|
+
student/agent workflows, MCP, dashboard, evidence/proof, and honest EXTERNAL
|
|
39
|
+
boundaries. AI providers remain **opt-in**. Correctness is never claimed.
|
|
40
|
+
|
|
41
|
+
> Historical note: npm `@praneeth_54/agentdoctor@3.0.0` and GitHub `v3.0.0` point to
|
|
42
|
+
> commit `c21faf1`. Freeze remediation after that release is shipped as **3.0.1**.
|
|
43
|
+
|
|
44
|
+
Limitations: [docs/LIMITATIONS.md](docs/LIMITATIONS.md).
|
|
45
|
+
Release prep: [docs/FINAL_PRE_RELEASE_CHECK.md](docs/FINAL_PRE_RELEASE_CHECK.md).
|
|
46
|
+
|
|
47
|
+
### Highlights
|
|
48
|
+
|
|
49
|
+
- **Project intelligence** — discovery, DNA, Brain, software map, hybrid search,
|
|
50
|
+
dependency/lockfile analysis, architecture contracts, git/change impact.
|
|
51
|
+
- **Project Chat** — deterministic `ask` / `chat` with truth labels
|
|
52
|
+
(`VERIFIED` | `INFERRED` | `UNKNOWN` | `EXTERNAL`); optional AI when configured.
|
|
53
|
+
- **Coding agent** — plan → human approval → path-safe tools → verify; no
|
|
54
|
+
unrestricted shell; `ENGINEERING_CORRECTNESS_NOT_CLAIMED` preserved.
|
|
55
|
+
- **Student workflows** — `learn`, viva, docs, Build With Me (explain → plan →
|
|
56
|
+
approve → apply → verify).
|
|
57
|
+
- **Security & approval** — Security Doctor (static), secret redaction, forensic
|
|
58
|
+
read-only mode, MCP approval tokens + planHash (bare `approved:true` rejected).
|
|
59
|
+
- **Evidence & verification** — change analysis, evidence bundles, change proof
|
|
60
|
+
(hash integrity; engineering correctness not claimed).
|
|
61
|
+
- **MCP** — combined server with **38** tools (project, intelligence, agent,
|
|
62
|
+
assurance); path/workspace escape blocked.
|
|
63
|
+
- **Dashboard** — embedded local UI + APIs (status, DNA, graph, search, security,
|
|
64
|
+
twin, what-if, forensic, chat).
|
|
65
|
+
- **Digital Twin / What-If** — local refreshable twin snapshot; graph-derived
|
|
66
|
+
impact with uncertainty (not certainty).
|
|
67
|
+
- **Doctors** — API, Database, Event, Security, Privacy, Incident, Deployment
|
|
68
|
+
(file/static evidence); live runtime / IdP / brokers remain **EXTERNAL**.
|
|
69
|
+
- **Evaluation Lab** — fixture-driven eval including prompt-injection detect-only.
|
|
70
|
+
- **Self-diagnosis** — product self-check surfaces.
|
|
71
|
+
|
|
72
|
+
### Providers (local)
|
|
73
|
+
|
|
74
|
+
- Implemented: `none` | `mock` | `openai-compatible` | `ollama`.
|
|
75
|
+
- Native Anthropic / Gemini SDKs: **not implemented** (fail closed via `none`).
|
|
76
|
+
|
|
77
|
+
### Limitations (not unfinished stubs)
|
|
78
|
+
|
|
79
|
+
- Live cloud/DB/K8s/APM runtime intelligence: **EXTERNAL**.
|
|
80
|
+
- Neural embeddings / enterprise IdP-SSO: **EXTERNAL**.
|
|
81
|
+
- Full compiler-grade AST/call binding for every language: not claimed.
|
|
82
|
+
- Not an OS sandbox / EDR; not a replacement for commercial SAST/SCA.
|
|
83
|
+
- Proof asserts hash integrity — not absolute engineering correctness.
|
|
84
|
+
|
|
85
|
+
### Docs / packaging
|
|
86
|
+
|
|
87
|
+
- Rebuilt public README; public docs under `docs/`; audits in `docs/internal/`.
|
|
88
|
+
- npm package contents: `dist`, `README.md`, `LICENSE`, `CHANGELOG.md`.
|
|
89
|
+
- GitHub Action default package pin: **3.0.0**.
|
|
90
|
+
|
|
10
91
|
## [2.1.0] — 2026-09-23
|
|
11
92
|
|
|
12
93
|
Optional Project AI Agent line on top of 2.0.1 assurance. AI remains **opt-in**.
|
|
13
|
-
|
|
14
|
-
Checklist: [docs/RELEASE_CHECKLIST_2_1_0.md](docs/RELEASE_CHECKLIST_2_1_0.md).
|
|
94
|
+
Historical notes: [docs/internal/RELEASE_2_1_0.md](docs/internal/RELEASE_2_1_0.md).
|
|
95
|
+
Checklist: [docs/internal/RELEASE_CHECKLIST_2_1_0.md](docs/internal/RELEASE_CHECKLIST_2_1_0.md).
|
|
15
96
|
|
|
16
97
|
#### Project Intelligence
|
|
17
98
|
|
|
@@ -520,7 +601,9 @@ First public beta.
|
|
|
520
601
|
- Not a complete secret scanner
|
|
521
602
|
- Git “tracked secret” detection deferred
|
|
522
603
|
|
|
523
|
-
[Unreleased]: https://github.com/pranee54/AgentDoctor/compare/
|
|
604
|
+
[Unreleased]: https://github.com/pranee54/AgentDoctor/compare/v3.0.1...HEAD
|
|
605
|
+
[3.0.1]: https://github.com/pranee54/AgentDoctor/compare/v3.0.0...v3.0.1
|
|
606
|
+
[3.0.0]: https://github.com/pranee54/AgentDoctor/compare/v2.1.0...v3.0.0
|
|
524
607
|
[2.1.0]: https://github.com/pranee54/AgentDoctor/compare/v2.0.1...v2.1.0
|
|
525
608
|
[2.0.1]: https://github.com/pranee54/AgentDoctor/compare/v2.0.0...v2.0.1
|
|
526
609
|
[2.0.0]: https://github.com/pranee54/AgentDoctor/compare/v1.1.1...v2.0.0
|