Contributing
Contract generation workflow, testing requirements, and security guidelines for contributors.
Contributions via issues and pull requests are welcome at PlateRelay/PlateRelay.
Contract-First Workflow
Section titled “Contract-First Workflow”Whenever you modify REST endpoints, permissions, or daemon protocol messages:
- Update the source schemas under
packages/shared/schema/. - Regenerate derived TypeScript and Python code and run contract checks:
pnpm --filter @platerelay/shared check:contractpnpm --filter @platerelay/shared generatedaemon/scripts/generate_protocol.shCI verifies that generated artifacts match packages/shared/schema/ with no uncommitted drift.
Required Checks Before Opening a PR
Section titled “Required Checks Before Opening a PR”Ensure both TypeScript and Python test suites pass:
pnpm testuv run --project daemon pytest daemon/tests -qSecurity & Hardware Rules
Section titled “Security & Hardware Rules”- Never commit real printer access codes, private keys, tokens, or credentials in code, configuration files, logs, or tests.
- Never issue mutating or print-starting commands against physical printers during automated tests.
- Report security vulnerabilities privately via GitHub Security Advisories instead of opening public issues.
License
Section titled “License”PlateRelay is distributed under GPL-3.0-only. Third-party vendored components (such as pybambu under MIT) retain their original license notices.