Skip to content

Commit 526e47d

Browse files
committed
feat(cli): add bounded strict JSON command foundation
1 parent 9517233 commit 526e47d

28 files changed

Lines changed: 2640 additions & 18 deletions

‎AGENTS.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Swift-JSON requires Swift tools/compiler 6.4+, Swift language mode 6 and
44
macOS/SDK 27+. Read README.md, CONTRIBUTING.md and the relevant contracts in
55
Documentation/Architecture before changing behavior.
66

7-
- Keep five public products: JSON, JSONSchema, JSONStreaming, JSONPatch and JSONHTML.
8-
JSONHTML depends on JSON only; the maintainer-approved 1.3 addition preserves historical four-product releases.
7+
- Keep six public products: JSON, JSONSchema, JSONStreaming, JSONPatch, JSONHTML
8+
and the swift-json executable. JSONFilterRuntime and JSONCLIEngine are package-private.
9+
JSONHTML depends on JSON only. The approved 1.4 CLI addition preserves historical product contracts.
910
JSONRegexRuntime is package-private. Root package dependencies remain empty.
1011
- Preserve exact bounded decimals, decoded Unicode scalar identity, ordered
1112
objects with order-independent equality, one strict UTF-8 grammar, native

‎Documentation/Architecture/ExtractionManifest.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@
196196
"Schema graph, explicit evaluator, exact sets/assertions and scalar format recognizers are original implementations from Draft 2020-12, RFC3986/3987/3339/3492/5321/5891/5892/5893/6531/6570/6901 and fixed Unicode13 data.",
197197
"Private FIPS 180-4 SHA-256 is an original Swift implementation with checked cumulative production accounting, bounded scratch and inner cancellation. The separate trusted fixture tool mirrors its primitive core byte-for-byte; public_check verifies parity. No CryptoKit fallback or runtime dependency is introduced.",
198198
"JSONHTML formatted rendering, original fixed CSS and shared strict-writer token classification are original Apache-2.0 code. No third-party renderer, browser numeric authority or runtime dependency is adapted.",
199-
"JSONHTML typed annotations, iterative exact-path binding, static/interactive attachment and coherent JSONDocument span presentation are original Apache-2.0 code. No schema engine, third-party renderer, source archive or new dependency is adapted."
199+
"JSONHTML typed annotations, iterative exact-path binding, static/interactive attachment and coherent JSONDocument span presentation are original Apache-2.0 code. No schema engine, third-party renderer, source archive or new dependency is adapted.",
200+
"CLI foundation, argv parser, POSIX adapters, prepaid bounded diagnostics and shared-meter package adapters are original Apache-2.0 Swift code. No legacy filter engine or jq source is copied. See Release1.4/Foundation.md for native test-harness reuse provenance."
200201
],
201202
"policy": "Record actual adaptations and retain applicable upstream copyrights and licenses. Reference inputs and comparison experiments are not distributed runtime dependencies.",
202203
"jsonhtml_export_original_contributions": {

0 commit comments

Comments
 (0)