caliber-conventions · git:20260329.8cf93fd · 2026-03-29 · sha256 def87f81dc580c0a

caliber-conventions git:20260329.8cf93fdA

Immutable. This exact content never changes and is served at /api/v1/blob/def87f81dc580c0a.

---
description: Caliber project conventions for TypeScript CLI development
alwaysApply: true
---

- ESM imports with `.js` extensions (even for `.ts` sources)
- `unknown` over `any` — ESLint warns on explicit any
- Tests in `__tests__/` dirs next to source, global setup in `src/test/setup.ts`
- Conventional commits: `feat:`, `fix:`, `refactor:`, `chore:`
- No hardcoded file→language mappings — detection is LLM-driven via `src/ai/detect.ts`
- `collectFingerprint()` in `src/fingerprint/index.ts` is async with internal LLM enrichment
- Constants in `src/constants.ts` and `src/scoring/constants.ts`
- `resolveCaliber()` from `src/lib/resolve-caliber.ts` for CLI binary path resolution
- Dev branch: `next` · Stable: `master` · Node >= 20