See CLAUDE.md § Folder Structure and architecture.md § Component Breakdown.
- TypeScript strict mode (
strict: truein tsconfig.json) - ESM modules (
"type": "module"in package.json) - TUI via
@mariozechner/pi-tui(replaced Ink) - Commander.js with
@commander-js/extra-typingsfor type-safe CLI - Prefer clear module boundaries: CLI wiring in
commands/, API calls inapi/, config inconfig/
For detailed conventions: See docs/project/tech_stack.md and docs/principles.md
- Framework: Vitest
- Naming:
tests/unit/*.test.ts,tests/e2e/**/*.test.ts - Tests should avoid real network calls; prefer mocks/fixtures
For detailed testing strategy: See docs/reference/guides/testing-strategy.md
- Git history uses short, direct messages like "Added ...", "Updated ...", "Fixed ...". Keep commits scoped and readable.
- PRs: describe behavior change, link issue/story if available, include CLI output snippet for UX changes, and ensure
npm run typecheckandnpm testpass.
- Never commit secrets. Auth tokens stored in
~/.prompsit/credentials.json; runtime config at~/.prompsit/config.toml. - Environment variables use
PROMPSIT_with__nesting (e.g.,PROMPSIT_API__BASE_URL).
For detailed security guidelines: See docs/principles.md