@shadevkumar/agent-wrapped 0.0.0-stage → 0.1.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/LICENSE +25 -0
- package/README.md +71 -2
- package/dist/build.js +47 -0
- package/dist/cli.js +48 -0
- package/dist/files.js +114 -0
- package/dist/letter.js +60 -0
- package/dist/moments.js +283 -0
- package/dist/personality.js +65 -0
- package/dist/pricing.js +97 -0
- package/dist/sources/claude.js +103 -0
- package/dist/sources/codex.js +147 -0
- package/dist/story/fonts/OFL-Geist.txt +93 -0
- package/dist/story/fonts/OFL-Newsreader.txt +93 -0
- package/dist/story/fonts/geist-normal.woff2 +0 -0
- package/dist/story/fonts/newsreader-italic.woff2 +0 -0
- package/dist/story/fonts/newsreader-normal.woff2 +0 -0
- package/dist/story/index.html +234 -0
- package/dist/story/story.js +1155 -0
- package/dist/story.js +35 -0
- package/dist/types.js +22 -0
- package/dist/words.js +234 -0
- package/package.json +46 -4
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
6
|
+
<title>Agent Wrapped 2026</title>
|
|
7
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='4' y='6' width='56' height='54' rx='12' fill='%23131416'/%3E%3Crect x='6' y='4' width='52' height='50' rx='11' fill='%2336383D'/%3E%3Ctext x='32' y='38' font-family='system-ui,sans-serif' font-size='26' font-weight='600' fill='%23F1F1EF' text-anchor='middle'%3EAW%3C/text%3E%3C/svg%3E">
|
|
8
|
+
<!--HEAD-->
|
|
9
|
+
<style>
|
|
10
|
+
/*FONTS*/
|
|
11
|
+
:root {
|
|
12
|
+
--page: #141517;
|
|
13
|
+
--plate: #1D1E21;
|
|
14
|
+
--ink: #F1F1EF;
|
|
15
|
+
--soft: #A4A6AC;
|
|
16
|
+
--faint: #70737A;
|
|
17
|
+
--line: rgba(255, 255, 255, 0.09);
|
|
18
|
+
--key: #2C2E32;
|
|
19
|
+
--key-top: #36383D;
|
|
20
|
+
--key-side: #131416;
|
|
21
|
+
--lit: #E4E4E0;
|
|
22
|
+
--lit-top: #F6F6F3;
|
|
23
|
+
--lit-side: #8E8F8C;
|
|
24
|
+
color-scheme: dark;
|
|
25
|
+
}
|
|
26
|
+
* { box-sizing: border-box; }
|
|
27
|
+
[hidden] { display: none !important; }
|
|
28
|
+
html, body { margin: 0; height: 100%; }
|
|
29
|
+
body {
|
|
30
|
+
background: var(--page);
|
|
31
|
+
color: var(--ink);
|
|
32
|
+
font: 400 16px/1.5 "Geist", system-ui, sans-serif;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
-webkit-font-smoothing: antialiased;
|
|
35
|
+
-webkit-tap-highlight-color: transparent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Buttons are low dark keys; the main action is the light key. */
|
|
39
|
+
button {
|
|
40
|
+
font: 500 14px/1 "Geist", system-ui, sans-serif;
|
|
41
|
+
color: var(--ink);
|
|
42
|
+
background: linear-gradient(var(--key-top), var(--key));
|
|
43
|
+
border: 0;
|
|
44
|
+
border-radius: 10px;
|
|
45
|
+
padding: 11px 16px 12px;
|
|
46
|
+
box-shadow: 0 2px 0 var(--key-side), 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
transition: transform .06s, box-shadow .06s, opacity .2s;
|
|
49
|
+
}
|
|
50
|
+
button:active { transform: translateY(2px); box-shadow: 0 0 0 var(--key-side), 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
|
|
51
|
+
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
|
|
52
|
+
button:disabled { opacity: .5; cursor: default; }
|
|
53
|
+
button.primary { color: var(--plate); background: linear-gradient(var(--lit-top), var(--lit)); box-shadow: 0 2px 0 var(--lit-side), 0 6px 18px rgba(0, 0, 0, 0.35); }
|
|
54
|
+
button[hidden] { display: none; }
|
|
55
|
+
|
|
56
|
+
.player {
|
|
57
|
+
position: fixed; inset: 0;
|
|
58
|
+
display: grid; place-items: center;
|
|
59
|
+
padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
|
|
60
|
+
}
|
|
61
|
+
.player.idle { cursor: none; }
|
|
62
|
+
.frame {
|
|
63
|
+
position: relative;
|
|
64
|
+
height: min(100dvh, calc(100vw * 16 / 9));
|
|
65
|
+
aspect-ratio: 9 / 16;
|
|
66
|
+
border-radius: 18px;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.5);
|
|
69
|
+
}
|
|
70
|
+
.frame[data-shape="wide"] {
|
|
71
|
+
height: auto;
|
|
72
|
+
width: min(100vw, calc(100dvh * 16 / 9));
|
|
73
|
+
aspect-ratio: 16 / 9;
|
|
74
|
+
}
|
|
75
|
+
canvas#stage { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; }
|
|
76
|
+
.bars {
|
|
77
|
+
position: absolute; top: 14px; left: 16px; right: 16px;
|
|
78
|
+
display: flex; gap: 4px; pointer-events: none;
|
|
79
|
+
}
|
|
80
|
+
.bars span { flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
|
|
81
|
+
.bars i { display: block; height: 100%; width: 0; background: var(--ink); }
|
|
82
|
+
.controls { position: absolute; top: 28px; right: 16px; display: flex; gap: 8px; transition: opacity .5s; }
|
|
83
|
+
.controls button { padding: 9px 12px 10px; font-size: 12px; }
|
|
84
|
+
.idle .controls { opacity: 0; }
|
|
85
|
+
.idle .controls:focus-within { opacity: 1; }
|
|
86
|
+
|
|
87
|
+
.start { position: absolute; inset: 0; background: rgba(20, 21, 23, 0.55); }
|
|
88
|
+
.start > div {
|
|
89
|
+
position: absolute; left: 16px; right: 16px; bottom: 12%;
|
|
90
|
+
display: flex; flex-direction: column; align-items: center; gap: 16px;
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
.start button { font-size: 17px; padding: 18px 28px 19px; }
|
|
94
|
+
.start p { margin: 0; color: var(--soft); font-size: 15px; max-width: 36ch; }
|
|
95
|
+
|
|
96
|
+
.toast {
|
|
97
|
+
position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
|
|
98
|
+
transform: translate(-50%, 12px);
|
|
99
|
+
margin: 0; max-width: calc(100vw - 32px);
|
|
100
|
+
padding: 12px 18px;
|
|
101
|
+
border-radius: 12px;
|
|
102
|
+
background: rgba(44, 46, 50, 0.92);
|
|
103
|
+
backdrop-filter: blur(12px);
|
|
104
|
+
box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.45);
|
|
105
|
+
font-size: 14px;
|
|
106
|
+
opacity: 0; pointer-events: none;
|
|
107
|
+
transition: opacity .25s, transform .25s;
|
|
108
|
+
z-index: 10;
|
|
109
|
+
}
|
|
110
|
+
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
|
111
|
+
|
|
112
|
+
.share, .ending, .missing { position: fixed; inset: 0; overflow-y: auto; padding: 48px 16px; }
|
|
113
|
+
.share-inner {
|
|
114
|
+
max-width: 1040px; min-height: 100%; margin: 0 auto;
|
|
115
|
+
display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center;
|
|
116
|
+
}
|
|
117
|
+
.share-inner:has(img[data-shape="tall"]) { grid-template-columns: minmax(0, 340px) minmax(0, 440px); justify-content: center; }
|
|
118
|
+
@media (max-width: 760px) { .share-inner, .share-inner:has(img[data-shape="tall"]) { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
|
|
119
|
+
#share-preview { width: 100%; display: block; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.5); }
|
|
120
|
+
#share-preview[data-shape="tall"] { max-height: 70dvh; width: auto; max-width: 100%; margin: 0 auto; }
|
|
121
|
+
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; outline: none; }
|
|
122
|
+
.lede { color: var(--soft); margin: 0 0 24px; max-width: 46ch; }
|
|
123
|
+
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
|
|
124
|
+
a.button {
|
|
125
|
+
font: 500 14px/1 "Geist", system-ui, sans-serif; color: var(--ink); text-decoration: none;
|
|
126
|
+
background: linear-gradient(var(--key-top), var(--key)); border-radius: 10px; padding: 11px 16px 12px;
|
|
127
|
+
box-shadow: 0 2px 0 var(--key-side), 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
|
|
128
|
+
}
|
|
129
|
+
a.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
|
|
130
|
+
a.button[hidden] { display: none; }
|
|
131
|
+
.choices { margin: 32px 0 0; padding: 0; border: 0; }
|
|
132
|
+
.choices legend { color: var(--soft); font-size: 14px; margin-bottom: 12px; padding: 0; }
|
|
133
|
+
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
134
|
+
.chip { padding: 8px 12px 9px; font-size: 13px; }
|
|
135
|
+
.chip[aria-pressed="false"] { color: var(--faint); background: none; box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; }
|
|
136
|
+
.more { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
|
|
137
|
+
.note { color: var(--soft); font-size: 14px; margin: 0 0 16px; }
|
|
138
|
+
.ending, .missing { display: grid; place-items: center; text-align: center; }
|
|
139
|
+
.ending > div, .missing > div { max-width: 480px; }
|
|
140
|
+
.ending .lede, .missing .lede { margin: 0 auto 24px; }
|
|
141
|
+
.ending .row { justify-content: center; }
|
|
142
|
+
code.command {
|
|
143
|
+
display: block; margin: 0 auto 20px; padding: 16px 20px; border-radius: 12px;
|
|
144
|
+
font: 500 20px/1 "Geist", ui-monospace, monospace; background: var(--key-side); box-shadow: inset 0 0 0 1px var(--line);
|
|
145
|
+
}
|
|
146
|
+
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
147
|
+
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
|
|
148
|
+
</style>
|
|
149
|
+
</head>
|
|
150
|
+
<body>
|
|
151
|
+
<main class="player" id="player">
|
|
152
|
+
<div class="frame" id="frame">
|
|
153
|
+
<canvas id="stage" width="1080" height="1920" aria-hidden="true"></canvas>
|
|
154
|
+
<div class="bars" id="bars"></div>
|
|
155
|
+
<div class="controls">
|
|
156
|
+
<button id="sound" aria-pressed="true">Sound on</button>
|
|
157
|
+
<button id="save-now">Save this card</button>
|
|
158
|
+
<button id="skip">Skip to sharing</button>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="start" id="start">
|
|
161
|
+
<div>
|
|
162
|
+
<button class="primary" id="play">Play my story</button>
|
|
163
|
+
<p id="start-note">Sound on for the full effect. Tap the right side to go on, the left to go back. Press S to save a card.</p>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<p class="sr-only" aria-live="polite" id="live"></p>
|
|
168
|
+
</main>
|
|
169
|
+
|
|
170
|
+
<section class="share" id="share" aria-labelledby="share-title" hidden>
|
|
171
|
+
<div class="share-inner">
|
|
172
|
+
<img id="share-preview" alt="Your story's summary card">
|
|
173
|
+
<div>
|
|
174
|
+
<h1 id="share-title" tabindex="-1">Share your story</h1>
|
|
175
|
+
<p class="lede">Anyone with the link can watch it play, keys and sound included. The story travels inside the link itself, so it isn't stored anywhere.</p>
|
|
176
|
+
<p class="note" id="offline" hidden>Share links turn on once the public player page is online. For now, save the video or the card.</p>
|
|
177
|
+
<div class="row">
|
|
178
|
+
<button class="primary" id="copy-link" data-needs-link>Copy link</button>
|
|
179
|
+
<button id="share-link" hidden>Share</button>
|
|
180
|
+
<a class="button" id="post-x" target="_blank" rel="noopener" data-needs-link>Post on X</a>
|
|
181
|
+
<a class="button" id="post-linkedin" target="_blank" rel="noopener" data-needs-link>Post on LinkedIn</a>
|
|
182
|
+
</div>
|
|
183
|
+
<fieldset class="choices">
|
|
184
|
+
<legend>Cards in your story. Tap one to leave it out of the link.</legend>
|
|
185
|
+
<div class="chips" id="choices"></div>
|
|
186
|
+
</fieldset>
|
|
187
|
+
<div class="more row">
|
|
188
|
+
<button id="save-video">Save video</button>
|
|
189
|
+
<button id="save-image">Save card image</button>
|
|
190
|
+
<button data-replay>Watch again</button>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</section>
|
|
195
|
+
|
|
196
|
+
<section class="ending" id="ending" aria-labelledby="ending-title" hidden>
|
|
197
|
+
<div>
|
|
198
|
+
<h1 id="ending-title" tabindex="-1">Make your own</h1>
|
|
199
|
+
<p class="lede">Run this in your terminal. It reads your Claude Code and Codex logs on your computer, and nothing leaves it unless you share.</p>
|
|
200
|
+
<code class="command">npx @shadevkumar/agent-wrapped</code>
|
|
201
|
+
<div class="row">
|
|
202
|
+
<button class="primary" data-copy-command>Copy command</button>
|
|
203
|
+
<button data-replay>Watch again</button>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</section>
|
|
207
|
+
|
|
208
|
+
<section class="missing" id="missing" hidden>
|
|
209
|
+
<div>
|
|
210
|
+
<h1>This story didn't come through</h1>
|
|
211
|
+
<p class="lede">The link may have been cut off, or this browser may be too old to open it. Ask for the link again, or make your own with npx @shadevkumar/agent-wrapped.</p>
|
|
212
|
+
</div>
|
|
213
|
+
</section>
|
|
214
|
+
|
|
215
|
+
<section class="ending" id="home" aria-labelledby="home-title" hidden>
|
|
216
|
+
<div>
|
|
217
|
+
<h1 id="home-title">Agent Wrapped 2026</h1>
|
|
218
|
+
<p class="lede">Your year with Claude Code and Codex, played back in keyboard keys: your favourite typo, your latest night, your streak and a letter from your agents. Run this in your terminal. It reads your logs on your computer and nothing leaves it unless you share.</p>
|
|
219
|
+
<code class="command">npx @shadevkumar/agent-wrapped</code>
|
|
220
|
+
<div class="row">
|
|
221
|
+
<button class="primary" data-copy-command>Copy command</button>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</section>
|
|
225
|
+
|
|
226
|
+
<p class="toast" id="toast" role="status"></p>
|
|
227
|
+
|
|
228
|
+
<script type="application/json" id="data">/*DATA*/</script>
|
|
229
|
+
<script type="application/json" id="player-url">/*PLAYER_URL*/</script>
|
|
230
|
+
<script type="module">
|
|
231
|
+
/*SCRIPT*/
|
|
232
|
+
</script>
|
|
233
|
+
</body>
|
|
234
|
+
</html>
|