中文 | English
This file applies to src/web-ui. Use the top-level AGENTS.md for repository-wide rules.
src/web-ui is the shared frontend for:
- Tauri desktop
- server/web via WebSocket / Fetch adapters
Most changes start in:
src/infrastructure/: adapters, i18n, theme, providers, configsrc/app/: shell layout and top-level compositionsrc/flow_chat/: chat flow UI and statesrc/tools/: editor, terminal, git, workspace, file explorersrc/shared/: shared services, stores, helpers, typessrc/locales/: localized strings
- Do not call Tauri APIs directly from UI components; go through the adapter / infrastructure layer
- Reuse existing theme, i18n, component-library, and Zustand stores before adding new frontend primitives
- Follow
src/web-ui/LOGGING.md: English only, no emojis, structured logs
pnpm --dir src/web-ui dev
pnpm --dir src/web-ui run lint
pnpm --dir src/web-ui run type-check
pnpm --dir src/web-ui run test:run
pnpm run build:webpnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run