Development
The root package.json requires Node.js 22 or newer. Runtime code is strict TypeScript, bundled with esbuild, and tested with colocated Vitest files.
Setup and validation
Section titled “Setup and validation”npm cinpm run format:checknpm run typechecknpm testnpm run buildnpm run test:packagenpm run test:package packs the project, installs the tarball into an isolated prefix, checks both binaries, compares help output, and validates structured failures. The read-only live provider check is separate and requires a real key:
RETELL_API_KEY=your_api_key npm run test:live:retellChange workflow
Section titled “Change workflow”- Read the command registration, implementation, callers, and colocated tests.
- Add or update the smallest test that proves the behavior.
- Keep provider-specific code below
src/providers/<provider>/. - Run the focused test, full test suite, typecheck, build, and format check.
- For package changes, run
npm run test:packageand inspectnpm pack --dry-run.
Documentation
Section titled “Documentation”The Starlight site is a separate npm project:
npm ci --prefix docsnpm run build --prefix docsContent lives below docs/src/content/docs/. Navigation lives in docs/astro.config.mjs. Verify command examples against generated --help, code references against the current tree, and internal links with the docs build.