mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-15 12:53:31 +08:00
Route required checks by changed surface, add offline provider and chat contracts, and keep fork PRs independent of live credentials. Layer agent guidance by subtree and enforce a compact instruction budget. Tested: bun run check:policy Confidence: high Scope-risk: broad
772 B
772 B
Adapter Instructions
These rules apply to adapters/ changes in addition to the root instructions.
- Reuse shared adapter utilities and keep platform-specific behavior within the relevant Telegram, Feishu, WeChat, or DingTalk package.
- Install adapter dependencies in
adapters/on a fresh checkout; do not change root dependencies for an adapter-only task without a verified need. - Add focused tests for the affected adapter, then follow
bun run check:impact; adapter changes normally selectbun run check:adapters. - Required tests must not call real messaging platforms or use saved accounts/tokens. Use fixtures, mocked transports, and temporary session/config paths.
- Do not read or mutate the user's real adapter bindings or session files during tests.