approvedcompleteApache-2.0

Package-distributed chassis: the toolchain leaves the tree

018-packaged-chassis

The heavy invariants leave the template tree and become versioned npm packages with prebuilt binaries: @enrahitu/toolchain (the vendored Encore build drivers + encore-runtime.node + tsparser, per-platform) and @enrahitu/hiqlite-native (the addon, prebuilt). The template drops from ~780 tracked files to a surface a developer can read in one sitting, and a chassis upgrade becomes a devDependency bump instead of a tree re-import. Decided 2026-07-14 to land BEFORE statecraft's app-shell import (statecraft spec 002), so the first template consumer never duplicates the fat tree. The build contract is unchanged where it matters: a stamped app still builds with npm + cargo-free installs and NO proprietary tool; the Statecraft CLI never becomes a build daemon.

Establishes
  • packages/ (directory)
  • .github/workflows/publish.yml
Sections
  • 018: Package-distributed chassis
  • 1. Purpose
  • 2. Territory
  • 3. Behavior
  • 5. Out of scope
  • 6. Status
Source
specs/018-packaged-chassis/spec.md @ dc4c9237e12aas of 2026-07-21 ยท shard c6014c1ceebc