@lightupai/polaris 0.0.93 → 0.0.94
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/client/client.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightupai/polaris",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "Record and stream Claude Code sessions to Slack. Like Gong for AI coding — capture every prompt, response, and tool call. Multiplayer collaboration across AI coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
package/src/client/client.ts
CHANGED
|
@@ -285,9 +285,11 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
285
285
|
if (name === "polaris_status") {
|
|
286
286
|
try {
|
|
287
287
|
const res = await daemonGet(`/status/${CC_SESSION_ID}`);
|
|
288
|
-
const body = (await res.json()) as { connected: boolean; project?: string; session?: string; user?: string };
|
|
288
|
+
const body = (await res.json()) as { connected: boolean; project?: string; session?: string; user?: string; account?: string; slackChannel?: string };
|
|
289
289
|
if (body.connected) {
|
|
290
|
-
|
|
290
|
+
const accountTag = body.account ? ` [${body.account}]` : "";
|
|
291
|
+
const slackTag = body.slackChannel ? ` #${body.slackChannel}` : "";
|
|
292
|
+
return { content: [{ type: "text", text: `Connected: ${body.project}/${body.session} as ${body.user}${accountTag}${slackTag}` }] };
|
|
291
293
|
}
|
|
292
294
|
return { content: [{ type: "text", text: "Not connected to any Polaris session." }] };
|
|
293
295
|
} catch {
|
|
@@ -440,7 +442,9 @@ async function main() {
|
|
|
440
442
|
currentSession = body.session ?? saved.session;
|
|
441
443
|
currentUser = saved.user;
|
|
442
444
|
currentProfile = reconnectProfile;
|
|
443
|
-
|
|
445
|
+
// Show email when it looks like one; fall back to profile key or "default"
|
|
446
|
+
const accountLabel = reconnectProfile.includes("@") ? reconnectProfile : (reconnectProfile || "default");
|
|
447
|
+
console.error(`Polaris auto-reconnected to #${currentProject}/${currentSession} [${accountLabel}]`);
|
|
444
448
|
} else {
|
|
445
449
|
// Session or project no longer exists — clear stale state
|
|
446
450
|
await clearSessionState();
|