Repository-specific operating notes for coding/documentation agents.
- Primary active code is under
src/. - Active docs are in
README.mdanddocs/*.md.
When unsure, start from:
src/App.tsx(app shell + launch pipeline)src/store/caseStore.ts(state + persistence orchestration)src/services/providers/index.ts(provider router)src/services/db/*(SQLite + repositories)
- Core entities persist via wa-sqlite + IndexedDB.
- Do not introduce new persistence pathways without documenting them in
docs/DATA_PERSISTENCE.md. - Keep provider key handling in
src/services/providers/keys.ts.
- Keep docs in sync with actual code behavior, not intended roadmap.
- Update
README.mdwhen setup/validation/status changes. - Update
docs/ARCHITECTURE.mdfor structural changes. - Update
docs/OPERATIONS_RUNBOOK.mdfor provider error/fallback changes. - Update
docs/SCOPES.mdanddocs/SOURCES.mdwhen scope presets change.
Before finishing non-trivial changes, run:
npm run lint
npm run test
npm run buildIf any command fails, report exact failing areas.
- Keep edits tightly scoped.
- Avoid destructive git operations.
- Preserve existing naming/style conventions unless refactoring intentionally.
- Favor incremental, auditable changes over broad rewrites.