Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -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.

<!-- content-boundary:begin -->
- Public repository: NEVER commit real account IDs, credentials, personal info, or private deployment origins.
- Keep `wrangler.example.jsonc` strictly placeholder-only.
<!-- content-boundary:end -->

## 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.
Loading