mirror of
https://github.com/lobehub/lobe-chat.git
synced 2025-12-20 01:12:52 +08:00
* 🐛 fix(desktop): macos26 icon small
* Revert "🐛 fix(desktop): macos26 icon small"
This reverts commit 4a4b7b230c.
* ✨ feat(desktop): support Liquid Glass icons for macOS 26
- Add pre-generated Assets.car files for all build variants
- Configure afterPack hook to copy Assets.car during build
- Maintain backward compatibility with .icns fallback for older macOS
Reference: https://github.com/electron-userland/electron-builder/issues/9254
* docs: optimize comments
* fix: update deprecated macos-13 to macos-15-intel
* docs: optimize ai rules
1.7 KiB
1.7 KiB
CLAUDE.md
This document serves as a shared guideline for all team members when using Claude Code in this repository.
Tech Stack
read @.cursor/rules/project-introduce.mdc
Directory Structure
read @.cursor/rules/project-structure.mdc
Development
Git Workflow
- use rebase for git pull
- git commit message should prefix with gitmoji
- git branch name format example: tj/feat/feature-name
- use .github/PULL_REQUEST_TEMPLATE.md to generate pull request description
Package Management
This repository adopts a monorepo structure.
- Use
pnpmas the primary package manager for dependency management - Use
bunto run npm scripts - Use
bunxto run executable npm packages
TypeScript Code Style Guide
see @.cursor/rules/typescript.mdc
Testing
- Required Rule: read
@.cursor/rules/testing-guide/testing-guide.mdcbefore writing tests - Command:
- web:
bunx vitest run --silent='passed-only' '[file-path-pattern]' - packages(eg: database):
cd packages/database && bunx vitest run --silent='passed-only' '[file-path-pattern]'
- web:
Important:
- wrap the file path in single quotes to avoid shell expansion
- Never run
bun run testetc to run tests, this will run all tests and cost about 10mins - If trying to fix the same test twice, but still failed, stop and ask for help.
Typecheck
- use
bun run type-checkto check type errors.
i18n
- Keys: Add to
src/locales/default/namespace.ts - Dev: Translate
locales/zh-CN/namespace.jsonandlocales/en-US/namespace.jsonlocales file only for dev preview - DON'T run
pnpm i18n, let CI auto handle it
Rules Index
Some useful project rules are listed in @.cursor/rules/rules-index.mdc