@lightupai/polaris 0.0.15 → 0.0.16
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/package.json +1 -1
- package/src/cli/cli.ts +30 -10
package/package.json
CHANGED
package/src/cli/cli.ts
CHANGED
|
@@ -178,7 +178,7 @@ async function install(participantId?: string) {
|
|
|
178
178
|
name: polaris
|
|
179
179
|
description: Connect to a Polaris multiplayer collaboration session
|
|
180
180
|
allowed-tools: polaris_connect polaris_disconnect polaris_status polaris_reply polaris_context polaris_rename
|
|
181
|
-
argument-hint: [join <project>
|
|
181
|
+
argument-hint: [join <project> | rename <new-name> | disconnect | (no args for status)]
|
|
182
182
|
---
|
|
183
183
|
|
|
184
184
|
## Polaris — Multiplayer Collaboration
|
|
@@ -189,9 +189,10 @@ Manage your connection to a Polaris collaboration session.
|
|
|
189
189
|
|
|
190
190
|
Based on the arguments provided, do ONE of the following:
|
|
191
191
|
|
|
192
|
-
**\`/polaris join <project
|
|
193
|
-
1. Call \`polaris_connect\` with the given project
|
|
194
|
-
2.
|
|
192
|
+
**\`/polaris join <project>\`** — Connect to a session:
|
|
193
|
+
1. Call \`polaris_connect\` with the given project and user identity ${identity}
|
|
194
|
+
2. A session name is auto-generated
|
|
195
|
+
3. Report the connection status including the session name
|
|
195
196
|
|
|
196
197
|
**\`/polaris rename <new-name>\`** — Rename the current project:
|
|
197
198
|
1. Call \`polaris_rename\` with the new name
|
|
@@ -309,7 +310,7 @@ async function login(appUrl: string, profileName?: string) {
|
|
|
309
310
|
name: polaris
|
|
310
311
|
description: Connect to a Polaris multiplayer collaboration session
|
|
311
312
|
allowed-tools: polaris_connect polaris_disconnect polaris_status polaris_reply polaris_context polaris_rename
|
|
312
|
-
argument-hint: [join <project>
|
|
313
|
+
argument-hint: [join <project> | rename <new-name> | disconnect | (no args for status)]
|
|
313
314
|
---
|
|
314
315
|
|
|
315
316
|
## Polaris — Multiplayer Collaboration
|
|
@@ -320,9 +321,10 @@ Manage your connection to a Polaris collaboration session.
|
|
|
320
321
|
|
|
321
322
|
Based on the arguments provided, do ONE of the following:
|
|
322
323
|
|
|
323
|
-
**\`/polaris join <project
|
|
324
|
-
1. Call \`polaris_connect\` with the given project
|
|
325
|
-
2.
|
|
324
|
+
**\`/polaris join <project>\`** — Connect to a session:
|
|
325
|
+
1. Call \`polaris_connect\` with the given project and user identity ${identity}
|
|
326
|
+
2. A session name is auto-generated
|
|
327
|
+
3. Report the connection status including the session name
|
|
326
328
|
|
|
327
329
|
**\`/polaris rename <new-name>\`** — Rename the current project:
|
|
328
330
|
1. Call \`polaris_rename\` with the new name
|
|
@@ -517,7 +519,16 @@ switch (command) {
|
|
|
517
519
|
console.log("Polaris — authenticating\n");
|
|
518
520
|
await login(appUrl, profileName);
|
|
519
521
|
console.log("\n✓ Login complete!");
|
|
520
|
-
|
|
522
|
+
// Auto-start daemon in background
|
|
523
|
+
const daemonPath = join(import.meta.dir, "..", "daemon", "daemon.ts");
|
|
524
|
+
Bun.spawn(["bun", "run", daemonPath], {
|
|
525
|
+
stdout: "ignore",
|
|
526
|
+
stderr: "ignore",
|
|
527
|
+
env: { ...process.env },
|
|
528
|
+
}).unref?.();
|
|
529
|
+
console.log(" ✓ Daemon started in background");
|
|
530
|
+
|
|
531
|
+
console.log("\nNext: restart Claude Code, then run `/polaris join <project>` in your AI agent.");
|
|
521
532
|
break;
|
|
522
533
|
}
|
|
523
534
|
|
|
@@ -554,7 +565,16 @@ switch (command) {
|
|
|
554
565
|
console.log("[2/2] Authenticating...\n");
|
|
555
566
|
await login(DEFAULT_APP_URL);
|
|
556
567
|
console.log("\n✓ Polaris is set up on this machine!");
|
|
557
|
-
|
|
568
|
+
// Auto-start daemon in background
|
|
569
|
+
const daemonPath = join(import.meta.dir, "..", "daemon", "daemon.ts");
|
|
570
|
+
Bun.spawn(["bun", "run", daemonPath], {
|
|
571
|
+
stdout: "ignore",
|
|
572
|
+
stderr: "ignore",
|
|
573
|
+
env: { ...process.env },
|
|
574
|
+
}).unref?.();
|
|
575
|
+
console.log(" ✓ Daemon started in background");
|
|
576
|
+
|
|
577
|
+
console.log("\nNext: restart Claude Code, then run `/polaris join <project>` in your AI agent.");
|
|
558
578
|
break;
|
|
559
579
|
|
|
560
580
|
default:
|