claude-discover 1.10.10 → 1.10.12

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 CHANGED
@@ -6,7 +6,12 @@ Ever wondered what Claude Code is **actually** doing all day?
6
6
  <img width="1660" alt="claude-discover-dimmed-screenshot" src="https://github.com/user-attachments/assets/708d05c7-8769-47d8-b5bd-14337d1d6037" />
7
7
  <br><br>
8
8
 
9
- **Claude Discover** is a desktop tool that shows you what **Claude Code** is actually doing. It collects all your sessions (from the CLI, Desktop, or SDK) and puts them on one timeline, where you can read every conversation, peek at the system prompts, memories, and tools, inspect the raw API traffic behind it all, and see exactly where your tokens - and your money - went. (Spoiler: mostly on re-sending tool definitions.)
9
+ **Claude Discover** is a desktop app for exploring your local Claude Code data. Every session - from the CLI, Desktop, or SDK - lands on one timeline, where you can:
10
+
11
+ - read each conversation, with every tool call the terminal scrolled past
12
+ - see what was sent behind it: system prompt, memory files, tool definitions, injected reminders
13
+ - inspect the raw API traffic, including the side requests transcripts never record
14
+ - find where your tokens - and your money - went (spoiler: mostly on re-sending tool definitions)
10
15
 
11
16
  No configuration, no API keys, and **everything stays on your machine**.
12
17
 
@@ -29,7 +34,7 @@ claude-discover
29
34
  Your Claude sessions laid out on a daily, weekly, or monthly timeline. One glance tells you where your tokens went; the second finds the session that quietly spawned 100+ agents.
30
35
 
31
36
  - **Sessions list**\
32
- Filter and sort every session in the selected period. Warning badges flag the expensive habits: oversized context, extended 1h cache, fast mode, marathon sessions - and more to come.
37
+ Filter and sort every session in the selected period. Warning badges flag the expensive habits: oversized context, a cache TTL (5m or 1h) that would have cost less, fast mode, marathon sessions - and more to come.
33
38
 
34
39
  - **Session preview**
35
40
  - **Conversation view**\
package/bin/proxy.mjs CHANGED
@@ -192,10 +192,11 @@ export function dedupeRequest(body, seen = new Set()) {
192
192
  // Inside a newly-seen value, array elements (content blocks, tool schemas, …) are deduped
193
193
  // individually too, at any depth — one injected/updated element (e.g. a system-reminder)
194
194
  // must not re-log its siblings. Primitive elements stay inline: a $ref would outweigh them.
195
- const deep = v =>
196
- Array.isArray(v) ? v.map(el => el && typeof el === 'object' ? dedupe(el) : el)
197
- : v && typeof v === 'object' ? Object.fromEntries(Object.entries(v).map(([k, x]) => [k, deep(x)]))
198
- : v
195
+ const deep = v => {
196
+ return Array.isArray(v) ? v.map(el => el && typeof el === 'object' ? dedupe(el) : el)
197
+ : v && typeof v === 'object' ? Object.fromEntries(Object.entries(v).map(([k, x]) => [k, deep(x)]))
198
+ : v
199
+ }
199
200
  const out = { ...body }
200
201
  if (out.system != null) out.system = dedupe(out.system)
201
202
  if (out.tools != null) out.tools = dedupe(out.tools)