Initial import

This commit is contained in:
sirily
2026-03-10 14:03:52 +03:00
commit 6c0ca4e28b
102 changed files with 6598 additions and 0 deletions

17
packages/domain/AGENTS.md Normal file
View File

@@ -0,0 +1,17 @@
# AGENTS.md
## Scope
Applies within `packages/domain`.
## Responsibilities
- subscription lifecycle
- billing cycle rules
- quota ledger rules
- generation orchestration
- provider-key state transitions
- admin and pairing policies
## Rules
- This package owns the business meaning of key states and retry decisions.
- Do not hide exact quota from admins, but never expose exact quota to normal users.
- A successful user request may have multiple provider attempts but may consume quota only once.