History

Update Assistant server port and configuration

- 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.

Rhys Sullivan committed 9 months ago

Commit 2ed5c861 parent c0afbbd18 files · +27 −783Browse files

Showing the changes to dev.ts (1 of 18 files). Show all

Unified · Split

dev.ts+5−2
@@ -10,7 +10,7 @@ · 9 unmodified lines
1010 * 2. Convex cloud dev function watcher │
1111 * 3. CF sandbox host worker (port 8787) ├─ all started concurrently
1212 * 4. Executor web UI (port 4312) │
13− * 5. Assistant server (port 3000) │
13+ * 5. Assistant server (port 3002) │
1414 * 6. Discord bot ─┘
1515 *
1616 * All processes are killed when this script exits (Ctrl+C).
@@ -122,7 +122,8 @@ process.on("SIGTERM", shutdown); · 105 unmodified lines
122122
123123 const EXECUTOR_WEB_PORT = Number(Bun.env.EXECUTOR_WEB_PORT ?? 4312);
124124 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];
126127
127128 async function killStaleProcesses() {
128129 let killed = 0;
@@ -198,6 +199,7 @@ spawnService("web", ["bun", "run", "dev"], { · 69 unmodified lines
198199 spawnService("assistant", ["bun", "run", "dev"], {
199200 cwd: "./assistant/packages/server",
200201 env: {
202+ ASSISTANT_PORT: String(ASSISTANT_PORT),
201203 EXECUTOR_URL: urls.executorUrl,
202204 CONVEX_URL: urls.convexUrl,
203205 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
209211 spawnService("bot", ["bun", "run", "dev"], {
210212 cwd: "./assistant/packages/bot",
211213 env: {
214+ ASSISTANT_SERVER_URL: Bun.env.ASSISTANT_SERVER_URL ?? `http://localhost:${ASSISTANT_PORT}`,
212215 CONVEX_URL: urls.convexUrl,
213216 },
214217 });

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t