@lightupai/polaris 0.0.9 → 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.
Files changed (2) hide show
  1. package/Makefile +3 -2
  2. package/package.json +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
- @POLARIS_DAEMON_PORT=4322 POLARIS_SERVICE_URL=http://localhost:4321 npx bun run src/daemon/daemon.ts &
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "polaris": "bin/polaris"