pnpm dev: Run development build with watch mode and start all examples/servers- Chat UI: http://localhost:5002
- Inspector: http://localhost:5001
- Hono MCP Server: http://localhost:5101
- CF Agents MCP Server: http://localhost:5102
pnpm build: Build the projectpnpm check: Run prettier checks and TypeScript type checking
cd test && pnpm test: Run integration tests headlessly (default)cd test && pnpm test:headed: Run integration tests with visible browsercd test && pnpm test:headless: Run integration tests headlesslycd test && pnpm test:watch: Run integration tests in watch modecd test && pnpm test:ui: Run integration tests with interactive UI
- Use explicit .js extensions in imports (ES modules style)
- Group imports: SDK imports first, followed by React/external deps, then local imports
- Single quotes for strings
- No semicolons at line ends
- 140 character line width
- Use 2 space indentation
- Strong typing with TypeScript
- Descriptive interface names with camelCase for variables/functions and PascalCase for types
- Comprehensive JSDoc comments for public API functions and types
- Use assertions with descriptive messages
- Log errors with appropriate levels (debug, info, warn, error)
- Defensive error handling with specific error types when available
- Commit changes frequently after each logical change or debugging step
- Use descriptive commit messages that explain what was changed and why
- Use React hooks with useRef for mutable values
- Stable callbacks with useCallback and appropriate dependencies