Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 2.93 KB

CONTRIBUTING.md

File metadata and controls

59 lines (47 loc) · 2.93 KB

Contributing

Thanks for helping improve Vapi GitOps. Bug reports, docs fixes and new learnings are all welcome.

Reporting a problem

  • Bugs and feature requests: open a GitHub issue. For bugs, include the command you ran, its output (with API keys removed), your Node version, and whether the org is in the US or EU region.
  • Security issues: don't open a public issue. Follow SECURITY.md.
  • Questions about the Vapi platform itself (not this repo) belong with Vapi support.

Making a change

  1. Fork the repository and create a branch.

  2. Install and check that everything passes before you start:

    nvm use
    npm ci
    npm run build   # type-checks src/ and tests/
    npm test
  3. Make your change, with tests for any behaviour change. Tests use node:test and live in tests/; they never call the real Vapi API. Start every new test file with import "./engine-sandbox.ts";, before any other import. It gives the engine a temporary directory to work in and stops the test changing files in the repository. CI on your pull request fails when a test file is missing it; npm test on your machine doesn't ask, so that a test of your own in a clone is left alone. To ask locally, run GITHUB_REPOSITORY=VapiAI/gitops npm test.

  4. Run npx biome check <changed files>, npm run build and npm test, then open a pull request. If you changed a test, or code that writes or removes files, also run npm run test:repository. It runs the suite inside copies of a repository and checks that no file in them changed. It takes a few minutes, so it is not part of npm test; CI runs it on every pull request here.

Commit messages and PR titles follow Conventional Commits (fix(pull): …, feat(check): …, docs: …).

Where things go

You're adding… Put it in
A Vapi platform gotcha, recipe or troubleshooting guide docs/learnings/<topic>.md, plus a row in docs/learnings/README.md and the table in AGENTS.md for a new file
A sync-engine pain point and its fix (pull, push, state, cleanup) improvements.md, in its Problem → Current behavior → Risk → Current mitigation → Possible fix → Status format
Setup or orientation for new users README.md (keep it short; put depth in docs/guides/)
An example users can copy examples/. Snippets in the docs that start with # examples/<path> must match the file exactly; npm test checks this.

Don't edit docs/changelog.md here. It's a template for your own deployment's change log once you fork the repo.

Coding agents (Claude Code, Codex, Cursor) all follow AGENTS.md; CLAUDE.md imports it. Update AGENTS.md when a convention changes, and keep it under 30 KB (npm test checks) so Codex reads all of it.