Clara Docs
All docs

M0 evidence: foundations

Evidence2 min readEdit on GitHub

On this page

Date: 2026-11-16. Machine: macOS 26.3, Apple silicon, Node 22.17.1, npm 11.5.2.

Acceptance

Check Result
npm run ci exits 0 locally yes, output below
node dist/cli.js --version prints the version 0.1.0
An unknown command exits 2 with a hint yes
The packed tarball installs into an empty folder and both commands run yes
CI is green on GitHub see "CI on GitHub" below

npm run ci

 Test Files  3 passed (3)
      Tests  15 passed (15)

=============================== Coverage summary ===============================
Statements   : 100% ( 112/112 )
Branches     : 95.74% ( 45/47 )
Functions    : 100% ( 30/30 )
Lines        : 100% ( 95/95 )
================================================================================

▸ budgets: Performance and size budgets
node itself starts in 25.9 ms on this machine

Budget                                   Measured      Limit
clara --version cold start               29.3 ms       100 ms  ok
Packed npm tarball                       0.01 MB       3 MB  ok

▸ package: Pack, install into an empty folder, run
clara --version -> 0.1.0
clara-pm --version -> 0.1.0
import { VERSION } from 'clara' -> 0.1.0
types -> ./dist/types/library/index.d.ts
package smoke test passed

Gate        Result          Time
lint        passed          0.1 s
typecheck   passed          0.1 s
build       passed          0.1 s
coverage    passed          0.4 s
web         not built yet
budgets     passed          1.2 s
package     passed          0.9 s
docs        not built yet
doctor      not built yet
e2e         not built yet

All gates passed.

Gates marked "not built yet" belong to later milestones. Each one switches on by itself when the script it runs exists; none of them is skipped once it does.

The command

$ node dist/cli.js --version
0.1.0
$ node dist/cli.js nope; echo "exit $?"
Unknown command "nope".
Run `clara --help` to see what is available.
exit 2

What was not verified

  • Bun: not installed on this machine. The bun job in CI is the only proof.
  • CodeQL and dependency review: skipped while the repository is private (D-027).

CI on GitHub

Two runs on 2026-11-17 (UTC).

Run 44028142982, commit ea75723: failed. Every job passed except Windows, where the package smoke test quoted the command name npm. cmd.exe resolves %~dp0 inside npm.cmd to the current directory when a bare name found on PATH is quoted, so npm looked for itself inside the repository:

$ npm pack --ignore-scripts --pack-destination C:\Users\RUNNER~1\AppData\Local\Temp\clara-pack-A4n3xf
Error: Cannot find module 'D:\a\Clara\Clara\node_modules\npm\bin\npm-prefix.js'
package     FAILED          0.2 s

Fixed in 817e8b3 (only words that need quoting are quoted).

Run 44029078639, commit 817e8b3: passed.

Plan                      success
Bun runs the CLI          success
macos-latest, Node 24     success
windows-latest, Node 24   success
ubuntu-latest, Node 22    success
ubuntu-latest, Node 24    success
ubuntu-latest, Node 26    success
CI passed                 success

The matrix is the reduced one for a private repository (D-004). CodeQL's visibility check ran and skipped the analysis, as designed (D-027). Dependabot opened a pull request raising @types/node to 26; the Node types follow the oldest supported Node on purpose, so major bumps of that package are now ignored in .github/dependabot.yml and Dependabot closed the request.

After these runs the owner asked for hosted CI to stop running on every push (D-028).