@lightupai/polaris 0.0.17 → 0.0.19

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.
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env bash
2
+ # Polaris MCP server — runs as a child process of Claude Code
3
+ SCRIPT="$(realpath "$0" 2>/dev/null || readlink -f "$0" 2>/dev/null || echo "$0")"
4
+ DIR="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
5
+
6
+ if command -v bun &>/dev/null; then
7
+ exec bun "$DIR/src/client/client.ts" "$@"
8
+ elif command -v bunx &>/dev/null; then
9
+ exec bunx bun "$DIR/src/client/client.ts" "$@"
10
+ else
11
+ exec npx --yes bun "$DIR/src/client/client.ts" "$@"
12
+ fi
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "bin": {
6
- "polaris": "bin/polaris"
6
+ "polaris": "bin/polaris",
7
+ "polaris-mcp": "bin/polaris-mcp"
7
8
  },
8
9
  "scripts": {
9
10
  "test": "bun test"
package/src/cli/cli.ts CHANGED
@@ -110,12 +110,14 @@ async function install(participantId?: string) {
110
110
  await mkdir(CLAUDE_DIR, { recursive: true });
111
111
 
112
112
  // MCP server config
113
- const clientPath = join(import.meta.dir, "..", "client", "client.ts");
113
+ // Use npx to run polaris-mcp from the published package. This avoids
114
+ // dangling file paths when installed via npx (temp directory gets cleaned up).
115
+ // The polaris-mcp bin entry resolves to src/client/client.ts within the package.
114
116
  const mcpConfig = {
115
117
  mcpServers: {
116
118
  polaris: {
117
119
  command: "npx",
118
- args: ["bun", clientPath],
120
+ args: ["-y", "polaris-mcp"],
119
121
  env: {
120
122
  POLARIS_DAEMON_URL: "http://127.0.0.1:4322",
121
123
  },