cc-haha/.gitignore
派大星 2eaae94d40 feat(desktop): i18n slash command descriptions in chat composer
The slash command menu in ChatInput and EmptySession was hard-coded to
English descriptions, so users running the desktop with locale=zh saw
English copy for the built-in commands the desktop owns (/clear,
/compact, /help, /mcp, /skills, /memory, /plugin, /doctor, ...).

This change:
- Adds slashCmd.<name>.description i18n keys for all 24 built-in slash
  commands in en and zh locales.
- Introduces getLocalizedFallbackCommands(t) so React renders use the
  active locale; the existing FALLBACK_SLASH_COMMANDS constant is kept
  for non-React callers.
- Updates mergeSlashCommands so the localized fallback wins for
  built-in command names while server/team-provided commands (e.g.
  team:lark) still keep their own descriptions.
- Updates composerUtils.test.ts to reflect the new precedence and adds
  a test that built-in commands prefer the localized description even
  when the CLI broadcasts an English one.
- Adds CLAUDE.md and graphify-out/ to .gitignore (local AI assistant
  artifacts that should not be committed).

Verification:
  bun run check:desktop  -> passed (lint + vitest + build, 32.9s)
  changed-line coverage  -> 100% (120/120)

Known environment-only blockers in this clone (unrelated to this diff):
  bun run check:native   -> rustc not installed in this WSL
  bun run check:coverage -> 3 server-area suites hit
                            'error: An internal error occurred (WriteFailed)'
                            while writing very long stdout under WSL.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:08:33 +08:00

81 lines
1.3 KiB
Plaintext

.env
.env.*
!.env.example
node_modules
openspec
.DS_Store
# Computer Use runtime (auto-generated)
.runtime/
extracted-natives/
# Adapter attachment cache (created at runtime by AttachmentStore when
# running adapter tests or the feishu/telegram adapters locally)
.lark-attachments/
.tg-attachments/
# Playwright MCP snapshots & logs
.playwright-mcp/
# OMX state/logs
.omx/
# E2E screenshots
e2e-*.png
# Quality gate reports
artifacts/quality-runs/
artifacts/coverage/
# Desktop build output
desktop/dist/
desktop/build-artifacts/
desktop/src-tauri/binaries/
desktop/src-tauri/target/
desktop/src-tauri/gen/
desktop/package-lock.json
# Desktop brand asset candidates (keep only selected ones in public/)
desktop/brand-assets/
# Claude local config & auto-generated
.claude/
# Superpowers plans & specs (local only)
docs/superpowers/
.superpowers/
# Temp server/web logs
.tmp-*.log
# Debug / temp screenshots (root dir only)
/*.png
bug_attachments/
# Private keys & credentials
*.pem
*.key
*.p12
credentials*.json
# TS build cache
*.tsbuildinfo
# Temp markdown snapshots
sidebar-snapshot.md
# VitePress
docs/.vitepress/dist
docs/.vitepress/cache
runtime/__pycache__
# IDE
.idea
# Codex logs
.codex-logs/
# Local AI assistant artifacts (graph, notes)
CLAUDE.md
graphify-out/