Skip to content
Open
Show file tree
Hide file tree
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
79 changes: 79 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# AIOX Dashboard CodeRabbit Configuration

language: "en-US"
tone_instructions: "Be professional, constructive, and focused on code quality."
early_access: false

reviews:
auto_review:
enabled: true
base_branches:
- main
drafts: false

request_changes_workflow: true
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false

path_instructions:
- path: "src/app/api/**"
instructions: |
API routes must use resolveProjectRoot() from @/lib/project-registry, never a local getProjectRoot().
Verify error handling returns proper HTTP status codes.
Check for path traversal vulnerabilities when resolving file paths.
Ensure async operations have try/catch.

- path: "src/lib/**"
instructions: |
Shared utilities are consumed by all API routes.
Verify backwards compatibility on any changes.
Check for proper input validation.
Ensure caching logic has proper TTL and invalidation.

- path: "src/components/**"
instructions: |
Components should use TypeScript interfaces for props.
Check for proper memo usage on heavy renders.
Verify accessibility attributes (aria-labels, roles).
Ensure Tailwind classes follow project conventions.

- path: "server/**"
instructions: |
Monitor server runs on Bun.
Verify WebSocket handling is robust (reconnection, cleanup).
Check SQLite queries for injection vulnerabilities.

- path: "docs/prd-*.md"
instructions: |
PRD documents must follow AIOX PRD structure.
Verify Goals section with clear objectives and Background Context.
Check Functional Requirements (FR) and Non-Functional Requirements (NFR) are numbered.
Ensure Change Log table exists with Date, Version, Description, Author.
Check for Mermaid diagrams illustrating architecture and data flows.
Verify Technical Assumptions section is present and accurate.
Ensure acceptance criteria are testable.

- path: "docs/*architecture*"
instructions: |
Architecture documents must include Mermaid diagrams for visual clarity.
Verify component relationships and data flows are documented.
Check that technology choices are justified.
Ensure diagrams match the actual codebase structure.

- path: "**/*.ts"
instructions: |
No 'any' types — use proper typing or 'unknown' with guards.
Verify async/await patterns and no unhandled rejections.
Ensure absolute imports via @/ path alias.

- path: "**/*.tsx"
instructions: |
React components must be client components ('use client') when using hooks.
Check for proper error boundaries.
Verify loading states are handled.

chat:
auto_reply: true
45 changes: 0 additions & 45 deletions .github/CODEOWNERS

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
server/node_modules/
server/bun.lock
Loading