Initial commit: Claude Session Manager with complete CLI toolset
- Add TypeScript project structure with Bun runtime - Implement CLI commands for session, project, stats, and optimization - Add SQLite database integration with prepared statements - Include AGENTS.md for development guidelines - Add Makefile for common development tasks - Configure ESLint and TypeScript with strict mode
This commit is contained in:
23
AGENTS.md
Normal file
23
AGENTS.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Agent Guidelines
|
||||
|
||||
## Build Commands
|
||||
- `bun run build` - Build the project (runs typecheck first)
|
||||
- `bun run dev` - Development mode with hot reload
|
||||
- `bun run test` - Run all tests
|
||||
- `bun run lint` - Run ESLint on TypeScript files
|
||||
- `bun run typecheck` - Run TypeScript type checking without emitting
|
||||
|
||||
## Code Style Guidelines
|
||||
- Use TypeScript with strict mode enabled (noImplicitAny: false, strictNullChecks: false)
|
||||
- Import style: ES6 imports with `import { X } from './path'` for named exports
|
||||
- Use `@/*` path alias for src directory imports
|
||||
- Naming: camelCase for variables/functions, PascalCase for classes/interfaces
|
||||
- File structure: Organize by domain (cli/, database/, models/, services/, templates/)
|
||||
- Error handling: Use try/catch blocks, log errors with logger utility
|
||||
- Database: Use SQLite with prepared statements, map rows to interfaces
|
||||
- CLI: Use Commander.js for command structure, chalk for colored output
|
||||
- Date handling: Use moment.js for date formatting/manipulation
|
||||
- UUID generation: Use uuid v4 for IDs
|
||||
- No explicit return types required (inferred)
|
||||
- Prefer const over let, avoid var
|
||||
- Use Bun runtime features where appropriate
|
||||
Reference in New Issue
Block a user