Add npm run dev instructions to DEVELOPMENT.md
This commit is contained in:
@@ -152,8 +152,17 @@ Handles user preferences:
|
||||
|
||||
### Running in Development
|
||||
|
||||
Start the watch build in the monorepo root to continuously rebuild all packages:
|
||||
|
||||
```bash
|
||||
# From monorepo root
|
||||
# Terminal 1: Watch build (from monorepo root)
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Then run the CLI with tsx in a separate terminal:
|
||||
|
||||
```bash
|
||||
# Terminal 2: Run CLI (from monorepo root)
|
||||
npx tsx packages/coding-agent/src/cli.ts
|
||||
|
||||
# With arguments
|
||||
@@ -164,6 +173,8 @@ npx tsx packages/coding-agent/src/cli.ts -p "Hello"
|
||||
npx tsx packages/coding-agent/src/cli.ts --mode rpc --no-session
|
||||
```
|
||||
|
||||
The watch build ensures changes to dependent packages (`pi-agent-core`, `pi-ai`, `pi-tui`) are automatically rebuilt.
|
||||
|
||||
### Type Checking
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user