No description
- TypeScript 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| test | ||
| .gitignore | ||
| AGENTS.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
acdc-demo
A deliberately small TypeScript codebase that AI agents work on as part of acdc-lite, a self-hosted agent-centric development cycle: issue → agent → pull request → review → measurement.
The code itself is a tiny cart and pricing library (integer cents, per-line VAT, discounts). It is small on purpose so that CI runs fast on a NAS and agent changes are easy to review.
Layout
| Path | Purpose |
|---|---|
src/money.ts |
Cent arithmetic and EUR formatting |
src/cart.ts |
Cart totals with discounts and per-line VAT |
src/auth/ |
Protected: token checks, human changes only |
AGENTS.md |
What agents may and may not change |
Development
npm ci
npm run check # typecheck + tests
Requires Node.js 22.6 or newer (tests run TypeScript directly via type stripping).