docs: update agents.md
This commit is contained in:
@@ -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:
|
||||||
@@ -21,6 +21,7 @@ Internal packages:
|
|||||||
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 typecheck # Typecheck all packages (libs + website + extension)
|
||||||
npm run lint # ESLint
|
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/
|
||||||
|
|||||||
Reference in New Issue
Block a user