docs: update agents.md

This commit is contained in:
Simon
2026-04-12 03:39:15 +08:00
parent 4b6b591849
commit 83476da97f

View File

@@ -5,7 +5,7 @@
This is a **monorepo** with npm workspaces: This is a **monorepo** with npm workspaces:
- **Page Agent** (`packages/page-agent/`) - Main entry with built-in UI Panel, published as `page-agent` on npm - **Page Agent** (`packages/page-agent/`) - Main entry with built-in UI Panel, published as `page-agent` on npm
- **Extension** (`packages/extension/`) - Browser extension (WXT + React) 🚧 WIP - **Extension** (`packages/extension/`) - Browser extension (WXT + React)
- **Website** (`packages/website/`) - React docs and landing page. **When working on website, follow `packages/website/AGENTS.md`** - **Website** (`packages/website/`) - React docs and landing page. **When working on website, follow `packages/website/AGENTS.md`**
Internal packages: Internal packages:
@@ -18,10 +18,11 @@ Internal packages:
## Development Commands ## Development Commands
```bash ```bash
npm start # Start website dev server npm start # Start website dev server
npm run build # Build all packages npm run build # Build all packages
npm run build:libs # Build all libraries npm run build:libs # Build all libraries
npm run lint # ESLint npm run typecheck # Typecheck all packages (libs + website + extension)
npm run lint # ESLint
npm run zip -w @page-agent/ext # Zip the extension package npm run zip -w @page-agent/ext # Zip the extension package
``` ```
@@ -29,7 +30,7 @@ npm run zip -w @page-agent/ext # Zip the extension package
### Monorepo Structure ### Monorepo Structure
Simple monorepo solution: TypeScript references + Vite aliases. Update tsconfig and vite config when adding/removing packages. Source-first monorepo: library `package.json` exports point to `src/*.ts` during development. At publish time, `scripts/pre-publish.js` promotes `publishConfig` fields to top-level (swapping to `dist/`), and `scripts/post-publish.js` restores the originals.
``` ```
packages/ packages/