paqad-ai 1.40.0 → 1.41.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 (29) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cli/index.js +1594 -1584
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/{feature-development-policy-DJlz0m1B.d.ts → feature-development-policy-CTmYgPS5.d.ts} +1 -1
  5. package/dist/index.d.ts +362 -173
  6. package/dist/index.js +1948 -1574
  7. package/dist/index.js.map +1 -1
  8. package/dist/kernel/gate.js +38 -11
  9. package/dist/kernel/gate.js.map +1 -1
  10. package/dist/stage-evidence/live-writer.d.ts +2 -2
  11. package/dist/stage-evidence/live-writer.js +655 -5
  12. package/dist/stage-evidence/live-writer.js.map +1 -1
  13. package/dist/stage-evidence/marker-parse.d.ts +2 -2
  14. package/dist/stage-evidence/marker-parse.js +655 -5
  15. package/dist/stage-evidence/marker-parse.js.map +1 -1
  16. package/dist/stage-evidence/narration.d.ts +2 -2
  17. package/dist/stage-evidence/narration.js +653 -3
  18. package/dist/stage-evidence/narration.js.map +1 -1
  19. package/dist/{stages-N8Yi2niL.d.ts → stages-B-5fe_GW.d.ts} +1 -1
  20. package/package.json +1 -1
  21. package/runtime/AGENT-BOOTSTRAP.md +1 -0
  22. package/runtime/base/skills/analytics-instrumentation/SKILL.md +90 -0
  23. package/runtime/base/skills/analytics-instrumentation/agents/openai.yaml +7 -0
  24. package/runtime/base/skills/analytics-instrumentation/references/analytics-tracking-plan-contract.md +29 -0
  25. package/runtime/base/skills/analytics-instrumentation/scripts/instrument.mjs +77 -0
  26. package/runtime/capabilities/coding/rules/analytics-instrumentation.md +27 -0
  27. package/runtime/hooks/verification-record.mjs +1 -37
  28. package/runtime/hooks/analytics-tag-marker-parse.mjs +0 -74
  29. package/runtime/hooks/analytics-tag-writer.mjs +0 -73
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # paqad-ai
2
2
 
3
+ ## 1.41.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7d3bed0: Analytics v2 (#279): turn analytics instrumentation into a tracking-plan-as-code.
8
+
9
+ When `analytics_instrumentation` is on, paqad now makes the per-event docs tree the single
10
+ source of truth for what a project tracks, and governs every event through the normal PR:
11
+
12
+ - The #241 `paqad.analytics-tag` ledger is removed (redundant with the docs); the flag,
13
+ detection, classify-time gate, and conflict decision-pause categories stay.
14
+ - A `docs/instructions/stack/analytics.md` tracking-plan doc is generated from provider
15
+ detection (OFF stays silent).
16
+ - Framework analytics rules are compile-time gated on the flag (`<!--gate:-->` frontmatter),
17
+ so zero analytics bytes reach the model when off.
18
+ - A per-event docs tree `docs/modules/{module}/analytics/{feature}/{event}.md` (one doc per
19
+ event, a section per provider, normalized-slug filenames that collapse casing variants) is
20
+ generated by the documentation workflow and the doc-sync stage.
21
+ - Every new event opens an `analytics.new_event` Decision Pause packet (who/why), and the
22
+ feature-development stages inject analytics instructions when the gate resolves to instrument.
23
+ - One `AC-TRACK` per event flows through spec freeze and traceability (an unproven event is a
24
+ `TR-UNTESTED-PROMISE`), gated by doc existence with a new `analytics_strictness` knob
25
+ (off | warn | strict, default warn).
26
+ - A new `analytics-instrumentation` skill writes the doc + emits the provider snippet.
27
+
3
28
  ## 1.40.0
4
29
 
5
30
  ### Minor Changes