rulereceipt 0.1.32 → 0.1.33

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/dist/types.js CHANGED
@@ -1 +1,22 @@
1
- export {};
1
+ /**
2
+ * A FAIL may only be constructed from a forbidding rule.
3
+ *
4
+ * This is the "cannot accuse" property as a compile-time invariant rather
5
+ * than a convention. It held by inspection — every `status: "FAIL"` sat
6
+ * inside a `polarity === "forbid"` branch — and inspection is exactly what
7
+ * stops holding the day someone adds a require-FAIL path. Passing the
8
+ * polarity in means a require branch cannot call this: `"require"` is not
9
+ * assignable to `"forbid"`, and the build fails rather than a user being
10
+ * accused of not doing something the tool guessed they had to do.
11
+ */
12
+ export function violation(rule, polarity, evidence, extra = {}) {
13
+ return {
14
+ ruleId: rule.id,
15
+ ruleTitle: rule.title,
16
+ ruleSource: rule.source,
17
+ status: "FAIL",
18
+ outcome: "fail",
19
+ evidence,
20
+ ...extra,
21
+ };
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulereceipt",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "Checks whether a Claude Code session actually followed your CLAUDE.md / AGENTS.md rules, with evidence.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@anthropic-ai/sdk": "^0.32.0",
50
50
  "commander": "^15.0.0",
51
- "nodemailer": "^9.0.6"
51
+ "nodemailer": "^9.1.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^26.4.0",