paqad-ai 1.34.0 → 1.36.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 (38) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +14 -13
  3. package/dist/cli/index.js +4723 -17036
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/feature-development-policy-CIONDrnC.d.ts +904 -0
  6. package/dist/index.d.ts +150 -1400
  7. package/dist/index.js +10678 -16305
  8. package/dist/index.js.map +1 -1
  9. package/dist/kernel/gate.d.ts +43 -0
  10. package/dist/kernel/gate.js +6746 -0
  11. package/dist/kernel/gate.js.map +1 -0
  12. package/dist/ledger-B8xJoc5g.d.ts +17 -0
  13. package/dist/rule-scripts/index.d.ts +2 -1
  14. package/dist/rule-scripts/index.js +668 -372
  15. package/dist/rule-scripts/index.js.map +1 -1
  16. package/dist/session-ledger/disabled-audit.d.ts +22 -0
  17. package/dist/session-ledger/disabled-audit.js +472 -0
  18. package/dist/session-ledger/disabled-audit.js.map +1 -0
  19. package/dist/stage-evidence/live-writer.d.ts +57 -0
  20. package/dist/stage-evidence/live-writer.js +776 -0
  21. package/dist/stage-evidence/live-writer.js.map +1 -0
  22. package/dist/stage-evidence/marker-parse.d.ts +26 -0
  23. package/dist/stage-evidence/marker-parse.js +770 -0
  24. package/dist/stage-evidence/marker-parse.js.map +1 -0
  25. package/dist/stage-evidence/narration.d.ts +25 -0
  26. package/dist/stage-evidence/narration.js +510 -0
  27. package/dist/stage-evidence/narration.js.map +1 -0
  28. package/dist/stages-B7UsgmYR.d.ts +12 -0
  29. package/package.json +3 -3
  30. package/runtime/AGENT-BOOTSTRAP.md +15 -0
  31. package/runtime/hooks/capability-gate.mjs +134 -0
  32. package/runtime/hooks/lib/paqad-disabled.mjs +26 -0
  33. package/runtime/hooks/stage-marker-parse.mjs +62 -0
  34. package/runtime/hooks/stage-writer.mjs +69 -0
  35. package/runtime/hooks/verification-completion.mjs +6 -3
  36. package/runtime/scripts/verify-backstop.mjs +52 -7
  37. package/runtime/templates/agent-configs/aiassistant.md.hbs +8 -0
  38. package/runtime/hooks/rule-script-enforce.mjs +0 -79
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # paqad-ai
2
2
 
3
+ ## 1.36.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 69ab154: Add a native `aiassistant` adapter for JetBrains AI Assistant (#219).
8
+
9
+ - Onboarding and `paqad-ai refresh --providers` now generate and keep in sync `.aiassistant/rules/guidelines.md`, the lean bootstrap-pointer entry file AI Assistant auto-applies from `.aiassistant/rules/`.
10
+ - Soft, rules-only adapter (advisory hook coverage), like `junie`: AI Assistant exposes no hook/lifecycle system, so the sentinel gate cannot bind. MCP is intentionally omitted — AI Assistant configures MCP servers in the IDE, not a project file, so no dead artifact is written.
11
+ - The adapter is selectable everywhere the other ten are (onboarding prompt, `--providers`, factory), carries its Decision Pause Contract UI note, and is covered by tests parallel to `junie`.
12
+ - Also synced the `onboarding-manifest` schema `adapter` enum to the full adapter list (it had silently drifted to five, so a `cursor`/`aider`-onboarded manifest failed health-check validation).
13
+
14
+ - 69ab154: Make the feature-development stage workflow **compel, not plead** (enforcement RCA, part 1 of the fix).
15
+
16
+ The stage-evidence recorder finally has a production caller, and a code edit is now blocked until the prior stages are recorded — closing the physics gaps that let every prior fix (#117–#261) regress.
17
+
18
+ - **Deterministic per-stage writer.** A new Claude PreToolUse hook (`stage-writer.mjs` → `src/stage-evidence/live-writer.ts`) script-mints a `live-mark` stage row on every Edit/Write/NotebookEdit, with real start/end times classified from the mutated file — no model involvement. The completion finalizer closes any stage left open at the turn boundary.
19
+ - **Block-forward deny.** A `stages` capability folded into the kernel evaluates at the pre-mutation seam and refuses an edit (exit 2, reason on stderr) until `planning` and `specification` each carry a recorded start+end pair. It reads the ledger, not a git delta, so a committed clean tree cannot bypass it. `se-mark` (a Bash script, ungated) is the escape hatch that clears the block.
20
+ - **Visible, non-vacuous verdict.** The Stop backstop now writes a failing verdict to **stderr** (the host surfaces only stderr to the model on exit 2), and the stage gate no longer skips on a zero-file working-tree diff — a committed-but-incomplete change still fails instead of passing silently.
21
+
22
+ Claude-only for the hard block (the only host with a pre-mutation seam); Codex/Gemini keep completion-time recording; other adapters are unchanged. Default `stages_mode` is strict.
23
+
24
+ - 69ab154: Wire the last three enforcement consumers so the framework is felt, not just recorded (enforcement RCA, part 2 of the fix).
25
+
26
+ Building on the stage writer and block-forward deny, three contracts that shipped with a policy but no live consumer now bind through the kernel:
27
+
28
+ - **Delivery policy is enforced.** A `delivery` capability at the completion (Stop) seam reads HEAD branch/commit and — when `gh` can answer — the PR/CI state, then **warns** on a convention deviation (on the base branch, an off-convention branch name, red CI under `wait_for_green`) and appends a `delivery-evidence` row. Warn-floor by design: delivery is `mandatory:false`, so it surfaces a bad push one turn late but never blocks. Degrades cleanly when `gh` is absent.
29
+ - **The stage is printed on entry.** The stage-writer PreToolUse hook now prints a plain-English `▸ paqad · <stage>` line (via Claude's user-visible `systemMessage` channel) the first time a change enters each stage, so the developer sees the workflow running even when the model forgets to say it. Claude-only (the sole pre-mutation host); idempotent per change.
30
+ - **The Decision Pause Contract self-arms.** An opt-in pre-mutation capability reads the recent prompt from the turn transcript and, on a high-confidence create-vs-reuse fork with no decision pending or already made, mints ONE pending decision packet so the existing decision-pause gate blocks the _next_ edit — closing the "nothing mints the packet" gap. **Off by default** (enable with `PAQAD_DECISION_SELFARM` or a local `.config` `decision_selfarm` line); it only mints, never blocks, so the current edit is never interrupted.
31
+
32
+ The kernel gate now threads an optional tool/turn payload (edit target, transcript path, session id) to each capability; every existing capability ignores it. Coverage stays at the 95% branch gate.
33
+
34
+ ## 1.35.0
35
+
36
+ ### Minor Changes
37
+
38
+ - fa171f3: Capability Kernel (F1–F8): unify the five enforcement contracts under one framework-owned, versioned kernel.
39
+
40
+ - Stage-evidence, rule-scripts, decision-pause, delivery, and narration are now rows in one `CapabilityRegistry`, each with per-capability policy/record schema versions.
41
+ - Evidence consumers (the dashboard and `paqad-ai audit export` / SIEM) read the always-on #249 session-ledger; the delivery, rule-compliance, and decision stores fold onto it via a shared project-ledger helper (dual-sink — the operational files the engine needs are preserved, so they stay in lockstep).
42
+ - `audit export` now unions the session-ledger doc types into the OCSF/ECS/CEF fold-view as a new `session` event kind, graded for a SOC.
43
+ - Compat spine (D2): the bless stamps a per-capability version vector into `capability-lock.json`; an install older than the schema a project was blessed under refuses to enforce cleanly (non-blocking) rather than misread a newer format.
44
+ - Removed the dead LaneRunner/SliceExecutor orchestration engine, its 19 pipeline phases, and the `paqad-ai plan resume` CLI command (they backed the trigger-independent engine that never ran at session time).
45
+
3
46
  ## 1.34.0
4
47
 
5
48
  ### Minor Changes
package/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
  [![Node](https://img.shields.io/node/v/paqad-ai.svg?style=flat-square)](https://nodejs.org)
21
21
  [![website](https://img.shields.io/badge/website-paqad.ai-0A7A5C?style=flat-square)](https://paqad.ai)
22
22
 
23
- Works with Claude Code, Cursor, GitHub Copilot, Gemini, Codex, Windsurf, Junie, Continue, Antigravity, and Aider.
23
+ Works with Claude Code, Cursor, GitHub Copilot, Gemini, Codex, Windsurf, Junie, Continue, Antigravity, Aider, and JetBrains AI Assistant.
24
24
 
25
25
  </div>
26
26
 
@@ -140,18 +140,19 @@ Three steps turn AI coding from a prompt you hope works into a pipeline you can
140
140
 
141
141
  Run `paqad-ai onboard` one time. It writes a thin, native config file for each tool you use, and they all point at the same shared instruction bundle. Change a rule in one place, and every agent sees it. Switch tools next month without losing anything.
142
142
 
143
- | Tool | What it creates |
144
- | ---------------------- | -------------------------------------------------------- |
145
- | **Claude Code** | `CLAUDE.md` and MCP config |
146
- | **Codex CLI** | `AGENTS.md` and MCP config |
147
- | **Google Antigravity** | `ANTIGRAVITY.md` and MCP config |
148
- | **Gemini CLI** | `GEMINI.md` and MCP config |
149
- | **Junie** | `.junie/AGENTS.md` and `.junie/mcp/mcp.json` |
150
- | **Cursor** | `.cursor/rules/paqad.mdc` plus MCP, skills, agents |
151
- | **GitHub Copilot** | `.github/copilot-instructions.md` and `.vscode/mcp.json` |
152
- | **Windsurf** | `.windsurfrules` plus MCP, skills, agents |
153
- | **Continue** | `.continue/rules/paqad.md` plus MCP, prompts |
154
- | **Aider** | `CONVENTIONS.md` |
143
+ | Tool | What it creates |
144
+ | -------------------------- | -------------------------------------------------------- |
145
+ | **Claude Code** | `CLAUDE.md` and MCP config |
146
+ | **Codex CLI** | `AGENTS.md` and MCP config |
147
+ | **Google Antigravity** | `ANTIGRAVITY.md` and MCP config |
148
+ | **Gemini CLI** | `GEMINI.md` and MCP config |
149
+ | **Junie** | `.junie/AGENTS.md` and `.junie/mcp/mcp.json` |
150
+ | **Cursor** | `.cursor/rules/paqad.mdc` plus MCP, skills, agents |
151
+ | **GitHub Copilot** | `.github/copilot-instructions.md` and `.vscode/mcp.json` |
152
+ | **Windsurf** | `.windsurfrules` plus MCP, skills, agents |
153
+ | **Continue** | `.continue/rules/paqad.md` plus MCP, prompts |
154
+ | **Aider** | `CONVENTIONS.md` |
155
+ | **JetBrains AI Assistant** | `.aiassistant/rules/guidelines.md` |
155
156
 
156
157
  Pick one or pick all. Onboarding is multi-select.
157
158