# AGENTS.md — Saber3 (BladeX Frontend) Compact orientation for OpenCode sessions. When in doubt, also read `CLAUDE.md` in the same directory. --- ## Project Type Vue 3 + Element Plus + Avue CRUD enterprise admin SPA. Vite build. Pure JavaScript (no TypeScript). Uses pnpm. --- ## Commands | Command | Purpose | |---------|---------| | `pnpm run dev` | Vite dev server on **port 2888** | | `pnpm run build` | Dev build (esbuild minify) | | `pnpm run build:prod` | Production build (terser, drops `console`/`debugger`, strips comments) | | `pnpm run serve` | Preview production build | No test runner, no lint command, no typecheck. --- ## Path Aliases Defined in `vite.config.mjs`: - `@` → `./src` - `~` → `./` - `components` → `./src/components` - `styles` → `./src/styles` - `utils` → `./src/utils` --- ## Code Style Prettier config (`.prettierrc.json`): - `printWidth: 100`, `tabWidth: 2`, `semi: true`, `singleQuote: true`, `arrowParens: "avoid"` No ESLint. No TypeScript. Follow the existing file’s style when editing. --- ## Vue API Style **Both Options API and Composition API coexist.** Do not mix styles in one file. - **Editing existing pages**: keep the original style. - **New standard CRUD pages**: prefer Options API (project mainstream). - **New complex interactive pages**: may use Composition API + `