human-machine-swapper 1.0.0 → 1.0.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/README.md +17 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -254,19 +254,34 @@ and a Subresource Integrity hash:
|
|
|
254
254
|
```html
|
|
255
255
|
<script
|
|
256
256
|
src="https://unpkg.com/human-machine-swapper@1.0.0/src/human-machine-swapper.js"
|
|
257
|
-
integrity="sha384-
|
|
257
|
+
integrity="sha384-VetnLEfznYITII6EqUattgN+0Zd72RZXzBhdJjM/mAi6300cT3fUfvg7hN9JeMbH"
|
|
258
258
|
crossorigin="anonymous"
|
|
259
259
|
defer
|
|
260
260
|
></script>
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
That hash is for **1.0.0**. Every version has its own, so generate the one you are pinning —
|
|
264
|
+
and generate it rather than taking ours, so you are trusting bytes you checked:
|
|
264
265
|
|
|
265
266
|
```bash
|
|
266
267
|
curl -s https://unpkg.com/human-machine-swapper@1.0.0/src/human-machine-swapper.js \
|
|
267
268
|
| openssl dgst -sha384 -binary | openssl base64 -A
|
|
268
269
|
```
|
|
269
270
|
|
|
271
|
+
### Provenance
|
|
272
|
+
|
|
273
|
+
From 1.0.2 this package is published by GitHub Actions through npm's trusted publishing, with
|
|
274
|
+
no long-lived token anywhere. Every release carries a signed attestation naming the commit and
|
|
275
|
+
the workflow that built it, so you can check the tarball came from this repo rather than from
|
|
276
|
+
somebody's credentials:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
npm audit signatures
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
That is a stronger claim than an integrity hash. A hash says the bytes did not change in
|
|
283
|
+
transit; the attestation says where the bytes came from.
|
|
284
|
+
|
|
270
285
|
A pinned build does not update, so you take on watching for releases. Self-hosting the file is
|
|
271
286
|
the third option and works identically: it is one dependency-free script with no network calls
|
|
272
287
|
of its own beyond reading your `llms.txt`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "human-machine-swapper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A web component that adds a Human / Machine pill to any website. Machine shows the site's llms.txt, the plain-text reading written for language models, rendered in place. One file, about 6 KB gzipped, no dependencies and no build step.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"llms.txt",
|