@altopelago/aeon-cli 0.12.0 → 0.13.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/OUTPUT_CONTRACT.md +35 -0
- package/README.md +11 -1
- package/dist/main.d.ts +14 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +375 -30
- package/dist/main.js.map +1 -1
- package/dist/runtime-bind.d.ts +4 -0
- package/dist/runtime-bind.d.ts.map +1 -1
- package/dist/runtime-bind.js +9 -3
- package/dist/runtime-bind.js.map +1 -1
- package/package.json +12 -12
package/OUTPUT_CONTRACT.md
CHANGED
|
@@ -14,6 +14,13 @@ The CLI MUST support these commands:
|
|
|
14
14
|
- `aeon inspect <file> --json --annotations`
|
|
15
15
|
- `aeon inspect <file> --json --annotations-only`
|
|
16
16
|
- `aeon inspect <file> --json --annotations-only --sort-annotations`
|
|
17
|
+
- `aeon inspect <file> --telex`
|
|
18
|
+
- `aeon inspect <file> --telex --include-headers`
|
|
19
|
+
- `aeon telex decode <file>`
|
|
20
|
+
- `aeon telex canonicalize <file>`
|
|
21
|
+
- `aeon telex materialize <file>`
|
|
22
|
+
- `aeon film decode <file>`
|
|
23
|
+
- `aeon film materialize <file>`
|
|
17
24
|
- `aeon finalize <file>`
|
|
18
25
|
- `aeon finalize <file> --json`
|
|
19
26
|
- `aeon finalize <file> --map`
|
|
@@ -67,6 +74,9 @@ The CLI MUST NOT (except as explicitly required by `aeon finalize`):
|
|
|
67
74
|
|
|
68
75
|
The CLI is an inspection/validation tool that only exposes events + errors.
|
|
69
76
|
|
|
77
|
+
Telex export is body-only by default. `--include-headers` selects the explicit
|
|
78
|
+
`aeon.document.v1` header plane; it does not turn header records into body paths.
|
|
79
|
+
|
|
70
80
|
## 5) `aeon check <file>` (human)
|
|
71
81
|
|
|
72
82
|
### 5.1 Purpose
|
|
@@ -388,3 +398,28 @@ Recommended v1 receipt storage rules:
|
|
|
388
398
|
- sidecar discovery SHOULD be filename-based only
|
|
389
399
|
- manifest/index discovery is out of scope for v1
|
|
390
400
|
- envelope pointer fields are out of scope for v1
|
|
401
|
+
|
|
402
|
+
## 11) `aeon film <decode|materialize> <file>`
|
|
403
|
+
|
|
404
|
+
Film input MUST be read as bytes and accepted only after Film framing and the
|
|
405
|
+
declared or default AES profile both validate completely.
|
|
406
|
+
|
|
407
|
+
`film decode` MUST emit this deterministic JSON shape:
|
|
408
|
+
|
|
409
|
+
```json
|
|
410
|
+
{
|
|
411
|
+
"profile": "aes.complete.v1",
|
|
412
|
+
"profileExplicit": false,
|
|
413
|
+
"projection": null,
|
|
414
|
+
"projectionExplicit": false,
|
|
415
|
+
"records": []
|
|
416
|
+
}
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
`film materialize` MUST use the same portable AES finalization contract as
|
|
420
|
+
Telex materialization. Film decoding failures MUST be written to `stderr` and
|
|
421
|
+
exit with code `1`; usage and file-read failures MUST exit with code `2`.
|
|
422
|
+
|
|
423
|
+
The Film v1 CLI surface is reader-only. `film encode`, `film canonicalize`, and
|
|
424
|
+
AEON-to-Film export are unsupported until the separate durable-writer gate is
|
|
425
|
+
approved.
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ pnpm add -D @altopelago/aeon-cli
|
|
|
12
12
|
Or run a pinned release directly:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npx @altopelago/aeon-cli@0.
|
|
15
|
+
npx @altopelago/aeon-cli@0.13.0 check ./document.aeon
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Quick Start
|
|
@@ -20,6 +20,11 @@ npx @altopelago/aeon-cli@0.12.0 check ./document.aeon
|
|
|
20
20
|
```bash
|
|
21
21
|
aeon check ./document.aeon
|
|
22
22
|
aeon inspect ./document.aeon --json
|
|
23
|
+
aeon inspect ./document.aeon --telex
|
|
24
|
+
aeon telex decode ./stream.telex.aes
|
|
25
|
+
aeon telex canonicalize ./stream.telex.aes
|
|
26
|
+
aeon film decode ./stream.film.aes
|
|
27
|
+
aeon film materialize ./stream.film.aes
|
|
23
28
|
aeon finalize ./document.aeon --json
|
|
24
29
|
aeon fmt ./document.aeon --write
|
|
25
30
|
```
|
|
@@ -31,6 +36,9 @@ aeon fmt ./document.aeon --write
|
|
|
31
36
|
- `aeon doctor` - check environment and contract registry wiring
|
|
32
37
|
- `aeon fmt [file]` - format AEON source, writing to stdout unless `--write` is used
|
|
33
38
|
- `aeon inspect <file>` - inspect Assignment Events, diagnostics, and optional annotations
|
|
39
|
+
- `aeon inspect <file> --telex` - export body events as Telex (`--include-headers` is explicit)
|
|
40
|
+
- `aeon telex decode|canonicalize <file>` - import or canonicalize Telex
|
|
41
|
+
- `aeon film decode|materialize <file>` - import or materialize Film v1
|
|
34
42
|
- `aeon finalize <file>` - materialize AEON into JSON, map, header, or full views
|
|
35
43
|
- `aeon bind <file>` - run the typed runtime binding pipeline with a schema
|
|
36
44
|
- `aeon integrity validate|verify|sign <file>` - work with integrity envelopes
|
|
@@ -65,3 +73,5 @@ tracked in [`OUTPUT_CONTRACT.md`](./OUTPUT_CONTRACT.md).
|
|
|
65
73
|
- `--recovery` is intended for editors and diagnostics, not production loading.
|
|
66
74
|
- The CLI does not execute AEON documents or coerce values into application
|
|
67
75
|
semantics.
|
|
76
|
+
- Film support is reader-only. The CLI deliberately exposes no Film encoder or
|
|
77
|
+
canonical writer while the durable-writer gate remains open.
|
package/dist/main.d.ts
CHANGED
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
* - aeon doctor Check environment and contract wiring
|
|
9
9
|
* - aeon fmt [file] Format AEON document (stdout by default)
|
|
10
10
|
* - aeon inspect <file> Inspect AEON document (human-readable)
|
|
11
|
+
* - aeon telex decode <file> Decode and validate Telex
|
|
12
|
+
* - aeon telex canonicalize <file> Canonicalize Telex
|
|
13
|
+
* - aeon telex materialize <file> Materialize complete Telex as JSON
|
|
14
|
+
* - aeon film decode <file> Decode and validate Film v1
|
|
15
|
+
* - aeon film materialize <file> Materialize complete Film v1 as JSON
|
|
11
16
|
* - aeon finalize <file> Finalize AEON document to JSON
|
|
12
17
|
* - aeon bind <file> Run typed runtime binding with schema JSON
|
|
13
18
|
* - aeon integrity validate <file> Validate integrity envelope
|
|
@@ -16,6 +21,9 @@
|
|
|
16
21
|
*
|
|
17
22
|
* Flags:
|
|
18
23
|
* - --json Output as JSON (inspect/finalize/integrity)
|
|
24
|
+
* - --portable-aes Emit the portable flat AES projection (inspect JSON only)
|
|
25
|
+
* - --source-provenance Bind portable origin/span to the exact inspected UTF-8 source
|
|
26
|
+
* - --telex Export the portable AES stream as Telex (inspect only)
|
|
19
27
|
* - --contract-registry Trusted contract registry JSON path (doctor/bind)
|
|
20
28
|
* - --write Write formatted output back to file (fmt only)
|
|
21
29
|
* - --annotations Include annotation stream records in inspect/bind output
|
|
@@ -28,9 +36,13 @@
|
|
|
28
36
|
* - --recovery Enable recovery mode (partial results with errors)
|
|
29
37
|
* - --max-input-bytes Maximum UTF-8 input size in bytes
|
|
30
38
|
* - --max-attribute-depth Maximum attribute selector depth
|
|
31
|
-
* - --max-
|
|
39
|
+
* - --max-clarifier-values Maximum clarifier values per datatype descriptor
|
|
40
|
+
* - --max-separator-depth Deprecated alias for --max-clarifier-values
|
|
32
41
|
* - --max-generic-depth Maximum nested generic type depth
|
|
33
|
-
* - --max-
|
|
42
|
+
* - --max-generic-arguments Maximum generic arguments per datatype descriptor
|
|
43
|
+
* - --max-datatype-components Maximum components in one recursive datatype
|
|
44
|
+
* - --max-value-nesting-depth Maximum logical container nesting depth
|
|
45
|
+
* - --max-nesting-depth Deprecated alias for --max-value-nesting-depth
|
|
34
46
|
* - --max-materialized-weight Maximum cumulative clone materialization weight
|
|
35
47
|
* - --max-reference-depth Maximum clone resolution depth
|
|
36
48
|
* - --schema Schema JSON path (bind only)
|
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG"}
|