@lightupai/polaris 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +3 -2
- package/package.json +1 -1
- package/src/daemon/daemon.ts +1 -1
package/Makefile
CHANGED
|
@@ -26,10 +26,11 @@ web:
|
|
|
26
26
|
@echo "Starting web app on http://localhost:3000"
|
|
27
27
|
@npx bun --hot run src/web/serve.ts &
|
|
28
28
|
|
|
29
|
-
# Local daemon (port 4322)
|
|
29
|
+
# Local daemon (port 4322) — uses local profile token if available
|
|
30
30
|
daemon:
|
|
31
31
|
@echo "Starting daemon on http://127.0.0.1:4322"
|
|
32
|
-
@
|
|
32
|
+
@TOKEN=$$(jq -r '.profiles.local.token // empty' ~/.polaris/config.json 2>/dev/null || echo ""); \
|
|
33
|
+
POLARIS_DAEMON_PORT=4322 POLARIS_SERVICE_URL=http://localhost:4321 POLARIS_AUTH_TOKEN="$$TOKEN" npx bun run src/daemon/daemon.ts &
|
|
33
34
|
|
|
34
35
|
# Slack bridge (auto-detects org from DB, needs SLACK_APP_TOKEN in .env)
|
|
35
36
|
bridge:
|
package/package.json
CHANGED
package/src/daemon/daemon.ts
CHANGED
|
@@ -161,7 +161,7 @@ function error(message: string, status: number): Response {
|
|
|
161
161
|
return json({ error: message }, status);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export function startDaemon(port = Number(process.env.POLARIS_DAEMON_PORT ??
|
|
164
|
+
export function startDaemon(port = Number(process.env.POLARIS_DAEMON_PORT ?? 4322)): {
|
|
165
165
|
server: Server;
|
|
166
166
|
sessions: Map<string, SessionMapping>;
|
|
167
167
|
mcpCallbacks: Map<string, (event: unknown) => void>;
|