mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-13 23:53:25 +00:00
Compare commits
4 Commits
fix/contai
...
fix/setup
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e732a028c6 | ||
|
|
8ff90550b1 | ||
|
|
fadfef93dd | ||
|
|
b29dca6c18 |
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user