npm.io
0.0.10 • Published 3 weeks agoCLI

@valkyrie-language/legion

Licence
MIT
Version
0.0.10
Deps
0
Size
31 kB
Vulns
0
Weekly
0
Stars
5

@valkyrie-language/legion 0.0.0

Node 24 / Wasm GC seed package for Legion 0.0.x.

This package is produced by the Rust seed (valkyrie.rs). It is not a claim of self-hosted or bootstrap-proven. Those gates are 0.1.0.

Layout

File Role
bin/legion.mjs Published CLI entry (legion / npx @valkyrie-language/legion)
lib/host.mjs Host ABI for Wasm imports (env.*)
lib/cli.mjs Argv dispatch (--version / --help / build)
legion.wasm Wasm GC module (filled by assemble; not committed empty)
run-contracts.txt Run contract sidecar from Node emit
provenance.json Build provenance (commit, toolchain, digests)
SHA256SUMS File digests

Install (after assemble / publish)

pnpm add @valkyrie-language/legion@0.0.0
# or from a local tarball:
pnpm add ./valkyrie-language-legion-0.0.0.tgz
legion --version
legion --help
legion build <project-dir> --target node -o dist/out

Assemble (maintainers)

From valkyrie.rs after a Node build that produces legion.mjs + legion.wasm:

node scripts/assemble-legion-wasm.mjs --from <path-to-node-artifact-dir>
npm pack ./packages/legion-wasm

--from must be a repo-relative or absolute path to a directory that already contains legion.wasm (and preferably run-contracts.txt). No hardcoded machine paths.

Known limits (0.0.0)

  • Seed stage only: legal for source → v1, not for claiming L2 convergence.
  • Full legion.tools v1→v2 may still fail; see workspace 内部决策/06-当前卡点.md.
  • Link / install must not read Rust source, Cargo target/, or host compiler callbacks at runtime.

License

MIT — see repository LICENSE.md.

Keywords