Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
docs(development): restore dev-local workflow docs
Jiayuan Zhang88582fe05028
diff --git a/README.md b/README.mdindex bb89feda76..45f01ea439 100644--- a/README.md+++ b/README.md@@ -45,6 +45,39 @@ Run desktop app in dev mode:pnpm dev```+## Local Full-Stack Development (`pnpm dev:local`)++Use this when you need **Gateway + Web + Desktop** together for end-to-end dev.++Setup:++1. Copy `.env.example` to `.env` in repo root+2. Set `TELEGRAM_BOT_TOKEN` in `.env` (from `@BotFather`)+3. Run:++```bash+pnpm dev:local+```++What starts:++| Service | Address | Notes |+|---------|---------|-------|+| Gateway | `http://localhost:4000` | Telegram long-polling mode |+| Web | `http://localhost:3000` | OAuth login flow |+| Desktop | — | Connects to local Gateway + Web |++Data isolation:++- runtime data: `~/.super-multica-dev`+- workspace data: `~/Documents/Multica-dev`++Related:++```bash+pnpm dev:local:archive+```+## Common Commands```bash@@ -60,6 +93,7 @@ pnpm dev:desktoppnpm dev:gatewaypnpm dev:webpnpm dev:local+pnpm dev:local:archive# Build / qualitypnpm builddiff --git a/docs/development.md b/docs/development.mdindex c2ce38378f..896f8d8324 100644--- a/docs/development.md+++ b/docs/development.md@@ -31,6 +31,7 @@ pnpm dev:web# Full local stack with isolated dev datapnpm dev:local+pnpm dev:local:archive```## What Each Command Does@@ -40,6 +41,7 @@ pnpm dev:local- `pnpm dev:gateway`: NestJS WebSocket gateway (`PORT`, default `3000`).- `pnpm dev:web`: Next.js web app (`3000` by script).- `pnpm dev:local`: gateway + web + desktop with dev-safe env defaults.+- `pnpm dev:local:archive`: archive dev data and start fresh.## Important Environment Variables@@ -50,17 +52,41 @@ pnpm dev:local- `MULTICA_WORKSPACE_DIR`: override workspace root- `MULTICA_RUN_LOG=1`: enable structured run-log output-## Local Full-Stack Notes+## Local Full-Stack Notes (`pnpm dev:local`)-`pnpm dev:local` expects root `.env` with Telegram credentials:+`pnpm dev:local` is the recommended way to run the full local stack for integration work.++Setup:++1. `cp .env.example .env`+2. Set `TELEGRAM_BOT_TOKEN` in root `.env`+3. Run `pnpm dev:local`++Services started by the script:++| Service | Address | Notes |+|---------|---------|-------|+| Gateway | `http://localhost:4000` | Telegram long-polling mode (`PORT=4000`) |+| Web | `http://localhost:3000` | OAuth login / frontend |+| Desktop | — | Uses `GATEWAY_URL=http://localhost:4000` and local web URL |++Data/workspace isolation used by the script:++- `SMC_DATA_DIR=~/.super-multica-dev`+- `MULTICA_WORKSPACE_DIR=~/Documents/Multica-dev`++Why this matters:++- avoids polluting production data under `~/.super-multica`+- provides a stable local target for auth/session debugging++Common follow-up:```bash-cp .env.example .env+pnpm dev:local:archive```-At minimum set:--- `TELEGRAM_BOT_TOKEN`+This archives prior dev data before starting fresh local runs.## Build / Quality