@praneeth_54/agentdoctor 2.0.0 → 2.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 (95) hide show
  1. package/CHANGELOG.md +73 -4
  2. package/README.md +283 -158
  3. package/dist/architecture/contract.d.ts +64 -0
  4. package/dist/architecture/contract.js +373 -0
  5. package/dist/assurance/change.d.ts +211 -0
  6. package/dist/assurance/change.js +624 -0
  7. package/dist/assurance/proof.d.ts +136 -0
  8. package/dist/assurance/proof.js +338 -0
  9. package/dist/auth/index.d.ts +81 -0
  10. package/dist/auth/index.js +130 -0
  11. package/dist/auth/rbac.d.ts +9 -0
  12. package/dist/auth/rbac.js +26 -0
  13. package/dist/cli/commands/architecture.d.ts +6 -0
  14. package/dist/cli/commands/architecture.js +109 -0
  15. package/dist/cli/commands/assurance.d.ts +67 -0
  16. package/dist/cli/commands/assurance.js +210 -0
  17. package/dist/cli/commands/complete.js +2 -2
  18. package/dist/cli/commands/platform.d.ts +2 -0
  19. package/dist/cli/commands/platform.js +5 -1
  20. package/dist/cli/commands/policy-graph-run.d.ts +40 -0
  21. package/dist/cli/commands/policy-graph-run.js +200 -0
  22. package/dist/cli/commands/workspace.d.ts +9 -0
  23. package/dist/cli/commands/workspace.js +82 -0
  24. package/dist/cli/program.js +535 -17
  25. package/dist/constants.d.ts +1 -1
  26. package/dist/constants.js +1 -1
  27. package/dist/contracts/index.d.ts +1 -1
  28. package/dist/contracts/index.js +2 -2
  29. package/dist/core/brain-product/init.js +5 -2
  30. package/dist/core/secrets/scan.d.ts +7 -1
  31. package/dist/core/secrets/scan.js +9 -9
  32. package/dist/coverage/cobertura.d.ts +6 -0
  33. package/dist/coverage/cobertura.js +52 -0
  34. package/dist/coverage/istanbul.d.ts +7 -0
  35. package/dist/coverage/istanbul.js +134 -0
  36. package/dist/coverage/lcov.d.ts +7 -0
  37. package/dist/coverage/lcov.js +59 -0
  38. package/dist/coverage/load.d.ts +9 -0
  39. package/dist/coverage/load.js +39 -0
  40. package/dist/coverage/types.d.ts +23 -0
  41. package/dist/coverage/types.js +5 -0
  42. package/dist/dashboard/server.d.ts +1 -1
  43. package/dist/dashboard/server.js +21 -5
  44. package/dist/enforcement/runner.d.ts +47 -3
  45. package/dist/enforcement/runner.js +420 -16
  46. package/dist/index.d.ts +23 -2
  47. package/dist/index.js +15 -2
  48. package/dist/intelligence/graph/build.d.ts +2 -0
  49. package/dist/intelligence/graph/build.js +49 -5
  50. package/dist/intelligence/graph/incremental.d.ts +68 -0
  51. package/dist/intelligence/graph/incremental.js +234 -0
  52. package/dist/intelligence/resolve/imports.d.ts +36 -0
  53. package/dist/intelligence/resolve/imports.js +245 -0
  54. package/dist/languages/go.d.ts +9 -0
  55. package/dist/languages/go.js +45 -0
  56. package/dist/languages/index.d.ts +11 -0
  57. package/dist/languages/index.js +76 -0
  58. package/dist/languages/php.d.ts +7 -0
  59. package/dist/languages/php.js +193 -0
  60. package/dist/languages/python.d.ts +7 -0
  61. package/dist/languages/python.js +150 -0
  62. package/dist/languages/types.d.ts +42 -0
  63. package/dist/languages/types.js +26 -0
  64. package/dist/languages/typescript.d.ts +3 -0
  65. package/dist/languages/typescript.js +95 -0
  66. package/dist/mcp/intelligence/handlers.d.ts +5 -0
  67. package/dist/mcp/intelligence/handlers.js +229 -40
  68. package/dist/mcp/intelligence/path-safety.d.ts +2 -4
  69. package/dist/mcp/intelligence/path-safety.js +25 -44
  70. package/dist/mcp/intelligence/registry.d.ts +1 -1
  71. package/dist/mcp/intelligence/registry.js +69 -1
  72. package/dist/platform/firewall/evaluate.d.ts +6 -3
  73. package/dist/platform/firewall/evaluate.js +66 -15
  74. package/dist/platform/graph/build.js +19 -23
  75. package/dist/platform/health/analyze.js +23 -17
  76. package/dist/platform/index.js +2 -0
  77. package/dist/platform/test-impact/analyze.d.ts +21 -3
  78. package/dist/platform/test-impact/analyze.js +214 -28
  79. package/dist/platform/tokens/plan.js +39 -20
  80. package/dist/platform/types.d.ts +9 -0
  81. package/dist/policy/compose.d.ts +34 -0
  82. package/dist/policy/compose.js +118 -0
  83. package/dist/policy/packs.js +33 -1
  84. package/dist/security/paths.d.ts +21 -0
  85. package/dist/security/paths.js +105 -0
  86. package/dist/storage/postgres.d.ts +26 -0
  87. package/dist/storage/postgres.js +90 -0
  88. package/dist/storage/provider.d.ts +2 -7
  89. package/dist/storage/provider.js +22 -16
  90. package/dist/storage/sqlite.d.ts +33 -0
  91. package/dist/storage/sqlite.js +77 -0
  92. package/dist/team/auth.js +1 -1
  93. package/dist/workspace/index.d.ts +69 -0
  94. package/dist/workspace/index.js +220 -0
  95. package/package.json +9 -3
package/CHANGELOG.md CHANGED
@@ -7,10 +7,78 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ### Notes
10
+ ## [2.0.1] — 2026-09-23
11
+
12
+ Hardening and change-assurance cut on top of 2.0.0, plus a deepening pass that
13
+ closes controllable PARTIALs with honest EXTERNAL/EXPERIMENTAL gates. Canonical
14
+ docs: [docs/2.0.1/](docs/2.0.1/README.md). Completion map:
15
+ [docs/2.0.1/FINAL_COMPLETION_AUDIT.md](docs/2.0.1/FINAL_COMPLETION_AUDIT.md).
16
+
17
+ ### Added
18
+
19
+ - Change assurance CLI: `agentdoctor change analyze|verify|explain|diff|status`
20
+ assemble repository signals into a structured `ChangeAssessment`.
21
+ - Evidence bundles under `.agentdoctor/evidence/<change-id>/` with versioned
22
+ `manifest.json` and SHA-256 file hashes; `evidence inspect|verify`.
23
+ - Change Proof CLI: `proof build|inspect|explain|verify|export` (integrity +
24
+ optional engineering checks; `correctnessStatus` always
25
+ `ENGINEERING_CORRECTNESS_NOT_CLAIMED`).
26
+ - Architecture contract: `architecture init|analyze|check|explain`.
27
+ - Optional coverage-backed test impact (`--coverage`) with explicit
28
+ `testAttribution` labels (`coverage-map` / `hybrid-heuristic` / `none`).
29
+ - Controlled runner: `run` / `run explain` and `policy check|explain|enforce`
30
+ (execute only when explicitly allowed).
31
+ - Policy composition (builtin pack + `.agentdoctor/policy.json`).
32
+ - Incremental graph surfaces: `graph build|update|rebuild|status`.
33
+ - Workspace isolation CLI: `workspace create|add|list|status|remove`.
34
+ - Language adapters: Python/PHP toolchain bridges; Go honest unsupported stub;
35
+ Java/Kotlin/Rust/Dart unsupported stubs.
36
+ - Storage: SQLite (`node:sqlite`) and Postgres (`tryCreatePostgresStorage`) with
37
+ env/runtime gates.
38
+ - Auth library path: OIDC JWT/JWKS validation + RBAC helpers (browser OAuth
39
+ redirect remains experimental).
40
+ - Combined MCP tools: `change_analyze`, `architecture_check`, `proof_inspect`,
41
+ `evidence_inspect`, `graph_query`.
42
+ - Docs: `docs/2.0.1/` including FINAL_COMPLETION_AUDIT and updated limitations.
43
+
44
+ ### Changed
45
+
46
+ - Package positioning: engineering assurance for AI coding agents; description
47
+ and keywords updated (`change-assurance`, `evidence`, `engineering-assurance`).
48
+ - Action default `version` input and CI published-package pins → **2.0.1**.
49
+ - `npm run verify` builds before tests so STDIO MCP suites use fresh `dist/`.
50
+ - Firewall load path seeds DEFAULT_POLICY when no repo policy exists; force-push
51
+ is `require-approval` (not hard-block via baseline pack alone).
52
+ - README / CONTRIBUTING / ROADMAP aligned to honest status labels.
53
+
54
+ ### Fixed
55
+
56
+ - CodeQL high alerts: crypto usage, ReDoS hardening, temp-file handling, and
57
+ TOCTOU fixes across secrets scan, graph/health/tokens, team auth, and related
58
+ tests.
59
+ - CI Typecheck / Lint / Test / Build: track plugin fixtures previously ignored
60
+ under `.agentdoctor/`, and normalize TypeScript AST source paths so Windows
61
+ runners match discovered files.
62
+ - Language adapter barrel exports (`pythonAvailable` / `phpAvailable` /
63
+ `goAvailable`) kept consistent.
64
+
65
+ ### Security
66
+
67
+ - CodeQL-driven hardening on path/temp and regex surfaces (see Fixed).
68
+ - Central path safety helpers; secret severity≠confidence fields.
69
+ - Change assurance / policy path remains evaluate-only by default
70
+ (`executionResult: "not-executed"`); no fake full browser SSO.
71
+
72
+ ### Known limitations (at release)
11
73
 
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).
74
+ - Test impact is heuristic without coverage; hybrid when coverage lacks a test
75
+ map.
76
+ - Architecture C4 impact remains **inferred**; contract is repo-local only.
77
+ - Proof `verified` / hash integrity ≠ engineering correctness or compliance.
78
+ - Browser OAuth incomplete (EXPERIMENTAL); Postgres needs live URL (EXTERNAL);
79
+ Java/Kotlin/Rust/Dart/Go AST extractors EXTERNAL; IDE interception EXTERNAL.
80
+ - Published npm Action pins require a human `npm publish` of 2.0.1 before remote
81
+ CI against `version: 2.0.1` succeeds.
14
82
 
15
83
  ## [2.0.0] — 2026-09-21
16
84
 
@@ -385,7 +453,8 @@ First public beta.
385
453
  - Not a complete secret scanner
386
454
  - Git “tracked secret” detection deferred
387
455
 
388
- [Unreleased]: https://github.com/pranee54/AgentDoctor/compare/v2.0.0...HEAD
456
+ [Unreleased]: https://github.com/pranee54/AgentDoctor/compare/v2.0.1...HEAD
457
+ [2.0.1]: https://github.com/pranee54/AgentDoctor/compare/v2.0.0...v2.0.1
389
458
  [2.0.0]: https://github.com/pranee54/AgentDoctor/compare/v1.1.1...v2.0.0
390
459
  [1.1.1]: https://github.com/pranee54/AgentDoctor/releases/tag/v1.1.1
391
460
  [1.1.0]: https://github.com/pranee54/AgentDoctor/releases/tag/v1.1.0