diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..849b1f2 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,40 @@ +# AiTaskService AGENTS.md + +## What this repository is + +Shared Cloudflare Worker core package (`@codegovernancelab/ai-task-service`) providing authenticated AI task submission, provider routing, and webhook delivery, vendored by downstream consumer services. + +## Stack + +- JavaScript ES Modules (`src/`, `config/`) +- Node.js built-in test runner + Miniflare (`test/`) +- esbuild bundle pipeline (`scripts/`) + +## Layout + +- `src/` — Worker router, provider adapters, workload auth, and task store +- `config/` — Model tier policy and static configuration schemas +- `scripts/` — Build and verification scripts +- `test/` — Unit and contract tests + +## Local checks + +```bash +npm ci +npm test +``` + +## Do not + +- Do not patch vendored copies inside downstream repositories directly; land changes here first and sync downstream. +- Do not commit real API keys, webhook tokens, account IDs, or production domains. + + +- Public repository: NEVER commit real account IDs, credentials, personal info, or private deployment origins. +- Keep `wrangler.example.jsonc` strictly placeholder-only. + + +## Commits and pull requests + +- Use imperative Conventional Commits (`feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `ci`) within 72 characters. +- Run `npm test` before pushing and keep PRs focused on a single concern.