@aikdna/kdna
v0.10.1
Published
KDNA toolkit compatibility package. Use @aikdna/kdna-cli for the canonical CLI.
Maintainers
Readme
@aikdna/kdna
Compatibility package for the KDNA command line tools.
KDNA Core is the official KDNA judgment-asset format and runtime loading contract. .kdna assets are created, inspected, packed, unpacked, and validated through the official KDNA toolchain. Third-party products integrate KDNA through the official SDK, CLI, Loader, or API.
This package is part of the official toolchain. The bin/kdna.js shim
is the v1-aware entry point of that toolchain; it dispatches v1 source
directories and v1 .kdna containers to shared @aikdna/kdna-core/v1,
and falls through to the legacy v2 surface for everything else.
The legacy install path is:
npm install -g @aikdna/kdna-cliThis package remains available so older installation instructions using
@aikdna/kdna resolve to the current KDNA CLI.
KDNA Core v1 route
The bin/kdna.js shim in this package adds a KDNA Core v1 route on top of
the upstream @aikdna/kdna-cli. When the input is a v1 source directory
(mimetype + kdna.json + payload.kdnab) or a v1 .kdna container
(ZIP with mimetype first, content application/vnd.kdna.asset), the
shim dispatches to shared @aikdna/kdna-core/v1. Anything else falls
through to the upstream CLI unchanged.
Usage:
# v1 source directory
kdna inspect examples/minimal
kdna validate examples/minimal
kdna pack examples/minimal /tmp/out.kdna
kdna unpack /tmp/out.kdna /tmp/out-unpackedThe local invocation in this monorepo is:
node packages/kdna/bin/kdna.js <command> <args>Or via the npm scripts in the repo root:
npm run kdna:inspect -- examples/minimal
npm run kdna:validate -- examples/minimal
npm run kdna:pack -- examples/minimal /tmp/out.kdna
npm run kdna:unpack -- /tmp/out.kdna /tmp/out-unpackedThe v1 route is content-neutral. Output never claims that an asset is "trusted", "recommended", "high_quality", or "officially approved". It reports format, schema, payload, checksums, and load-contract validity only. Format-valid does not mean content-good; that is a runtime policy decision owned by the caller.
