Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.18 KB

File metadata and controls

45 lines (31 loc) · 1.18 KB

中文 | English

AGENTS.md

Scope

This file applies to src/web-ui. Use the top-level AGENTS.md for repository-wide rules.

What matters here

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, config
  • src/app/: shell layout and top-level composition
  • src/flow_chat/: chat flow UI and state
  • src/tools/: editor, terminal, git, workspace, file explorer
  • src/shared/: shared services, stores, helpers, types
  • src/locales/: localized strings

Local rules

  • 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

Commands

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:web

Verification

pnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run