23d6379be8
Groundwork for the Car Wash pilot (wiki/decisions/venue-modules.md, build-order
steps 1 + 3). No Car Wash code yet; validation is the first module behind the
seam, unchanged in behaviour.
- @parking/shared: MODULE_IDS, ModuleManifest, MODULES (parking required;
validation dependsOn parking), parseEntitledModules / resolveModuleActivation
/ effectiveModules as pure functions.
- DB: site_config.modules_json (migration 0026, hand-written + journal;
additive, nullable = everything entitled).
- Server: modules.ts (entitledModules from MODULES_ENTITLED env, activated
from site_config, effective set, requireModule preHandler → 403
module_disabled); modules/index.ts registers folder-based modules by
iterating the registry (modules/validation); site-config GET exposes
modules/modulesEntitled/modulesActivated, PUT takes the full desired set,
enforces entitlement + dependency rules (400 with reason) and signs one
config_change per module that actually flips; /api/auth/me carries the
effective set; validation routes guarded requireModule → requirePermission.
- Web: lib/modules.ts + modules/{index,validation}; router.tsx spreads
WEB_MODULES into nav + route tree (validate route no longer named there);
Setup → Site "Modules" panel (required shown disabled, dependencies as
hints, server refusal shown verbatim); validation sections + programs fetch
gated on the module; App invalidates the router whenever the session
changes (route-context consumers only re-read on navigation — the nav was
stale after a flip, and after every other setUser too).
- Lavazh validation station retired (STATIONS = ["bar"]; rows untouched).
- Deploy: MODULES_ENTITLED=parking,validation explicit in both booth stacks;
documented in .env.example.
- Tests: modules.test.ts (7); suite 329/329; web build clean; Playwright
round-trip on /setup/site verified live.
Claude-Session: https://claude.ai/code/session_01FWncR69HgGPuei1dLrW3cU
36 lines
675 B
Plaintext
36 lines
675 B
Plaintext
node_modules/
|
|
dist/
|
|
.turbo/
|
|
*.tsbuildinfo
|
|
|
|
# Local database & secrets
|
|
*.sqlite
|
|
*.sqlite-shm
|
|
*.sqlite-wal
|
|
*.db
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
# Committed (non-secret): the desktop/prod build's backend origin — see apps/web/.env.production
|
|
!.env.production
|
|
|
|
# Editor/OS
|
|
.DS_Store
|
|
*:Zone.Identifier
|
|
.playwright-mcp/
|
|
# stray hardware/UI test screenshots
|
|
/*.png
|
|
# Vendor device SDKs (reference only — protocol captured in wiki, not committed)
|
|
/dingtian/
|
|
/QRCode_sdk*/
|
|
|
|
# Graphify knowledge-graph output (dev tool; generated, not committed)
|
|
graphify-out/
|
|
parking.sqlite*.bak-*
|
|
questions.txt
|
|
|
|
# session planning files (planning-with-files skill)
|
|
task_plan.md
|
|
findings.md
|
|
progress.md
|