runa-agent-wrapped 0.2.0 → 0.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/README.md +1 -1
- package/dist/cli.js +49 -36
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ The one other file it can write is `~/.claude/settings.json`, and only when you
|
|
|
55
55
|
|
|
56
56
|
## What can leave your laptop
|
|
57
57
|
|
|
58
|
-
1. "Talk agent safety with us"
|
|
58
|
+
1. "Talk agent safety with us" opens one view with a scheduler and an email form side by side. Opening it loads Cal.com's embed script and scheduler inside the page, which receives only the topics you ticked, as a note on the booking. The email form sends the work email and team size you type, to the waitlist.
|
|
59
59
|
2. Share posts only what you post yourself: the image you pick and a short line of text.
|
|
60
60
|
|
|
61
61
|
The waitlist posts to the address in `src/config.ts` (a placeholder until [Trappetarn/agent-wrapped#1](https://github.com/Trappetarn/agent-wrapped/issues/1) decides hosting). The waitlist Worker accepts at most 5 posts per minute from one IP address and stores each email once. The server for the report binds to `127.0.0.1` only.
|
package/dist/cli.js
CHANGED
|
@@ -1376,7 +1376,7 @@ var SHARE_TARGETS = [
|
|
|
1376
1376
|
{ id: "reddit", label: "Reddit", url: "https://www.reddit.com/submit?url={url}&title={text}" },
|
|
1377
1377
|
{ id: "bluesky", label: "Bluesky", url: "https://bsky.app/intent/compose?text={text}%20{url}" }
|
|
1378
1378
|
];
|
|
1379
|
-
var CAL = { origin: "https://app.cal.com", script: "https://app.cal.com/embed/embed.js", link: "lisa-
|
|
1379
|
+
var CAL = { origin: "https://app.cal.com", script: "https://app.cal.com/embed/embed.js", link: "lisa-runa-byt9xv/15min", namespace: "15min" };
|
|
1380
1380
|
var SAFETY_TOPICS = [
|
|
1381
1381
|
"Knowing what agents touched",
|
|
1382
1382
|
"Secrets and customer data",
|
|
@@ -1422,36 +1422,39 @@ var CLIENT_SCRIPT = String.raw`
|
|
|
1422
1422
|
.catch(function () { status(st, FRIENDLY, true); });
|
|
1423
1423
|
});
|
|
1424
1424
|
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
// Booking: Cal.com loads only after "Pick a time". It gets the ticked topics as the booking note.
|
|
1428
|
-
function showBooking(on) {
|
|
1429
|
-
$("ask").hidden = on; $("booking").hidden = !on; $("team").classList.toggle("booking", on);
|
|
1430
|
-
}
|
|
1431
|
-
// Cal.com's own inline embed loader (from the Cal.com "inline embed" snippet), started on first click.
|
|
1425
|
+
// Booking and email sit side by side. Cal.com loads when the dialog opens, never before.
|
|
1426
|
+
// Cal.com's own inline embed loader (from the Cal.com "inline embed" snippet).
|
|
1432
1427
|
function calApi() {
|
|
1433
1428
|
(function (C, A, L) { var p = function (a, ar) { a.q.push(ar); }; var d = C.document; C.Cal = C.Cal || function () { var cal = C.Cal; var ar = arguments; if (!cal.loaded) { cal.ns = {}; cal.q = cal.q || []; d.head.appendChild(d.createElement("script")).src = A; cal.loaded = true; } if (ar[0] === L) { var api = function () { p(api, arguments); }; var namespace = ar[1]; api.q = api.q || []; if (typeof namespace === "string") { cal.ns[namespace] = cal.ns[namespace] || api; p(cal.ns[namespace], ar); p(cal, ["initNamespace", namespace]); } else p(cal, ar); return; } p(cal, ar); }; })(window, D.cal.script, "init");
|
|
1434
1429
|
if (!Cal.ns || !Cal.ns[D.cal.namespace]) {
|
|
1435
1430
|
Cal("init", D.cal.namespace, { origin: D.cal.origin });
|
|
1431
|
+
Cal.config = Cal.config || {};
|
|
1432
|
+
Cal.config.forwardQueryParams = true;
|
|
1436
1433
|
Cal.ns[D.cal.namespace]("ui", { hideEventTypeDetails: false, layout: "month_view", theme: "light", cssVarsPerTheme: { light: { "cal-brand": B.forest } } });
|
|
1437
1434
|
}
|
|
1438
1435
|
return Cal.ns[D.cal.namespace];
|
|
1439
1436
|
}
|
|
1440
|
-
|
|
1441
|
-
$("pick-time").addEventListener("click", function () {
|
|
1437
|
+
function topicNotes() {
|
|
1442
1438
|
var picked = [];
|
|
1443
|
-
document.querySelectorAll("#
|
|
1444
|
-
|
|
1445
|
-
|
|
1439
|
+
document.querySelectorAll("#team input[name=topic]:checked").forEach(function (c) { picked.push(c.value); });
|
|
1440
|
+
return picked.length ? "What we care about: " + picked.join("; ") : "";
|
|
1441
|
+
}
|
|
1442
|
+
var calNotes = null;
|
|
1443
|
+
function renderCal() {
|
|
1444
|
+
var notes = topicNotes();
|
|
1446
1445
|
if (notes === calNotes) return;
|
|
1447
1446
|
calNotes = notes;
|
|
1448
1447
|
$("cal").innerHTML = "";
|
|
1449
1448
|
var config = { layout: "month_view", useSlotsViewOnSmallScreen: "true" };
|
|
1450
1449
|
if (notes) config.notes = notes;
|
|
1451
1450
|
calApi()("inline", { elementOrSelector: "#cal", config: config, calLink: D.cal.link });
|
|
1451
|
+
}
|
|
1452
|
+
wire("open-team", "team", renderCal);
|
|
1453
|
+
// Ticked topics become the booking note, so the calendar reloads once the ticking settles.
|
|
1454
|
+
var topicTimer;
|
|
1455
|
+
document.querySelectorAll("#team input[name=topic]").forEach(function (c) {
|
|
1456
|
+
c.addEventListener("change", function () { clearTimeout(topicTimer); topicTimer = setTimeout(renderCal, 700); });
|
|
1452
1457
|
});
|
|
1453
|
-
$("back-ask").addEventListener("click", function () { showBooking(false); });
|
|
1454
|
-
$("team").addEventListener("close", function () { showBooking(false); });
|
|
1455
1458
|
|
|
1456
1459
|
// ---- Share cards: drawn natively on a 1080x1920 canvas from the card list in D.cards. ----
|
|
1457
1460
|
var SANS = "Manrope, system-ui, sans-serif", SERIF = "Fraunces, Georgia, serif", MONO = "'DM Mono', ui-monospace, monospace";
|
|
@@ -1935,8 +1938,10 @@ function personalityCard(w) {
|
|
|
1935
1938
|
const p = w.personality;
|
|
1936
1939
|
const fact = (label, value, cls, wide = false) => `<div${wide ? ' class="wide"' : ""}><dt>${label}</dt><dd class="${cls}">${value}</dd></div>`;
|
|
1937
1940
|
const age = p.agentAgeDays !== null ? fact("Agent age", `${num2(p.agentAgeDays)}${p.agentAgeIsMinimum ? "+" : ""}<small> ${p.agentAgeDays === 1 && !p.agentAgeIsMinimum ? "day" : "days"}</small>`, "age") : "";
|
|
1938
|
-
|
|
1939
|
-
|
|
1941
|
+
const cut = p.name.lastIndexOf(" ");
|
|
1942
|
+
const title = cut > 0 ? `${esc(p.name.slice(0, cut))} <em>${esc(p.name.slice(cut + 1))}</em>` : `<em>${esc(p.name)}</em>`;
|
|
1943
|
+
return `<section class="card soul"><div class="hero"><span class="hyear" aria-hidden="true">${esc(w.window.end.slice(0, 4))}</span><span class="htitle"><span class="sr">Personality: </span>${title}</span><div class="face" aria-hidden="true"><b class="cap"><em>sudo</em></b><i class="eye e1"></i><i class="eye e2"></i><i class="mouth"></i></div></div>
|
|
1944
|
+
<dl class="facts">${age}${fact("Trust status", esc(p.trustStatus), "trust")}${fact("Favourite hangout", esc(p.hangout), "line", true)}</dl></section>`;
|
|
1940
1945
|
}
|
|
1941
1946
|
function tracksCard(w) {
|
|
1942
1947
|
if (w.tracks.length === 0)
|
|
@@ -1979,7 +1984,7 @@ function renderPage(w) {
|
|
|
1979
1984
|
<style>${fontFaceCss()}${CSS}</style></head><body>
|
|
1980
1985
|
<div class="app">
|
|
1981
1986
|
<div class="backdrop" aria-hidden="true"></div>
|
|
1982
|
-
<nav><span class="navnote scope">Counts this computer only. Cloud sessions and other computers are not included.</span><span class="navnote">Agent Wrapped · by</span><span class="lockup" aria-label="Runa">${markSvg(
|
|
1987
|
+
<nav><span class="navnote scope">Counts this computer only. Cloud sessions and other computers are not included.</span><span class="navnote">Agent Wrapped · by</span><span class="lockup" role="img" aria-label="Runa">${markSvg(13)}<span class="wm" aria-hidden="true">UNA</span></span></nav>
|
|
1983
1988
|
<header><div><p class="eyebrow">${dateRange(w)}${harnesses ? ` · ${esc(harnesses)}` : ""}</p><h1>Your agents' ${w.window.end.slice(0, 4)},<br><em>wrapped.</em></h1></div>
|
|
1984
1989
|
<div class="btns"><button class="pill share" id="open-cards" type="button">${SHARE_ICON}Share</button>
|
|
1985
1990
|
<button class="pill primary cta" id="open-team" type="button">Talk agent safety with us${ARROW}</button></div></header>
|
|
@@ -1992,21 +1997,21 @@ ${body}
|
|
|
1992
1997
|
<p class="fine">X, LinkedIn, Reddit and Bluesky open with your text filled in. Attach the downloaded image there.</p></dialog>
|
|
1993
1998
|
<dialog id="team"><div class="mh"><h2>That was your year. Now help us learn how teams keep agents safe.</h2><button class="x" data-close aria-label="Close">×</button></div>
|
|
1994
1999
|
<p class="note">We're talking to people who use AI agents at work about what their company actually cares about, what worries them, and what's missing. 15 minutes, no sales pitch.</p>
|
|
1995
|
-
<
|
|
1996
|
-
<
|
|
1997
|
-
<p class="fine">
|
|
1998
|
-
<
|
|
1999
|
-
<details class="later"><summary>Not now? Leave your email instead</summary>
|
|
2000
|
+
<fieldset class="topics"><legend>What does your company care about most?</legend><div class="chips">${topics}</div></fieldset>
|
|
2001
|
+
<div class="paths"><section class="book"><h3>Book 15 minutes</h3><div id="cal" aria-label="Book a 15-minute call"></div>
|
|
2002
|
+
<p class="fine">Cal.com's scheduler loads when you open this. It receives only the topics you ticked, as a note on the booking. Nothing from your report is sent.</p></section>
|
|
2003
|
+
<section class="later"><h3>Leave your email</h3>
|
|
2000
2004
|
<form id="waitlist"><label>Work email<input name="email" type="email" required placeholder="you@company.com" autocomplete="email"></label>
|
|
2001
2005
|
<label>People using AI agents at work<select name="teamSize">${options}</select></label>
|
|
2002
2006
|
<button class="pill primary" type="submit">Keep me posted${ARROW}</button><p class="status" id="wl-status" role="status"></p></form>
|
|
2003
|
-
<p class="fine">We store your email to contact you about Agent Wrapped for teams. Nothing from your report is sent.</p></
|
|
2007
|
+
<p class="fine">We store your email to contact you about Agent Wrapped for teams. Nothing from your report is sent.</p></section></div></dialog>
|
|
2004
2008
|
<script type="application/json" id="data">${data}</script>
|
|
2005
2009
|
<script>${CLIENT_SCRIPT}</script>
|
|
2006
2010
|
</body></html>`;
|
|
2007
2011
|
}
|
|
2008
2012
|
var CSS = `${brandCss()}
|
|
2009
2013
|
.share{gap:8px}
|
|
2014
|
+
.pill.primary.cta{background:var(--ink-dark);border-color:var(--ink-dark)}
|
|
2010
2015
|
.pill.cta{height:52px;padding:0 12px 0 24px;font-size:16px}
|
|
2011
2016
|
/* The two header buttons use Fraunces, Runa's wordmark and headline face. Only Light (300) is bundled. */
|
|
2012
2017
|
header .pill{font:300 18px/1 Fraunces,Georgia,serif}header .pill.cta{font-size:20px}
|
|
@@ -2061,24 +2066,30 @@ dialog::backdrop{background:color-mix(in srgb,var(--ink-dark),transparent 45%)}
|
|
|
2061
2066
|
.cardgrid{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:16px;width:min(calc(var(--n,4)*225px),86vw)}
|
|
2062
2067
|
.cardgrid figure{margin:0;display:flex;flex-direction:column;gap:8px}.cardgrid canvas{width:100%;aspect-ratio:9/16;border-radius:16px;background:var(--ink-dark)}
|
|
2063
2068
|
.cardgrid .pill{height:38px;justify-content:center;font-size:13px}
|
|
2064
|
-
|
|
2069
|
+
form{display:flex;flex-direction:column;gap:12px;margin:14px 0}label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700}
|
|
2065
2070
|
input,select{height:42px;border-radius:12px;border:1px solid var(--border);padding:0 12px;font:500 15px Manrope,system-ui,sans-serif;background:var(--white)}
|
|
2066
2071
|
.topics{border:0;margin:16px 0 14px;padding:0}.topics legend{font-size:13px;font-weight:700;margin-bottom:8px;padding:0}
|
|
2067
2072
|
.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{flex-direction:row;align-items:center;gap:0;font-weight:500;font-size:14px;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--white);cursor:pointer}
|
|
2068
2073
|
.chip input{position:absolute;opacity:0;width:1px;height:1px}.chip:has(input:checked){background:var(--forest);border-color:var(--forest);color:var(--mist)}.chip:has(input:focus-visible){outline:2px solid var(--forest);outline-offset:2px}
|
|
2069
|
-
#team
|
|
2070
|
-
|
|
2074
|
+
#team{width:min(1040px,94vw)}.paths{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.paths h3{margin:0 0 8px;font-size:15px}
|
|
2075
|
+
#cal{width:100%;height:min(540px,52vh);min-height:380px;overflow:auto;border-radius:16px;background:var(--white)}
|
|
2076
|
+
.later{border-left:1px solid var(--border);padding-left:24px}.later form{margin-top:0}
|
|
2077
|
+
@media (max-width:760px){.paths{grid-template-columns:1fr}.later{order:-1;border-left:0;padding-left:0;border-bottom:1px solid var(--border);padding-bottom:4px}}
|
|
2071
2078
|
.status{margin:0;font-size:13px;min-height:1em}.status.err{color:var(--rose)}
|
|
2072
2079
|
pre{background:var(--white);border:1px solid var(--border);border-radius:12px;padding:12px;font:13px var(--mono);overflow:auto;max-height:50vh}.row{display:flex;gap:14px;align-items:center}
|
|
2073
2080
|
.by{margin:8px 0 0;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.lockup{display:inline-flex;align-items:center;gap:6px;color:var(--forest)}
|
|
2081
|
+
/* The rune stands in for the R: cap height, one letter-space before UNA, foot on the baseline. */
|
|
2082
|
+
nav .lockup{gap:.2em;font-size:15px;align-items:baseline}nav .lockup .mark{position:relative;top:1.5px;margin-left:-4px}
|
|
2074
2083
|
.wm{font:300 15px Fraunces,Georgia,serif;letter-spacing:.42em;margin-right:-.42em;color:var(--ink)}
|
|
2075
2084
|
@keyframes settle{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
|
|
2076
2085
|
.card{animation:settle .8s ease-out both}.right .card{animation-delay:.1s}
|
|
2077
|
-
.soul{
|
|
2078
|
-
.
|
|
2086
|
+
.soul,.tracks{--mint:#9FD0B0;--accent:var(--forest);--rule:rgb(18 36 26 / .16);--sub:rgb(18 36 26 / .72);color:var(--ink);border:1px solid color-mix(in srgb,var(--mint),var(--forest) 18%)}
|
|
2087
|
+
.soul{flex:none;padding:12px;overflow:hidden;display:flex;flex-direction:column;gap:12px;background:radial-gradient(120% 60% at 0% 0%,color-mix(in srgb,var(--mist),transparent 55%),transparent 70%),var(--mint)}
|
|
2088
|
+
.hero{flex:none;position:relative;overflow:hidden;border-radius:16px;padding:84px 14px 12px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;color:var(--ink);background:linear-gradient(135deg,var(--mist-2),var(--mist));box-shadow:0 10px 24px rgb(18 36 26 / .14)}
|
|
2079
2089
|
.hyear{position:absolute;left:14px;top:12px;font:400 11px var(--mono);letter-spacing:.2em;color:rgb(18 36 26 / .78)}
|
|
2080
2090
|
.htitle{font:300 28px/1 Fraunces,Georgia,serif}
|
|
2081
2091
|
.htitle em{color:var(--forest);font-style:italic}
|
|
2092
|
+
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
|
|
2082
2093
|
.face{position:absolute;right:16px;top:12px;width:64px;height:64px;border-radius:50%;overflow:hidden;background:var(--forest)}
|
|
2083
2094
|
.face .cap{position:absolute;left:0;top:0;right:0;height:13px;background:var(--rose);display:flex;justify-content:center;align-items:center}
|
|
2084
2095
|
.face .cap em{font:normal 7px var(--mono);color:var(--mist)}
|
|
@@ -2088,12 +2099,11 @@ pre{background:var(--white);border:1px solid var(--border);border-radius:12px;pa
|
|
|
2088
2099
|
.facts{flex:none;margin:0;padding:0 8px 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
|
|
2089
2100
|
.facts>div{min-width:0;display:flex;flex-direction:column}
|
|
2090
2101
|
.facts .wide{grid-column:span 2}
|
|
2091
|
-
dt{font:400 10px var(--mono);letter-spacing:.2em;text-transform:uppercase;color:
|
|
2092
|
-
dd{margin:0;color
|
|
2102
|
+
dt{font:400 10px var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--sub);padding-bottom:5px;margin-bottom:6px;border-bottom:1px solid var(--rule)}
|
|
2103
|
+
dd{margin:0;color:var(--forest);font-family:Fraunces,Georgia,serif;font-weight:300}
|
|
2093
2104
|
.age{font-size:30px;line-height:1}
|
|
2094
2105
|
.age small{font-size:16px;font-style:italic}
|
|
2095
2106
|
.trust{font-size:18px;line-height:1.15;font-style:italic}
|
|
2096
|
-
.pname{font-size:26px;line-height:1.05}
|
|
2097
2107
|
.line{font-size:17px;line-height:1.25;font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
2098
2108
|
.mix{color:var(--sub,var(--muted));font-weight:400}
|
|
2099
2109
|
/* The light share card: mist on a faint forest grid, mono eyebrows over hairlines, forest accent. */
|
|
@@ -2121,13 +2131,16 @@ dd{margin:0;color:#9FD0B0;font-family:Fraunces,Georgia,serif;font-weight:300}
|
|
|
2121
2131
|
.mval{font:italic 300 22px/1.1 Fraunces,Georgia,serif;color:var(--accent);display:flex;align-items:baseline;justify-content:space-between;gap:10px}.mval small{font:400 12px var(--mono);font-style:normal;color:var(--muted)}
|
|
2122
2132
|
.segs{display:flex;height:8px;border-radius:999px;overflow:hidden;background:rgb(30 90 60 / .12)}.m0{background:var(--forest)}.m1{background:var(--sage)}.m2{background:#9FD0B0}.m3{background:var(--blush)}
|
|
2123
2133
|
.legend{display:flex;flex-wrap:wrap;gap:4px 12px;font:10px var(--mono);color:var(--muted)}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}
|
|
2124
|
-
/* Top tracks takes the
|
|
2125
|
-
|
|
2134
|
+
/* Top tracks takes the mint card theme, like Personality: ink text, forest ranks, dark hairlines. */
|
|
2135
|
+
/* The hero stays compact; Top tracks takes the column's spare height, or Personality does when it is alone. */
|
|
2136
|
+
.soul:last-child,.soul:last-child .hero{flex:1}
|
|
2137
|
+
.tracks .ranks{flex:1;justify-content:space-evenly}
|
|
2138
|
+
.tracks{flex:1;padding:16px 20px;gap:8px;background:linear-gradient(rgb(18 36 26 / .04) 1px,transparent 1px) 0 0/24px 24px,linear-gradient(90deg,rgb(18 36 26 / .04) 1px,transparent 1px) 0 0/24px 24px,radial-gradient(120% 80% at 100% 100%,color-mix(in srgb,var(--mist),transparent 60%),transparent 70%),var(--mint)}
|
|
2126
2139
|
/* Short windows: the charge sheet tightens so all its counts stay inside the tile. */
|
|
2127
|
-
@media (max-height:860px){.charges{gap:6px;padding:14px 20px}.ctitle{font-size:19px}.charges li{padding:4px
|
|
2140
|
+
@media (max-height:860px){.charges{gap:6px;padding:14px 20px}.ctitle{font-size:19px}.charges li{padding-block:4px}.cn{font-size:22px;min-width:60px}.cl{font-size:13px}}
|
|
2128
2141
|
@media (max-width:1360px){.heat{--cell:9px;--gap:2px}}
|
|
2129
2142
|
/* Five charges (the cap) on a short window: tighter rows so the count stays inside the tile. */
|
|
2130
|
-
@media (max-height:800px){.charges ol.many li{padding:2px
|
|
2143
|
+
@media (max-height:800px){.charges ol.many li{padding-block:2px}.charges ol.many .cn{font-size:19px;min-width:52px}}
|
|
2131
2144
|
@media (prefers-reduced-motion:reduce){.card{animation:none}*{transition:none!important}}
|
|
2132
2145
|
@media (max-width:1100px),(max-height:700px){.app{height:auto;padding:14px 20px 20px}nav{position:static}header{flex-direction:column;align-items:flex-start}.btns{flex-wrap:wrap}.main{display:flex;flex-direction:column}.sheet.summary{flex-direction:column;align-items:flex-start}.mid,.toprow{flex-direction:column}.cardgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
2133
2146
|
`;
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runa-agent-wrapped",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Your AI agents' year, Wrapped. Reads Claude Code, Codex and Cursor history on your laptop.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"runa-agent-wrapped": "dist/cli.js"
|
|
8
8
|
},
|
|
9
|
-
"files": [
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
10
12
|
"engines": {
|
|
11
13
|
"node": ">=18"
|
|
12
14
|
},
|