- Prerequisites: Bun ≥1.0, Node.js 18+, Git
- Clone:
git clone <repo>thencd cass_memory_system - Install deps:
bun install - Dev entrypoints:
- One-off:
bun run dev -- <command> [args] - Hot reload while editing:
bun run dev:watch -- <command> [args] - Keep type safety running:
bun run typecheck:watch
- One-off:
- Unit tests:
bun test - Watch mode:
bun run test:watch - Integration tests:
bun test --filter integration(when added) - Coverage:
bun test --coverage - Typecheck:
bun run typecheck
- TypeScript strict mode is enabled; no implicit any.
- Use existing formatting (Prettier-equivalent); keep imports ESM with
.jssuffix for local modules. - Avoid console.log in production code; use shared logger helpers when available.
- Branch from
main; use feature branches. - Add/adjust tests for new behavior.
- Ensure
bun run typecheckandbun testpass. - Update docs (README/AGENTS.md/CONTRIBUTING.md) when behavior or commands change.
- PR description: what changed, why, testing done.
- Bug reports: steps to reproduce, expected/actual, logs, versions.
- Feature requests: use-case, proposed shape, acceptance criteria.
- Docs: what’s unclear or missing; suggested wording if possible.
- Three-layer ACE pipeline: Generator (context) → Reflector (deltas) → Curator (deterministic merge).
- Storage: playbook YAML in
~/.cass-memory/and.cass/(repo-level); diaries in~/.cass-memory/diary. - CLI:
cm(cass-memory) commands undersrc/commands. - Keep schemas single-sourced in
src/types.ts; other modules must import from there to avoid drift.