@lightupai/polaris 0.0.14 → 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/README.md +1 -0
- package/package.json +1 -1
- package/src/cli/cli.ts +30 -10
package/README.md
CHANGED
|
@@ -118,6 +118,7 @@ tests/ Test suite (bun test)
|
|
|
118
118
|
- [ ] Daemon local buffer — write-ahead log for fault tolerance. If the API is slow or down, the daemon should persist events locally and flush them asynchronously with retry/backoff, so hooks and MCP tools never block or lose data
|
|
119
119
|
- [ ] Reconciliation and recovery — `polaris recover` command that diffs the daemon JSONL log against the DB, backfills missing events, and posts an abridged recovery summary to Slack as a thread reply at the correct timeline position
|
|
120
120
|
- [ ] CD pipeline for Hetzner — auto-deploy to production on merge to master (SSH + docker compose up), similar to the npm publish job
|
|
121
|
+
- [ ] Auto-update local skill/hooks — locally installed skill and hook files go stale when the repo changes. `polaris install` fixes it but there's no staleness detection or auto-update mechanism
|
|
121
122
|
|
|
122
123
|
## Development
|
|
123
124
|
|
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:
|