Compare commits

...

4 Commits

Author SHA1 Message Date
Nikhil Sonti
e732a028c6 fix: address PR review comments for 0416-simplify_dev_setup 2026-04-16 14:44:22 -07:00
Nikhil Sonti
8ff90550b1 feat: simplify dev-setup preflight 2026-04-16 14:29:56 -07:00
Nikhil Sonti
fadfef93dd fix: address review comments for 0416-agent_dev_setup 2026-04-16 10:32:16 -07:00
Nikhil Sonti
b29dca6c18 feat: add one-step agent worktree setup 2026-04-16 10:19:52 -07:00
2 changed files with 16 additions and 16 deletions

View File

@@ -75,26 +75,24 @@ packages/
### Setup
Requires [process-compose](https://github.com/F1bonacc1/process-compose):
```bash
brew install process-compose
# Install dependencies, generate agent GraphQL output,
# and prepare WXT types for apps/agent
bun run dev-setup
# Run the apps
bun run start:server
bun run start:agent
```
```bash
# Copy environment files for each package
cp apps/server/.env.example apps/server/.env.development
cp apps/agent/.env.example apps/agent/.env.development
cp apps/server/.env.production.example apps/server/.env.production
`bun run dev-setup` is a preflight command only. It does not manage `.env` files.
# Start the full dev environment
process-compose up
```
The `process-compose up` command runs the following in order:
It runs the following in order:
1. `bun install` — installs dependencies
2. `bun --cwd apps/agent codegen` — generates agent code
3. `bun --cwd apps/server start` and `bun --cwd apps/agent dev`starts server and agent in parallel
2. `bun run codegen:agent` — generates agent GraphQL code
3. `bun run prepare:agent`generates WXT type output
If you want the broader dev harness after setup, use `bun run dev:watch`, `bun run dev:watch:new`, or `bun run dev:manual`.
### Environment Variables

View File

@@ -10,6 +10,7 @@
],
"scripts": {
"postinstall": "bun run build:agent-sdk",
"dev-setup": "bun install && bun run codegen:agent && bun run prepare:agent",
"dev:watch": "./tools/dev/run.sh watch",
"dev:watch:new": "./tools/dev/run.sh watch --new",
"dev:manual": "./tools/dev/run.sh watch --manual",
@@ -26,7 +27,8 @@
"build:agent:dev": "FORCE_COLOR=1 bun run --filter @browseros/agent --elide-lines=0 build:dev",
"build:agent": "bun run codegen:agent && bun run --filter @browseros/agent build",
"build:agent-sdk": "bun run --filter @browseros-ai/agent-sdk build",
"codegen:agent": "bun run --filter @browseros/agent codegen",
"codegen:agent": "bun --cwd apps/agent graphql-codegen --config codegen.ts",
"prepare:agent": "VITE_PUBLIC_BROWSEROS_API=${VITE_PUBLIC_BROWSEROS_API:-http://127.0.0.1:9105} bun --cwd apps/agent wxt prepare",
"test": "bun run test:tools && bun run test:integration",
"test:tools": "bun run --filter @browseros/server test:tools",
"test:integration": "bun run --filter @browseros/server test:integration",