@domandigital/craft 0.13.0 → 0.14.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 +6 -0
- package/CHARACTER.md +59 -11
- package/COPY.md +5 -0
- package/dist/{audit-5TYDYRXV.js → audit-6WHR7ZTV.js} +3 -2
- package/dist/audit.cjs +669 -92
- package/dist/audit.d.cts +15 -1
- package/dist/audit.d.ts +15 -1
- package/dist/audit.js +669 -92
- package/dist/{chunk-3VTPI7BU.js → chunk-3OTKMKJQ.js} +65 -91
- package/dist/{chunk-IMB4V34S.js → chunk-7T5WR74C.js} +7 -7
- package/dist/{chunk-GMVXADJ6.js → chunk-GQVEYTBY.js} +698 -89
- package/dist/{chunk-ZZ5CKOJP.js → chunk-OOZOEWGD.js} +1 -1
- package/dist/{chunk-K2BZN4GA.js → chunk-PBK6SYH5.js} +7 -7
- package/dist/{chunk-ZLDA2SYB.js → chunk-Q7ILL2HV.js} +47 -6
- package/dist/chunk-QYBAVU3P.js +6 -0
- package/dist/{chunk-CZDOMIVS.js → chunk-WUACK2HX.js} +2 -1
- package/dist/{chunk-ESCVTKPN.js → chunk-XVBR2UPH.js} +6 -6
- package/dist/{cli-BKJMLD3H.js → cli-3CGUKXY4.js} +6 -5
- package/dist/{cli-DRKAMFAH.js → cli-O3CDSONO.js} +7 -6
- package/dist/{cli-J5ECRCD4.js → cli-WG3UJNUF.js} +12 -11
- package/dist/{cli-N2IDXH7W.js → cli-WSHPSWVU.js} +7 -6
- package/dist/{cli-ILH7OO5G.js → cli-Z2IQG3LC.js} +5 -4
- package/dist/cli.js +3 -2
- package/dist/index.cjs +780 -225
- package/dist/index.d.cts +165 -3
- package/dist/index.d.ts +165 -3
- package/dist/index.js +763 -225
- package/dist/migrate-VIFAYIBM.js +9 -0
- package/package.json +1 -1
- package/word-lists.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @domandigital/craft
|
|
2
2
|
|
|
3
|
+
## 0.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8686cf1: Phase N, specificity. `specificity(text, brief?)` counts what only this business could have written: names, places, numbers, prices, dates, contact details and trade nouns, with Title Case and shouted lines read without their capitals and stock figures ("24/7", "100%", "5-star") masked. A brief's own terms are recognised wherever they appear. Snapshots now record each section's `text` and the `firstScreenText` a visitor reads before scrolling, leaving out navigation, buttons, links and footers. Two new tells, both `warn`: `generic-hero-claim` (copy and rendered, home page only: the headline and the line under it name nothing particular) and `unproven-claim` (rendered: a claim of standing such as "trusted" or "fully qualified" with no review, rating, registration number or accreditation in its section or the one either side). `craft copy compare <ours> --competitor <theirs>` lists the hero and service sentences on each page that hold no specific the other page lacks. The catalogue table no longer prints "rendered + rendered" for rendered-only tells.
|
|
8
|
+
|
|
3
9
|
## 0.13.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/CHARACTER.md
CHANGED
|
@@ -250,6 +250,52 @@ abstract blob from a diagram needs an SVG's path data or its pixels, which a
|
|
|
250
250
|
cross-origin picture does not give the page, and no flag case has been proved
|
|
251
251
|
reliable. It stays on the list until one is.
|
|
252
252
|
|
|
253
|
+
### Specificity
|
|
254
|
+
|
|
255
|
+
A page built from no brief could belong to anyone, because the model had
|
|
256
|
+
nothing particular to say. Specificity counts what only this business could
|
|
257
|
+
have written: names, places, numbers, prices, dates, contact details, and
|
|
258
|
+
the nouns of the trade (`TRADE_NOUNS`, a seed list). Two rules keep the
|
|
259
|
+
count honest. A Title Case or shouted line's capitals are not read as names
|
|
260
|
+
("Quality You Can Trust" is not a proper noun), and the figures every site
|
|
261
|
+
uses ("24/7", "100%", "5-star", "No. 1") are masked before counting. A text
|
|
262
|
+
is generic when it has no specific other than trade nouns and fewer than two
|
|
263
|
+
of those: one trade noun ("quality plumbing you can trust") is what every
|
|
264
|
+
competitor also says.
|
|
265
|
+
|
|
266
|
+
A snapshot now records the page's text: each section's headings,
|
|
267
|
+
paragraphs, list items and quotes (`text`), and what a visitor reads before
|
|
268
|
+
scrolling (`firstScreenText`), leaving out navigation, a header without the
|
|
269
|
+
headline, footers and the words on buttons and links. Two tells read it:
|
|
270
|
+
|
|
271
|
+
- `generic-hero-claim`: the home page's first screen names nothing
|
|
272
|
+
particular. Also a copy tell, on a literal `<h1>` and the paragraph under
|
|
273
|
+
it in the home page's source (a root route file such as `app/page.tsx`, a
|
|
274
|
+
top-level `index.html`, or a hero or home component). Every other page's
|
|
275
|
+
headline is a label ("Privacy policy", "Boiler repairs"), not a claim, and
|
|
276
|
+
is not judged.
|
|
277
|
+
- `unproven-claim`: a claim of standing ("trusted", "fully qualified",
|
|
278
|
+
"award-winning", "5-star service") with no review, rating, quoted
|
|
279
|
+
testimonial, registration number or accreditation (by name, or as a logo
|
|
280
|
+
whose alt text or file name names it) in its section or the one either
|
|
281
|
+
side.
|
|
282
|
+
|
|
283
|
+
A brief sharpens the count: its own terms (the business's name, its town,
|
|
284
|
+
its trade) are recognised wherever they appear, even opening a sentence or
|
|
285
|
+
in a shouted heading. The tells run without one. `craft copy compare <ours>
|
|
286
|
+
--competitor <theirs>` uses one, from `--brief`, `art-direction.json` or a
|
|
287
|
+
null model's `null.json`, and lists the hero and service sentences on each
|
|
288
|
+
page that hold no specific the other page lacks: a town both name, or a
|
|
289
|
+
trade noun both use, is shared; the business's name, its prices and its
|
|
290
|
+
jobs are its own. It is a measure for a person to read and always exits 0.
|
|
291
|
+
|
|
292
|
+
The limits, stated so nobody reads more into a pass than is there: a place
|
|
293
|
+
in a Title Case heading ("Boiler Repairs In Brackley") is not recognised
|
|
294
|
+
without a brief, a headline whose words come from data (`{site.headline}`)
|
|
295
|
+
is not read in source, and "specific" means particular, not true. `craft
|
|
296
|
+
copy claims` is where a figure gets checked. Snapshots taken before craft
|
|
297
|
+
recorded text have none, and neither tell judges them.
|
|
298
|
+
|
|
253
299
|
## The counterfactual
|
|
254
300
|
|
|
255
301
|
A list of tells goes stale; the model does not. So signal 2 asks the model
|
|
@@ -622,7 +668,7 @@ Generated from the package. Run `pnpm --filter @domandigital/craft run docs`
|
|
|
622
668
|
after changing an entry; a test fails until you do.
|
|
623
669
|
|
|
624
670
|
<!-- craft:catalogue:start -->
|
|
625
|
-
Catalogue version `2026.09.
|
|
671
|
+
Catalogue version `2026.09.12`, 68 tells.
|
|
626
672
|
|
|
627
673
|
| Id | Gen | Surface | Severity | Tell | Why it is a default |
|
|
628
674
|
| --- | --- | --- | --- | --- | --- |
|
|
@@ -682,14 +728,16 @@ Catalogue version `2026.09.11`, 66 tells.
|
|
|
682
728
|
| `repeated-sentence` | 1 | copy | warn | Repeated sentence | The same sentence on two pages, or the same nine words lightly edited, is one of the strongest signs a document was assembled rather than written. |
|
|
683
729
|
| `heading-shape` | 2 | copy | warn | One heading shape | Headings that all share one shape ('X, and Y', 'X, because Y', 'Keep, rewrite, consolidate, retire') read as a template filled in section by section. |
|
|
684
730
|
| `heading-echo` | 2 | copy | warn | Heading echoed | A heading repeated word for word as the first line under it spends the reader's attention twice on the same words. |
|
|
685
|
-
| `
|
|
686
|
-
| `
|
|
687
|
-
| `
|
|
688
|
-
| `
|
|
689
|
-
| `
|
|
690
|
-
| `
|
|
691
|
-
| `
|
|
692
|
-
| `stock-
|
|
693
|
-
| `
|
|
694
|
-
| `
|
|
731
|
+
| `generic-hero-claim` | 1 | copy + rendered | warn | Headline that fits any business | The first thing a visitor reads on the home page names no place, no person, no price and no job, so it would fit every competitor's site unchanged. A model writes it when it has nothing particular to say. |
|
|
732
|
+
| `cta-band-stock` | 1 | rendered | warn | Stock call-to-action band | A full-width coloured band with a centred heading, one line and one or two buttons is what a model closes every section run with. It asks for the booking the same way on every site. |
|
|
733
|
+
| `pricing-trio-popular` | 1 | rendered | warn | Three-tier pricing with a popular badge | Three price cards with the middle one badged 'Most popular' is the SaaS pricing page, applied to a plumber or a salon whether or not anyone chose the middle option. |
|
|
734
|
+
| `testimonial-avatar-carousel` | 1 | rendered | warn | Avatar testimonial carousel | Round headshots over quotes in a sliding carousel is the stock testimonial block. Most visitors see the first slide only, and stock or AI faces make every quote read as invented. |
|
|
735
|
+
| `faq-accordion-closer` | 2 | rendered | warn | FAQ accordion as the closer | Ending the page on a collapsed FAQ, often followed only by a band, is the model's default page ending. The answers a buyer needs are hidden behind clicks at the point they decide. |
|
|
736
|
+
| `stats-row` | 1 | rendered | warn | Row of big numbers | Three or four large figures in a row (500+ clients, 98% satisfaction, 10 years) is the stock proof block, and the numbers are often round, unsourced or invented. |
|
|
737
|
+
| `centred-everything` | 2 | rendered | warn | Every section centred | When almost every section stacks a centred heading over centred text, the page has no reading line and every block looks like the one before. It is the layout nothing was decided for. |
|
|
738
|
+
| `stock-photo` | 1 | rendered | warn | Stock photography | A picture from a stock library is the picture every other site in the trade can use. It shows a job the client did not do, in a kitchen that is not theirs, and a visitor who has seen it before stops believing the rest. |
|
|
739
|
+
| `stock-avatar` | 1 | rendered | warn | Stock or placeholder faces | Round portraits from a placeholder-face service or a stock library next to reviews make every quote read as invented, and some of those faces are generated people who do not exist. |
|
|
740
|
+
| `ai-image` | 2 | rendered | warn | Generated image | The file itself says a model made it (its XMP or Content Credentials name a trained-model source). A generated picture stands in for work the client did not photograph, and anyone can read the label. |
|
|
741
|
+
| `no-real-imagery` | 1 | rendered | warn | No photograph on the page | A page with no photograph at all, only icons and illustrations, is the page a model builds when it has no assets. Icon tiles stand in for the evidence a buyer looks for: the work, the premises, the people. |
|
|
742
|
+
| `unproven-claim` | 1 | rendered | warn | Claim with no proof next to it | "Trusted", "fully qualified" and "award-winning" ask the visitor to take the business's word for it. A page built with no reviews and no registration number makes the claim anyway, with nothing beside it. |
|
|
695
743
|
<!-- craft:catalogue:end -->
|
package/COPY.md
CHANGED
|
@@ -102,6 +102,7 @@ person reading decides which instance earns its place.
|
|
|
102
102
|
| `inline-label-list` | three or more bullets in a row opening "**Label:**", where the label repeats the line |
|
|
103
103
|
| `prompt-context` | "This article uses the attached Perplexity research file as the primary source", "the attached research is right to say", "the attached brief asks": the model naming what it was given. A web page has no attachment. **Zero in anything published** |
|
|
104
104
|
| `placeholder` | "[Insert client name]", lorem ipsum, `TODO_PLACEHOLDER`. Fine in a draft commit; **zero in anything delivered** |
|
|
105
|
+
| `generic-hero-claim` | on the home page (a root route file, a top-level `index.html`, or a hero or home component), a literal `<h1>` and the paragraph under it that name no place, person, number, price or job: "Quality you can trust", "Your vision, our expertise". One trade noun is not enough ("quality plumbing"); two are ("boiler and radiator repairs"). Also read on the rendered first screen by `craft audit` |
|
|
105
106
|
|
|
106
107
|
### Style is not evidence
|
|
107
108
|
|
|
@@ -218,6 +219,10 @@ Hyphenated compounds count as one word. Not automated.
|
|
|
218
219
|
sourced or UNSOURCED. A claim is sourced, corrected or cut, never re-cited
|
|
219
220
|
from memory. The copy check cannot do this part: a false figure in clean
|
|
220
221
|
prose passes every tell.
|
|
222
|
+
- **Proof sits next to the claim it backs.** "Trusted", "fully qualified",
|
|
223
|
+
"award-winning" and "5-star service" need a review, a rating or an
|
|
224
|
+
accreditation in the same section or the one either side of it. `craft
|
|
225
|
+
audit` reports each one that has none (`unproven-claim`, a warning).
|
|
221
226
|
|
|
222
227
|
## CTA rule
|
|
223
228
|
|
|
@@ -9,9 +9,10 @@ import {
|
|
|
9
9
|
snapshotPage,
|
|
10
10
|
snapshotUrl,
|
|
11
11
|
snapshotUrls
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q7ILL2HV.js";
|
|
13
13
|
import "./chunk-JYNXGCYZ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-GQVEYTBY.js";
|
|
15
|
+
import "./chunk-QYBAVU3P.js";
|
|
15
16
|
export {
|
|
16
17
|
PROVENANCE_BUDGET_MS,
|
|
17
18
|
PROVENANCE_MAX_IMAGES,
|