No description
  • TypeScript 100%
Find a file
Philipp Moritz 94192fc3ef
All checks were successful
ci / check (push) Successful in 55s
Merge branch 'main' of https://git.philmori.com/philmori/acdc-demo
2026-11-20 21:42:40 +01:00
.forgejo/workflows Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
src Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
test Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
.gitignore Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
AGENTS.md Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
package-lock.json Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
package.json Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
README.md Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00
tsconfig.json Scaffold demo codebase: cart/pricing library, tests, CI, agent rules 2026-11-20 21:39:26 +01:00

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).