@lightupai/polaris 0.0.71 → 0.0.73

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.
@@ -156,6 +156,16 @@ Project renames, session changes, and Slack channel renames can happen during a
156
156
 
157
157
  **Recommendation**: Always log `/connect` and `/disconnect` events to a separate persistent file (`~/.polaris/session-history.jsonl`) that survives daemon restarts. This gives backfill a reliable timeline of which CC session was in which project at what time.
158
158
 
159
+ ## TODOs
160
+
161
+ - [ ] **Separate backfill recovery from Slack notifications** — Backfill currently replays events via `POST /events`, which unconditionally broadcasts to Slack. Need to separate: (1) silent recovery of events into Polaris (add a `backfill: true` flag to skip broadcasting), (2) optional catchup summaries on Slack (condensed summary of what happened during the gap, not raw event replay).
162
+
163
+ - [ ] **Control Slack reporting verbosity** — Slack notifications from Polaris events are too verbose to be usable. Need configurable verbosity levels — e.g., per-project or per-session settings to control what gets posted and at what detail level.
164
+
165
+ - [ ] **Add dedup logic to backfill with checkpointing** — Backfill currently replays all events in the time range with no dedup — the API assigns new UUIDs to each, so replaying twice doubles events. Need: (1) dedup logic so already-published events aren't re-ingested (timestamp matching or content hash per the Deduplication section above), (2) sensible checkpointing so backfill can resume without re-processing, (3) merging scheme for overlapping backfill ranges.
166
+
167
+ - [ ] **Handle session discontinuity in backfill** — Backfill currently only works against the current CC session's mapping. If a user's Polaris session disconnected, they continued working in CC, then stopped and started a new CC session (without resume), backfill from the new session can't recover events from the old one. It replays everything into the current Polaris session instead of the one that was active when the events were generated. Fix: backfill should read `session-history.jsonl` to build a timeline of CC session → Polaris session mappings, cross-reference daemon log timestamps against that timeline, and replay each event to the correct Polaris session. Both data sources persist after CC sessions end (CC transcripts in `~/.claude/projects/`, daemon logs in `~/.polaris/logs/`), so the data is available — just the routing logic is missing.
168
+
159
169
  ## Open Questions
160
170
 
161
171
  1. **Should backfill be automatic?** The daemon could detect gaps on startup (compare last log entry to last API event) and auto-backfill. Risk: could replay stale events unintentionally.
package/docs/seo-geo.md CHANGED
@@ -47,16 +47,8 @@ Longhouse, SessionForge, CC Replay, Blackcrab, Mantra, Nokos.
47
47
 
48
48
  ### High Priority
49
49
 
50
- - [ ] **GitHub README as the canonical source**
51
- LLMs scrape GitHub heavily. The README needs to lead with the exact
52
- phrases LLMs search for: "AI coding session recording", "Gong for
53
- AI coding", "Claude Code session recording". Currently the README
54
- leads with architecture — rewrite the intro to match search intent.
55
-
56
- - [ ] **npm package description**
57
- `npm view @lightupai/polaris` — the package description and keywords
58
- are what LLMs see. Update with target phrases: "Record and stream
59
- Claude Code sessions to Slack. Like Gong for AI coding."
50
+ - [x] **GitHub README as the canonical source** — rewrote intro to lead with "Gong for Claude Code sessions", added "What Polaris does" section matching LLM fan-out queries
51
+ - [x] **npm package description** added description, 10 keywords, homepage, and repo URL to package.json
60
52
 
61
53
  - [ ] **Comparison / "alternatives" blog post**
62
54
  LLMs heavily cite comparison pages. Write a post like "Polaris vs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
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",