@casomoltd/tooling 0.20.5 → 0.21.1

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/README.md CHANGED
@@ -207,6 +207,7 @@ decision table) that keeps these units composing without overlap.
207
207
  | `/casomoltd:screenshot` | Capture and analyse a dev server page |
208
208
  | `/casomoltd:design-pass` | Map → review → refactor a package (drives `design-xray` + `code-review`) |
209
209
  | `/casomoltd:draft-design-spec` | Author a browser-reviewable HTML design spec from a brief and iterate on it before writing code (drives `design-xray`) |
210
+ | `/casomoltd:page-design` | Structure a content/explainer page for trust — above-the-fold answer, disclosure, palette-only colour (rubric a page-design reviewer preloads) |
210
211
 
211
212
  Enable the plugin by adding this repo as a marketplace and installing it:
212
213
 
@@ -7,8 +7,12 @@ module.exports = {
7
7
  plugins: [
8
8
  {
9
9
  rules: {
10
- 'no-ai-attribution': ({ header, body }) => {
11
- const fullMessage = `${header}\n${body || ''}`.toLowerCase();
10
+ 'no-ai-attribution': ({ header, body, footer }) => {
11
+ // `footer` matters: the parser files trailers like
12
+ // `Co-Authored-By: …` there, not under `body`, so a header+body
13
+ // check misses exactly the line this rule exists to catch. (Not
14
+ // `raw`: under `git commit -v` that can carry the whole diff.)
15
+ const fullMessage = `${header}\n${body || ''}\n${footer || ''}`.toLowerCase();
12
16
  const forbidden = ['anthropic', 'claude', 'co-authored-by'];
13
17
  const found = forbidden.filter((term) => fullMessage.includes(term));
14
18
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casomoltd/tooling",
3
- "version": "0.20.5",
3
+ "version": "0.21.1",
4
4
  "description": "Casomo's shared dev config: ESLint, Prettier, commitlint, knip & jscpd presets and dev CLIs (git hooks, readability, screenshots)",
5
5
  "license": "MIT",
6
6
  "repository": {