@peac/cli 0.10.0 → 0.10.10
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/LICENSE +1 -1
- package/README.md +78 -5
- package/dist/commands/conformance.d.ts +16 -0
- package/dist/commands/conformance.d.ts.map +1 -0
- package/dist/commands/samples.d.ts +17 -0
- package/dist/commands/samples.d.ts.map +1 -0
- package/dist/index.cjs +2257 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +2236 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/conformance/digest.d.ts +64 -0
- package/dist/lib/conformance/digest.d.ts.map +1 -0
- package/dist/lib/conformance/index.d.ts +11 -0
- package/dist/lib/conformance/index.d.ts.map +1 -0
- package/dist/lib/conformance/manifest.d.ts +15 -0
- package/dist/lib/conformance/manifest.d.ts.map +1 -0
- package/dist/lib/conformance/profiles.d.ts +33 -0
- package/dist/lib/conformance/profiles.d.ts.map +1 -0
- package/dist/lib/conformance/types.d.ts +186 -0
- package/dist/lib/conformance/types.d.ts.map +1 -0
- package/dist/lib/conformance/validators.d.ts +27 -0
- package/dist/lib/conformance/validators.d.ts.map +1 -0
- package/dist/lib/conformance-runner.d.ts +29 -0
- package/dist/lib/conformance-runner.d.ts.map +1 -0
- package/dist/lib/samples-loader.d.ts +44 -0
- package/dist/lib/samples-loader.d.ts.map +1 -0
- package/dist/lib/version.d.ts +22 -0
- package/dist/lib/version.d.ts.map +1 -0
- package/package.json +27 -13
- package/dist/cli.js +0 -90
- package/dist/cli.js.map +0 -1
- package/dist/commands/bridge/index.js +0 -20
- package/dist/commands/bridge/index.js.map +0 -1
- package/dist/commands/bridge/install.js +0 -27
- package/dist/commands/bridge/install.js.map +0 -1
- package/dist/commands/bridge/start.js +0 -123
- package/dist/commands/bridge/start.js.map +0 -1
- package/dist/commands/bridge/status.js +0 -192
- package/dist/commands/bridge/status.js.map +0 -1
- package/dist/commands/bridge/stop.js +0 -130
- package/dist/commands/bridge/stop.js.map +0 -1
- package/dist/commands/bundle.js +0 -363
- package/dist/commands/bundle.js.map +0 -1
- package/dist/commands/discover.js +0 -39
- package/dist/commands/discover.js.map +0 -1
- package/dist/commands/hash.js +0 -106
- package/dist/commands/hash.js.map +0 -1
- package/dist/commands/policy.js +0 -712
- package/dist/commands/policy.js.map +0 -1
- package/dist/commands/verify.js +0 -50
- package/dist/commands/verify.js.map +0 -1
- package/dist/index.js +0 -217
- package/dist/index.js.map +0 -1
- package/dist/types.js +0 -6
- package/dist/types.js.map +0 -1
- package/dist/utils.js +0 -101
- package/dist/utils.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -175,7 +175,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
|
175
175
|
|
|
176
176
|
END OF TERMS AND CONDITIONS
|
|
177
177
|
|
|
178
|
-
Copyright 2025 PEAC Protocol Contributors
|
|
178
|
+
Copyright 2025-2026 PEAC Protocol Contributors
|
|
179
179
|
|
|
180
180
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
181
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -1,16 +1,89 @@
|
|
|
1
1
|
# @peac/cli
|
|
2
2
|
|
|
3
|
-
PEAC protocol command-line tools
|
|
3
|
+
PEAC protocol command-line tools.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add @peac/cli
|
|
8
|
+
pnpm add -g @peac/cli
|
|
9
|
+
# or
|
|
10
|
+
npx @peac/cli
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## Commands
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
### `peac verify <receipt>`
|
|
16
|
+
|
|
17
|
+
Verify a PEAC receipt (JWS compact serialization).
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
peac verify eyJhbGciOiJFZERTQSIs...
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### `peac conformance run`
|
|
24
|
+
|
|
25
|
+
Run conformance tests against PEAC schema validators.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
peac conformance run # Standard level, text output
|
|
29
|
+
peac conformance run --level full # Full level
|
|
30
|
+
peac conformance run --output json # JSON output
|
|
31
|
+
peac conformance run --output markdown # Markdown report
|
|
32
|
+
peac conformance run --category claims # Filter by category
|
|
33
|
+
peac conformance run --fixtures ./my-vectors # Custom fixtures path
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Options:**
|
|
37
|
+
|
|
38
|
+
| Option | Default | Description |
|
|
39
|
+
| ------------ | ---------- | -------------------------------------------------------- |
|
|
40
|
+
| `--level` | `standard` | Conformance level: `basic`, `standard`, `full` |
|
|
41
|
+
| `--output` | `text` | Output format: `text`, `json`, `markdown` |
|
|
42
|
+
| `--category` | all | Filter by category (e.g., `claims`, `signature`, `time`) |
|
|
43
|
+
| `--fixtures` | built-in | Path to custom conformance fixtures |
|
|
44
|
+
| `--verbose` | `false` | Show detailed test output |
|
|
45
|
+
|
|
46
|
+
### `peac conformance list`
|
|
47
|
+
|
|
48
|
+
List available conformance test fixtures.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
peac conformance list
|
|
52
|
+
peac conformance list --category claims
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### `peac samples list`
|
|
56
|
+
|
|
57
|
+
List available sample receipts.
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
peac samples list
|
|
61
|
+
peac samples list --category valid
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### `peac samples show <id>`
|
|
65
|
+
|
|
66
|
+
Display details of a specific sample receipt.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
peac samples show basic-receipt
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### `peac samples generate`
|
|
73
|
+
|
|
74
|
+
Generate sample receipt files.
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
peac samples generate --output ./samples
|
|
78
|
+
peac samples generate --format json
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Options:**
|
|
82
|
+
|
|
83
|
+
| Option | Default | Description |
|
|
84
|
+
| ---------- | -------- | ------------------------------------ |
|
|
85
|
+
| `--output` | `stdout` | Output directory for generated files |
|
|
86
|
+
| `--format` | `jws` | Format: `jws`, `json` |
|
|
14
87
|
|
|
15
88
|
## License
|
|
16
89
|
|
|
@@ -20,4 +93,4 @@ Apache-2.0
|
|
|
20
93
|
|
|
21
94
|
PEAC Protocol is an open source project stewarded by Originary and community contributors.
|
|
22
95
|
|
|
23
|
-
[
|
|
96
|
+
[Docs](https://www.peacprotocol.org) | [GitHub](https://github.com/peacprotocol/peac) | [Originary](https://www.originary.xyz)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PEAC Conformance CLI Commands (v0.10.8+)
|
|
3
|
+
*
|
|
4
|
+
* Commands for running conformance tests:
|
|
5
|
+
* - run: Run conformance tests against fixtures
|
|
6
|
+
* - list: List available conformance test fixtures
|
|
7
|
+
*
|
|
8
|
+
* Uses real validators from @peac/schema and generates reports
|
|
9
|
+
* conforming to peac-conformance-report/0.1.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from 'commander';
|
|
14
|
+
declare const conformance: Command;
|
|
15
|
+
export { conformance };
|
|
16
|
+
//# sourceMappingURL=conformance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../../src/commands/conformance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoGpC,QAAA,MAAM,WAAW,SAE2B,CAAC;AA+M7C,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PEAC Samples CLI Commands (v0.10.8+)
|
|
3
|
+
*
|
|
4
|
+
* Commands for working with sample receipts:
|
|
5
|
+
* - list: List available sample receipts
|
|
6
|
+
* - generate: Generate sample receipts for testing
|
|
7
|
+
* - show: Show details of a specific sample
|
|
8
|
+
*
|
|
9
|
+
* Uses specs/conformance/samples/ as canonical source when available,
|
|
10
|
+
* falls back to embedded samples when running outside the repo.
|
|
11
|
+
*
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from 'commander';
|
|
15
|
+
declare const samples: Command;
|
|
16
|
+
export { samples };
|
|
17
|
+
//# sourceMappingURL=samples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"samples.d.ts","sourceRoot":"","sources":["../../src/commands/samples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoFpC,QAAA,MAAM,OAAO,SAE+B,CAAC;AAmR7C,OAAO,EAAE,OAAO,EAAE,CAAC"}
|