paqad-ai 1.68.0 → 1.70.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/cli/index.js +1645 -551
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/{feature-development-policy-DgMjAiDM.d.ts → feature-development-policy-BX-lGxtg.d.ts} +2 -0
  5. package/dist/feature-evidence/adoption.js +5 -0
  6. package/dist/feature-evidence/adoption.js.map +1 -1
  7. package/dist/index.d.ts +10 -3
  8. package/dist/index.js +471 -223
  9. package/dist/index.js.map +1 -1
  10. package/dist/kernel/gate.js +122 -85
  11. package/dist/kernel/gate.js.map +1 -1
  12. package/dist/rag-ledger/session.js +5 -0
  13. package/dist/rag-ledger/session.js.map +1 -1
  14. package/dist/rule-scripts/index.js +16 -1
  15. package/dist/rule-scripts/index.js.map +1 -1
  16. package/dist/session-ledger/disabled-audit.js +5 -0
  17. package/dist/session-ledger/disabled-audit.js.map +1 -1
  18. package/dist/session-ledger/project-ledger.js +5 -0
  19. package/dist/session-ledger/project-ledger.js.map +1 -1
  20. package/dist/stage-evidence/live-writer.d.ts +2 -2
  21. package/dist/stage-evidence/live-writer.js +16 -1
  22. package/dist/stage-evidence/live-writer.js.map +1 -1
  23. package/dist/stage-evidence/marker-parse.d.ts +2 -2
  24. package/dist/stage-evidence/marker-parse.js +16 -1
  25. package/dist/stage-evidence/marker-parse.js.map +1 -1
  26. package/dist/stage-evidence/narration.d.ts +2 -2
  27. package/dist/stage-evidence/narration.js +16 -1
  28. package/dist/stage-evidence/narration.js.map +1 -1
  29. package/dist/{stages-D5vNhUPh.d.ts → stages-CVA8e3Wc.d.ts} +1 -1
  30. package/package.json +9 -1
  31. package/runtime/capabilities/coding/rules/feature-development.md +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # paqad-ai
2
2
 
3
+ ## 1.70.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 39f86ea: Verify framework reuse claims against the version you actually have installed (#397).
8
+
9
+ A plan could already declare it was reusing a framework API — "I'll use React's `useId()`
10
+ instead of hand-rolling one" — but nothing checked the claim. Now paqad reads the
11
+ declaration files shipped inside the installed package and answers two questions before
12
+ the plan compiles: does that symbol exist at your installed version, and is it
13
+ `@deprecated`? A plan naming a removed API fails with the nearest existing symbol; one
14
+ naming a deprecated API fails citing the deprecation message. No AI, no network.
15
+
16
+ New: `paqad-ai index framework-api build` and `paqad-ai index framework-api query
17
+ <package> <symbol>`.
18
+
19
+ Nothing new is installed for this. `typescript` is an optional peer dependency resolved
20
+ from your own project, so a Laravel, Flutter, or Python project pays nothing for a
21
+ JS-only check, and a project without it degrades to a visible warning rather than a
22
+ block. Anything paqad cannot verify statically — a dynamically-provided member, an
23
+ unindexed package, a missing index — warns instead of failing, because a false "this
24
+ does not exist" would block a perfectly good plan.
25
+
26
+ ## 1.69.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 09ef89f: Prove "less, better code" with per-change shape metrics (#362).
31
+
32
+ Two deterministic, diff-scoped, zero-model-token numbers are now computed for
33
+ every feature-development change:
34
+
35
+ - **duplication on new code** (`dup_new_pct`) — the % of the change's meaningful
36
+ new lines that near-duplicate existing code, folded from the #358 duplication
37
+ cache.
38
+ - **reuse rate** (`reuse_rate`) — cross-file calls from the change's new code
39
+ into pre-existing, untouched files per 100 changed lines, from the #353
40
+ code-knowledge index.
41
+
42
+ They fold over caches the completion gates already produced (no second scan) and
43
+ surface everywhere the developer already looks: one honest `change shape` line on
44
+ the end-of-change receipt, a metrics block on the feature bundle receipt, a
45
+ `change-metrics` row on the session ledger (which flows into the SIEM export), a
46
+ new **Change Shape** dashboard trend section with bands (green 0–3%, amber
47
+ 3–10%, red >10%), and a new `paqad-ai metrics report` verb that prints the last N
48
+ changes offline. Either metric degrades to `n/a` when its source cache is absent.
49
+ Controlled by the `metrics_enabled` config knob (default on; respects the global
50
+ disable).
51
+
3
52
  ## 1.68.0
4
53
 
5
54
  ### Minor Changes