ai-wrapped 1.3.4 → 1.4.0
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 +21 -4
- package/dist/assets/index-CfPClMTI.js +44 -0
- package/dist/index.html +1 -1
- package/package.json +5 -2
- package/src/bun/external.test.ts +3 -0
- package/src/bun/external.ts +8 -1
- package/src/bun/index.ts +12 -21
- package/src/bun/scan.ts +5 -2
- package/src/shared/shareData.test.ts +105 -0
- package/src/shared/shareData.ts +237 -0
- package/tsconfig.json +1 -1
- package/dist/assets/index-BeoRn2gJ.js +0 -2
- package/dist/assets/index-D5atJkpz.js +0 -44
package/README.md
CHANGED
|
@@ -2,9 +2,15 @@
|
|
|
2
2
|
<img src="icon.png" width="128" height="128" alt="AI Wrapped icon" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<h1 align="center">AI Wrapped</h1>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
Spotify Wrapped-style desktop dashboard for your AI coding agent activity.
|
|
9
|
+
<br />
|
|
10
|
+
<a href="https://ai-wrapped.com">ai-wrapped.com</a> · <a href="https://www.npmjs.com/package/ai-wrapped"><img src="https://img.shields.io/npm/v/ai-wrapped" alt="npm" /></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
A visual summary across multiple agents.
|
|
8
14
|
|
|
9
15
|
Built on [Electrobun](https://electrobun.dev) — a TypeScript-first desktop framework using Bun + native webviews.
|
|
10
16
|
|
|
@@ -25,9 +31,20 @@ Built on top of [agent-sessions](https://github.com/jazzyalex/agent-sessions) se
|
|
|
25
31
|
- Daily activity timeline with per-agent and per-model breakdown
|
|
26
32
|
- Cost breakdown by model (Claude Opus, Sonnet, GPT-4o, Gemini Pro, etc.)
|
|
27
33
|
- Agent usage distribution (pie chart)
|
|
28
|
-
-
|
|
34
|
+
- Time spent — total hours, average session duration, longest session, current streak, active day coverage ring
|
|
35
|
+
- Top repositories with sessions, tokens, cost, and duration
|
|
36
|
+
- Coding hours — 24-hour activity breakdown by agent
|
|
37
|
+
- Shareable dashboard links via [ai-wrapped.com/share](https://ai-wrapped.com/share)
|
|
29
38
|
- System tray with today's stats at a glance
|
|
30
39
|
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
bunx ai-wrapped
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Flags: `--version`, `--rebuild`, `--uninstall`
|
|
47
|
+
|
|
31
48
|
## Stack
|
|
32
49
|
|
|
33
50
|
- **Runtime**: [Bun](https://bun.sh)
|
|
@@ -64,5 +81,5 @@ bun run build:prod
|
|
|
64
81
|
|
|
65
82
|
1. On launch (and every 5 minutes by default), the app scans known session directories for each agent
|
|
66
83
|
2. New or changed session files are parsed into a normalized format with token counts, tool calls, and cost estimates
|
|
67
|
-
3. Aggregated daily stats are written to `~/.ai-
|
|
84
|
+
3. Aggregated daily stats are written to `~/.ai-wrapped/daily.json`
|
|
68
85
|
4. The frontend fetches summaries over RPC and renders the Wrapped-style dashboard
|