@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.
Files changed (167) hide show
  1. package/CHANGELOG.md +86 -3
  2. package/README.md +490 -290
  3. package/dist/agent/chat/deterministic.d.ts +6 -0
  4. package/dist/agent/chat/deterministic.js +180 -0
  5. package/dist/agent/chat/service.js +8 -14
  6. package/dist/agent/context/retrieve.d.ts +2 -1
  7. package/dist/agent/context/retrieve.js +14 -1
  8. package/dist/agent/index.d.ts +2 -0
  9. package/dist/agent/index.js +1 -0
  10. package/dist/agent/loop.d.ts +2 -0
  11. package/dist/agent/loop.js +31 -0
  12. package/dist/agent/roles.d.ts +12 -0
  13. package/dist/agent/roles.js +138 -0
  14. package/dist/agent/runtime.d.ts +21 -5
  15. package/dist/agent/runtime.js +141 -28
  16. package/dist/agent/tools/execute.d.ts +2 -0
  17. package/dist/agent/tools/execute.js +49 -43
  18. package/dist/agent/tools/write.d.ts +1 -1
  19. package/dist/agent/tools/write.js +18 -4
  20. package/dist/ai/config.js +1 -0
  21. package/dist/ai/providers/adversarial-local.d.ts +7 -0
  22. package/dist/ai/providers/adversarial-local.js +146 -0
  23. package/dist/ai/redact.d.ts +1 -0
  24. package/dist/ai/redact.js +47 -7
  25. package/dist/ai/types.d.ts +1 -1
  26. package/dist/cli/commands/agent.d.ts +2 -0
  27. package/dist/cli/commands/agent.js +32 -11
  28. package/dist/cli/commands/architecture.js +7 -2
  29. package/dist/cli/commands/brain.js +7 -2
  30. package/dist/cli/commands/chat.js +15 -7
  31. package/dist/cli/commands/complete.js +13 -3
  32. package/dist/cli/commands/fix.js +6 -0
  33. package/dist/cli/commands/learn.js +7 -2
  34. package/dist/cli/commands/mcp.js +7 -3
  35. package/dist/cli/commands/platform.js +7 -2
  36. package/dist/cli/commands/policy-graph-run.js +7 -0
  37. package/dist/cli/commands/product.d.ts +19 -0
  38. package/dist/cli/commands/product.js +157 -0
  39. package/dist/cli/commands/scan.js +6 -0
  40. package/dist/cli/commands/start.d.ts +15 -0
  41. package/dist/cli/commands/start.js +86 -0
  42. package/dist/cli/commands/v2.js +61 -11
  43. package/dist/cli/commands/verify.js +6 -0
  44. package/dist/cli/program.js +141 -0
  45. package/dist/cli/safe-root.d.ts +17 -0
  46. package/dist/cli/safe-root.js +32 -0
  47. package/dist/constants.d.ts +1 -1
  48. package/dist/constants.js +1 -1
  49. package/dist/core/brain-cli/service.js +5 -2
  50. package/dist/core/monorepo/detect.js +10 -0
  51. package/dist/core/secrets/scan.js +9 -0
  52. package/dist/core/understanding/brain/storage/store.d.ts +4 -0
  53. package/dist/core/understanding/brain/storage/store.js +22 -2
  54. package/dist/dashboard/page.d.ts +2 -0
  55. package/dist/dashboard/page.js +53 -0
  56. package/dist/dashboard/server.js +117 -140
  57. package/dist/dashboard/ui/client.d.ts +2 -0
  58. package/dist/dashboard/ui/client.js +2 -0
  59. package/dist/dashboard/ui/styles.d.ts +2 -0
  60. package/dist/dashboard/ui/styles.js +138 -0
  61. package/dist/discovery/files.js +13 -0
  62. package/dist/index.d.ts +4 -0
  63. package/dist/index.js +2 -0
  64. package/dist/intelligence/graph/build.js +46 -38
  65. package/dist/intelligence/graph/incremental.d.ts +2 -0
  66. package/dist/intelligence/graph/incremental.js +9 -0
  67. package/dist/intelligence/resolve/imports.js +1 -1
  68. package/dist/languages/dart.d.ts +10 -0
  69. package/dist/languages/dart.js +99 -0
  70. package/dist/languages/go.d.ts +13 -7
  71. package/dist/languages/go.js +84 -24
  72. package/dist/languages/index.d.ts +5 -1
  73. package/dist/languages/index.js +13 -36
  74. package/dist/languages/java.d.ts +10 -0
  75. package/dist/languages/java.js +80 -0
  76. package/dist/languages/kotlin.d.ts +10 -0
  77. package/dist/languages/kotlin.js +85 -0
  78. package/dist/languages/rust.d.ts +10 -0
  79. package/dist/languages/rust.js +93 -0
  80. package/dist/languages/types.d.ts +4 -3
  81. package/dist/mcp/agent/registry.d.ts +1 -1
  82. package/dist/mcp/agent/registry.js +109 -23
  83. package/dist/mcp/intelligence/handlers.d.ts +3 -0
  84. package/dist/mcp/intelligence/handlers.js +28 -0
  85. package/dist/mcp/intelligence/path-safety.d.ts +6 -1
  86. package/dist/mcp/intelligence/path-safety.js +55 -2
  87. package/dist/mcp/intelligence/registry.d.ts +1 -1
  88. package/dist/mcp/intelligence/registry.js +30 -1
  89. package/dist/platform/graph/build.js +9 -0
  90. package/dist/product/api/doctor.d.ts +14 -0
  91. package/dist/product/api/doctor.js +185 -0
  92. package/dist/product/api/openapi.d.ts +7 -0
  93. package/dist/product/api/openapi.js +122 -0
  94. package/dist/product/approval/model.d.ts +30 -0
  95. package/dist/product/approval/model.js +64 -0
  96. package/dist/product/approval/session.d.ts +49 -0
  97. package/dist/product/approval/session.js +134 -0
  98. package/dist/product/database/doctor.d.ts +30 -0
  99. package/dist/product/database/doctor.js +184 -0
  100. package/dist/product/decisions/ledger.d.ts +36 -0
  101. package/dist/product/decisions/ledger.js +141 -0
  102. package/dist/product/deps/analyze.d.ts +46 -0
  103. package/dist/product/deps/analyze.js +137 -0
  104. package/dist/product/deps/lockfiles.d.ts +25 -0
  105. package/dist/product/deps/lockfiles.js +200 -0
  106. package/dist/product/discovery/roots.d.ts +52 -0
  107. package/dist/product/discovery/roots.js +231 -0
  108. package/dist/product/dna/build.d.ts +50 -0
  109. package/dist/product/dna/build.js +255 -0
  110. package/dist/product/eval/lab.d.ts +17 -0
  111. package/dist/product/eval/lab.js +218 -0
  112. package/dist/product/events/doctor.d.ts +21 -0
  113. package/dist/product/events/doctor.js +147 -0
  114. package/dist/product/evidence-scan.d.ts +12 -0
  115. package/dist/product/evidence-scan.js +46 -0
  116. package/dist/product/evolution/timeline.d.ts +29 -0
  117. package/dist/product/evolution/timeline.js +123 -0
  118. package/dist/product/features/intelligence.d.ts +23 -0
  119. package/dist/product/features/intelligence.js +158 -0
  120. package/dist/product/forensic/mode.d.ts +25 -0
  121. package/dist/product/forensic/mode.js +70 -0
  122. package/dist/product/graph/enrich-languages.d.ts +20 -0
  123. package/dist/product/graph/enrich-languages.js +168 -0
  124. package/dist/product/health/code-health.d.ts +20 -0
  125. package/dist/product/health/code-health.js +149 -0
  126. package/dist/product/index.d.ts +72 -0
  127. package/dist/product/index.js +36 -0
  128. package/dist/product/ledger/change-ledger.d.ts +23 -0
  129. package/dist/product/ledger/change-ledger.js +64 -0
  130. package/dist/product/map/software-map.d.ts +17 -0
  131. package/dist/product/map/software-map.js +96 -0
  132. package/dist/product/memory/institutional.d.ts +16 -0
  133. package/dist/product/memory/institutional.js +92 -0
  134. package/dist/product/ops/incident.d.ts +20 -0
  135. package/dist/product/ops/incident.js +61 -0
  136. package/dist/product/ops/infra.d.ts +15 -0
  137. package/dist/product/ops/infra.js +112 -0
  138. package/dist/product/org/model.d.ts +34 -0
  139. package/dist/product/org/model.js +195 -0
  140. package/dist/product/privacy/doctor.d.ts +13 -0
  141. package/dist/product/privacy/doctor.js +90 -0
  142. package/dist/product/requirements/trace.d.ts +21 -0
  143. package/dist/product/requirements/trace.js +166 -0
  144. package/dist/product/search/index.d.ts +29 -0
  145. package/dist/product/search/index.js +116 -0
  146. package/dist/product/search/software-search.d.ts +19 -0
  147. package/dist/product/search/software-search.js +105 -0
  148. package/dist/product/security/doctor.d.ts +23 -0
  149. package/dist/product/security/doctor.js +124 -0
  150. package/dist/product/self/diagnose.d.ts +15 -0
  151. package/dist/product/self/diagnose.js +82 -0
  152. package/dist/product/techdebt/roadmap.d.ts +20 -0
  153. package/dist/product/techdebt/roadmap.js +118 -0
  154. package/dist/product/testbrain/analyze.d.ts +29 -0
  155. package/dist/product/testbrain/analyze.js +129 -0
  156. package/dist/product/truth.d.ts +12 -0
  157. package/dist/product/truth.js +30 -0
  158. package/dist/product/twin/digital-twin.d.ts +23 -0
  159. package/dist/product/twin/digital-twin.js +52 -0
  160. package/dist/product/twin/store.d.ts +21 -0
  161. package/dist/product/twin/store.js +78 -0
  162. package/dist/product/whatif/engine.d.ts +28 -0
  163. package/dist/product/whatif/engine.js +91 -0
  164. package/dist/project/ownership.d.ts +65 -0
  165. package/dist/project/ownership.js +169 -0
  166. package/dist/utils/fs.js +10 -2
  167. 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
- Canonical release notes: [docs/RELEASE_2_1_0.md](docs/RELEASE_2_1_0.md).
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/v2.1.0...HEAD
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