Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.89 KB

File metadata and controls

25 lines (17 loc) · 1.89 KB

AGENTS GUIDE

Welcome! This file keeps lightweight coordination notes for anyone (human or AI) hacking on connect-mongo.

Current Focus

  1. Follow docs/PLANS.md for the prioritized maintenance backlog.
  2. When picking up a task, append a short status note under the relevant section in docs/PLANS.md (e.g. - [started YYYY-MM-DD] <task>), then remove or update it when you finish.
  3. Build pipeline now uses tsdown for dual ESM/CJS bundles into dist/ plus tsc for typed transpilation (npm run build and npm run typecheck). Local sanity checks confirm npm run build, npm run test:lint, and npm run test:prettier pass (lint only warns on crypto key_size/iv_size/at_size camelCase). Full npm test still needs a running MongoDB (e.g., docker compose up) until tests migrate to mongodb-memory-server.

Workflow Expectations

  • Run npm ci && npm run build && npm test locally before opening or updating a PR unless the change is docs-only.
  • Record any assumptions, surprises, or TODOs at the bottom of the touched file(s) in // TODO(agent): ... comments or in docs/PLANS.md.
  • When working on a task, always follow PLAN, EDIT and REVIEW steps.
  • When working on a task, always check if CHANGELOG.md or README.md need updates. If encounter breaking changes, add a note to CHANGELOG.md and also create separate migration docs if needed.
  • Use git commit --amend to tidy up your commits before pushing, and prefer small, focused PRs that address a single task.
  • Use context7 or web search to find relevant code snippets, tests, or docs that relate to the task at hand.

Communication

  • Prefer concise commit messages referencing the plan item, e.g. fix: stabilize clear() semantics (plan#2).
  • For complex changes, request a human review to ensure the change aligns with project goals and also ask for clarification on any ambiguous points in the plan.

Thanks for helping keep the project healthy!