Contributing
Contributing
Section titled “Contributing”Contributions are welcome! Please follow these steps:
How to Contribute
Section titled “How to Contribute”- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
Section titled “Development Setup”git clone https://github.com/LuiggiVal08/toon-memory.gitcd toon-memorynpm installnpm run buildnpm testProject Structure
Section titled “Project Structure”toon-memory/├── src/│ ├── bin/ # Entry point (CLI + MCP router)│ ├── cli/ # CLI commands (setup, capture, session-start)│ ├── lib/ # Core libraries (graph, quality, sessions, context, vocab, lock)│ └── mcp/ # MCP server (35 tools, 4 resources)├── tests/ # Unit tests (vitest)├── docs/ # Documentation site (Astro + Starlight)├── bin/ # Build output (entry point)├── mcp/ # Build output (MCP server)└── package.jsonScripts
Section titled “Scripts”npm run build # Build allnpm run build:cli # Build CLInpm run build:mcp # Build MCP servernpm test # Run testsnpm run test:watch # Run tests in watch modeCode Style
Section titled “Code Style”- TypeScript with strict mode
- 2 spaces indentation
- camelCase for variables/functions
- PascalCase for classes
Pull Request Guidelines
Section titled “Pull Request Guidelines”- Write clear commit messages
- Add tests for new features
- Update documentation if needed
- Follow existing code style
Code of Conduct
Section titled “Code of Conduct”Please read our Code of Conduct before contributing.