Skip to content

Constraints

Each constraint is imposed by one file, linked in the last column. The reasons are in that file and are not repeated here.

Constraint Consequence for the design Imposed by
Node 22.18 or later Node runs the TypeScript sources as they are, in development and in the tests; CI runs the tests on Node 22.18 as well as on the development version engines in package.json, the node-22 job of test.yml
TypeScript is the main language every module under src/ is a .ts file, type-checked with tsc ADR-0004
The installed package is compiled JavaScript Node does not run TypeScript from node_modules, so npm run build compiles bin/ and src/ to dist/, the only directory the package ships files, bin and scripts.prepare in package.json
Delivered as a package installed from git, no registry npm builds the package when it installs it (prepare); there is no published artifact to download ADR-0012
One deployable unit a single package and a single process; modules call each other in memory ADR-0003
Input from outside is validated with zod the shapes of the files ontrack did not write are declared in one module, src/schemas.ts ADR-0005
Constraint Consequence for the design Imposed by
Tests cover 95 % of lines, branches and functions npm test fails below the threshold, so every module is written to be called from a test ADR-0007, scripts.test in package.json
Output formats are contracts a change to what a command prints goes through the commands reference first the contract sections of the commands reference
Documentation is public and in English this document names no internal system and no person’s contact detail ADR-0008, ADR-0002