@lightupai/polaris 0.0.50 → 0.0.51

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.
Files changed (2) hide show
  1. package/Makefile +7 -4
  2. package/package.json +1 -1
package/Makefile CHANGED
@@ -17,20 +17,23 @@ dev-down:
17
17
  docker compose down
18
18
 
19
19
  # Cloud service API (port 4321)
20
+ # nohup so the service survives `make` exiting. A bare `&` leaves it as an
21
+ # orphaned job that receives SIGHUP and dies (banner prints, then it's gone);
22
+ # nohup makes it ignore SIGHUP. Logs go to /tmp/polaris-*.log.
20
23
  api:
21
24
  @echo "Starting API server on http://localhost:4321"
22
- @npx bun run src/service/server.ts 2>/tmp/polaris-api.log &
25
+ @nohup npx bun run src/service/server.ts >/tmp/polaris-api.log 2>&1 &
23
26
 
24
27
  # Web app (port 3000)
25
28
  web:
26
29
  @echo "Starting web app on http://localhost:3000"
27
- @npx bun --hot run src/web/serve.ts &
30
+ @nohup npx bun --hot run src/web/serve.ts >/tmp/polaris-web.log 2>&1 &
28
31
 
29
32
  # Local daemon (port 4322) — uses local profile token if available
30
33
  daemon:
31
34
  @echo "Starting daemon on http://127.0.0.1:4322"
32
35
  @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 &
36
+ POLARIS_DAEMON_PORT=4322 POLARIS_SERVICE_URL=http://localhost:4321 POLARIS_AUTH_TOKEN="$$TOKEN" nohup npx bun run src/daemon/daemon.ts >/tmp/polaris-daemon.log 2>&1 &
34
37
 
35
38
  # Slack bridge (auto-detects org from DB, needs SLACK_APP_TOKEN in .env)
36
39
  bridge:
@@ -38,7 +41,7 @@ bridge:
38
41
  ORG=$$(docker exec collab-polaris-postgres-1 psql -U polaris -d polaris -t -A -c "SELECT id FROM orgs WHERE slack_team_id IS NOT NULL LIMIT 1;" 2>/dev/null); \
39
42
  if [ -n "$$ORG" ]; then \
40
43
  echo "Starting Slack bridge for org $$ORG"; \
41
- npx bun run src/slack/bridge.ts $$ORG 2>/tmp/polaris-bridge.log & \
44
+ nohup npx bun run src/slack/bridge.ts $$ORG >/tmp/polaris-bridge.log 2>&1 & \
42
45
  else echo "Skipping bridge (no Slack-connected org found)"; fi; \
43
46
  fi
44
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "polaris": "bin/polaris",