@geonosis/walk 2.3.1 → 2.4.2
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 +98 -0
- package/bin/geonosis-walk.mjs +19 -5
- package/package.json +2 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# @geonosis/walk
|
|
2
|
+
|
|
3
|
+
## 2.4.2
|
|
4
|
+
|
|
5
|
+
## 2.4.1
|
|
6
|
+
|
|
7
|
+
## 2.4.0
|
|
8
|
+
|
|
9
|
+
## 2.3.1
|
|
10
|
+
|
|
11
|
+
## 2.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 3dac9a7: **`content-integrity`, the tenth walk class, and its four probes (#43).** A page that renders
|
|
16
|
+
correctly and says nothing was being filed under `fabricated-claim`'s forbidden-string engine, which
|
|
17
|
+
is one class borrowing another's mechanism. `thin-page` counts the words a reader is shown against a
|
|
18
|
+
floor the repo sets; `empty-section` names a container carrying a heading and no body; `money-format`
|
|
19
|
+
names a price in a shape the repo does not write; `orphan-url` names a walked page nothing links to.
|
|
20
|
+
|
|
21
|
+
The last one needed a report-level contract, so `Probe` gains an optional `finish` — the reading no
|
|
22
|
+
single page can make — whose findings are filed against the page they name. Three of the four refuse
|
|
23
|
+
at load without the repo fact they cannot mean anything without (D-031).
|
|
24
|
+
- 3dac9a7: **The walk prints its denominator (#96).** `0 finding(s)` over three of nine probes was the same
|
|
25
|
+
sentence a fully configured clean walk prints. The summary now carries `N of M probe(s) ran` beside
|
|
26
|
+
the pages and the findings, and names the probes that were never looked for.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- 3dac9a7: **One documented spelling (#90).** Every README of a package the metapackage fronts now names
|
|
31
|
+
`geonosis <tool>` — the door that pins the whole toolchain at one version — beside the bare bin, and
|
|
32
|
+
a `tooling/` test holds it. `#230`'s stamp test lands with it: every flag `docs/orchestration.md`'s
|
|
33
|
+
adoption loop names has to carry the version it first ships in, because the loop once told a
|
|
34
|
+
consumer to run a flag the published version did not have.
|
|
35
|
+
|
|
36
|
+
## 2.2.0
|
|
37
|
+
|
|
38
|
+
## 2.1.0
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- e0da9a3: **D-060 made mechanical, and the sweep it found (#220).** A published README or dist comment may name a consumer as the SOURCE of a pattern — that is attribution of the user's own products — and may not describe what is inside one. `tooling/provenance.ts` reads every publishable package's README and `dist/`, and fails on a consumer's name followed within the sentence by an internals noun (table, plane, column, schema, migration, incident, outage, postmortem, `apps/`, `packages/`) with no provenance phrase between them; the consumer names come from `geonosis.json`'s declared smoke snapshots, never from a list of its own — the kit's `no-brand-names` rule refuses a brand written into this repo, so a name enters that vocabulary only by being declared a consumer. It found nineteen sentences across nine packages — their file paths, their table and selector names, their line counts, their incident — and every one is reworded rather than stripped of its attribution.
|
|
43
|
+
|
|
44
|
+
## 2.0.0
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 4b61257: **`geonosis` — one manifest line pins the toolchain.** `pnpm add -D geonosis` (or `bun add -d geonosis`) installs `@geonosis/cli` and every gate it runs, all on one version, and ships no bin of its own. What it brings is exported as data — `TOOLCHAIN`, `BY_NAME`, `OPTIONAL_BINARIES` — and checked against the workspace by its own test, so a package added to the group cannot go missing from the list quietly.
|
|
49
|
+
|
|
50
|
+
#73's lesson is a gate here: every peer of every installed package must be optional, or named in `REQUIRED_PEERS` with the reason every consumer pays for it (`oxlint`, `zod`, `better-result`). It caught a live one — `@geonosis/walk` declared `playwright` as a REQUIRED peer while its own code already imports it dynamically and refuses by name. Measured on a scratch consumer against a local registry: **bun 1.4.0 installs a non-optional peer without being asked; pnpm 11.8.0 does not** — so `bun add @geonosis/cli` was pulling a browser driver into repos that never walk anything. `playwright` is now an optional peer of `@geonosis/walk`.
|
|
51
|
+
|
|
52
|
+
## 1.4.0
|
|
53
|
+
|
|
54
|
+
## 1.3.0
|
|
55
|
+
|
|
56
|
+
### Minor Changes
|
|
57
|
+
|
|
58
|
+
- 2d1d841: **`geonosis-walk --help` answered "unknown option --help" at exit 2 (#66).** It now prints its
|
|
59
|
+
usage — the flags, and the three exit codes that were documented only in a code comment — at exit 0
|
|
60
|
+
for `--help`/`-h`, and the unknown-option refusal points at it.
|
|
61
|
+
|
|
62
|
+
**It also answers `--print-config-shape` (#75)**, assembled from the same `KNOWN` set the reader refuses against.
|
|
63
|
+
|
|
64
|
+
## 1.2.0
|
|
65
|
+
|
|
66
|
+
## 1.1.0
|
|
67
|
+
|
|
68
|
+
## 1.0.1
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- 1c2ee0b: **Every package ships its declarations and says where they are.** `@geonosis/visual-diff` and
|
|
73
|
+
`@geonosis/verify` emitted no `.d.ts` at all (TS7016 in a consumer: the comparator every visual test
|
|
74
|
+
calls became `any` at the one seam that decides whether a screenshot regressed), and no package
|
|
75
|
+
declared `types` — the nineteen that worked did so through the sibling-file fallback, which ends the
|
|
76
|
+
day `exports` gains a condition. Every export now carries a `types` condition beside `default`, every
|
|
77
|
+
manifest a `types` field, and `tooling/types.test.ts` holds all twenty-one to it after the build.
|
|
78
|
+
|
|
79
|
+
`geonosis-verify-arch` prints a check once when its label is its id ("direction, orphan", not
|
|
80
|
+
"direction direction").
|
|
81
|
+
|
|
82
|
+
## 1.0.0
|
|
83
|
+
|
|
84
|
+
### Major Changes
|
|
85
|
+
|
|
86
|
+
- 9858ee5: `error-page-status`, a ninth probe from a production incident: a page whose body is an error surface
|
|
87
|
+
and whose status is healthy. Every curl-style health check, uptime monitor and load balancer reads
|
|
88
|
+
such a page as fine while nobody can use it. The status comes from the page's own response, so
|
|
89
|
+
`ProbeContext` gains `status` — a second request would ask a different question of a server that may
|
|
90
|
+
not answer twice the same way. `patterns` is required (D-031); a page that answered 400 or worse is
|
|
91
|
+
a server telling the truth, and the walk refuses that URL on its own. `walkFindings` counts the new
|
|
92
|
+
class.
|
|
93
|
+
- cd089cb: `@geonosis/walk`: the customer walk as a gate. Eight computed-DOM probes — light-on-light,
|
|
94
|
+
placeholder-asset, link-integrity, fabricated-claim, stub-only-entity, fake-session, ops-leakage,
|
|
95
|
+
buy-box-above-fold — over a list of URLs, with a JSON report and three exit codes: 0 clean, 1 found
|
|
96
|
+
something, 2 could not run. Five of the eight refuse the run when the repo has not given them the
|
|
97
|
+
list they cannot mean anything without (D-031). Playwright is a peer dependency; every probe is
|
|
98
|
+
proved against a fixture page that fires and one that passes, through a real browser.
|
package/bin/geonosis-walk.mjs
CHANGED
|
@@ -17,11 +17,25 @@ const newest = (dir) =>
|
|
|
17
17
|
}, 0)
|
|
18
18
|
: 0
|
|
19
19
|
const src = join(here, '..', 'src')
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
const dist = join(here, '..', 'dist')
|
|
21
|
+
// `newest` answers 0 for a directory that is NOT THERE and for one that is merely old, so the
|
|
22
|
+
// two conditions were one comparison and one sentence — and the staleness sentence was printed
|
|
23
|
+
// over trees that had never been built at all, blocking a turn in a fresh git worktree, which
|
|
24
|
+
// has no dist because dist is not committed (#357). Only the second is evidence of a mistake.
|
|
25
|
+
if (existsSync(src)) {
|
|
26
|
+
const built = newest(dist)
|
|
27
|
+
if (built === 0) {
|
|
28
|
+
process.stderr.write(
|
|
29
|
+
'geonosis-walk: this tree has never been built — run pnpm build. No dist here at all, which is what a fresh clone or a linked git worktree starts with; nothing is stale.\n',
|
|
30
|
+
)
|
|
31
|
+
process.exit(2)
|
|
32
|
+
}
|
|
33
|
+
if (newest(src) > built) {
|
|
34
|
+
process.stderr.write(
|
|
35
|
+
'geonosis-walk: dist is older than src — run pnpm build before trusting this bin.\n',
|
|
36
|
+
)
|
|
37
|
+
process.exit(2)
|
|
38
|
+
}
|
|
25
39
|
}
|
|
26
40
|
|
|
27
41
|
await import('../dist/walk-cli.js')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/walk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "The customer walk as a gate: eight computed-DOM probes over a list of URLs, one JSON report, and an exit code that tells a could-not-run from a clean page.",
|
|
6
6
|
"keywords": [
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
|
+
"CHANGELOG.md",
|
|
34
35
|
"bin",
|
|
35
36
|
"dist"
|
|
36
37
|
],
|