wrapped-agents 1.2.0 → 1.2.1
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/SKILL.md +3 -3
- package/package.json +1 -1
- package/page/story.html +27 -25
- package/src/readers/cursor.mjs +4 -2
- package/src/stats/awards.mjs +2 -2
- package/src/stats/tiers.mjs +1 -1
package/SKILL.md
CHANGED
|
@@ -12,12 +12,12 @@ Build the user's year with AI coding agents, wrapped. All numbers come from the
|
|
|
12
12
|
Run, in a terminal (read-only over the user's agent logs; writes only to the temp folder):
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npx -y wrapped-agents@1.2.
|
|
15
|
+
npx -y wrapped-agents@1.2.1 --json --no-open
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
It prints the path of `wrapped-<year>.json`. Before running, tell the user in one sentence: it reads their local agent logs (~/.claude, ~/.codex, Cursor, ~/.gemini, ~/.qwen, OpenCode, ~/.pi, ~/.vibe) read-only and nothing about their usage leaves the machine.
|
|
19
19
|
|
|
20
|
-
No Node? Use the first that exists: `bunx wrapped-agents@1.2.
|
|
20
|
+
No Node? Use the first that exists: `bunx wrapped-agents@1.2.1 --json --no-open` · `deno run -A npm:wrapped-agents@1.2.1 --json --no-open` · or `git clone --depth 1 --branch v1.2.1 https://github.com/LeonardoDaviti/agent-wrapped "$TMPDIR/agent-wrapped" && node "$TMPDIR/agent-wrapped/src/cli.mjs" --json --no-open`. If none works, say so and point to https://leonardodaviti.github.io/agent-wrapped.
|
|
21
21
|
|
|
22
22
|
If a sandbox blocks reading a folder, ask the user once for read access; otherwise continue and mention which harness was skipped.
|
|
23
23
|
|
|
@@ -30,7 +30,7 @@ Also write one playful guess at what happened on `busiest.date` (≤ 20 words).
|
|
|
30
30
|
## 3 · Render and open
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npx -y wrapped-agents@1.2.
|
|
33
|
+
npx -y wrapped-agents@1.2.1 --from "<path to wrapped-<year>.json>" --roast "<your line>" --quip "<your tokens line>" --day "<your busiest-day guess>" --roast-by "<your harness, e.g. Claude Code>"
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
If `handle.github` in the file is null, ask the user for their GitHub username first and add `--handle <name>`. If they ask for a different look, add `--skin <wrapped|anthropic|claude-code|codex|opencode|pi|hermes|mistral-vibe|yours>` (default: their most-used harness and its own theme).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrapped-agents",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Your year with AI coding agents, wrapped. Claude Code, Codex, Cursor, Gemini CLI, Qwen Code, OpenCode, Pi, Mistral Vibe. Runs locally; your usage data never leaves your machine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/page/story.html
CHANGED
|
@@ -146,14 +146,16 @@ html.embed,html.embed body{overflow:hidden;height:100%}html.embed #report,html.e
|
|
|
146
146
|
<script>
|
|
147
147
|
(() => {
|
|
148
148
|
'use strict';
|
|
149
|
-
// <qr> · QR encoder: byte mode, ECC M, versions 1–
|
|
149
|
+
// <qr> · QR encoder: byte mode, ECC M, versions 1–20, all 8 masks scored (ISO 18004 penalty rules)
|
|
150
150
|
const QR = (() => {
|
|
151
151
|
// [ecc codewords per block, [blocks, data codewords], [blocks, data codewords]?] for ECC level M
|
|
152
152
|
const M = [null, [10, [1, 16]], [16, [1, 28]], [26, [1, 44]], [18, [2, 32]], [24, [2, 43]], [16, [4, 27]], [18, [4, 31]],
|
|
153
153
|
[22, [2, 38], [2, 39]], [22, [3, 36], [2, 37]], [26, [4, 43], [1, 44]], [30, [1, 50], [4, 51]], [22, [6, 36], [2, 37]],
|
|
154
|
-
[22, [8, 37], [1, 38]], [24, [4, 40], [5, 41]], [24, [5, 41], [5, 42]]
|
|
154
|
+
[22, [8, 37], [1, 38]], [24, [4, 40], [5, 41]], [24, [5, 41], [5, 42]],
|
|
155
|
+
[28, [7, 45], [3, 46]], [28, [10, 46], [1, 47]], [26, [9, 43], [4, 44]], [26, [3, 44], [11, 45]], [26, [3, 41], [13, 42]]];
|
|
155
156
|
const ALIGN = [null, [], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50],
|
|
156
|
-
[6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70]
|
|
157
|
+
[6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70],
|
|
158
|
+
[6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90]];
|
|
157
159
|
const EXP = new Uint8Array(512), LOG = new Uint8Array(256);
|
|
158
160
|
for (let i = 0, x = 1; i < 255; i++) { EXP[i] = x; LOG[x] = i; x <<= 1; if (x & 256) x ^= 0x11d; }
|
|
159
161
|
for (let i = 255; i < 512; i++) EXP[i] = EXP[i - 255];
|
|
@@ -187,11 +189,11 @@ const QR = (() => {
|
|
|
187
189
|
}
|
|
188
190
|
return p + Math.floor(Math.abs(dark * 20 - n * n * 10) / (n * n)) * 10; // rule 4
|
|
189
191
|
}
|
|
190
|
-
/** text → { version, size, mask, modules: boolean[y][x] }; throws above version
|
|
192
|
+
/** text → { version, size, mask, modules: boolean[y][x] }; throws above version 20 */
|
|
191
193
|
function encode(text, { minVersion = 1, mask: forceMask } = {}) {
|
|
192
194
|
const bytes = [...new TextEncoder().encode(text)];
|
|
193
|
-
let v = minVersion; while (v <=
|
|
194
|
-
if (v >
|
|
195
|
+
let v = minVersion; while (v <= 20 && capacity(v) < bytes.length) v++;
|
|
196
|
+
if (v > 20) throw new Error(`QR payload too big: ${bytes.length} bytes > ${capacity(20)}`);
|
|
195
197
|
const bits = [], put = (val, len) => { for (let i = len - 1; i >= 0; i--) bits.push((val >>> i) & 1); };
|
|
196
198
|
put(4, 4); put(bytes.length, v < 10 ? 8 : 16); bytes.forEach(b => put(b, 8));
|
|
197
199
|
put(0, Math.min(4, dataCw(v) * 8 - bits.length)); while (bits.length % 8) bits.push(0);
|
|
@@ -265,12 +267,12 @@ if (typeof location !== 'undefined' && /[?&]embed=1/.test(location.search)) docu
|
|
|
265
267
|
typeof addEventListener === 'function' && addEventListener('message', e => { const m = e.data; if (m && m.awSkin && window.AW && window.AW.setSkin) window.AW.setSkin(m.awSkin); });
|
|
266
268
|
const SITE = 'https://leonardodaviti.github.io/agent-wrapped/', REPO = 'leonardodaviti/agent-wrapped';
|
|
267
269
|
const HARNESS = { 'claude-code': 'Claude Code', codex: 'Codex', pi: 'Pi', 'mistral-vibe': 'Mistral Vibe', opencode: 'OpenCode', hermes: 'Hermes', 'gemini-cli': 'Gemini CLI', cursor: 'Cursor', copilot: 'Copilot CLI', goose: 'Goose', aider: 'Aider', cline: 'Cline' };
|
|
268
|
-
const LABELS = { harness: 'Harness of the Year', model: 'Model of the Year', tokens: 'Tokens', spendings: 'Spendings', prompts: 'Prompts', sessions: 'Sessions', streak: 'Streak', marathon: 'Marathon', swarm: 'Swarm', peakHour: 'Peak hour', politeness: 'Politeness', backseat: 'Backseat driver', lines: 'Lines written', mostResumed: 'Most resumed', wordOfYear: 'Word of the Year', agentClass: 'Agent class', tier: 'Top X%', skill: 'Skill of the Year', tool: 'Tool of the Year', rateLimits: '
|
|
270
|
+
const LABELS = { harness: 'Harness of the Year', model: 'Model of the Year', tokens: 'Tokens', spendings: 'Spendings', prompts: 'Prompts', sessions: 'Sessions', streak: 'Streak', marathon: 'Marathon', swarm: 'Swarm', peakHour: 'Peak hour', politeness: 'Politeness', backseat: 'Backseat driver', lines: 'Lines written', mostResumed: 'Most resumed', wordOfYear: 'Word of the Year', agentClass: 'Agent class', tier: 'Top X%', skill: 'Skill of the Year', tool: 'Tool of the Year', rateLimits: 'Limits reached', age: 'Agentic Age', twin: 'Agent Twin', youreRight: '“You’re right”', modelRace: 'Model race', caps: 'ALL CAPS', screenshots: 'Screenshots', compactions: 'Compactions', prs: 'Shipped', ctrlZ: 'Ctrl+Z Award', roast: 'Roast' };
|
|
269
271
|
// order in which award values ride along in the QR link (most wanted first)
|
|
270
|
-
const QR_AWARDS = ['
|
|
272
|
+
const QR_AWARDS = ['rateLimits', 'skill', 'peakHour', 'politeness', 'backseat', 'youreRight', 'spendings', 'marathon', 'wordOfYear', 'lines', 'ctrlZ', 'prs', 'mostResumed', 'screenshots', 'caps', 'compactions', 'modelRace', 'tool'];
|
|
271
273
|
|
|
272
|
-
/** the compact subset that travels in the #d= fragment; drops optional fields until the QR fits (
|
|
273
|
-
function compact(W, maxBytes = QR.capacity(
|
|
274
|
+
/** the compact subset that travels in the #d= fragment; drops optional fields until the QR fits (v20, ECC M) */
|
|
275
|
+
function compact(W, maxBytes = QR.capacity(20)) {
|
|
274
276
|
const t = W.totals || {}, aw = Object.fromEntries((W.awards || []).map(a => [a.id, a.value]));
|
|
275
277
|
const base = { v: 1, y: W.year, h: W.handle?.github || W.handle?.display || '', s: W.theme?.skin || 'wrapped',
|
|
276
278
|
t: [t.prompts || 0, t.sessions || 0, t.activeDays || 0, t.streak?.days || 0, Math.round((t.tokens || 0) / 1e6), Math.round((t.cacheShare || 0) * 100), t.subagents || 0] };
|
|
@@ -281,18 +283,18 @@ function compact(W, maxBytes = QR.capacity(15)) {
|
|
|
281
283
|
o => W.tier && (o.T = [W.tier.label]),
|
|
282
284
|
o => W.age?.years != null && (o.A = W.age.years),
|
|
283
285
|
o => W.twin && (o.X = [W.twin.name, W.twin.match]),
|
|
286
|
+
o => W.models?.length > 1 && (o.M = W.models.slice(0, 3).map(m => [m.label, pc(m.share)])),
|
|
287
|
+
o => W.quiz?.choices?.includes(W.quiz.answer) && (o.q = [...W.quiz.choices.slice(0, 3), W.quiz.choices.indexOf(W.quiz.answer)]),
|
|
288
|
+
o => W.busiest?.date && (o.b = [W.busiest.date, W.busiest.prompts ?? null, W.busiest.peakHour ?? null]),
|
|
284
289
|
o => W.roast && (o.r = W.roast),
|
|
285
290
|
o => W.harnesses?.length > 2 && (o.H = W.harnesses.slice(0, 3).map(h => [h.id, pc(h.share)])),
|
|
286
291
|
o => W.tier?.power && (o.T = [W.tier.label, W.tier.power]),
|
|
287
|
-
o => W.models?.length > 1 && (o.M = W.models.slice(0, 3).map(m => [m.label, pc(m.share)])),
|
|
288
|
-
...QR_AWARDS.map(id => o => aw[id] && ((o.a = o.a || {})[id] = aw[id])),
|
|
289
|
-
o => W.twin?.why && (o.X = [W.twin.name, W.twin.match, W.twin.why]),
|
|
290
|
-
o => W.spendings?.usd && (o.u = [W.spendings.usd, W.spendings.perDay || 0]),
|
|
291
292
|
o => W.compare?.text && (o.c = W.compare.text),
|
|
292
|
-
o => W.quiz?.choices?.includes(W.quiz.answer) && (o.q = [...W.quiz.choices.slice(0, 3), W.quiz.choices.indexOf(W.quiz.answer)]),
|
|
293
|
-
o => W.busiest?.date && (o.b = [W.busiest.date, W.busiest.prompts ?? null, W.busiest.peakHour ?? null]),
|
|
294
293
|
o => W.busiest?.date && W.dayLine && (o.b = [W.busiest.date, W.busiest.prompts ?? null, W.busiest.peakHour ?? null, W.dayLine]),
|
|
295
294
|
o => W.roastBy && (o.w = W.roastBy),
|
|
295
|
+
o => W.spendings?.usd && (o.u = [W.spendings.usd, W.spendings.perDay || 0]),
|
|
296
|
+
...QR_AWARDS.map(id => o => aw[id] && ((o.a = o.a || {})[id] = aw[id])),
|
|
297
|
+
o => W.twin?.why && (o.X = [W.twin.name, W.twin.match, W.twin.why]),
|
|
296
298
|
];
|
|
297
299
|
const size = o => SITE.length + 3 + B64U.enc(JSON.stringify(o)).length;
|
|
298
300
|
let o = base;
|
|
@@ -401,11 +403,11 @@ const CTA = () => `wrap my ${W?.year || 'year'}`;
|
|
|
401
403
|
// the call to action under every card, on one line: the hook, then the exact command in a code pill
|
|
402
404
|
// the CTA typed into the current skin's own agent input box (one box, one line; caret blinks live, still in exports)
|
|
403
405
|
const CHAT = {
|
|
404
|
-
'claude-code': { box: 'border:3px solid
|
|
406
|
+
'claude-code': { box: 'border:3px solid color-mix(in srgb,currentColor 45%,transparent);border-radius:18px;padding:20px 28px', p: '<b style="opacity:.55">></b>', cmd: null },
|
|
405
407
|
codex: { box: 'background:color-mix(in srgb,currentColor 9%,transparent);padding:22px 28px', p: '<b>›</b>', cmd: null },
|
|
406
408
|
'gemini-cli': { box: 'border:3px solid transparent;border-radius:16px;padding:20px 28px;background:linear-gradient(#0b0b0b,#0b0b0b) padding-box,linear-gradient(90deg,#4796e4,#847ace,#c3677f) border-box;color:#f3f0e8', p: '<b style="color:#847ace">></b>', cmd: '#4796e4' },
|
|
407
409
|
'mistral-vibe': { box: 'border:3px solid transparent;border-radius:6px;padding:20px 28px;background:linear-gradient(#000,#000) padding-box,linear-gradient(90deg,#ffd800,#ff8205,#e10500) border-box;color:#fff', p: '<b style="color:#ff8205">></b>', cmd: '#ffd800' },
|
|
408
|
-
opencode: { box: 'border-left:8px solid
|
|
410
|
+
opencode: { box: 'border-left:8px solid currentColor;background:color-mix(in srgb,currentColor 8%,transparent);padding:22px 28px', p: '', cmd: null, meta: 'Build · wrapped-agents' },
|
|
409
411
|
pi: { box: 'border-top:3px solid currentColor;border-bottom:3px solid currentColor;padding:18px 4px', p: '', cmd: null },
|
|
410
412
|
cursor: { box: 'background:#1d1d1d;color:#e4e4e4;border:2px solid #343434;border-radius:22px;padding:22px 28px', p: '', cmd: '#e4e4e4', meta: 'Agent ▾ Auto', send: '#e4e4e4;color:#1d1d1d' },
|
|
411
413
|
anthropic: { box: 'background:#fff;color:#141413;border:2px solid #e3dfd5;border-radius:28px;padding:22px 28px;box-shadow:0 6px 20px rgba(0,0,0,.08)', p: '', cmd: '#c6613f', sans: 1, send: '#c6613f;color:#fff' },
|
|
@@ -520,7 +522,7 @@ S.race = {
|
|
|
520
522
|
ok: () => raceFrames().F.length > 1 || raceFrames().models.length > 1, dur: () => raceFrames().F.length > 1 ? 9500 : 5000,
|
|
521
523
|
html: () => {
|
|
522
524
|
const { models, F } = raceFrames(), fin = F.at(-1).vals, rank = order(fin), n = Math.min(models.length, 6);
|
|
523
|
-
const col = i => C(COLORS[rank.indexOf(i) % 5]), tot = F.at(-1).tot || fin.reduce((a, b) => a + b, 0) || 1, mx = Math.max(...fin) || 1;
|
|
525
|
+
const col = i => rank.indexOf(i) % 5 === 0 ? 'var(--lit,var(--li))' : C(COLORS[rank.indexOf(i) % 5]), tot = F.at(-1).tot || fin.reduce((a, b) => a + b, 0) || 1, mx = Math.max(...fin) || 1;
|
|
524
526
|
const win = models[rank[0]], wm = (W.models || []).find(m => m.label === win);
|
|
525
527
|
return `<div class="slide">${top()}
|
|
526
528
|
<div class="M lab in">Model race · ${W.year || ''}</div><div class="H in" style="font-size:150px;margin-top:24px">Who ruled<br><span class="rm" style="color:var(--lit,var(--li))">${esc(F.at(-1).label)}</span>?</div>
|
|
@@ -599,13 +601,13 @@ S.bento = {
|
|
|
599
601
|
${head('My ' + (W.year || ''))}
|
|
600
602
|
<div class="col grow" style="gap:26px">
|
|
601
603
|
<div class="row" style="flex:1.5;min-height:0">
|
|
602
|
-
<div class="tile in" style="flex:1.35;min-width:0;background:var(--li);color:var(--ink);display:flex;flex-direction:column">${hw ? `<div class="M" style="font-size:28px">Harness of the Year</div><div class="H fit" style="font-size:150px;margin-top:40px">${esc(hw.value)}</div>${hw.detail ? `<div style="font-size:42px;font-weight:800;margin-top:16px">${esc(hw.detail)}</div>` : ''}
|
|
604
|
+
<div class="tile in" style="flex:1.35;min-width:0;background:var(--li);color:var(--ink);display:flex;flex-direction:column">${hw ? `<div class="M" style="font-size:28px;white-space:nowrap;letter-spacing:.04em">Harness of the Year</div><div class="H fit" style="font-size:150px;margin-top:40px">${esc(hw.value)}</div>${hw.detail ? `<div style="font-size:42px;font-weight:800;margin-top:16px">${esc(hw.detail)}</div>` : ''}
|
|
603
605
|
${H.length > 1 ? `<div class="mb" style="margin-top:auto;display:flex;gap:8px;align-items:flex-end;height:110px">${H.map(h => `<i class="bar" style="flex:1;height:${Math.max(8, (h.share || 0) / mx * 110)}px;border-radius:6px;background:var(--ink);opacity:${(.25 + (h.share || 0) / mx * .75).toFixed(2)};transform-origin:50% 100%"></i>`).join('')}</div>` : ''}`
|
|
604
606
|
: `<div class="M" style="font-size:28px">Prompts</div><div class="H fit" style="font-size:150px;margin-top:40px">${cnt(t.prompts)}</div>`}</div>
|
|
605
|
-
${mw ? `<div class="tile in" style="flex:1;min-width:0;background:var(--pk);color:var(--ink);display:flex;flex-direction:column"><div class="M" style="font-size:28px">Model of the Year</div><div class="H fit" style="font-size:190px;margin-top:30px">${esc(mw.value)}</div>${mw.detail ? `<div style="font-size:42px;font-weight:800;margin-top:16px">${esc(mw.detail)}</div>` : ''}
|
|
607
|
+
${mw ? `<div class="tile in" style="flex:1;min-width:0;background:var(--pk);color:var(--ink);display:flex;flex-direction:column"><div class="M" style="font-size:28px;white-space:nowrap;letter-spacing:.04em">Model of the Year</div><div class="H fit" style="font-size:190px;margin-top:30px">${esc(mw.value)}</div>${mw.detail ? `<div style="font-size:42px;font-weight:800;margin-top:16px">${esc(mw.detail)}</div>` : ''}
|
|
606
608
|
${share > 0 ? `<div class="sq" style="margin-top:auto;display:flex;gap:10px">${Array.from({ length: 5 }, (_, i) => { const f = Math.round(Math.max(0, Math.min(1, share * 5 - i)) * 100); return `<i style="width:44px;height:44px;border-radius:12px;background:linear-gradient(90deg,var(--ink) ${f}%,color-mix(in srgb,var(--ink) 22%,transparent) ${f}%)"></i>`; }).join('')}</div>` : ''}</div>` : ''}
|
|
607
609
|
</div>
|
|
608
|
-
${small.length ? `<div class="row" style="flex:1;min-height:0">${small.map(([a, v, d, c]) => `<div class="tile in" style="flex:1 1 0;min-width:0;background:${C(c)};color:${c === 'bl' ? 'var(--obl)' : 'var(--ink)'};display:flex;flex-direction:column;justify-content:space-between"><div class="M" style="font-size:
|
|
610
|
+
${small.length ? `<div class="row" style="flex:1;min-height:0">${small.map(([a, v, d, c]) => `<div class="tile in" style="flex:1 1 0;min-width:0;background:${C(c)};color:${c === 'bl' ? 'var(--obl)' : 'var(--ink)'};display:flex;flex-direction:column;justify-content:space-between"><div class="M" style="font-size:22px;white-space:nowrap;letter-spacing:.04em">${a}</div><div><div class="H fit" style="font-size:88px;line-height:.95">${v}</div>${d ? `<div class="M N" style="font-size:22px;opacity:.75;margin-top:12px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden">${esc(d).replace(' · ', '<br>')}</div>` : ''}</div></div>`).join('')}</div>` : ''}
|
|
609
611
|
${cls ? `<div class="tile in" style="flex:none;border:4px solid var(--fg);padding:28px 40px;display:flex;justify-content:space-between;align-items:center;gap:30px"><div class="col" style="flex:none;gap:10px"><span class="M" style="font-size:28px">Agent class</span>${slogan ? `<span style="font-size:26px;opacity:.7;max-width:420px">${esc(slogan)}</span>` : ''}</div><span class="H fit" style="font-size:68px;min-width:0;text-align:right">${esc(cls)}</span></div>` : ''}
|
|
610
612
|
</div>
|
|
611
613
|
${heat ? `<div class="heat in" style="margin-top:30px">${heat.map(c => `<b>${c.map(s => `<i${s ? ` style="${s}"` : ''}></i>`).join('')}</b>`).join('')}</div>` : ''}
|
|
@@ -695,7 +697,7 @@ S.age = {
|
|
|
695
697
|
return `<div class="slide" style="padding:0">
|
|
696
698
|
${A ? `<div class="col pt" style="flex:1;background:var(--pk);color:var(--ink);padding:104px 44px 50px;min-height:0">${top(1)}
|
|
697
699
|
<div class="M in" style="font-size:34px">Your agentic age is</div>
|
|
698
|
-
<div class="row" style="align-items:flex-end;gap:40px;flex:1;min-height:0"><div class="H in" style="flex:none;font-size:${Math.round((X ? 460 : 640) * Math.min(1, 2 / String(Math.round(A.years)).length))}px;letter-spacing:-.07em;line-height:.8">${cnt(A.years)}</div>
|
|
700
|
+
<div class="row" style="align-items:flex-end;gap:40px;flex:1;min-height:0"><div class="H in" style="flex:none;font-size:${Math.round((X ? 460 : 640) * Math.min(1, 2 / String(Math.round(A.years)).length))}px;letter-spacing:-.07em;line-height:.8;padding-right:.1em">${cnt(A.years)}</div>
|
|
699
701
|
${line ? `<div class="in" style="min-width:0;font-size:46px;font-weight:800;line-height:1.12;padding-bottom:20px">${line}</div>` : ''}</div>
|
|
700
702
|
${why.length ? `<div class="row in" style="flex-wrap:wrap;gap:14px;margin-top:34px">${why.map(w => `<span class="pill M N" style="font-size:28px;background:var(--ink);color:var(--pk)">${esc(w)}</span>`).join('')}</div>` : ''}</div>` : ''}
|
|
701
703
|
${X ? `<div class="col${A ? '' : ' pt'}" style="flex:1;padding:${A ? 60 : 104}px 44px 44px;min-height:0">${A ? '' : top()}
|
|
@@ -785,8 +787,8 @@ S.share = {
|
|
|
785
787
|
// wall: every award on one card (the share image)
|
|
786
788
|
function miniCard() { try { return S.bento.html().replace('<div class="slide', '<div class="slide x'); } catch { return ''; } }
|
|
787
789
|
function wallHTML({ mini } = {}) {
|
|
788
|
-
const first = ['harness', 'model', 'skill', '
|
|
789
|
-
const aw = (W.awards || []).filter(a => a.value && !['sessions', 'activeDays', 'subagents'].includes(a.id)).sort((a, b) => rank(a) - rank(b)).map(a => [a.label || LABELS[a.id] || a.id, red(a.value)]);
|
|
790
|
+
const first = ['harness', 'model', 'skill', 'rateLimits'], rank = a => first.indexOf(a.id) + 1 || 9; // the card's four lead; no sessions / active days / subagents / tool / prompts tiles
|
|
791
|
+
const aw = (W.awards || []).filter(a => a.value && !['sessions', 'activeDays', 'subagents', 'tool', 'prompts'].includes(a.id)).sort((a, b) => rank(a) - rank(b)).map(a => [a.label || LABELS[a.id] || a.id, red(a.value)]);
|
|
790
792
|
if (W.roast) aw.push(['Roast', '“' + (W.roast.split(/(?<=[.!?])\s/)[0] || W.roast).slice(0, 40) + '”']);
|
|
791
793
|
const hs = (W.harnesses || []).map(h => h.label || HARNESS[h.id] || h.id).slice(0, 4).join(' · ');
|
|
792
794
|
return `<div class="slide${mini ? ' x' : ''}" style="padding-top:${mini ? 60 : ''}px">${head(String(W.year || ''))}
|
package/src/readers/cursor.mjs
CHANGED
|
@@ -79,7 +79,9 @@ const when = v => (typeof v === 'number' ? (v > 1e12 ? v : NaN) : typeof v === '
|
|
|
79
79
|
const firstOk = (...v) => { for (const x of v) { const t = when(x); if (Number.isFinite(t)) return t; } return NaN; };
|
|
80
80
|
|
|
81
81
|
function uriPath(u) {
|
|
82
|
-
try {
|
|
82
|
+
let x; try { x = new URL(u); } catch { return null; }
|
|
83
|
+
if (x.protocol === 'file:') try { return fileURLToPath(x); } catch { /* a POSIX file URL read on Windows */ }
|
|
84
|
+
try { return decodeURIComponent(x.pathname || ''); } catch { return x.pathname || null; }
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
class Acc {
|
|
@@ -133,7 +135,7 @@ async function workspaceFolders(userDir) {
|
|
|
133
135
|
let ids = []; try { ids = await fsp.readdir(root); } catch { return { folders, chatWs }; }
|
|
134
136
|
for (const ws of ids) {
|
|
135
137
|
const wj = await readJSON(path.join(root, ws, 'workspace.json'));
|
|
136
|
-
const u = wj && (wj.folder || wj.workspace); if (u) folders.set(ws, basename(uriPath(u) || '').replace(/\.code-workspace$/, '') || null);
|
|
138
|
+
const u = wj && (wj.folder || wj.workspace); if (u) folders.set(ws, (basename(uriPath(u) || '') || '').replace(/\.code-workspace$/, '') || null);
|
|
137
139
|
const db = await openRO(path.join(root, ws, 'state.vscdb')); if (!db) continue;
|
|
138
140
|
try {
|
|
139
141
|
for (const r of rows(db, "select cast(value as text) as v from ItemTable where key = 'composer.composerData'")) {
|
package/src/stats/awards.mjs
CHANGED
|
@@ -88,8 +88,8 @@ export function buildAwards(ctx) {
|
|
|
88
88
|
const tl = top(tools);
|
|
89
89
|
if (tl) add('tool', 'Tool of the Year', tl[0], `${num(tl[1])} calls`, 'tool calls, merged across harnesses');
|
|
90
90
|
|
|
91
|
-
if (m.rateLimits) add('rateLimits', '
|
|
92
|
-
m.rateLimits.days ? `on ${m.rateLimits.days}+ days` : '', 'limit messages');
|
|
91
|
+
if (m.rateLimits) add('rateLimits', 'Limits reached', `${num(m.rateLimits.hits)} hit${m.rateLimits.hits === 1 ? '' : 's'}`,
|
|
92
|
+
m.rateLimits.days ? `on ${m.rateLimits.days}+ days · plan maxed` : 'plan maxed', 'limit messages');
|
|
93
93
|
|
|
94
94
|
if (w.age) add('age', 'Agentic Age', w.age.years, w.age.why.join(' · '), 'rule table');
|
|
95
95
|
if (w.twin) add('twin', 'Agent Twin', w.twin.name, `${w.twin.match}% match · ${w.twin.why}`, 'rule table');
|
package/src/stats/tiers.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const TIERS = [
|
|
3
3
|
{ top: 1, min: 1_000_000, power: 'Tokenmaxxer', line: 'Limits are a suggestion.' },
|
|
4
4
|
{ top: 5, min: 300_000, power: 'Vibe Engineer', line: 'Vibes, but with tests.' },
|
|
5
|
-
{ top: 10, min: 100_000, power: '
|
|
5
|
+
{ top: 10, min: 100_000, power: 'Agentic Engineer', line: 'Ships first, reads the diff later.' },
|
|
6
6
|
{ top: 25, min: 20_000, power: 'Vibecoder', line: 'Accept all. Pray.' },
|
|
7
7
|
{ top: 50, min: 3_000, power: 'Prompt Enjoyer', line: 'Two heads, one keyboard.' },
|
|
8
8
|
{ top: 80, min: 0, power: 'Vibe Tourist', line: 'Just here for the vibes.' },
|