sello 0.1.0 → 0.1.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 +2 -0
- package/docs/decisions.md +2 -2
- package/docs/release-checklist.md +3 -3
- package/docs/sdk-quickstart.md +2 -0
- package/package.json +2 -2
- package/src/cli/sello.ts +5 -3
package/README.md
CHANGED
|
@@ -48,6 +48,8 @@ The implementation includes a local end-to-end demo, compact JWS token verificat
|
|
|
48
48
|
|
|
49
49
|
## Start Here
|
|
50
50
|
|
|
51
|
+
Sello currently requires Node.js 22.7 or newer.
|
|
52
|
+
|
|
51
53
|
| Goal | Read |
|
|
52
54
|
|------|------|
|
|
53
55
|
| Add Sello in a few lines | [SDK Quickstart](docs/sdk-quickstart.md) |
|
package/docs/decisions.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Initial Scaffold
|
|
4
4
|
|
|
5
|
-
- Use plain TypeScript modules with Node
|
|
5
|
+
- Use plain TypeScript modules with Node 22.7+'s native type stripping for the first implementation slice.
|
|
6
6
|
- Use Node's built-in test runner to avoid dependency installation before the crypto-library spike.
|
|
7
7
|
- Keep `package.json` npm-compatible, but run tests with `node --run test` or the raw `node --test --experimental-strip-types` command while `npm` is unavailable in this workspace.
|
|
8
8
|
- Start with token-derived identifiers because they require no third-party dependencies and exercise the spec's exact-byte handling rule.
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
|
|
76
76
|
## Demo Command
|
|
77
77
|
|
|
78
|
-
- Ship a small `sello-demo` binary that runs through Node
|
|
78
|
+
- Ship a small `sello-demo` binary that runs through Node 22.7+'s native TypeScript type stripping.
|
|
79
79
|
- The demo prints success, error, and denied receipts as verified JSON, and `--tamper` appends a deliberately bad entry to show structured rejection output.
|
|
@@ -5,8 +5,8 @@ Use this checklist before publishing a Sello npm release.
|
|
|
5
5
|
## Preflight
|
|
6
6
|
|
|
7
7
|
- Confirm `git status --short` is clean.
|
|
8
|
-
- Confirm `node -v` is `
|
|
9
|
-
- If multiple Node versions are installed, confirm `PATH` resolves `node` to Node
|
|
8
|
+
- Confirm `node -v` is `v22.7.0` or newer.
|
|
9
|
+
- If multiple Node versions are installed, confirm `PATH` resolves `node` to Node 22.7 or newer before running package scripts.
|
|
10
10
|
- Confirm `package.json` has the intended version.
|
|
11
11
|
- Confirm `README.md` and `docs/sdk-quickstart.md` match the current CLI and examples.
|
|
12
12
|
- Confirm the paper link and local PDF are current, if the paper changed.
|
|
@@ -24,7 +24,7 @@ Fresh clone smoke test:
|
|
|
24
24
|
tmpdir=$(mktemp -d)
|
|
25
25
|
git clone https://github.com/juanfiguera/sello.git "$tmpdir/sello"
|
|
26
26
|
cd "$tmpdir/sello"
|
|
27
|
-
node -v # must be
|
|
27
|
+
node -v # must be v22.7.0 or newer
|
|
28
28
|
node --run test
|
|
29
29
|
npm pack --dry-run
|
|
30
30
|
node --experimental-strip-types src/cli/sello.ts --help
|
package/docs/sdk-quickstart.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sello",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Reference implementation of the Sello protocol for service-signed AI agent receipts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"test": "node --test --experimental-strip-types"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=22.7.0"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"ai-agents",
|
package/src/cli/sello.ts
CHANGED
|
@@ -505,10 +505,12 @@ function printDevConfig(port: number, state: DevState): void {
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
function enforceNodeVersion(): void {
|
|
508
|
-
const major =
|
|
509
|
-
|
|
508
|
+
const [major = 0, minor = 0] = process.versions.node
|
|
509
|
+
.split(".")
|
|
510
|
+
.map((part) => Number(part));
|
|
511
|
+
if (major < 22 || (major === 22 && minor < 7)) {
|
|
510
512
|
throw new TypeError(
|
|
511
|
-
`Sello requires Node >=
|
|
513
|
+
`Sello requires Node >=22.7.0; current Node is ${process.versions.node}`,
|
|
512
514
|
);
|
|
513
515
|
}
|
|
514
516
|
}
|