From 14aeeafe83f84d9839921c7f01b47a998a7c2030 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 10 Mar 2026 22:56:39 -0700 Subject: [PATCH] chore(docs): regenerate AI agent config files --- .aider.conf.yml | 15 +++++++++++++ .clinerules | 22 +++++++++++++++++++ .cursorrules | 30 ++++++++++++++++++++++++++ .editorconfig | 12 +++++++++++ .github/copilot-instructions.md | 38 +++++++++++++++++++++++++++++++++ .windsurfrules | 23 ++++++++++++++++++++ CLAUDE.md | 31 +++++++++++++++++++++++++++ 7 files changed, 171 insertions(+) create mode 100644 .aider.conf.yml create mode 100644 .clinerules create mode 100644 .cursorrules create mode 100644 .editorconfig create mode 100644 .github/copilot-instructions.md create mode 100644 .windsurfrules create mode 100644 CLAUDE.md diff --git a/.aider.conf.yml b/.aider.conf.yml new file mode 100644 index 0000000..3762bb5 --- /dev/null +++ b/.aider.conf.yml @@ -0,0 +1,15 @@ +# .aider.conf.yml — Aider Configuration for ByteLyst Agentic Notes +# Helps Aider understand the project structure and conventions. + +read: + - AGENTS.md + - docs/ROADMAP.md + +conventions: AGENTS.md + +lint-cmd: + - 'cd backend && npm test 2>&1 | tail -10' + - 'cd backend && npm run typecheck 2>&1 | tail -10' + - 'cd backend && npm run build 2>&1 | tail -10' + +auto-commits: false diff --git a/.clinerules b/.clinerules new file mode 100644 index 0000000..4cf781a --- /dev/null +++ b/.clinerules @@ -0,0 +1,22 @@ +# .clinerules — Cline / Roo Code Rules for ByteLyst Agentic Notes +# Read AGENTS.md for the complete onboarding guide. + +## Project: ByteLyst Agentic Notes — Agentic note-taking workspace for notes, tasks, relationships, and workspaces +Architecture: Docs + Fastify 5 backend scaffold with TypeScript ESM and @bytelyst/* shared packages + +## Mandatory Rules +- Backend follows the ByteLyst product-backend pattern with Fastify 5 + TypeScript ESM +- Use @bytelyst/* shared packages instead of reimplementing common infrastructure +- Fastify modules follow types.ts → repository.ts → routes.ts +- Use req.log / app.log — never console.log +- Every Cosmos document MUST include productId: "bytelyst-notes" +- Keep docs aligned with implementation as the repo evolves from scaffold to product +- Commits: `type(scope): description` +- After changes, verify: `cd backend && npm test && npm run typecheck && npm run build` + +## Key File Locations +- docs/ — PRD, roadmap, and planning docs +- backend/ — Fastify 5 + TypeScript ESM backend scaffold (port 4016) +- backend/src/modules/ — notes, workspaces, note-relationships, note-tasks +- backend/src/lib/ — shared backend wiring and utilities +- Full guide: `AGENTS.md` diff --git a/.cursorrules b/.cursorrules new file mode 100644 index 0000000..ae426ad --- /dev/null +++ b/.cursorrules @@ -0,0 +1,30 @@ +# ByteLyst Agentic Notes — Cursor Rules +# Read AGENTS.md for full context. + +Project: ByteLyst Agentic Notes — Agentic note-taking workspace for notes, tasks, relationships, and workspaces +Product ID: bytelyst-notes +Stack: Docs + Fastify 5 backend scaffold with TypeScript ESM and @bytelyst/* shared packages + +## Architecture +- docs/ — PRD, roadmap, and planning docs +- backend/ — Fastify 5 + TypeScript ESM backend scaffold (port 4016) +- backend/src/modules/ — notes, workspaces, note-relationships, note-tasks +- backend/src/lib/ — shared backend wiring and utilities + +## Rules +- Backend follows the ByteLyst product-backend pattern with Fastify 5 + TypeScript ESM +- Use @bytelyst/* shared packages instead of reimplementing common infrastructure +- Fastify modules follow types.ts → repository.ts → routes.ts +- Use req.log / app.log — never console.log +- Every Cosmos document MUST include productId: "bytelyst-notes" +- Keep docs aligned with implementation as the repo evolves from scaffold to product +- 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 backend && npm test && npm run typecheck && npm run build + +## Key Documents +- AGENTS.md — Full AI agent instructions (read this first) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a7ea30 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..2002eac --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,38 @@ +# GitHub Copilot Instructions — ByteLyst Agentic Notes + +> For full agent instructions, read [`AGENTS.md`](../AGENTS.md) at the repo root. + +## Project Context + +**ByteLyst Agentic Notes** — Agentic note-taking workspace for notes, tasks, relationships, and workspaces. +Stack: Docs + Fastify 5 backend scaffold with TypeScript ESM and @bytelyst/* shared packages + +## Code Generation Rules + +### Always +- Backend follows the ByteLyst product-backend pattern with Fastify 5 + TypeScript ESM +- Use @bytelyst/* shared packages instead of reimplementing common infrastructure +- Fastify modules follow types.ts → repository.ts → routes.ts +- Use req.log / app.log — never console.log +- Every Cosmos document MUST include productId: "bytelyst-notes" +- Keep docs aligned with implementation as the repo evolves from scaffold to product +- Include `productId: "bytelyst-notes"` 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 +- docs/ — PRD, roadmap, and planning docs +- backend/ — Fastify 5 + TypeScript ESM backend scaffold (port 4016) +- backend/src/modules/ — notes, workspaces, note-relationships, note-tasks +- backend/src/lib/ — shared backend wiring and utilities + +## Build Verification +```bash +cd backend && npm test && npm run typecheck && npm run build +``` diff --git a/.windsurfrules b/.windsurfrules new file mode 100644 index 0000000..4fe5560 --- /dev/null +++ b/.windsurfrules @@ -0,0 +1,23 @@ +# ByteLyst Agentic Notes — Windsurf / Codeium Rules +# Read AGENTS.md for full context. These are the critical rules. + +Project: ByteLyst Agentic Notes — Agentic note-taking workspace for notes, tasks, relationships, and workspaces +Stack: Docs + Fastify 5 backend scaffold with TypeScript ESM and @bytelyst/* shared packages + +## Architecture Rules +- docs/ — PRD, roadmap, and planning docs +- backend/ — Fastify 5 + TypeScript ESM backend scaffold (port 4016) +- backend/src/modules/ — notes, workspaces, note-relationships, note-tasks +- backend/src/lib/ — shared backend wiring and utilities + +## Conventions +- Backend follows the ByteLyst product-backend pattern with Fastify 5 + TypeScript ESM +- Use @bytelyst/* shared packages instead of reimplementing common infrastructure +- Fastify modules follow types.ts → repository.ts → routes.ts +- Use req.log / app.log — never console.log +- Every Cosmos document MUST include productId: "bytelyst-notes" +- Keep docs aligned with implementation as the repo evolves from scaffold to product +- Commits: feat(scope): description / fix(scope): description + +## Build Verification +- cd backend && npm test && npm run typecheck && npm run build diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..18be9e5 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,31 @@ +# ByteLyst Agentic Notes — Claude Code Instructions + +> This file is read automatically by Claude Code. For full agent instructions +> shared across all AI tools, see [`AGENTS.md`](AGENTS.md). + +## Quick Context + +**Product:** ByteLyst Agentic Notes — Agentic note-taking workspace for notes, tasks, relationships, and workspaces +**Product ID:** `bytelyst-notes` +**Stack:** Docs + Fastify 5 backend scaffold with TypeScript ESM and @bytelyst/* shared packages + +## Rules + +1. **Read `AGENTS.md` first** — it has coding conventions, file ownership, and tech stack rules. +2. **Every Cosmos document** must have a `productId: "bytelyst-notes"` field. +3. **Commit messages:** `type(scope): description` (feat, fix, docs, refactor, test, chore). +4. **Fix source, not tests** — unless the test itself is wrong. +5. **Never use** `console.log`, `print()`, or hardcoded colors/secrets/URLs. + +## Architecture + +- docs/ — PRD, roadmap, and planning docs +- backend/ — Fastify 5 + TypeScript ESM backend scaffold (port 4016) +- backend/src/modules/ — notes, workspaces, note-relationships, note-tasks +- backend/src/lib/ — shared backend wiring and utilities + +## Build Verification + +```bash +cd backend && npm test && npm run typecheck && npm run build +```