paqad-ai 1.6.0 → 1.7.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.
- package/CHANGELOG.md +53 -0
- package/dist/cli/index.js +326 -109
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +81 -8
- package/dist/index.js.map +1 -1
- package/dist/rule-scripts/index.d.ts +275 -0
- package/dist/rule-scripts/index.js +1269 -0
- package/dist/rule-scripts/index.js.map +1 -0
- package/package.json +5 -1
- package/runtime/{capabilities/security → base}/skills/finding-normalizer/assets/vocabulary.txt +1 -0
- package/runtime/base/skills/rule-analyzer/SKILL.md +85 -0
- package/runtime/base/skills/rule-analyzer/agents/openai.yaml +6 -0
- package/runtime/base/skills/rule-analyzer/references/classification-guide.md +56 -0
- package/runtime/base/skills/rule-analyzer/scripts/analyze.mjs +23 -0
- package/runtime/base/skills/rule-analyzer/scripts/record-conflicts.mjs +25 -0
- package/runtime/base/skills/rule-analyzer/scripts/write-map.mjs +47 -0
- package/runtime/base/skills/rule-editor/SKILL.md +75 -0
- package/runtime/base/skills/rule-editor/agents/openai.yaml +6 -0
- package/runtime/base/skills/rule-editor/references/edit-modes.md +29 -0
- package/runtime/base/skills/rule-editor/scripts/edit-rule.mjs +118 -0
- package/runtime/base/skills/rule-script-generator/SKILL.md +85 -0
- package/runtime/base/skills/rule-script-generator/agents/openai.yaml +6 -0
- package/runtime/base/skills/rule-script-generator/references/script-authoring.md +88 -0
- package/runtime/base/skills/rule-script-generator/scripts/prune.mjs +18 -0
- package/runtime/base/skills/rule-script-generator/scripts/register-script.mjs +70 -0
- package/runtime/base/skills/rule-script-generator/scripts/validate-script.mjs +38 -0
- package/runtime/base/skills/rule-script-reconciler/SKILL.md +78 -0
- package/runtime/base/skills/rule-script-reconciler/agents/openai.yaml +6 -0
- package/runtime/base/skills/rule-script-reconciler/references/drift-codes.md +27 -0
- package/runtime/base/skills/rule-script-reconciler/scripts/reconcile.mjs +19 -0
- package/runtime/base/skills/rule-script-runner/SKILL.md +71 -0
- package/runtime/base/skills/rule-script-runner/agents/openai.yaml +6 -0
- package/runtime/base/skills/rule-script-runner/references/run-contract.md +33 -0
- package/runtime/base/skills/rule-script-runner/scripts/run.mjs +30 -0
- package/runtime/base/skills/workflow-router/assets/routing-rules.txt +9 -0
- package/runtime/scripts/design/coverage.sh +5 -3
- package/runtime/scripts/design/scan-tokens.sh +9 -1
- /package/runtime/{capabilities/security → base}/skills/finding-normalizer/SKILL.md +0 -0
- /package/runtime/{capabilities/security → base}/skills/finding-normalizer/agents/openai.yaml +0 -0
- /package/runtime/{capabilities/security → base}/skills/finding-normalizer/assets/output.template.json +0 -0
- /package/runtime/{capabilities/security → base}/skills/finding-normalizer/references/finding-fields.md +0 -0
- /package/runtime/{capabilities/security → base}/skills/finding-normalizer/scripts/validate-findings.sh +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# paqad-ai
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#90](https://github.com/Eliyce/paqad-ai/pull/90) [`71711f0`](https://github.com/Eliyce/paqad-ai/commit/71711f0e6574654cf9826b03a5dcfb24ee3d5aaa) Thanks [@HLasani](https://github.com/HLasani)! - Add **rules-as-scripts** (issue [#89](https://github.com/Eliyce/paqad-ai/issues/89)): turn the prose rules under
|
|
8
|
+
`docs/instructions/rules/**` into deterministic, per-project verification
|
|
9
|
+
scripts that run as a sub-step of `feature-development.checks`, so rule
|
|
10
|
+
adherence no longer depends solely on the model remembering them.
|
|
11
|
+
|
|
12
|
+
All prompt-driven — no new user-facing CLI commands:
|
|
13
|
+
- `analyze rules` (`rule-analyzer`) — embeds stable `<!-- @rule RL-<hash> -->`
|
|
14
|
+
markers, classifies each rule `deterministic` / `heuristic` / `unverifiable`,
|
|
15
|
+
detects rules already enforced by ESLint/TS/etc., flags conflicts, and writes
|
|
16
|
+
a reviewable `docs/instructions/rules/rule-script-map.yml`.
|
|
17
|
+
- `generate rule scripts` (`rule-script-generator`) — authors one `.mjs` per
|
|
18
|
+
rule plus synthetic `__fixtures__/{pass,fail}`. A script that misclassifies
|
|
19
|
+
its own fixtures is rejected via the Decision Pause Contract — never
|
|
20
|
+
registered. Strict from generation; per-kind over-flag guard.
|
|
21
|
+
- `feature-development.checks.rule_compliance` runs the registered scripts
|
|
22
|
+
diff-scoped, hash-cached. `deterministic` findings block under `mode: strict`;
|
|
23
|
+
`heuristic` findings route to review and never block. Missing declared
|
|
24
|
+
binaries are reported and skipped, never crash the stage.
|
|
25
|
+
- `add rule` / `edit rule` / `remove rule` / `mark rule as unverifiable`
|
|
26
|
+
(`rule-editor`) — per-rule cascade with stable IDs; no global rebuild.
|
|
27
|
+
- `rule-script-reconciler` surfaces `RS-*` drift (rules edited without regen,
|
|
28
|
+
manual map edits, failing fixtures) at planning entry.
|
|
29
|
+
- New dashboard **Rule Compliance** card; onboarding plants the `analyze rules`
|
|
30
|
+
prompt. Engine exposed as the `paqad-ai/rule-scripts` subpath export.
|
|
31
|
+
- `finding-normalizer` promoted from the security capability to base so its
|
|
32
|
+
cross-capability vocabulary (`PEN-`/`DT-`/`MD-`/`RS-`) is no longer nested
|
|
33
|
+
under one capability.
|
|
34
|
+
|
|
35
|
+
Provider-neutral: the same prompt sequence and skills produce identical
|
|
36
|
+
artifacts across every supported adapter.
|
|
37
|
+
|
|
38
|
+
## 1.6.1
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- [#87](https://github.com/Eliyce/paqad-ai/pull/87) [`a5e350b`](https://github.com/Eliyce/paqad-ai/commit/a5e350b0d25b4cec7415d78467f624b4e664a1ca) Thanks [@HLasani](https://github.com/HLasani)! - Fix `design test` workflow scripts that failed on every onboarded project:
|
|
43
|
+
- `runtime/scripts/design/scan-tokens.sh` resolved its helper scanner via a
|
|
44
|
+
CWD-relative path, so Step 2 always exited 2 with
|
|
45
|
+
`error: skill scanner missing` when run from anywhere other than the
|
|
46
|
+
runtime root. Now resolves the helper relative to the script's own
|
|
47
|
+
location.
|
|
48
|
+
- `runtime/scripts/design/coverage.sh` aborted under macOS's stock Bash 3.2
|
|
49
|
+
(`set -u` + empty-array expansion) whenever the components directory or a
|
|
50
|
+
component's matching tests were empty — the common first-run case. Guarded
|
|
51
|
+
the three vulnerable `"${arr[@]}"` expansions with the
|
|
52
|
+
`${arr[@]+"${arr[@]}"}` idiom.
|
|
53
|
+
|
|
54
|
+
Closes [#86](https://github.com/Eliyce/paqad-ai/issues/86).
|
|
55
|
+
|
|
3
56
|
## 1.6.0
|
|
4
57
|
|
|
5
58
|
### Minor Changes
|