@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 +1 -0
- package/commitlint/index.cjs +6 -2
- package/package.json +1 -1
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
|
|
package/commitlint/index.cjs
CHANGED
|
@@ -7,8 +7,12 @@ module.exports = {
|
|
|
7
7
|
plugins: [
|
|
8
8
|
{
|
|
9
9
|
rules: {
|
|
10
|
-
'no-ai-attribution': ({ header, body }) => {
|
|
11
|
-
|
|
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