mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
## Summary Pure rename of CLAUDE.md files to AGENTS.md (no content changes). ## Changes | Old Path | New Path | |----------|----------| | `.github/CLAUDE.md` | `.github/AGENTS.md` | | `.storybook/CLAUDE.md` | `.storybook/AGENTS.md` | | `browser_tests/CLAUDE.md` | `browser_tests/AGENTS.md` | | `src/CLAUDE.md` | `src/AGENTS.md` | | `src/components/CLAUDE.md` | `src/components/AGENTS.md` | | `src/lib/litegraph/CLAUDE.md` | `src/lib/litegraph/AGENTS.md` | Root `CLAUDE.md` deleted (content will be merged into `AGENTS.md` in follow-up PR). ## Follow-up A second PR will add glob-based guidance files and consolidate redundancies. --------- Co-authored-by: Amp <amp@ampcode.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Christian Byrne <cbyrne@comfy.org>
27 lines
599 B
Markdown
27 lines
599 B
Markdown
# Source Code Guidelines
|
|
|
|
## Error Handling
|
|
|
|
- User-friendly and actionable messages
|
|
- Proper error propagation
|
|
|
|
## Security
|
|
|
|
- Sanitize HTML with DOMPurify
|
|
- Validate trusted sources
|
|
- Never log secrets
|
|
|
|
## State Management (Stores)
|
|
|
|
- Follow domain-driven design for organizing files/folders
|
|
- Clear public interfaces
|
|
- Restrict extension access
|
|
- Clean up subscriptions
|
|
|
|
## General Guidelines
|
|
|
|
- Use `es-toolkit` for utility functions
|
|
- Use TypeScript for type safety
|
|
- Avoid `@ts-expect-error` - fix the underlying issue
|
|
- Use `vue-i18n` for ALL user-facing strings (`src/locales/en/main.json`)
|