Thanks for contributing.
- Node.js
>=20 pnpm9.x
pnpm install
pnpm build- Create a feature branch from
main. - Make focused changes.
- Add or update tests with your change.
- Run validation locally.
- Open a pull request with a clear description.
pnpm lint
pnpm test
pnpm buildOptional:
pnpm test:log
pnpm hooks:installpnpm hooks:install configures the local pre-push hook to run pnpm test:log.
packages/core: schema, policy engine, storage, hashingpackages/agents: agent adapters and parserspackages/cli:patchworkcommand
- Keep commits scoped and atomic.
- Use descriptive commit messages.
- Avoid mixing refactors with behavior changes unless tightly related.
- Tests added/updated for behavior changes
- Docs updated for user-facing changes
- No secrets or credentials added
- CI is passing (or failures explained)
- Update version in
packages/cli/package.json(andcore/agentsif APIs changed). - Commit:
git commit -m "chore: bump version to X.Y.Z" - Tag:
git tag vX.Y.Z - Push:
git push origin main --tags - The
publish.ymlworkflow will build, test, and publishpatchwork-auditto npm.
Requires NPM_TOKEN secret configured in the repository.
- Use GitHub Issues for bugs and feature requests.
- For security issues, do not open a public issue. See
SECURITY.md.