- Changed the default port for the Assistant server from 3000 to 3002 in various configuration files. - Updated the `.env.example` to reflect the new `ASSISTANT_PORT` variable. - Adjusted the `dev.ts` script to utilize the new port and ensure proper environment variable handling. - Modified the README to document the updated Assistant server URL. - Removed deprecated typecheck declaration cache functionality and related tests to streamline the codebase.
Showing the changes to dev.ts (1 of 18 files). Show all
Unified · Split
| @@ -10,7 +10,7 @@ · 9 unmodified lines | ||
| 10 | 10 | * 2. Convex cloud dev function watcher │ |
| 11 | 11 | * 3. CF sandbox host worker (port 8787) ├─ all started concurrently |
| 12 | 12 | * 4. Executor web UI (port 4312) │ |
| 13 | − * 5. Assistant server (port 3000) │ | |
| 13 | + * 5. Assistant server (port 3002) │ | |
| 14 | 14 | * 6. Discord bot ─┘ |
| 15 | 15 | * |
| 16 | 16 | * All processes are killed when this script exits (Ctrl+C). |
| @@ -122,7 +122,8 @@ process.on("SIGTERM", shutdown); · 105 unmodified lines | ||
| 122 | 122 | |
| 123 | 123 | const EXECUTOR_WEB_PORT = Number(Bun.env.EXECUTOR_WEB_PORT ?? 4312); |
| 124 | 124 | const SANDBOX_PORT = Number(Bun.env.SANDBOX_PORT ?? 8787); |
| 125 | −const DEV_PORTS = [3000, EXECUTOR_WEB_PORT, SANDBOX_PORT]; | |
| 125 | +const ASSISTANT_PORT = Number(Bun.env.ASSISTANT_PORT ?? 3002); | |
| 126 | +const DEV_PORTS = [ASSISTANT_PORT, EXECUTOR_WEB_PORT, SANDBOX_PORT]; | |
| 126 | 127 | |
| 127 | 128 | async function killStaleProcesses() { |
| 128 | 129 | let killed = 0; |
| @@ -198,6 +199,7 @@ spawnService("web", ["bun", "run", "dev"], { · 69 unmodified lines | ||
| 198 | 199 | spawnService("assistant", ["bun", "run", "dev"], { |
| 199 | 200 | cwd: "./assistant/packages/server", |
| 200 | 201 | env: { |
| 202 | + ASSISTANT_PORT: String(ASSISTANT_PORT), | |
| 201 | 203 | EXECUTOR_URL: urls.executorUrl, |
| 202 | 204 | CONVEX_URL: urls.convexUrl, |
| 203 | 205 | EXECUTOR_ANON_SESSION_ID: Bun.env.EXECUTOR_ANON_SESSION_ID ?? "assistant-discord-dev", |
| @@ -209,6 +211,7 @@ if (Bun.env.DISCORD_BOT_TOKEN) { · 5 unmodified lines | ||
| 209 | 211 | spawnService("bot", ["bun", "run", "dev"], { |
| 210 | 212 | cwd: "./assistant/packages/bot", |
| 211 | 213 | env: { |
| 214 | + ASSISTANT_SERVER_URL: Bun.env.ASSISTANT_SERVER_URL ?? `http://localhost:${ASSISTANT_PORT}`, | |
| 212 | 215 | CONVEX_URL: urls.convexUrl, |
| 213 | 216 | }, |
| 214 | 217 | }); |