chore(docs): regenerate AI agent config files
This commit is contained in:
parent
909daf8853
commit
f9439f4519
14
.aider.conf.yml
Normal file
14
.aider.conf.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# .aider.conf.yml — Aider Configuration for ChronoMind
|
||||||
|
# Helps Aider understand the project structure and conventions.
|
||||||
|
|
||||||
|
read:
|
||||||
|
- AGENTS.md
|
||||||
|
- docs/PRD.md
|
||||||
|
|
||||||
|
conventions: AGENTS.md
|
||||||
|
|
||||||
|
lint-cmd:
|
||||||
|
- 'cd web && npm test 2>&1 | tail -10'
|
||||||
|
- 'cd web && npm run typecheck 2>&1 | tail -10'
|
||||||
|
|
||||||
|
auto-commits: false
|
||||||
24
.clinerules
Normal file
24
.clinerules
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# .clinerules — Cline / Roo Code Rules for ChronoMind
|
||||||
|
# Read AGENTS.md for the complete onboarding guide.
|
||||||
|
|
||||||
|
## Project: ChronoMind — AI-Powered Contextual Clock & Timer
|
||||||
|
Architecture: Next.js 16 (web) + SwiftUI (iOS/Watch/Mac) + Jetpack Compose (Android) + Fastify 5 (backend)
|
||||||
|
|
||||||
|
## Mandatory Rules
|
||||||
|
- Web engine logic in web/src/lib/ — pure TS, no React imports
|
||||||
|
- Components in web/src/components/ — React UI only
|
||||||
|
- iOS shared logic in ios/ChronoMind/Shared/ — consumed by all Apple targets
|
||||||
|
- Android engine in android/.../engine/ — pure Kotlin, no Android framework deps
|
||||||
|
- Web build: must use --webpack flag (Serwist incompatible with Turbopack)
|
||||||
|
- Every Cosmos doc: productId: "chronomind"
|
||||||
|
- Theme: --cm-* CSS custom properties (web), ChronoMindTheme (native)
|
||||||
|
- Commits: `type(scope): description`
|
||||||
|
- After changes, verify: `cd web && npm test && npm run typecheck && npm run build`
|
||||||
|
|
||||||
|
## Key File Locations
|
||||||
|
- web/src/lib/ — Pure TS engine modules (timer, cascade, urgency, nl-parser, etc.)
|
||||||
|
- web/src/components/ — React UI components
|
||||||
|
- ios/ChronoMind/Shared/ — Shared Swift code (iOS + Watch + Mac + Widgets)
|
||||||
|
- android/app/.../engine/ — Pure Kotlin engine
|
||||||
|
- backend/ — Fastify 5 + TypeScript backend (port 4011)
|
||||||
|
- Full guide: `AGENTS.md`
|
||||||
33
.cursorrules
33
.cursorrules
@ -3,15 +3,30 @@
|
|||||||
|
|
||||||
Project: ChronoMind — AI-Powered Contextual Clock & Timer
|
Project: ChronoMind — AI-Powered Contextual Clock & Timer
|
||||||
Product ID: chronomind
|
Product ID: chronomind
|
||||||
Stack: Next.js 16 (web) + SwiftUI (iOS) + Jetpack Compose (Android) + Fastify 5 (backend)
|
Stack: Next.js 16 (web) + SwiftUI (iOS/Watch/Mac) + Jetpack Compose (Android) + Fastify 5 (backend)
|
||||||
|
|
||||||
Rules:
|
## Architecture
|
||||||
- Web engine in web/src/lib/ — pure TS, no React
|
- web/src/lib/ — Pure TS engine modules (timer, cascade, urgency, nl-parser, etc.)
|
||||||
|
- web/src/components/ — React UI components
|
||||||
|
- ios/ChronoMind/Shared/ — Shared Swift code (iOS + Watch + Mac + Widgets)
|
||||||
|
- android/app/.../engine/ — Pure Kotlin engine
|
||||||
|
- backend/ — Fastify 5 + TypeScript backend (port 4011)
|
||||||
|
|
||||||
|
## Rules
|
||||||
|
- Web engine logic in web/src/lib/ — pure TS, no React imports
|
||||||
- Components in web/src/components/ — React UI only
|
- Components in web/src/components/ — React UI only
|
||||||
- iOS shared in ios/ChronoMind/Shared/
|
- iOS shared logic in ios/ChronoMind/Shared/ — consumed by all Apple targets
|
||||||
- Android engine in android/.../engine/ — pure Kotlin
|
- Android engine in android/.../engine/ — pure Kotlin, no Android framework deps
|
||||||
- Theme: --cm-* CSS props (web), ChronoMindTheme (native)
|
- Web build: must use --webpack flag (Serwist incompatible with Turbopack)
|
||||||
- Commits: type(scope): description
|
|
||||||
- Build web with --webpack flag
|
|
||||||
- Never console.log, never hardcode colors/URLs
|
|
||||||
- Every Cosmos doc: productId: "chronomind"
|
- Every Cosmos doc: productId: "chronomind"
|
||||||
|
- Theme: --cm-* CSS custom properties (web), ChronoMindTheme (native)
|
||||||
|
- Commits: feat(scope): description / fix(scope): description
|
||||||
|
- Never delete existing comments/documentation unless asked
|
||||||
|
- Never add emojis unless asked
|
||||||
|
- Never hardcode secrets, colors, or API URLs
|
||||||
|
|
||||||
|
## Build Verification
|
||||||
|
- cd web && npm test && npm run typecheck && npm run build
|
||||||
|
|
||||||
|
## Key Documents
|
||||||
|
- AGENTS.md — Full AI agent instructions (read this first)
|
||||||
|
|||||||
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
40
.github/copilot-instructions.md
vendored
Normal file
40
.github/copilot-instructions.md
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# GitHub Copilot Instructions — ChronoMind
|
||||||
|
|
||||||
|
> For full agent instructions, read [`AGENTS.md`](../AGENTS.md) at the repo root.
|
||||||
|
|
||||||
|
## Project Context
|
||||||
|
|
||||||
|
**ChronoMind** — AI-Powered Contextual Clock & Timer.
|
||||||
|
Stack: Next.js 16 (web) + SwiftUI (iOS/Watch/Mac) + Jetpack Compose (Android) + Fastify 5 (backend)
|
||||||
|
|
||||||
|
## Code Generation Rules
|
||||||
|
|
||||||
|
### Always
|
||||||
|
- Web engine logic in web/src/lib/ — pure TS, no React imports
|
||||||
|
- Components in web/src/components/ — React UI only
|
||||||
|
- iOS shared logic in ios/ChronoMind/Shared/ — consumed by all Apple targets
|
||||||
|
- Android engine in android/.../engine/ — pure Kotlin, no Android framework deps
|
||||||
|
- Web build: must use --webpack flag (Serwist incompatible with Turbopack)
|
||||||
|
- Every Cosmos doc: productId: "chronomind"
|
||||||
|
- Theme: --cm-* CSS custom properties (web), ChronoMindTheme (native)
|
||||||
|
- Include `productId: "chronomind"` in every Cosmos DB document
|
||||||
|
- Use `type(scope): description` commit message format
|
||||||
|
- Fix source code, not tests (unless the test itself is wrong)
|
||||||
|
|
||||||
|
### Never
|
||||||
|
- `console.log` or `print()` in production code
|
||||||
|
- Hardcoded secrets, API keys, colors, or URLs
|
||||||
|
- Delete existing comments or documentation unless explicitly asked
|
||||||
|
- Add emojis unless asked
|
||||||
|
|
||||||
|
## Key Paths
|
||||||
|
- web/src/lib/ — Pure TS engine modules (timer, cascade, urgency, nl-parser, etc.)
|
||||||
|
- web/src/components/ — React UI components
|
||||||
|
- ios/ChronoMind/Shared/ — Shared Swift code (iOS + Watch + Mac + Widgets)
|
||||||
|
- android/app/.../engine/ — Pure Kotlin engine
|
||||||
|
- backend/ — Fastify 5 + TypeScript backend (port 4011)
|
||||||
|
|
||||||
|
## Build Verification
|
||||||
|
```bash
|
||||||
|
cd web && npm test && npm run typecheck && npm run build
|
||||||
|
```
|
||||||
@ -2,36 +2,24 @@
|
|||||||
# Read AGENTS.md for full context. These are the critical rules.
|
# Read AGENTS.md for full context. These are the critical rules.
|
||||||
|
|
||||||
Project: ChronoMind — AI-Powered Contextual Clock & Timer
|
Project: ChronoMind — AI-Powered Contextual Clock & Timer
|
||||||
Stack: Next.js 16 (web) + SwiftUI (iOS/Watch/Mac) + Jetpack Compose (Android) + Platform-service (Fastify 5)
|
Stack: Next.js 16 (web) + SwiftUI (iOS/Watch/Mac) + Jetpack Compose (Android) + Fastify 5 (backend)
|
||||||
|
|
||||||
## Architecture Rules
|
## Architecture Rules
|
||||||
|
- web/src/lib/ — Pure TS engine modules (timer, cascade, urgency, nl-parser, etc.)
|
||||||
|
- web/src/components/ — React UI components
|
||||||
|
- ios/ChronoMind/Shared/ — Shared Swift code (iOS + Watch + Mac + Widgets)
|
||||||
|
- android/app/.../engine/ — Pure Kotlin engine
|
||||||
|
- backend/ — Fastify 5 + TypeScript backend (port 4011)
|
||||||
|
|
||||||
|
## Conventions
|
||||||
- Web engine logic in web/src/lib/ — pure TS, no React imports
|
- Web engine logic in web/src/lib/ — pure TS, no React imports
|
||||||
- Components in web/src/components/ — React UI only
|
- Components in web/src/components/ — React UI only
|
||||||
- iOS shared logic in ios/ChronoMind/Shared/ — consumed by all Apple targets
|
- iOS shared logic in ios/ChronoMind/Shared/ — consumed by all Apple targets
|
||||||
- Android engine in android/app/.../engine/ — pure Kotlin, no Android framework deps
|
- Android engine in android/.../engine/ — pure Kotlin, no Android framework deps
|
||||||
- Backend: platform-service in sibling repo learning_ai_common_plat (port 4003)
|
|
||||||
- Product ID: chronomind — every Cosmos document MUST include productId field
|
|
||||||
|
|
||||||
## Key Paths
|
|
||||||
- Web: web/src/ (Next.js 16, App Router)
|
|
||||||
- iOS: ios/ChronoMind/ (SwiftUI, iOS 17+)
|
|
||||||
- Watch: ios/ChronoMindWatch/ (watchOS 10+)
|
|
||||||
- Mac: ios/ChronoMindMac/ (macOS 14+)
|
|
||||||
- Widgets: ios/ChronoMindWidgets/ (WidgetKit)
|
|
||||||
- Android: android/app/src/main/java/com/chronomind/app/
|
|
||||||
- Wear OS: android/wear/
|
|
||||||
- Docs: docs/ (PRD.md, roadmap.md, INDUSTRY_RESEARCH.md)
|
|
||||||
- Backend modules: ../learning_ai_common_plat/services/platform-service/src/modules/{timers,routines,households,shared-timers}/
|
|
||||||
|
|
||||||
## Conventions
|
|
||||||
- Theme tokens: --cm-* CSS custom properties (web), ChronoMindTheme (native)
|
|
||||||
- Commits: feat(scope): description / fix(scope): description
|
|
||||||
- Web build: must use --webpack flag (Serwist incompatible with Turbopack)
|
- Web build: must use --webpack flag (Serwist incompatible with Turbopack)
|
||||||
- Never use console.log — use analytics.ts stub or req.log in Fastify
|
- Every Cosmos doc: productId: "chronomind"
|
||||||
- Never hardcode colors — use theme tokens
|
- Theme: --cm-* CSS custom properties (web), ChronoMindTheme (native)
|
||||||
- Never hardcode API URLs — use env vars
|
- Commits: feat(scope): description / fix(scope): description
|
||||||
|
|
||||||
## Build Verification
|
## Build Verification
|
||||||
- Web: cd web && npm test && npm run typecheck && npm run build
|
- cd web && npm test && npm run typecheck && npm run build
|
||||||
- iOS: Open ChronoMind.xcodeproj, Cmd+B
|
|
||||||
- Android: cd android && ./gradlew :app:compileDebugKotlin
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user