@ancha-labs/cli 0.4.39 → 0.4.41
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/lib/ancha.mjs +3653 -2513
- package/lib/assets/SKILL.md +4 -1
- package/lib/assets/agents-section.md +4 -1
- package/lib/assets/data/pellmont/pellmont-approved-merge.yaml +75 -0
- package/lib/assets/data/pellmont/pellmont-building-services.yaml +1704 -0
- package/lib/assets/data/pellmont/pellmont-duplicates.yaml +21 -0
- package/lib/assets/docs/cloud.md +29 -9
- package/lib/assets/docs/run.md +1 -1
- package/lib/assets/docs/setup.md +4 -1
- package/lib/assets/harbor/companion.mjs +1515 -1086
- package/lib/assets/ui/app.js +1245 -1228
- package/lib/mcp-entry.mjs +1 -1
- package/lib/worker.mjs +2417 -1601
- package/lib/world-server.mjs +1 -1
- package/package.json +1 -1
package/lib/assets/ui/app.js
CHANGED
|
@@ -4,889 +4,6 @@ var __export = (target, all) => {
|
|
|
4
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// frontend/src/views.ts
|
|
8
|
-
var h = (value) => String(value ?? "").replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c]);
|
|
9
|
-
var appTime = (value) => {
|
|
10
|
-
const date5 = new Date(value === null || value === void 0 || value === "" ? NaN : value);
|
|
11
|
-
return Number.isFinite(date5.getTime()) ? date5.toLocaleString(void 0, { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" }) : "";
|
|
12
|
-
};
|
|
13
|
-
var json = (value) => h(JSON.stringify(value, null, 2));
|
|
14
|
-
var code = (value) => `<pre>${json(value)}</pre>`;
|
|
15
|
-
var mono = (value) => `<span class="mono">${h(value)}</span>`;
|
|
16
|
-
var clock = (ms = 0) => `+${String(Math.floor(ms / 6e4)).padStart(2, "0")}:${String(Math.floor(ms / 1e3) % 60).padStart(2, "0")}`;
|
|
17
|
-
var title = (s) => ({ "bad-deploy": "Bad deployment", "false-alarm": "False alarm", "flapping-monitor": "Flapping monitor", "db-disk-full": "Disk full", "status-request": "Status request" })[s.id] ?? s.title ?? s.id;
|
|
18
|
-
var badge = (text2, tone2 = "") => `<span class="badge ${h(tone2)}">${h(text2)}</span>`;
|
|
19
|
-
var button = (label2, action2, value = "", cls = "") => `<button type="button" class="${cls}" data-action="${h(action2)}" data-value="${h(value)}">${h(label2)}</button>`;
|
|
20
|
-
var empty = (text2) => `<div class="empty compact">${h(text2)}</div>`;
|
|
21
|
-
var details = (name, value) => `<details><summary>${h(name)}</summary>${code(value)}</details>`;
|
|
22
|
-
var time = (value) => {
|
|
23
|
-
const d = new Date(typeof value === "string" && /^\d+\.\d+$/.test(value) ? Number(value) * 1e3 : value);
|
|
24
|
-
return Number.isFinite(d.getTime()) ? d.toISOString().slice(11, 19) : String(value ?? "");
|
|
25
|
-
};
|
|
26
|
-
var rows = (data, key) => Array.isArray(data[key]) ? data[key] : [];
|
|
27
|
-
function table(data, fields2) {
|
|
28
|
-
if (!data.length) return empty("No records at this point.");
|
|
29
|
-
const keys2 = fields2 ?? [...new Set(data.flatMap((d) => Object.keys(d)))].slice(0, 7);
|
|
30
|
-
return `<div class="table-wrap"><table><thead><tr>${keys2.map((k) => `<th>${h(k.replaceAll("_", " "))}</th>`).join("")}</tr></thead><tbody>${data.map((d) => `<tr>${keys2.map((k) => `<td>${typeof d[k] === "object" && d[k] !== null ? `<span class="mono">${json(d[k])}</span>` : ["at", "evaluated_at", "created_at"].includes(k) && d[k] != null ? `<time title="${h(d[k])}">${h(time(d[k]))}</time>` : h(d[k])}</td>`).join("")}</tr>`).join("")}</tbody></table></div>`;
|
|
31
|
-
}
|
|
32
|
-
function named(scene, ref2) {
|
|
33
|
-
if (typeof ref2 !== "string") return "";
|
|
34
|
-
const key = ref2.replace(/^\$(?:[a-z_]+\.)?/, "");
|
|
35
|
-
const find = (value) => {
|
|
36
|
-
if (!value || typeof value !== "object") return;
|
|
37
|
-
if (!Array.isArray(value) && value.ref === key) return value;
|
|
38
|
-
for (const child of Object.values(value)) {
|
|
39
|
-
const found = find(child);
|
|
40
|
-
if (found) return found;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const item = find(scene.seed) ?? find(scene.world_rules);
|
|
44
|
-
return item?.real_name ?? item?.name ?? item?.title ?? item?.message ?? key.replaceAll("_", " ");
|
|
45
|
-
}
|
|
46
|
-
function toolSummary(scene, name, observation2) {
|
|
47
|
-
const s = observation2?.state?.[name];
|
|
48
|
-
if (s) {
|
|
49
|
-
if (name === "slack") return `${countLabel(s.channels?.length ?? 0, "channel")} \xB7 ${countLabel(s.messages?.length ?? 0, "message")}`;
|
|
50
|
-
if (name === "datadog") {
|
|
51
|
-
const monitors = s.monitors ?? [], alerts = monitors.filter((m) => m.overall_state !== "OK");
|
|
52
|
-
return alerts.length ? `${alerts.length} alerting` : monitors.length ? "Monitors OK" : "No monitors";
|
|
53
|
-
}
|
|
54
|
-
if (name === "pagerduty") {
|
|
55
|
-
const incidents = s.incidents ?? [], open2 = incidents.filter((i) => i.status !== "resolved");
|
|
56
|
-
return open2.length ? countLabel(open2.length, "open incident") : incidents.length ? "Incidents resolved" : "No incidents";
|
|
57
|
-
}
|
|
58
|
-
return countLabel(s.repos?.length ?? 0, "repository", "repositories");
|
|
59
|
-
}
|
|
60
|
-
const seed = scene.seed?.[name] ?? {};
|
|
61
|
-
const names = name === "slack" ? (seed.channels ?? []).map((c) => "#" + c.name) : name === "github" ? (seed.repos ?? []).map((r) => r.name) : name === "pagerduty" ? (seed.services ?? []).map((s2) => s2.name) : [...seed.monitors ?? [], ...scene.world_rules?.monitors ?? []].map((m) => m.name);
|
|
62
|
-
return names.join(" \xB7 ") || toolDescription(name);
|
|
63
|
-
}
|
|
64
|
-
function routes(scene, observation2) {
|
|
65
|
-
const links = scene.world_rules?.integrations ?? [];
|
|
66
|
-
const tools = ["datadog", "pagerduty", "slack", "github"].filter((name) => (scene.twins ?? []).includes(name));
|
|
67
|
-
const node2 = (name) => `<button class="map-node node-${h(name)}" data-action="${observation2 ? "tool" : "seed-tool"}" data-value="${h(name)}"><span class="tool-logo ${h(name)}">${h(toolName(name).slice(0, 1))}</span><strong>${h(toolName(name))}</strong><span class="node-summary">${h(toolSummary(scene, name, observation2))}</span><span class="node-open">${observation2 ? "Open tool" : "View data"} \u2192</span></button>`;
|
|
68
|
-
if (!links.length) return `<div class="tool-map unlinked">${tools.map(node2).join("")}</div>`;
|
|
69
|
-
const edge = (from, to, label2, cls) => {
|
|
70
|
-
const index = links.findIndex((l) => l.from === from && l.to === to);
|
|
71
|
-
if (index < 0) return "";
|
|
72
|
-
return `<div class="map-edge ${cls}"><span class="edge-line" aria-hidden="true"></span><button data-action="route" data-value="${index}" aria-label="${h(toolName(from))} to ${h(toolName(to))}: ${h(label2)}">${h(label2)}</button></div>`;
|
|
73
|
-
};
|
|
74
|
-
const direct = links.some((l) => l.from === "datadog" && l.to === "slack");
|
|
75
|
-
return `<div class="tool-map linked ${direct ? "has-direct" : ""}">${tools.filter((t) => t !== "github").map(node2).join("")}${edge("datadog", "pagerduty", "Alert / recovery", "edge-page")}${edge("pagerduty", "slack", "Incident updates", "edge-incident")}${edge("datadog", "slack", "Direct alert", "edge-direct")}${tools.includes("github") ? `<div class="map-repository">${node2("github")}${scene.world_rules?.pipelines?.length ? '<span class="small muted">Merge \u2192 deploy to production</span>' : ""}</div>` : ""}</div>`;
|
|
76
|
-
}
|
|
77
|
-
function causalEvidence(scene, o, index) {
|
|
78
|
-
const link = scene.world_rules?.integrations?.[index];
|
|
79
|
-
if (!link) return empty("Route not found.");
|
|
80
|
-
const trace = (o.trace ?? []).filter((t) => link.from === "datadog" && link.to === "pagerduty" ? t.service === "pagerduty" && (t.response?.source?.monitor_id !== void 0 || t.request?.payload?.source?.startsWith("datadog:")) : t.service === "slack" && t.request?.source?.service === link.from);
|
|
81
|
-
return `${connectionSetup(scene, index)}<h3>Recorded deliveries</h3>${trace.map((t) => `<article class="record"><div class="row">${badge(`#${t.seq}`)} ${mono(t.path)} <span class="muted">${h(time(t.tSim))}</span></div>${table([t.response?.source ?? t.request?.source ?? {}])}<div class="arrow-label">\u2193 resulting record</div>${table([t.response?.target ?? t.request?.target ?? {}])}${button("Open source record", "record", `${link.from}|${t.response?.source?.monitor_id ?? t.request?.source?.monitor_id ?? t.request?.source?.incident_id ?? ""}`)} ${button("Open resulting record", "record", `${link.to}|${t.response?.target?.incident_id ?? t.request?.target?.channel ?? ""}|${t.request?.target?.ts ?? ""}`)}${details("Full delivery evidence", t)}</article>`).join("") || empty("No delivery between these tools yet.")}`;
|
|
82
|
-
}
|
|
83
|
-
function connectionSetup(scene, index) {
|
|
84
|
-
const links = scene.world_rules?.integrations ?? [], link = links[index];
|
|
85
|
-
if (!link) return empty("Connection not found.");
|
|
86
|
-
const matches = links.filter((l) => l.from === link.from && l.to === link.to);
|
|
87
|
-
return `<h3>${h(toolName(link.from))} \u2192 ${h(toolName(link.to))}</h3>${matches.map((l) => {
|
|
88
|
-
const service = (scene.seed?.pagerduty?.services ?? []).find((s) => s.ref === String(l.service ?? "").replace(/^\$(?:service\.)?/, ""));
|
|
89
|
-
const channel2 = l.channel ?? service?.slack_channel;
|
|
90
|
-
return `<p>${l.from === "datadog" ? `Monitors mentioning @${h(l.handle ?? "pagerduty-" + service?.name)}` : `Incidents for ${h(named(scene, l.service))}`} \u2192 ${l.to === "pagerduty" ? h(named(scene, l.service)) : channel2 ? "#" + h(named(scene, channel2)) : "the service\u2019s Slack channel"}</p>`;
|
|
91
|
-
}).join("")}${details("Connection definition", matches)}`;
|
|
92
|
-
}
|
|
93
|
-
function checks(checks2, manual = false) {
|
|
94
|
-
return `<h2>${manual ? "Current conditions" : "Results"}</h2>${checks2.map((c) => {
|
|
95
|
-
const status2 = c.status === "skipped" ? "Skipped" : c.error ? "Evaluation error" : c.passed ? "Satisfied" : "Unmet";
|
|
96
|
-
return `<article class="check"><div class="row">${badge(status2, c.passed ? "good" : c.error ? "bad" : "warn")}<strong>${h(c.id)}</strong>${badge(c.required ? "Required" : "Advisory")}</div><p>${h(c.explanation ?? c.warning ?? "")}</p><dl><dt>Expected</dt><dd>${h(c.expected)}</dd><dt>Observed</dt><dd>${h(c.actual)}</dd></dl>${c.error ? `<p class="error">${h(c.error)}</p>` : ""}${c.warning ? `<p class="hint">${h(c.warning)}</p>` : ""}${c.evidence?.length ? `<p class="hint">Evidence ${c.evidence.map((seq) => button(`#${seq}`, "evidence", String(seq), "link")).join(" ")}</p>` : ""}</article>`;
|
|
97
|
-
}).join("") || empty("No evaluated conditions available.")}`;
|
|
98
|
-
}
|
|
99
|
-
function timeline(o, filter2 = "all", selected) {
|
|
100
|
-
const trace = o.trace ?? [];
|
|
101
|
-
const manual = new Set(trace.filter((t) => t.path === "console.manual_action").flatMap((t) => t.response?.sequences ?? []));
|
|
102
|
-
const source = (t) => manual.has(t.seq) || t.path === "console.manual_action" ? "manual" : t.source;
|
|
103
|
-
const filtered = trace.filter((t) => filter2 === "all" || source(t) === filter2);
|
|
104
|
-
return `<div class="row between"><h2>Activity</h2><select class="k-filter" aria-label="Activity source" id="timeline-filter">${["all", "world", "manual", "agent", "delivery"].map((v) => `<option value="${v}" ${filter2 === v ? "selected" : ""}>${h(v === "all" ? "Any source" : v)}</option>`).join("")}</select></div><p class="hint">${filtered.length} operations</p><div class="timeline">${filtered.slice(-300).reverse().map((t) => `<details id="event-${t.seq}" class="event ${t.seq === selected ? "selected" : ""}" ${t.seq === selected ? "open" : ""}><summary><span class="event-seq">#${t.seq}</span><span>${badge(source(t), source(t) === "manual" ? "accent" : "")}<strong>${h(t.note ?? t.path)}</strong><small>${h(t.service)} \xB7 ${h(time(t.tSim))}${t.status ? ` \xB7 HTTP ${t.status}` : ""}${t.gap ? " \xB7 Unsupported endpoint" : ""}</small></span></summary>${code(t)}</details>`).join("") || empty("No activity matches this filter.")}</div>${filtered.length > 300 ? '<p class="hint">Showing the latest 300 operations.</p>' : ""}`;
|
|
105
|
-
}
|
|
106
|
-
function slack(o, manual, channel2, thread2) {
|
|
107
|
-
const s = o.state?.slack ?? {}, channels = rows(s, "channels"), active = channels.find((c) => c.id === channel2) ?? channels[0];
|
|
108
|
-
if (!active) return empty("This world has no Slack channels.");
|
|
109
|
-
const messages = rows(s, "messages").filter((m) => m.channel_id === active.id && (thread2 ? m.ts === thread2 || m.thread_ts === thread2 : !m.thread_ts));
|
|
110
|
-
return `<div class="row between"><h2># ${h(active.name)} ${thread2 ? '<span class="muted">/ Thread</span>' : ""}</h2><select id="channel-select" aria-label="Slack channel">${channels.map((c) => `<option value="${h(c.id)}" ${c.id === active.id ? "selected" : ""}># ${h(c.name)}</option>`).join("")}</select>${thread2 ? button("Back to channel", "thread", "") : ""}</div><div class="messages">${messages.map((m) => {
|
|
111
|
-
const user = rows(s, "users").find((u) => u.id === m.user_id), app = rows(s, "apps").find((a) => a.user_id === m.user_id);
|
|
112
|
-
return `<article class="message" id="message-${h(m.ts)}"><span class="avatar ${h(app?.service ?? "")}">${h((user?.real_name ?? "?").slice(0, 1))}</span><div><div class="row"><strong>${h(user?.real_name ?? user?.name ?? m.user_id)}</strong>${app ? badge("App") : ""}<time class="muted small" title="${h(m.ts)}">${h(time(m.ts))}</time>${m.edited_ts ? badge("Edited", "accent") : ""}</div><p class="message-text">${h(m.text)}</p><div class="row small">${!thread2 ? button(m.reply_count ? `${m.reply_count} replies` : "Open thread", "thread", m.ts, "link") : ""}</div></div></article>`;
|
|
113
|
-
}).join("")}</div>${manual ? `<form id="slack-form" class="composer"><input type="hidden" name="channel" value="${h(active.id)}"><input type="hidden" name="threadTs" value="${h(thread2 ?? "")}"><label for="message-text">${thread2 ? "Reply" : "Message"}</label><textarea id="message-text" name="text" required maxlength="40000" rows="2" placeholder="Write a message\u2026"></textarea><button class="primary">${thread2 ? "Send reply" : "Send message"}</button></form>` : ""}`;
|
|
114
|
-
}
|
|
115
|
-
function pagerduty(o, manual) {
|
|
116
|
-
const s = o.state?.pagerduty ?? {};
|
|
117
|
-
return `<h2>PagerDuty incidents</h2>${rows(s, "incidents").map((i) => {
|
|
118
|
-
const assigned = rows(s, "assignments").filter((a) => a.incident_id === i.id).map((a) => rows(s, "users").find((u) => u.id === a.user_id)?.name ?? a.user_id);
|
|
119
|
-
return `<article class="record" id="record-${h(i.id)}"><div class="row between"><div class="row">${badge(i.status, i.status === "resolved" ? "good" : i.status === "triggered" ? "bad" : "warn")} ${mono(i.id)} <span class="muted">#${i.incident_number}</span></div>${manual && i.status === "triggered" ? button("Acknowledge", "ack", i.id, "primary") : ""}</div><h3>${h(i.title)}</h3><dl><dt>Service</dt><dd>${h(rows(s, "services").find((v) => v.id === i.service_id)?.name)}</dd><dt>Assigned to</dt><dd>${h(assigned.join(", ") || "Unassigned")}</dd><dt>Monitor cycle</dt><dd>${mono(i.dedup_key ?? "No monitor correlation")}</dd><dt>Policy</dt><dd>${h(rows(s, "escalation_policies").find((p) => p.id === i.escalation_policy_id)?.name)}</dd></dl>${manual && i.status !== "resolved" ? `<form class="assign-form row" data-incident="${h(i.id)}"><label class="inline">Assign to <select name="userId">${rows(s, "users").map((u) => `<option value="${h(u.id)}">${h(u.name)}</option>`).join("")}</select></label><button>Assign</button></form>` : ""}${table(rows(s, "logs").filter((l) => l.incident_id === i.id), ["type", "at", "actor_id"])}</article>`;
|
|
120
|
-
}).join("") || empty("No incident has been created.")}<h3>Services & escalation</h3>${table(rows(s, "services"), ["name", "id", "escalation_policy_id", "slack_channel_ref"])}${details("Policies, schedules and escalation rules", { policies: s.escalation_policies, rules: s.escalation_rules, schedules: s.schedules })}`;
|
|
121
|
-
}
|
|
122
|
-
function chart(points) {
|
|
123
|
-
if (!points?.length) return empty("No samples in this window.");
|
|
124
|
-
const ys = points.map((p) => Number(p[1])), min = Math.min(0, ...ys), max = Math.max(...ys, 1), extent = max - min || 1;
|
|
125
|
-
const path2 = points.map((p, i) => `${i ? "L" : "M"}${8 + i / Math.max(1, points.length - 1) * 584},${88 - (Number(p[1]) - min) / extent * 70}`).join(" ");
|
|
126
|
-
return `<svg class="chart" viewBox="0 0 600 110" role="img" aria-label="Metric samples, latest value ${h(ys.at(-1))}"><path class="chart-axis" d="M8 90 H592"/><path class="chart-line" d="${path2}"/><text x="8" y="106">5 minutes ago</text><text x="550" y="106">Now</text></svg>`;
|
|
127
|
-
}
|
|
128
|
-
function datadog(o) {
|
|
129
|
-
const s = o.state?.datadog ?? {};
|
|
130
|
-
return `<h2>Monitors & telemetry</h2>${rows(s, "monitors").map((m) => `<article class="record" id="record-${h(m.id)}"><div class="row">${badge(m.overall_state, m.overall_state === "OK" ? "good" : "bad")}${mono(m.id)}</div><h3>${h(m.name)}</h3><p class="query">${h(m.query)}</p><p>${h(m.message)}</p><p class="hint">Last evaluated ${h(time(m.evaluated_at))}</p></article>`).join("") || empty("No monitors.")}<div class="metric-grid">${(o.metrics ?? []).map((m) => `<article class="metric"><div class="row between"><strong>${h(m.metric)}</strong><b class="metric-value">${h(m.points?.at(-1)?.[1] ?? "\u2014")}</b></div><p class="hint">${h(m.tags?.join(" \xB7 "))}</p>${chart(m.points)}</article>`).join("")}</div><h3>Application logs</h3>${table((o.logs?.length ? o.logs : s.logs) ?? [], ["at", "service", "status", "message"])}<h3>Monitor history</h3>${table(rows(s, "events"), ["title", "alert_type", "text", "at"])}${details("Notification cycles and monitor runtime", { notifications: s.notifications, runtime: s.monitorRuntime })}`;
|
|
131
|
-
}
|
|
132
|
-
function treeFiles(s, sha, prefix = "", visited = /* @__PURE__ */ new Set()) {
|
|
133
|
-
if (visited.has(sha)) return [];
|
|
134
|
-
visited.add(sha);
|
|
135
|
-
const tree = rows(s, "trees").find((t) => t.sha === sha);
|
|
136
|
-
if (!tree) return [];
|
|
137
|
-
return (tree.entries ?? []).flatMap((e) => {
|
|
138
|
-
if (e.type === "tree") return treeFiles(s, e.sha, prefix + e.path + "/", new Set(visited));
|
|
139
|
-
const blob = rows(s, "blobs").find((b) => b.sha === e.sha);
|
|
140
|
-
let content = blob?.content ?? "[Missing blob]";
|
|
141
|
-
if (blob?.encoding === "base64") try {
|
|
142
|
-
content = new TextDecoder().decode(Uint8Array.from(atob(content), (c) => c.charCodeAt(0)));
|
|
143
|
-
} catch {
|
|
144
|
-
content = "[Cannot decode blob]";
|
|
145
|
-
}
|
|
146
|
-
return [{ path: prefix + e.path, content }];
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
function pullDiff(s, p) {
|
|
150
|
-
const filesAt2 = (sha) => treeFiles(s, rows(s, "commits").find((c) => c.sha === sha)?.commit?.tree);
|
|
151
|
-
const before = new Map(filesAt2(p.base_sha).map((f) => [f.path, f.content])), after = new Map(filesAt2(p.head_sha).map((f) => [f.path, f.content]));
|
|
152
|
-
const paths = [.../* @__PURE__ */ new Set([...before.keys(), ...after.keys()])].filter((path2) => before.get(path2) !== after.get(path2));
|
|
153
|
-
return paths.map((path2) => `<details><summary>Changed file \xB7 ${h(path2)}</summary><div class="diff-grid"><div><h4>Base</h4><pre>${h(before.get(path2) ?? "[File absent]")}</pre></div><div><h4>Proposed</h4><pre>${h(after.get(path2) ?? "[File absent]")}</pre></div></div></details>`).join("");
|
|
154
|
-
}
|
|
155
|
-
function github(o, manual) {
|
|
156
|
-
const s = o.state?.github ?? {};
|
|
157
|
-
return `<h2>Repositories & production</h2>${rows(s, "repos").map((r) => {
|
|
158
|
-
const commit = rows(s, "commits").find((c) => c.sha === r.production);
|
|
159
|
-
return `<article class="record"><h3>${h(r.full_name)}</h3><p class="hint">Production ${mono(r.production)} \xB7 default branch ${h(r.default_branch)}</p>${commit ? `<p>${h(commit.commit.message)}</p>${treeFiles(s, commit.commit.tree).map((f) => `<details open><summary>${h(f.path)}</summary><pre>${h(f.content)}</pre></details>`).join("")}` : empty("No production commit materialized.")}<h3>Pull requests</h3>${rows(s, "pulls").filter((p) => p.repo_id === r.id).map((p) => ({ ...p, ...Object.fromEntries(Object.entries(rows(s, "issues").find((i) => i.repo_id === p.repo_id && i.number === p.number) ?? {}).filter(([key]) => ["title", "body", "state"].includes(key))) })).map((p) => `<article class="record"><div class="row">${badge(p.merged ? "Merged" : p.state)}<strong>#${h(p.number)} ${h(p.title)}</strong></div><p>${h(p.body)}</p>${manual && p.state === "open" && !p.merged && !p.draft ? `<button data-action="merge" data-value="${h(r.full_name)}" data-number="${h(p.number)}">Merge pull request</button>` : ""}${pullDiff(s, p)}${details("Pull request data", p)}</article>`).join("") || empty("No pull requests.")}${details("Branches", rows(s, "refs").filter((b) => b.repo_id === r.id))}</article>`;
|
|
160
|
-
}).join("")}<h3>Commit history</h3>${rows(s, "commits").map((c) => `<details><summary>${h(c.commit?.message)} \xB7 ${h(c.sha?.slice(0, 10))}</summary>${code(c)}${treeFiles(s, c.commit?.tree).map((f) => `<h4>${h(f.path)}</h4><pre>${h(f.content)}</pre>`).join("")}</details>`).join("")}<h3>Deployments</h3>${table(rows(s, "deployments"))}`;
|
|
161
|
-
}
|
|
162
|
-
function seedData(scene, selected) {
|
|
163
|
-
const s = scene.seed?.[selected] ?? {}, label2 = (ref2) => named(scene, ref2);
|
|
164
|
-
let body2 = "";
|
|
165
|
-
if (selected === "slack") body2 = (s.channels ?? []).map((c) => `<section class="seed-channel"><h3># ${h(c.name)}</h3><p class="seed-people">${h((c.members ?? []).map(label2).join(" \xB7 "))}</p>${(s.messages ?? []).filter((m) => label2(m.channel) === c.name).map((m) => `<article class="message"><span class="avatar">${h(label2(m.user).slice(0, 1))}</span><div><div class="row"><strong>${h(label2(m.user))}</strong><span class="small muted">${h(m.at)}${m.thread_of ? " \xB7 Thread reply" : ""}</span></div><p class="message-text">${h(m.text)}</p></div></article>`).join("") || empty("No messages seeded")}</section>`).join("");
|
|
166
|
-
if (selected === "github") body2 = `<div class="seed-cards">${(s.repos ?? []).map((r) => `<article class="record"><h3>${h(r.name)}</h3><p class="small muted">Production</p><p>${h(label2(r.production) || "Not set")}</p><h4>Pull requests</h4>${(r.pulls ?? []).map((p) => `<p>${badge(p.merged ? "Merged" : p.draft ? "Draft" : "Open")} ${h(p.title)}</p>`).join("") || '<p class="muted">None seeded</p>'}<details><summary>Files & history</summary>${(r.commits ?? []).map((c) => `<h4>${h(c.message)}</h4>${Object.entries(c.files ?? {}).map(([path2, value]) => `<details><summary>${h(path2)}</summary><pre>${h(value)}</pre></details>`).join("")}`).join("")}</details></article>`).join("")}</div>`;
|
|
167
|
-
if (selected === "datadog") body2 = `<div class="seed-cards">${[...s.monitors ?? [], ...scene.world_rules?.monitors ?? []].map((m) => `<article class="record"><span class="small muted">Monitor</span><h3>${h(m.name)}</h3><p>${h(m.message)}</p>${details("Query", m.query)}</article>`).join("")}${(s.events ?? []).map((e) => `<article class="record"><span class="small muted">Event \xB7 ${h(e.at)}</span><h3>${h(e.title)}</h3><p>${h(e.text)}</p></article>`).join("")}${(s.logs ?? []).map((l) => `<article class="record"><span class="small muted">${h(l.service)} \xB7 ${h(l.status)} \xB7 ${h(l.at)}</span><p>${h(l.message)}</p></article>`).join("")}</div>${(scene.world_rules?.metrics ?? []).length ? `<h3>Metric behavior</h3><div class="seed-cards">${scene.world_rules.metrics.map((m) => `<article class="record"><h3>${h(m.name)}</h3><p>Baseline: ${h(m.baseline)}</p>${(m.effects ?? []).map((e) => `<p>${h(e.value)} while \u201C${h(label2(e.while))}\u201D is active</p>`).join("")}${details("Exact metric definition", m)}</article>`).join("")}</div>` : ""}`;
|
|
168
|
-
if (selected === "pagerduty") body2 = `<div class="seed-cards">${(s.services ?? []).map((v) => `<article class="record"><span class="small muted">Service</span><h3>${h(v.name)}</h3><p>${h(label2(v.escalation_policy))}</p>${(s.escalation_policies ?? []).filter((p) => label2(v.escalation_policy) === label2("$" + p.ref)).map((p) => `<ol>${(p.levels ?? []).map((l) => `<li>${h((l.targets ?? []).map(label2).join(", "))}${l.after ? ` \xB7 escalate after ${h(l.after)}` : ""}</li>`).join("")}</ol>`).join("")}${v.slack_channel ? `<p class="small muted">Slack \xB7 #${h(label2(v.slack_channel))}</p>` : ""}</article>`).join("")}${(s.incidents ?? []).map((i) => `<article class="record">${badge(i.status)}<h3>${h(i.title)}</h3><p>${h(label2(i.service))}</p></article>`).join("")}</div>`;
|
|
169
|
-
return `<h2>${h(toolName(selected))}</h2>${body2 || empty("No data seeded")}${details("Full starting data", s)}${selected === "datadog" ? details("Generated telemetry definitions", { metrics: scene.world_rules?.metrics, logs: scene.world_rules?.logs, monitors: scene.world_rules?.monitors }) : ""}`;
|
|
170
|
-
}
|
|
171
|
-
var countLabel = (count3, noun, plural2 = noun + "s") => `${count3} ${count3 === 1 ? noun : plural2}`;
|
|
172
|
-
function agentLabel(agent, all) {
|
|
173
|
-
const twins = all.filter((other) => other.name === agent.name);
|
|
174
|
-
if (twins.length < 2) return String(agent.name);
|
|
175
|
-
const folder = (a) => String(a.cwd ?? "").split("/").filter(Boolean).pop() ?? "";
|
|
176
|
-
const distinct = new Set(twins.map(folder)).size === twins.length && folder(agent);
|
|
177
|
-
return `${agent.name} \xB7 ${distinct ? folder(agent) : String(agent.id).slice(-4)}`;
|
|
178
|
-
}
|
|
179
|
-
function connectDefaults(detected) {
|
|
180
|
-
const started = Array.isArray(detected?.evidence) && detected.evidence.includes("package.json") && /^(?:npm|pnpm) start$/.test(String(detected?.suggestions?.command ?? ""));
|
|
181
|
-
return started ? { taskInputKind: "command", state: "stateless" } : {};
|
|
182
|
-
}
|
|
183
|
-
var toolNames = { slack: "Slack", "open-meteo": "Open-Meteo", datadog: "Datadog", pagerduty: "PagerDuty", github: "GitHub", "linkedin-ads": "LinkedIn Ads", salesforce: "Salesforce", gong: "Gong", "google-ads": "Google Ads", "chatgpt-ads": "ChatGPT Ads", hubspot: "HubSpot", ga4: "Google Analytics", gmail: "Gmail", "google-drive": "Google Drive", "amazon-s3": "Amazon S3", linear: "Linear", okta: "Okta", stripe: "Stripe", clerk: "Clerk", supabase: "Supabase", "better-stack": "Better Stack", notion: "Notion", attio: "Attio", dropbox: "Dropbox", resend: "Resend", "microsoft-word": "Microsoft Word", outlook: "Outlook", shopify: "Shopify", lob: "Lob", paypal: "PayPal", jira: "Jira", kalshi: "Kalshi", intercom: "Intercom", zendesk: "Zendesk", "google-calendar": "Google Calendar", twilio: "Twilio", asana: "Asana", discord: "Discord", sentry: "Sentry", airtable: "Airtable", netsuite: "NetSuite", quickbooks: "QuickBooks Online", "carrier-portal": "Carrier portal" };
|
|
184
|
-
var toolName = (name) => toolNames[name] ?? name;
|
|
185
|
-
var toolLinks = (names) => names.map((name) => `<a class="tool-chip" href="/tools/${encodeURIComponent(name)}" data-nav>${h(toolName(name))}</a>`).join("");
|
|
186
|
-
var toolDescription = (name) => ({ slack: "Channels, messages and threads", datadog: "Monitors, metrics and logs", pagerduty: "Incidents, on-call and escalation", github: "Repositories, pull requests and deployments" })[name] ?? "API capabilities";
|
|
187
|
-
function sandboxOverview(s, o) {
|
|
188
|
-
const scene = { ...s.scene, twins: s.tools };
|
|
189
|
-
return `<section class="panel sandbox-map"><div class="row between"><h2>Tools & connections</h2>${s.setupOpen ? button("Manage tools", "configure-tools") : ""}</div>${s.tools?.length ? routes(scene, o) : empty("No tools added")}</section><section class="panel setup-panel"><div><span class="section-label">Scenario</span><h2>${s.key ? h(title(s.scene)) : "No scenario loaded"}</h2>${s.key ? `<a data-nav href="/scenarios/${encodeURIComponent(s.key)}">View scenario \u2192</a>` : ""}</div>${!s.key && s.setupOpen ? button("Load scenario", "load-scenario", "", "primary") : s.key ? `<div class="row"><span class="muted small">Paused \xB7 ${clock(o.simMs)}</span>${button("Next 30 seconds \u2192", "advance", "30000", "primary")}</div>` : ""}</section>${s.key ? `<div class="overview-footer">${button("Inspect activity & data", "inspect")}</div>` : ""}`;
|
|
190
|
-
}
|
|
191
|
-
function toolDataPanel(view2, selected = "") {
|
|
192
|
-
const tables = view2.tables ?? [], active = tables.find((t) => t.title === selected) ?? tables[0];
|
|
193
|
-
const calls = view2.conversations ?? [];
|
|
194
|
-
return `${tables.length > 1 ? `<div class="resource-tabs" aria-label="Records">${tables.map((t) => button(t.title, "resource", t.title, t === active ? "active" : "")).join("")}</div>` : ""}${active ? `<div class="row between"><h2>${h(active.title)}</h2><span class="small muted">${countLabel(active.total, "record")}</span></div>${table(active.rows, active.columns)}${active.rows.length < active.total ? `<p class="hint">Showing ${active.rows.length} of ${active.total} records.</p>` : ""}` : empty("No records yet.")}${calls.length && (!active || active.title === "Calls") ? `<div class="transcript-list">${calls.map((c, i) => `<div class="relationship-row"><span>${h(c.title)}</span>${button(c.messages.length ? "Read transcript" : c.status === "processing" ? "Processing" : "Unavailable", "conversation", String(i), "link")}</div>`).join("")}</div>` : ""}`;
|
|
195
|
-
}
|
|
196
|
-
function sandboxActivity(o) {
|
|
197
|
-
const rows3 = (o.trace ?? []).filter((t) => t.source === "agent" || t.source === "manual");
|
|
198
|
-
return `<div class="row between"><h2>Activity</h2><span class="small muted">Oldest first \u2193</span></div>${rows3.length ? `<div class="flat-activity">${rows3.slice(-200).map((t) => `<div class="activity-row"><time>${h(time(t.tSim))}</time><strong>${h(toolName(t.service))}</strong><span>${h(t.method ?? "")} ${h(t.path)}</span>${badge(t.gap ? "Unsupported" : t.status >= 400 ? "Rejected" : "Completed", t.gap || t.status >= 400 ? "warn" : "")}</div>`).join("")}</div>` : empty("No tool requests yet. Connect your agent to start.")}`;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// frontend/src/tool-logos.ts
|
|
202
|
-
var logos = {
|
|
203
|
-
"supabase": '<svg width="109" height="113" viewBox="0 0 109 113" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z" fill="url(#SVGsupabase0)"/><path d="M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z" fill="url(#SVGsupabase1)" fill-opacity="0.2"/><path d="M45.317 2.07103C48.1765 -1.53037 53.9745 0.442937 54.0434 5.041L54.4849 72.2922H9.83113C1.64038 72.2922 -2.92775 62.8321 2.1655 56.4175L45.317 2.07103Z" fill="#3ECF8E"/><defs><linearGradient id="SVGsupabase0" x1="53.9738" y1="54.974" x2="94.1635" y2="71.8295" gradientUnits="userSpaceOnUse"><stop stop-color="#249361"/><stop offset="1" stop-color="#3ECF8E"/></linearGradient><linearGradient id="SVGsupabase1" x1="36.1558" y1="30.578" x2="54.4844" y2="65.0806" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-opacity="0"/></linearGradient></defs></svg>',
|
|
204
|
-
// Original neutral ledger glyph.
|
|
205
|
-
"quickbooks": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none" stroke="#4b5563" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="3" width="21" height="26" rx="2"/><path d="M11 3v26M3 9h6M3 16h6M3 23h6M15 10h8M15 16h8M15 22h8"/></svg>',
|
|
206
|
-
"slack": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#e01e5a" d="M53.841 161.32c0 14.832-11.987 26.82-26.819 26.82S.203 176.152.203 161.32c0-14.831 11.987-26.818 26.82-26.818H53.84zm13.41 0c0-14.831 11.987-26.818 26.819-26.818s26.819 11.987 26.819 26.819v67.047c0 14.832-11.987 26.82-26.82 26.82c-14.83 0-26.818-11.988-26.818-26.82z"/><path fill="#36c5f0" d="M94.07 53.638c-14.832 0-26.82-11.987-26.82-26.819S79.239 0 94.07 0s26.819 11.987 26.819 26.819v26.82zm0 13.613c14.832 0 26.819 11.987 26.819 26.819s-11.987 26.819-26.82 26.819H26.82C11.987 120.889 0 108.902 0 94.069c0-14.83 11.987-26.818 26.819-26.818z"/><path fill="#2eb67d" d="M201.55 94.07c0-14.832 11.987-26.82 26.818-26.82s26.82 11.988 26.82 26.82s-11.988 26.819-26.82 26.819H201.55zm-13.41 0c0 14.832-11.988 26.819-26.82 26.819c-14.831 0-26.818-11.987-26.818-26.82V26.82C134.502 11.987 146.489 0 161.32 0s26.819 11.987 26.819 26.819z"/><path fill="#ecb22e" d="M161.32 201.55c14.832 0 26.82 11.987 26.82 26.818s-11.988 26.82-26.82 26.82c-14.831 0-26.818-11.988-26.818-26.82V201.55zm0-13.41c-14.831 0-26.818-11.988-26.818-26.82c0-14.831 11.987-26.818 26.819-26.818h67.25c14.832 0 26.82 11.987 26.82 26.819s-11.988 26.819-26.82 26.819z"/></svg>',
|
|
207
|
-
"github": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 250"><path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403"/></svg>',
|
|
208
|
-
"datadog": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 275"><path fill="#632ca6" d="m214.434 194.558l-22.796-15.039l-19.016 31.766l-22.118-6.465l-19.474 29.723l.997 9.355l105.89-19.513l-6.15-66.163zm-98.745-28.523l16.99-2.336c2.748 1.235 4.66 1.706 7.956 2.544c5.136 1.334 11.074 2.617 19.872-1.814c2.047-1.015 6.314-4.915 8.038-7.14l69.605-12.624l7.1 85.94l-119.252 21.49zm129.293-30.967l-6.871 1.309L224.91 0L0 26.078l27.71 224.856l26.33-3.822c-2.104-3.002-5.378-6.634-10.967-11.282c-7.752-6.44-5.014-17.384-.436-24.294c6.051-11.674 37.23-26.51 35.463-45.168c-.634-6.785-1.71-15.613-8.011-21.669c-.238 2.514.19 4.928.19 4.928s-2.587-3.3-3.874-7.795c-1.279-1.728-2.285-2.277-3.646-4.583c-.971 2.665-.842 5.757-.842 5.757s-2.116-4.997-2.457-9.216c-1.253 1.887-1.568 5.472-1.568 5.472s-2.747-7.878-2.12-12.124c-1.253-3.692-4.972-11.022-3.922-27.676c6.862 4.807 21.975 3.667 27.861-5.01c1.953-2.876 3.296-10.72-.976-26.182c-2.742-9.912-9.532-24.674-12.18-30.276l-.315.23c1.396 4.512 4.272 13.967 5.378 18.558c3.343 13.907 4.237 18.753 2.669 25.167c-1.335 5.576-4.535 9.22-12.646 13.298c-8.111 4.09-18.879-5.865-19.557-6.414c-7.882-6.28-13.98-16.52-14.658-21.5c-.709-5.446 3.14-8.716 5.079-13.168c-2.777.79-5.87 2.202-5.87 2.202s3.693-3.822 8.245-7.126c1.888-1.248 2.993-2.043 4.98-3.693c-2.876-.047-5.213.035-5.213.035s4.798-2.592 9.77-4.48c-3.637-.159-7.122-.025-7.122-.025S48 36.288 56.454 32.777c5.813-2.384 11.492-1.68 14.684 2.937c4.19 6.046 8.59 9.329 17.915 11.363c5.727-2.54 7.464-3.84 14.66-5.805c6.33-6.966 11.302-7.865 11.302-7.865s-2.466 2.264-3.127 5.818c3.59-2.829 7.524-5.191 7.524-5.191s-1.525 1.878-2.946 4.867l.328.493c4.19-2.514 9.113-4.492 9.113-4.492s-1.408 1.78-3.057 4.081c3.161-.026 9.566.134 12.054.415c14.68.324 17.725-15.674 23.357-17.682c7.053-2.518 10.206-4.043 22.226 7.765c10.31 10.141 18.368 28.281 14.365 32.345c-3.356 3.374-9.973-1.317-17.307-10.456c-3.874-4.841-6.806-10.564-8.18-17.837c-1.157-6.138-5.666-9.696-5.666-9.696s2.613 5.83 2.613 10.965c0 2.808.35 13.299 4.85 19.19c-.445.86-.652 4.258-1.145 4.91c-5.234-6.327-16.477-10.853-18.312-12.188c6.206 5.084 20.468 16.762 25.944 27.961c5.183 10.586 2.13 20.291 4.75 22.8c.748.717 11.144 13.674 13.144 20.183c3.49 11.342.207 23.267-4.358 30.66l-12.754 1.987c-1.866-.518-3.123-.777-4.794-1.744c.924-1.633 2.755-5.701 2.772-6.544l-.72-1.26c-3.97 5.622-10.617 11.082-16.14 14.217c-7.23 4.099-15.562 3.464-20.987 1.788c-15.393-4.746-29.952-15.15-33.463-17.885c0 0-.108 2.181.552 2.674c3.879 4.38 12.772 12.296 21.37 17.82l-18.325 2.017l8.664 67.45c-3.84.548-4.44.82-8.642 1.416c-3.706-13.09-10.793-21.638-18.542-26.618c-6.832-4.392-16.256-5.381-25.274-3.593l-.58.674c6.272-.652 13.675.255 21.28 5.07c7.464 4.721 13.48 16.914 15.696 24.251c2.837 9.381 4.798 19.419-2.838 30.056c-5.429 7.563-21.28 11.74-34.09 2.7c3.421 5.502 8.042 9.998 14.27 10.845c9.243 1.257 18.015-.35 24.053-6.548c5.152-5.3 7.89-16.382 7.17-28.052l8.158-1.183l2.946 20.947L256 242.542zm-82.156-56.885c-.376.859-.972 1.425-.082 4.223l.052.16l.143.363l.371.838c1.602 3.278 3.36 6.366 6.306 7.947q1.14-.196 2.367-.255c2.764-.12 4.509.315 5.61.911c.1-.552.12-1.356.06-2.543c-.216-4.151.821-11.208-7.156-14.923c-3.01-1.395-7.235-.967-8.643.778c.255.034.484.086.666.147c2.133.738.69 1.472.306 2.354m22.364 38.724c-1.045-.58-5.934-.35-9.372.06c-6.548.773-13.618 3.04-15.164 4.25c-2.816 2.177-1.538 5.969.544 7.528c5.835 4.358 10.949 7.282 16.343 6.57c3.313-.437 6.237-5.685 8.306-10.444c1.416-3.278 1.416-6.815-.657-7.964m-57.965-33.59c1.844-1.753-9.195-4.055-17.764 1.789c-6.319 4.31-6.522 13.553-.471 18.792a15 15 0 0 0 1.568 1.188a51 51 0 0 1 6.098-2.423c3.913-1.27 7.17-1.927 9.843-2.277c1.279-1.43 2.769-3.947 2.397-8.508c-.51-6.19-5.191-5.209-1.671-8.56"/></svg>',
|
|
209
|
-
"pagerduty": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 372"><path fill="#06ac38" d="M54.554 272.557v98.919H0v-98.919zM109.047.001c46.745.051 67.005 2.703 95.795 18.254C236.471 35.237 256 68.988 256 111.018c0 39.058-15.92 72.81-46.488 92.975c-28.02 18.68-59.86 21.228-102.315 21.228H0V0Zm8.739 47.753l-1.673.007l-61.56.425v129.91h65.168c45.639 0 80.451-18.255 80.451-66.44c0-44.79-28.02-64.32-84.06-63.895Z"/></svg>',
|
|
210
|
-
"linkedin-ads": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#0a66c2" d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4c-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.91 39.91 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186zM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009s9.851-22.014 22.008-22.016c12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97zM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453"/></svg>',
|
|
211
|
-
"salesforce": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 180"><path fill="#00a1e0" d="M106.553 19.651c8.248-8.594 19.731-13.924 32.43-13.924c16.883 0 31.612 9.414 39.455 23.389a54.5 54.5 0 0 1 22.3-4.74c30.449 0 55.134 24.9 55.134 55.615c0 30.719-24.685 55.62-55.134 55.62a54.7 54.7 0 0 1-10.86-1.083c-6.908 12.321-20.07 20.645-35.178 20.645a40.1 40.1 0 0 1-17.632-4.058c-7.002 16.47-23.316 28.019-42.33 28.019c-19.8 0-36.674-12.529-43.152-30.1c-2.83.602-5.763.915-8.772.915c-23.574 0-42.686-19.308-42.686-43.13a43.2 43.2 0 0 1 21.345-37.36a49.4 49.4 0 0 1-4.088-19.727C17.385 22.336 39.626.128 67.06.128c16.106 0 30.42 7.658 39.494 19.523"/><path fill="#fff" d="M37.17 92.956c-.16.419.058.506.11.58c.48.349.968.6 1.46.88c2.609 1.385 5.071 1.79 7.647 1.79c5.246 0 8.503-2.79 8.503-7.283v-.087c0-4.153-3.676-5.662-7.126-6.75l-.448-.147c-2.601-.845-4.845-1.573-4.845-3.286v-.09c0-1.465 1.311-2.544 3.344-2.544c2.259 0 4.94.75 6.667 1.705c0 0 .506.328.692-.164c.102-.262.976-2.615 1.068-2.87c.098-.277-.077-.481-.255-.59c-1.971-1.2-4.696-2.019-7.516-2.019l-.525.004c-4.801 0-8.153 2.9-8.153 7.057v.087c0 4.383 3.698 5.803 7.162 6.794l.558.172c2.524.775 4.7 1.442 4.7 3.22v.087c0 1.625-1.414 2.835-3.695 2.835c-.885 0-3.708-.018-6.758-1.946c-.368-.215-.583-.371-.867-.542c-.15-.095-.524-.26-.688.236zm76.8 0c-.16.419.058.506.11.58c.48.349.968.6 1.46.88c2.608 1.385 5.071 1.79 7.647 1.79c5.246 0 8.503-2.79 8.503-7.283v-.087c0-4.153-3.676-5.662-7.126-6.75l-.448-.147c-2.601-.845-4.846-1.573-4.846-3.286v-.09c0-1.465 1.312-2.544 3.345-2.544c2.259 0 4.94.75 6.667 1.705c0 0 .506.328.692-.164c.102-.262.976-2.615 1.067-2.87c.099-.277-.076-.481-.255-.59c-1.97-1.2-4.696-2.019-7.515-2.019l-.525.004c-4.802 0-8.153 2.9-8.153 7.057v.087c0 4.383 3.697 5.803 7.162 6.794l.557.172c2.525.775 4.704 1.442 4.704 3.22v.087c0 1.625-1.418 2.835-3.698 2.835a12.4 12.4 0 0 1-6.758-1.946c-.368-.215-.587-.364-.863-.542c-.095-.062-.54-.234-.693.236zm52.429-8.799c0 2.54-.474 4.54-1.406 5.953c-.922 1.4-2.317 2.08-4.263 2.08c-1.949 0-3.337-.677-4.244-2.08c-.918-1.41-1.384-3.413-1.384-5.953c0-2.535.466-4.532 1.384-5.93c.907-1.385 2.295-2.059 4.244-2.059c1.946 0 3.34.674 4.266 2.058c.93 1.4 1.403 3.396 1.403 5.931m4.379-4.707c-.43-1.453-1.1-2.735-1.993-3.803c-.893-1.071-2.022-1.93-3.363-2.557c-1.337-.623-2.918-.94-4.692-.94c-1.778 0-3.359.317-4.696.94c-1.34.626-2.47 1.486-3.366 2.557c-.889 1.071-1.56 2.354-1.993 3.803c-.426 1.447-.64 3.028-.64 4.707c0 1.68.214 3.265.64 4.707c.434 1.45 1.1 2.732 1.997 3.804a9.4 9.4 0 0 0 3.362 2.535c1.34.609 2.918.918 4.696.918c1.774 0 3.352-.31 4.692-.918a9.4 9.4 0 0 0 3.363-2.535c.893-1.068 1.563-2.35 1.993-3.804c.43-1.446.645-3.03.645-4.707c0-1.675-.215-3.26-.645-4.707m35.959 12.063c-.145-.426-.557-.266-.557-.266c-.637.244-1.315.47-2.036.583a16 16 0 0 1-2.401.171c-2.12 0-3.804-.63-5.01-1.876c-1.209-1.246-1.887-3.26-1.88-5.986c.008-2.48.606-4.346 1.68-5.767c1.068-1.413 2.692-2.138 4.86-2.138c1.807 0 3.184.207 4.627.663c0 0 .346.15.51-.303c.382-1.063.667-1.825 1.075-2.994c.116-.332-.168-.474-.27-.514c-.568-.222-1.909-.583-2.922-.736c-.947-.145-2.054-.222-3.286-.222c-1.84 0-3.479.313-4.882.94c-1.399.623-2.586 1.483-3.526 2.554s-1.654 2.353-2.131 3.803c-.474 1.446-.714 3.035-.714 4.714c0 3.632.98 6.569 2.914 8.718c1.938 2.157 4.85 3.253 8.645 3.253c2.244 0 4.547-.455 6.2-1.107c0 0 .318-.153.18-.521zm7.663-9.788c.207-1.41.597-2.583 1.198-3.497c.907-1.388 2.291-2.15 4.237-2.15c1.945 0 3.231.765 4.153 2.15c.612.914.878 2.138.983 3.497zm14.743-3.1c-.372-1.403-1.294-2.82-1.898-3.468c-.955-1.028-1.887-1.746-2.813-2.146a10.8 10.8 0 0 0-4.248-.86c-1.85 0-3.53.31-4.892.95c-1.366.642-2.514 1.516-3.414 2.606c-.9 1.085-1.577 2.379-2.007 3.847c-.434 1.46-.652 3.053-.652 4.732c0 1.709.226 3.3.674 4.732c.451 1.443 1.173 2.715 2.15 3.767c.972 1.06 2.225 1.891 3.726 2.47c1.49.576 3.3.875 5.38.871c4.281-.015 6.537-.969 7.465-1.483c.164-.09.321-.251.124-.71l-.969-2.714c-.145-.405-.557-.255-.557-.255c-1.06.393-2.568 1.1-6.084 1.093c-2.299-.004-4.004-.682-5.071-1.742c-1.097-1.085-1.632-2.68-1.727-4.932l14.824.014s.39-.007.43-.386c.014-.16.51-3.046-.441-6.386m-133.46 3.1c.211-1.41.597-2.583 1.199-3.497c.907-1.388 2.291-2.15 4.236-2.15c1.946 0 3.232.765 4.157 2.15c.609.914.875 2.138.98 3.497zm14.74-3.1c-.372-1.403-1.29-2.82-1.895-3.468c-.954-1.028-1.887-1.746-2.812-2.146a10.8 10.8 0 0 0-4.248-.86c-1.847 0-3.53.31-4.892.95c-1.367.642-2.514 1.516-3.414 2.606c-.9 1.085-1.577 2.379-2.007 3.847c-.43 1.46-.652 3.053-.652 4.732c0 1.709.225 3.3.674 4.732c.451 1.443 1.173 2.715 2.149 3.767c.973 1.06 2.226 1.891 3.727 2.47c1.49.576 3.3.875 5.38.871c4.281-.015 6.536-.969 7.465-1.483c.164-.09.32-.251.124-.71l-.965-2.714c-.15-.405-.561-.255-.561-.255c-1.06.393-2.565 1.1-6.088 1.093c-2.295-.004-4-.682-5.067-1.742c-1.097-1.085-1.633-2.68-1.727-4.932l14.823.014s.39-.007.43-.386c.015-.16.51-3.046-.444-6.386M63.642 91.431c-.58-.462-.66-.579-.856-.878c-.292-.455-.441-1.104-.441-1.927c0-1.304.43-2.24 1.322-2.87c-.01.003 1.275-1.112 4.3-1.072c2.123.03 4.021.343 4.021.343v6.74h.004s-1.884.404-4.004.531c-3.017.182-4.357-.87-4.346-.867m5.898-10.415c-.601-.044-1.38-.07-2.313-.07c-1.272 0-2.5.16-3.65.47a9.5 9.5 0 0 0-3.097 1.436a7.15 7.15 0 0 0-2.15 2.444c-.524.977-.79 2.128-.79 3.417c0 1.312.225 2.452.677 3.385a6.1 6.1 0 0 0 1.935 2.317c.823.601 1.84 1.042 3.02 1.308c1.162.266 2.48.4 3.923.4c1.52 0 3.035-.123 4.503-.375a94 94 0 0 0 3.734-.721c.492-.117 1.039-.266 1.039-.266c.368-.091.338-.485.338-.485l-.007-13.555c0-2.973-.794-5.177-2.357-6.543c-1.555-1.363-3.847-2.051-6.809-2.051c-1.11 0-2.9.153-3.97.368c0 0-3.24.626-4.573 1.668c0 0-.291.182-.131.59l1.05 2.82c.13.364.484.24.484.24s.113-.043.244-.12c2.852-1.552 6.459-1.504 6.459-1.504c1.603 0 2.834.32 3.665.958c.809.619 1.22 1.555 1.22 3.53v.626c-1.275-.182-2.444-.287-2.444-.287m119.56-7.639a.4.4 0 0 0-.223-.532c-.251-.098-1.512-.364-2.485-.426c-1.861-.113-2.896.2-3.821.616c-.918.415-1.938 1.085-2.507 1.847v-1.804c0-.251-.178-.451-.426-.451h-3.8c-.247 0-.426.2-.426.451v22.11c0 .248.204.452.452.452h3.894a.45.45 0 0 0 .448-.452V84.142c0-1.482.164-2.962.492-3.89c.32-.919.758-1.654 1.297-2.183a4.55 4.55 0 0 1 1.833-1.1c.688-.211 1.45-.28 1.989-.28c.776 0 1.628.2 1.628.2c.284.033.445-.142.54-.4c.254-.678.976-2.708 1.114-3.112"/><path fill="#fff" d="M152.544 63.13a13 13 0 0 0-1.465-.35a11.6 11.6 0 0 0-2.014-.152c-2.682 0-4.795.757-6.277 2.251c-1.476 1.486-2.478 3.749-2.98 6.725l-.183 1.002h-3.366s-.408-.015-.495.43l-.55 3.086c-.04.291.087.477.48.477h3.276l-3.323 18.55c-.258 1.494-.557 2.722-.889 3.654c-.324.918-.64 1.607-1.034 2.11c-.38.48-.736.838-1.356 1.045c-.51.172-1.1.252-1.745.252c-.357 0-.834-.059-1.187-.131a3.5 3.5 0 0 1-.802-.26s-.382-.145-.535.238c-.12.317-.995 2.717-1.1 3.013c-.102.295.043.524.229.593c.437.153.761.255 1.355.397c.824.194 1.52.204 2.172.204c1.362 0 2.608-.193 3.639-.564c1.035-.375 1.938-1.028 2.74-1.91c.863-.954 1.406-1.952 1.923-3.318c.514-1.348.955-3.024 1.304-4.976l3.341-18.897h4.882s.411.014.495-.434l.554-3.082c.036-.295-.087-.477-.485-.477h-4.74c.026-.106.241-1.774.784-3.344c.233-.667.67-1.21 1.038-1.581a3.1 3.1 0 0 1 1.243-.773c.47-.153 1.005-.226 1.592-.226c.444 0 .885.051 1.216.12c.46.099.638.15.758.186c.485.146.55.004.645-.23l1.133-3.11c.117-.335-.171-.478-.273-.518M86.322 95.19c0 .247-.179.448-.426.448h-3.931c-.248 0-.423-.2-.423-.448V63.553c0-.247.175-.448.423-.448h3.93c.248 0 .427.2.427.448z"/></svg>',
|
|
212
|
-
"ga4": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 284"><path fill="#f9ab00" d="M256.003 247.933a35.224 35.224 0 0 1-39.376 35.161c-18.044-2.67-31.266-18.371-30.826-36.606V36.845C185.365 18.591 198.62 2.881 216.687.24a35.22 35.22 0 0 1 39.316 35.16z"/><path fill="#e37400" d="M35.101 213.193c19.386 0 35.101 15.716 35.101 35.101c0 19.386-15.715 35.101-35.101 35.101S0 267.68 0 248.295s15.715-35.102 35.101-35.102m92.358-106.387c-19.477 1.068-34.59 17.406-34.137 36.908v94.285c0 25.588 11.259 41.122 27.755 44.433a35.16 35.16 0 0 0 42.146-34.56V142.089a35.22 35.22 0 0 0-35.764-35.282"/></svg>',
|
|
213
|
-
"hubspot": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#FF7A59" d="M18.164 7.93V5.084a2.2 2.2 0 0 0 1.267-1.978v-.067A2.2 2.2 0 0 0 17.238.845h-.067a2.2 2.2 0 0 0-2.193 2.193v.067a2.2 2.2 0 0 0 1.252 1.973l.013.006v2.852a6.2 6.2 0 0 0-2.969 1.31l.012-.01l-7.828-6.095A2.497 2.497 0 1 0 4.3 4.656l-.012.006l7.697 5.991a6.2 6.2 0 0 0-1.038 3.446a6.2 6.2 0 0 0 1.147 3.607l-.013-.02l-2.342 2.343a2 2 0 0 0-.58-.095h-.002a2.033 2.033 0 1 0 2.033 2.033a2 2 0 0 0-.1-.595l.005.014l2.317-2.317a6.247 6.247 0 1 0 4.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 1 1 3.215-3.207v.002a3.206 3.206 0 0 1-3.207 3.207z"/></svg>',
|
|
214
|
-
"google-ads": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 230"><path fill="#fbbc04" d="M5.888 166.405L90.88 20.9c10.796 6.356 65.236 36.484 74.028 42.214L79.916 208.627c-9.295 12.28-85.804-23.587-74.028-42.23z"/><path fill="#4285f4" d="M250.084 166.402L165.092 20.906C153.21 1.132 127.62-6.054 106.601 5.625S79.182 42.462 91.064 63.119l84.992 145.514c11.882 19.765 37.473 26.95 58.492 15.272c20.1-11.68 27.418-37.73 15.536-57.486z"/><ellipse cx="42.664" cy="187.924" fill="#34a853" rx="42.664" ry="41.604"/></svg>',
|
|
215
|
-
"chatgpt-ads": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 260"><path d="M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z"/></svg>',
|
|
216
|
-
"open-meteo": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="25" cy="24" r="11" fill="#f2a93b"/><g stroke="#f2a93b" stroke-width="3.5" stroke-linecap="round"><path d="M25 5v5M25 38v4M6 24h5M10.9 9.9l3.5 3.5M39.1 9.9l-3.5 3.5M10.9 38.1l3.5-3.5"/></g><path d="M24 55h25a11 11 0 0 0 1.4-21.9A15 15 0 0 0 22.3 38 8.5 8.5 0 0 0 24 55z" fill="#5b8fd6"/></svg>',
|
|
217
|
-
"gong": '<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="512" height="512" rx="85.3333" fill="#8039DF"/>\n<rect x="53.4446" y="53.4446" width="21.3333" height="21.3333" fill="#3E0075"/>\n<rect x="437.333" y="53.3333" width="21.3333" height="21.3333" fill="#3E0075"/>\n<rect x="437.333" y="437.333" width="21.3333" height="21.3333" fill="#3E0075"/>\n<rect x="53.3333" y="437.333" width="21.3333" height="21.3333" fill="#3E0075"/>\n<path d="M427.2 229.814H328.146C322.677 229.814 318.423 235.887 320.246 240.745L343.946 302.075C345.162 304.504 342.731 307.54 339.693 307.54L309.308 305.719C308.093 305.719 306.877 306.326 305.662 307.54L282.57 340.938C281.354 342.76 278.924 343.367 276.493 342.153L241.247 318.471C240.031 317.256 238.208 317.256 236.385 318.471L187.77 351.261C184.732 353.69 180.478 350.654 181.693 347.011L195.67 298.432C196.278 296.61 195.062 294.181 193.239 293.574L167.716 283.251C165.285 282.037 164.07 279 165.893 277.179L188.378 249.246C189.593 248.031 189.593 245.602 188.378 244.388L169.539 217.062C167.716 214.634 169.539 210.99 172.578 210.99L202.355 208.561C204.785 208.561 206.001 206.74 206.001 204.311L203.57 163.019C203.57 159.982 206.608 158.161 209.039 158.768L245.501 173.949C247.324 174.556 249.147 173.949 250.362 172.734L275.885 144.802C277.708 142.373 281.354 142.98 282.57 146.016L297.762 184.879C299.585 189.737 305.662 191.559 309.916 188.522L369.469 144.194C376.154 139.337 371.9 128.406 363.392 129.621L325.108 134.479C323.285 134.479 321.462 133.871 320.854 132.05L300.193 79.2203C297.762 73.7552 291.077 72.5408 286.823 76.7914L241.854 125.37C240.639 126.585 238.816 127.192 236.993 126.585L178.047 101.688C172.578 99.2591 167.109 102.902 166.501 108.975L164.07 169.698C164.07 172.127 162.247 173.342 160.424 173.342L106.339 176.985C100.263 177.592 96.6164 184.272 100.263 189.737L136.116 242.566C137.332 243.781 137.332 246.21 136.116 247.424L99.6549 289.323C96.6164 292.36 98.4395 299.039 103.301 300.861L145.232 319.078C147.055 319.685 148.27 322.114 147.662 323.936L120.924 427.773C119.101 435.06 127.609 440.525 133.686 436.274L233.954 364.62C235.17 363.406 236.993 363.406 238.816 364.62L284.393 396.804C288.039 399.233 293.508 398.626 295.939 394.375L324.5 350.654C325.108 349.44 326.931 348.832 328.146 348.832L396.208 357.334C401.677 357.941 407.146 353.69 405.323 348.225L376.762 274.75C376.154 272.928 376.762 270.499 379.192 269.285L430.846 244.995C438.138 241.352 435.708 229.814 427.2 229.814Z" fill="white"/>\n</svg>\n',
|
|
218
|
-
"gmail": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 36"><path fill="#4285f4" d="M3 36h8V17L0 9v24a3 3 0 0 0 3 3z"/><path fill="#34a853" d="M37 36h8a3 3 0 0 0 3-3V9l-11 8z"/><path fill="#fbbc04" d="M37 3v14l11-8V5c0-4-4.6-6.4-7.8-4z"/><path fill="#ea4335" d="M11 17V3l13 9.7L37 3v14l-13 9.7z"/><path fill="#c5221f" d="M0 5v4l11 8V3L7.8 1C4.6-1.4 0 1 0 5z"/></svg>',
|
|
219
|
-
"google-drive": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.3 78"><path fill="#0066da" d="m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8H0c0 1.55.4 3.1 1.2 4.5z"/><path fill="#00ac47" d="M43.65 25 29.9 1.2c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44A9.06 9.06 0 0 0 0 53h27.5z"/><path fill="#ea4335" d="M73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5H59.798l5.852 11.5z"/><path fill="#00832d" d="M43.65 25 57.4 1.2C56.05.4 54.5 0 52.9 0H34.4c-1.6 0-3.15.45-4.5 1.2z"/><path fill="#2684fc" d="M59.8 53H27.5L13.75 76.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z"/><path fill="#ffba00" d="m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3L43.65 25 59.8 53h27.45c0-1.55-.4-3.1-1.2-4.5z"/></svg>',
|
|
220
|
-
"amazon-s3": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><defs><linearGradient id="SVG7R6tZwZW" x1="0%" x2="100%" y1="100%" y2="0%"><stop offset="0%" stop-color="#1b660f"/><stop offset="100%" stop-color="#6cae3e"/></linearGradient></defs><path fill="url(#SVG7R6tZwZW)" d="M0 0h256v256H0z"/><path fill="#fff" d="m194.675 137.256l1.229-8.652c11.33 6.787 11.478 9.59 11.475 9.667c-.02.016-1.952 1.629-12.704-1.015m-6.218-1.728c-19.584-5.926-46.857-18.438-57.894-23.654c0-.045.013-.086.013-.131c0-4.24-3.45-7.69-7.693-7.69c-4.237 0-7.687 3.45-7.687 7.69s3.45 7.69 7.687 7.69c1.862 0 3.552-.695 4.886-1.8c12.986 6.148 40.048 18.478 59.776 24.302l-7.801 55.059q-.033.225-.032.451c0 4.848-21.463 13.754-56.532 13.754c-35.44 0-57.13-8.906-57.13-13.754q0-.22-.028-.435l-16.3-119.062c14.108 9.712 44.454 14.85 73.478 14.85c28.979 0 59.273-5.12 73.41-14.802zM48 65.528c.23-4.21 24.428-20.73 75.2-20.73c50.764 0 74.966 16.516 75.2 20.73v1.437c-2.784 9.443-34.144 19.434-75.2 19.434c-41.127 0-72.503-10.023-75.2-19.479zm156.8.07c0-11.087-31.79-27.2-81.6-27.2c-49.812 0-81.6 16.113-81.6 27.2l.3 2.414l17.754 129.676c.426 14.503 39.1 19.91 63.526 19.91c30.31 0 62.512-6.969 62.928-19.9l7.668-54.07c4.265 1.02 7.776 1.542 10.595 1.542c3.785 0 6.345-.925 7.897-2.774c1.274-1.517 1.76-3.354 1.396-5.31c-.83-4.428-6.087-9.202-16.794-15.311l7.603-53.639z"/></svg>',
|
|
221
|
-
"linear": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#5e6ad2" d="M2.886 4.18A11.98 11.98 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556q-.787.496-1.65.866L.951 7.277q.371-.863.866-1.65ZM.322 9.163l14.515 14.515q-1.066.26-2.195.322L0 11.358a12 12 0 0 1 .322-2.195m-.17 4.862l9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"/></svg>',
|
|
222
|
-
"okta": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#007dc1" d="M12 0C5.389 0 0 5.35 0 12s5.35 12 12 12s12-5.35 12-12S18.611 0 12 0m0 18c-3.325 0-6-2.675-6-6s2.675-6 6-6s6 2.675 6 6s-2.675 6-6 6"/></svg>',
|
|
223
|
-
"stripe": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#635bff" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409c0-.831.683-1.305 1.901-1.305c2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0C9.667 0 7.589.654 6.104 1.872C4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219c2.585.92 3.445 1.574 3.445 2.583c0 .98-.84 1.545-2.354 1.545c-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813c1.664-1.305 2.525-3.236 2.525-5.732c0-4.128-2.524-5.851-6.594-7.305z"/></svg>',
|
|
224
|
-
"clerk": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 324"><path fill="#bab1ff" d="M251.87 27.289c5.058 3.387 5.49 10.513 1.185 14.818l-36.97 36.971c-3.342 3.341-8.526 3.87-12.732 1.715c-12.435-6.371-26.53-9.966-41.462-9.966c-50.294 0-91.064 40.77-91.064 91.064c0 14.933 3.595 29.027 9.966 41.462c2.154 4.206 1.626 9.39-1.715 12.731l-36.971 36.971c-4.305 4.305-11.43 3.873-14.818-1.185C10.053 226.138 0 195.188 0 161.89C0 72.48 72.48 0 161.89 0c33.298 0 64.248 10.053 89.98 27.289"/><path fill="#6c47ff" d="M212.481 161.89c0 27.941-22.65 50.591-50.59 50.591s-50.591-22.65-50.591-50.59s22.65-50.591 50.59-50.591s50.591 22.65 50.591 50.59m40.574 119.784c4.305 4.306 3.873 11.431-1.184 14.818c-25.733 17.237-56.683 27.29-89.98 27.29s-64.248-10.053-89.98-27.29c-5.058-3.387-5.49-10.512-1.186-14.818l36.971-36.97c3.342-3.342 8.525-3.87 12.731-1.716c12.437 6.371 26.53 9.966 41.464 9.966s29.027-3.595 41.463-9.966c4.206-2.154 9.39-1.626 12.73 1.715z"/></svg>',
|
|
225
|
-
"better-stack": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#000000" d="m.78 10.748l-.766 6.638a2.1 2.1 0 0 0 .696 1.812l1.896 1.672c.65.573 1.658.015 1.519-.84l-1.521-9.325c-.172-1.056-1.702-1.02-1.825.043m12.373 8.714L8.63 6.43c-.502-1.447-2.608-1.384-3.02.09l-1.376 4.923c-.156.56-.216.882 0 1.421h.523l1.899 6.07c.294.732.902 1.3 1.661 1.554l2.832.943c1.241.414 2.426-.751 2.004-1.97zm10.63-1.033L15.79 3.443c-.697-1.307-2.578-1.272-3.227.06l-1.966 3.955c-.237.487-.127.66.07.943c.159.227.527.245.676.012a.348.348 0 0 1 .606.038l5.138 10.687a2.74 2.74 0 0 0 2.142 1.601l2.718.348c1.463.192 2.53-1.354 1.834-2.658"/></svg>',
|
|
226
|
-
"notion": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 268"><path fill="#fff" d="M16.092 11.538L164.09.608c18.179-1.56 22.85-.508 34.28 7.801l47.243 33.282C253.406 47.414 256 48.975 256 55.207v182.527c0 11.439-4.155 18.205-18.696 19.24L65.44 267.378c-10.913.517-16.11-1.043-21.825-8.327L8.826 213.814C2.586 205.487 0 199.254 0 191.97V29.726c0-9.352 4.155-17.153 16.092-18.188"/><path d="M164.09.608L16.092 11.538C4.155 12.573 0 20.374 0 29.726v162.245c0 7.284 2.585 13.516 8.826 21.843l34.789 45.237c5.715 7.284 10.912 8.844 21.825 8.327l171.864-10.404c14.532-1.035 18.696-7.801 18.696-19.24V55.207c0-5.911-2.336-7.614-9.21-12.66l-1.185-.856L198.37 8.409C186.94.1 182.27-.952 164.09.608M69.327 52.22c-14.033.945-17.216 1.159-25.186-5.323L23.876 30.778c-2.06-2.086-1.026-4.69 4.163-5.207l142.274-10.395c11.947-1.043 18.17 3.12 22.842 6.758l24.401 17.68c1.043.525 3.638 3.637.517 3.637L71.146 52.095zm-16.36 183.954V81.222c0-6.767 2.077-9.887 8.3-10.413L230.02 60.93c5.724-.517 8.31 3.12 8.31 9.879v153.917c0 6.767-1.044 12.49-10.387 13.008l-161.487 9.361c-9.343.517-13.489-2.594-13.489-10.921M212.377 89.53c1.034 4.681 0 9.362-4.681 9.897l-7.783 1.542v114.404c-6.758 3.637-12.981 5.715-18.18 5.715c-8.308 0-10.386-2.604-16.609-10.396l-50.898-80.079v77.476l16.1 3.646s0 9.362-12.989 9.362l-35.814 2.077c-1.043-2.086 0-7.284 3.63-8.318l9.351-2.595V109.823l-12.98-1.052c-1.044-4.68 1.55-11.439 8.826-11.965l38.426-2.585l52.958 81.113v-71.76l-13.498-1.552c-1.043-5.733 3.111-9.896 8.3-10.404z"/></svg>',
|
|
227
|
-
"attio": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 28"><path fill="#2e3238" d="m31.669 19.175l-2.673-4.279l-.016-.026l-.211-.336a2.16 2.16 0 0 0-1.838-1.022l-4.306-.014l-.3.481l-5.146 8.235l-.284.456l2.156 3.444a2.15 2.15 0 0 0 1.843 1.023h6.035a2.19 2.19 0 0 0 1.842-1.02l.213-.34s.008-.01.01-.015l2.677-4.284c.44-.7.44-1.605 0-2.303zm-.816 1.792l-2.677 4.284l-.037.052a.363.363 0 0 1-.579-.054l-2.678-4.284a1.2 1.2 0 0 1-.137-.969c.03-.105.076-.21.135-.306l2.674-4.28l.006-.01a.34.34 0 0 1 .213-.154q.04-.01.071-.014h.03c.062 0 .215.02.31.176l2.674 4.278c.244.39.244.891 0 1.28zM23.758 8.823a2.19 2.19 0 0 0 0-2.303l-2.673-4.278l-.223-.36a2.16 2.16 0 0 0-1.844-1.02h-6.034c-.754 0-1.442.381-1.844 1.022L.333 19.178a2.16 2.16 0 0 0-.002 2.301L3.23 26.12c.4.64 1.088 1.02 1.842 1.02h6.035c.758 0 1.446-.381 1.844-1.022l.22-.35v-.004s.005-.006.005-.008l2.154-3.445l6.384-10.218l2.041-3.268zm-.63-1.151c0 .22-.062.443-.187.64L12.355 25.255a.36.36 0 0 1-.31.17a.36.36 0 0 1-.31-.17l-2.676-4.286a1.22 1.22 0 0 1 0-1.28L19.645 2.752a.36.36 0 0 1 .31-.173c.062 0 .215.018.313.175L22.94 7.03c.125.197.187.42.187.64"/></svg>',
|
|
228
|
-
"dropbox": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 218"><path fill="#0061ff" d="M63.995 0L0 40.771l63.995 40.772L128 40.771zM192 0l-64 40.775l64 40.775l64.001-40.775zM0 122.321l63.995 40.772L128 122.321L63.995 81.55zM192 81.55l-64 40.775l64 40.774l64-40.774zM64 176.771l64.005 40.772L192 176.771L128.005 136z"/></svg>',
|
|
229
|
-
"resend": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#141413" d="M156.575 0c49.582 0 79.07 29.488 79.07 68.632s-29.488 68.632-79.07 68.632h-25.052L256 256h-87.942l-94.729-90.03c-6.784-6.263-9.916-13.57-9.916-19.833c0-8.873 6.263-16.701 18.267-20.094l48.8-13.048c18.527-4.958 31.314-19.31 31.314-38.1c0-22.964-18.79-36.273-42.014-36.273H0V0z"/></svg>',
|
|
230
|
-
"outlook": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0072c6" d="M19.484 7.937v5.477l1.916 1.205a.5.5 0 0 0 .21 0l8.238-5.554a1.174 1.174 0 0 0-.959-1.128Z"/><path fill="#0072c6" d="m19.484 15.457l1.747 1.2a.52.52 0 0 0 .543 0c-.3.181 8.073-5.378 8.073-5.378v10.066a1.408 1.408 0 0 1-1.49 1.555h-8.874zm-9.044-2.525a1.61 1.61 0 0 0-1.42.838a4.13 4.13 0 0 0-.526 2.218A4.05 4.05 0 0 0 9.02 18.2a1.6 1.6 0 0 0 2.771.022a4 4 0 0 0 .515-2.2a4.37 4.37 0 0 0-.5-2.281a1.54 1.54 0 0 0-1.366-.809"/><path fill="#0072c6" d="M2.153 5.155v21.427L18.453 30V2Zm10.908 14.336a3.23 3.23 0 0 1-2.7 1.361a3.19 3.19 0 0 1-2.64-1.318A5.46 5.46 0 0 1 6.706 16.1a5.87 5.87 0 0 1 1.036-3.616a3.27 3.27 0 0 1 2.744-1.384a3.12 3.12 0 0 1 2.61 1.321a5.64 5.64 0 0 1 1 3.484a5.76 5.76 0 0 1-1.035 3.586"/></svg>',
|
|
231
|
-
"microsoft-word": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="SVG2m3AVb6p" x1="4.494" x2="13.832" y1="-1712.086" y2="-1695.914" gradientTransform="translate(0 1720)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2368c4"/><stop offset=".5" stop-color="#1a5dbe"/><stop offset="1" stop-color="#1146ac"/></linearGradient></defs><path fill="#41a5ee" d="M28.806 3H9.705a1.19 1.19 0 0 0-1.193 1.191V9.5l11.069 3.25L30 9.5V4.191A1.19 1.19 0 0 0 28.806 3"/><path fill="#2b7cd3" d="M30 9.5H8.512V16l11.069 1.95L30 16Z"/><path fill="#185abd" d="M8.512 16v6.5l10.418 1.3L30 22.5V16Z"/><path fill="#103f91" d="M9.705 29h19.1A1.19 1.19 0 0 0 30 27.809V22.5H8.512v5.309A1.19 1.19 0 0 0 9.705 29"/><path d="M16.434 8.2H8.512v16.25h7.922a1.2 1.2 0 0 0 1.194-1.191V9.391A1.2 1.2 0 0 0 16.434 8.2" opacity=".1"/><path d="M15.783 8.85H8.512V25.1h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191" opacity=".2"/><path d="M15.783 8.85H8.512V23.8h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191" opacity=".2"/><path d="M15.132 8.85h-6.62V23.8h6.62a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191" opacity=".2"/><path fill="url(#SVG2m3AVb6p)" d="M3.194 8.85h11.938a1.193 1.193 0 0 1 1.194 1.191v11.918a1.193 1.193 0 0 1-1.194 1.191H3.194A1.19 1.19 0 0 1 2 21.959V10.041A1.19 1.19 0 0 1 3.194 8.85"/><path fill="#fff" d="M6.9 17.988q.035.276.046.481h.028q.015-.195.065-.47c.05-.275.062-.338.089-.465l1.255-5.407h1.624l1.3 5.326a8 8 0 0 1 .162 1h.022a8 8 0 0 1 .135-.975l1.039-5.358h1.477l-1.824 7.748h-1.727l-1.237-5.126q-.054-.222-.122-.578t-.084-.52h-.021q-.021.189-.084.561t-.1.552L7.78 19.871H6.024L4.19 12.127h1.5l1.131 5.418a5 5 0 0 1 .079.443"/></svg>',
|
|
232
|
-
"shopify": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 292"><path fill="#95bf46" d="M223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357a19614 19614 0 0 0-23.383-1.743s-15.507-15.395-17.209-17.099c-1.703-1.703-5.029-1.185-6.32-.805c-.19.056-3.388 1.043-8.678 2.68c-5.18-14.906-14.322-28.604-30.405-28.604c-.444 0-.901.018-1.358.044C129.31 3.407 123.644.779 118.75.779c-37.465 0-55.364 46.835-60.976 70.635c-14.558 4.511-24.9 7.718-26.221 8.133c-8.126 2.549-8.383 2.805-9.45 10.462C21.3 95.806.038 260.235.038 260.235l165.678 31.042l89.77-19.42S223.973 58.8 223.775 57.34M156.49 40.848l-14.019 4.339c.005-.988.01-1.96.01-3.023c0-9.264-1.286-16.723-3.349-22.636c8.287 1.04 13.806 10.469 17.358 21.32m-27.638-19.483c2.304 5.773 3.802 14.058 3.802 25.238c0 .572-.005 1.095-.01 1.624c-9.117 2.824-19.024 5.89-28.953 8.966c5.575-21.516 16.025-31.908 25.161-35.828m-11.131-10.537c1.617 0 3.246.549 4.805 1.622c-12.007 5.65-24.877 19.88-30.312 48.297l-22.886 7.088C75.694 46.16 90.81 10.828 117.72 10.828"/><path fill="#5e8e3e" d="M221.237 54.983a19614 19614 0 0 0-23.383-1.743s-15.507-15.395-17.209-17.099c-.637-.634-1.496-.959-2.394-1.099l-12.527 256.233l89.762-19.418S223.972 58.8 223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357"/><path fill="#fff" d="m135.242 104.585l-11.069 32.926s-9.698-5.176-21.586-5.176c-17.428 0-18.305 10.937-18.305 13.693c0 15.038 39.2 20.8 39.2 56.024c0 27.713-17.577 45.558-41.277 45.558c-28.44 0-42.984-17.7-42.984-17.7l7.615-25.16s14.95 12.835 27.565 12.835c8.243 0 11.596-6.49 11.596-11.232c0-19.616-32.16-20.491-32.16-52.724c0-27.129 19.472-53.382 58.778-53.382c15.145 0 22.627 4.338 22.627 4.338"/></svg>',
|
|
233
|
-
"paypal": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 302"><path fill="#27346a" d="M217.168 23.507C203.234 7.625 178.046.816 145.823.816h-93.52A13.39 13.39 0 0 0 39.076 12.11L.136 259.077c-.774 4.87 2.997 9.28 7.933 9.28h57.736l14.5-91.971l-.45 2.88c1.033-6.501 6.593-11.296 13.177-11.296h27.436c53.898 0 96.101-21.892 108.429-85.221c.366-1.873.683-3.696.957-5.477q-2.334-1.236 0 0c3.671-23.407-.025-39.34-12.686-53.765"/><path fill="#27346a" d="M102.397 68.84a11.7 11.7 0 0 1 5.053-1.14h73.318c8.682 0 16.78.565 24.18 1.756a102 102 0 0 1 6.177 1.182a90 90 0 0 1 8.59 2.347c3.638 1.215 7.026 2.63 10.14 4.287c3.67-23.416-.026-39.34-12.687-53.765C203.226 7.625 178.046.816 145.823.816H52.295C45.71.816 40.108 5.61 39.076 12.11L.136 259.068c-.774 4.878 2.997 9.282 7.925 9.282h57.744L95.888 77.58a11.72 11.72 0 0 1 6.509-8.74"/><path fill="#2790c3" d="M228.897 82.749c-12.328 63.32-54.53 85.221-108.429 85.221H93.024c-6.584 0-12.145 4.795-13.168 11.296L61.817 293.621c-.674 4.262 2.622 8.124 6.934 8.124h48.67a11.71 11.71 0 0 0 11.563-9.88l.474-2.48l9.173-58.136l.591-3.213a11.71 11.71 0 0 1 11.562-9.88h7.284c47.147 0 84.064-19.154 94.852-74.55c4.503-23.15 2.173-42.478-9.739-56.054c-3.613-4.112-8.1-7.508-13.327-10.28c-.283 1.79-.59 3.604-.957 5.477"/><path fill="#1f264f" d="M216.952 72.128a90 90 0 0 0-5.818-1.49a110 110 0 0 0-6.177-1.174c-7.408-1.199-15.5-1.765-24.19-1.765h-73.309a11.6 11.6 0 0 0-5.053 1.149a11.68 11.68 0 0 0-6.51 8.74l-15.582 98.798l-.45 2.88c1.025-6.501 6.585-11.296 13.17-11.296h27.444c53.898 0 96.1-21.892 108.428-85.221c.367-1.873.675-3.688.958-5.477q-4.682-2.47-10.14-4.279a83 83 0 0 0-2.77-.865"/></svg>',
|
|
234
|
-
// Jira, Google Calendar, Intercom (in black: its brand cyan disappears on white) and Zendesk: Simple Icons 16.35.0, CC0-1.0; the marks are their owners’ trademarks.
|
|
235
|
-
"jira": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#0052CC" d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>',
|
|
236
|
-
"google-calendar": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#4285F4" d="M18.316 5.684H24v12.632h-5.684V5.684zM5.684 24h12.632v-5.684H5.684V24zM18.316 5.684V0H1.895A1.894 1.894 0 0 0 0 1.895v16.421h5.684V5.684h12.632zm-7.207 6.25v-.065c.272-.144.5-.349.687-.617s.279-.595.279-.982c0-.379-.099-.72-.3-1.025a2.05 2.05 0 0 0-.832-.714 2.703 2.703 0 0 0-1.197-.257c-.6 0-1.094.156-1.481.467-.386.311-.65.671-.793 1.078l1.085.452c.086-.249.224-.461.413-.633.189-.172.445-.257.767-.257.33 0 .602.088.816.264a.86.86 0 0 1 .322.703c0 .33-.12.589-.36.778-.24.19-.535.284-.886.284h-.567v1.085h.633c.407 0 .748.109 1.02.327.272.218.407.499.407.843 0 .336-.129.614-.387.832s-.565.327-.924.327c-.351 0-.651-.103-.897-.311-.248-.208-.422-.502-.521-.881l-1.096.452c.178.616.505 1.082.977 1.401.472.319.984.478 1.538.477a2.84 2.84 0 0 0 1.293-.291c.382-.193.684-.458.902-.794.218-.336.327-.72.327-1.149 0-.429-.115-.797-.344-1.105a2.067 2.067 0 0 0-.881-.689zm2.093-1.931l.602.913L15 10.045v5.744h1.187V8.446h-.827l-2.158 1.557zM22.105 0h-3.289v5.184H24V1.895A1.894 1.894 0 0 0 22.105 0zm-3.289 23.5l4.684-4.684h-4.684V23.5zM0 22.105C0 23.152.848 24 1.895 24h3.289v-5.184H0v3.289z"/></svg>',
|
|
237
|
-
"intercom": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#000000" d="M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"/></svg>',
|
|
238
|
-
"zendesk": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#03363D" d="M12.914 2.904V16.29L24 2.905H12.914zM0 2.906C0 5.966 2.483 8.45 5.543 8.45s5.542-2.484 5.543-5.544H0zm11.086 4.807L0 21.096h11.086V7.713zm7.37 7.84c-3.063 0-5.542 2.48-5.542 5.543H24c0-3.06-2.48-5.543-5.543-5.543z"/></svg>',
|
|
239
|
-
// Asana, Discord and Sentry: the website's marks (Simple Icons 16.35.0, CC0-1.0), in their brand colours.
|
|
240
|
-
"asana": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#F06A6A" d="M18.78 12.653c-2.882 0-5.22 2.336-5.22 5.22s2.338 5.22 5.22 5.22 5.22-2.34 5.22-5.22-2.336-5.22-5.22-5.22zm-13.56 0c-2.88 0-5.22 2.337-5.22 5.22s2.338 5.22 5.22 5.22 5.22-2.338 5.22-5.22-2.336-5.22-5.22-5.22zm12-6.525c0 2.883-2.337 5.22-5.22 5.22-2.882 0-5.22-2.337-5.22-5.22 0-2.88 2.338-5.22 5.22-5.22 2.883 0 5.22 2.34 5.22 5.22z"/></svg>',
|
|
241
|
-
"discord": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#5865F2" d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>',
|
|
242
|
-
"sentry": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#362D59" d="M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"/></svg>',
|
|
243
|
-
// Airtable (Simple Icons 16.35.0) and Twilio (SVG Logos by Gil Barbara), both CC0-1.0: the website's marks, in their brand colours.
|
|
244
|
-
"airtable": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#18bfff" d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"/></svg>',
|
|
245
|
-
"twilio": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#f12e45" d="M128,0 C198.656,0 256,57.344 256,128 C256,198.656 198.656,256 128,256 C57.344,256 0,198.656 0,128 C0,57.344 57.344,0 128,0 Z M128,33.792 C75.776,33.792 33.792,75.776 33.792,128 C33.792,180.224 75.776,222.208 128,222.208 C180.224,222.208 222.208,180.224 222.208,128 C222.208,75.776 180.224,33.792 128,33.792 Z M159.744,133.12 C174.448029,133.12 186.368,145.039971 186.368,159.744 C186.368,174.448029 174.448029,186.368 159.744,186.368 C145.039971,186.368 133.12,174.448029 133.12,159.744 C133.12,145.039971 145.039971,133.12 159.744,133.12 Z M96.256,133.12 C110.960029,133.12 122.88,145.039971 122.88,159.744 C122.88,174.448029 110.960029,186.368 96.256,186.368 C81.5519708,186.368 69.632,174.448029 69.632,159.744 C69.632,145.039971 81.5519708,133.12 96.256,133.12 Z M159.744,69.632 C174.448029,69.632 186.368,81.5519708 186.368,96.256 C186.368,110.960029 174.448029,122.88 159.744,122.88 C145.039971,122.88 133.12,110.960029 133.12,96.256 C133.12,81.5519708 145.039971,69.632 159.744,69.632 Z M96.256,69.632 C110.960029,69.632 122.88,81.5519708 122.88,96.256 C122.88,110.960029 110.960029,122.88 96.256,122.88 C81.5519708,122.88 69.632,110.960029 69.632,96.256 C69.632,81.5519708 81.5519708,69.632 96.256,69.632 Z"/></svg>'
|
|
246
|
-
};
|
|
247
|
-
var pngLogos = {
|
|
248
|
-
"kalshi": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAAhEElEQVR4Ae1d6Y8lV3W/Sy2v3tbbLLZnxjZeZIMx8SLGLHZMDBhQ2KIAIVIihU8h+Z4PkfI3gBRFSqJEShRFSYggAhFCgowB2yzBG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ZJVkkwAAAABJRU5ErkJggg=="
|
|
250
|
-
};
|
|
251
|
-
var logoSrc = (name) => logos[name] ? `data:image/svg+xml,${encodeURIComponent(logos[name])}` : pngLogos[name] ? `data:image/png;base64,${pngLogos[name]}` : void 0;
|
|
252
|
-
function toolLogo(name) {
|
|
253
|
-
const src = logoSrc(name);
|
|
254
|
-
return src ? `<img class="catalog-brand" src="${src}" alt="" width="36" height="36">` : `<span class="catalog-brand catalog-letter" aria-hidden="true">${name.slice(0, 1).toUpperCase().replace(/[&<>"]/g, "")}</span>`;
|
|
255
|
-
}
|
|
256
|
-
function toolIcon(name, label2) {
|
|
257
|
-
const src = logoSrc(name);
|
|
258
|
-
return src ? `<img class="tool-icon" src="${src}" alt="${label2.replace(/[&<>"]/g, "")}" title="${label2.replace(/[&<>"]/g, "")}" width="16" height="16">` : `<span class="tool-icon tool-icon-fallback" title="${label2.replace(/[&<>"]/g, "")}">${label2.slice(0, 1).replace(/[&<>"]/g, "")}</span>`;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// frontend/src/sim-time.ts
|
|
262
|
-
var HOUR = 36e5;
|
|
263
|
-
var DAY = 24 * HOUR;
|
|
264
|
-
var two = (n) => String(n).padStart(2, "0");
|
|
265
|
-
function simOffset(ms, startMs) {
|
|
266
|
-
const total = Math.max(0, Math.floor((ms - startMs) / 1e3)), days = Math.floor(total / 86400), hours = Math.floor(total % 86400 / 3600), minutes = Math.floor(total % 3600 / 60), seconds = total % 60;
|
|
267
|
-
if (days) return `+${days}d ${hours}:${two(minutes)}:${two(seconds)}`;
|
|
268
|
-
return hours ? `+${hours}:${two(minutes)}:${two(seconds)}` : `+${minutes}:${two(seconds)}`;
|
|
269
|
-
}
|
|
270
|
-
function gapLabel(gapMs) {
|
|
271
|
-
if (gapMs >= DAY) {
|
|
272
|
-
const d = Math.round(gapMs / DAY);
|
|
273
|
-
return `${d} day${d === 1 ? "" : "s"} later`;
|
|
274
|
-
}
|
|
275
|
-
if (gapMs >= HOUR) {
|
|
276
|
-
const hrs = Math.round(gapMs / HOUR);
|
|
277
|
-
return `${hrs} hour${hrs === 1 ? "" : "s"} later`;
|
|
278
|
-
}
|
|
279
|
-
return "";
|
|
280
|
-
}
|
|
281
|
-
function simIso(ms) {
|
|
282
|
-
const date5 = new Date(ms);
|
|
283
|
-
return Number.isNaN(date5.getTime()) ? "" : date5.toISOString();
|
|
284
|
-
}
|
|
285
|
-
var simAbsolute = (ms) => {
|
|
286
|
-
const iso = simIso(ms);
|
|
287
|
-
return iso ? iso.replace("T", " ").slice(0, 19) + " scene time" : "";
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
// frontend/src/conversation.ts
|
|
291
|
-
var list = (value) => Array.isArray(value) ? value.filter((item) => item && typeof item === "object") : [];
|
|
292
|
-
var hasConversation = (o) => list(o?.peopleTimeline?.persons).length > 0;
|
|
293
|
-
var entryAnchor = (id) => "cv-" + String(id).replace(/[^A-Za-z0-9_-]+/g, "-");
|
|
294
|
-
function people(o) {
|
|
295
|
-
const persons = list(o.peopleTimeline?.persons);
|
|
296
|
-
return (ref2) => ref2 === "agent" ? "Agent" : String(persons.find((p) => p.ref === ref2)?.name ?? ref2);
|
|
297
|
-
}
|
|
298
|
-
var words = (id) => String(id ?? "").replace(/[_-]+/g, " ").trim();
|
|
299
|
-
function factLabel(fact, name) {
|
|
300
|
-
const [owner, id] = String(fact ?? "").split(/\.(.*)/s);
|
|
301
|
-
return id ? `${name(owner)}\u2019s ${words(id)}` : words(owner);
|
|
302
|
-
}
|
|
303
|
-
var COMPARE = { gte: "\u2265", gt: ">", lte: "\u2264", lt: "<", eq: "=", ne: "\u2260" };
|
|
304
|
-
function ruleText(reason, name) {
|
|
305
|
-
const text2 = String(reason ?? "");
|
|
306
|
-
if (text2 === "default rule") return "default";
|
|
307
|
-
const rule = /^rule (\d+): (.*)$/s.exec(text2);
|
|
308
|
-
if (!rule) return text2;
|
|
309
|
-
const [, number4, condition] = rule;
|
|
310
|
-
const json4 = (when2) => {
|
|
311
|
-
if (Array.isArray(when2?.fact) && when2.fact.length === 3 && COMPARE[when2.fact[1]] && typeof when2.fact[2] === "number") return `${factLabel(when2.fact[0], name)} ${COMPARE[when2.fact[1]]} ${when2.fact[2]}`;
|
|
312
|
-
for (const [key, joiner] of [["all", " and "], ["any", " or "]]) if (Array.isArray(when2?.[key])) {
|
|
313
|
-
const parts = when2[key].map(json4);
|
|
314
|
-
return parts.length && parts.every(Boolean) ? parts.join(joiner) : void 0;
|
|
315
|
-
}
|
|
316
|
-
return void 0;
|
|
317
|
-
};
|
|
318
|
-
const words2 = (all) => {
|
|
319
|
-
const parts = all.split(" and ").map((part) => /^([A-Za-z0-9_-]+\.[A-Za-z0-9_]+) (≥|≤|=|>|<|≠) (-?\d+(?:\.\d+)?)$/.exec(part.trim())).map((match) => match ? `${factLabel(match[1], name)} ${match[2]} ${match[3]}` : void 0);
|
|
320
|
-
return parts.every(Boolean) ? parts.join(" and ") : void 0;
|
|
321
|
-
};
|
|
322
|
-
if (!/^[[{]/.test(condition)) return words2(condition) ?? `rule ${number4}`;
|
|
323
|
-
try {
|
|
324
|
-
return json4(JSON.parse(condition)) ?? `rule ${number4}`;
|
|
325
|
-
} catch {
|
|
326
|
-
return `rule ${number4}`;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function where(place) {
|
|
330
|
-
const tool = String(place.tool ?? "");
|
|
331
|
-
const kind = place.kind === "thread" ? " \xB7 thread" : place.kind === "dm" ? " \xB7 direct message" : "";
|
|
332
|
-
return `<span class="cv-place">${tool ? toolIcon(tool, toolName(tool)) : ""}${h(String(place.label ?? ""))}${h(kind)}</span>`;
|
|
333
|
-
}
|
|
334
|
-
function body(entry, name) {
|
|
335
|
-
if (entry.kind === "message") {
|
|
336
|
-
const to = Array.isArray(entry.to) && entry.to.length ? ` \u2192 ${entry.to.map(name).join(", ")}` : "";
|
|
337
|
-
return `<div class="cv-head"><strong>${h(name(entry.from))}</strong>${to ? `<span class="muted">${h(to)}</span>` : ""}${where(entry.place ?? {})}</div><p class="cv-text">${h(String(entry.text ?? ""))}</p>`;
|
|
338
|
-
}
|
|
339
|
-
const whom = (ref2) => ref2 === "agent" ? "the agent" : name(ref2);
|
|
340
|
-
if (entry.kind === "fact") return `<p class="cv-event">${h(name(entry.person))} told ${h(whom(entry.to ?? "agent"))} <strong>${h(words(entry.fact))}</strong></p>`;
|
|
341
|
-
if (entry.kind === "learned") return `<p class="cv-event">${h(name(entry.person))} learned <strong>${h(factLabel(entry.fact, name))}</strong> from ${h(whom(entry.from))}</p>`;
|
|
342
|
-
if (entry.kind === "decision") return `<p class="cv-event">${h(name(entry.person))} decided <strong>${h(words(entry.decision))}: ${h(String(entry.option))}</strong>${entry.reason ? ` <span class="muted">\xB7 ${h(ruleText(entry.reason, name))}</span>` : ""}</p>`;
|
|
343
|
-
return "";
|
|
344
|
-
}
|
|
345
|
-
function conversationView(o, options = {}) {
|
|
346
|
-
const name = people(o);
|
|
347
|
-
const usable = (value) => {
|
|
348
|
-
const ms = Number(value);
|
|
349
|
-
return Number.isFinite(ms) && Math.abs(ms) <= 864e13 ? ms : NaN;
|
|
350
|
-
};
|
|
351
|
-
const timeline2 = list(o.peopleTimeline?.timeline).filter((entry) => entry.seed !== true && !(usable(entry.simMs) < 0));
|
|
352
|
-
const startMs = options.startMs ?? Date.parse(String(o.peopleTimeline?.startedAt ?? ""));
|
|
353
|
-
let previous = NaN;
|
|
354
|
-
const rows3 = timeline2.map((entry) => {
|
|
355
|
-
const ms = usable(entry.simMs), gap = Number.isFinite(ms) && Number.isFinite(previous) ? gapLabel(ms - previous) : "";
|
|
356
|
-
if (Number.isFinite(ms)) previous = ms;
|
|
357
|
-
const iso = Number.isFinite(ms) && Number.isFinite(startMs) ? simIso(startMs + ms) : "";
|
|
358
|
-
const time4 = Number.isFinite(ms) ? `<time${iso ? ` datetime="${h(iso)}" title="${h(simAbsolute(startMs + ms))}"` : ""}>${h(simOffset(ms, 0))}</time>` : "<time></time>";
|
|
359
|
-
const classes = ["cv-entry", `cv-${String(entry.kind)}`, entry.kind === "message" && entry.from === "agent" ? "from-agent" : "", options.focus === entry.id ? "focused" : ""].filter(Boolean).join(" ");
|
|
360
|
-
return `${gap ? `<div class="activity-gap" role="separator">${h(gap)}</div>` : ""}<article class="${h(classes)}" id="${h(entryAnchor(String(entry.id)))}">${time4}<div>${body(entry, name)}</div></article>`;
|
|
361
|
-
}).join("");
|
|
362
|
-
return `<section class="conversation"><div class="tool-section-title"><h2>Conversation</h2><span class="muted">Oldest first</span></div>${rows3 || '<p class="quiet-empty">No messages between the agent and people.</p>'}</section>`;
|
|
363
|
-
}
|
|
364
|
-
function checkFocus(o) {
|
|
365
|
-
const ids = new Set(list(o.peopleTimeline?.timeline).map((entry) => String(entry.id)));
|
|
366
|
-
const focus = /* @__PURE__ */ new Map();
|
|
367
|
-
for (const explanation of list(o.explanations)) {
|
|
368
|
-
const id = list(explanation.evidence).map((evidence) => String(evidence.id ?? "")).find((candidate) => ids.has(candidate));
|
|
369
|
-
if (id && explanation.checkId) focus.set(String(explanation.checkId), id);
|
|
370
|
-
}
|
|
371
|
-
return focus;
|
|
372
|
-
}
|
|
373
|
-
function peopleSection(world, kit = false) {
|
|
374
|
-
const persons = list(world.people ?? world.configuration?.people);
|
|
375
|
-
if (!persons.length) return "";
|
|
376
|
-
if (kit) return `<section class="k-card"><div class="k-card-head"><h2>People \xB7 ${persons.length}</h2></div><div class="k-scroll" role="region" aria-label="People" tabindex="0"><table class="k-table mid"><thead><tr><th scope="col">Person</th><th scope="col">Role</th><th scope="col" class="num">Facts</th><th scope="col">Decides</th></tr></thead><tbody>${persons.map((person2) => `<tr><td>${h(String(person2.name ?? person2.ref ?? "Person"))}</td><td>${h(String(person2.role ?? "\u2014"))}</td><td class="num">${list(person2.knows).length}</td><td>${h(list(person2.decides).map((decision) => String(decision.id)).join(", ") || "\u2014")}</td></tr>`).join("")}</tbody></table></div></section>`;
|
|
377
|
-
return `<section class="world-people"><div class="ww-section-heading"><h2>People</h2><span>${persons.length}</span></div><div class="world-people-list">${persons.map((person2) => {
|
|
378
|
-
const facts2 = list(person2.knows).length, decides = list(person2.decides).map((decision) => String(decision.id));
|
|
379
|
-
return `<article class="world-person"><strong>${h(String(person2.name ?? person2.ref ?? "Person"))}</strong><span class="muted">${h(String(person2.role ?? ""))}</span><span>${facts2} ${facts2 === 1 ? "fact" : "facts"}${decides.length ? ` \xB7 decides ${h(decides.join(", "))}` : ""}</span></article>`;
|
|
380
|
-
}).join("")}</div></section>`;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
// frontend/src/scenario.ts
|
|
384
|
-
function traceActions(patterns, avoided = false) {
|
|
385
|
-
const remaining = new Set(typeof patterns === "string" ? [patterns] : patterns), labels = [];
|
|
386
|
-
const group = (paths, label2) => {
|
|
387
|
-
if (paths.every((path2) => remaining.has(path2))) {
|
|
388
|
-
labels.push(label2);
|
|
389
|
-
paths.forEach((path2) => remaining.delete(path2));
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
if (avoided) {
|
|
393
|
-
group(["POST /api/chat.delete"], "deleting Slack messages");
|
|
394
|
-
group(["POST /repos/*", "PUT /repos/*", "PATCH /repos/*", "DELETE /repos/*"], "repository write calls");
|
|
395
|
-
group(["DELETE /api/v1/monitor*", "PUT /api/v1/monitor*", "POST /api/v1/monitor/*/mute", "POST /api/v1/monitor/mute_all"], "monitor edit, delete or mute calls");
|
|
396
|
-
group(["POST /api/v1/downtime*", "POST /api/v2/downtime*"], "downtime creation calls");
|
|
397
|
-
}
|
|
398
|
-
const known = { "POST /api/v2/logs/events/search": "search logs", "GET /api/v1/query*": "query metrics" };
|
|
399
|
-
for (const pattern of remaining) labels.push(avoided ? `calls to ${pattern}` : known[pattern] ?? `call ${pattern}`);
|
|
400
|
-
const joined = labels.length < 3 ? labels.join(" and ") : labels.slice(0, -1).join(", ") + ", and " + labels.at(-1);
|
|
401
|
-
return avoided ? "Avoid " + joined : joined.charAt(0).toUpperCase() + joined.slice(1);
|
|
402
|
-
}
|
|
403
|
-
function criterion(scene, check2) {
|
|
404
|
-
const s = check2.state ?? {}, label2 = (ref2) => named(scene, ref2);
|
|
405
|
-
if (s["slack.message"]) {
|
|
406
|
-
const m = s["slack.message"];
|
|
407
|
-
return `${m.from ? label2(m.from) : "Someone"} posts ${m.count_gte > 1 ? `at least ${m.count_gte} messages` : "a message"} in #${label2(m.channel)}${m.in_thread_of ? ", in the requested thread" : ""}${m.text_contains ? ` containing \u201C${m.text_contains}\u201D` : ""}`;
|
|
408
|
-
}
|
|
409
|
-
if (s["github.file_at"]) return `${label2(s["github.file_at"][0])}: ${s["github.file_at"][2]} at ${s["github.file_at"][1]} ${s.equals !== void 0 ? "matches the required content" : "contains the required text"}`;
|
|
410
|
-
if (s["github.production"]) return `${label2(s["github.production"].repo)} runs \u201C${label2(s["github.production"].commit).trim()}\u201D`;
|
|
411
|
-
if (s["github.pull"]) return `\u201C${label2(s["github.pull"].pull)}\u201D is ${s["github.pull"].merged ? "merged" : "not merged"}`;
|
|
412
|
-
if (s.fault_resolved) return `Fault \u201C${label2(s.fault_resolved)}\u201D has recovered`;
|
|
413
|
-
if (s["datadog.monitor"]) return `${label2(s["datadog.monitor"])} is ${s.is}`;
|
|
414
|
-
if (s["datadog.downtime"]) {
|
|
415
|
-
const d = s["datadog.downtime"];
|
|
416
|
-
return `${label2(d.monitor)} has downtime of at most ${d.duration_lte}, with at least ${d.remaining_gte} remaining${d.reject_active_unsafe ? "; no blanket or overlong downtime" : ""}`;
|
|
417
|
-
}
|
|
418
|
-
if (s["pagerduty.incident"]) {
|
|
419
|
-
const i = s["pagerduty.incident"];
|
|
420
|
-
const clauses = [s.status ? `is ${s.status}` : "", s.assigned_to ? `is assigned exactly to ${s.assigned_to.map(label2).join(", ")}` : "", s.acknowledged_within ? `is acknowledged within ${s.acknowledged_within} of creation` : "", s.resolved_within ? `is resolved within ${s.resolved_within} of creation` : ""].filter(Boolean);
|
|
421
|
-
return `${i.first ? "First incident" : "Incident"}${i.service ? " for " + label2(i.service) : i.ref ? " \u201C" + label2(i.ref) + "\u201D" : ""} ${clauses.join(" and ")}`;
|
|
422
|
-
}
|
|
423
|
-
if (check2.trace) {
|
|
424
|
-
const t = check2.trace;
|
|
425
|
-
return [t.called?.length ? traceActions(t.called) : "", t.not_called?.length ? traceActions(t.not_called, true) : ""].filter(Boolean).join("; ");
|
|
426
|
-
}
|
|
427
|
-
if (check2.tool_call) {
|
|
428
|
-
const c = check2.tool_call, n = c.count ?? {}, times = (k) => `${k} ${k === 1 ? "time" : "times"}`;
|
|
429
|
-
const how = c.status === "failed" ? `fails${c.error?.type ? ` with ${c.error.type}` : ""}` : c.status === "attempted" ? "is called" : "succeeds";
|
|
430
|
-
const given = [c.args ? "the given arguments" : "", c.result ? "the given result" : ""].filter(Boolean).join(" and "), withGiven = given ? ` with ${given}` : "";
|
|
431
|
-
if (n.eq === 0) return `No ${c.name} call ${c.status === "attempted" ? "is made" : how}${withGiven}`;
|
|
432
|
-
const count3 = n.eq !== void 0 ? `exactly ${times(n.eq)}` : n.gte !== void 0 && n.lte !== void 0 ? `${n.gte} to ${times(n.lte)}` : n.lte !== void 0 ? `at most ${times(n.lte)}` : n.gte > 1 ? `at least ${times(n.gte)}` : "";
|
|
433
|
-
return `${c.name} ${how}${withGiven}${count3 ? `, ${count3}` : ""}`;
|
|
434
|
-
}
|
|
435
|
-
if (check2.judge) return "A grader assesses the agent\u2019s response";
|
|
436
|
-
if (check2.answer?.rows) {
|
|
437
|
-
const rows3 = check2.answer.rows, n = Array.isArray(rows3.expected) ? rows3.expected.length : 0;
|
|
438
|
-
return `The final answer\u2019s \u201C${rows3.field}\u201D lists exactly the ${n} expected ${n === 1 ? "row" : "rows"}`;
|
|
439
|
-
}
|
|
440
|
-
if (check2.answer) {
|
|
441
|
-
const a = check2.answer, quoted = (v) => (Array.isArray(v) ? v : v === void 0 ? [] : [v]).map((text2) => `\u201C${text2}\u201D`).join(", ");
|
|
442
|
-
const parts = [a.contains ? `contains ${quoted(a.contains)}` : "", a.numbers?.length ? `states ${a.numbers.map((n) => String(n.value)).join(", ")}` : "", a.not_contains ? `never says ${quoted(a.not_contains)}` : ""].filter(Boolean);
|
|
443
|
-
return parts.length ? `The final answer ${parts.join("; ")}` : "The agent gives a final answer";
|
|
444
|
-
}
|
|
445
|
-
return "Custom condition: " + String(check2.id).replaceAll("_", " ");
|
|
446
|
-
}
|
|
447
|
-
function successCriteria(scene) {
|
|
448
|
-
const checks2 = scene.checks ?? [];
|
|
449
|
-
const required2 = checks2.filter((c) => (scene.pass ?? checks2.map((c2) => c2.id)).includes(c.id));
|
|
450
|
-
const advisory = checks2.filter((c) => !required2.includes(c));
|
|
451
|
-
const item = (c) => `<details class="criterion"><summary><span class="criterion-mark" aria-hidden="true">\u25CB</span><span>${h(criterion(scene, c))}</span></summary>${details("Exact condition \xB7 " + c.id, c)}</details>`;
|
|
452
|
-
return `<div class="success-list">${required2.map(item).join("") || '<p class="muted small">No required conditions.</p>'}</div>${advisory.length ? `<details class="advisory"><summary>${advisory.length} advisory ${advisory.length === 1 ? "check" : "checks"}</summary>${advisory.map(item).join("")}</details>` : ""}`;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
// frontend/src/design.ts
|
|
456
|
-
function url(path2, query = {}) {
|
|
457
|
-
const q = new URLSearchParams();
|
|
458
|
-
for (const [k, v] of Object.entries(query)) if (v !== void 0 && v !== null && v !== "") q.set(k, String(v));
|
|
459
|
-
return path2 + (q.size ? "?" + q : "");
|
|
460
|
-
}
|
|
461
|
-
var navLink = (label2, href2, cls = "") => `<a href="${h(href2)}" data-nav class="${cls}">${h(label2)}</a>`;
|
|
462
|
-
var navTabs = (items, selected) => `<nav class="tabs" aria-label="Page sections">${items.map(([key, label2, path2]) => `<a href="${h(path2)}" data-nav class="${selected === key ? "active" : ""}" ${selected === key ? 'aria-current="page"' : ""}>${h(label2)}</a>`).join("")}</nav>`;
|
|
463
|
-
|
|
464
|
-
// frontend/src/playground.ts
|
|
465
|
-
var attemptLabel = (state) => ({ queued: "Queued", starting: "Starting container\u2026", running: "Running", completed: "Completed", stopped: "Stopped", error: "Error" })[state] ?? "Unavailable";
|
|
466
|
-
var terminal = (state) => ["completed", "stopped", "error"].includes(state);
|
|
467
|
-
var ordinal = (n) => `${n}${n % 100 >= 11 && n % 100 <= 13 ? "th" : { 1: "st", 2: "nd", 3: "rd" }[n % 10] ?? "th"}`;
|
|
468
|
-
function queueLabel(queue) {
|
|
469
|
-
if (!queue || !Number.isFinite(Number(queue.position))) return "";
|
|
470
|
-
return Number(queue.position) === 1 ? "Next in line" : `${ordinal(Number(queue.position))} in line`;
|
|
471
|
-
}
|
|
472
|
-
function batchCounts(batch) {
|
|
473
|
-
const attempts = batch.attempts ?? [];
|
|
474
|
-
return { total: attempts.length, finished: attempts.filter((a) => terminal(a.status)).length, completed: attempts.filter((a) => a.status === "completed").length, running: attempts.filter((a) => ["running", "starting"].includes(a.status)).length };
|
|
475
|
-
}
|
|
476
|
-
function batchTitle(batch) {
|
|
477
|
-
if (batch.groupName) return String(batch.groupName);
|
|
478
|
-
if (batch.test?.name) return String(batch.test.name);
|
|
479
|
-
const tasks = batch.tasks ?? [];
|
|
480
|
-
return tasks.length === 1 ? tasks[0].title || shortPrompt(tasks[0].prompt) : `${tasks.length} tasks`;
|
|
481
|
-
}
|
|
482
|
-
function groupEntryForAttempt(entries, attempt) {
|
|
483
|
-
if (!attempt) return void 0;
|
|
484
|
-
return entries.find((entry) => entry.id === attempt.entryId) ?? entries.find((entry) => entry.agentId === attempt.agentId);
|
|
485
|
-
}
|
|
486
|
-
function shortPrompt(value) {
|
|
487
|
-
const text2 = String(value ?? "").trim().replace(/\s+/g, " ");
|
|
488
|
-
return text2.length > 100 ? text2.slice(0, 97) + "\u2026" : text2;
|
|
489
|
-
}
|
|
490
|
-
function readableResponse(response) {
|
|
491
|
-
if (/^\s*[\[{]/.test(response)) {
|
|
492
|
-
try {
|
|
493
|
-
const value = JSON.parse(response);
|
|
494
|
-
if (value && typeof value === "object") {
|
|
495
|
-
const content = typeof value.response === "string" ? value.response : typeof value.text === "string" ? value.text : "";
|
|
496
|
-
return content && !/^\s*[\[{]/.test(content) ? content : "A structured response was captured. No plain-text response was provided.";
|
|
497
|
-
}
|
|
498
|
-
} catch {
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
return response;
|
|
502
|
-
}
|
|
503
|
-
function timeLimit(ms) {
|
|
504
|
-
return ms < 6e4 ? `${Math.ceil(ms / 1e3)} sec` : `${Number((ms / 6e4).toFixed(1))} min`;
|
|
505
|
-
}
|
|
506
|
-
function taskFields(tasks) {
|
|
507
|
-
return tasks.map((task, index) => `<section class="task-editor" data-task-id="${h(task.id)}"><div class="task-heading"><h2>Task ${index + 1}</h2>${tasks.length > 1 ? button("Remove", "remove-task", task.id, "link") : ""}</div><label class="sr-only" for="task-${index}">Task ${index + 1}</label><textarea id="task-${index}" name="prompt" rows="3" required maxlength="20000" placeholder="What should your agent do?">${h(task.prompt)}</textarea><div class="task-options"><label>Trials<input name="attempts" type="number" min="1" max="100" value="${h(task.attempts ?? 1)}" required></label><label>Time limit <span class="muted">minutes</span><input name="minutes" type="number" min="0.016666666666666666" max="60" step="any" value="${h((task.timeoutMs ?? 3e5) / 6e4)}" required></label></div></section>`).join("");
|
|
508
|
-
}
|
|
509
|
-
function tasksForEntry(batch, entry) {
|
|
510
|
-
const all = batch.tasks ?? [], entryTasks = Array.isArray(entry.tasks) ? entry.tasks : [], attempts = attemptsForEntry(batch, entry);
|
|
511
|
-
const ids = new Set([...entryTasks.map((task) => task.id), ...attempts.map((attempt) => attempt.taskId)].filter(Boolean));
|
|
512
|
-
const matches = all.filter((task) => ids.has(task.id) || task.entryId === entry.id || task.agentId === entry.agentId);
|
|
513
|
-
if (matches.length) return matches;
|
|
514
|
-
if (entryTasks.length) return entryTasks;
|
|
515
|
-
return batch.entries?.length === 1 ? all : [];
|
|
516
|
-
}
|
|
517
|
-
function attemptsForEntry(batch, entry) {
|
|
518
|
-
const all = batch.attempts ?? [], exact = all.filter((attempt) => attempt.entryId === entry.id);
|
|
519
|
-
if (exact.length) return exact;
|
|
520
|
-
const byAgent = all.filter((attempt) => attempt.agentId === entry.agentId);
|
|
521
|
-
if (byAgent.length) return byAgent;
|
|
522
|
-
return batch.entries?.length === 1 ? all : [];
|
|
523
|
-
}
|
|
524
|
-
function responseView(attempt) {
|
|
525
|
-
if (typeof attempt.response === "string" && attempt.response.trim()) {
|
|
526
|
-
const response = readableResponse(attempt.response);
|
|
527
|
-
return `<section class="agent-response"><h2>Agent response</h2><div class="response-text">${h(response)}</div></section>`;
|
|
528
|
-
}
|
|
529
|
-
return `<p class="quiet-empty">${terminal(attempt.status) ? "No final response was captured." : "No final response yet."}</p>`;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
// frontend/src/ui.ts
|
|
533
|
-
var STATUS = {
|
|
534
|
-
passed: { label: "Passed", path: "M5.2 8.3l1.9 1.9 3.8-4.2" },
|
|
535
|
-
failed: { label: "Failed", path: "M5.8 5.8l4.4 4.4M10.2 5.8l-4.4 4.4" },
|
|
536
|
-
invalid: { label: "Invalid", path: "M8 4.8v3.6M8 10.9v.2" },
|
|
537
|
-
skipped: { label: "Skipped", path: "M5.6 8h4.8" },
|
|
538
|
-
running: { label: "Running", path: "M8 8h.01", dash: "30 10" },
|
|
539
|
-
queued: { label: "Queued", path: "M8 5v3.2l2 1.3" },
|
|
540
|
-
stopped: { label: "Stopped", path: "M6.3 6.3h3.4v3.4H6.3z" },
|
|
541
|
-
error: { label: "Error", path: "M8 4.8v3.6M8 10.9v.2" },
|
|
542
|
-
ungraded: { label: "Not graded", path: "M5.6 8h4.8" }
|
|
543
|
-
};
|
|
544
|
-
var statusLabel = (kind) => STATUS[kind].label;
|
|
545
|
-
function glyph(kind, size = 16, label2) {
|
|
546
|
-
const s = STATUS[kind];
|
|
547
|
-
return `<svg class="c-glyph c-${kind}" width="${size}" height="${size}" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" ${label2 ? `role="img" aria-label="${h(label2)}"` : 'aria-hidden="true"'}><circle cx="8" cy="8" r="6.4"${s.dash ? ` stroke-dasharray="${s.dash}"` : ""}/><path d="${s.path}"/></svg>`;
|
|
548
|
-
}
|
|
549
|
-
var statusMark = (kind, label2 = statusLabel(kind)) => `<span class="c-status c-${kind}">${glyph(kind)}<span>${h(label2)}</span></span>`;
|
|
550
|
-
var COPY = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5.5A1.5 1.5 0 0 1 6.5 4H15"/></svg>';
|
|
551
|
-
var copyButton = (value, label2) => `<button type="button" class="c-copy" data-action="copy-text" data-value="${h(value)}" aria-label="${h(label2)}" title="${h(label2)}">${COPY}</button>`;
|
|
552
|
-
var copyCommand = (command) => `<div class="c-command"><code>${h(command)}</code>${copyButton(command, "Copy command")}</div>`;
|
|
553
|
-
function shortId(id, keep = 8) {
|
|
554
|
-
const prefix = /^[a-z]+_/.exec(id)?.[0] ?? "";
|
|
555
|
-
return id.length > prefix.length + keep + 2 ? `${prefix}\u2026${id.slice(-keep)}` : id;
|
|
556
|
-
}
|
|
557
|
-
var facts = (items, label2 = "Facts") => `<dl class="c-facts" aria-label="${h(label2)}">${items.map((f) => `<div><dt>${h(f.label)}</dt><dd class="c-fact-value${f.mono ? " mono" : ""}"${f.title ? ` title="${h(f.title)}"` : ""}>${f.html ?? h(f.value)}</dd>${f.sub ? `<dd class="c-fact-sub">${h(f.sub)}</dd>` : ""}</div>`).join("")}</dl>`;
|
|
558
|
-
var stateCard = (title2, bodyHtml = "", actionHtml = "", kind = "empty") => `<section class="c-state c-state-${h(kind)}"><strong>${h(title2)}</strong>${bodyHtml ? `<p>${bodyHtml}</p>` : ""}${actionHtml}</section>`;
|
|
559
|
-
var skeletonRows = (count3) => `<div class="c-skeleton" aria-busy="true" aria-label="Loading">${Array.from({ length: count3 }, () => "<div><i></i><i></i><i></i></div>").join("")}</div>`;
|
|
560
|
-
var MINUTE = 6e4;
|
|
561
|
-
var HOUR2 = 36e5;
|
|
562
|
-
var DAY2 = 864e5;
|
|
563
|
-
var timeOf = (value) => {
|
|
564
|
-
const ms = typeof value === "number" ? value : Date.parse(String(value ?? ""));
|
|
565
|
-
return Number.isFinite(ms) ? ms : NaN;
|
|
566
|
-
};
|
|
567
|
-
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
568
|
-
function utcDay(value) {
|
|
569
|
-
const ms = timeOf(value);
|
|
570
|
-
if (!Number.isFinite(ms)) return "";
|
|
571
|
-
const d = new Date(ms);
|
|
572
|
-
return `${MONTHS[d.getUTCMonth()]} ${d.getUTCDate()}`;
|
|
573
|
-
}
|
|
574
|
-
function utcClock(value) {
|
|
575
|
-
const ms = timeOf(value);
|
|
576
|
-
return Number.isFinite(ms) ? `${new Date(ms).toISOString().slice(11, 19)} UTC` : "";
|
|
577
|
-
}
|
|
578
|
-
function utc(value) {
|
|
579
|
-
const day = utcDay(value);
|
|
580
|
-
return day ? `${day}, ${utcClock(value)}` : "";
|
|
581
|
-
}
|
|
582
|
-
function ago(value, now = Date.now()) {
|
|
583
|
-
const ms = timeOf(value);
|
|
584
|
-
if (!Number.isFinite(ms)) return "";
|
|
585
|
-
const since = now - ms;
|
|
586
|
-
if (since < 45e3) return "just now";
|
|
587
|
-
if (since < HOUR2) return `${Math.max(1, Math.round(since / MINUTE))} min ago`;
|
|
588
|
-
if (since < DAY2) return `${Math.round(since / HOUR2)} h ago`;
|
|
589
|
-
return utcDay(ms);
|
|
590
|
-
}
|
|
591
|
-
var when = (value, now = Date.now()) => {
|
|
592
|
-
const text2 = ago(value, now);
|
|
593
|
-
return text2 ? `<time datetime="${h(new Date(timeOf(value)).toISOString())}" title="${h(utc(value))}">${h(text2)}</time>` : "";
|
|
594
|
-
};
|
|
595
|
-
function duration(ms) {
|
|
596
|
-
const n = Number(ms);
|
|
597
|
-
if (ms === null || ms === void 0 || !Number.isFinite(n) || n < 0) return "\u2014";
|
|
598
|
-
if (n < 1e4) return `${(n / 1e3).toFixed(1)} s`;
|
|
599
|
-
const s = Math.round(n / 1e3);
|
|
600
|
-
if (s < 60) return `${s} s`;
|
|
601
|
-
if (s < 3600) return `${Math.floor(s / 60)} m ${String(s % 60).padStart(2, "0")} s`;
|
|
602
|
-
return `${Math.floor(s / 3600)} h ${String(Math.floor(s / 60) % 60).padStart(2, "0")} m`;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
// cloud/shared/run-metadata.mjs
|
|
606
|
-
function runNumberOf(value) {
|
|
607
|
-
return Number.isSafeInteger(value) && value > 0 ? value : void 0;
|
|
608
|
-
}
|
|
609
|
-
function runLabel(run, fallback = run.id ?? run.runId ?? run.run_id ?? "") {
|
|
610
|
-
const number4 = runNumberOf(run.runNumber ?? run.summary?.runNumber);
|
|
611
|
-
return number4 === void 0 ? fallback : `#${number4}`;
|
|
612
|
-
}
|
|
613
|
-
function github2(value) {
|
|
614
|
-
if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).sort().join(",") !== "repository,runId,serverUrl") throw new Error("Invalid GitHub Actions context.");
|
|
615
|
-
const { repository, runId, serverUrl } = value;
|
|
616
|
-
if (typeof repository !== "string" || !/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repository) || repository.length > 201 || repository.split("/").some((p) => p === "." || p === "..") || typeof runId !== "string" || !/^[1-9]\d{0,19}$/.test(runId)) throw new Error("Invalid GitHub Actions context.");
|
|
617
|
-
let url3;
|
|
618
|
-
try {
|
|
619
|
-
url3 = new URL(serverUrl);
|
|
620
|
-
} catch {
|
|
621
|
-
throw new Error("Invalid GitHub Actions server.");
|
|
622
|
-
}
|
|
623
|
-
if (typeof serverUrl !== "string" || serverUrl.length > 2048 || url3.protocol !== "https:" || url3.username || url3.password || url3.search || url3.hash || url3.pathname !== "/") throw new Error("Invalid GitHub Actions server.");
|
|
624
|
-
return { repository, runId, serverUrl: url3.origin };
|
|
625
|
-
}
|
|
626
|
-
function validateRunMetadata(value) {
|
|
627
|
-
if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).some((k) => !["runNumber", "startedBy"].includes(k))) throw new Error("Invalid run metadata.");
|
|
628
|
-
if (value.runNumber !== void 0 && runNumberOf(value.runNumber) === void 0) throw new Error("Invalid run number.");
|
|
629
|
-
if (value.startedBy !== void 0) {
|
|
630
|
-
const by = value.startedBy;
|
|
631
|
-
if (!by || typeof by !== "object" || Array.isArray(by) || Object.keys(by).some((k) => !["source", "email", "repository", "url"].includes(k)) || !["console", "cli", "github-actions"].includes(by.source)) throw new Error("Invalid run starter.");
|
|
632
|
-
if (by.email !== void 0 && (typeof by.email !== "string" || by.email.length > 320 || /[\x00-\x1f\x7f]/.test(by.email))) throw new Error("Invalid run starter email.");
|
|
633
|
-
if (by.source === "github-actions") {
|
|
634
|
-
let u;
|
|
635
|
-
try {
|
|
636
|
-
u = new URL(by.url);
|
|
637
|
-
} catch {
|
|
638
|
-
throw new Error("Invalid workflow URL.");
|
|
639
|
-
}
|
|
640
|
-
const match = /^\/(.+)\/actions\/runs\/(\d+)$/.exec(u.pathname);
|
|
641
|
-
if (!match || match[1] !== by.repository || u.search || u.hash || u.username || u.password) throw new Error("Invalid workflow URL.");
|
|
642
|
-
github2({ repository: by.repository, runId: match[2], serverUrl: u.origin });
|
|
643
|
-
} else if (by.repository !== void 0 || by.url !== void 0) throw new Error("Invalid run starter context.");
|
|
644
|
-
}
|
|
645
|
-
return value;
|
|
646
|
-
}
|
|
647
|
-
function starterLabel(by) {
|
|
648
|
-
if (!by) return "";
|
|
649
|
-
return [by.email, by.source === "github-actions" ? "GitHub Actions" : by.source === "cli" ? "CLI" : "", by.repository].filter(Boolean).join(" \xB7 ");
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
// cloud/shared/outcome-counts.mjs
|
|
653
|
-
var count = (value) => Number.isSafeInteger(value) && value >= 0 ? value : void 0;
|
|
654
|
-
function attemptOutcome(attempt, graded) {
|
|
655
|
-
if (attempt.valid === false || attempt.exit === "invalid" || attempt.outcome === "invalid") return "invalid";
|
|
656
|
-
if (attempt.outcome === "skipped" || attempt.outcome === "xfailed") return "skipped";
|
|
657
|
-
if (graded === false || attempt.graded === false || attempt.outcome === "ungraded") return "ungraded";
|
|
658
|
-
if (attempt.outcome === "passed" || attempt.outcome === "failed") return attempt.outcome;
|
|
659
|
-
if (typeof attempt.passed === "boolean") return attempt.passed ? "passed" : "failed";
|
|
660
|
-
return ["completed", "error", "stopped"].includes(attempt.status) ? "ungraded" : "pending";
|
|
661
|
-
}
|
|
662
|
-
function countAttempts(attempts, requested, graded) {
|
|
663
|
-
const counts = { requested: Math.max(count(requested) ?? attempts.length, attempts.length), completed: 0, valid: 0, passed: 0, failed: 0, invalid: 0, ungraded: 0, skipped: 0, pending: 0 };
|
|
664
|
-
for (const attempt of attempts) {
|
|
665
|
-
const outcome = attemptOutcome(attempt, graded);
|
|
666
|
-
counts[outcome]++;
|
|
667
|
-
if (outcome !== "pending") counts.completed++;
|
|
668
|
-
if (["passed", "failed", "ungraded"].includes(outcome)) counts.valid++;
|
|
669
|
-
}
|
|
670
|
-
counts.pending += counts.requested - attempts.length;
|
|
671
|
-
return counts;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
// cloud/shared/repair-status.mjs
|
|
675
|
-
var integer = (value) => Number.isSafeInteger(value) && value >= 0;
|
|
676
|
-
var keys = (value, names) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === names.length && names.every((name) => Object.hasOwn(value, name));
|
|
677
|
-
var countKeys = ["requested", "completed", "valid", "invalid", "skipped"];
|
|
678
|
-
var checkKeys = ["check", "production", "passed", "total", "invalid", "skipped"];
|
|
679
|
-
function validRepairEvidence(evidence) {
|
|
680
|
-
if (!keys(evidence, [...countKeys, "checks"]) || !countKeys.every((key) => integer(evidence[key])) || evidence.completed > evidence.requested || evidence.valid + evidence.invalid + evidence.skipped !== evidence.completed || !Array.isArray(evidence.checks)) return false;
|
|
681
|
-
const names = /* @__PURE__ */ new Set();
|
|
682
|
-
return evidence.checks.every((check2) => {
|
|
683
|
-
if (!keys(check2, checkKeys) || typeof check2.check !== "string" || !check2.check || names.has(check2.check) || !["passed", "failed", "unknown"].includes(check2.production) || !["passed", "total", "invalid", "skipped"].every((key) => integer(check2[key])) || check2.passed + check2.invalid + check2.skipped > check2.total || check2.total > evidence.requested) return false;
|
|
684
|
-
names.add(check2.check);
|
|
685
|
-
return true;
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
var status = (kind, label2, tone2 = "neutral") => ({ kind, label: label2, tone: tone2 });
|
|
689
|
-
var incomplete = () => status("incomplete", "Comparison incomplete");
|
|
690
|
-
var original = () => status("not-reproduced", "Original failure not reproduced");
|
|
691
|
-
var legacy = {
|
|
692
|
-
reproduced: ["Same failure", "fail"],
|
|
693
|
-
partly: ["Partly the same", "fail"],
|
|
694
|
-
crashed: ["Agent crashed", "fail"],
|
|
695
|
-
matches: ["Matches production", "pass"],
|
|
696
|
-
differs: ["New failure", "warn"],
|
|
697
|
-
unknown: ["Production ungraded", "neutral"],
|
|
698
|
-
ungraded: ["Not compared", "neutral"]
|
|
699
|
-
};
|
|
700
|
-
function repairStatus(row2) {
|
|
701
|
-
const evidence = row2?.repairEvidence;
|
|
702
|
-
if (evidence !== void 0) {
|
|
703
|
-
if (!validRepairEvidence(evidence) || row2.error !== void 0 || evidence.requested === 0 || evidence.completed !== evidence.requested || evidence.valid !== evidence.requested || evidence.invalid !== 0 || evidence.skipped !== 0 || evidence.checks.some((check2) => check2.total !== evidence.requested || check2.invalid !== 0 || check2.skipped !== 0)) return incomplete();
|
|
704
|
-
const failed = evidence.checks.filter((check2) => check2.production === "failed");
|
|
705
|
-
if (row2.verdict !== "crashed" && failed.length && failed.every((check2) => check2.passed === evidence.requested)) {
|
|
706
|
-
return evidence.checks.every((check2) => check2.passed === evidence.requested) ? status("fixed", "Fixed", "pass") : status("other-checks-failed", "Original failure cleared \xB7 Other checks failed", "warn");
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
if (row2?.verdict === "not-reproduced") return original();
|
|
710
|
-
const [label2, tone2] = Object.hasOwn(legacy, row2?.verdict) ? legacy[row2.verdict] : ["Not compared", "neutral"];
|
|
711
|
-
return status(row2?.verdict ?? "ungraded", label2, tone2);
|
|
712
|
-
}
|
|
713
|
-
function productionStatus(reproduction) {
|
|
714
|
-
const rows3 = Array.isArray(reproduction) ? reproduction.filter((row2) => row2 && typeof row2 === "object") : [];
|
|
715
|
-
if (!rows3.length) return void 0;
|
|
716
|
-
const states = rows3.map(repairStatus);
|
|
717
|
-
if (states.length === 1) return states[0];
|
|
718
|
-
if (states.some((state) => state.kind === "incomplete")) return incomplete();
|
|
719
|
-
const again = states.filter((state) => ["reproduced", "partly", "crashed"].includes(state.kind)).length;
|
|
720
|
-
if (again) return status("reproduced", `${again} of ${rows3.length} fail again`, "fail");
|
|
721
|
-
if (states.some((state) => state.kind === "other-checks-failed")) return status("other-checks-failed", "Original failure cleared \xB7 Other checks failed", "warn");
|
|
722
|
-
const differs = states.filter((state) => state.kind === "differs").length;
|
|
723
|
-
if (differs) return status("differs", `${differs} new ${differs === 1 ? "failure" : "failures"}`, "warn");
|
|
724
|
-
if (states.some((state) => state.kind === "not-reproduced")) return original();
|
|
725
|
-
if (states.some((state) => !["fixed", "matches"].includes(state.kind))) return status("ungraded", "Not compared");
|
|
726
|
-
const fixed = states.filter((state) => state.kind === "fixed").length;
|
|
727
|
-
return fixed ? status("fixed", `${fixed} of ${rows3.length} fixed`, "pass") : status("matches", "Matches production", "pass");
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
// frontend/src/runs-page.ts
|
|
731
|
-
function starterHtml(run) {
|
|
732
|
-
const by = run.startedBy ?? run.origin?.startedBy;
|
|
733
|
-
try {
|
|
734
|
-
validateRunMetadata({ startedBy: by });
|
|
735
|
-
} catch {
|
|
736
|
-
return "";
|
|
737
|
-
}
|
|
738
|
-
const label2 = h(starterLabel(by));
|
|
739
|
-
return by?.url ? `<a href="${h(by.url)}" target="_blank" rel="noopener noreferrer">${label2}</a>` : label2;
|
|
740
|
-
}
|
|
741
|
-
var SOURCES = { console: "Console", cli: "CLI", ci: "CI", cloud: "Cloud" };
|
|
742
|
-
var TARGETS = { local: "Local", docker: "Docker", hosted: "Hosted", cloud: "Cloud" };
|
|
743
|
-
var RANGES = { "24h": ["24 h", 864e5], "7d": ["7 d", 7 * 864e5], "30d": ["30 d", 30 * 864e5] };
|
|
744
|
-
var PAGE = 25;
|
|
745
|
-
function originLabel(origin) {
|
|
746
|
-
if (!origin?.source) return "";
|
|
747
|
-
const commit = origin.commit ? `${String(origin.commit).slice(0, 7)}${origin.dirty ? " + changes" : ""}` : "";
|
|
748
|
-
const target = String(origin.target ?? "").toLowerCase();
|
|
749
|
-
return [SOURCES[origin.source] ?? String(origin.source), target === origin.source ? "" : target, commit].filter(Boolean).join(" \xB7 ");
|
|
750
|
-
}
|
|
751
|
-
function whereKey(origin) {
|
|
752
|
-
const source = String(origin?.source ?? ""), target = String(origin?.target ?? "");
|
|
753
|
-
return source === "cloud" || target === "cloud" ? "cloud" : source === "ci" ? "ci" : target === "docker" ? "docker" : target === "hosted" ? "hosted" : source === "console" || !source ? "console" : "local";
|
|
754
|
-
}
|
|
755
|
-
var WHERE = { cloud: "Cloud", ci: "CI", local: "Local", docker: "Docker", hosted: "Hosted", console: "Console" };
|
|
756
|
-
function runCounts(run) {
|
|
757
|
-
const summary = run.summary, tasks = run.tasks ?? [], attempts = run.attempts ?? [];
|
|
758
|
-
const verified = summary?.verdictVersion === 2 ? summary.counts : void 0;
|
|
759
|
-
const declared = tasks.length && tasks.every((task) => Number.isSafeInteger(task.attempts) && task.attempts > 0) ? tasks.reduce((sum2, task) => sum2 + task.attempts, 0) : void 0;
|
|
760
|
-
const requested = verified?.requested ?? declared;
|
|
761
|
-
const counts = countAttempts(attempts, requested, summary?.graded);
|
|
762
|
-
const graded = counts.passed + counts.failed > 0;
|
|
763
|
-
return { ...counts, requested, total: counts.requested, graded, finished: batchCounts(run).finished };
|
|
764
|
-
}
|
|
765
|
-
function runStatus(run) {
|
|
766
|
-
if (run.status === "queued") return "queued";
|
|
767
|
-
if (!terminal(run.status)) return "running";
|
|
768
|
-
const c = runCounts(run);
|
|
769
|
-
if (run.status === "stopped" && !c.graded) return "stopped";
|
|
770
|
-
if (run.status === "error" && !c.graded) return "error";
|
|
771
|
-
if (run.verdict === "ungraded") return "ungraded";
|
|
772
|
-
if (!c.graded) return c.invalid ? "invalid" : c.skipped && c.skipped === c.total ? "skipped" : "ungraded";
|
|
773
|
-
if (run.verdict === "pass" || run.verdict === "fail") return run.verdict === "pass" ? "passed" : "failed";
|
|
774
|
-
return c.passed === c.total ? "passed" : "failed";
|
|
775
|
-
}
|
|
776
|
-
function runTitle(run) {
|
|
777
|
-
const tasks = run.tasks ?? [];
|
|
778
|
-
if (run.groupName) return String(run.groupName);
|
|
779
|
-
if (tasks.length === 1) return shortPrompt(tasks[0].prompt) || String(tasks[0].title || batchTitle(run));
|
|
780
|
-
return tasks.length ? `${tasks.length} tests` : batchTitle(run);
|
|
781
|
-
}
|
|
782
|
-
var productionBadge = (text2, tone2 = "neutral") => `<span class="k-badge ${tone2 === "pass" ? "pass" : tone2 === "fail" ? "fail" : tone2 === "warn" ? "none" : ""}">${h(text2)}</span>`;
|
|
783
|
-
function productionTag(reproduction) {
|
|
784
|
-
const status2 = productionStatus(reproduction);
|
|
785
|
-
return status2 ? productionBadge(status2.label, status2.tone) : "";
|
|
786
|
-
}
|
|
787
|
-
function baselineNote(run) {
|
|
788
|
-
const comparison = run.comparison;
|
|
789
|
-
if (!comparison || !Array.isArray(comparison.scenes)) return void 0;
|
|
790
|
-
const name = comparison.baselineRunId ? `vs ${shortId(String(comparison.baselineRunId))}` : "vs baseline";
|
|
791
|
-
const delta = comparison.scenes.length === 1 ? Number(comparison.scenes[0].delta) : NaN;
|
|
792
|
-
const rounded = Math.round(Math.abs(delta) * 100);
|
|
793
|
-
const points = Number.isFinite(delta) ? delta === 0 ? "0 pts" : `${delta > 0 ? "+" : "\u2212"}${rounded ? `${rounded} pts` : "<1 pt"}` : "";
|
|
794
|
-
if (comparison.regressed) {
|
|
795
|
-
const checks2 = (comparison.droppedChecks ?? []).map((check2) => `${comparison.scenes.length > 1 ? `${check2.sceneId} / ` : ""}${check2.check}: ${check2.before.passed}/${check2.before.total} \u2192 ${check2.after.passed}/${check2.after.total}`);
|
|
796
|
-
return { text: `${["regressed", ...checks2, points].filter(Boolean).join(" \xB7 ")} ${name}`, tone: "fail" };
|
|
797
|
-
}
|
|
798
|
-
if (comparison.scenes.length === 1) {
|
|
799
|
-
if (Number.isFinite(delta)) return { text: delta ? `${points} ${name}` : `no change ${name}`, tone: delta > 0 ? "pass" : delta < 0 ? "fail" : "neutral" };
|
|
800
|
-
}
|
|
801
|
-
return { text: `held ${name}`, tone: "neutral" };
|
|
802
|
-
}
|
|
803
|
-
function attemptStates(run) {
|
|
804
|
-
const attempts = run.attempts ?? [], c = runCounts(run);
|
|
805
|
-
const states = attempts.map((a) => ["passed", "failed", "invalid", "skipped", "ungraded"].includes(a.outcome) ? a.outcome : ["running", "starting"].includes(a.status) ? "running" : a.status === "queued" ? "queued" : terminal(a.status) ? "done" : "queued");
|
|
806
|
-
while (states.length < c.total) states.push("queued");
|
|
807
|
-
return states;
|
|
808
|
-
}
|
|
809
|
-
function runMs(run, now) {
|
|
810
|
-
const start = timeOf(run.createdAt), end = timeOf(run.finishedAt);
|
|
811
|
-
if (!Number.isFinite(start)) return void 0;
|
|
812
|
-
if (Number.isFinite(end)) return end - start;
|
|
813
|
-
return terminal(run.status) ? void 0 : now - start;
|
|
814
|
-
}
|
|
815
|
-
function view(run, now) {
|
|
816
|
-
return { run, status: runStatus(run), title: runTitle(run), agent: String(run.agentName ?? run.entries?.[0]?.agentName ?? ""), command: String(run.agentCommand ?? ""), where: whereKey(run.origin), ms: runMs(run, now) };
|
|
817
|
-
}
|
|
818
|
-
var resultClass = (state) => state === "passed" ? "pass" : state === "failed" ? "fail" : state === "running" ? "run" : state === "queued" ? "queue" : "none";
|
|
819
|
-
var resultLabel = (state) => state === "done" || state === "ungraded" ? "No result \xB7 Ungraded" : statusLabel(state);
|
|
820
|
-
var resultBadge = (state) => `<span class="k-badge ${["passed", "failed"].includes(state) ? resultClass(state) : ["running", "queued", "stopped"].includes(state) ? "" : "none"}">${h(resultLabel(state))}</span>`;
|
|
821
|
-
var resultIcon = (state) => ["running", "queued"].includes(state) ? `<span class="k-sq ${resultClass(state)}" role="img" aria-label="${h(resultLabel(state))}"></span>` : `<span class="k-icon ${resultClass(state)}" role="img" aria-label="${h(resultLabel(state))}"></span>`;
|
|
822
|
-
function attemptSquares(states, links = [], labels = []) {
|
|
823
|
-
return `<span class="k-squares">${states.map((state, i) => {
|
|
824
|
-
const label2 = labels[i] ?? `Attempt ${i + 1}: ${resultLabel(state)}`;
|
|
825
|
-
const attrs = `class="k-sq ${resultClass(state)}" role="img" aria-label="${h(label2)}" title="${h(label2)}"`;
|
|
826
|
-
return links[i] ? `<a ${attrs} href="${h(links[i])}" data-nav></a>` : `<span ${attrs}></span>`;
|
|
827
|
-
}).join("")}</span>`;
|
|
828
|
-
}
|
|
829
|
-
function row(item, now, compared, references) {
|
|
830
|
-
const run = item.run, c = runCounts(run), baseline = baselineNote(run);
|
|
831
|
-
const baselineId = run.comparison?.baselineRunId;
|
|
832
|
-
const baselineText = baseline ? `<span class="k-${baseline.tone === "fail" ? "fail-text" : baseline.tone === "pass" ? "pass-text" : "muted"}">${h(baseline.text)}</span>` : "\u2014";
|
|
833
|
-
const baselineLink = baseline && baselineId ? `<a href="/playgrounds/${encodeURIComponent(String(baselineId))}" data-nav>${baselineText}</a>${references.get(String(baselineId))?.origin?.branch === "main" ? '<span class="k-meta"> \xB7 main</span>' : ""}` : baselineText;
|
|
834
|
-
const attemptLinks = whereKey(run.origin) === "cloud" && !terminal(run.status) ? [] : (run.attempts ?? []).map((a) => a.id && a.taskId ? `/playgrounds/${encodeURIComponent(String(run.id))}?task=${encodeURIComponent(String(a.taskId))}&attempt=${encodeURIComponent(String(a.id))}` : void 0);
|
|
835
|
-
const pending = item.status === "queued" ? queueLabel(run.queue) || "Queued" : item.status === "running" ? "Graded as attempts finish" : "";
|
|
836
|
-
const note = [pending, c.graded && !c.requested ? "Rerun to record requested attempts" : "", c.invalid ? `${c.invalid} invalid` : "", c.skipped ? `${c.skipped} skipped` : "", c.ungraded ? `${c.ungraded} ungraded` : "", !c.graded && !pending && !c.invalid && !c.skipped ? "No checks evaluated" : ""].filter(Boolean).join(" \xB7 ");
|
|
837
|
-
return `<tr><td class="wrap"><a class="rt-row" href="/playgrounds/${encodeURIComponent(String(run.id))}" data-nav><span class="rt-result"><span class="c-${item.status}">${resultBadge(item.status)}</span></span><span class="k-name">${h(item.title)}</span>${run.origin?.branch ? `<span class="k-meta">${h(run.origin.branch)}</span>` : ""}<span class="k-id">${h(runLabel(run, `#${shortId(String(run.id))}`))}</span></a></td><td class="wrap"><span class="k-name">${h(item.agent || "\u2014")}</span>${item.command ? `<div class="k-id k-clamp" title="${h(item.command)}">${h(item.command)}</div>` : ""}</td><td>${attemptSquares(attemptStates(run), attemptLinks)}<div class="k-meta">${h(`${c.finished} / ${c.total} done`)}</div></td><td class="num">${c.graded && c.requested ? `${c.passed}/${c.requested}` : "\u2014"}${note ? `<div class="k-meta">${h(note)}</div>` : ""}</td>` + (compared ? `<td>${baselineLink}</td>` : "") + `<td class="wrap k-meta">${h(originLabel(run.origin) || "Console")}${starterHtml(run) ? `<div>${starterHtml(run)}</div>` : ""}</td><td class="wrap num k-meta">${when(run.createdAt, now)}<div>${h(item.status === "queued" ? "Queued" : duration(item.ms))}</div></td></tr>`;
|
|
838
|
-
}
|
|
839
|
-
function runsTable(runs, options = {}) {
|
|
840
|
-
const now = options.now ?? Date.now(), compared = runs.some((run) => baselineNote(run));
|
|
841
|
-
const references = new Map((options.referenceRuns ?? runs).map((run) => [String(run.id), run]));
|
|
842
|
-
return `<section class="k-card runs-v2" aria-label="Runs"><div class="k-scroll"><table class="k-table wider"><thead><tr><th>Run</th><th>Agent</th><th>Results</th><th class="num">Passed</th>${compared ? "<th>Baseline</th>" : ""}<th>From</th><th class="num">When</th></tr></thead><tbody>${runs.map((run) => row(view(run, now), now, compared, references)).join("")}</tbody></table></div></section>`;
|
|
843
|
-
}
|
|
844
|
-
function filterUrl(filters, change) {
|
|
845
|
-
const next = { ...filters, ...change }, params = new URLSearchParams();
|
|
846
|
-
for (const key of ["q", "range", "agent", "result", "where", "commit", "source", "target", "limit"]) if (next[key] !== void 0 && next[key] !== "" && !(key === "limit" && Number(next[key]) === PAGE)) params.set(key, String(next[key]));
|
|
847
|
-
return "/playgrounds" + (params.size ? "?" + params : "");
|
|
848
|
-
}
|
|
849
|
-
var RESULT_ORDER = ["passed", "failed", "invalid", "skipped", "running", "queued", "stopped", "error", "ungraded"];
|
|
850
|
-
function runsPage(runs, filters, options = {}) {
|
|
851
|
-
const now = options.now ?? Date.now(), range = RANGES[filters.range ?? ""] ? filters.range : "";
|
|
852
|
-
const head2 = (meta4) => `<header class="k-head"><div class="k-title"><h1>Runs</h1>${meta4 ? `<p class="k-sub">${h(meta4)}</p>` : ""}</div><div class="k-actions"><nav class="k-seg" aria-label="Time range">${[["", "All"], ...Object.entries(RANGES).map(([key, [label2]]) => [key, label2])].map(([key, label2]) => `<a href="${h(filterUrl(filters, { range: key, limit: void 0 }))}" data-nav${key === range ? ' aria-current="page"' : ""}>${h(label2)}</a>`).join("")}</nav>${copyCommand("ancha run")}</div></header>`;
|
|
853
|
-
if (!runs.length) return head2("") + stateCard("No runs yet", options.emptyHtml ?? "", copyCommand("ancha run"));
|
|
854
|
-
const all = runs.map((run) => view(run, now)).sort((a, b) => timeOf(b.run.createdAt) - timeOf(a.run.createdAt) || String(b.run.id).localeCompare(String(a.run.id)));
|
|
855
|
-
const inRange = range ? all.filter((item) => now - timeOf(item.run.createdAt) <= RANGES[range][1]) : all;
|
|
856
|
-
const values = (pick2, chosen) => [...new Set([...all.map(pick2), chosen].filter((v) => Boolean(v)))];
|
|
857
|
-
const query = String(filters.q ?? "").trim().toLowerCase();
|
|
858
|
-
const matches = (item) => !query || [item.title, item.run.origin?.branch, item.run.id, runLabel(item.run), item.agent, item.command, item.run.test?.name, ...(item.run.tasks ?? []).flatMap((t) => [t.id, t.title, t.prompt])].some((v) => String(v ?? "").toLowerCase().includes(query));
|
|
859
|
-
const shown = inRange.filter((item) => matches(item) && (!filters.agent || item.agent === filters.agent || item.run.agentId === filters.agent || item.run.entries?.some((entry) => entry.agentId === filters.agent)) && (!filters.result || item.status === filters.result) && (!filters.where || item.where === filters.where) && (!filters.commit || item.run.origin?.commit === filters.commit) && (!filters.source || item.run.origin?.source === filters.source) && (!filters.target || item.run.origin?.target === filters.target));
|
|
860
|
-
const select = (name, label2, choices, all2) => `<select class="k-filter" name="${name}" aria-label="${h(label2)}" data-run-filter><option value="">${h(all2)}</option>${choices.map(([value, text2]) => `<option value="${h(value)}" ${filters[name] === value ? "selected" : ""}>${h(text2)}</option>`).join("")}</select>`;
|
|
861
|
-
const commits = values((item) => item.run.origin?.commit, filters.commit);
|
|
862
|
-
const named2 = filters.agent ? all.find((item) => item.run.agentId === filters.agent)?.agent : void 0;
|
|
863
|
-
const agentChoices = values((item) => item.agent, named2 ? void 0 : filters.agent).map((v) => [v === named2 ? filters.agent : v, v]);
|
|
864
|
-
const legacy2 = ["range"].filter((key) => filters[key]).map((key) => `<input type="hidden" name="${key}" value="${h(filters[key])}">`).join("");
|
|
865
|
-
const bar = `<form class="runs-filters k-filters" aria-label="Filter runs" role="search">${legacy2}<input class="k-field grow" aria-label="Search runs" type="search" name="q" value="${h(filters.q ?? "")}" placeholder="Search by request, test or run id" data-run-search>` + select("agent", "Agent", agentChoices, "All agents") + select("result", "Result", RESULT_ORDER.filter((kind) => all.some((item) => item.status === kind) || filters.result === kind).map((kind) => [kind, statusLabel(kind)]), "Any result") + select("where", "Where", values((item) => item.where, filters.where).map((v) => [v, WHERE[v] ?? v]), "Anywhere") + select("source", "Source", values((item) => item.run.origin?.source, filters.source).map((v) => [v, SOURCES[v] ?? v]), "Any source") + select("target", "Target", values((item) => item.run.origin?.target, filters.target).map((v) => [v, TARGETS[v] ?? v]), "Any target") + (commits.length ? select("commit", "Commit", commits.map((v) => [v, v.slice(0, 7)]), "Any commit") : "") + "</form>";
|
|
866
|
-
const meta3 = range ? `${inRange.length} in the last ${RANGES[range][0].replace(" h", " hours").replace(" d", " days")}` : `${all.length} ${all.length === 1 ? "run" : "runs"}`;
|
|
867
|
-
const filtered = Boolean(query || filters.agent || filters.result || filters.where || filters.commit || filters.source || filters.target);
|
|
868
|
-
if (!shown.length) return `<div class="k-page">` + head2(meta3) + bar + stateCard(filtered ? "No runs match these filters" : "No runs in this range", filtered ? h([query && `\u201C${filters.q}\u201D`, filters.agent && `Agent: ${named2 ?? filters.agent}`, filters.result && `Result: ${RESULT_ORDER.includes(filters.result) ? statusLabel(filters.result) : filters.result}`, filters.where && `Where: ${WHERE[filters.where] ?? filters.where}`, filters.commit && `Commit: ${filters.commit.slice(0, 7)}`].filter(Boolean).join(" \xB7 ")) : "", `<a class="button-link" href="${h(filtered ? filterUrl({ range: filters.range }, {}) : filterUrl(filters, { range: "" }))}" data-nav>${filtered ? "Clear filters" : "Show all runs"}</a>`, "filtered") + "</div>";
|
|
869
|
-
const limit = Math.max(PAGE, Number(filters.limit) || PAGE), page = shown.slice(0, limit);
|
|
870
|
-
const more = shown.length > page.length ? `<a class="button-link" href="${h(filterUrl(filters, { limit: limit + PAGE }))}" data-nav>Load ${Math.min(PAGE, shown.length - page.length)} more</a>` : "";
|
|
871
|
-
return `<div class="k-page">` + head2(meta3) + bar + runsTable(page.map((item) => item.run), { now, referenceRuns: runs }) + `<div class="rt-foot"><span class="c-note">${page.length} of ${shown.length} ${shown.length === 1 ? "run" : "runs"}, newest first</span>${more}</div></div>`;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
// packages/core/src/tool-call-trace.ts
|
|
875
|
-
function projectToolCalls(trace) {
|
|
876
|
-
const completed = new Map(trace.filter((e) => e.toolEvent?.kind === "completion").map((e) => [e.toolEvent.call_id, e]));
|
|
877
|
-
return trace.filter((e) => !e.routeEvent && e.toolEvent?.kind !== "completion" && !(e.service === "tools" && (e.path === "/register" || e.path === "/calls/complete"))).map((entry) => {
|
|
878
|
-
if (entry.service !== "tools" || !entry.path.startsWith("/tools/")) return entry;
|
|
879
|
-
const response = entry.response;
|
|
880
|
-
if (!response || !response.passthrough || entry.completion || response.execution_status === "succeeded" || response.execution_status === "failed") return entry;
|
|
881
|
-
const end = typeof response.call_id === "string" ? completed.get(response.call_id) : void 0;
|
|
882
|
-
return {
|
|
883
|
-
...entry,
|
|
884
|
-
response: { ...response, ...end?.response, execution_status: end ? end.response.execution_status : "unknown" },
|
|
885
|
-
...end && { completion: { seq: end.seq, tSim: end.tSim, tReal: end.tReal } }
|
|
886
|
-
};
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
|
|
890
7
|
// node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/external.js
|
|
891
8
|
var external_exports = {};
|
|
892
9
|
__export(external_exports, {
|
|
@@ -1045,7 +162,7 @@ __export(external_exports, {
|
|
|
1045
162
|
ipv4: () => ipv42,
|
|
1046
163
|
ipv6: () => ipv62,
|
|
1047
164
|
iso: () => iso_exports,
|
|
1048
|
-
json: () =>
|
|
165
|
+
json: () => json,
|
|
1049
166
|
jwt: () => jwt,
|
|
1050
167
|
keyof: () => keyof,
|
|
1051
168
|
ksuid: () => ksuid2,
|
|
@@ -1136,7 +253,7 @@ __export(external_exports, {
|
|
|
1136
253
|
union: () => union,
|
|
1137
254
|
unknown: () => unknown,
|
|
1138
255
|
uppercase: () => _uppercase,
|
|
1139
|
-
url: () =>
|
|
256
|
+
url: () => url,
|
|
1140
257
|
util: () => util_exports,
|
|
1141
258
|
uuid: () => uuid2,
|
|
1142
259
|
uuidv4: () => uuidv4,
|
|
@@ -2815,7 +1932,7 @@ __export(regexes_exports, {
|
|
|
2815
1932
|
date: () => date,
|
|
2816
1933
|
datetime: () => datetime,
|
|
2817
1934
|
domain: () => domain,
|
|
2818
|
-
duration: () =>
|
|
1935
|
+
duration: () => duration,
|
|
2819
1936
|
e164: () => e164,
|
|
2820
1937
|
email: () => email,
|
|
2821
1938
|
emoji: () => emoji,
|
|
@@ -2827,7 +1944,7 @@ __export(regexes_exports, {
|
|
|
2827
1944
|
httpProtocol: () => httpProtocol,
|
|
2828
1945
|
iban: () => iban,
|
|
2829
1946
|
idnEmail: () => idnEmail,
|
|
2830
|
-
integer: () =>
|
|
1947
|
+
integer: () => integer,
|
|
2831
1948
|
ipv4: () => ipv4,
|
|
2832
1949
|
ipv6: () => ipv6,
|
|
2833
1950
|
ksuid: () => ksuid,
|
|
@@ -2854,7 +1971,7 @@ __export(regexes_exports, {
|
|
|
2854
1971
|
sha512_base64url: () => sha512_base64url,
|
|
2855
1972
|
sha512_hex: () => sha512_hex,
|
|
2856
1973
|
string: () => string,
|
|
2857
|
-
time: () =>
|
|
1974
|
+
time: () => time,
|
|
2858
1975
|
ulid: () => ulid,
|
|
2859
1976
|
undefined: () => _undefined,
|
|
2860
1977
|
unicodeEmail: () => unicodeEmail,
|
|
@@ -2874,7 +1991,7 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
2874
1991
|
function nanoidOfLength(length) {
|
|
2875
1992
|
return new RegExp(`^[a-zA-Z0-9_-]{${length}}$`);
|
|
2876
1993
|
}
|
|
2877
|
-
var
|
|
1994
|
+
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
2878
1995
|
var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
2879
1996
|
var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
2880
1997
|
var uuid = (version2) => {
|
|
@@ -2922,7 +2039,7 @@ function timeSource(args) {
|
|
|
2922
2039
|
const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : args.seconds ? `${hhmm}:[0-5]\\d(?:\\.\\d+)?` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
2923
2040
|
return regex;
|
|
2924
2041
|
}
|
|
2925
|
-
function
|
|
2042
|
+
function time(args) {
|
|
2926
2043
|
return new RegExp(`^${timeSource(args)}$`);
|
|
2927
2044
|
}
|
|
2928
2045
|
function datetime(args) {
|
|
@@ -2939,7 +2056,7 @@ var string = (params) => {
|
|
|
2939
2056
|
return new RegExp(`^${regex}$`);
|
|
2940
2057
|
};
|
|
2941
2058
|
var bigint = /^-?\d+n?$/;
|
|
2942
|
-
var
|
|
2059
|
+
var integer = /^-?\d+$/;
|
|
2943
2060
|
var number = /^-?\d+(?:\.\d+)?$/;
|
|
2944
2061
|
var boolean = /^(?:true|false)$/i;
|
|
2945
2062
|
var _null = /^null$/i;
|
|
@@ -3826,11 +2943,11 @@ var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
|
|
|
3826
2943
|
$ZodStringFormat.init(inst, def);
|
|
3827
2944
|
});
|
|
3828
2945
|
var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
|
|
3829
|
-
def.pattern ?? (def.pattern =
|
|
2946
|
+
def.pattern ?? (def.pattern = time(def));
|
|
3830
2947
|
$ZodStringFormat.init(inst, def);
|
|
3831
2948
|
});
|
|
3832
2949
|
var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
|
|
3833
|
-
def.pattern ?? (def.pattern =
|
|
2950
|
+
def.pattern ?? (def.pattern = duration);
|
|
3834
2951
|
$ZodStringFormat.init(inst, def);
|
|
3835
2952
|
});
|
|
3836
2953
|
var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
@@ -5739,7 +4856,7 @@ function leafPattern(schema) {
|
|
|
5739
4856
|
if (minimum !== void 0 || maximum !== void 0)
|
|
5740
4857
|
return string({ minimum, maximum }).source;
|
|
5741
4858
|
const own2 = schema._zod.pattern;
|
|
5742
|
-
return (isInt && own2 === number ?
|
|
4859
|
+
return (isInt && own2 === number ? integer : own2)?.source;
|
|
5743
4860
|
}
|
|
5744
4861
|
function partPattern(schema) {
|
|
5745
4862
|
const def = schema._zod.def;
|
|
@@ -17529,7 +16646,7 @@ function stringifyKeyNames(bySchema, json4, visited) {
|
|
|
17529
16646
|
return rest;
|
|
17530
16647
|
rest.type = "string";
|
|
17531
16648
|
if (!values)
|
|
17532
|
-
rest.pattern = (types.includes("number") ? number :
|
|
16649
|
+
rest.pattern = (types.includes("number") ? number : integer).source;
|
|
17533
16650
|
return rest;
|
|
17534
16651
|
}
|
|
17535
16652
|
var pendingRecords = /* @__PURE__ */ new WeakMap();
|
|
@@ -17981,7 +17098,7 @@ __export(schemas_exports2, {
|
|
|
17981
17098
|
invertCodec: () => invertCodec,
|
|
17982
17099
|
ipv4: () => ipv42,
|
|
17983
17100
|
ipv6: () => ipv62,
|
|
17984
|
-
json: () =>
|
|
17101
|
+
json: () => json,
|
|
17985
17102
|
jwt: () => jwt,
|
|
17986
17103
|
keyof: () => keyof,
|
|
17987
17104
|
ksuid: () => ksuid2,
|
|
@@ -18028,7 +17145,7 @@ __export(schemas_exports2, {
|
|
|
18028
17145
|
undefined: () => _undefined3,
|
|
18029
17146
|
union: () => union,
|
|
18030
17147
|
unknown: () => unknown,
|
|
18031
|
-
url: () =>
|
|
17148
|
+
url: () => url,
|
|
18032
17149
|
uuid: () => uuid2,
|
|
18033
17150
|
uuidv4: () => uuidv4,
|
|
18034
17151
|
uuidv6: () => uuidv6,
|
|
@@ -18516,7 +17633,7 @@ var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
|
18516
17633
|
$ZodURL.init(inst, def);
|
|
18517
17634
|
ZodStringFormat.init(inst, def);
|
|
18518
17635
|
});
|
|
18519
|
-
function
|
|
17636
|
+
function url(params) {
|
|
18520
17637
|
return _url(ZodURL, params);
|
|
18521
17638
|
}
|
|
18522
17639
|
function httpUrl(params) {
|
|
@@ -19584,7 +18701,7 @@ var stringbool = (...args) => _stringbool({
|
|
|
19584
18701
|
Boolean: ZodBoolean,
|
|
19585
18702
|
String: ZodString
|
|
19586
18703
|
}, ...args);
|
|
19587
|
-
function
|
|
18704
|
+
function json(params) {
|
|
19588
18705
|
const jsonSchema = lazy(() => {
|
|
19589
18706
|
return union([string2(params), number2(), boolean2(), _null3(), array(jsonSchema), record(string2(), jsonSchema)]);
|
|
19590
18707
|
});
|
|
@@ -19633,8 +18750,8 @@ __export(iso_exports, {
|
|
|
19633
18750
|
ZodISOTime: () => ZodISOTime,
|
|
19634
18751
|
date: () => date3,
|
|
19635
18752
|
datetime: () => datetime2,
|
|
19636
|
-
duration: () =>
|
|
19637
|
-
time: () =>
|
|
18753
|
+
duration: () => duration2,
|
|
18754
|
+
time: () => time2
|
|
19638
18755
|
});
|
|
19639
18756
|
function datetime2(params) {
|
|
19640
18757
|
return _isoDateTime(ZodISODateTime, params);
|
|
@@ -19642,10 +18759,10 @@ function datetime2(params) {
|
|
|
19642
18759
|
function date3(params) {
|
|
19643
18760
|
return _isoDate(ZodISODate, params);
|
|
19644
18761
|
}
|
|
19645
|
-
function
|
|
18762
|
+
function time2(params) {
|
|
19646
18763
|
return _isoTime(ZodISOTime, params);
|
|
19647
18764
|
}
|
|
19648
|
-
function
|
|
18765
|
+
function duration2(params) {
|
|
19649
18766
|
return _isoDuration(ZodISODuration, params);
|
|
19650
18767
|
}
|
|
19651
18768
|
|
|
@@ -20259,349 +19376,1245 @@ function convertBaseSchema(schema, ctx) {
|
|
|
20259
19376
|
if (typeof schema.maxItems === "number") {
|
|
20260
19377
|
arraySchema = arraySchema.max(schema.maxItems);
|
|
20261
19378
|
}
|
|
20262
|
-
zodSchema = arraySchema;
|
|
20263
|
-
} else {
|
|
20264
|
-
zodSchema = z.array(z.any());
|
|
19379
|
+
zodSchema = arraySchema;
|
|
19380
|
+
} else {
|
|
19381
|
+
zodSchema = z.array(z.any());
|
|
19382
|
+
}
|
|
19383
|
+
if (schema.uniqueItems === true || schema.contains !== void 0) {
|
|
19384
|
+
zodSchema = checkArrayGuards(zodSchema, {
|
|
19385
|
+
uniqueItems: schema.uniqueItems === true,
|
|
19386
|
+
containsSchema: schema.contains !== void 0 ? convertSchema(schema.contains, ctx) : void 0,
|
|
19387
|
+
minContains: typeof schema.minContains === "number" ? schema.minContains : void 0,
|
|
19388
|
+
maxContains: typeof schema.maxContains === "number" ? schema.maxContains : void 0
|
|
19389
|
+
});
|
|
19390
|
+
}
|
|
19391
|
+
break;
|
|
19392
|
+
}
|
|
19393
|
+
default:
|
|
19394
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
19395
|
+
}
|
|
19396
|
+
return zodSchema;
|
|
19397
|
+
}
|
|
19398
|
+
function convertSchema(schema, ctx) {
|
|
19399
|
+
if (typeof schema === "boolean") {
|
|
19400
|
+
return schema ? z.any() : z.never();
|
|
19401
|
+
}
|
|
19402
|
+
let baseSchema = convertBaseSchema(schema, ctx);
|
|
19403
|
+
const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
|
|
19404
|
+
if (schema.anyOf && Array.isArray(schema.anyOf)) {
|
|
19405
|
+
const options = schema.anyOf.map((s) => convertSchema(s, ctx));
|
|
19406
|
+
const anyOfUnion = z.union(options);
|
|
19407
|
+
baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
|
|
19408
|
+
}
|
|
19409
|
+
if (schema.oneOf && Array.isArray(schema.oneOf)) {
|
|
19410
|
+
const options = schema.oneOf.map((s) => convertSchema(s, ctx));
|
|
19411
|
+
const oneOfUnion = z.xor(options);
|
|
19412
|
+
baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
|
|
19413
|
+
}
|
|
19414
|
+
if (schema.allOf && Array.isArray(schema.allOf)) {
|
|
19415
|
+
if (schema.allOf.length === 0) {
|
|
19416
|
+
baseSchema = hasExplicitType ? baseSchema : z.any();
|
|
19417
|
+
} else {
|
|
19418
|
+
let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
|
|
19419
|
+
const startIdx = hasExplicitType ? 0 : 1;
|
|
19420
|
+
for (let i = startIdx; i < schema.allOf.length; i++) {
|
|
19421
|
+
result = z.intersection(result, convertSchema(schema.allOf[i], ctx));
|
|
19422
|
+
}
|
|
19423
|
+
baseSchema = result;
|
|
19424
|
+
}
|
|
19425
|
+
}
|
|
19426
|
+
if (schema.nullable === true && ctx.version === "openapi-3.0") {
|
|
19427
|
+
baseSchema = z.nullable(baseSchema);
|
|
19428
|
+
}
|
|
19429
|
+
if (schema.readOnly === true) {
|
|
19430
|
+
baseSchema = z.readonly(baseSchema);
|
|
19431
|
+
}
|
|
19432
|
+
if (schema.default !== void 0) {
|
|
19433
|
+
baseSchema = baseSchema.default(schema.default);
|
|
19434
|
+
}
|
|
19435
|
+
const extraMeta = {};
|
|
19436
|
+
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
19437
|
+
for (const key of coreMetadataKeys) {
|
|
19438
|
+
if (key in schema) {
|
|
19439
|
+
extraMeta[key] = schema[key];
|
|
19440
|
+
}
|
|
19441
|
+
}
|
|
19442
|
+
const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
|
|
19443
|
+
for (const key of contentMetadataKeys) {
|
|
19444
|
+
if (key in schema) {
|
|
19445
|
+
extraMeta[key] = schema[key];
|
|
19446
|
+
}
|
|
19447
|
+
}
|
|
19448
|
+
if (schema.type === "object" && schema.$ref === void 0) {
|
|
19449
|
+
if (schema.propertyNames !== void 0 && !containsRef(schema.propertyNames)) {
|
|
19450
|
+
extraMeta.propertyNames = schema.propertyNames;
|
|
19451
|
+
}
|
|
19452
|
+
for (const key of ["minProperties", "maxProperties"]) {
|
|
19453
|
+
if (schema[key] !== void 0)
|
|
19454
|
+
extraMeta[key] = schema[key];
|
|
19455
|
+
}
|
|
19456
|
+
}
|
|
19457
|
+
if (schema.type === "array" && schema.$ref === void 0) {
|
|
19458
|
+
if (schema.contains !== void 0 && !containsRef(schema.contains)) {
|
|
19459
|
+
extraMeta.contains = schema.contains;
|
|
19460
|
+
}
|
|
19461
|
+
for (const key of ["uniqueItems", "minContains", "maxContains"]) {
|
|
19462
|
+
if (schema[key] !== void 0)
|
|
19463
|
+
extraMeta[key] = schema[key];
|
|
19464
|
+
}
|
|
19465
|
+
}
|
|
19466
|
+
for (const key of Object.keys(schema)) {
|
|
19467
|
+
if (!RECOGNIZED_KEYS.has(key)) {
|
|
19468
|
+
assignProp(extraMeta, key, schema[key]);
|
|
19469
|
+
}
|
|
19470
|
+
}
|
|
19471
|
+
if (Object.keys(extraMeta).length > 0) {
|
|
19472
|
+
ctx.registry.add(baseSchema, extraMeta);
|
|
19473
|
+
}
|
|
19474
|
+
if (schema.description) {
|
|
19475
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
19476
|
+
}
|
|
19477
|
+
return baseSchema;
|
|
19478
|
+
}
|
|
19479
|
+
function fromJSONSchema(schema, params) {
|
|
19480
|
+
if (typeof schema === "boolean") {
|
|
19481
|
+
return schema ? z.any() : z.never();
|
|
19482
|
+
}
|
|
19483
|
+
let normalized;
|
|
19484
|
+
try {
|
|
19485
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
19486
|
+
} catch {
|
|
19487
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
19488
|
+
}
|
|
19489
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
19490
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
19491
|
+
const ctx = {
|
|
19492
|
+
version: version2,
|
|
19493
|
+
defs,
|
|
19494
|
+
refs: /* @__PURE__ */ new Map(),
|
|
19495
|
+
processing: /* @__PURE__ */ new Set(),
|
|
19496
|
+
rootSchema: normalized,
|
|
19497
|
+
registry: params?.registry ?? globalRegistry
|
|
19498
|
+
};
|
|
19499
|
+
return convertSchema(normalized, ctx);
|
|
19500
|
+
}
|
|
19501
|
+
|
|
19502
|
+
// node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/visit.js
|
|
19503
|
+
var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
|
|
19504
|
+
function visit(schema, fnOrHandlers) {
|
|
19505
|
+
const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
|
|
19506
|
+
const h2 = fnOrHandlers[node2._zod.def.type];
|
|
19507
|
+
return h2 ? h2(node2, rewritten) : node2;
|
|
19508
|
+
};
|
|
19509
|
+
const cache = /* @__PURE__ */ new Map();
|
|
19510
|
+
function run(s) {
|
|
19511
|
+
const cached2 = cache.get(s);
|
|
19512
|
+
if (cached2 === RESOLVING) {
|
|
19513
|
+
return new $ZodLazy({
|
|
19514
|
+
type: "lazy",
|
|
19515
|
+
getter: () => cache.get(s)
|
|
19516
|
+
});
|
|
19517
|
+
}
|
|
19518
|
+
if (cached2 !== void 0)
|
|
19519
|
+
return cached2;
|
|
19520
|
+
cache.set(s, RESOLVING);
|
|
19521
|
+
const inner = mapInner(s);
|
|
19522
|
+
const mapped = fn(inner, inner !== s);
|
|
19523
|
+
cache.set(s, mapped);
|
|
19524
|
+
return mapped;
|
|
19525
|
+
}
|
|
19526
|
+
function mapInner(s) {
|
|
19527
|
+
const def = s._zod.def;
|
|
19528
|
+
const kind = def.type;
|
|
19529
|
+
switch (kind) {
|
|
19530
|
+
case "object": {
|
|
19531
|
+
const oldShape = def.shape;
|
|
19532
|
+
const keys2 = Object.keys(oldShape);
|
|
19533
|
+
let changed = false;
|
|
19534
|
+
const newShape = {};
|
|
19535
|
+
for (const k of keys2) {
|
|
19536
|
+
const mapped = run(oldShape[k]);
|
|
19537
|
+
if (mapped !== oldShape[k])
|
|
19538
|
+
changed = true;
|
|
19539
|
+
newShape[k] = mapped;
|
|
19540
|
+
}
|
|
19541
|
+
let newCatchall = def.catchall;
|
|
19542
|
+
if (def.catchall) {
|
|
19543
|
+
newCatchall = run(def.catchall);
|
|
19544
|
+
if (newCatchall !== def.catchall)
|
|
19545
|
+
changed = true;
|
|
19546
|
+
}
|
|
19547
|
+
return changed ? clone(s, { ...def, shape: newShape, catchall: newCatchall }) : s;
|
|
19548
|
+
}
|
|
19549
|
+
case "array": {
|
|
19550
|
+
const mapped = run(def.element);
|
|
19551
|
+
return mapped === def.element ? s : clone(s, { ...def, element: mapped });
|
|
19552
|
+
}
|
|
19553
|
+
case "tuple": {
|
|
19554
|
+
const oldItems = def.items;
|
|
19555
|
+
let changed = false;
|
|
19556
|
+
const newItems = [];
|
|
19557
|
+
for (const item of oldItems) {
|
|
19558
|
+
const mapped = run(item);
|
|
19559
|
+
if (mapped !== item)
|
|
19560
|
+
changed = true;
|
|
19561
|
+
newItems.push(mapped);
|
|
19562
|
+
}
|
|
19563
|
+
let newRest = def.rest;
|
|
19564
|
+
if (def.rest) {
|
|
19565
|
+
newRest = run(def.rest);
|
|
19566
|
+
if (newRest !== def.rest)
|
|
19567
|
+
changed = true;
|
|
19568
|
+
}
|
|
19569
|
+
return changed ? clone(s, { ...def, items: newItems, rest: newRest }) : s;
|
|
19570
|
+
}
|
|
19571
|
+
case "record":
|
|
19572
|
+
case "map": {
|
|
19573
|
+
const newKey = run(def.keyType);
|
|
19574
|
+
const newVal = run(def.valueType);
|
|
19575
|
+
return newKey === def.keyType && newVal === def.valueType ? s : clone(s, { ...def, keyType: newKey, valueType: newVal });
|
|
19576
|
+
}
|
|
19577
|
+
case "set": {
|
|
19578
|
+
const newVal = run(def.valueType);
|
|
19579
|
+
return newVal === def.valueType ? s : clone(s, { ...def, valueType: newVal });
|
|
19580
|
+
}
|
|
19581
|
+
case "union": {
|
|
19582
|
+
const oldOptions = def.options;
|
|
19583
|
+
let changed = false;
|
|
19584
|
+
const newOptions = [];
|
|
19585
|
+
for (const opt of oldOptions) {
|
|
19586
|
+
const mapped = run(opt);
|
|
19587
|
+
if (mapped !== opt)
|
|
19588
|
+
changed = true;
|
|
19589
|
+
newOptions.push(mapped);
|
|
19590
|
+
}
|
|
19591
|
+
return changed ? clone(s, { ...def, options: newOptions }) : s;
|
|
20265
19592
|
}
|
|
20266
|
-
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20270
|
-
minContains: typeof schema.minContains === "number" ? schema.minContains : void 0,
|
|
20271
|
-
maxContains: typeof schema.maxContains === "number" ? schema.maxContains : void 0
|
|
20272
|
-
});
|
|
19593
|
+
case "intersection": {
|
|
19594
|
+
const newLeft = run(def.left);
|
|
19595
|
+
const newRight = run(def.right);
|
|
19596
|
+
return newLeft === def.left && newRight === def.right ? s : clone(s, { ...def, left: newLeft, right: newRight });
|
|
20273
19597
|
}
|
|
20274
|
-
|
|
19598
|
+
case "optional":
|
|
19599
|
+
case "nullable":
|
|
19600
|
+
case "default":
|
|
19601
|
+
case "prefault":
|
|
19602
|
+
case "catch":
|
|
19603
|
+
case "readonly":
|
|
19604
|
+
case "nonoptional":
|
|
19605
|
+
case "promise":
|
|
19606
|
+
case "success": {
|
|
19607
|
+
const newInner = run(def.innerType);
|
|
19608
|
+
return newInner === def.innerType ? s : clone(s, { ...def, innerType: newInner });
|
|
19609
|
+
}
|
|
19610
|
+
case "pipe": {
|
|
19611
|
+
const newIn = run(def.in);
|
|
19612
|
+
const newOut = run(def.out);
|
|
19613
|
+
return newIn === def.in && newOut === def.out ? s : clone(s, { ...def, in: newIn, out: newOut });
|
|
19614
|
+
}
|
|
19615
|
+
case "function": {
|
|
19616
|
+
const newInput = run(def.input);
|
|
19617
|
+
const newOutput = run(def.output);
|
|
19618
|
+
return newInput === def.input && newOutput === def.output ? s : clone(s, { ...def, input: newInput, output: newOutput });
|
|
19619
|
+
}
|
|
19620
|
+
case "lazy": {
|
|
19621
|
+
const original2 = def.getter;
|
|
19622
|
+
const { _cachedInner, ...rest } = def;
|
|
19623
|
+
return clone(s, { ...rest, getter: () => run(original2()) });
|
|
19624
|
+
}
|
|
19625
|
+
// A leaf by choice: `parts` are regex fragments, not data positions.
|
|
19626
|
+
case "template_literal":
|
|
19627
|
+
// Leaves.
|
|
19628
|
+
case "string":
|
|
19629
|
+
case "number":
|
|
19630
|
+
case "int":
|
|
19631
|
+
case "boolean":
|
|
19632
|
+
case "bigint":
|
|
19633
|
+
case "symbol":
|
|
19634
|
+
case "undefined":
|
|
19635
|
+
case "null":
|
|
19636
|
+
case "void":
|
|
19637
|
+
case "never":
|
|
19638
|
+
case "any":
|
|
19639
|
+
case "unknown":
|
|
19640
|
+
case "date":
|
|
19641
|
+
case "nan":
|
|
19642
|
+
case "enum":
|
|
19643
|
+
case "literal":
|
|
19644
|
+
case "file":
|
|
19645
|
+
case "transform":
|
|
19646
|
+
case "custom":
|
|
19647
|
+
return s;
|
|
19648
|
+
default: {
|
|
19649
|
+
kind;
|
|
19650
|
+
return s;
|
|
19651
|
+
}
|
|
19652
|
+
}
|
|
19653
|
+
}
|
|
19654
|
+
return run(schema);
|
|
19655
|
+
}
|
|
19656
|
+
|
|
19657
|
+
// node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/deep-partial.js
|
|
19658
|
+
function deepPartial(schema) {
|
|
19659
|
+
return visit(schema, {
|
|
19660
|
+
object: (s) => s.partial(),
|
|
19661
|
+
// Every partialed option now admits `undefined`, which the constructor rejects as a duplicate.
|
|
19662
|
+
union: (s) => {
|
|
19663
|
+
const def = s._zod.def;
|
|
19664
|
+
return def.discriminator === void 0 ? s : union(def.options);
|
|
19665
|
+
}
|
|
19666
|
+
});
|
|
19667
|
+
}
|
|
19668
|
+
|
|
19669
|
+
// node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/in-out.js
|
|
19670
|
+
function withChecks(side, checks2) {
|
|
19671
|
+
if (!checks2?.length)
|
|
19672
|
+
return side;
|
|
19673
|
+
const def = side._zod.def;
|
|
19674
|
+
return clone(side, mergeDefs(def, { checks: [...def.checks ?? [], ...checks2] }), { parent: true });
|
|
19675
|
+
}
|
|
19676
|
+
function outSide(def) {
|
|
19677
|
+
return withChecks(def.out, def.checks);
|
|
19678
|
+
}
|
|
19679
|
+
function inSide(def) {
|
|
19680
|
+
return def.in._zod.traits.has("$ZodTransform") ? outSide(def) : def.in;
|
|
19681
|
+
}
|
|
19682
|
+
function input(schema) {
|
|
19683
|
+
return visit(schema, {
|
|
19684
|
+
pipe: (s) => inSide(s._zod.def),
|
|
19685
|
+
// A default value belongs to the output side, so a rewritten inner type leaves it stranded. `.default()` widens the declared input type with `undefined`, and `optional` is what carries that across.
|
|
19686
|
+
default: (s, rewritten) => rewritten ? optional(s._zod.def.innerType) : s,
|
|
19687
|
+
// A catch value is output-side too, but `.catch()` leaves the declared input type alone, so the inner schema stands on its own.
|
|
19688
|
+
catch: (s, rewritten) => rewritten ? s._zod.def.innerType : s
|
|
19689
|
+
});
|
|
19690
|
+
}
|
|
19691
|
+
function output(schema) {
|
|
19692
|
+
return visit(schema, {
|
|
19693
|
+
pipe: (s) => outSide(s._zod.def),
|
|
19694
|
+
// A prefault value is fed through the schema, which makes it input-side, so a rewritten inner type leaves it stranded.
|
|
19695
|
+
prefault: (s, rewritten) => rewritten ? s._zod.def.innerType : s
|
|
19696
|
+
});
|
|
19697
|
+
}
|
|
19698
|
+
|
|
19699
|
+
// node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/coerce.js
|
|
19700
|
+
var coerce_exports = {};
|
|
19701
|
+
__export(coerce_exports, {
|
|
19702
|
+
bigint: () => bigint3,
|
|
19703
|
+
boolean: () => boolean3,
|
|
19704
|
+
date: () => date4,
|
|
19705
|
+
number: () => number3,
|
|
19706
|
+
string: () => string3
|
|
19707
|
+
});
|
|
19708
|
+
function string3(params) {
|
|
19709
|
+
return _coercedString(ZodString, params);
|
|
19710
|
+
}
|
|
19711
|
+
function number3(params) {
|
|
19712
|
+
return _coercedNumber(ZodNumber, params);
|
|
19713
|
+
}
|
|
19714
|
+
function boolean3(params) {
|
|
19715
|
+
return _coercedBoolean(ZodBoolean, params);
|
|
19716
|
+
}
|
|
19717
|
+
function bigint3(params) {
|
|
19718
|
+
return _coercedBigint(ZodBigInt, params);
|
|
19719
|
+
}
|
|
19720
|
+
function date4(params) {
|
|
19721
|
+
return _coercedDate(ZodDate, params);
|
|
19722
|
+
}
|
|
19723
|
+
|
|
19724
|
+
// packages/core/src/agent-routes.ts
|
|
19725
|
+
var agentRoutesSchema = external_exports.strictObject({ quickbooks: external_exports.literal("composio").optional(), netsuite: external_exports.literal("composio").optional() });
|
|
19726
|
+
function formatRouteSummary(route, toolkit = "quickbooks") {
|
|
19727
|
+
return [
|
|
19728
|
+
`${toolkit === "quickbooks" ? "QuickBooks" : "NetSuite"} via Composio: ${route.executions} executions, ${route.reached} reached the world, ${route.refused} refused`,
|
|
19729
|
+
...route.via ? [`via direct ${route.via.direct} / session ${route.via.session} / MCP ${route.via.mcp}`] : [],
|
|
19730
|
+
...route.sessions !== void 0 ? [`${route.sessions} sessions`] : [],
|
|
19731
|
+
...route.narrowed?.length ? [`narrowed: ${route.narrowed.join(", ")}`] : [],
|
|
19732
|
+
...route.connection ? [`connection ${route.connection}`] : [],
|
|
19733
|
+
...route.cleanup ? [`cleanup ${route.cleanup}`] : []
|
|
19734
|
+
].join(" \xB7 ");
|
|
19735
|
+
}
|
|
19736
|
+
|
|
19737
|
+
// frontend/src/views.ts
|
|
19738
|
+
var h = (value) => String(value ?? "").replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c]);
|
|
19739
|
+
var appTime = (value) => {
|
|
19740
|
+
const date5 = new Date(value === null || value === void 0 || value === "" ? NaN : value);
|
|
19741
|
+
return Number.isFinite(date5.getTime()) ? date5.toLocaleString(void 0, { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" }) : "";
|
|
19742
|
+
};
|
|
19743
|
+
var json2 = (value) => h(JSON.stringify(value, null, 2));
|
|
19744
|
+
var code = (value) => `<pre>${json2(value)}</pre>`;
|
|
19745
|
+
var mono = (value) => `<span class="mono">${h(value)}</span>`;
|
|
19746
|
+
var clock = (ms = 0) => `+${String(Math.floor(ms / 6e4)).padStart(2, "0")}:${String(Math.floor(ms / 1e3) % 60).padStart(2, "0")}`;
|
|
19747
|
+
var title = (s) => ({ "bad-deploy": "Bad deployment", "false-alarm": "False alarm", "flapping-monitor": "Flapping monitor", "db-disk-full": "Disk full", "status-request": "Status request" })[s.id] ?? s.title ?? s.id;
|
|
19748
|
+
var badge = (text2, tone2 = "") => `<span class="badge ${h(tone2)}">${h(text2)}</span>`;
|
|
19749
|
+
var button = (label2, action2, value = "", cls = "") => `<button type="button" class="${cls}" data-action="${h(action2)}" data-value="${h(value)}">${h(label2)}</button>`;
|
|
19750
|
+
var empty = (text2) => `<div class="empty compact">${h(text2)}</div>`;
|
|
19751
|
+
var details = (name, value) => `<details><summary>${h(name)}</summary>${code(value)}</details>`;
|
|
19752
|
+
var time3 = (value) => {
|
|
19753
|
+
const d = new Date(typeof value === "string" && /^\d+\.\d+$/.test(value) ? Number(value) * 1e3 : value);
|
|
19754
|
+
return Number.isFinite(d.getTime()) ? d.toISOString().slice(11, 19) : String(value ?? "");
|
|
19755
|
+
};
|
|
19756
|
+
var rows = (data, key) => Array.isArray(data[key]) ? data[key] : [];
|
|
19757
|
+
function table(data, fields2) {
|
|
19758
|
+
if (!data.length) return empty("No records at this point.");
|
|
19759
|
+
const keys2 = fields2 ?? [...new Set(data.flatMap((d) => Object.keys(d)))].slice(0, 7);
|
|
19760
|
+
return `<div class="table-wrap"><table><thead><tr>${keys2.map((k) => `<th>${h(k.replaceAll("_", " "))}</th>`).join("")}</tr></thead><tbody>${data.map((d) => `<tr>${keys2.map((k) => `<td>${typeof d[k] === "object" && d[k] !== null ? `<span class="mono">${json2(d[k])}</span>` : ["at", "evaluated_at", "created_at"].includes(k) && d[k] != null ? `<time title="${h(d[k])}">${h(time3(d[k]))}</time>` : h(d[k])}</td>`).join("")}</tr>`).join("")}</tbody></table></div>`;
|
|
19761
|
+
}
|
|
19762
|
+
function named(scene, ref2) {
|
|
19763
|
+
if (typeof ref2 !== "string") return "";
|
|
19764
|
+
const key = ref2.replace(/^\$(?:[a-z_]+\.)?/, "");
|
|
19765
|
+
const find = (value) => {
|
|
19766
|
+
if (!value || typeof value !== "object") return;
|
|
19767
|
+
if (!Array.isArray(value) && value.ref === key) return value;
|
|
19768
|
+
for (const child of Object.values(value)) {
|
|
19769
|
+
const found = find(child);
|
|
19770
|
+
if (found) return found;
|
|
19771
|
+
}
|
|
19772
|
+
};
|
|
19773
|
+
const item = find(scene.seed) ?? find(scene.world_rules);
|
|
19774
|
+
return item?.real_name ?? item?.name ?? item?.title ?? item?.message ?? key.replaceAll("_", " ");
|
|
19775
|
+
}
|
|
19776
|
+
function toolSummary(scene, name, observation2) {
|
|
19777
|
+
const s = observation2?.state?.[name];
|
|
19778
|
+
if (s) {
|
|
19779
|
+
if (name === "slack") return `${countLabel(s.channels?.length ?? 0, "channel")} \xB7 ${countLabel(s.messages?.length ?? 0, "message")}`;
|
|
19780
|
+
if (name === "datadog") {
|
|
19781
|
+
const monitors = s.monitors ?? [], alerts = monitors.filter((m) => m.overall_state !== "OK");
|
|
19782
|
+
return alerts.length ? `${alerts.length} alerting` : monitors.length ? "Monitors OK" : "No monitors";
|
|
19783
|
+
}
|
|
19784
|
+
if (name === "pagerduty") {
|
|
19785
|
+
const incidents = s.incidents ?? [], open2 = incidents.filter((i) => i.status !== "resolved");
|
|
19786
|
+
return open2.length ? countLabel(open2.length, "open incident") : incidents.length ? "Incidents resolved" : "No incidents";
|
|
19787
|
+
}
|
|
19788
|
+
return countLabel(s.repos?.length ?? 0, "repository", "repositories");
|
|
19789
|
+
}
|
|
19790
|
+
const seed = scene.seed?.[name] ?? {};
|
|
19791
|
+
const names = name === "slack" ? (seed.channels ?? []).map((c) => "#" + c.name) : name === "github" ? (seed.repos ?? []).map((r) => r.name) : name === "pagerduty" ? (seed.services ?? []).map((s2) => s2.name) : [...seed.monitors ?? [], ...scene.world_rules?.monitors ?? []].map((m) => m.name);
|
|
19792
|
+
return names.join(" \xB7 ") || toolDescription(name);
|
|
19793
|
+
}
|
|
19794
|
+
function routes(scene, observation2) {
|
|
19795
|
+
const links = scene.world_rules?.integrations ?? [];
|
|
19796
|
+
const tools = ["datadog", "pagerduty", "slack", "github"].filter((name) => (scene.twins ?? []).includes(name));
|
|
19797
|
+
const node2 = (name) => `<button class="map-node node-${h(name)}" data-action="${observation2 ? "tool" : "seed-tool"}" data-value="${h(name)}"><span class="tool-logo ${h(name)}">${h(toolName(name).slice(0, 1))}</span><strong>${h(toolName(name))}</strong><span class="node-summary">${h(toolSummary(scene, name, observation2))}</span><span class="node-open">${observation2 ? "Open tool" : "View data"} \u2192</span></button>`;
|
|
19798
|
+
if (!links.length) return `<div class="tool-map unlinked">${tools.map(node2).join("")}</div>`;
|
|
19799
|
+
const edge = (from, to, label2, cls) => {
|
|
19800
|
+
const index = links.findIndex((l) => l.from === from && l.to === to);
|
|
19801
|
+
if (index < 0) return "";
|
|
19802
|
+
return `<div class="map-edge ${cls}"><span class="edge-line" aria-hidden="true"></span><button data-action="route" data-value="${index}" aria-label="${h(toolName(from))} to ${h(toolName(to))}: ${h(label2)}">${h(label2)}</button></div>`;
|
|
19803
|
+
};
|
|
19804
|
+
const direct = links.some((l) => l.from === "datadog" && l.to === "slack");
|
|
19805
|
+
return `<div class="tool-map linked ${direct ? "has-direct" : ""}">${tools.filter((t) => t !== "github").map(node2).join("")}${edge("datadog", "pagerduty", "Alert / recovery", "edge-page")}${edge("pagerduty", "slack", "Incident updates", "edge-incident")}${edge("datadog", "slack", "Direct alert", "edge-direct")}${tools.includes("github") ? `<div class="map-repository">${node2("github")}${scene.world_rules?.pipelines?.length ? '<span class="small muted">Merge \u2192 deploy to production</span>' : ""}</div>` : ""}</div>`;
|
|
19806
|
+
}
|
|
19807
|
+
function causalEvidence(scene, o, index) {
|
|
19808
|
+
const link = scene.world_rules?.integrations?.[index];
|
|
19809
|
+
if (!link) return empty("Route not found.");
|
|
19810
|
+
const trace = (o.trace ?? []).filter((t) => link.from === "datadog" && link.to === "pagerduty" ? t.service === "pagerduty" && (t.response?.source?.monitor_id !== void 0 || t.request?.payload?.source?.startsWith("datadog:")) : t.service === "slack" && t.request?.source?.service === link.from);
|
|
19811
|
+
return `${connectionSetup(scene, index)}<h3>Recorded deliveries</h3>${trace.map((t) => `<article class="record"><div class="row">${badge(`#${t.seq}`)} ${mono(t.path)} <span class="muted">${h(time3(t.tSim))}</span></div>${table([t.response?.source ?? t.request?.source ?? {}])}<div class="arrow-label">\u2193 resulting record</div>${table([t.response?.target ?? t.request?.target ?? {}])}${button("Open source record", "record", `${link.from}|${t.response?.source?.monitor_id ?? t.request?.source?.monitor_id ?? t.request?.source?.incident_id ?? ""}`)} ${button("Open resulting record", "record", `${link.to}|${t.response?.target?.incident_id ?? t.request?.target?.channel ?? ""}|${t.request?.target?.ts ?? ""}`)}${details("Full delivery evidence", t)}</article>`).join("") || empty("No delivery between these tools yet.")}`;
|
|
19812
|
+
}
|
|
19813
|
+
function connectionSetup(scene, index) {
|
|
19814
|
+
const links = scene.world_rules?.integrations ?? [], link = links[index];
|
|
19815
|
+
if (!link) return empty("Connection not found.");
|
|
19816
|
+
const matches = links.filter((l) => l.from === link.from && l.to === link.to);
|
|
19817
|
+
return `<h3>${h(toolName(link.from))} \u2192 ${h(toolName(link.to))}</h3>${matches.map((l) => {
|
|
19818
|
+
const service = (scene.seed?.pagerduty?.services ?? []).find((s) => s.ref === String(l.service ?? "").replace(/^\$(?:service\.)?/, ""));
|
|
19819
|
+
const channel2 = l.channel ?? service?.slack_channel;
|
|
19820
|
+
return `<p>${l.from === "datadog" ? `Monitors mentioning @${h(l.handle ?? "pagerduty-" + service?.name)}` : `Incidents for ${h(named(scene, l.service))}`} \u2192 ${l.to === "pagerduty" ? h(named(scene, l.service)) : channel2 ? "#" + h(named(scene, channel2)) : "the service\u2019s Slack channel"}</p>`;
|
|
19821
|
+
}).join("")}${details("Connection definition", matches)}`;
|
|
19822
|
+
}
|
|
19823
|
+
function checks(checks2, manual = false) {
|
|
19824
|
+
return `<h2>${manual ? "Current conditions" : "Results"}</h2>${checks2.map((c) => {
|
|
19825
|
+
const status2 = c.status === "skipped" ? "Skipped" : c.error ? "Evaluation error" : c.passed ? "Satisfied" : "Unmet";
|
|
19826
|
+
return `<article class="check"><div class="row">${badge(status2, c.passed ? "good" : c.error ? "bad" : "warn")}<strong>${h(c.id)}</strong>${badge(c.required ? "Required" : "Advisory")}</div><p>${h(c.explanation ?? c.warning ?? "")}</p><dl><dt>Expected</dt><dd>${h(c.expected)}</dd><dt>Observed</dt><dd>${h(c.actual)}</dd></dl>${c.error ? `<p class="error">${h(c.error)}</p>` : ""}${c.warning ? `<p class="hint">${h(c.warning)}</p>` : ""}${c.evidence?.length ? `<p class="hint">Evidence ${c.evidence.map((seq) => button(`#${seq}`, "evidence", String(seq), "link")).join(" ")}</p>` : ""}</article>`;
|
|
19827
|
+
}).join("") || empty("No evaluated conditions available.")}`;
|
|
19828
|
+
}
|
|
19829
|
+
function timeline(o, filter2 = "all", selected) {
|
|
19830
|
+
const trace = o.trace ?? [];
|
|
19831
|
+
const manual = new Set(trace.filter((t) => t.path === "console.manual_action").flatMap((t) => t.response?.sequences ?? []));
|
|
19832
|
+
const source = (t) => manual.has(t.seq) || t.path === "console.manual_action" ? "manual" : t.source;
|
|
19833
|
+
const filtered = trace.filter((t) => filter2 === "all" || source(t) === filter2);
|
|
19834
|
+
return `<div class="row between"><h2>Activity</h2><select class="k-filter" aria-label="Activity source" id="timeline-filter">${["all", "world", "manual", "agent", "delivery"].map((v) => `<option value="${v}" ${filter2 === v ? "selected" : ""}>${h(v === "all" ? "Any source" : v)}</option>`).join("")}</select></div><p class="hint">${filtered.length} operations</p><div class="timeline">${filtered.slice(-300).reverse().map((t) => `<details id="event-${t.seq}" class="event ${t.seq === selected ? "selected" : ""}" ${t.seq === selected ? "open" : ""}><summary><span class="event-seq">#${t.seq}</span><span>${badge(source(t), source(t) === "manual" ? "accent" : "")}<strong>${h(t.note ?? t.path)}</strong><small>${h(t.service)} \xB7 ${h(time3(t.tSim))}${t.status ? ` \xB7 HTTP ${t.status}` : ""}${t.gap ? " \xB7 Unsupported endpoint" : ""}</small></span></summary>${code(t)}</details>`).join("") || empty("No activity matches this filter.")}</div>${filtered.length > 300 ? '<p class="hint">Showing the latest 300 operations.</p>' : ""}`;
|
|
19835
|
+
}
|
|
19836
|
+
function slack(o, manual, channel2, thread2) {
|
|
19837
|
+
const s = o.state?.slack ?? {}, channels = rows(s, "channels"), active = channels.find((c) => c.id === channel2) ?? channels[0];
|
|
19838
|
+
if (!active) return empty("This world has no Slack channels.");
|
|
19839
|
+
const messages = rows(s, "messages").filter((m) => m.channel_id === active.id && (thread2 ? m.ts === thread2 || m.thread_ts === thread2 : !m.thread_ts));
|
|
19840
|
+
return `<div class="row between"><h2># ${h(active.name)} ${thread2 ? '<span class="muted">/ Thread</span>' : ""}</h2><select id="channel-select" aria-label="Slack channel">${channels.map((c) => `<option value="${h(c.id)}" ${c.id === active.id ? "selected" : ""}># ${h(c.name)}</option>`).join("")}</select>${thread2 ? button("Back to channel", "thread", "") : ""}</div><div class="messages">${messages.map((m) => {
|
|
19841
|
+
const user = rows(s, "users").find((u) => u.id === m.user_id), app = rows(s, "apps").find((a) => a.user_id === m.user_id);
|
|
19842
|
+
return `<article class="message" id="message-${h(m.ts)}"><span class="avatar ${h(app?.service ?? "")}">${h((user?.real_name ?? "?").slice(0, 1))}</span><div><div class="row"><strong>${h(user?.real_name ?? user?.name ?? m.user_id)}</strong>${app ? badge("App") : ""}<time class="muted small" title="${h(m.ts)}">${h(time3(m.ts))}</time>${m.edited_ts ? badge("Edited", "accent") : ""}</div><p class="message-text">${h(m.text)}</p><div class="row small">${!thread2 ? button(m.reply_count ? `${m.reply_count} replies` : "Open thread", "thread", m.ts, "link") : ""}</div></div></article>`;
|
|
19843
|
+
}).join("")}</div>${manual ? `<form id="slack-form" class="composer"><input type="hidden" name="channel" value="${h(active.id)}"><input type="hidden" name="threadTs" value="${h(thread2 ?? "")}"><label for="message-text">${thread2 ? "Reply" : "Message"}</label><textarea id="message-text" name="text" required maxlength="40000" rows="2" placeholder="Write a message\u2026"></textarea><button class="primary">${thread2 ? "Send reply" : "Send message"}</button></form>` : ""}`;
|
|
19844
|
+
}
|
|
19845
|
+
function pagerduty(o, manual) {
|
|
19846
|
+
const s = o.state?.pagerduty ?? {};
|
|
19847
|
+
return `<h2>PagerDuty incidents</h2>${rows(s, "incidents").map((i) => {
|
|
19848
|
+
const assigned = rows(s, "assignments").filter((a) => a.incident_id === i.id).map((a) => rows(s, "users").find((u) => u.id === a.user_id)?.name ?? a.user_id);
|
|
19849
|
+
return `<article class="record" id="record-${h(i.id)}"><div class="row between"><div class="row">${badge(i.status, i.status === "resolved" ? "good" : i.status === "triggered" ? "bad" : "warn")} ${mono(i.id)} <span class="muted">#${i.incident_number}</span></div>${manual && i.status === "triggered" ? button("Acknowledge", "ack", i.id, "primary") : ""}</div><h3>${h(i.title)}</h3><dl><dt>Service</dt><dd>${h(rows(s, "services").find((v) => v.id === i.service_id)?.name)}</dd><dt>Assigned to</dt><dd>${h(assigned.join(", ") || "Unassigned")}</dd><dt>Monitor cycle</dt><dd>${mono(i.dedup_key ?? "No monitor correlation")}</dd><dt>Policy</dt><dd>${h(rows(s, "escalation_policies").find((p) => p.id === i.escalation_policy_id)?.name)}</dd></dl>${manual && i.status !== "resolved" ? `<form class="assign-form row" data-incident="${h(i.id)}"><label class="inline">Assign to <select name="userId">${rows(s, "users").map((u) => `<option value="${h(u.id)}">${h(u.name)}</option>`).join("")}</select></label><button>Assign</button></form>` : ""}${table(rows(s, "logs").filter((l) => l.incident_id === i.id), ["type", "at", "actor_id"])}</article>`;
|
|
19850
|
+
}).join("") || empty("No incident has been created.")}<h3>Services & escalation</h3>${table(rows(s, "services"), ["name", "id", "escalation_policy_id", "slack_channel_ref"])}${details("Policies, schedules and escalation rules", { policies: s.escalation_policies, rules: s.escalation_rules, schedules: s.schedules })}`;
|
|
19851
|
+
}
|
|
19852
|
+
function chart(points) {
|
|
19853
|
+
if (!points?.length) return empty("No samples in this window.");
|
|
19854
|
+
const ys = points.map((p) => Number(p[1])), min = Math.min(0, ...ys), max = Math.max(...ys, 1), extent = max - min || 1;
|
|
19855
|
+
const path2 = points.map((p, i) => `${i ? "L" : "M"}${8 + i / Math.max(1, points.length - 1) * 584},${88 - (Number(p[1]) - min) / extent * 70}`).join(" ");
|
|
19856
|
+
return `<svg class="chart" viewBox="0 0 600 110" role="img" aria-label="Metric samples, latest value ${h(ys.at(-1))}"><path class="chart-axis" d="M8 90 H592"/><path class="chart-line" d="${path2}"/><text x="8" y="106">5 minutes ago</text><text x="550" y="106">Now</text></svg>`;
|
|
19857
|
+
}
|
|
19858
|
+
function datadog(o) {
|
|
19859
|
+
const s = o.state?.datadog ?? {};
|
|
19860
|
+
return `<h2>Monitors & telemetry</h2>${rows(s, "monitors").map((m) => `<article class="record" id="record-${h(m.id)}"><div class="row">${badge(m.overall_state, m.overall_state === "OK" ? "good" : "bad")}${mono(m.id)}</div><h3>${h(m.name)}</h3><p class="query">${h(m.query)}</p><p>${h(m.message)}</p><p class="hint">Last evaluated ${h(time3(m.evaluated_at))}</p></article>`).join("") || empty("No monitors.")}<div class="metric-grid">${(o.metrics ?? []).map((m) => `<article class="metric"><div class="row between"><strong>${h(m.metric)}</strong><b class="metric-value">${h(m.points?.at(-1)?.[1] ?? "\u2014")}</b></div><p class="hint">${h(m.tags?.join(" \xB7 "))}</p>${chart(m.points)}</article>`).join("")}</div><h3>Application logs</h3>${table((o.logs?.length ? o.logs : s.logs) ?? [], ["at", "service", "status", "message"])}<h3>Monitor history</h3>${table(rows(s, "events"), ["title", "alert_type", "text", "at"])}${details("Notification cycles and monitor runtime", { notifications: s.notifications, runtime: s.monitorRuntime })}`;
|
|
19861
|
+
}
|
|
19862
|
+
function treeFiles(s, sha, prefix = "", visited = /* @__PURE__ */ new Set()) {
|
|
19863
|
+
if (visited.has(sha)) return [];
|
|
19864
|
+
visited.add(sha);
|
|
19865
|
+
const tree = rows(s, "trees").find((t) => t.sha === sha);
|
|
19866
|
+
if (!tree) return [];
|
|
19867
|
+
return (tree.entries ?? []).flatMap((e) => {
|
|
19868
|
+
if (e.type === "tree") return treeFiles(s, e.sha, prefix + e.path + "/", new Set(visited));
|
|
19869
|
+
const blob = rows(s, "blobs").find((b) => b.sha === e.sha);
|
|
19870
|
+
let content = blob?.content ?? "[Missing blob]";
|
|
19871
|
+
if (blob?.encoding === "base64") try {
|
|
19872
|
+
content = new TextDecoder().decode(Uint8Array.from(atob(content), (c) => c.charCodeAt(0)));
|
|
19873
|
+
} catch {
|
|
19874
|
+
content = "[Cannot decode blob]";
|
|
20275
19875
|
}
|
|
20276
|
-
|
|
20277
|
-
|
|
19876
|
+
return [{ path: prefix + e.path, content }];
|
|
19877
|
+
});
|
|
19878
|
+
}
|
|
19879
|
+
function pullDiff(s, p) {
|
|
19880
|
+
const filesAt2 = (sha) => treeFiles(s, rows(s, "commits").find((c) => c.sha === sha)?.commit?.tree);
|
|
19881
|
+
const before = new Map(filesAt2(p.base_sha).map((f) => [f.path, f.content])), after = new Map(filesAt2(p.head_sha).map((f) => [f.path, f.content]));
|
|
19882
|
+
const paths = [.../* @__PURE__ */ new Set([...before.keys(), ...after.keys()])].filter((path2) => before.get(path2) !== after.get(path2));
|
|
19883
|
+
return paths.map((path2) => `<details><summary>Changed file \xB7 ${h(path2)}</summary><div class="diff-grid"><div><h4>Base</h4><pre>${h(before.get(path2) ?? "[File absent]")}</pre></div><div><h4>Proposed</h4><pre>${h(after.get(path2) ?? "[File absent]")}</pre></div></div></details>`).join("");
|
|
19884
|
+
}
|
|
19885
|
+
function github(o, manual) {
|
|
19886
|
+
const s = o.state?.github ?? {};
|
|
19887
|
+
return `<h2>Repositories & production</h2>${rows(s, "repos").map((r) => {
|
|
19888
|
+
const commit = rows(s, "commits").find((c) => c.sha === r.production);
|
|
19889
|
+
return `<article class="record"><h3>${h(r.full_name)}</h3><p class="hint">Production ${mono(r.production)} \xB7 default branch ${h(r.default_branch)}</p>${commit ? `<p>${h(commit.commit.message)}</p>${treeFiles(s, commit.commit.tree).map((f) => `<details open><summary>${h(f.path)}</summary><pre>${h(f.content)}</pre></details>`).join("")}` : empty("No production commit materialized.")}<h3>Pull requests</h3>${rows(s, "pulls").filter((p) => p.repo_id === r.id).map((p) => ({ ...p, ...Object.fromEntries(Object.entries(rows(s, "issues").find((i) => i.repo_id === p.repo_id && i.number === p.number) ?? {}).filter(([key]) => ["title", "body", "state"].includes(key))) })).map((p) => `<article class="record"><div class="row">${badge(p.merged ? "Merged" : p.state)}<strong>#${h(p.number)} ${h(p.title)}</strong></div><p>${h(p.body)}</p>${manual && p.state === "open" && !p.merged && !p.draft ? `<button data-action="merge" data-value="${h(r.full_name)}" data-number="${h(p.number)}">Merge pull request</button>` : ""}${pullDiff(s, p)}${details("Pull request data", p)}</article>`).join("") || empty("No pull requests.")}${details("Branches", rows(s, "refs").filter((b) => b.repo_id === r.id))}</article>`;
|
|
19890
|
+
}).join("")}<h3>Commit history</h3>${rows(s, "commits").map((c) => `<details><summary>${h(c.commit?.message)} \xB7 ${h(c.sha?.slice(0, 10))}</summary>${code(c)}${treeFiles(s, c.commit?.tree).map((f) => `<h4>${h(f.path)}</h4><pre>${h(f.content)}</pre>`).join("")}</details>`).join("")}<h3>Deployments</h3>${table(rows(s, "deployments"))}`;
|
|
19891
|
+
}
|
|
19892
|
+
function seedData(scene, selected) {
|
|
19893
|
+
const s = scene.seed?.[selected] ?? {}, label2 = (ref2) => named(scene, ref2);
|
|
19894
|
+
let body2 = "";
|
|
19895
|
+
if (selected === "slack") body2 = (s.channels ?? []).map((c) => `<section class="seed-channel"><h3># ${h(c.name)}</h3><p class="seed-people">${h((c.members ?? []).map(label2).join(" \xB7 "))}</p>${(s.messages ?? []).filter((m) => label2(m.channel) === c.name).map((m) => `<article class="message"><span class="avatar">${h(label2(m.user).slice(0, 1))}</span><div><div class="row"><strong>${h(label2(m.user))}</strong><span class="small muted">${h(m.at)}${m.thread_of ? " \xB7 Thread reply" : ""}</span></div><p class="message-text">${h(m.text)}</p></div></article>`).join("") || empty("No messages seeded")}</section>`).join("");
|
|
19896
|
+
if (selected === "github") body2 = `<div class="seed-cards">${(s.repos ?? []).map((r) => `<article class="record"><h3>${h(r.name)}</h3><p class="small muted">Production</p><p>${h(label2(r.production) || "Not set")}</p><h4>Pull requests</h4>${(r.pulls ?? []).map((p) => `<p>${badge(p.merged ? "Merged" : p.draft ? "Draft" : "Open")} ${h(p.title)}</p>`).join("") || '<p class="muted">None seeded</p>'}<details><summary>Files & history</summary>${(r.commits ?? []).map((c) => `<h4>${h(c.message)}</h4>${Object.entries(c.files ?? {}).map(([path2, value]) => `<details><summary>${h(path2)}</summary><pre>${h(value)}</pre></details>`).join("")}`).join("")}</details></article>`).join("")}</div>`;
|
|
19897
|
+
if (selected === "datadog") body2 = `<div class="seed-cards">${[...s.monitors ?? [], ...scene.world_rules?.monitors ?? []].map((m) => `<article class="record"><span class="small muted">Monitor</span><h3>${h(m.name)}</h3><p>${h(m.message)}</p>${details("Query", m.query)}</article>`).join("")}${(s.events ?? []).map((e) => `<article class="record"><span class="small muted">Event \xB7 ${h(e.at)}</span><h3>${h(e.title)}</h3><p>${h(e.text)}</p></article>`).join("")}${(s.logs ?? []).map((l) => `<article class="record"><span class="small muted">${h(l.service)} \xB7 ${h(l.status)} \xB7 ${h(l.at)}</span><p>${h(l.message)}</p></article>`).join("")}</div>${(scene.world_rules?.metrics ?? []).length ? `<h3>Metric behavior</h3><div class="seed-cards">${scene.world_rules.metrics.map((m) => `<article class="record"><h3>${h(m.name)}</h3><p>Baseline: ${h(m.baseline)}</p>${(m.effects ?? []).map((e) => `<p>${h(e.value)} while \u201C${h(label2(e.while))}\u201D is active</p>`).join("")}${details("Exact metric definition", m)}</article>`).join("")}</div>` : ""}`;
|
|
19898
|
+
if (selected === "pagerduty") body2 = `<div class="seed-cards">${(s.services ?? []).map((v) => `<article class="record"><span class="small muted">Service</span><h3>${h(v.name)}</h3><p>${h(label2(v.escalation_policy))}</p>${(s.escalation_policies ?? []).filter((p) => label2(v.escalation_policy) === label2("$" + p.ref)).map((p) => `<ol>${(p.levels ?? []).map((l) => `<li>${h((l.targets ?? []).map(label2).join(", "))}${l.after ? ` \xB7 escalate after ${h(l.after)}` : ""}</li>`).join("")}</ol>`).join("")}${v.slack_channel ? `<p class="small muted">Slack \xB7 #${h(label2(v.slack_channel))}</p>` : ""}</article>`).join("")}${(s.incidents ?? []).map((i) => `<article class="record">${badge(i.status)}<h3>${h(i.title)}</h3><p>${h(label2(i.service))}</p></article>`).join("")}</div>`;
|
|
19899
|
+
return `<h2>${h(toolName(selected))}</h2>${body2 || empty("No data seeded")}${details("Full starting data", s)}${selected === "datadog" ? details("Generated telemetry definitions", { metrics: scene.world_rules?.metrics, logs: scene.world_rules?.logs, monitors: scene.world_rules?.monitors }) : ""}`;
|
|
19900
|
+
}
|
|
19901
|
+
var countLabel = (count3, noun, plural2 = noun + "s") => `${count3} ${count3 === 1 ? noun : plural2}`;
|
|
19902
|
+
function agentLabel(agent, all) {
|
|
19903
|
+
const twins = all.filter((other) => other.name === agent.name);
|
|
19904
|
+
if (twins.length < 2) return String(agent.name);
|
|
19905
|
+
const folder = (a) => String(a.cwd ?? "").split("/").filter(Boolean).pop() ?? "";
|
|
19906
|
+
const distinct = new Set(twins.map(folder)).size === twins.length && folder(agent);
|
|
19907
|
+
return `${agent.name} \xB7 ${distinct ? folder(agent) : String(agent.id).slice(-4)}`;
|
|
19908
|
+
}
|
|
19909
|
+
function connectDefaults(detected) {
|
|
19910
|
+
const started = Array.isArray(detected?.evidence) && detected.evidence.includes("package.json") && /^(?:npm|pnpm) start$/.test(String(detected?.suggestions?.command ?? ""));
|
|
19911
|
+
return started ? { taskInputKind: "command", state: "stateless" } : {};
|
|
19912
|
+
}
|
|
19913
|
+
var toolNames = { slack: "Slack", "open-meteo": "Open-Meteo", datadog: "Datadog", pagerduty: "PagerDuty", github: "GitHub", "linkedin-ads": "LinkedIn Ads", salesforce: "Salesforce", gong: "Gong", "google-ads": "Google Ads", "chatgpt-ads": "ChatGPT Ads", hubspot: "HubSpot", ga4: "Google Analytics", gmail: "Gmail", "google-drive": "Google Drive", "amazon-s3": "Amazon S3", linear: "Linear", okta: "Okta", stripe: "Stripe", clerk: "Clerk", supabase: "Supabase", "better-stack": "Better Stack", notion: "Notion", attio: "Attio", dropbox: "Dropbox", resend: "Resend", "microsoft-word": "Microsoft Word", outlook: "Outlook", shopify: "Shopify", lob: "Lob", paypal: "PayPal", jira: "Jira", kalshi: "Kalshi", intercom: "Intercom", zendesk: "Zendesk", "google-calendar": "Google Calendar", twilio: "Twilio", asana: "Asana", discord: "Discord", sentry: "Sentry", airtable: "Airtable", netsuite: "NetSuite", quickbooks: "QuickBooks Online", "carrier-portal": "Carrier portal" };
|
|
19914
|
+
var toolName = (name) => toolNames[name] ?? name;
|
|
19915
|
+
var toolLinks = (names) => names.map((name) => `<a class="tool-chip" href="/tools/${encodeURIComponent(name)}" data-nav>${h(toolName(name))}</a>`).join("");
|
|
19916
|
+
var toolDescription = (name) => ({ slack: "Channels, messages and threads", datadog: "Monitors, metrics and logs", pagerduty: "Incidents, on-call and escalation", github: "Repositories, pull requests and deployments" })[name] ?? "API capabilities";
|
|
19917
|
+
function sandboxOverview(s, o) {
|
|
19918
|
+
const scene = { ...s.scene, twins: s.tools };
|
|
19919
|
+
return `<section class="panel sandbox-map"><div class="row between"><h2>Tools & connections</h2>${s.setupOpen ? button("Manage tools", "configure-tools") : ""}</div>${s.tools?.length ? routes(scene, o) : empty("No tools added")}</section><section class="panel setup-panel"><div><span class="section-label">Scenario</span><h2>${s.key ? h(title(s.scene)) : "No scenario loaded"}</h2>${s.key ? `<a data-nav href="/scenarios/${encodeURIComponent(s.key)}">View scenario \u2192</a>` : ""}</div>${!s.key && s.setupOpen ? button("Load scenario", "load-scenario", "", "primary") : s.key ? `<div class="row"><span class="muted small">Paused \xB7 ${clock(o.simMs)}</span>${button("Next 30 seconds \u2192", "advance", "30000", "primary")}</div>` : ""}</section>${s.key ? `<div class="overview-footer">${button("Inspect activity & data", "inspect")}</div>` : ""}`;
|
|
19920
|
+
}
|
|
19921
|
+
function toolDataPanel(view2, selected = "") {
|
|
19922
|
+
const tables = view2.tables ?? [], active = tables.find((t) => t.title === selected) ?? tables[0];
|
|
19923
|
+
const calls = view2.conversations ?? [];
|
|
19924
|
+
return `${tables.length > 1 ? `<div class="resource-tabs" aria-label="Records">${tables.map((t) => button(t.title, "resource", t.title, t === active ? "active" : "")).join("")}</div>` : ""}${active ? `<div class="row between"><h2>${h(active.title)}</h2><span class="small muted">${countLabel(active.total, "record")}</span></div>${table(active.rows, active.columns)}${active.rows.length < active.total ? `<p class="hint">Showing ${active.rows.length} of ${active.total} records.</p>` : ""}` : empty("No records yet.")}${calls.length && (!active || active.title === "Calls") ? `<div class="transcript-list">${calls.map((c, i) => `<div class="relationship-row"><span>${h(c.title)}</span>${button(c.messages.length ? "Read transcript" : c.status === "processing" ? "Processing" : "Unavailable", "conversation", String(i), "link")}</div>`).join("")}</div>` : ""}`;
|
|
19925
|
+
}
|
|
19926
|
+
function sandboxActivity(o) {
|
|
19927
|
+
const rows3 = (o.trace ?? []).filter((t) => t.source === "agent" || t.source === "manual");
|
|
19928
|
+
return `<div class="row between"><h2>Activity</h2><span class="small muted">Oldest first \u2193</span></div>${rows3.length ? `<div class="flat-activity">${rows3.slice(-200).map((t) => `<div class="activity-row"><time>${h(time3(t.tSim))}</time><strong>${h(toolName(t.service))}</strong><span>${h(t.method ?? "")} ${h(t.path)}</span>${badge(t.gap ? "Unsupported" : t.status >= 400 ? "Rejected" : "Completed", t.gap || t.status >= 400 ? "warn" : "")}</div>`).join("")}</div>` : empty("No tool requests yet. Connect your agent to start.")}`;
|
|
19929
|
+
}
|
|
19930
|
+
|
|
19931
|
+
// frontend/src/tool-logos.ts
|
|
19932
|
+
var logos = {
|
|
19933
|
+
"supabase": '<svg width="109" height="113" viewBox="0 0 109 113" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z" fill="url(#SVGsupabase0)"/><path d="M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z" fill="url(#SVGsupabase1)" fill-opacity="0.2"/><path d="M45.317 2.07103C48.1765 -1.53037 53.9745 0.442937 54.0434 5.041L54.4849 72.2922H9.83113C1.64038 72.2922 -2.92775 62.8321 2.1655 56.4175L45.317 2.07103Z" fill="#3ECF8E"/><defs><linearGradient id="SVGsupabase0" x1="53.9738" y1="54.974" x2="94.1635" y2="71.8295" gradientUnits="userSpaceOnUse"><stop stop-color="#249361"/><stop offset="1" stop-color="#3ECF8E"/></linearGradient><linearGradient id="SVGsupabase1" x1="36.1558" y1="30.578" x2="54.4844" y2="65.0806" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-opacity="0"/></linearGradient></defs></svg>',
|
|
19934
|
+
// Original neutral ledger glyph.
|
|
19935
|
+
"quickbooks": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none" stroke="#4b5563" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="3" width="21" height="26" rx="2"/><path d="M11 3v26M3 9h6M3 16h6M3 23h6M15 10h8M15 16h8M15 22h8"/></svg>',
|
|
19936
|
+
"slack": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#e01e5a" d="M53.841 161.32c0 14.832-11.987 26.82-26.819 26.82S.203 176.152.203 161.32c0-14.831 11.987-26.818 26.82-26.818H53.84zm13.41 0c0-14.831 11.987-26.818 26.819-26.818s26.819 11.987 26.819 26.819v67.047c0 14.832-11.987 26.82-26.82 26.82c-14.83 0-26.818-11.988-26.818-26.82z"/><path fill="#36c5f0" d="M94.07 53.638c-14.832 0-26.82-11.987-26.82-26.819S79.239 0 94.07 0s26.819 11.987 26.819 26.819v26.82zm0 13.613c14.832 0 26.819 11.987 26.819 26.819s-11.987 26.819-26.82 26.819H26.82C11.987 120.889 0 108.902 0 94.069c0-14.83 11.987-26.818 26.819-26.818z"/><path fill="#2eb67d" d="M201.55 94.07c0-14.832 11.987-26.82 26.818-26.82s26.82 11.988 26.82 26.82s-11.988 26.819-26.82 26.819H201.55zm-13.41 0c0 14.832-11.988 26.819-26.82 26.819c-14.831 0-26.818-11.987-26.818-26.82V26.82C134.502 11.987 146.489 0 161.32 0s26.819 11.987 26.819 26.819z"/><path fill="#ecb22e" d="M161.32 201.55c14.832 0 26.82 11.987 26.82 26.818s-11.988 26.82-26.82 26.82c-14.831 0-26.818-11.988-26.818-26.82V201.55zm0-13.41c-14.831 0-26.818-11.988-26.818-26.82c0-14.831 11.987-26.818 26.819-26.818h67.25c14.832 0 26.82 11.987 26.82 26.819s-11.988 26.819-26.82 26.819z"/></svg>',
|
|
19937
|
+
"github": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 250"><path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403"/></svg>',
|
|
19938
|
+
"datadog": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 275"><path fill="#632ca6" d="m214.434 194.558l-22.796-15.039l-19.016 31.766l-22.118-6.465l-19.474 29.723l.997 9.355l105.89-19.513l-6.15-66.163zm-98.745-28.523l16.99-2.336c2.748 1.235 4.66 1.706 7.956 2.544c5.136 1.334 11.074 2.617 19.872-1.814c2.047-1.015 6.314-4.915 8.038-7.14l69.605-12.624l7.1 85.94l-119.252 21.49zm129.293-30.967l-6.871 1.309L224.91 0L0 26.078l27.71 224.856l26.33-3.822c-2.104-3.002-5.378-6.634-10.967-11.282c-7.752-6.44-5.014-17.384-.436-24.294c6.051-11.674 37.23-26.51 35.463-45.168c-.634-6.785-1.71-15.613-8.011-21.669c-.238 2.514.19 4.928.19 4.928s-2.587-3.3-3.874-7.795c-1.279-1.728-2.285-2.277-3.646-4.583c-.971 2.665-.842 5.757-.842 5.757s-2.116-4.997-2.457-9.216c-1.253 1.887-1.568 5.472-1.568 5.472s-2.747-7.878-2.12-12.124c-1.253-3.692-4.972-11.022-3.922-27.676c6.862 4.807 21.975 3.667 27.861-5.01c1.953-2.876 3.296-10.72-.976-26.182c-2.742-9.912-9.532-24.674-12.18-30.276l-.315.23c1.396 4.512 4.272 13.967 5.378 18.558c3.343 13.907 4.237 18.753 2.669 25.167c-1.335 5.576-4.535 9.22-12.646 13.298c-8.111 4.09-18.879-5.865-19.557-6.414c-7.882-6.28-13.98-16.52-14.658-21.5c-.709-5.446 3.14-8.716 5.079-13.168c-2.777.79-5.87 2.202-5.87 2.202s3.693-3.822 8.245-7.126c1.888-1.248 2.993-2.043 4.98-3.693c-2.876-.047-5.213.035-5.213.035s4.798-2.592 9.77-4.48c-3.637-.159-7.122-.025-7.122-.025S48 36.288 56.454 32.777c5.813-2.384 11.492-1.68 14.684 2.937c4.19 6.046 8.59 9.329 17.915 11.363c5.727-2.54 7.464-3.84 14.66-5.805c6.33-6.966 11.302-7.865 11.302-7.865s-2.466 2.264-3.127 5.818c3.59-2.829 7.524-5.191 7.524-5.191s-1.525 1.878-2.946 4.867l.328.493c4.19-2.514 9.113-4.492 9.113-4.492s-1.408 1.78-3.057 4.081c3.161-.026 9.566.134 12.054.415c14.68.324 17.725-15.674 23.357-17.682c7.053-2.518 10.206-4.043 22.226 7.765c10.31 10.141 18.368 28.281 14.365 32.345c-3.356 3.374-9.973-1.317-17.307-10.456c-3.874-4.841-6.806-10.564-8.18-17.837c-1.157-6.138-5.666-9.696-5.666-9.696s2.613 5.83 2.613 10.965c0 2.808.35 13.299 4.85 19.19c-.445.86-.652 4.258-1.145 4.91c-5.234-6.327-16.477-10.853-18.312-12.188c6.206 5.084 20.468 16.762 25.944 27.961c5.183 10.586 2.13 20.291 4.75 22.8c.748.717 11.144 13.674 13.144 20.183c3.49 11.342.207 23.267-4.358 30.66l-12.754 1.987c-1.866-.518-3.123-.777-4.794-1.744c.924-1.633 2.755-5.701 2.772-6.544l-.72-1.26c-3.97 5.622-10.617 11.082-16.14 14.217c-7.23 4.099-15.562 3.464-20.987 1.788c-15.393-4.746-29.952-15.15-33.463-17.885c0 0-.108 2.181.552 2.674c3.879 4.38 12.772 12.296 21.37 17.82l-18.325 2.017l8.664 67.45c-3.84.548-4.44.82-8.642 1.416c-3.706-13.09-10.793-21.638-18.542-26.618c-6.832-4.392-16.256-5.381-25.274-3.593l-.58.674c6.272-.652 13.675.255 21.28 5.07c7.464 4.721 13.48 16.914 15.696 24.251c2.837 9.381 4.798 19.419-2.838 30.056c-5.429 7.563-21.28 11.74-34.09 2.7c3.421 5.502 8.042 9.998 14.27 10.845c9.243 1.257 18.015-.35 24.053-6.548c5.152-5.3 7.89-16.382 7.17-28.052l8.158-1.183l2.946 20.947L256 242.542zm-82.156-56.885c-.376.859-.972 1.425-.082 4.223l.052.16l.143.363l.371.838c1.602 3.278 3.36 6.366 6.306 7.947q1.14-.196 2.367-.255c2.764-.12 4.509.315 5.61.911c.1-.552.12-1.356.06-2.543c-.216-4.151.821-11.208-7.156-14.923c-3.01-1.395-7.235-.967-8.643.778c.255.034.484.086.666.147c2.133.738.69 1.472.306 2.354m22.364 38.724c-1.045-.58-5.934-.35-9.372.06c-6.548.773-13.618 3.04-15.164 4.25c-2.816 2.177-1.538 5.969.544 7.528c5.835 4.358 10.949 7.282 16.343 6.57c3.313-.437 6.237-5.685 8.306-10.444c1.416-3.278 1.416-6.815-.657-7.964m-57.965-33.59c1.844-1.753-9.195-4.055-17.764 1.789c-6.319 4.31-6.522 13.553-.471 18.792a15 15 0 0 0 1.568 1.188a51 51 0 0 1 6.098-2.423c3.913-1.27 7.17-1.927 9.843-2.277c1.279-1.43 2.769-3.947 2.397-8.508c-.51-6.19-5.191-5.209-1.671-8.56"/></svg>',
|
|
19939
|
+
"pagerduty": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 372"><path fill="#06ac38" d="M54.554 272.557v98.919H0v-98.919zM109.047.001c46.745.051 67.005 2.703 95.795 18.254C236.471 35.237 256 68.988 256 111.018c0 39.058-15.92 72.81-46.488 92.975c-28.02 18.68-59.86 21.228-102.315 21.228H0V0Zm8.739 47.753l-1.673.007l-61.56.425v129.91h65.168c45.639 0 80.451-18.255 80.451-66.44c0-44.79-28.02-64.32-84.06-63.895Z"/></svg>',
|
|
19940
|
+
"linkedin-ads": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#0a66c2" d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4c-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.91 39.91 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186zM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009s9.851-22.014 22.008-22.016c12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97zM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453"/></svg>',
|
|
19941
|
+
"salesforce": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 180"><path fill="#00a1e0" d="M106.553 19.651c8.248-8.594 19.731-13.924 32.43-13.924c16.883 0 31.612 9.414 39.455 23.389a54.5 54.5 0 0 1 22.3-4.74c30.449 0 55.134 24.9 55.134 55.615c0 30.719-24.685 55.62-55.134 55.62a54.7 54.7 0 0 1-10.86-1.083c-6.908 12.321-20.07 20.645-35.178 20.645a40.1 40.1 0 0 1-17.632-4.058c-7.002 16.47-23.316 28.019-42.33 28.019c-19.8 0-36.674-12.529-43.152-30.1c-2.83.602-5.763.915-8.772.915c-23.574 0-42.686-19.308-42.686-43.13a43.2 43.2 0 0 1 21.345-37.36a49.4 49.4 0 0 1-4.088-19.727C17.385 22.336 39.626.128 67.06.128c16.106 0 30.42 7.658 39.494 19.523"/><path fill="#fff" d="M37.17 92.956c-.16.419.058.506.11.58c.48.349.968.6 1.46.88c2.609 1.385 5.071 1.79 7.647 1.79c5.246 0 8.503-2.79 8.503-7.283v-.087c0-4.153-3.676-5.662-7.126-6.75l-.448-.147c-2.601-.845-4.845-1.573-4.845-3.286v-.09c0-1.465 1.311-2.544 3.344-2.544c2.259 0 4.94.75 6.667 1.705c0 0 .506.328.692-.164c.102-.262.976-2.615 1.068-2.87c.098-.277-.077-.481-.255-.59c-1.971-1.2-4.696-2.019-7.516-2.019l-.525.004c-4.801 0-8.153 2.9-8.153 7.057v.087c0 4.383 3.698 5.803 7.162 6.794l.558.172c2.524.775 4.7 1.442 4.7 3.22v.087c0 1.625-1.414 2.835-3.695 2.835c-.885 0-3.708-.018-6.758-1.946c-.368-.215-.583-.371-.867-.542c-.15-.095-.524-.26-.688.236zm76.8 0c-.16.419.058.506.11.58c.48.349.968.6 1.46.88c2.608 1.385 5.071 1.79 7.647 1.79c5.246 0 8.503-2.79 8.503-7.283v-.087c0-4.153-3.676-5.662-7.126-6.75l-.448-.147c-2.601-.845-4.846-1.573-4.846-3.286v-.09c0-1.465 1.312-2.544 3.345-2.544c2.259 0 4.94.75 6.667 1.705c0 0 .506.328.692-.164c.102-.262.976-2.615 1.067-2.87c.099-.277-.076-.481-.255-.59c-1.97-1.2-4.696-2.019-7.515-2.019l-.525.004c-4.802 0-8.153 2.9-8.153 7.057v.087c0 4.383 3.697 5.803 7.162 6.794l.557.172c2.525.775 4.704 1.442 4.704 3.22v.087c0 1.625-1.418 2.835-3.698 2.835a12.4 12.4 0 0 1-6.758-1.946c-.368-.215-.587-.364-.863-.542c-.095-.062-.54-.234-.693.236zm52.429-8.799c0 2.54-.474 4.54-1.406 5.953c-.922 1.4-2.317 2.08-4.263 2.08c-1.949 0-3.337-.677-4.244-2.08c-.918-1.41-1.384-3.413-1.384-5.953c0-2.535.466-4.532 1.384-5.93c.907-1.385 2.295-2.059 4.244-2.059c1.946 0 3.34.674 4.266 2.058c.93 1.4 1.403 3.396 1.403 5.931m4.379-4.707c-.43-1.453-1.1-2.735-1.993-3.803c-.893-1.071-2.022-1.93-3.363-2.557c-1.337-.623-2.918-.94-4.692-.94c-1.778 0-3.359.317-4.696.94c-1.34.626-2.47 1.486-3.366 2.557c-.889 1.071-1.56 2.354-1.993 3.803c-.426 1.447-.64 3.028-.64 4.707c0 1.68.214 3.265.64 4.707c.434 1.45 1.1 2.732 1.997 3.804a9.4 9.4 0 0 0 3.362 2.535c1.34.609 2.918.918 4.696.918c1.774 0 3.352-.31 4.692-.918a9.4 9.4 0 0 0 3.363-2.535c.893-1.068 1.563-2.35 1.993-3.804c.43-1.446.645-3.03.645-4.707c0-1.675-.215-3.26-.645-4.707m35.959 12.063c-.145-.426-.557-.266-.557-.266c-.637.244-1.315.47-2.036.583a16 16 0 0 1-2.401.171c-2.12 0-3.804-.63-5.01-1.876c-1.209-1.246-1.887-3.26-1.88-5.986c.008-2.48.606-4.346 1.68-5.767c1.068-1.413 2.692-2.138 4.86-2.138c1.807 0 3.184.207 4.627.663c0 0 .346.15.51-.303c.382-1.063.667-1.825 1.075-2.994c.116-.332-.168-.474-.27-.514c-.568-.222-1.909-.583-2.922-.736c-.947-.145-2.054-.222-3.286-.222c-1.84 0-3.479.313-4.882.94c-1.399.623-2.586 1.483-3.526 2.554s-1.654 2.353-2.131 3.803c-.474 1.446-.714 3.035-.714 4.714c0 3.632.98 6.569 2.914 8.718c1.938 2.157 4.85 3.253 8.645 3.253c2.244 0 4.547-.455 6.2-1.107c0 0 .318-.153.18-.521zm7.663-9.788c.207-1.41.597-2.583 1.198-3.497c.907-1.388 2.291-2.15 4.237-2.15c1.945 0 3.231.765 4.153 2.15c.612.914.878 2.138.983 3.497zm14.743-3.1c-.372-1.403-1.294-2.82-1.898-3.468c-.955-1.028-1.887-1.746-2.813-2.146a10.8 10.8 0 0 0-4.248-.86c-1.85 0-3.53.31-4.892.95c-1.366.642-2.514 1.516-3.414 2.606c-.9 1.085-1.577 2.379-2.007 3.847c-.434 1.46-.652 3.053-.652 4.732c0 1.709.226 3.3.674 4.732c.451 1.443 1.173 2.715 2.15 3.767c.972 1.06 2.225 1.891 3.726 2.47c1.49.576 3.3.875 5.38.871c4.281-.015 6.537-.969 7.465-1.483c.164-.09.321-.251.124-.71l-.969-2.714c-.145-.405-.557-.255-.557-.255c-1.06.393-2.568 1.1-6.084 1.093c-2.299-.004-4.004-.682-5.071-1.742c-1.097-1.085-1.632-2.68-1.727-4.932l14.824.014s.39-.007.43-.386c.014-.16.51-3.046-.441-6.386m-133.46 3.1c.211-1.41.597-2.583 1.199-3.497c.907-1.388 2.291-2.15 4.236-2.15c1.946 0 3.232.765 4.157 2.15c.609.914.875 2.138.98 3.497zm14.74-3.1c-.372-1.403-1.29-2.82-1.895-3.468c-.954-1.028-1.887-1.746-2.812-2.146a10.8 10.8 0 0 0-4.248-.86c-1.847 0-3.53.31-4.892.95c-1.367.642-2.514 1.516-3.414 2.606c-.9 1.085-1.577 2.379-2.007 3.847c-.43 1.46-.652 3.053-.652 4.732c0 1.709.225 3.3.674 4.732c.451 1.443 1.173 2.715 2.149 3.767c.973 1.06 2.226 1.891 3.727 2.47c1.49.576 3.3.875 5.38.871c4.281-.015 6.536-.969 7.465-1.483c.164-.09.32-.251.124-.71l-.965-2.714c-.15-.405-.561-.255-.561-.255c-1.06.393-2.565 1.1-6.088 1.093c-2.295-.004-4-.682-5.067-1.742c-1.097-1.085-1.633-2.68-1.727-4.932l14.823.014s.39-.007.43-.386c.015-.16.51-3.046-.444-6.386M63.642 91.431c-.58-.462-.66-.579-.856-.878c-.292-.455-.441-1.104-.441-1.927c0-1.304.43-2.24 1.322-2.87c-.01.003 1.275-1.112 4.3-1.072c2.123.03 4.021.343 4.021.343v6.74h.004s-1.884.404-4.004.531c-3.017.182-4.357-.87-4.346-.867m5.898-10.415c-.601-.044-1.38-.07-2.313-.07c-1.272 0-2.5.16-3.65.47a9.5 9.5 0 0 0-3.097 1.436a7.15 7.15 0 0 0-2.15 2.444c-.524.977-.79 2.128-.79 3.417c0 1.312.225 2.452.677 3.385a6.1 6.1 0 0 0 1.935 2.317c.823.601 1.84 1.042 3.02 1.308c1.162.266 2.48.4 3.923.4c1.52 0 3.035-.123 4.503-.375a94 94 0 0 0 3.734-.721c.492-.117 1.039-.266 1.039-.266c.368-.091.338-.485.338-.485l-.007-13.555c0-2.973-.794-5.177-2.357-6.543c-1.555-1.363-3.847-2.051-6.809-2.051c-1.11 0-2.9.153-3.97.368c0 0-3.24.626-4.573 1.668c0 0-.291.182-.131.59l1.05 2.82c.13.364.484.24.484.24s.113-.043.244-.12c2.852-1.552 6.459-1.504 6.459-1.504c1.603 0 2.834.32 3.665.958c.809.619 1.22 1.555 1.22 3.53v.626c-1.275-.182-2.444-.287-2.444-.287m119.56-7.639a.4.4 0 0 0-.223-.532c-.251-.098-1.512-.364-2.485-.426c-1.861-.113-2.896.2-3.821.616c-.918.415-1.938 1.085-2.507 1.847v-1.804c0-.251-.178-.451-.426-.451h-3.8c-.247 0-.426.2-.426.451v22.11c0 .248.204.452.452.452h3.894a.45.45 0 0 0 .448-.452V84.142c0-1.482.164-2.962.492-3.89c.32-.919.758-1.654 1.297-2.183a4.55 4.55 0 0 1 1.833-1.1c.688-.211 1.45-.28 1.989-.28c.776 0 1.628.2 1.628.2c.284.033.445-.142.54-.4c.254-.678.976-2.708 1.114-3.112"/><path fill="#fff" d="M152.544 63.13a13 13 0 0 0-1.465-.35a11.6 11.6 0 0 0-2.014-.152c-2.682 0-4.795.757-6.277 2.251c-1.476 1.486-2.478 3.749-2.98 6.725l-.183 1.002h-3.366s-.408-.015-.495.43l-.55 3.086c-.04.291.087.477.48.477h3.276l-3.323 18.55c-.258 1.494-.557 2.722-.889 3.654c-.324.918-.64 1.607-1.034 2.11c-.38.48-.736.838-1.356 1.045c-.51.172-1.1.252-1.745.252c-.357 0-.834-.059-1.187-.131a3.5 3.5 0 0 1-.802-.26s-.382-.145-.535.238c-.12.317-.995 2.717-1.1 3.013c-.102.295.043.524.229.593c.437.153.761.255 1.355.397c.824.194 1.52.204 2.172.204c1.362 0 2.608-.193 3.639-.564c1.035-.375 1.938-1.028 2.74-1.91c.863-.954 1.406-1.952 1.923-3.318c.514-1.348.955-3.024 1.304-4.976l3.341-18.897h4.882s.411.014.495-.434l.554-3.082c.036-.295-.087-.477-.485-.477h-4.74c.026-.106.241-1.774.784-3.344c.233-.667.67-1.21 1.038-1.581a3.1 3.1 0 0 1 1.243-.773c.47-.153 1.005-.226 1.592-.226c.444 0 .885.051 1.216.12c.46.099.638.15.758.186c.485.146.55.004.645-.23l1.133-3.11c.117-.335-.171-.478-.273-.518M86.322 95.19c0 .247-.179.448-.426.448h-3.931c-.248 0-.423-.2-.423-.448V63.553c0-.247.175-.448.423-.448h3.93c.248 0 .427.2.427.448z"/></svg>',
|
|
19942
|
+
"ga4": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 284"><path fill="#f9ab00" d="M256.003 247.933a35.224 35.224 0 0 1-39.376 35.161c-18.044-2.67-31.266-18.371-30.826-36.606V36.845C185.365 18.591 198.62 2.881 216.687.24a35.22 35.22 0 0 1 39.316 35.16z"/><path fill="#e37400" d="M35.101 213.193c19.386 0 35.101 15.716 35.101 35.101c0 19.386-15.715 35.101-35.101 35.101S0 267.68 0 248.295s15.715-35.102 35.101-35.102m92.358-106.387c-19.477 1.068-34.59 17.406-34.137 36.908v94.285c0 25.588 11.259 41.122 27.755 44.433a35.16 35.16 0 0 0 42.146-34.56V142.089a35.22 35.22 0 0 0-35.764-35.282"/></svg>',
|
|
19943
|
+
"hubspot": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#FF7A59" d="M18.164 7.93V5.084a2.2 2.2 0 0 0 1.267-1.978v-.067A2.2 2.2 0 0 0 17.238.845h-.067a2.2 2.2 0 0 0-2.193 2.193v.067a2.2 2.2 0 0 0 1.252 1.973l.013.006v2.852a6.2 6.2 0 0 0-2.969 1.31l.012-.01l-7.828-6.095A2.497 2.497 0 1 0 4.3 4.656l-.012.006l7.697 5.991a6.2 6.2 0 0 0-1.038 3.446a6.2 6.2 0 0 0 1.147 3.607l-.013-.02l-2.342 2.343a2 2 0 0 0-.58-.095h-.002a2.033 2.033 0 1 0 2.033 2.033a2 2 0 0 0-.1-.595l.005.014l2.317-2.317a6.247 6.247 0 1 0 4.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 1 1 3.215-3.207v.002a3.206 3.206 0 0 1-3.207 3.207z"/></svg>',
|
|
19944
|
+
"google-ads": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 230"><path fill="#fbbc04" d="M5.888 166.405L90.88 20.9c10.796 6.356 65.236 36.484 74.028 42.214L79.916 208.627c-9.295 12.28-85.804-23.587-74.028-42.23z"/><path fill="#4285f4" d="M250.084 166.402L165.092 20.906C153.21 1.132 127.62-6.054 106.601 5.625S79.182 42.462 91.064 63.119l84.992 145.514c11.882 19.765 37.473 26.95 58.492 15.272c20.1-11.68 27.418-37.73 15.536-57.486z"/><ellipse cx="42.664" cy="187.924" fill="#34a853" rx="42.664" ry="41.604"/></svg>',
|
|
19945
|
+
"chatgpt-ads": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 260"><path d="M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z"/></svg>',
|
|
19946
|
+
"open-meteo": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="25" cy="24" r="11" fill="#f2a93b"/><g stroke="#f2a93b" stroke-width="3.5" stroke-linecap="round"><path d="M25 5v5M25 38v4M6 24h5M10.9 9.9l3.5 3.5M39.1 9.9l-3.5 3.5M10.9 38.1l3.5-3.5"/></g><path d="M24 55h25a11 11 0 0 0 1.4-21.9A15 15 0 0 0 22.3 38 8.5 8.5 0 0 0 24 55z" fill="#5b8fd6"/></svg>',
|
|
19947
|
+
"gong": '<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="512" height="512" rx="85.3333" fill="#8039DF"/>\n<rect x="53.4446" y="53.4446" width="21.3333" height="21.3333" fill="#3E0075"/>\n<rect x="437.333" y="53.3333" width="21.3333" height="21.3333" fill="#3E0075"/>\n<rect x="437.333" y="437.333" width="21.3333" height="21.3333" fill="#3E0075"/>\n<rect x="53.3333" y="437.333" width="21.3333" height="21.3333" fill="#3E0075"/>\n<path d="M427.2 229.814H328.146C322.677 229.814 318.423 235.887 320.246 240.745L343.946 302.075C345.162 304.504 342.731 307.54 339.693 307.54L309.308 305.719C308.093 305.719 306.877 306.326 305.662 307.54L282.57 340.938C281.354 342.76 278.924 343.367 276.493 342.153L241.247 318.471C240.031 317.256 238.208 317.256 236.385 318.471L187.77 351.261C184.732 353.69 180.478 350.654 181.693 347.011L195.67 298.432C196.278 296.61 195.062 294.181 193.239 293.574L167.716 283.251C165.285 282.037 164.07 279 165.893 277.179L188.378 249.246C189.593 248.031 189.593 245.602 188.378 244.388L169.539 217.062C167.716 214.634 169.539 210.99 172.578 210.99L202.355 208.561C204.785 208.561 206.001 206.74 206.001 204.311L203.57 163.019C203.57 159.982 206.608 158.161 209.039 158.768L245.501 173.949C247.324 174.556 249.147 173.949 250.362 172.734L275.885 144.802C277.708 142.373 281.354 142.98 282.57 146.016L297.762 184.879C299.585 189.737 305.662 191.559 309.916 188.522L369.469 144.194C376.154 139.337 371.9 128.406 363.392 129.621L325.108 134.479C323.285 134.479 321.462 133.871 320.854 132.05L300.193 79.2203C297.762 73.7552 291.077 72.5408 286.823 76.7914L241.854 125.37C240.639 126.585 238.816 127.192 236.993 126.585L178.047 101.688C172.578 99.2591 167.109 102.902 166.501 108.975L164.07 169.698C164.07 172.127 162.247 173.342 160.424 173.342L106.339 176.985C100.263 177.592 96.6164 184.272 100.263 189.737L136.116 242.566C137.332 243.781 137.332 246.21 136.116 247.424L99.6549 289.323C96.6164 292.36 98.4395 299.039 103.301 300.861L145.232 319.078C147.055 319.685 148.27 322.114 147.662 323.936L120.924 427.773C119.101 435.06 127.609 440.525 133.686 436.274L233.954 364.62C235.17 363.406 236.993 363.406 238.816 364.62L284.393 396.804C288.039 399.233 293.508 398.626 295.939 394.375L324.5 350.654C325.108 349.44 326.931 348.832 328.146 348.832L396.208 357.334C401.677 357.941 407.146 353.69 405.323 348.225L376.762 274.75C376.154 272.928 376.762 270.499 379.192 269.285L430.846 244.995C438.138 241.352 435.708 229.814 427.2 229.814Z" fill="white"/>\n</svg>\n',
|
|
19948
|
+
"gmail": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 36"><path fill="#4285f4" d="M3 36h8V17L0 9v24a3 3 0 0 0 3 3z"/><path fill="#34a853" d="M37 36h8a3 3 0 0 0 3-3V9l-11 8z"/><path fill="#fbbc04" d="M37 3v14l11-8V5c0-4-4.6-6.4-7.8-4z"/><path fill="#ea4335" d="M11 17V3l13 9.7L37 3v14l-13 9.7z"/><path fill="#c5221f" d="M0 5v4l11 8V3L7.8 1C4.6-1.4 0 1 0 5z"/></svg>',
|
|
19949
|
+
"google-drive": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.3 78"><path fill="#0066da" d="m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8H0c0 1.55.4 3.1 1.2 4.5z"/><path fill="#00ac47" d="M43.65 25 29.9 1.2c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44A9.06 9.06 0 0 0 0 53h27.5z"/><path fill="#ea4335" d="M73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5H59.798l5.852 11.5z"/><path fill="#00832d" d="M43.65 25 57.4 1.2C56.05.4 54.5 0 52.9 0H34.4c-1.6 0-3.15.45-4.5 1.2z"/><path fill="#2684fc" d="M59.8 53H27.5L13.75 76.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z"/><path fill="#ffba00" d="m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3L43.65 25 59.8 53h27.45c0-1.55-.4-3.1-1.2-4.5z"/></svg>',
|
|
19950
|
+
"amazon-s3": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><defs><linearGradient id="SVG7R6tZwZW" x1="0%" x2="100%" y1="100%" y2="0%"><stop offset="0%" stop-color="#1b660f"/><stop offset="100%" stop-color="#6cae3e"/></linearGradient></defs><path fill="url(#SVG7R6tZwZW)" d="M0 0h256v256H0z"/><path fill="#fff" d="m194.675 137.256l1.229-8.652c11.33 6.787 11.478 9.59 11.475 9.667c-.02.016-1.952 1.629-12.704-1.015m-6.218-1.728c-19.584-5.926-46.857-18.438-57.894-23.654c0-.045.013-.086.013-.131c0-4.24-3.45-7.69-7.693-7.69c-4.237 0-7.687 3.45-7.687 7.69s3.45 7.69 7.687 7.69c1.862 0 3.552-.695 4.886-1.8c12.986 6.148 40.048 18.478 59.776 24.302l-7.801 55.059q-.033.225-.032.451c0 4.848-21.463 13.754-56.532 13.754c-35.44 0-57.13-8.906-57.13-13.754q0-.22-.028-.435l-16.3-119.062c14.108 9.712 44.454 14.85 73.478 14.85c28.979 0 59.273-5.12 73.41-14.802zM48 65.528c.23-4.21 24.428-20.73 75.2-20.73c50.764 0 74.966 16.516 75.2 20.73v1.437c-2.784 9.443-34.144 19.434-75.2 19.434c-41.127 0-72.503-10.023-75.2-19.479zm156.8.07c0-11.087-31.79-27.2-81.6-27.2c-49.812 0-81.6 16.113-81.6 27.2l.3 2.414l17.754 129.676c.426 14.503 39.1 19.91 63.526 19.91c30.31 0 62.512-6.969 62.928-19.9l7.668-54.07c4.265 1.02 7.776 1.542 10.595 1.542c3.785 0 6.345-.925 7.897-2.774c1.274-1.517 1.76-3.354 1.396-5.31c-.83-4.428-6.087-9.202-16.794-15.311l7.603-53.639z"/></svg>',
|
|
19951
|
+
"linear": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#5e6ad2" d="M2.886 4.18A11.98 11.98 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556q-.787.496-1.65.866L.951 7.277q.371-.863.866-1.65ZM.322 9.163l14.515 14.515q-1.066.26-2.195.322L0 11.358a12 12 0 0 1 .322-2.195m-.17 4.862l9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"/></svg>',
|
|
19952
|
+
"okta": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#007dc1" d="M12 0C5.389 0 0 5.35 0 12s5.35 12 12 12s12-5.35 12-12S18.611 0 12 0m0 18c-3.325 0-6-2.675-6-6s2.675-6 6-6s6 2.675 6 6s-2.675 6-6 6"/></svg>',
|
|
19953
|
+
"stripe": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#635bff" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409c0-.831.683-1.305 1.901-1.305c2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0C9.667 0 7.589.654 6.104 1.872C4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219c2.585.92 3.445 1.574 3.445 2.583c0 .98-.84 1.545-2.354 1.545c-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813c1.664-1.305 2.525-3.236 2.525-5.732c0-4.128-2.524-5.851-6.594-7.305z"/></svg>',
|
|
19954
|
+
"clerk": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 324"><path fill="#bab1ff" d="M251.87 27.289c5.058 3.387 5.49 10.513 1.185 14.818l-36.97 36.971c-3.342 3.341-8.526 3.87-12.732 1.715c-12.435-6.371-26.53-9.966-41.462-9.966c-50.294 0-91.064 40.77-91.064 91.064c0 14.933 3.595 29.027 9.966 41.462c2.154 4.206 1.626 9.39-1.715 12.731l-36.971 36.971c-4.305 4.305-11.43 3.873-14.818-1.185C10.053 226.138 0 195.188 0 161.89C0 72.48 72.48 0 161.89 0c33.298 0 64.248 10.053 89.98 27.289"/><path fill="#6c47ff" d="M212.481 161.89c0 27.941-22.65 50.591-50.59 50.591s-50.591-22.65-50.591-50.59s22.65-50.591 50.59-50.591s50.591 22.65 50.591 50.59m40.574 119.784c4.305 4.306 3.873 11.431-1.184 14.818c-25.733 17.237-56.683 27.29-89.98 27.29s-64.248-10.053-89.98-27.29c-5.058-3.387-5.49-10.512-1.186-14.818l36.971-36.97c3.342-3.342 8.525-3.87 12.731-1.716c12.437 6.371 26.53 9.966 41.464 9.966s29.027-3.595 41.463-9.966c4.206-2.154 9.39-1.626 12.73 1.715z"/></svg>',
|
|
19955
|
+
"better-stack": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#000000" d="m.78 10.748l-.766 6.638a2.1 2.1 0 0 0 .696 1.812l1.896 1.672c.65.573 1.658.015 1.519-.84l-1.521-9.325c-.172-1.056-1.702-1.02-1.825.043m12.373 8.714L8.63 6.43c-.502-1.447-2.608-1.384-3.02.09l-1.376 4.923c-.156.56-.216.882 0 1.421h.523l1.899 6.07c.294.732.902 1.3 1.661 1.554l2.832.943c1.241.414 2.426-.751 2.004-1.97zm10.63-1.033L15.79 3.443c-.697-1.307-2.578-1.272-3.227.06l-1.966 3.955c-.237.487-.127.66.07.943c.159.227.527.245.676.012a.348.348 0 0 1 .606.038l5.138 10.687a2.74 2.74 0 0 0 2.142 1.601l2.718.348c1.463.192 2.53-1.354 1.834-2.658"/></svg>',
|
|
19956
|
+
"notion": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 268"><path fill="#fff" d="M16.092 11.538L164.09.608c18.179-1.56 22.85-.508 34.28 7.801l47.243 33.282C253.406 47.414 256 48.975 256 55.207v182.527c0 11.439-4.155 18.205-18.696 19.24L65.44 267.378c-10.913.517-16.11-1.043-21.825-8.327L8.826 213.814C2.586 205.487 0 199.254 0 191.97V29.726c0-9.352 4.155-17.153 16.092-18.188"/><path d="M164.09.608L16.092 11.538C4.155 12.573 0 20.374 0 29.726v162.245c0 7.284 2.585 13.516 8.826 21.843l34.789 45.237c5.715 7.284 10.912 8.844 21.825 8.327l171.864-10.404c14.532-1.035 18.696-7.801 18.696-19.24V55.207c0-5.911-2.336-7.614-9.21-12.66l-1.185-.856L198.37 8.409C186.94.1 182.27-.952 164.09.608M69.327 52.22c-14.033.945-17.216 1.159-25.186-5.323L23.876 30.778c-2.06-2.086-1.026-4.69 4.163-5.207l142.274-10.395c11.947-1.043 18.17 3.12 22.842 6.758l24.401 17.68c1.043.525 3.638 3.637.517 3.637L71.146 52.095zm-16.36 183.954V81.222c0-6.767 2.077-9.887 8.3-10.413L230.02 60.93c5.724-.517 8.31 3.12 8.31 9.879v153.917c0 6.767-1.044 12.49-10.387 13.008l-161.487 9.361c-9.343.517-13.489-2.594-13.489-10.921M212.377 89.53c1.034 4.681 0 9.362-4.681 9.897l-7.783 1.542v114.404c-6.758 3.637-12.981 5.715-18.18 5.715c-8.308 0-10.386-2.604-16.609-10.396l-50.898-80.079v77.476l16.1 3.646s0 9.362-12.989 9.362l-35.814 2.077c-1.043-2.086 0-7.284 3.63-8.318l9.351-2.595V109.823l-12.98-1.052c-1.044-4.68 1.55-11.439 8.826-11.965l38.426-2.585l52.958 81.113v-71.76l-13.498-1.552c-1.043-5.733 3.111-9.896 8.3-10.404z"/></svg>',
|
|
19957
|
+
"attio": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 28"><path fill="#2e3238" d="m31.669 19.175l-2.673-4.279l-.016-.026l-.211-.336a2.16 2.16 0 0 0-1.838-1.022l-4.306-.014l-.3.481l-5.146 8.235l-.284.456l2.156 3.444a2.15 2.15 0 0 0 1.843 1.023h6.035a2.19 2.19 0 0 0 1.842-1.02l.213-.34s.008-.01.01-.015l2.677-4.284c.44-.7.44-1.605 0-2.303zm-.816 1.792l-2.677 4.284l-.037.052a.363.363 0 0 1-.579-.054l-2.678-4.284a1.2 1.2 0 0 1-.137-.969c.03-.105.076-.21.135-.306l2.674-4.28l.006-.01a.34.34 0 0 1 .213-.154q.04-.01.071-.014h.03c.062 0 .215.02.31.176l2.674 4.278c.244.39.244.891 0 1.28zM23.758 8.823a2.19 2.19 0 0 0 0-2.303l-2.673-4.278l-.223-.36a2.16 2.16 0 0 0-1.844-1.02h-6.034c-.754 0-1.442.381-1.844 1.022L.333 19.178a2.16 2.16 0 0 0-.002 2.301L3.23 26.12c.4.64 1.088 1.02 1.842 1.02h6.035c.758 0 1.446-.381 1.844-1.022l.22-.35v-.004s.005-.006.005-.008l2.154-3.445l6.384-10.218l2.041-3.268zm-.63-1.151c0 .22-.062.443-.187.64L12.355 25.255a.36.36 0 0 1-.31.17a.36.36 0 0 1-.31-.17l-2.676-4.286a1.22 1.22 0 0 1 0-1.28L19.645 2.752a.36.36 0 0 1 .31-.173c.062 0 .215.018.313.175L22.94 7.03c.125.197.187.42.187.64"/></svg>',
|
|
19958
|
+
"dropbox": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 218"><path fill="#0061ff" d="M63.995 0L0 40.771l63.995 40.772L128 40.771zM192 0l-64 40.775l64 40.775l64.001-40.775zM0 122.321l63.995 40.772L128 122.321L63.995 81.55zM192 81.55l-64 40.775l64 40.774l64-40.774zM64 176.771l64.005 40.772L192 176.771L128.005 136z"/></svg>',
|
|
19959
|
+
"resend": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#141413" d="M156.575 0c49.582 0 79.07 29.488 79.07 68.632s-29.488 68.632-79.07 68.632h-25.052L256 256h-87.942l-94.729-90.03c-6.784-6.263-9.916-13.57-9.916-19.833c0-8.873 6.263-16.701 18.267-20.094l48.8-13.048c18.527-4.958 31.314-19.31 31.314-38.1c0-22.964-18.79-36.273-42.014-36.273H0V0z"/></svg>',
|
|
19960
|
+
"outlook": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0072c6" d="M19.484 7.937v5.477l1.916 1.205a.5.5 0 0 0 .21 0l8.238-5.554a1.174 1.174 0 0 0-.959-1.128Z"/><path fill="#0072c6" d="m19.484 15.457l1.747 1.2a.52.52 0 0 0 .543 0c-.3.181 8.073-5.378 8.073-5.378v10.066a1.408 1.408 0 0 1-1.49 1.555h-8.874zm-9.044-2.525a1.61 1.61 0 0 0-1.42.838a4.13 4.13 0 0 0-.526 2.218A4.05 4.05 0 0 0 9.02 18.2a1.6 1.6 0 0 0 2.771.022a4 4 0 0 0 .515-2.2a4.37 4.37 0 0 0-.5-2.281a1.54 1.54 0 0 0-1.366-.809"/><path fill="#0072c6" d="M2.153 5.155v21.427L18.453 30V2Zm10.908 14.336a3.23 3.23 0 0 1-2.7 1.361a3.19 3.19 0 0 1-2.64-1.318A5.46 5.46 0 0 1 6.706 16.1a5.87 5.87 0 0 1 1.036-3.616a3.27 3.27 0 0 1 2.744-1.384a3.12 3.12 0 0 1 2.61 1.321a5.64 5.64 0 0 1 1 3.484a5.76 5.76 0 0 1-1.035 3.586"/></svg>',
|
|
19961
|
+
"microsoft-word": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="SVG2m3AVb6p" x1="4.494" x2="13.832" y1="-1712.086" y2="-1695.914" gradientTransform="translate(0 1720)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2368c4"/><stop offset=".5" stop-color="#1a5dbe"/><stop offset="1" stop-color="#1146ac"/></linearGradient></defs><path fill="#41a5ee" d="M28.806 3H9.705a1.19 1.19 0 0 0-1.193 1.191V9.5l11.069 3.25L30 9.5V4.191A1.19 1.19 0 0 0 28.806 3"/><path fill="#2b7cd3" d="M30 9.5H8.512V16l11.069 1.95L30 16Z"/><path fill="#185abd" d="M8.512 16v6.5l10.418 1.3L30 22.5V16Z"/><path fill="#103f91" d="M9.705 29h19.1A1.19 1.19 0 0 0 30 27.809V22.5H8.512v5.309A1.19 1.19 0 0 0 9.705 29"/><path d="M16.434 8.2H8.512v16.25h7.922a1.2 1.2 0 0 0 1.194-1.191V9.391A1.2 1.2 0 0 0 16.434 8.2" opacity=".1"/><path d="M15.783 8.85H8.512V25.1h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191" opacity=".2"/><path d="M15.783 8.85H8.512V23.8h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191" opacity=".2"/><path d="M15.132 8.85h-6.62V23.8h6.62a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191" opacity=".2"/><path fill="url(#SVG2m3AVb6p)" d="M3.194 8.85h11.938a1.193 1.193 0 0 1 1.194 1.191v11.918a1.193 1.193 0 0 1-1.194 1.191H3.194A1.19 1.19 0 0 1 2 21.959V10.041A1.19 1.19 0 0 1 3.194 8.85"/><path fill="#fff" d="M6.9 17.988q.035.276.046.481h.028q.015-.195.065-.47c.05-.275.062-.338.089-.465l1.255-5.407h1.624l1.3 5.326a8 8 0 0 1 .162 1h.022a8 8 0 0 1 .135-.975l1.039-5.358h1.477l-1.824 7.748h-1.727l-1.237-5.126q-.054-.222-.122-.578t-.084-.52h-.021q-.021.189-.084.561t-.1.552L7.78 19.871H6.024L4.19 12.127h1.5l1.131 5.418a5 5 0 0 1 .079.443"/></svg>',
|
|
19962
|
+
"shopify": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 292"><path fill="#95bf46" d="M223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357a19614 19614 0 0 0-23.383-1.743s-15.507-15.395-17.209-17.099c-1.703-1.703-5.029-1.185-6.32-.805c-.19.056-3.388 1.043-8.678 2.68c-5.18-14.906-14.322-28.604-30.405-28.604c-.444 0-.901.018-1.358.044C129.31 3.407 123.644.779 118.75.779c-37.465 0-55.364 46.835-60.976 70.635c-14.558 4.511-24.9 7.718-26.221 8.133c-8.126 2.549-8.383 2.805-9.45 10.462C21.3 95.806.038 260.235.038 260.235l165.678 31.042l89.77-19.42S223.973 58.8 223.775 57.34M156.49 40.848l-14.019 4.339c.005-.988.01-1.96.01-3.023c0-9.264-1.286-16.723-3.349-22.636c8.287 1.04 13.806 10.469 17.358 21.32m-27.638-19.483c2.304 5.773 3.802 14.058 3.802 25.238c0 .572-.005 1.095-.01 1.624c-9.117 2.824-19.024 5.89-28.953 8.966c5.575-21.516 16.025-31.908 25.161-35.828m-11.131-10.537c1.617 0 3.246.549 4.805 1.622c-12.007 5.65-24.877 19.88-30.312 48.297l-22.886 7.088C75.694 46.16 90.81 10.828 117.72 10.828"/><path fill="#5e8e3e" d="M221.237 54.983a19614 19614 0 0 0-23.383-1.743s-15.507-15.395-17.209-17.099c-.637-.634-1.496-.959-2.394-1.099l-12.527 256.233l89.762-19.418S223.972 58.8 223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357"/><path fill="#fff" d="m135.242 104.585l-11.069 32.926s-9.698-5.176-21.586-5.176c-17.428 0-18.305 10.937-18.305 13.693c0 15.038 39.2 20.8 39.2 56.024c0 27.713-17.577 45.558-41.277 45.558c-28.44 0-42.984-17.7-42.984-17.7l7.615-25.16s14.95 12.835 27.565 12.835c8.243 0 11.596-6.49 11.596-11.232c0-19.616-32.16-20.491-32.16-52.724c0-27.129 19.472-53.382 58.778-53.382c15.145 0 22.627 4.338 22.627 4.338"/></svg>',
|
|
19963
|
+
"paypal": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 302"><path fill="#27346a" d="M217.168 23.507C203.234 7.625 178.046.816 145.823.816h-93.52A13.39 13.39 0 0 0 39.076 12.11L.136 259.077c-.774 4.87 2.997 9.28 7.933 9.28h57.736l14.5-91.971l-.45 2.88c1.033-6.501 6.593-11.296 13.177-11.296h27.436c53.898 0 96.101-21.892 108.429-85.221c.366-1.873.683-3.696.957-5.477q-2.334-1.236 0 0c3.671-23.407-.025-39.34-12.686-53.765"/><path fill="#27346a" d="M102.397 68.84a11.7 11.7 0 0 1 5.053-1.14h73.318c8.682 0 16.78.565 24.18 1.756a102 102 0 0 1 6.177 1.182a90 90 0 0 1 8.59 2.347c3.638 1.215 7.026 2.63 10.14 4.287c3.67-23.416-.026-39.34-12.687-53.765C203.226 7.625 178.046.816 145.823.816H52.295C45.71.816 40.108 5.61 39.076 12.11L.136 259.068c-.774 4.878 2.997 9.282 7.925 9.282h57.744L95.888 77.58a11.72 11.72 0 0 1 6.509-8.74"/><path fill="#2790c3" d="M228.897 82.749c-12.328 63.32-54.53 85.221-108.429 85.221H93.024c-6.584 0-12.145 4.795-13.168 11.296L61.817 293.621c-.674 4.262 2.622 8.124 6.934 8.124h48.67a11.71 11.71 0 0 0 11.563-9.88l.474-2.48l9.173-58.136l.591-3.213a11.71 11.71 0 0 1 11.562-9.88h7.284c47.147 0 84.064-19.154 94.852-74.55c4.503-23.15 2.173-42.478-9.739-56.054c-3.613-4.112-8.1-7.508-13.327-10.28c-.283 1.79-.59 3.604-.957 5.477"/><path fill="#1f264f" d="M216.952 72.128a90 90 0 0 0-5.818-1.49a110 110 0 0 0-6.177-1.174c-7.408-1.199-15.5-1.765-24.19-1.765h-73.309a11.6 11.6 0 0 0-5.053 1.149a11.68 11.68 0 0 0-6.51 8.74l-15.582 98.798l-.45 2.88c1.025-6.501 6.585-11.296 13.17-11.296h27.444c53.898 0 96.1-21.892 108.428-85.221c.367-1.873.675-3.688.958-5.477q-4.682-2.47-10.14-4.279a83 83 0 0 0-2.77-.865"/></svg>',
|
|
19964
|
+
// Jira, Google Calendar, Intercom (in black: its brand cyan disappears on white) and Zendesk: Simple Icons 16.35.0, CC0-1.0; the marks are their owners’ trademarks.
|
|
19965
|
+
"jira": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#0052CC" d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>',
|
|
19966
|
+
"google-calendar": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#4285F4" d="M18.316 5.684H24v12.632h-5.684V5.684zM5.684 24h12.632v-5.684H5.684V24zM18.316 5.684V0H1.895A1.894 1.894 0 0 0 0 1.895v16.421h5.684V5.684h12.632zm-7.207 6.25v-.065c.272-.144.5-.349.687-.617s.279-.595.279-.982c0-.379-.099-.72-.3-1.025a2.05 2.05 0 0 0-.832-.714 2.703 2.703 0 0 0-1.197-.257c-.6 0-1.094.156-1.481.467-.386.311-.65.671-.793 1.078l1.085.452c.086-.249.224-.461.413-.633.189-.172.445-.257.767-.257.33 0 .602.088.816.264a.86.86 0 0 1 .322.703c0 .33-.12.589-.36.778-.24.19-.535.284-.886.284h-.567v1.085h.633c.407 0 .748.109 1.02.327.272.218.407.499.407.843 0 .336-.129.614-.387.832s-.565.327-.924.327c-.351 0-.651-.103-.897-.311-.248-.208-.422-.502-.521-.881l-1.096.452c.178.616.505 1.082.977 1.401.472.319.984.478 1.538.477a2.84 2.84 0 0 0 1.293-.291c.382-.193.684-.458.902-.794.218-.336.327-.72.327-1.149 0-.429-.115-.797-.344-1.105a2.067 2.067 0 0 0-.881-.689zm2.093-1.931l.602.913L15 10.045v5.744h1.187V8.446h-.827l-2.158 1.557zM22.105 0h-3.289v5.184H24V1.895A1.894 1.894 0 0 0 22.105 0zm-3.289 23.5l4.684-4.684h-4.684V23.5zM0 22.105C0 23.152.848 24 1.895 24h3.289v-5.184H0v3.289z"/></svg>',
|
|
19967
|
+
"intercom": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#000000" d="M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"/></svg>',
|
|
19968
|
+
"zendesk": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#03363D" d="M12.914 2.904V16.29L24 2.905H12.914zM0 2.906C0 5.966 2.483 8.45 5.543 8.45s5.542-2.484 5.543-5.544H0zm11.086 4.807L0 21.096h11.086V7.713zm7.37 7.84c-3.063 0-5.542 2.48-5.542 5.543H24c0-3.06-2.48-5.543-5.543-5.543z"/></svg>',
|
|
19969
|
+
// Asana, Discord and Sentry: the website's marks (Simple Icons 16.35.0, CC0-1.0), in their brand colours.
|
|
19970
|
+
"asana": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#F06A6A" d="M18.78 12.653c-2.882 0-5.22 2.336-5.22 5.22s2.338 5.22 5.22 5.22 5.22-2.34 5.22-5.22-2.336-5.22-5.22-5.22zm-13.56 0c-2.88 0-5.22 2.337-5.22 5.22s2.338 5.22 5.22 5.22 5.22-2.338 5.22-5.22-2.336-5.22-5.22-5.22zm12-6.525c0 2.883-2.337 5.22-5.22 5.22-2.882 0-5.22-2.337-5.22-5.22 0-2.88 2.338-5.22 5.22-5.22 2.883 0 5.22 2.34 5.22 5.22z"/></svg>',
|
|
19971
|
+
"discord": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#5865F2" d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>',
|
|
19972
|
+
"sentry": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#362D59" d="M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"/></svg>',
|
|
19973
|
+
// Airtable (Simple Icons 16.35.0) and Twilio (SVG Logos by Gil Barbara), both CC0-1.0: the website's marks, in their brand colours.
|
|
19974
|
+
"airtable": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#18bfff" d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"/></svg>',
|
|
19975
|
+
"twilio": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#f12e45" d="M128,0 C198.656,0 256,57.344 256,128 C256,198.656 198.656,256 128,256 C57.344,256 0,198.656 0,128 C0,57.344 57.344,0 128,0 Z M128,33.792 C75.776,33.792 33.792,75.776 33.792,128 C33.792,180.224 75.776,222.208 128,222.208 C180.224,222.208 222.208,180.224 222.208,128 C222.208,75.776 180.224,33.792 128,33.792 Z M159.744,133.12 C174.448029,133.12 186.368,145.039971 186.368,159.744 C186.368,174.448029 174.448029,186.368 159.744,186.368 C145.039971,186.368 133.12,174.448029 133.12,159.744 C133.12,145.039971 145.039971,133.12 159.744,133.12 Z M96.256,133.12 C110.960029,133.12 122.88,145.039971 122.88,159.744 C122.88,174.448029 110.960029,186.368 96.256,186.368 C81.5519708,186.368 69.632,174.448029 69.632,159.744 C69.632,145.039971 81.5519708,133.12 96.256,133.12 Z M159.744,69.632 C174.448029,69.632 186.368,81.5519708 186.368,96.256 C186.368,110.960029 174.448029,122.88 159.744,122.88 C145.039971,122.88 133.12,110.960029 133.12,96.256 C133.12,81.5519708 145.039971,69.632 159.744,69.632 Z M96.256,69.632 C110.960029,69.632 122.88,81.5519708 122.88,96.256 C122.88,110.960029 110.960029,122.88 96.256,122.88 C81.5519708,122.88 69.632,110.960029 69.632,96.256 C69.632,81.5519708 81.5519708,69.632 96.256,69.632 Z"/></svg>'
|
|
19976
|
+
};
|
|
19977
|
+
var pngLogos = {
|
|
19978
|
+
"kalshi": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAAhEElEQVR4Ae1d6Y8lV3W/Sy2v3tbbLLZnxjZeZIMx8SLGLHZMDBhQ2KIAIVIihU8h+Z4PkfI3gBRFSqJEShRFSYggAhFCgowB2yzBGDD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JVkkwAAAABJRU5ErkJggg=="
|
|
19980
|
+
};
|
|
19981
|
+
var logoSrc = (name) => logos[name] ? `data:image/svg+xml,${encodeURIComponent(logos[name])}` : pngLogos[name] ? `data:image/png;base64,${pngLogos[name]}` : void 0;
|
|
19982
|
+
function toolLogo(name) {
|
|
19983
|
+
const src = logoSrc(name);
|
|
19984
|
+
return src ? `<img class="catalog-brand" src="${src}" alt="" width="36" height="36">` : `<span class="catalog-brand catalog-letter" aria-hidden="true">${name.slice(0, 1).toUpperCase().replace(/[&<>"]/g, "")}</span>`;
|
|
19985
|
+
}
|
|
19986
|
+
function toolIcon(name, label2) {
|
|
19987
|
+
const src = logoSrc(name);
|
|
19988
|
+
return src ? `<img class="tool-icon" src="${src}" alt="${label2.replace(/[&<>"]/g, "")}" title="${label2.replace(/[&<>"]/g, "")}" width="16" height="16">` : `<span class="tool-icon tool-icon-fallback" title="${label2.replace(/[&<>"]/g, "")}">${label2.slice(0, 1).replace(/[&<>"]/g, "")}</span>`;
|
|
19989
|
+
}
|
|
19990
|
+
|
|
19991
|
+
// frontend/src/sim-time.ts
|
|
19992
|
+
var HOUR = 36e5;
|
|
19993
|
+
var DAY = 24 * HOUR;
|
|
19994
|
+
var two = (n) => String(n).padStart(2, "0");
|
|
19995
|
+
function simOffset(ms, startMs) {
|
|
19996
|
+
const total = Math.max(0, Math.floor((ms - startMs) / 1e3)), days = Math.floor(total / 86400), hours = Math.floor(total % 86400 / 3600), minutes = Math.floor(total % 3600 / 60), seconds = total % 60;
|
|
19997
|
+
if (days) return `+${days}d ${hours}:${two(minutes)}:${two(seconds)}`;
|
|
19998
|
+
return hours ? `+${hours}:${two(minutes)}:${two(seconds)}` : `+${minutes}:${two(seconds)}`;
|
|
19999
|
+
}
|
|
20000
|
+
function gapLabel(gapMs) {
|
|
20001
|
+
if (gapMs >= DAY) {
|
|
20002
|
+
const d = Math.round(gapMs / DAY);
|
|
20003
|
+
return `${d} day${d === 1 ? "" : "s"} later`;
|
|
20278
20004
|
}
|
|
20279
|
-
|
|
20005
|
+
if (gapMs >= HOUR) {
|
|
20006
|
+
const hrs = Math.round(gapMs / HOUR);
|
|
20007
|
+
return `${hrs} hour${hrs === 1 ? "" : "s"} later`;
|
|
20008
|
+
}
|
|
20009
|
+
return "";
|
|
20280
20010
|
}
|
|
20281
|
-
function
|
|
20282
|
-
|
|
20283
|
-
|
|
20011
|
+
function simIso(ms) {
|
|
20012
|
+
const date5 = new Date(ms);
|
|
20013
|
+
return Number.isNaN(date5.getTime()) ? "" : date5.toISOString();
|
|
20014
|
+
}
|
|
20015
|
+
var simAbsolute = (ms) => {
|
|
20016
|
+
const iso = simIso(ms);
|
|
20017
|
+
return iso ? iso.replace("T", " ").slice(0, 19) + " scene time" : "";
|
|
20018
|
+
};
|
|
20019
|
+
|
|
20020
|
+
// frontend/src/conversation.ts
|
|
20021
|
+
var list = (value) => Array.isArray(value) ? value.filter((item) => item && typeof item === "object") : [];
|
|
20022
|
+
var hasConversation = (o) => list(o?.peopleTimeline?.persons).length > 0;
|
|
20023
|
+
var entryAnchor = (id) => "cv-" + String(id).replace(/[^A-Za-z0-9_-]+/g, "-");
|
|
20024
|
+
function people(o) {
|
|
20025
|
+
const persons = list(o.peopleTimeline?.persons);
|
|
20026
|
+
return (ref2) => ref2 === "agent" ? "Agent" : String(persons.find((p) => p.ref === ref2)?.name ?? ref2);
|
|
20027
|
+
}
|
|
20028
|
+
var words = (id) => String(id ?? "").replace(/[_-]+/g, " ").trim();
|
|
20029
|
+
function factLabel(fact, name) {
|
|
20030
|
+
const [owner, id] = String(fact ?? "").split(/\.(.*)/s);
|
|
20031
|
+
return id ? `${name(owner)}\u2019s ${words(id)}` : words(owner);
|
|
20032
|
+
}
|
|
20033
|
+
var COMPARE = { gte: "\u2265", gt: ">", lte: "\u2264", lt: "<", eq: "=", ne: "\u2260" };
|
|
20034
|
+
function ruleText(reason, name) {
|
|
20035
|
+
const text2 = String(reason ?? "");
|
|
20036
|
+
if (text2 === "default rule") return "default";
|
|
20037
|
+
const rule = /^rule (\d+): (.*)$/s.exec(text2);
|
|
20038
|
+
if (!rule) return text2;
|
|
20039
|
+
const [, number4, condition] = rule;
|
|
20040
|
+
const json4 = (when2) => {
|
|
20041
|
+
if (Array.isArray(when2?.fact) && when2.fact.length === 3 && COMPARE[when2.fact[1]] && typeof when2.fact[2] === "number") return `${factLabel(when2.fact[0], name)} ${COMPARE[when2.fact[1]]} ${when2.fact[2]}`;
|
|
20042
|
+
for (const [key, joiner] of [["all", " and "], ["any", " or "]]) if (Array.isArray(when2?.[key])) {
|
|
20043
|
+
const parts = when2[key].map(json4);
|
|
20044
|
+
return parts.length && parts.every(Boolean) ? parts.join(joiner) : void 0;
|
|
20045
|
+
}
|
|
20046
|
+
return void 0;
|
|
20047
|
+
};
|
|
20048
|
+
const words2 = (all) => {
|
|
20049
|
+
const parts = all.split(" and ").map((part) => /^([A-Za-z0-9_-]+\.[A-Za-z0-9_]+) (≥|≤|=|>|<|≠) (-?\d+(?:\.\d+)?)$/.exec(part.trim())).map((match) => match ? `${factLabel(match[1], name)} ${match[2]} ${match[3]}` : void 0);
|
|
20050
|
+
return parts.every(Boolean) ? parts.join(" and ") : void 0;
|
|
20051
|
+
};
|
|
20052
|
+
if (!/^[[{]/.test(condition)) return words2(condition) ?? `rule ${number4}`;
|
|
20053
|
+
try {
|
|
20054
|
+
return json4(JSON.parse(condition)) ?? `rule ${number4}`;
|
|
20055
|
+
} catch {
|
|
20056
|
+
return `rule ${number4}`;
|
|
20284
20057
|
}
|
|
20285
|
-
|
|
20286
|
-
|
|
20287
|
-
|
|
20288
|
-
|
|
20289
|
-
|
|
20290
|
-
|
|
20058
|
+
}
|
|
20059
|
+
function where(place) {
|
|
20060
|
+
const tool = String(place.tool ?? "");
|
|
20061
|
+
const kind = place.kind === "thread" ? " \xB7 thread" : place.kind === "dm" ? " \xB7 direct message" : "";
|
|
20062
|
+
return `<span class="cv-place">${tool ? toolIcon(tool, toolName(tool)) : ""}${h(String(place.label ?? ""))}${h(kind)}</span>`;
|
|
20063
|
+
}
|
|
20064
|
+
function body(entry, name) {
|
|
20065
|
+
if (entry.kind === "message") {
|
|
20066
|
+
const to = Array.isArray(entry.to) && entry.to.length ? ` \u2192 ${entry.to.map(name).join(", ")}` : "";
|
|
20067
|
+
return `<div class="cv-head"><strong>${h(name(entry.from))}</strong>${to ? `<span class="muted">${h(to)}</span>` : ""}${where(entry.place ?? {})}</div><p class="cv-text">${h(String(entry.text ?? ""))}</p>`;
|
|
20291
20068
|
}
|
|
20292
|
-
|
|
20293
|
-
|
|
20294
|
-
|
|
20295
|
-
|
|
20069
|
+
const whom = (ref2) => ref2 === "agent" ? "the agent" : name(ref2);
|
|
20070
|
+
if (entry.kind === "fact") return `<p class="cv-event">${h(name(entry.person))} told ${h(whom(entry.to ?? "agent"))} <strong>${h(words(entry.fact))}</strong></p>`;
|
|
20071
|
+
if (entry.kind === "learned") return `<p class="cv-event">${h(name(entry.person))} learned <strong>${h(factLabel(entry.fact, name))}</strong> from ${h(whom(entry.from))}</p>`;
|
|
20072
|
+
if (entry.kind === "decision") return `<p class="cv-event">${h(name(entry.person))} decided <strong>${h(words(entry.decision))}: ${h(String(entry.option))}</strong>${entry.reason ? ` <span class="muted">\xB7 ${h(ruleText(entry.reason, name))}</span>` : ""}</p>`;
|
|
20073
|
+
return "";
|
|
20074
|
+
}
|
|
20075
|
+
function conversationView(o, options = {}) {
|
|
20076
|
+
const name = people(o);
|
|
20077
|
+
const usable = (value) => {
|
|
20078
|
+
const ms = Number(value);
|
|
20079
|
+
return Number.isFinite(ms) && Math.abs(ms) <= 864e13 ? ms : NaN;
|
|
20080
|
+
};
|
|
20081
|
+
const timeline2 = list(o.peopleTimeline?.timeline).filter((entry) => entry.seed !== true && !(usable(entry.simMs) < 0));
|
|
20082
|
+
const startMs = options.startMs ?? Date.parse(String(o.peopleTimeline?.startedAt ?? ""));
|
|
20083
|
+
let previous = NaN;
|
|
20084
|
+
const rows3 = timeline2.map((entry) => {
|
|
20085
|
+
const ms = usable(entry.simMs), gap = Number.isFinite(ms) && Number.isFinite(previous) ? gapLabel(ms - previous) : "";
|
|
20086
|
+
if (Number.isFinite(ms)) previous = ms;
|
|
20087
|
+
const iso = Number.isFinite(ms) && Number.isFinite(startMs) ? simIso(startMs + ms) : "";
|
|
20088
|
+
const time4 = Number.isFinite(ms) ? `<time${iso ? ` datetime="${h(iso)}" title="${h(simAbsolute(startMs + ms))}"` : ""}>${h(simOffset(ms, 0))}</time>` : "<time></time>";
|
|
20089
|
+
const classes = ["cv-entry", `cv-${String(entry.kind)}`, entry.kind === "message" && entry.from === "agent" ? "from-agent" : "", options.focus === entry.id ? "focused" : ""].filter(Boolean).join(" ");
|
|
20090
|
+
return `${gap ? `<div class="activity-gap" role="separator">${h(gap)}</div>` : ""}<article class="${h(classes)}" id="${h(entryAnchor(String(entry.id)))}">${time4}<div>${body(entry, name)}</div></article>`;
|
|
20091
|
+
}).join("");
|
|
20092
|
+
return `<section class="conversation"><div class="tool-section-title"><h2>Conversation</h2><span class="muted">Oldest first</span></div>${rows3 || '<p class="quiet-empty">No messages between the agent and people.</p>'}</section>`;
|
|
20093
|
+
}
|
|
20094
|
+
function checkFocus(o) {
|
|
20095
|
+
const ids = new Set(list(o.peopleTimeline?.timeline).map((entry) => String(entry.id)));
|
|
20096
|
+
const focus = /* @__PURE__ */ new Map();
|
|
20097
|
+
for (const explanation of list(o.explanations)) {
|
|
20098
|
+
const id = list(explanation.evidence).map((evidence) => String(evidence.id ?? "")).find((candidate) => ids.has(candidate));
|
|
20099
|
+
if (id && explanation.checkId) focus.set(String(explanation.checkId), id);
|
|
20296
20100
|
}
|
|
20297
|
-
|
|
20298
|
-
|
|
20299
|
-
|
|
20300
|
-
|
|
20301
|
-
|
|
20302
|
-
|
|
20303
|
-
|
|
20304
|
-
|
|
20305
|
-
|
|
20306
|
-
|
|
20101
|
+
return focus;
|
|
20102
|
+
}
|
|
20103
|
+
function peopleSection(world, kit = false) {
|
|
20104
|
+
const persons = list(world.people ?? world.configuration?.people);
|
|
20105
|
+
if (!persons.length) return "";
|
|
20106
|
+
if (kit) return `<section class="k-card"><div class="k-card-head"><h2>People \xB7 ${persons.length}</h2></div><div class="k-scroll" role="region" aria-label="People" tabindex="0"><table class="k-table mid"><thead><tr><th scope="col">Person</th><th scope="col">Role</th><th scope="col" class="num">Facts</th><th scope="col">Decides</th></tr></thead><tbody>${persons.map((person2) => `<tr><td>${h(String(person2.name ?? person2.ref ?? "Person"))}</td><td>${h(String(person2.role ?? "\u2014"))}</td><td class="num">${list(person2.knows).length}</td><td>${h(list(person2.decides).map((decision) => String(decision.id)).join(", ") || "\u2014")}</td></tr>`).join("")}</tbody></table></div></section>`;
|
|
20107
|
+
return `<section class="world-people"><div class="ww-section-heading"><h2>People</h2><span>${persons.length}</span></div><div class="world-people-list">${persons.map((person2) => {
|
|
20108
|
+
const facts2 = list(person2.knows).length, decides = list(person2.decides).map((decision) => String(decision.id));
|
|
20109
|
+
return `<article class="world-person"><strong>${h(String(person2.name ?? person2.ref ?? "Person"))}</strong><span class="muted">${h(String(person2.role ?? ""))}</span><span>${facts2} ${facts2 === 1 ? "fact" : "facts"}${decides.length ? ` \xB7 decides ${h(decides.join(", "))}` : ""}</span></article>`;
|
|
20110
|
+
}).join("")}</div></section>`;
|
|
20111
|
+
}
|
|
20112
|
+
|
|
20113
|
+
// frontend/src/scenario.ts
|
|
20114
|
+
function traceActions(patterns, avoided = false) {
|
|
20115
|
+
const remaining = new Set(typeof patterns === "string" ? [patterns] : patterns), labels = [];
|
|
20116
|
+
const group = (paths, label2) => {
|
|
20117
|
+
if (paths.every((path2) => remaining.has(path2))) {
|
|
20118
|
+
labels.push(label2);
|
|
20119
|
+
paths.forEach((path2) => remaining.delete(path2));
|
|
20307
20120
|
}
|
|
20121
|
+
};
|
|
20122
|
+
if (avoided) {
|
|
20123
|
+
group(["POST /api/chat.delete"], "deleting Slack messages");
|
|
20124
|
+
group(["POST /repos/*", "PUT /repos/*", "PATCH /repos/*", "DELETE /repos/*"], "repository write calls");
|
|
20125
|
+
group(["DELETE /api/v1/monitor*", "PUT /api/v1/monitor*", "POST /api/v1/monitor/*/mute", "POST /api/v1/monitor/mute_all"], "monitor edit, delete or mute calls");
|
|
20126
|
+
group(["POST /api/v1/downtime*", "POST /api/v2/downtime*"], "downtime creation calls");
|
|
20308
20127
|
}
|
|
20309
|
-
|
|
20310
|
-
|
|
20128
|
+
const known = { "POST /api/v2/logs/events/search": "search logs", "GET /api/v1/query*": "query metrics" };
|
|
20129
|
+
for (const pattern of remaining) labels.push(avoided ? `calls to ${pattern}` : known[pattern] ?? `call ${pattern}`);
|
|
20130
|
+
const joined = labels.length < 3 ? labels.join(" and ") : labels.slice(0, -1).join(", ") + ", and " + labels.at(-1);
|
|
20131
|
+
return avoided ? "Avoid " + joined : joined.charAt(0).toUpperCase() + joined.slice(1);
|
|
20132
|
+
}
|
|
20133
|
+
function criterion(scene, check2) {
|
|
20134
|
+
const s = check2.state ?? {}, label2 = (ref2) => named(scene, ref2);
|
|
20135
|
+
if (s["slack.message"]) {
|
|
20136
|
+
const m = s["slack.message"];
|
|
20137
|
+
return `${m.from ? label2(m.from) : "Someone"} posts ${m.count_gte > 1 ? `at least ${m.count_gte} messages` : "a message"} in #${label2(m.channel)}${m.in_thread_of ? ", in the requested thread" : ""}${m.text_contains ? ` containing \u201C${m.text_contains}\u201D` : ""}`;
|
|
20311
20138
|
}
|
|
20312
|
-
if (
|
|
20313
|
-
|
|
20139
|
+
if (s["github.file_at"]) return `${label2(s["github.file_at"][0])}: ${s["github.file_at"][2]} at ${s["github.file_at"][1]} ${s.equals !== void 0 ? "matches the required content" : "contains the required text"}`;
|
|
20140
|
+
if (s["github.production"]) return `${label2(s["github.production"].repo)} runs \u201C${label2(s["github.production"].commit).trim()}\u201D`;
|
|
20141
|
+
if (s["github.pull"]) return `\u201C${label2(s["github.pull"].pull)}\u201D is ${s["github.pull"].merged ? "merged" : "not merged"}`;
|
|
20142
|
+
if (s.fault_resolved) return `Fault \u201C${label2(s.fault_resolved)}\u201D has recovered`;
|
|
20143
|
+
if (s["datadog.monitor"]) return `${label2(s["datadog.monitor"])} is ${s.is}`;
|
|
20144
|
+
if (s["datadog.downtime"]) {
|
|
20145
|
+
const d = s["datadog.downtime"];
|
|
20146
|
+
return `${label2(d.monitor)} has downtime of at most ${d.duration_lte}, with at least ${d.remaining_gte} remaining${d.reject_active_unsafe ? "; no blanket or overlong downtime" : ""}`;
|
|
20314
20147
|
}
|
|
20315
|
-
if (
|
|
20316
|
-
|
|
20148
|
+
if (s["pagerduty.incident"]) {
|
|
20149
|
+
const i = s["pagerduty.incident"];
|
|
20150
|
+
const clauses = [s.status ? `is ${s.status}` : "", s.assigned_to ? `is assigned exactly to ${s.assigned_to.map(label2).join(", ")}` : "", s.acknowledged_within ? `is acknowledged within ${s.acknowledged_within} of creation` : "", s.resolved_within ? `is resolved within ${s.resolved_within} of creation` : ""].filter(Boolean);
|
|
20151
|
+
return `${i.first ? "First incident" : "Incident"}${i.service ? " for " + label2(i.service) : i.ref ? " \u201C" + label2(i.ref) + "\u201D" : ""} ${clauses.join(" and ")}`;
|
|
20317
20152
|
}
|
|
20318
|
-
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
if (key in schema) {
|
|
20322
|
-
extraMeta[key] = schema[key];
|
|
20323
|
-
}
|
|
20153
|
+
if (check2.trace) {
|
|
20154
|
+
const t = check2.trace;
|
|
20155
|
+
return [t.called?.length ? traceActions(t.called) : "", t.not_called?.length ? traceActions(t.not_called, true) : ""].filter(Boolean).join("; ");
|
|
20324
20156
|
}
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
20328
|
-
|
|
20329
|
-
}
|
|
20157
|
+
if (check2.tool_call) {
|
|
20158
|
+
const c = check2.tool_call, n = c.count ?? {}, times = (k) => `${k} ${k === 1 ? "time" : "times"}`;
|
|
20159
|
+
const how = c.status === "failed" ? `fails${c.error?.type ? ` with ${c.error.type}` : ""}` : c.status === "attempted" ? "is called" : "succeeds";
|
|
20160
|
+
const given = [c.args ? "the given arguments" : "", c.result ? "the given result" : ""].filter(Boolean).join(" and "), withGiven = given ? ` with ${given}` : "";
|
|
20161
|
+
if (n.eq === 0) return `No ${c.name} call ${c.status === "attempted" ? "is made" : how}${withGiven}`;
|
|
20162
|
+
const count3 = n.eq !== void 0 ? `exactly ${times(n.eq)}` : n.gte !== void 0 && n.lte !== void 0 ? `${n.gte} to ${times(n.lte)}` : n.lte !== void 0 ? `at most ${times(n.lte)}` : n.gte > 1 ? `at least ${times(n.gte)}` : "";
|
|
20163
|
+
return `${c.name} ${how}${withGiven}${count3 ? `, ${count3}` : ""}`;
|
|
20330
20164
|
}
|
|
20331
|
-
if (
|
|
20332
|
-
|
|
20333
|
-
|
|
20334
|
-
}
|
|
20335
|
-
for (const key of ["minProperties", "maxProperties"]) {
|
|
20336
|
-
if (schema[key] !== void 0)
|
|
20337
|
-
extraMeta[key] = schema[key];
|
|
20338
|
-
}
|
|
20165
|
+
if (check2.judge) return "A grader assesses the agent\u2019s response";
|
|
20166
|
+
if (check2.answer?.rows) {
|
|
20167
|
+
const rows3 = check2.answer.rows, n = Array.isArray(rows3.expected) ? rows3.expected.length : 0;
|
|
20168
|
+
return `The final answer\u2019s \u201C${rows3.field}\u201D lists exactly the ${n} expected ${n === 1 ? "row" : "rows"}`;
|
|
20339
20169
|
}
|
|
20340
|
-
if (
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
}
|
|
20344
|
-
for (const key of ["uniqueItems", "minContains", "maxContains"]) {
|
|
20345
|
-
if (schema[key] !== void 0)
|
|
20346
|
-
extraMeta[key] = schema[key];
|
|
20347
|
-
}
|
|
20170
|
+
if (check2.answer) {
|
|
20171
|
+
const a = check2.answer, quoted = (v) => (Array.isArray(v) ? v : v === void 0 ? [] : [v]).map((text2) => `\u201C${text2}\u201D`).join(", ");
|
|
20172
|
+
const parts = [a.contains ? `contains ${quoted(a.contains)}` : "", a.numbers?.length ? `states ${a.numbers.map((n) => String(n.value)).join(", ")}` : "", a.not_contains ? `never says ${quoted(a.not_contains)}` : ""].filter(Boolean);
|
|
20173
|
+
return parts.length ? `The final answer ${parts.join("; ")}` : "The agent gives a final answer";
|
|
20348
20174
|
}
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20175
|
+
return "Custom condition: " + String(check2.id).replaceAll("_", " ");
|
|
20176
|
+
}
|
|
20177
|
+
function successCriteria(scene) {
|
|
20178
|
+
const checks2 = scene.checks ?? [];
|
|
20179
|
+
const required2 = checks2.filter((c) => (scene.pass ?? checks2.map((c2) => c2.id)).includes(c.id));
|
|
20180
|
+
const advisory = checks2.filter((c) => !required2.includes(c));
|
|
20181
|
+
const item = (c) => `<details class="criterion"><summary><span class="criterion-mark" aria-hidden="true">\u25CB</span><span>${h(criterion(scene, c))}</span></summary>${details("Exact condition \xB7 " + c.id, c)}</details>`;
|
|
20182
|
+
return `<div class="success-list">${required2.map(item).join("") || '<p class="muted small">No required conditions.</p>'}</div>${advisory.length ? `<details class="advisory"><summary>${advisory.length} advisory ${advisory.length === 1 ? "check" : "checks"}</summary>${advisory.map(item).join("")}</details>` : ""}`;
|
|
20183
|
+
}
|
|
20184
|
+
|
|
20185
|
+
// frontend/src/design.ts
|
|
20186
|
+
function url2(path2, query = {}) {
|
|
20187
|
+
const q = new URLSearchParams();
|
|
20188
|
+
for (const [k, v] of Object.entries(query)) if (v !== void 0 && v !== null && v !== "") q.set(k, String(v));
|
|
20189
|
+
return path2 + (q.size ? "?" + q : "");
|
|
20190
|
+
}
|
|
20191
|
+
var navLink = (label2, href2, cls = "") => `<a href="${h(href2)}" data-nav class="${cls}">${h(label2)}</a>`;
|
|
20192
|
+
var navTabs = (items, selected) => `<nav class="tabs" aria-label="Page sections">${items.map(([key, label2, path2]) => `<a href="${h(path2)}" data-nav class="${selected === key ? "active" : ""}" ${selected === key ? 'aria-current="page"' : ""}>${h(label2)}</a>`).join("")}</nav>`;
|
|
20193
|
+
|
|
20194
|
+
// frontend/src/playground.ts
|
|
20195
|
+
var attemptLabel = (state) => ({ queued: "Queued", starting: "Starting container\u2026", running: "Running", completed: "Completed", stopped: "Stopped", error: "Error" })[state] ?? "Unavailable";
|
|
20196
|
+
var terminal = (state) => ["completed", "stopped", "error"].includes(state);
|
|
20197
|
+
var ordinal = (n) => `${n}${n % 100 >= 11 && n % 100 <= 13 ? "th" : { 1: "st", 2: "nd", 3: "rd" }[n % 10] ?? "th"}`;
|
|
20198
|
+
function queueLabel(queue) {
|
|
20199
|
+
if (!queue || !Number.isFinite(Number(queue.position))) return "";
|
|
20200
|
+
return Number(queue.position) === 1 ? "Next in line" : `${ordinal(Number(queue.position))} in line`;
|
|
20201
|
+
}
|
|
20202
|
+
function batchCounts(batch) {
|
|
20203
|
+
const attempts = batch.attempts ?? [];
|
|
20204
|
+
return { total: attempts.length, finished: attempts.filter((a) => terminal(a.status)).length, completed: attempts.filter((a) => a.status === "completed").length, running: attempts.filter((a) => ["running", "starting"].includes(a.status)).length };
|
|
20205
|
+
}
|
|
20206
|
+
function batchTitle(batch) {
|
|
20207
|
+
if (batch.groupName) return String(batch.groupName);
|
|
20208
|
+
if (batch.test?.name) return String(batch.test.name);
|
|
20209
|
+
const tasks = batch.tasks ?? [];
|
|
20210
|
+
return tasks.length === 1 ? tasks[0].title || shortPrompt(tasks[0].prompt) : `${tasks.length} tasks`;
|
|
20211
|
+
}
|
|
20212
|
+
function groupEntryForAttempt(entries, attempt) {
|
|
20213
|
+
if (!attempt) return void 0;
|
|
20214
|
+
return entries.find((entry) => entry.id === attempt.entryId) ?? entries.find((entry) => entry.agentId === attempt.agentId);
|
|
20215
|
+
}
|
|
20216
|
+
function shortPrompt(value) {
|
|
20217
|
+
const text2 = String(value ?? "").trim().replace(/\s+/g, " ");
|
|
20218
|
+
return text2.length > 100 ? text2.slice(0, 97) + "\u2026" : text2;
|
|
20219
|
+
}
|
|
20220
|
+
function readableResponse(response) {
|
|
20221
|
+
if (/^\s*[\[{]/.test(response)) {
|
|
20222
|
+
try {
|
|
20223
|
+
const value = JSON.parse(response);
|
|
20224
|
+
if (value && typeof value === "object") {
|
|
20225
|
+
const content = typeof value.response === "string" ? value.response : typeof value.text === "string" ? value.text : "";
|
|
20226
|
+
return content && !/^\s*[\[{]/.test(content) ? content : "A structured response was captured. No plain-text response was provided.";
|
|
20227
|
+
}
|
|
20228
|
+
} catch {
|
|
20352
20229
|
}
|
|
20353
20230
|
}
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
|
|
20358
|
-
|
|
20231
|
+
return response;
|
|
20232
|
+
}
|
|
20233
|
+
function timeLimit(ms) {
|
|
20234
|
+
return ms < 6e4 ? `${Math.ceil(ms / 1e3)} sec` : `${Number((ms / 6e4).toFixed(1))} min`;
|
|
20235
|
+
}
|
|
20236
|
+
function taskFields(tasks) {
|
|
20237
|
+
return tasks.map((task, index) => `<section class="task-editor" data-task-id="${h(task.id)}"><div class="task-heading"><h2>Task ${index + 1}</h2>${tasks.length > 1 ? button("Remove", "remove-task", task.id, "link") : ""}</div><label class="sr-only" for="task-${index}">Task ${index + 1}</label><textarea id="task-${index}" name="prompt" rows="3" required maxlength="20000" placeholder="What should your agent do?">${h(task.prompt)}</textarea><div class="task-options"><label>Trials<input name="attempts" type="number" min="1" max="100" value="${h(task.attempts ?? 1)}" required></label><label>Time limit <span class="muted">minutes</span><input name="minutes" type="number" min="0.016666666666666666" max="60" step="any" value="${h((task.timeoutMs ?? 3e5) / 6e4)}" required></label></div></section>`).join("");
|
|
20238
|
+
}
|
|
20239
|
+
function tasksForEntry(batch, entry) {
|
|
20240
|
+
const all = batch.tasks ?? [], entryTasks = Array.isArray(entry.tasks) ? entry.tasks : [], attempts = attemptsForEntry(batch, entry);
|
|
20241
|
+
const ids = new Set([...entryTasks.map((task) => task.id), ...attempts.map((attempt) => attempt.taskId)].filter(Boolean));
|
|
20242
|
+
const matches = all.filter((task) => ids.has(task.id) || task.entryId === entry.id || task.agentId === entry.agentId);
|
|
20243
|
+
if (matches.length) return matches;
|
|
20244
|
+
if (entryTasks.length) return entryTasks;
|
|
20245
|
+
return batch.entries?.length === 1 ? all : [];
|
|
20246
|
+
}
|
|
20247
|
+
function attemptsForEntry(batch, entry) {
|
|
20248
|
+
const all = batch.attempts ?? [], exact = all.filter((attempt) => attempt.entryId === entry.id);
|
|
20249
|
+
if (exact.length) return exact;
|
|
20250
|
+
const byAgent = all.filter((attempt) => attempt.agentId === entry.agentId);
|
|
20251
|
+
if (byAgent.length) return byAgent;
|
|
20252
|
+
return batch.entries?.length === 1 ? all : [];
|
|
20253
|
+
}
|
|
20254
|
+
function responseView(attempt) {
|
|
20255
|
+
if (typeof attempt.response === "string" && attempt.response.trim()) {
|
|
20256
|
+
const response = readableResponse(attempt.response);
|
|
20257
|
+
return `<section class="agent-response"><h2>Agent response</h2><div class="response-text">${h(response)}</div></section>`;
|
|
20359
20258
|
}
|
|
20360
|
-
return
|
|
20259
|
+
return `<p class="quiet-empty">${terminal(attempt.status) ? "No final response was captured." : "No final response yet."}</p>`;
|
|
20260
|
+
}
|
|
20261
|
+
|
|
20262
|
+
// frontend/src/ui.ts
|
|
20263
|
+
var STATUS = {
|
|
20264
|
+
passed: { label: "Passed", path: "M5.2 8.3l1.9 1.9 3.8-4.2" },
|
|
20265
|
+
failed: { label: "Failed", path: "M5.8 5.8l4.4 4.4M10.2 5.8l-4.4 4.4" },
|
|
20266
|
+
invalid: { label: "Invalid", path: "M8 4.8v3.6M8 10.9v.2" },
|
|
20267
|
+
skipped: { label: "Skipped", path: "M5.6 8h4.8" },
|
|
20268
|
+
running: { label: "Running", path: "M8 8h.01", dash: "30 10" },
|
|
20269
|
+
queued: { label: "Queued", path: "M8 5v3.2l2 1.3" },
|
|
20270
|
+
stopped: { label: "Stopped", path: "M6.3 6.3h3.4v3.4H6.3z" },
|
|
20271
|
+
error: { label: "Error", path: "M8 4.8v3.6M8 10.9v.2" },
|
|
20272
|
+
ungraded: { label: "Not graded", path: "M5.6 8h4.8" }
|
|
20273
|
+
};
|
|
20274
|
+
var statusLabel = (kind) => STATUS[kind].label;
|
|
20275
|
+
function glyph(kind, size = 16, label2) {
|
|
20276
|
+
const s = STATUS[kind];
|
|
20277
|
+
return `<svg class="c-glyph c-${kind}" width="${size}" height="${size}" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" ${label2 ? `role="img" aria-label="${h(label2)}"` : 'aria-hidden="true"'}><circle cx="8" cy="8" r="6.4"${s.dash ? ` stroke-dasharray="${s.dash}"` : ""}/><path d="${s.path}"/></svg>`;
|
|
20278
|
+
}
|
|
20279
|
+
var statusMark = (kind, label2 = statusLabel(kind)) => `<span class="c-status c-${kind}">${glyph(kind)}<span>${h(label2)}</span></span>`;
|
|
20280
|
+
var COPY = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5.5A1.5 1.5 0 0 1 6.5 4H15"/></svg>';
|
|
20281
|
+
var copyButton = (value, label2) => `<button type="button" class="c-copy" data-action="copy-text" data-value="${h(value)}" aria-label="${h(label2)}" title="${h(label2)}">${COPY}</button>`;
|
|
20282
|
+
var copyCommand = (command) => `<div class="c-command"><code>${h(command)}</code>${copyButton(command, "Copy command")}</div>`;
|
|
20283
|
+
function shortId(id, keep = 8) {
|
|
20284
|
+
const prefix = /^[a-z]+_/.exec(id)?.[0] ?? "";
|
|
20285
|
+
return id.length > prefix.length + keep + 2 ? `${prefix}\u2026${id.slice(-keep)}` : id;
|
|
20286
|
+
}
|
|
20287
|
+
var facts = (items, label2 = "Facts") => `<dl class="c-facts" aria-label="${h(label2)}">${items.map((f) => `<div><dt>${h(f.label)}</dt><dd class="c-fact-value${f.mono ? " mono" : ""}"${f.title ? ` title="${h(f.title)}"` : ""}>${f.html ?? h(f.value)}</dd>${f.sub ? `<dd class="c-fact-sub">${h(f.sub)}</dd>` : ""}</div>`).join("")}</dl>`;
|
|
20288
|
+
var stateCard = (title2, bodyHtml = "", actionHtml = "", kind = "empty") => `<section class="c-state c-state-${h(kind)}"><strong>${h(title2)}</strong>${bodyHtml ? `<p>${bodyHtml}</p>` : ""}${actionHtml}</section>`;
|
|
20289
|
+
var skeletonRows = (count3) => `<div class="c-skeleton" aria-busy="true" aria-label="Loading">${Array.from({ length: count3 }, () => "<div><i></i><i></i><i></i></div>").join("")}</div>`;
|
|
20290
|
+
var MINUTE = 6e4;
|
|
20291
|
+
var HOUR2 = 36e5;
|
|
20292
|
+
var DAY2 = 864e5;
|
|
20293
|
+
var timeOf = (value) => {
|
|
20294
|
+
const ms = typeof value === "number" ? value : Date.parse(String(value ?? ""));
|
|
20295
|
+
return Number.isFinite(ms) ? ms : NaN;
|
|
20296
|
+
};
|
|
20297
|
+
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
20298
|
+
function utcDay(value) {
|
|
20299
|
+
const ms = timeOf(value);
|
|
20300
|
+
if (!Number.isFinite(ms)) return "";
|
|
20301
|
+
const d = new Date(ms);
|
|
20302
|
+
return `${MONTHS[d.getUTCMonth()]} ${d.getUTCDate()}`;
|
|
20303
|
+
}
|
|
20304
|
+
function utcClock(value) {
|
|
20305
|
+
const ms = timeOf(value);
|
|
20306
|
+
return Number.isFinite(ms) ? `${new Date(ms).toISOString().slice(11, 19)} UTC` : "";
|
|
20361
20307
|
}
|
|
20362
|
-
function
|
|
20363
|
-
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20308
|
+
function utc(value) {
|
|
20309
|
+
const day = utcDay(value);
|
|
20310
|
+
return day ? `${day}, ${utcClock(value)}` : "";
|
|
20311
|
+
}
|
|
20312
|
+
function ago(value, now = Date.now()) {
|
|
20313
|
+
const ms = timeOf(value);
|
|
20314
|
+
if (!Number.isFinite(ms)) return "";
|
|
20315
|
+
const since = now - ms;
|
|
20316
|
+
if (since < 45e3) return "just now";
|
|
20317
|
+
if (since < HOUR2) return `${Math.max(1, Math.round(since / MINUTE))} min ago`;
|
|
20318
|
+
if (since < DAY2) return `${Math.round(since / HOUR2)} h ago`;
|
|
20319
|
+
return utcDay(ms);
|
|
20320
|
+
}
|
|
20321
|
+
var when = (value, now = Date.now()) => {
|
|
20322
|
+
const text2 = ago(value, now);
|
|
20323
|
+
return text2 ? `<time datetime="${h(new Date(timeOf(value)).toISOString())}" title="${h(utc(value))}">${h(text2)}</time>` : "";
|
|
20324
|
+
};
|
|
20325
|
+
function duration3(ms) {
|
|
20326
|
+
const n = Number(ms);
|
|
20327
|
+
if (ms === null || ms === void 0 || !Number.isFinite(n) || n < 0) return "\u2014";
|
|
20328
|
+
if (n < 1e4) return `${(n / 1e3).toFixed(1)} s`;
|
|
20329
|
+
const s = Math.round(n / 1e3);
|
|
20330
|
+
if (s < 60) return `${s} s`;
|
|
20331
|
+
if (s < 3600) return `${Math.floor(s / 60)} m ${String(s % 60).padStart(2, "0")} s`;
|
|
20332
|
+
return `${Math.floor(s / 3600)} h ${String(Math.floor(s / 60) % 60).padStart(2, "0")} m`;
|
|
20333
|
+
}
|
|
20334
|
+
|
|
20335
|
+
// cloud/shared/run-metadata.mjs
|
|
20336
|
+
function runNumberOf(value) {
|
|
20337
|
+
return Number.isSafeInteger(value) && value > 0 ? value : void 0;
|
|
20338
|
+
}
|
|
20339
|
+
function runLabel(run, fallback = run.id ?? run.runId ?? run.run_id ?? "") {
|
|
20340
|
+
const number4 = runNumberOf(run.runNumber ?? run.summary?.runNumber);
|
|
20341
|
+
return number4 === void 0 ? fallback : `#${number4}`;
|
|
20342
|
+
}
|
|
20343
|
+
function github2(value) {
|
|
20344
|
+
if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).sort().join(",") !== "repository,runId,serverUrl") throw new Error("Invalid GitHub Actions context.");
|
|
20345
|
+
const { repository, runId, serverUrl } = value;
|
|
20346
|
+
if (typeof repository !== "string" || !/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repository) || repository.length > 201 || repository.split("/").some((p) => p === "." || p === "..") || typeof runId !== "string" || !/^[1-9]\d{0,19}$/.test(runId)) throw new Error("Invalid GitHub Actions context.");
|
|
20347
|
+
let url3;
|
|
20367
20348
|
try {
|
|
20368
|
-
|
|
20349
|
+
url3 = new URL(serverUrl);
|
|
20369
20350
|
} catch {
|
|
20370
|
-
throw new Error("
|
|
20351
|
+
throw new Error("Invalid GitHub Actions server.");
|
|
20371
20352
|
}
|
|
20372
|
-
|
|
20373
|
-
|
|
20374
|
-
const ctx = {
|
|
20375
|
-
version: version2,
|
|
20376
|
-
defs,
|
|
20377
|
-
refs: /* @__PURE__ */ new Map(),
|
|
20378
|
-
processing: /* @__PURE__ */ new Set(),
|
|
20379
|
-
rootSchema: normalized,
|
|
20380
|
-
registry: params?.registry ?? globalRegistry
|
|
20381
|
-
};
|
|
20382
|
-
return convertSchema(normalized, ctx);
|
|
20353
|
+
if (typeof serverUrl !== "string" || serverUrl.length > 2048 || url3.protocol !== "https:" || url3.username || url3.password || url3.search || url3.hash || url3.pathname !== "/") throw new Error("Invalid GitHub Actions server.");
|
|
20354
|
+
return { repository, runId, serverUrl: url3.origin };
|
|
20383
20355
|
}
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
type: "lazy",
|
|
20398
|
-
getter: () => cache.get(s)
|
|
20399
|
-
});
|
|
20400
|
-
}
|
|
20401
|
-
if (cached2 !== void 0)
|
|
20402
|
-
return cached2;
|
|
20403
|
-
cache.set(s, RESOLVING);
|
|
20404
|
-
const inner = mapInner(s);
|
|
20405
|
-
const mapped = fn(inner, inner !== s);
|
|
20406
|
-
cache.set(s, mapped);
|
|
20407
|
-
return mapped;
|
|
20408
|
-
}
|
|
20409
|
-
function mapInner(s) {
|
|
20410
|
-
const def = s._zod.def;
|
|
20411
|
-
const kind = def.type;
|
|
20412
|
-
switch (kind) {
|
|
20413
|
-
case "object": {
|
|
20414
|
-
const oldShape = def.shape;
|
|
20415
|
-
const keys2 = Object.keys(oldShape);
|
|
20416
|
-
let changed = false;
|
|
20417
|
-
const newShape = {};
|
|
20418
|
-
for (const k of keys2) {
|
|
20419
|
-
const mapped = run(oldShape[k]);
|
|
20420
|
-
if (mapped !== oldShape[k])
|
|
20421
|
-
changed = true;
|
|
20422
|
-
newShape[k] = mapped;
|
|
20423
|
-
}
|
|
20424
|
-
let newCatchall = def.catchall;
|
|
20425
|
-
if (def.catchall) {
|
|
20426
|
-
newCatchall = run(def.catchall);
|
|
20427
|
-
if (newCatchall !== def.catchall)
|
|
20428
|
-
changed = true;
|
|
20429
|
-
}
|
|
20430
|
-
return changed ? clone(s, { ...def, shape: newShape, catchall: newCatchall }) : s;
|
|
20431
|
-
}
|
|
20432
|
-
case "array": {
|
|
20433
|
-
const mapped = run(def.element);
|
|
20434
|
-
return mapped === def.element ? s : clone(s, { ...def, element: mapped });
|
|
20435
|
-
}
|
|
20436
|
-
case "tuple": {
|
|
20437
|
-
const oldItems = def.items;
|
|
20438
|
-
let changed = false;
|
|
20439
|
-
const newItems = [];
|
|
20440
|
-
for (const item of oldItems) {
|
|
20441
|
-
const mapped = run(item);
|
|
20442
|
-
if (mapped !== item)
|
|
20443
|
-
changed = true;
|
|
20444
|
-
newItems.push(mapped);
|
|
20445
|
-
}
|
|
20446
|
-
let newRest = def.rest;
|
|
20447
|
-
if (def.rest) {
|
|
20448
|
-
newRest = run(def.rest);
|
|
20449
|
-
if (newRest !== def.rest)
|
|
20450
|
-
changed = true;
|
|
20451
|
-
}
|
|
20452
|
-
return changed ? clone(s, { ...def, items: newItems, rest: newRest }) : s;
|
|
20453
|
-
}
|
|
20454
|
-
case "record":
|
|
20455
|
-
case "map": {
|
|
20456
|
-
const newKey = run(def.keyType);
|
|
20457
|
-
const newVal = run(def.valueType);
|
|
20458
|
-
return newKey === def.keyType && newVal === def.valueType ? s : clone(s, { ...def, keyType: newKey, valueType: newVal });
|
|
20459
|
-
}
|
|
20460
|
-
case "set": {
|
|
20461
|
-
const newVal = run(def.valueType);
|
|
20462
|
-
return newVal === def.valueType ? s : clone(s, { ...def, valueType: newVal });
|
|
20463
|
-
}
|
|
20464
|
-
case "union": {
|
|
20465
|
-
const oldOptions = def.options;
|
|
20466
|
-
let changed = false;
|
|
20467
|
-
const newOptions = [];
|
|
20468
|
-
for (const opt of oldOptions) {
|
|
20469
|
-
const mapped = run(opt);
|
|
20470
|
-
if (mapped !== opt)
|
|
20471
|
-
changed = true;
|
|
20472
|
-
newOptions.push(mapped);
|
|
20473
|
-
}
|
|
20474
|
-
return changed ? clone(s, { ...def, options: newOptions }) : s;
|
|
20475
|
-
}
|
|
20476
|
-
case "intersection": {
|
|
20477
|
-
const newLeft = run(def.left);
|
|
20478
|
-
const newRight = run(def.right);
|
|
20479
|
-
return newLeft === def.left && newRight === def.right ? s : clone(s, { ...def, left: newLeft, right: newRight });
|
|
20480
|
-
}
|
|
20481
|
-
case "optional":
|
|
20482
|
-
case "nullable":
|
|
20483
|
-
case "default":
|
|
20484
|
-
case "prefault":
|
|
20485
|
-
case "catch":
|
|
20486
|
-
case "readonly":
|
|
20487
|
-
case "nonoptional":
|
|
20488
|
-
case "promise":
|
|
20489
|
-
case "success": {
|
|
20490
|
-
const newInner = run(def.innerType);
|
|
20491
|
-
return newInner === def.innerType ? s : clone(s, { ...def, innerType: newInner });
|
|
20492
|
-
}
|
|
20493
|
-
case "pipe": {
|
|
20494
|
-
const newIn = run(def.in);
|
|
20495
|
-
const newOut = run(def.out);
|
|
20496
|
-
return newIn === def.in && newOut === def.out ? s : clone(s, { ...def, in: newIn, out: newOut });
|
|
20497
|
-
}
|
|
20498
|
-
case "function": {
|
|
20499
|
-
const newInput = run(def.input);
|
|
20500
|
-
const newOutput = run(def.output);
|
|
20501
|
-
return newInput === def.input && newOutput === def.output ? s : clone(s, { ...def, input: newInput, output: newOutput });
|
|
20502
|
-
}
|
|
20503
|
-
case "lazy": {
|
|
20504
|
-
const original2 = def.getter;
|
|
20505
|
-
const { _cachedInner, ...rest } = def;
|
|
20506
|
-
return clone(s, { ...rest, getter: () => run(original2()) });
|
|
20507
|
-
}
|
|
20508
|
-
// A leaf by choice: `parts` are regex fragments, not data positions.
|
|
20509
|
-
case "template_literal":
|
|
20510
|
-
// Leaves.
|
|
20511
|
-
case "string":
|
|
20512
|
-
case "number":
|
|
20513
|
-
case "int":
|
|
20514
|
-
case "boolean":
|
|
20515
|
-
case "bigint":
|
|
20516
|
-
case "symbol":
|
|
20517
|
-
case "undefined":
|
|
20518
|
-
case "null":
|
|
20519
|
-
case "void":
|
|
20520
|
-
case "never":
|
|
20521
|
-
case "any":
|
|
20522
|
-
case "unknown":
|
|
20523
|
-
case "date":
|
|
20524
|
-
case "nan":
|
|
20525
|
-
case "enum":
|
|
20526
|
-
case "literal":
|
|
20527
|
-
case "file":
|
|
20528
|
-
case "transform":
|
|
20529
|
-
case "custom":
|
|
20530
|
-
return s;
|
|
20531
|
-
default: {
|
|
20532
|
-
kind;
|
|
20533
|
-
return s;
|
|
20356
|
+
function validateRunMetadata(value) {
|
|
20357
|
+
if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).some((k) => !["runNumber", "startedBy"].includes(k))) throw new Error("Invalid run metadata.");
|
|
20358
|
+
if (value.runNumber !== void 0 && runNumberOf(value.runNumber) === void 0) throw new Error("Invalid run number.");
|
|
20359
|
+
if (value.startedBy !== void 0) {
|
|
20360
|
+
const by = value.startedBy;
|
|
20361
|
+
if (!by || typeof by !== "object" || Array.isArray(by) || Object.keys(by).some((k) => !["source", "email", "repository", "url"].includes(k)) || !["console", "cli", "github-actions"].includes(by.source)) throw new Error("Invalid run starter.");
|
|
20362
|
+
if (by.email !== void 0 && (typeof by.email !== "string" || by.email.length > 320 || /[\x00-\x1f\x7f]/.test(by.email))) throw new Error("Invalid run starter email.");
|
|
20363
|
+
if (by.source === "github-actions") {
|
|
20364
|
+
let u;
|
|
20365
|
+
try {
|
|
20366
|
+
u = new URL(by.url);
|
|
20367
|
+
} catch {
|
|
20368
|
+
throw new Error("Invalid workflow URL.");
|
|
20534
20369
|
}
|
|
20535
|
-
|
|
20370
|
+
const match = /^\/(.+)\/actions\/runs\/(\d+)$/.exec(u.pathname);
|
|
20371
|
+
if (!match || match[1] !== by.repository || u.search || u.hash || u.username || u.password) throw new Error("Invalid workflow URL.");
|
|
20372
|
+
github2({ repository: by.repository, runId: match[2], serverUrl: u.origin });
|
|
20373
|
+
} else if (by.repository !== void 0 || by.url !== void 0) throw new Error("Invalid run starter context.");
|
|
20374
|
+
}
|
|
20375
|
+
return value;
|
|
20376
|
+
}
|
|
20377
|
+
function starterLabel(by) {
|
|
20378
|
+
if (!by) return "";
|
|
20379
|
+
return [by.email, by.source === "github-actions" ? "GitHub Actions" : by.source === "cli" ? "CLI" : "", by.repository].filter(Boolean).join(" \xB7 ");
|
|
20380
|
+
}
|
|
20381
|
+
|
|
20382
|
+
// cloud/shared/outcome-counts.mjs
|
|
20383
|
+
var count = (value) => Number.isSafeInteger(value) && value >= 0 ? value : void 0;
|
|
20384
|
+
function attemptOutcome(attempt, graded) {
|
|
20385
|
+
if (attempt.valid === false || attempt.exit === "invalid" || attempt.outcome === "invalid") return "invalid";
|
|
20386
|
+
if (attempt.outcome === "skipped" || attempt.outcome === "xfailed") return "skipped";
|
|
20387
|
+
if (graded === false || attempt.graded === false || attempt.outcome === "ungraded") return "ungraded";
|
|
20388
|
+
if (attempt.outcome === "passed" || attempt.outcome === "failed") return attempt.outcome;
|
|
20389
|
+
if (typeof attempt.passed === "boolean") return attempt.passed ? "passed" : "failed";
|
|
20390
|
+
return ["completed", "error", "stopped"].includes(attempt.status) ? "ungraded" : "pending";
|
|
20391
|
+
}
|
|
20392
|
+
function countAttempts(attempts, requested, graded) {
|
|
20393
|
+
const counts = { requested: Math.max(count(requested) ?? attempts.length, attempts.length), completed: 0, valid: 0, passed: 0, failed: 0, invalid: 0, ungraded: 0, skipped: 0, pending: 0 };
|
|
20394
|
+
for (const attempt of attempts) {
|
|
20395
|
+
const outcome = attemptOutcome(attempt, graded);
|
|
20396
|
+
counts[outcome]++;
|
|
20397
|
+
if (outcome !== "pending") counts.completed++;
|
|
20398
|
+
if (["passed", "failed", "ungraded"].includes(outcome)) counts.valid++;
|
|
20536
20399
|
}
|
|
20537
|
-
|
|
20400
|
+
counts.pending += counts.requested - attempts.length;
|
|
20401
|
+
return counts;
|
|
20538
20402
|
}
|
|
20539
20403
|
|
|
20540
|
-
//
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20404
|
+
// cloud/shared/repair-status.mjs
|
|
20405
|
+
var integer2 = (value) => Number.isSafeInteger(value) && value >= 0;
|
|
20406
|
+
var keys = (value, names) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === names.length && names.every((name) => Object.hasOwn(value, name));
|
|
20407
|
+
var countKeys = ["requested", "completed", "valid", "invalid", "skipped"];
|
|
20408
|
+
var checkKeys = ["check", "production", "passed", "total", "invalid", "skipped"];
|
|
20409
|
+
function validRepairEvidence(evidence) {
|
|
20410
|
+
if (!keys(evidence, [...countKeys, "checks"]) || !countKeys.every((key) => integer2(evidence[key])) || evidence.completed > evidence.requested || evidence.valid + evidence.invalid + evidence.skipped !== evidence.completed || !Array.isArray(evidence.checks)) return false;
|
|
20411
|
+
const names = /* @__PURE__ */ new Set();
|
|
20412
|
+
return evidence.checks.every((check2) => {
|
|
20413
|
+
if (!keys(check2, checkKeys) || typeof check2.check !== "string" || !check2.check || names.has(check2.check) || !["passed", "failed", "unknown"].includes(check2.production) || !["passed", "total", "invalid", "skipped"].every((key) => integer2(check2[key])) || check2.passed + check2.invalid + check2.skipped > check2.total || check2.total > evidence.requested) return false;
|
|
20414
|
+
names.add(check2.check);
|
|
20415
|
+
return true;
|
|
20549
20416
|
});
|
|
20550
20417
|
}
|
|
20418
|
+
var status = (kind, label2, tone2 = "neutral") => ({ kind, label: label2, tone: tone2 });
|
|
20419
|
+
var incomplete = () => status("incomplete", "Comparison incomplete");
|
|
20420
|
+
var original = () => status("not-reproduced", "Original failure not reproduced");
|
|
20421
|
+
var legacy = {
|
|
20422
|
+
reproduced: ["Same failure", "fail"],
|
|
20423
|
+
partly: ["Partly the same", "fail"],
|
|
20424
|
+
crashed: ["Agent crashed", "fail"],
|
|
20425
|
+
matches: ["Matches production", "pass"],
|
|
20426
|
+
differs: ["New failure", "warn"],
|
|
20427
|
+
unknown: ["Production ungraded", "neutral"],
|
|
20428
|
+
ungraded: ["Not compared", "neutral"]
|
|
20429
|
+
};
|
|
20430
|
+
function repairStatus(row2) {
|
|
20431
|
+
const evidence = row2?.repairEvidence;
|
|
20432
|
+
if (evidence !== void 0) {
|
|
20433
|
+
if (!validRepairEvidence(evidence) || row2.error !== void 0 || evidence.requested === 0 || evidence.completed !== evidence.requested || evidence.valid !== evidence.requested || evidence.invalid !== 0 || evidence.skipped !== 0 || evidence.checks.some((check2) => check2.total !== evidence.requested || check2.invalid !== 0 || check2.skipped !== 0)) return incomplete();
|
|
20434
|
+
const failed = evidence.checks.filter((check2) => check2.production === "failed");
|
|
20435
|
+
if (row2.verdict !== "crashed" && failed.length && failed.every((check2) => check2.passed === evidence.requested)) {
|
|
20436
|
+
return evidence.checks.every((check2) => check2.passed === evidence.requested) ? status("fixed", "Fixed", "pass") : status("other-checks-failed", "Original failure cleared \xB7 Other checks failed", "warn");
|
|
20437
|
+
}
|
|
20438
|
+
}
|
|
20439
|
+
if (row2?.verdict === "not-reproduced") return original();
|
|
20440
|
+
const [label2, tone2] = Object.hasOwn(legacy, row2?.verdict) ? legacy[row2.verdict] : ["Not compared", "neutral"];
|
|
20441
|
+
return status(row2?.verdict ?? "ungraded", label2, tone2);
|
|
20442
|
+
}
|
|
20443
|
+
function productionStatus(reproduction) {
|
|
20444
|
+
const rows3 = Array.isArray(reproduction) ? reproduction.filter((row2) => row2 && typeof row2 === "object") : [];
|
|
20445
|
+
if (!rows3.length) return void 0;
|
|
20446
|
+
const states = rows3.map(repairStatus);
|
|
20447
|
+
if (states.length === 1) return states[0];
|
|
20448
|
+
if (states.some((state) => state.kind === "incomplete")) return incomplete();
|
|
20449
|
+
const again = states.filter((state) => ["reproduced", "partly", "crashed"].includes(state.kind)).length;
|
|
20450
|
+
if (again) return status("reproduced", `${again} of ${rows3.length} fail again`, "fail");
|
|
20451
|
+
if (states.some((state) => state.kind === "other-checks-failed")) return status("other-checks-failed", "Original failure cleared \xB7 Other checks failed", "warn");
|
|
20452
|
+
const differs = states.filter((state) => state.kind === "differs").length;
|
|
20453
|
+
if (differs) return status("differs", `${differs} new ${differs === 1 ? "failure" : "failures"}`, "warn");
|
|
20454
|
+
if (states.some((state) => state.kind === "not-reproduced")) return original();
|
|
20455
|
+
if (states.some((state) => !["fixed", "matches"].includes(state.kind))) return status("ungraded", "Not compared");
|
|
20456
|
+
const fixed = states.filter((state) => state.kind === "fixed").length;
|
|
20457
|
+
return fixed ? status("fixed", `${fixed} of ${rows3.length} fixed`, "pass") : status("matches", "Matches production", "pass");
|
|
20458
|
+
}
|
|
20551
20459
|
|
|
20552
|
-
//
|
|
20553
|
-
function
|
|
20554
|
-
|
|
20555
|
-
|
|
20556
|
-
|
|
20557
|
-
|
|
20460
|
+
// frontend/src/runs-page.ts
|
|
20461
|
+
function starterHtml(run) {
|
|
20462
|
+
const by = run.startedBy ?? run.origin?.startedBy;
|
|
20463
|
+
try {
|
|
20464
|
+
validateRunMetadata({ startedBy: by });
|
|
20465
|
+
} catch {
|
|
20466
|
+
return "";
|
|
20467
|
+
}
|
|
20468
|
+
const label2 = h(starterLabel(by));
|
|
20469
|
+
return by?.url ? `<a href="${h(by.url)}" target="_blank" rel="noopener noreferrer">${label2}</a>` : label2;
|
|
20558
20470
|
}
|
|
20559
|
-
|
|
20560
|
-
|
|
20471
|
+
var SOURCES = { console: "Console", cli: "CLI", ci: "CI", cloud: "Cloud" };
|
|
20472
|
+
var TARGETS = { local: "Local", docker: "Docker", hosted: "Hosted", cloud: "Cloud" };
|
|
20473
|
+
var RANGES = { "24h": ["24 h", 864e5], "7d": ["7 d", 7 * 864e5], "30d": ["30 d", 30 * 864e5] };
|
|
20474
|
+
var PAGE = 25;
|
|
20475
|
+
function originLabel(origin) {
|
|
20476
|
+
if (!origin?.source) return "";
|
|
20477
|
+
const commit = origin.commit ? `${String(origin.commit).slice(0, 7)}${origin.dirty ? " + changes" : ""}` : "";
|
|
20478
|
+
const target = String(origin.target ?? "").toLowerCase();
|
|
20479
|
+
return [SOURCES[origin.source] ?? String(origin.source), target === origin.source ? "" : target, commit].filter(Boolean).join(" \xB7 ");
|
|
20561
20480
|
}
|
|
20562
|
-
function
|
|
20563
|
-
|
|
20481
|
+
function whereKey(origin) {
|
|
20482
|
+
const source = String(origin?.source ?? ""), target = String(origin?.target ?? "");
|
|
20483
|
+
return source === "cloud" || target === "cloud" ? "cloud" : source === "ci" ? "ci" : target === "docker" ? "docker" : target === "hosted" ? "hosted" : source === "console" || !source ? "console" : "local";
|
|
20564
20484
|
}
|
|
20565
|
-
|
|
20566
|
-
|
|
20567
|
-
|
|
20568
|
-
|
|
20569
|
-
|
|
20570
|
-
|
|
20571
|
-
|
|
20572
|
-
|
|
20485
|
+
var WHERE = { cloud: "Cloud", ci: "CI", local: "Local", docker: "Docker", hosted: "Hosted", console: "Console" };
|
|
20486
|
+
function runCounts(run) {
|
|
20487
|
+
const summary = run.summary, tasks = run.tasks ?? [], attempts = run.attempts ?? [];
|
|
20488
|
+
const verified = summary?.verdictVersion === 2 ? summary.counts : void 0;
|
|
20489
|
+
const declared = tasks.length && tasks.every((task) => Number.isSafeInteger(task.attempts) && task.attempts > 0) ? tasks.reduce((sum2, task) => sum2 + task.attempts, 0) : void 0;
|
|
20490
|
+
const requested = verified?.requested ?? declared;
|
|
20491
|
+
const counts = countAttempts(attempts, requested, summary?.graded);
|
|
20492
|
+
const graded = counts.passed + counts.failed > 0;
|
|
20493
|
+
return { ...counts, requested, total: counts.requested, graded, finished: batchCounts(run).finished };
|
|
20573
20494
|
}
|
|
20574
|
-
function
|
|
20575
|
-
|
|
20576
|
-
|
|
20577
|
-
|
|
20578
|
-
|
|
20579
|
-
|
|
20495
|
+
function runStatus(run) {
|
|
20496
|
+
if (run.status === "queued") return "queued";
|
|
20497
|
+
if (!terminal(run.status)) return "running";
|
|
20498
|
+
const c = runCounts(run);
|
|
20499
|
+
if (run.status === "stopped" && !c.graded) return "stopped";
|
|
20500
|
+
if (run.status === "error" && !c.graded) return "error";
|
|
20501
|
+
if (run.verdict === "ungraded") return "ungraded";
|
|
20502
|
+
if (!c.graded) return c.invalid ? "invalid" : c.skipped && c.skipped === c.total ? "skipped" : "ungraded";
|
|
20503
|
+
if (run.verdict === "pass" || run.verdict === "fail") return run.verdict === "pass" ? "passed" : "failed";
|
|
20504
|
+
return c.passed === c.total ? "passed" : "failed";
|
|
20580
20505
|
}
|
|
20581
|
-
|
|
20582
|
-
|
|
20583
|
-
|
|
20584
|
-
|
|
20585
|
-
|
|
20586
|
-
boolean: () => boolean3,
|
|
20587
|
-
date: () => date4,
|
|
20588
|
-
number: () => number3,
|
|
20589
|
-
string: () => string3
|
|
20590
|
-
});
|
|
20591
|
-
function string3(params) {
|
|
20592
|
-
return _coercedString(ZodString, params);
|
|
20506
|
+
function runTitle(run) {
|
|
20507
|
+
const tasks = run.tasks ?? [];
|
|
20508
|
+
if (run.groupName) return String(run.groupName);
|
|
20509
|
+
if (tasks.length === 1) return shortPrompt(tasks[0].prompt) || String(tasks[0].title || batchTitle(run));
|
|
20510
|
+
return tasks.length ? `${tasks.length} tests` : batchTitle(run);
|
|
20593
20511
|
}
|
|
20594
|
-
|
|
20595
|
-
|
|
20512
|
+
var productionBadge = (text2, tone2 = "neutral") => `<span class="k-badge ${tone2 === "pass" ? "pass" : tone2 === "fail" ? "fail" : tone2 === "warn" ? "none" : ""}">${h(text2)}</span>`;
|
|
20513
|
+
function productionTag(reproduction) {
|
|
20514
|
+
const status2 = productionStatus(reproduction);
|
|
20515
|
+
return status2 ? productionBadge(status2.label, status2.tone) : "";
|
|
20596
20516
|
}
|
|
20597
|
-
function
|
|
20598
|
-
|
|
20517
|
+
function baselineNote(run) {
|
|
20518
|
+
const comparison = run.comparison;
|
|
20519
|
+
if (!comparison || !Array.isArray(comparison.scenes)) return void 0;
|
|
20520
|
+
const name = comparison.baselineRunId ? `vs ${shortId(String(comparison.baselineRunId))}` : "vs baseline";
|
|
20521
|
+
const delta = comparison.scenes.length === 1 ? Number(comparison.scenes[0].delta) : NaN;
|
|
20522
|
+
const rounded = Math.round(Math.abs(delta) * 100);
|
|
20523
|
+
const points = Number.isFinite(delta) ? delta === 0 ? "0 pts" : `${delta > 0 ? "+" : "\u2212"}${rounded ? `${rounded} pts` : "<1 pt"}` : "";
|
|
20524
|
+
if (comparison.regressed) {
|
|
20525
|
+
const checks2 = (comparison.droppedChecks ?? []).map((check2) => `${comparison.scenes.length > 1 ? `${check2.sceneId} / ` : ""}${check2.check}: ${check2.before.passed}/${check2.before.total} \u2192 ${check2.after.passed}/${check2.after.total}`);
|
|
20526
|
+
return { text: `${["regressed", ...checks2, points].filter(Boolean).join(" \xB7 ")} ${name}`, tone: "fail" };
|
|
20527
|
+
}
|
|
20528
|
+
if (comparison.scenes.length === 1) {
|
|
20529
|
+
if (Number.isFinite(delta)) return { text: delta ? `${points} ${name}` : `no change ${name}`, tone: delta > 0 ? "pass" : delta < 0 ? "fail" : "neutral" };
|
|
20530
|
+
}
|
|
20531
|
+
return { text: `held ${name}`, tone: "neutral" };
|
|
20599
20532
|
}
|
|
20600
|
-
function
|
|
20601
|
-
|
|
20533
|
+
function attemptStates(run) {
|
|
20534
|
+
const attempts = run.attempts ?? [], c = runCounts(run);
|
|
20535
|
+
const states = attempts.map((a) => ["passed", "failed", "invalid", "skipped", "ungraded"].includes(a.outcome) ? a.outcome : ["running", "starting"].includes(a.status) ? "running" : a.status === "queued" ? "queued" : terminal(a.status) ? "done" : "queued");
|
|
20536
|
+
while (states.length < c.total) states.push("queued");
|
|
20537
|
+
return states;
|
|
20602
20538
|
}
|
|
20603
|
-
function
|
|
20604
|
-
|
|
20539
|
+
function runMs(run, now) {
|
|
20540
|
+
const start = timeOf(run.createdAt), end = timeOf(run.finishedAt);
|
|
20541
|
+
if (!Number.isFinite(start)) return void 0;
|
|
20542
|
+
if (Number.isFinite(end)) return end - start;
|
|
20543
|
+
return terminal(run.status) ? void 0 : now - start;
|
|
20544
|
+
}
|
|
20545
|
+
function view(run, now) {
|
|
20546
|
+
return { run, status: runStatus(run), title: runTitle(run), agent: String(run.agentName ?? run.entries?.[0]?.agentName ?? ""), command: String(run.agentCommand ?? ""), where: whereKey(run.origin), ms: runMs(run, now) };
|
|
20547
|
+
}
|
|
20548
|
+
var resultClass = (state) => state === "passed" ? "pass" : state === "failed" ? "fail" : state === "running" ? "run" : state === "queued" ? "queue" : "none";
|
|
20549
|
+
var resultLabel = (state) => state === "done" || state === "ungraded" ? "No result \xB7 Ungraded" : statusLabel(state);
|
|
20550
|
+
var resultBadge = (state) => `<span class="k-badge ${["passed", "failed"].includes(state) ? resultClass(state) : ["running", "queued", "stopped"].includes(state) ? "" : "none"}">${h(resultLabel(state))}</span>`;
|
|
20551
|
+
var resultIcon = (state) => ["running", "queued"].includes(state) ? `<span class="k-sq ${resultClass(state)}" role="img" aria-label="${h(resultLabel(state))}"></span>` : `<span class="k-icon ${resultClass(state)}" role="img" aria-label="${h(resultLabel(state))}"></span>`;
|
|
20552
|
+
function attemptSquares(states, links = [], labels = []) {
|
|
20553
|
+
return `<span class="k-squares">${states.map((state, i) => {
|
|
20554
|
+
const label2 = labels[i] ?? `Attempt ${i + 1}: ${resultLabel(state)}`;
|
|
20555
|
+
const attrs = `class="k-sq ${resultClass(state)}" role="img" aria-label="${h(label2)}" title="${h(label2)}"`;
|
|
20556
|
+
return links[i] ? `<a ${attrs} href="${h(links[i])}" data-nav></a>` : `<span ${attrs}></span>`;
|
|
20557
|
+
}).join("")}</span>`;
|
|
20558
|
+
}
|
|
20559
|
+
function row(item, now, compared, references) {
|
|
20560
|
+
const run = item.run, c = runCounts(run), baseline = baselineNote(run);
|
|
20561
|
+
const baselineId = run.comparison?.baselineRunId;
|
|
20562
|
+
const baselineText = baseline ? `<span class="k-${baseline.tone === "fail" ? "fail-text" : baseline.tone === "pass" ? "pass-text" : "muted"}">${h(baseline.text)}</span>` : "\u2014";
|
|
20563
|
+
const baselineLink = baseline && baselineId ? `<a href="/playgrounds/${encodeURIComponent(String(baselineId))}" data-nav>${baselineText}</a>${references.get(String(baselineId))?.origin?.branch === "main" ? '<span class="k-meta"> \xB7 main</span>' : ""}` : baselineText;
|
|
20564
|
+
const attemptLinks = whereKey(run.origin) === "cloud" && !terminal(run.status) ? [] : (run.attempts ?? []).map((a) => a.id && a.taskId ? `/playgrounds/${encodeURIComponent(String(run.id))}?task=${encodeURIComponent(String(a.taskId))}&attempt=${encodeURIComponent(String(a.id))}` : void 0);
|
|
20565
|
+
const pending = item.status === "queued" ? queueLabel(run.queue) || "Queued" : item.status === "running" ? "Graded as attempts finish" : "";
|
|
20566
|
+
const note = [pending, c.graded && !c.requested ? "Rerun to record requested attempts" : "", c.invalid ? `${c.invalid} invalid` : "", c.skipped ? `${c.skipped} skipped` : "", c.ungraded ? `${c.ungraded} ungraded` : "", !c.graded && !pending && !c.invalid && !c.skipped ? "No checks evaluated" : ""].filter(Boolean).join(" \xB7 ");
|
|
20567
|
+
return `<tr><td class="wrap"><a class="rt-row" href="/playgrounds/${encodeURIComponent(String(run.id))}" data-nav><span class="rt-result"><span class="c-${item.status}">${resultBadge(item.status)}</span></span><span class="k-name">${h(item.title)}</span>${run.origin?.branch ? `<span class="k-meta">${h(run.origin.branch)}</span>` : ""}<span class="k-id">${h(runLabel(run, `#${shortId(String(run.id))}`))}</span></a></td><td class="wrap"><span class="k-name">${h(item.agent || "\u2014")}</span>${item.command ? `<div class="k-id k-clamp" title="${h(item.command)}">${h(item.command)}</div>` : ""}</td><td>${attemptSquares(attemptStates(run), attemptLinks)}<div class="k-meta">${h(`${c.finished} / ${c.total} done`)}</div></td><td class="num">${c.graded && c.requested ? `${c.passed}/${c.requested}` : "\u2014"}${note ? `<div class="k-meta">${h(note)}</div>` : ""}</td>` + (compared ? `<td>${baselineLink}</td>` : "") + `<td class="wrap k-meta">${h(originLabel(run.origin) || "Console")}${starterHtml(run) ? `<div>${starterHtml(run)}</div>` : ""}</td><td class="wrap num k-meta">${when(run.createdAt, now)}<div>${h(item.status === "queued" ? "Queued" : duration3(item.ms))}</div></td></tr>`;
|
|
20568
|
+
}
|
|
20569
|
+
function runsTable(runs, options = {}) {
|
|
20570
|
+
const now = options.now ?? Date.now(), compared = runs.some((run) => baselineNote(run));
|
|
20571
|
+
const references = new Map((options.referenceRuns ?? runs).map((run) => [String(run.id), run]));
|
|
20572
|
+
return `<section class="k-card runs-v2" aria-label="Runs"><div class="k-scroll"><table class="k-table wider"><thead><tr><th>Run</th><th>Agent</th><th>Results</th><th class="num">Passed</th>${compared ? "<th>Baseline</th>" : ""}<th>From</th><th class="num">When</th></tr></thead><tbody>${runs.map((run) => row(view(run, now), now, compared, references)).join("")}</tbody></table></div></section>`;
|
|
20573
|
+
}
|
|
20574
|
+
function filterUrl(filters, change) {
|
|
20575
|
+
const next = { ...filters, ...change }, params = new URLSearchParams();
|
|
20576
|
+
for (const key of ["q", "range", "agent", "result", "where", "commit", "source", "target", "limit"]) if (next[key] !== void 0 && next[key] !== "" && !(key === "limit" && Number(next[key]) === PAGE)) params.set(key, String(next[key]));
|
|
20577
|
+
return "/playgrounds" + (params.size ? "?" + params : "");
|
|
20578
|
+
}
|
|
20579
|
+
var RESULT_ORDER = ["passed", "failed", "invalid", "skipped", "running", "queued", "stopped", "error", "ungraded"];
|
|
20580
|
+
function runsPage(runs, filters, options = {}) {
|
|
20581
|
+
const now = options.now ?? Date.now(), range = RANGES[filters.range ?? ""] ? filters.range : "";
|
|
20582
|
+
const head2 = (meta4) => `<header class="k-head"><div class="k-title"><h1>Runs</h1>${meta4 ? `<p class="k-sub">${h(meta4)}</p>` : ""}</div><div class="k-actions"><nav class="k-seg" aria-label="Time range">${[["", "All"], ...Object.entries(RANGES).map(([key, [label2]]) => [key, label2])].map(([key, label2]) => `<a href="${h(filterUrl(filters, { range: key, limit: void 0 }))}" data-nav${key === range ? ' aria-current="page"' : ""}>${h(label2)}</a>`).join("")}</nav>${copyCommand("ancha run")}</div></header>`;
|
|
20583
|
+
if (!runs.length) return head2("") + stateCard("No runs yet", options.emptyHtml ?? "", copyCommand("ancha run"));
|
|
20584
|
+
const all = runs.map((run) => view(run, now)).sort((a, b) => timeOf(b.run.createdAt) - timeOf(a.run.createdAt) || String(b.run.id).localeCompare(String(a.run.id)));
|
|
20585
|
+
const inRange = range ? all.filter((item) => now - timeOf(item.run.createdAt) <= RANGES[range][1]) : all;
|
|
20586
|
+
const values = (pick2, chosen) => [...new Set([...all.map(pick2), chosen].filter((v) => Boolean(v)))];
|
|
20587
|
+
const query = String(filters.q ?? "").trim().toLowerCase();
|
|
20588
|
+
const matches = (item) => !query || [item.title, item.run.origin?.branch, item.run.id, runLabel(item.run), item.agent, item.command, item.run.test?.name, ...(item.run.tasks ?? []).flatMap((t) => [t.id, t.title, t.prompt])].some((v) => String(v ?? "").toLowerCase().includes(query));
|
|
20589
|
+
const shown = inRange.filter((item) => matches(item) && (!filters.agent || item.agent === filters.agent || item.run.agentId === filters.agent || item.run.entries?.some((entry) => entry.agentId === filters.agent)) && (!filters.result || item.status === filters.result) && (!filters.where || item.where === filters.where) && (!filters.commit || item.run.origin?.commit === filters.commit) && (!filters.source || item.run.origin?.source === filters.source) && (!filters.target || item.run.origin?.target === filters.target));
|
|
20590
|
+
const select = (name, label2, choices, all2) => `<select class="k-filter" name="${name}" aria-label="${h(label2)}" data-run-filter><option value="">${h(all2)}</option>${choices.map(([value, text2]) => `<option value="${h(value)}" ${filters[name] === value ? "selected" : ""}>${h(text2)}</option>`).join("")}</select>`;
|
|
20591
|
+
const commits = values((item) => item.run.origin?.commit, filters.commit);
|
|
20592
|
+
const named2 = filters.agent ? all.find((item) => item.run.agentId === filters.agent)?.agent : void 0;
|
|
20593
|
+
const agentChoices = values((item) => item.agent, named2 ? void 0 : filters.agent).map((v) => [v === named2 ? filters.agent : v, v]);
|
|
20594
|
+
const legacy2 = ["range"].filter((key) => filters[key]).map((key) => `<input type="hidden" name="${key}" value="${h(filters[key])}">`).join("");
|
|
20595
|
+
const bar = `<form class="runs-filters k-filters" aria-label="Filter runs" role="search">${legacy2}<input class="k-field grow" aria-label="Search runs" type="search" name="q" value="${h(filters.q ?? "")}" placeholder="Search by request, test or run id" data-run-search>` + select("agent", "Agent", agentChoices, "All agents") + select("result", "Result", RESULT_ORDER.filter((kind) => all.some((item) => item.status === kind) || filters.result === kind).map((kind) => [kind, statusLabel(kind)]), "Any result") + select("where", "Where", values((item) => item.where, filters.where).map((v) => [v, WHERE[v] ?? v]), "Anywhere") + select("source", "Source", values((item) => item.run.origin?.source, filters.source).map((v) => [v, SOURCES[v] ?? v]), "Any source") + select("target", "Target", values((item) => item.run.origin?.target, filters.target).map((v) => [v, TARGETS[v] ?? v]), "Any target") + (commits.length ? select("commit", "Commit", commits.map((v) => [v, v.slice(0, 7)]), "Any commit") : "") + "</form>";
|
|
20596
|
+
const meta3 = range ? `${inRange.length} in the last ${RANGES[range][0].replace(" h", " hours").replace(" d", " days")}` : `${all.length} ${all.length === 1 ? "run" : "runs"}`;
|
|
20597
|
+
const filtered = Boolean(query || filters.agent || filters.result || filters.where || filters.commit || filters.source || filters.target);
|
|
20598
|
+
if (!shown.length) return `<div class="k-page">` + head2(meta3) + bar + stateCard(filtered ? "No runs match these filters" : "No runs in this range", filtered ? h([query && `\u201C${filters.q}\u201D`, filters.agent && `Agent: ${named2 ?? filters.agent}`, filters.result && `Result: ${RESULT_ORDER.includes(filters.result) ? statusLabel(filters.result) : filters.result}`, filters.where && `Where: ${WHERE[filters.where] ?? filters.where}`, filters.commit && `Commit: ${filters.commit.slice(0, 7)}`].filter(Boolean).join(" \xB7 ")) : "", `<a class="button-link" href="${h(filtered ? filterUrl({ range: filters.range }, {}) : filterUrl(filters, { range: "" }))}" data-nav>${filtered ? "Clear filters" : "Show all runs"}</a>`, "filtered") + "</div>";
|
|
20599
|
+
const limit = Math.max(PAGE, Number(filters.limit) || PAGE), page = shown.slice(0, limit);
|
|
20600
|
+
const more = shown.length > page.length ? `<a class="button-link" href="${h(filterUrl(filters, { limit: limit + PAGE }))}" data-nav>Load ${Math.min(PAGE, shown.length - page.length)} more</a>` : "";
|
|
20601
|
+
return `<div class="k-page">` + head2(meta3) + bar + runsTable(page.map((item) => item.run), { now, referenceRuns: runs }) + `<div class="rt-foot"><span class="c-note">${page.length} of ${shown.length} ${shown.length === 1 ? "run" : "runs"}, newest first</span>${more}</div></div>`;
|
|
20602
|
+
}
|
|
20603
|
+
|
|
20604
|
+
// packages/core/src/tool-call-trace.ts
|
|
20605
|
+
function projectToolCalls(trace) {
|
|
20606
|
+
const completed = new Map(trace.filter((e) => e.toolEvent?.kind === "completion").map((e) => [e.toolEvent.call_id, e]));
|
|
20607
|
+
return trace.filter((e) => !e.routeEvent && e.toolEvent?.kind !== "completion" && !(e.service === "tools" && (e.path === "/register" || e.path === "/calls/complete"))).map((entry) => {
|
|
20608
|
+
if (entry.service !== "tools" || !entry.path.startsWith("/tools/")) return entry;
|
|
20609
|
+
const response = entry.response;
|
|
20610
|
+
if (!response || !response.passthrough || entry.completion || response.execution_status === "succeeded" || response.execution_status === "failed") return entry;
|
|
20611
|
+
const end = typeof response.call_id === "string" ? completed.get(response.call_id) : void 0;
|
|
20612
|
+
return {
|
|
20613
|
+
...entry,
|
|
20614
|
+
response: { ...response, ...end?.response, execution_status: end ? end.response.execution_status : "unknown" },
|
|
20615
|
+
...end && { completion: { seq: end.seq, tSim: end.tSim, tReal: end.tReal } }
|
|
20616
|
+
};
|
|
20617
|
+
});
|
|
20605
20618
|
}
|
|
20606
20619
|
|
|
20607
20620
|
// packages/core/src/function-tool-observation.ts
|
|
@@ -21109,7 +21122,7 @@ var count2 = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
|
|
|
21109
21122
|
var readOnlyRun = (batch) => batch.origin?.stored === true || batch.origin?.mirrored === true || ["cli", "ci", "pytest"].includes(batch.origin?.source);
|
|
21110
21123
|
var records = (value) => Array.isArray(value) ? value.filter((item) => item && typeof item === "object") : [];
|
|
21111
21124
|
var basePath = (batch) => "/playgrounds/" + encodeURIComponent(String(batch.id));
|
|
21112
|
-
var taskHref = (batch, task, extra = {}) =>
|
|
21125
|
+
var taskHref = (batch, task, extra = {}) => url2(basePath(batch), { task: task.id, ...extra });
|
|
21113
21126
|
function taskDisplayName(task, index) {
|
|
21114
21127
|
const title2 = typeof task.title === "string" ? task.title.trim().replace(/\s+/g, " ") : "";
|
|
21115
21128
|
return title2 && title2.length <= 80 ? title2 : `Task ${index + 1}`;
|
|
@@ -21169,7 +21182,7 @@ function executionSummary(attempts, requested = attempts.length) {
|
|
|
21169
21182
|
};
|
|
21170
21183
|
}
|
|
21171
21184
|
var percent = (part, whole) => whole ? `${Math.round(part / whole * 100)}%` : "\u2014";
|
|
21172
|
-
var medianTime = (attempts) =>
|
|
21185
|
+
var medianTime = (attempts) => duration3(executionSummary(attempts).medianMs);
|
|
21173
21186
|
var hasChecks = (tasks) => Array.isArray(tasks) && tasks.some((task) => Array.isArray(task?.checks) && task.checks.length > 0);
|
|
21174
21187
|
function taskOutcome(attempts, checked = false, requested = attempts.length) {
|
|
21175
21188
|
const s = executionSummary(attempts, requested);
|
|
@@ -21234,7 +21247,7 @@ function agentCrumb(batch) {
|
|
|
21234
21247
|
}
|
|
21235
21248
|
function runDetails(batch, tasks, attempts) {
|
|
21236
21249
|
const baseline = batch.comparison?.baselineRunId, total = timeOf(batch.finishedAt) - timeOf(batch.startedAt ?? batch.createdAt);
|
|
21237
|
-
return `<section class="k-card" aria-label="Details"><h2>Details</h2>` + (agentName(batch) ? detailRow("Agent", batch.agentId ? navLink(agentName(batch), "/agents/" + encodeURIComponent(String(batch.agentId))) : h(agentName(batch))) : "") + (batch.origin?.commit ? detailRow("Commit", `<span class="k-mono">${h(String(batch.origin.commit).slice(0, 7))}${batch.origin.dirty ? " + changes" : ""}</span>`) : "") + (baseline ? detailRow("Compared with", navLink(shortId(String(baseline)), "/playgrounds/" + encodeURIComponent(String(baseline)))) : "") + (batch.editedTests?.length ? detailRow("Test source", `${batch.editedTests.map((t) => `${t.source === "cli" ? "Edited via CLI" : t.source === "github-actions" ? "Edited via GitHub Actions" : "Edited in console"} \xB7 <a href="/runs/${h(encodeURIComponent(batch.id))}/test.yaml?test=${h(encodeURIComponent(t.id))}">Download ${h(t.id)} YAML</a>`).join(" \xB7 ")}`) : "") + (batch.rerunOf ? detailRow("Rerun of", `<a href="/runs/${h(encodeURIComponent(batch.rerunOf.runId))}">${h(shortId(batch.rerunOf.runId))}</a>${batch.rerunOf.mode === "failed" ? " \xB7 failed tests" : ""}`) : "") + detailRow("From", h(originLabel(batch.origin) || "Console")) + (starterHtml(batch) ? detailRow("Started by", starterHtml(batch)) : "") + (batch.createdAt ? detailRow("Started", `<time datetime="${h(batch.createdAt)}" title="${h(utc(batch.createdAt))}">${h(utcClock(batch.createdAt))}<span class="k-meta"> \xB7 ${h(utcDay(batch.createdAt))}</span></time>`) : "") + (Number.isFinite(total) && total >= 0 ? detailRow("Duration", h(
|
|
21250
|
+
return `<section class="k-card" aria-label="Details"><h2>Details</h2>` + (agentName(batch) ? detailRow("Agent", batch.agentId ? navLink(agentName(batch), "/agents/" + encodeURIComponent(String(batch.agentId))) : h(agentName(batch))) : "") + (batch.origin?.commit ? detailRow("Commit", `<span class="k-mono">${h(String(batch.origin.commit).slice(0, 7))}${batch.origin.dirty ? " + changes" : ""}</span>`) : "") + (baseline ? detailRow("Compared with", navLink(shortId(String(baseline)), "/playgrounds/" + encodeURIComponent(String(baseline)))) : "") + (batch.editedTests?.length ? detailRow("Test source", `${batch.editedTests.map((t) => `${t.source === "cli" ? "Edited via CLI" : t.source === "github-actions" ? "Edited via GitHub Actions" : "Edited in console"} \xB7 <a href="/runs/${h(encodeURIComponent(batch.id))}/test.yaml?test=${h(encodeURIComponent(t.id))}">Download ${h(t.id)} YAML</a>`).join(" \xB7 ")}`) : "") + (batch.rerunOf ? detailRow("Rerun of", `<a href="/runs/${h(encodeURIComponent(batch.rerunOf.runId))}">${h(shortId(batch.rerunOf.runId))}</a>${batch.rerunOf.mode === "failed" ? " \xB7 failed tests" : ""}`) : "") + detailRow("From", h(originLabel(batch.origin) || "Console")) + (starterHtml(batch) ? detailRow("Started by", starterHtml(batch)) : "") + (batch.createdAt ? detailRow("Started", `<time datetime="${h(batch.createdAt)}" title="${h(utc(batch.createdAt))}">${h(utcClock(batch.createdAt))}<span class="k-meta"> \xB7 ${h(utcDay(batch.createdAt))}</span></time>`) : "") + (Number.isFinite(total) && total >= 0 ? detailRow("Duration", h(duration3(total))) : "") + detailRow("Tests \xD7 attempts", h(`${count2(tasks.length, "test")} \xB7 ${count2(runCounts({ ...batch, tasks, attempts }).total, "attempt")}`)) + (Number(batch.concurrency) > 0 ? detailRow("At once", h(`${batch.concurrency} attempt${Number(batch.concurrency) === 1 ? "" : "s"}`)) : "") + (batch.exitCode !== void 0 ? detailRow("Exit", h(batch.exitCode)) : "") + "</section>";
|
|
21238
21251
|
}
|
|
21239
21252
|
function testSquares(batch, task, attempts) {
|
|
21240
21253
|
const states = attemptStates({ tasks: [task], attempts });
|
|
@@ -21494,10 +21507,10 @@ function callsSection(observation2, failing, open2) {
|
|
|
21494
21507
|
const args = t.service === "tools" ? t.request?.args : t.service === "agent" ? t.request?.output : t.request;
|
|
21495
21508
|
const answer = t.service === "tools" ? t.response?.error ?? t.response?.result : t.service === "agent" ? void 0 : t.response;
|
|
21496
21509
|
const status2 = t.functionCall ? `<span class="${["pending", "unknown"].includes(t.functionCall.outcome) ? "k-meta" : `rd-code${error62 ? " bad" : ""}`}">${h(t.functionCall.outcome)}${t.functionCall.error_type ? ` \xB7 ${h(t.functionCall.error_type)}` : ""}</span>` : t.status === void 0 ? "" : `<span class="rd-code${error62 ? " bad" : ""}">${h(t.status)}</span>`;
|
|
21497
|
-
return `<details class="rd-call${checks2.length ? " failing" : ""}" id="call-${h(seq)}"${(t.functionCall?.evidence ?? [seq]).includes(open2) ? " open" : ""}><summary><span class="num">${h(seq)}</span><span class="rd-call-name"><code>${h(callName(t))}</code>${checks2.length ? `<span class="rd-fails" title="${h(checks2.join(", "))}">fails ${checks2.length} ${checks2.length === 1 ? "check" : "checks"}</span>` : ""}</span><span class="rd-call-args">${h(gist(args)) || '<span class="muted">none</span>'}</span><span class="rd-call-answer">${status2}${h(t.service === "agent" && t.path === "/done" ? "the agent ended its turn" : gist(answer))}</span><span class="rd-call-source">${h(callSource(t))}</span><span class="num rd-call-at"${Number.isFinite(ms) ? ` title="${h(utc(ms))}"` : ""}>${Number.isFinite(ms) && Number.isFinite(start) ? `+${h(
|
|
21510
|
+
return `<details class="rd-call${checks2.length ? " failing" : ""}" id="call-${h(seq)}"${(t.functionCall?.evidence ?? [seq]).includes(open2) ? " open" : ""}><summary><span class="num">${h(seq)}</span><span class="rd-call-name"><code>${h(callName(t))}</code>${checks2.length ? `<span class="rd-fails" title="${h(checks2.join(", "))}">fails ${checks2.length} ${checks2.length === 1 ? "check" : "checks"}</span>` : ""}</span><span class="rd-call-args">${h(gist(args)) || '<span class="muted">none</span>'}</span><span class="rd-call-answer">${status2}${h(t.service === "agent" && t.path === "/done" ? "the agent ended its turn" : gist(answer))}</span><span class="rd-call-source">${h(callSource(t))}</span><span class="num rd-call-at"${Number.isFinite(ms) ? ` title="${h(utc(ms))}"` : ""}>${Number.isFinite(ms) && Number.isFinite(start) ? `+${h(duration3(ms - start))}` : "\u2014"}</span></summary><div class="rd-call-body">${t.functionCall ? `<p style="grid-column:1/-1;overflow-wrap:anywhere">Evidence seq ${h(t.functionCall.evidence.join(", "))}${t.functionCall.call_id ? ` \xB7 Call ID ${h(t.functionCall.call_id)}` : ""}</p>` : ""}<div><h4>Request \xB7 <code>${h(`${t.method ?? ""} ${t.path ?? ""}`.trim())}</code></h4>${fieldList(args)}</div><div><h4>Response${t.status === void 0 ? "" : ` \xB7 ${h(t.status)}`}${t.response?.source ? ` \xB7 ${h(String(t.response.source))}` : ""}</h4>${t.issue?.message ? `<p class="rd-text bad">${h(t.issue.message)}</p>` : ""}${answer === void 0 && t.service === "agent" ? '<p class="muted">The agent ended its turn.</p>' : fieldList(answer)}</div></div></details>`;
|
|
21498
21511
|
}).join("");
|
|
21499
21512
|
const head2 = `<div class="rd-calls-head" aria-hidden="true"><span>#</span><span>Call</span><span>Arguments</span><span>Response</span><span>Source</span><span>At</span></div>`;
|
|
21500
|
-
return `<section class="rd-section" id="calls" aria-label="Calls"><div class="rd-section-head"><h3>Calls</h3><span>${trace.length} ${trace.length === 1 ? "call" : "calls"}${Number.isFinite(span) && trace.length > 1 ? ` over ${h(
|
|
21513
|
+
return `<section class="rd-section" id="calls" aria-label="Calls"><div class="rd-section-head"><h3>Calls</h3><span>${trace.length} ${trace.length === 1 ? "call" : "calls"}${Number.isFinite(span) && trace.length > 1 ? ` over ${h(duration3(span))} of world time` : ""}${trace.length > shown.length ? ` \xB7 the first ${shown.length} shown` : ""}</span></div><div class="rd-calls-scroll"><div class="rd-calls">${head2}${rows3}</div></div></section>`;
|
|
21501
21514
|
}
|
|
21502
21515
|
function productionSection(batch, task, attempt) {
|
|
21503
21516
|
const row2 = reproductionOf(batch, task), checks2 = records(row2?.checks);
|
|
@@ -21536,7 +21549,7 @@ function stepsSection(observation2, checks2, callHref, jump) {
|
|
|
21536
21549
|
const times = trace.map((t) => timeOf(t.tSim)).filter(Number.isFinite), start = times.length ? Math.min(...times) : NaN;
|
|
21537
21550
|
return `<section class="k-card" aria-label="Steps"><div class="k-card-head"><h2>Steps</h2><span class="k-meta">${count2(trace.length, "call")}</span></div>${unlinked.length ? `<div class="k-stack s059-unlinked">${unlinked.map((check2) => failedCheckCard(check2, jump)).join("")}</div>` : ""}<ol class="k-steps">${trace.map((call, i) => {
|
|
21538
21551
|
const seq = Number(call.seq), own2 = failures.filter((check2) => logicalStep(check2) === seq), at2 = timeOf(call.tSim);
|
|
21539
|
-
return `<li><div class="k-step${own2.length ? " fail" : ""}" id="step-${h(seq)}"><span class="n">${i + 1}</span><span class="tool" title="${h(call.service ?? "")}">${h(call.service === "tools" ? "Tool" : toolName(String(call.service ?? "")) || "Call")}</span><span class="what">${navLink(callName(call), callHref(seq), "k-name")}${call.functionCall ? `<span class="s059-step-gist">${h(call.functionCall.outcome)}${call.functionCall.error_type ? ` \xB7 ${h(call.functionCall.error_type)}` : ""} \xB7 ${h(functionSourceLabel(call.functionCall.source))} \xB7 evidence seq ${h(call.functionCall.evidence.join(", "))}</span>` : ""}${gist(call.service === "tools" ? call.request?.args : call.request) ? `<span class="s059-step-gist">${h(gist(call.service === "tools" ? call.request?.args : call.request))}</span>` : ""}</span><span class="t">${Number.isFinite(at2) && Number.isFinite(start) ? h(
|
|
21552
|
+
return `<li><div class="k-step${own2.length ? " fail" : ""}" id="step-${h(seq)}"><span class="n">${i + 1}</span><span class="tool" title="${h(call.service ?? "")}">${h(call.service === "tools" ? "Tool" : toolName(String(call.service ?? "")) || "Call")}</span><span class="what">${navLink(callName(call), callHref(seq), "k-name")}${call.functionCall ? `<span class="s059-step-gist">${h(call.functionCall.outcome)}${call.functionCall.error_type ? ` \xB7 ${h(call.functionCall.error_type)}` : ""} \xB7 ${h(functionSourceLabel(call.functionCall.source))} \xB7 evidence seq ${h(call.functionCall.evidence.join(", "))}</span>` : ""}${gist(call.service === "tools" ? call.request?.args : call.request) ? `<span class="s059-step-gist">${h(gist(call.service === "tools" ? call.request?.args : call.request))}</span>` : ""}</span><span class="t">${Number.isFinite(at2) && Number.isFinite(start) ? h(duration3(at2 - start)) : "\u2014"}</span></div>${own2.map((check2) => `<div class="k-step-check">${failedCheckCard(check2, jump)}</div>`).join("")}</li>`;
|
|
21540
21553
|
}).join("")}</ol>${trace.length ? "" : '<p class="k-empty">No calls in this attempt.</p>'}</section>`;
|
|
21541
21554
|
}
|
|
21542
21555
|
function attemptChecks(checks2, trace, callHref, jump) {
|
|
@@ -21572,6 +21585,10 @@ function renderAttemptWorkspace(batch, attempt, evidence, options = {}) {
|
|
|
21572
21585
|
const bySeq = new Map(functionTools.calls.map((c) => [c.seq, c]));
|
|
21573
21586
|
const observation2 = { ...raw, functionTools, trace: projectToolCalls(raw.trace ?? []).filter((t) => !(t.source === "agent" && t.service === "tools" && t.path.startsWith("/tools/")) || bySeq.has(t.seq)).map((t) => ({ ...t, ...bySeq.has(t.seq) && { functionCall: bySeq.get(t.seq) } })) };
|
|
21574
21587
|
const fullEvidence = { ...attempt, ...observation2, status: attempt.status };
|
|
21588
|
+
const routeHtml = ["quickbooks", "netsuite"].map((toolkit) => {
|
|
21589
|
+
const route = fullEvidence.routes?.[toolkit] ?? raw.entry?.routes?.[toolkit];
|
|
21590
|
+
return route ? `<p class="k-meta" style="overflow-wrap:anywhere">${h(formatRouteSummary(route, toolkit))}</p>` : "";
|
|
21591
|
+
}).join("");
|
|
21575
21592
|
const people2 = hasConversation(observation2);
|
|
21576
21593
|
const view2 = ["tools", "sandbox"].includes(options.view ?? "") ? "tools" : options.view === "logs" ? "logs" : options.view === "conversation" && people2 ? "conversation" : ["activity", "evidence"].includes(options.view ?? "") || !people2 ? "evidence" : "conversation";
|
|
21577
21594
|
const world = entry?.world ?? entry?.test?.world, configuration2 = world?.configuration ?? entry?.configuration ?? entry?.test?.configuration ?? batch.configuration;
|
|
@@ -21594,8 +21611,8 @@ function renderAttemptWorkspace(batch, attempt, evidence, options = {}) {
|
|
|
21594
21611
|
const content = view2 === "tools" ? toolsNav + (tool ? capturedToolView(observation2, tool, { ...query, baseHref: attemptBase }) : '<p class="quiet-empty">No captured tool data.</p>') : view2 === "conversation" ? response + conversationView(observation2, { focus: query.focus }) : view2 === "logs" ? logs.trim() ? `<pre class="rd-log">${h(logs)}</pre>` : stateCard("No log", "The agent wrote nothing to its output in this attempt.") : response + callsSection(observation2, failing, Number(query.call) || void 0) + productionSection(batch, task, fullEvidence);
|
|
21595
21612
|
const tab2 = (label2, name, href2) => navLink(label2, href2, view2 === name ? "on" : "").replace("<a ", `<a ${view2 === name ? 'aria-current="page" ' : ""}`);
|
|
21596
21613
|
const ms = attemptMs(attempt), calls = Number(fullEvidence.toolCalls ?? attempt.toolCalls) || 0, id = String(batch.id), trace = reproductionOf(batch, task)?.trace;
|
|
21597
|
-
const details2 = `<section class="k-card" aria-label="Details"><h2>Details</h2>${detailRow("Agent", h(entry?.agentName ?? (agentName(batch) || "\u2014")))}${detailRow("Attempt", h(attempt.number))}${detailRow("Duration", h(ms === void 0 ? "\u2014" :
|
|
21598
|
-
return `<div class="k-page s059-attempt"><nav class="k-crumbs" aria-label="Breadcrumb">${agentCrumb({ ...batch, ...entry?.agentName ? { agentName: entry.agentName, agentId: entry.agentId } : {} })}${navLink(runLabel(batch, shortId(id)), basePath(batch))}<span>/</span>${navLink(taskDisplayName(task, index), taskHref(batch, task))}<span>/</span><span aria-current="page">Attempt ${h(attempt.number)}</span>${copyButton(id, "Copy run id")}</nav><header class="k-head"><div class="k-title"><h1>${h(taskDisplayName(task, index))}</h1>${resultBadge(attemptKind(attempt))}${["starting", "running", "queued"].includes(attempt.status) ? executionBadge(attempt) : ""}</div><div class="k-actions">${cliRun(batch) ? copyCommand(`ancha explain ${id}`) : ""}${kitActions(options.actionsHtml ?? "")}</div></header><nav class="k-attempts" aria-label="Attempts">${attempts.map((a) => navLink(String(a.number), taskHref(batch, task, { attempt: a.id, ...view2 === "evidence" ? {} : { view: view2 } }), `k-att ${resultClass(attemptKind(a))}`).replace("<a ", `<a aria-label="Attempt ${h(a.number)}: ${h(resultLabel(attemptKind(a)))}" ${a.id === attempt.id ? 'aria-current="page" ' : ""}`)).join("")}</nav>${queueLine(batch)}${errorMessage(batch.error)}<div class="k-cols"><div class="k-main"><section class="k-card k-task s060-task"><span class="k-label">Task</span><div class="s060-task-text">${h(String(task.prompt ?? "").trim())}</div>${copyButton(codingAgentText(batch, task, fullEvidence, checks2), "Copy for coding agent")}</section>${invalidNote(attempt)}${stepsSection(observation2, checks2, callHref, jump)}${functionConnections(functionTools)}${comparisonForm(batch, task, attempts, attempt)}<nav class="k-seg" aria-label="Attempt evidence">${people2 ? tab2("Conversation", "conversation", taskHref(batch, task, { attempt: attempt.id, view: "conversation" })) : ""}${tab2("Evidence", "evidence", people2 ? taskHref(batch, task, { attempt: attempt.id, view: "evidence" }) : attemptBase)}${tab2("World data", "tools", taskHref(batch, task, { attempt: attempt.id, view: "tools" }))}${tab2("Logs", "logs", taskHref(batch, task, { attempt: attempt.id, view: "logs" }))}</nav><div id="attempt-evidence" class="aw-evidence-body">${errorMessage(fullEvidence.error)}${content}</div></div><aside class="k-side">${attemptChecks(checks2, records(observation2.trace).filter((t) => t.path !== "console.manual_action").sort((a, b) => (Number(a.seq) || 0) - (Number(b.seq) || 0)), callHref, jump)}${details2}</aside></div></div>`;
|
|
21614
|
+
const details2 = `<section class="k-card" aria-label="Details"><h2>Details</h2>${detailRow("Agent", h(entry?.agentName ?? (agentName(batch) || "\u2014")))}${detailRow("Attempt", h(attempt.number))}${detailRow("Duration", h(ms === void 0 ? "\u2014" : duration3(ms)))}${detailRow("Tool calls", String(calls))}${detailRow("From", h(originLabel(batch.origin) || "Console"))}${batch.createdAt ? detailRow("Started", `<time datetime="${h(batch.createdAt)}" title="${h(utc(batch.createdAt))}">${h(utcClock(batch.createdAt))} \xB7 ${h(utcDay(batch.createdAt))}</time>`) : ""}${trace ? detailRow("Production trace", `<code title="${h(trace)}">${h(String(trace).slice(0, 8))}</code>`) : ""}${detailRow("Run", navLink(runLabel(batch, shortId(id)), basePath(batch)))}${detailRow("Test", h(task.id))}</section>`;
|
|
21615
|
+
return `<div class="k-page s059-attempt"><nav class="k-crumbs" aria-label="Breadcrumb">${agentCrumb({ ...batch, ...entry?.agentName ? { agentName: entry.agentName, agentId: entry.agentId } : {} })}${navLink(runLabel(batch, shortId(id)), basePath(batch))}<span>/</span>${navLink(taskDisplayName(task, index), taskHref(batch, task))}<span>/</span><span aria-current="page">Attempt ${h(attempt.number)}</span>${copyButton(id, "Copy run id")}</nav><header class="k-head"><div class="k-title"><h1>${h(taskDisplayName(task, index))}</h1>${resultBadge(attemptKind(attempt))}${["starting", "running", "queued"].includes(attempt.status) ? executionBadge(attempt) : ""}</div><div class="k-actions">${cliRun(batch) ? copyCommand(`ancha explain ${id}`) : ""}${kitActions(options.actionsHtml ?? "")}</div></header><nav class="k-attempts" aria-label="Attempts">${attempts.map((a) => navLink(String(a.number), taskHref(batch, task, { attempt: a.id, ...view2 === "evidence" ? {} : { view: view2 } }), `k-att ${resultClass(attemptKind(a))}`).replace("<a ", `<a aria-label="Attempt ${h(a.number)}: ${h(resultLabel(attemptKind(a)))}" ${a.id === attempt.id ? 'aria-current="page" ' : ""}`)).join("")}</nav>${queueLine(batch)}${errorMessage(batch.error)}<div class="k-cols"><div class="k-main"><section class="k-card k-task s060-task"><span class="k-label">Task</span><div class="s060-task-text">${h(String(task.prompt ?? "").trim())}</div>${copyButton(codingAgentText(batch, task, fullEvidence, checks2), "Copy for coding agent")}</section>${invalidNote(attempt)}${routeHtml}${stepsSection(observation2, checks2, callHref, jump)}${functionConnections(functionTools)}${comparisonForm(batch, task, attempts, attempt)}<nav class="k-seg" aria-label="Attempt evidence">${people2 ? tab2("Conversation", "conversation", taskHref(batch, task, { attempt: attempt.id, view: "conversation" })) : ""}${tab2("Evidence", "evidence", people2 ? taskHref(batch, task, { attempt: attempt.id, view: "evidence" }) : attemptBase)}${tab2("World data", "tools", taskHref(batch, task, { attempt: attempt.id, view: "tools" }))}${tab2("Logs", "logs", taskHref(batch, task, { attempt: attempt.id, view: "logs" }))}</nav><div id="attempt-evidence" class="aw-evidence-body">${errorMessage(fullEvidence.error)}${content}</div></div><aside class="k-side">${attemptChecks(checks2, records(observation2.trace).filter((t) => t.path !== "console.manual_action").sort((a, b) => (Number(a.seq) || 0) - (Number(b.seq) || 0)), callHref, jump)}${details2}</aside></div></div>`;
|
|
21599
21616
|
}
|
|
21600
21617
|
function renderManagedComparison(data) {
|
|
21601
21618
|
const sides = records(data.attempts ?? [data.left, data.right]);
|
|
@@ -21604,7 +21621,7 @@ function renderManagedComparison(data) {
|
|
|
21604
21621
|
const summary = data.stateComparison;
|
|
21605
21622
|
const stateSummary = !summary?.available ? "Final tool data is unavailable for one or both attempts." : !records(summary.differences).length ? "Same final tool data" : `Different final data: ${[...new Set(records(summary.differences).map((d) => String(d.path).split("/")[1]).filter(Boolean))].map(toolName).join(" \xB7 ")}${summary.truncated ? " \xB7 More differences in saved evidence" : ""}`;
|
|
21606
21623
|
const cells = (render, extra = "") => sides.map((side) => `<section class="aw-compare-cell ${extra}">${render(side)}</section>`).join("");
|
|
21607
|
-
return `<div class="aw-managed-comparison"><p class="aw-comparison-summary">${h(stateSummary)}</p><div class="aw-comparison">${cells((side) => `<h2>Attempt ${h(side.number)}</h2>${executionBadge(side)}${outcomeBadge(side)}${navLink("Open attempt",
|
|
21624
|
+
return `<div class="aw-managed-comparison"><p class="aw-comparison-summary">${h(stateSummary)}</p><div class="aw-comparison">${cells((side) => `<h2>Attempt ${h(side.number)}</h2>${executionBadge(side)}${outcomeBadge(side)}${navLink("Open attempt", url2("/playgrounds/" + encodeURIComponent(String(data.runId)), { task: data.taskId ?? side.taskId, attempt: side.id }))}`, "aw-compare-head")}${cells((side) => errorMessage(side.error) + managedResponse(side), "aw-compare-response")}${cells((side) => activityView({ ...side, trace: side.toolActivity ?? side.trace ?? [], state: side.state ?? {} }, { baseHref: url2("/playgrounds/" + encodeURIComponent(String(data.runId)), { task: data.taskId ?? side.taskId, attempt: side.id }) }), "aw-compare-activity")}</div></div>`;
|
|
21608
21625
|
}
|
|
21609
21626
|
|
|
21610
21627
|
// frontend/src/world-workspace.ts
|
|
@@ -22188,7 +22205,7 @@ function starterCount(tool, key, state) {
|
|
|
22188
22205
|
}
|
|
22189
22206
|
|
|
22190
22207
|
// frontend/src/generated/coding-agent-skill.ts
|
|
22191
|
-
var codingAgentSkill = "---\nname: ancha\ndescription: Test, debug and fix an AI agent (a Slack bot, a support or on-call agent) against stateful replicas of the tools it uses, built from its production traces, and prove a fix with graded runs in the cloud. Use when asked to test an agent with Ancha, or in a repository that has ancha.yaml.\n---\n\n# Ancha\n\nAncha gives an AI agent the other side of its job: stateful replicas of the tools it uses (Slack, GitHub, Datadog, PagerDuty and more), seeded with one fictional company or rebuilt from a production trace, and checks that grade every attempt from the agent's calls and the world's end state. The verdict comes from the world, not from mocks you wrote yourself. `ancha run --on cloud` runs each attempt on a fresh machine of its own in Ancha's cloud.\n\n## Run the CLI\n\nBefore the CLI is installed, run every command as `npx -y @ancha-labs/cli <command>`. After `npm install -g @ancha-labs/cli` (Node 24 or newer), run `ancha <command>`. Never run `npx` with the bare name `ancha`: that npm name is not this package.\n\nAdd `--json` to every command. Runs print NDJSON events that end with `run_finished`; `ancha traces upload` prints the tests it made. `env list` and `sandbox list` return arrays; trace commands use the fields described in `ancha docs traces`. `ancha schema <kind> --json` prints the JSON Schema of `ancha.yaml`, test files (`scene.yaml`) and these outputs. If your command can time out, give `ancha run` an `--idempotency-key <key>`: running it again with the same key returns the same run instead of starting another.\n\n## First steps\n\n<!-- ancha:first-steps -->\n1. **Install the CLI and sign in.** It needs Node 24 or newer. Approve this computer in the browser, once.\n ```sh\n ancha --version || npm install -g @ancha-labs/cli\n ancha login\n ```\n2. **Set up the project.** Run it in the agent's project: it finds the command that starts the agent and how the agent takes its task, and writes both to `ancha.yaml`. It installs and runs nothing.\n ```sh\n ancha init\n ```\n - To name the command yourself: `ancha init --agent \"<the command that starts your agent>\"`.\n - To name its tools yourself (NetSuite, Slack, ...): `ancha init --tools netsuite,slack`.\n3. **Point the agent at Ancha's tools.** In a test, the agent calls Ancha instead of production:\n - Its clients for Slack, GitHub and the other tools Ancha replicates take the URLs and credentials Ancha supplies: `ancha connect <tool>` prints the settings.\n - Its own functions: wrap them with `wrapTools` from `@ancha-labs/tools` (`ancha.wrap_tools` in Python), or serve them over MCP.\n4. **Store the key it needs.** The agent's own model key, read from your shell, never from an argument: it is stored in your workspace and named under `agent.pass_env` in `ancha.yaml`, so the agent gets it in every cloud attempt.\n ```sh\n ancha secrets set ANTHROPIC_API_KEY\n ```\n5. **Upload your agent.** A fresh machine in the cloud installs the project's dependencies and starts the agent once with a task. It says the agent is ready, or shows the end of its log.\n ```sh\n ancha agent upload\n ```\n - The install follows the project's own manifests and lockfiles; `agent.install` in `ancha.yaml` sets the command instead.\n6. **Without production traces.** For an agent that uses NetSuite, `ancha init` writes a NetSuite world of a private-equity portfolio company (four subsidiaries, two currencies, thousands of transactions) and 25 tests: 10 read tasks and 15 write workflows.\n - Your data: `ancha world import netsuite <your exports> --id <id>` reads REST record JSON, SuiteQL results and saved search CSV into `ancha/worlds/<id>.yaml`; check it with `ancha world validate`. To write the seed yourself, `ancha twins seed netsuite` lists its fields.\n - Your evals: `ancha test import <file>` (JSONL, JSON, CSV or YAML with a question and an expected answer) writes tests for the only world in `ancha/worlds/`, or the one `--world <id>` names; with none, `ancha init --on local --template starter` adds one.\n - One test from a sentence: `ancha test new \"<sentence>\" --world <id>`.\n7. **Upload traces.** A file or a folder of traces, runs that went fine and runs that failed: each trace becomes a test, in `scenes/from-traces/` and in your workspace.\n ```sh\n ancha traces upload ./traces\n ```\n - From Langfuse or LangSmith, with your keys on this computer: `ancha traces upload --from langfuse --limit 50`, or `--from langsmith`.\n - A trace of a run that went wrong can say what went wrong: `ancha traces upload <trace file> --expect \"<what went wrong>\"`, or for a test already made, `ancha pull <test id> --expect \"<what went wrong>\"`.\n - Traces your agent already sent to your workspace: `ancha traces`, then `ancha pull <trace id>`.\n - A test lists what one trace cannot settle: answer with `ancha pull <test id> --answer <question>=<answer>`.\n - A check marked `(optional)` is graded and shown, and the required checks decide the test; `ancha pull <test id> --answer checks.success=\"<end state>\"` makes completing the request decide it too.\n8. **Run your tests.** Every test, each attempt on a fresh machine. The run grades each attempt check by check and ends with the link to its result.\n ```sh\n ancha run\n ```\n - Your agent and its worlds run in the cloud, each attempt on a fresh machine of its own; a run keeps going when your laptop closes, and its results land in Runs.\n - `--attempts <n>` sets how many attempts each test gets, `--concurrency <n>` how many run at once.\n - `ancha wait <run id>` follows a run again from any terminal; `ancha explain <run id>` shows why a check failed.\n - `ancha status` shows which of these steps your workspace has done.\n9. **Fix the agent and keep the test.** Keep the failing run as the reference, fix the agent, and run again: exit 0 means every required check passes and nothing regressed.\n ```sh\n ancha baseline save before --from <run id>\n ancha run --compare before\n ```\n - Commit `scenes/from-traces/` so every run, in CI too, keeps it fixed.\n10. **Run it on this computer.** While you develop, `ancha run --on local` runs the agent and its worlds on this computer, with the same checks.\n ```sh\n ancha run --on local --attempts 1\n ```\n - Here the agent gets the keys in `agent.pass_env` from your shell, and model-graded checks need `OPENROUTER_API_KEY`.\n<!-- /ancha:first-steps -->\n\n## Cloud runs\n\n- `ancha run --on cloud` sends the project as one bundle: the agent's files, without hidden directories, dependencies or credential-like files, and its tests with their worlds and checks, which stay with the grader and never reach the agent. Each attempt's machine installs the dependencies, runs the agent and grades it with the same engine as a run on this computer. `--attempts <n>` sets the attempts per test, `--concurrency <n>` how many run at once.\n- The agent gets the workspace's secrets for the names in `agent.pass_env`, and its network reaches its tools and its model providers. Model-graded checks and the people in a world run on the workspace's model credit.\n- The `run_finished` event carries `url` (the result in the workspace) and `summary`, with `counts` of the attempts: requested, completed, invalid, skipped and cancelled. Interrupting the command stops the following, never the run: `ancha wait <run id>` follows it again, and `--detach` returns once the run is accepted.\n- `ancha explain <run id> --json` shows each failed check: what was expected, what happened, and the calls and world events behind it. Read it before guessing from the code; many bugs only show up with the world's data and timing.\n- When every attempt ended before the agent did anything (it exited within seconds without a call, or its command could not start), the run, `ancha wait` and `ancha explain` say that first: \"Your agent didn't run\", the end of its log once, and the likely fix read from it, such as the `agent.env` line that gives the agent its task under the name it reads. `agentNeverRan` in the JSON carries the same. Make that fix first: the failed checks follow from it, and `ancha explain <run id> --all` lists them.\n- `ancha status --json` shows the workspace's three steps (agent uploaded, tests added, tests run in the cloud) and the next command. In CI, `ANCHA_SERVER_URL` and `ANCHA_API_KEY` replace the login. More: `ancha docs cloud`.\n\n## An app, not a command\n\nIf the AI feature lives inside an app (a web app or API server with its database, workers and scheduled jobs), don't wrap it in `agent.command`. Ancha starts the app once per attempt with `agent.start`, waits for `agent.ready_url`, delivers the tools' events to `agent.url`, and a scene's `world_rules.app_calls` call the app's own routes, such as its cron jobs, at a time. Read `ancha docs apps` before writing `ancha.yaml`. The start script gives the app a clean database, cache and seed every attempt: a new world has new URLs and tokens, and stale rows or sync cursors make an app silently do nothing.\n\n## More from production traces\n\n`ancha traces upload <file or folder> --json` sends the traces to the workspace, which rebuilds each one's world and checks, and writes each test to `scenes/from-traces/<name>/scene.yaml`: runs that went fine and runs that failed. `--from langfuse` or `--from langsmith` takes the newest traces there instead (`--limit`, `--since`), with the keys in this shell. For one trace of a failure, `--expect \"<what went wrong>\"` adds a check for it. A test lists the questions one trace cannot settle, each with the default it uses. Ask the user for the answers; don't guess them. Pass them with `ancha pull <test id> --answer <question>=<value>`. `ancha import --offline <trace file> --json` makes the tests on this computer instead, one per conversation, and uploads nothing; there, `--answer` and `--force` go on the import.\n\nA test from a run that failed should fail the same way production did. If it doesn't, run it on this computer: `ancha traces diff <trace file> latest` shows the calls production made and the attempt didn't, and the import also lists the app's own setup calls, which the start script or an `app_call` has to make.\n\nIf the user's workspace takes traces (their agents send them to it), each trace becomes a test there: `ancha pull --all --json` writes every test that is turned on (`--agent <name>` for one agent's), `ancha traces --failed --json` lists the ones where production failed a check, `ancha traces show <id> --json` previews the test, and `ancha pull <id> --json` writes one, with `--answer` for its questions. Checks you add to a pulled `scene.yaml` stay when you pull a newer version; any other edit stops the pull. More: `ancha docs traces`.\n\n## Other tests\n\nThe starter test `ancha init` writes when `scenes/` holds no tests only proves that the agent reaches each tool. For the agent's real job beyond its traces, `ancha test new \"<the test in one sentence>\" --json` drafts a test with people for the project's world (`ancha init --intent \"<company and scenario>\"` makes the world and a first test). Review its checks before you run it. To write a seed yourself, `ancha twins seed <tool> --json` prints the tool's fields, an example that validates as written, and the checks a test can make on it. More: `ancha docs scenes`.\n\n## The rule\n\nFix the agent, not the tests or their checks. `ancha.yaml` says how to start the agent and give it its task and keys: change it for that, never to make a check pass. The exception is a check that is wrong for the real API, such as a method the official SDK never sends. Then don't quietly edit it: tell the user, show the evidence (the call from `ancha explain`, the vendor's documentation), and change it only with their agreement.\n\nNever give the agent under test the tests, checks, seeds or reference companions (`oracle.mjs`, `null.mjs`), and never point it at a real SaaS API.\n\n## What the agent gets\n\nEach attempt gives the agent its tools as environment variables, with fake credentials that only work against the replicas:\n\n- Slack: `SLACK_API_URL` (ends in `/api/`), `SLACK_BOT_TOKEN`\n- GitHub: `GITHUB_API_URL`, `GITHUB_TOKEN`\n- Datadog: `DATADOG_API_URL`, `DD_API_KEY`, `DD_APP_KEY`\n- PagerDuty: `PAGERDUTY_API_URL`, `PAGERDUTY_API_TOKEN`, `PAGERDUTY_FROM_EMAIL`, `PAGERDUTY_ROUTING_KEY`\n- the same pattern for the other tools in the world; `ANCHA_TASK` carries a command-line task, and `ANCHA_TASK_FILE` names a file holding it. An agent that reads its task under another name gets it with `agent.env: { MY_TASK: \"{{task}}\" }` (`{{task_file}}` for the file); `ancha init` writes that line when it finds the name.\n\n`ancha connect <tool> --lang ts|py` prints the SDK settings. `ancha twins coverage <tool>` lists the endpoints each replica implements.\n\nGoogle clients (`googleapis`, `@googleapis/*`) take the replica's URL in each call's options: `drive.files.list(params, { rootUrl: process.env.GOOGLE_DRIVE_API_URL + '/' })`. A `rootUrl` set on the client keeps only the host; Ancha still routes those calls by their token, but the client sends file uploads to www.googleapis.com.\n\nThe agent's own keys are the names in `agent.pass_env` in `ancha.yaml`, such as `agent.pass_env: [OPENAI_API_KEY]`, and `agent.env` sets fixed values, such as the path of a key file. In the cloud each name comes from the workspace's secrets (`ancha secrets set NAME`). `ancha run --on local` starts the agent on this computer instead, with this computer's network and those names from this shell (or `--pass-env NAME`); `--on docker` seals it in a container (`agent.execution: { mode: container, image: node:24-slim }`, which needs Docker). An agent without its model key stops at its first model call.\n\n## When something fails\n\n- Exit 1: a check failed or the comparison regressed (a single check's drop counts, see `comparison.droppedChecks`). Run `ancha explain <run id> --json`.\n- Exit 2: usage, config, test file or authentication error, or a cancelled cloud run. `AUTH_INVALID` means `ancha login` again or a valid `ANCHA_API_KEY`; `CONFIG_INVALID` naming a workspace secret means `ancha secrets set NAME`. Read the `hint`.\n- Exit 3: infrastructure, or an attempt the harness couldn't run or grade. It counts as invalid, never as a failed check, so it's not the agent's fault; run again, and `ancha agent upload --json` if it repeats.\n- Exit 4, only with `--strict`: an endpoint coverage error or a verdict using simulated tool answers. The summary names the tests, trials and evaluated checks using those answers. `ancha explain` lists endpoint errors; `ancha twins coverage <tool>` shows the endpoint inventory.\n\nRead the error's stable `code` and `message`, then follow its `hint` when provided. More: `ancha docs`, `ancha docs <topic>` for setup, run, traces, explain, compare, scenes, integrations, cloud and playgrounds, and https://docs.ancha.io/coding-agents.\n\nTell the user what you ran, where it ran, the pass rate, the evidence and the result link. Never claim a fix until `ancha run --compare` exits 0.\n";
|
|
22208
|
+
var codingAgentSkill = "---\nname: ancha\ndescription: Test, debug and fix an AI agent (a Slack bot, a support or on-call agent) against stateful replicas of the tools it uses, built from its production traces, and prove a fix with graded runs in the cloud. Use when asked to test an agent with Ancha, or in a repository that has ancha.yaml.\n---\n\n# Ancha\n\nAncha gives an AI agent the other side of its job: stateful replicas of the tools it uses (Slack, GitHub, Datadog, PagerDuty and more), seeded with one fictional company or rebuilt from a production trace, and checks that grade every attempt from the agent's calls and the world's end state. The verdict comes from the world, not from mocks you wrote yourself. `ancha run --on cloud` runs each attempt on a fresh machine of its own in Ancha's cloud.\n\n## Run the CLI\n\nBefore the CLI is installed, run every command as `npx -y @ancha-labs/cli <command>`. After `npm install -g @ancha-labs/cli` (Node 24 or newer), run `ancha <command>`. Never run `npx` with the bare name `ancha`: that npm name is not this package.\n\nAdd `--json` to every command. Runs print NDJSON events that end with `run_finished`; `ancha traces upload` prints the tests it made. `env list` and `sandbox list` return arrays; trace commands use the fields described in `ancha docs traces`. `ancha schema <kind> --json` prints the JSON Schema of `ancha.yaml`, test files (`scene.yaml`) and these outputs. If your command can time out, give `ancha run` an `--idempotency-key <key>`: running it again with the same key returns the same run instead of starting another.\n\n## First steps\n\n<!-- ancha:first-steps -->\n1. **Install the CLI and sign in.** It needs Node 24 or newer. Approve this computer in the browser, once.\n ```sh\n ancha --version || npm install -g @ancha-labs/cli\n ancha login\n ```\n2. **Set up the project.** Run it in the agent's project: it finds the command that starts the agent and how the agent takes its task, and writes both to `ancha.yaml`. It installs and runs nothing.\n ```sh\n ancha init\n ```\n - To name the command yourself: `ancha init --agent \"<the command that starts your agent>\"`.\n - To name its tools yourself (NetSuite, Slack, ...): `ancha init --tools netsuite,slack`.\n - **Composio agents.** Init detects Python `composio` / `composio_client` and TypeScript `@composio/core`, and finds tools from explicit toolkit lists and tool slugs. It writes each available Composio route under `agent.routes` and adds `COMPOSIO_API_KEY` to `agent.pass_env`, preserving existing settings. The world of each test decides which routed tools answer there.\n - When init asks which tools the agent reaches through Composio, ask the user which tools they use. Set `agent.routes.<tool>: composio` for each routed tool (for example, `agent.routes.quickbooks: composio`) and add `COMPOSIO_API_KEY` to `agent.pass_env` in `ancha.yaml`. Configure the Composio client to read `COMPOSIO_BASE_URL` from the attempt environment.\n - For a routed agent with no tests or traces, init writes a starter test that reads from each routed tool, plus the QuickBooks examples when the agent uses QuickBooks. Routed tests run in the cloud: with `COMPOSIO_API_KEY` in your shell, the steps below store it, upload the agent and run the tests.\n3. **Point the agent at Ancha's tools.** In a test, the agent calls Ancha instead of production:\n - Its clients for Slack, GitHub and the other tools Ancha replicates take the URLs and credentials Ancha supplies: `ancha connect <tool>` prints the settings.\n - Its own functions: wrap them with `wrapTools` from `@ancha-labs/tools` (`ancha.wrap_tools` in Python), or serve them over MCP.\n4. **Store the key it needs.** The agent's own model key, read from your shell, never from an argument: it is stored in your workspace and named under `agent.pass_env` in `ancha.yaml`, so the agent gets it in every cloud attempt.\n ```sh\n ancha secrets set ANTHROPIC_API_KEY\n ```\n5. **Upload your agent.** A fresh machine in the cloud installs the project's dependencies and starts the agent once with a task. It says the agent is ready, or shows the end of its log.\n ```sh\n ancha agent upload\n ```\n - The install follows the project's own manifests and lockfiles; `agent.install` in `ancha.yaml` sets the command instead.\n6. **Without production traces.** For an agent that calls NetSuite directly, `ancha init` writes a NetSuite world of a private-equity portfolio company (four subsidiaries, two currencies, thousands of transactions) and 25 tests: 10 read tasks and 15 write workflows. For an agent that uses QuickBooks, it writes Pellmont Building Services' 2025 books and two tests: `pellmont-duplicates` reports the duplicate vendors, the invoices and bills entered twice and the money at stake without changing the books, and `pellmont-approved-merge` merges the three duplicate vendor pairs as approved and changes nothing else.\n - Your data: `ancha world import netsuite <your exports> --id <id>` reads REST record JSON, SuiteQL results and saved search CSV into `ancha/worlds/<id>.yaml`; check it with `ancha world validate`. To write the seed yourself, `ancha twins seed netsuite` lists its fields.\n - Your evals: `ancha test import <file>` (JSONL, JSON, CSV or YAML with a question and an expected answer) writes tests for the only world in `ancha/worlds/`, or the one `--world <id>` names; with none, `ancha init --on local --template starter` adds one.\n - One test from a sentence: `ancha test new \"<sentence>\" --world <id>`.\n7. **Upload traces.** A file or a folder of traces, runs that went fine and runs that failed: each trace becomes a test, in `scenes/from-traces/` and in your workspace.\n ```sh\n ancha traces upload ./traces\n ```\n - From Langfuse or LangSmith, with your keys on this computer: `ancha traces upload --from langfuse --limit 50`, or `--from langsmith`.\n - A trace of a run that went wrong can say what went wrong: `ancha traces upload <trace file> --expect \"<what went wrong>\"`, or for a test already made, `ancha pull <test id> --expect \"<what went wrong>\"`.\n - Traces your agent already sent to your workspace: `ancha traces`, then `ancha pull <trace id>`.\n - A test lists what one trace cannot settle: answer with `ancha pull <test id> --answer <question>=<answer>`.\n - A check marked `(optional)` is graded and shown, and the required checks decide the test; `ancha pull <test id> --answer checks.success=\"<end state>\"` makes completing the request decide it too.\n8. **Run your tests.** Every test, each attempt on a fresh machine. The run grades each attempt check by check and ends with the link to its result.\n ```sh\n ancha run\n ```\n - Your agent and its worlds run in the cloud, each attempt on a fresh machine of its own; a run keeps going when your laptop closes, and its results land in Runs.\n - `--attempts <n>` sets how many attempts each test gets, `--concurrency <n>` how many run at once.\n - `ancha wait <run id>` follows a run again from any terminal; `ancha explain <run id>` shows why a check failed.\n - `ancha status` shows which of these steps your workspace has done.\n9. **Fix the agent and keep the test.** Keep the failing run as the reference, fix the agent, and run again: exit 0 means every required check passes and nothing regressed.\n ```sh\n ancha baseline save before --from <run id>\n ancha run --compare before\n ```\n - Commit `scenes/from-traces/` so every run, in CI too, keeps it fixed.\n10. **Run it on this computer.** While you develop, `ancha run --on local` runs the agent and its worlds on this computer, with the same checks.\n ```sh\n ancha run --on local --attempts 1\n ```\n - Here the agent gets the keys in `agent.pass_env` from your shell, and model-graded checks need `OPENROUTER_API_KEY`.\n<!-- /ancha:first-steps -->\n\n## Cloud runs\n\n- `ancha run --on cloud` sends the project as one bundle: the agent's files, without hidden directories, dependencies or credential-like files, and its tests with their worlds and checks, which stay with the grader and never reach the agent. Each attempt's machine installs the dependencies, runs the agent and grades it with the same engine as a run on this computer. `--attempts <n>` sets the attempts per test, `--concurrency <n>` how many run at once.\n- The agent gets the workspace's secrets for the names in `agent.pass_env`, and its network reaches its tools and its model providers. Model-graded checks and the people in a world run on the workspace's model credit.\n- The `run_finished` event carries `url` (the result in the workspace) and `summary`, with `counts` of the attempts: requested, completed, invalid, skipped and cancelled. Interrupting the command stops the following, never the run: `ancha wait <run id>` follows it again, and `--detach` returns once the run is accepted.\n- `ancha explain <run id> --json` shows each failed check: what was expected, what happened, and the calls and world events behind it. Read it before guessing from the code; many bugs only show up with the world's data and timing.\n- When every attempt ended before the agent did anything (it exited within seconds without a call, or its command could not start), the run, `ancha wait` and `ancha explain` say that first: \"Your agent didn't run\", the end of its log once, and the likely fix read from it, such as the `agent.env` line that gives the agent its task under the name it reads. `agentNeverRan` in the JSON carries the same. Make that fix first: the failed checks follow from it, and `ancha explain <run id> --all` lists them.\n- `ancha status --json` shows the workspace's three steps (agent uploaded, tests added, tests run in the cloud) and the next command. In CI, `ANCHA_SERVER_URL` and `ANCHA_API_KEY` replace the login. More: `ancha docs cloud`.\n\n## An app, not a command\n\nIf the AI feature lives inside an app (a web app or API server with its database, workers and scheduled jobs), don't wrap it in `agent.command`. Ancha starts the app once per attempt with `agent.start`, waits for `agent.ready_url`, delivers the tools' events to `agent.url`, and a scene's `world_rules.app_calls` call the app's own routes, such as its cron jobs, at a time. Read `ancha docs apps` before writing `ancha.yaml`. The start script gives the app a clean database, cache and seed every attempt: a new world has new URLs and tokens, and stale rows or sync cursors make an app silently do nothing.\n\n## More from production traces\n\n`ancha traces upload <file or folder> --json` sends the traces to the workspace, which rebuilds each one's world and checks, and writes each test to `scenes/from-traces/<name>/scene.yaml`: runs that went fine and runs that failed. `--from langfuse` or `--from langsmith` takes the newest traces there instead (`--limit`, `--since`), with the keys in this shell. For one trace of a failure, `--expect \"<what went wrong>\"` adds a check for it. A test lists the questions one trace cannot settle, each with the default it uses. Ask the user for the answers; don't guess them. Pass them with `ancha pull <test id> --answer <question>=<value>`. `ancha import --offline <trace file> --json` makes the tests on this computer instead, one per conversation, and uploads nothing; there, `--answer` and `--force` go on the import.\n\nA test from a run that failed should fail the same way production did. If it doesn't, run it on this computer: `ancha traces diff <trace file> latest` shows the calls production made and the attempt didn't, and the import also lists the app's own setup calls, which the start script or an `app_call` has to make.\n\nIf the user's workspace takes traces (their agents send them to it), each trace becomes a test there: `ancha pull --all --json` writes every test that is turned on (`--agent <name>` for one agent's), `ancha traces --failed --json` lists the ones where production failed a check, `ancha traces show <id> --json` previews the test, and `ancha pull <id> --json` writes one, with `--answer` for its questions. Checks you add to a pulled `scene.yaml` stay when you pull a newer version; any other edit stops the pull. More: `ancha docs traces`.\n\n## Other tests\n\nThe starter test `ancha init` writes when `scenes/` holds no tests only proves that the agent reaches each tool. For the agent's real job beyond its traces, `ancha test new \"<the test in one sentence>\" --json` drafts a test with people for the project's world (`ancha init --intent \"<company and scenario>\"` makes the world and a first test). Review its checks before you run it. To write a seed yourself, `ancha twins seed <tool> --json` prints the tool's fields, an example that validates as written, and the checks a test can make on it. More: `ancha docs scenes`.\n\n## The rule\n\nFix the agent, not the tests or their checks. `ancha.yaml` says how to start the agent and give it its task and keys: change it for that, never to make a check pass. The exception is a check that is wrong for the real API, such as a method the official SDK never sends. Then don't quietly edit it: tell the user, show the evidence (the call from `ancha explain`, the vendor's documentation), and change it only with their agreement.\n\nNever give the agent under test the tests, checks, seeds or reference companions (`oracle.mjs`, `null.mjs`), and never point it at a real SaaS API.\n\n## What the agent gets\n\nEach attempt gives the agent its tools as environment variables, with fake credentials that only work against the replicas:\n\n- Slack: `SLACK_API_URL` (ends in `/api/`), `SLACK_BOT_TOKEN`\n- GitHub: `GITHUB_API_URL`, `GITHUB_TOKEN`\n- Datadog: `DATADOG_API_URL`, `DD_API_KEY`, `DD_APP_KEY`\n- PagerDuty: `PAGERDUTY_API_URL`, `PAGERDUTY_API_TOKEN`, `PAGERDUTY_FROM_EMAIL`, `PAGERDUTY_ROUTING_KEY`\n- the same pattern for the other tools in the world; `ANCHA_TASK` carries a command-line task, and `ANCHA_TASK_FILE` names a file holding it. An agent that reads its task under another name gets it with `agent.env: { MY_TASK: \"{{task}}\" }` (`{{task_file}}` for the file); `ancha init` writes that line when it finds the name.\n\n`ancha connect <tool> --lang ts|py` prints the SDK settings. `ancha twins coverage <tool>` lists the endpoints each replica implements.\n\nGoogle clients (`googleapis`, `@googleapis/*`) take the replica's URL in each call's options: `drive.files.list(params, { rootUrl: process.env.GOOGLE_DRIVE_API_URL + '/' })`. A `rootUrl` set on the client keeps only the host; Ancha still routes those calls by their token, but the client sends file uploads to www.googleapis.com.\n\nThe agent's own keys are the names in `agent.pass_env` in `ancha.yaml`, such as `agent.pass_env: [OPENAI_API_KEY]`, and `agent.env` sets fixed values, such as the path of a key file. In the cloud each name comes from the workspace's secrets (`ancha secrets set NAME`). `ancha run --on local` starts the agent on this computer instead, with this computer's network and those names from this shell (or `--pass-env NAME`); `--on docker` seals it in a container (`agent.execution: { mode: container, image: node:24-slim }`, which needs Docker). An agent without its model key stops at its first model call.\n\n## When something fails\n\n- Exit 1: a check failed or the comparison regressed (a single check's drop counts, see `comparison.droppedChecks`). Run `ancha explain <run id> --json`.\n- Exit 2: usage, config, test file or authentication error, or a cancelled cloud run. `AUTH_INVALID` means `ancha login` again or a valid `ANCHA_API_KEY`; `CONFIG_INVALID` naming a workspace secret means `ancha secrets set NAME`. Read the `hint`.\n- Exit 3: infrastructure, or an attempt the harness couldn't run or grade. It counts as invalid, never as a failed check, so it's not the agent's fault; run again, and `ancha agent upload --json` if it repeats.\n- Exit 4, only with `--strict`: an endpoint coverage error or a verdict using simulated tool answers. The summary names the tests, trials and evaluated checks using those answers. `ancha explain` lists endpoint errors; `ancha twins coverage <tool>` shows the endpoint inventory.\n\nRead the error's stable `code` and `message`, then follow its `hint` when provided. More: `ancha docs`, `ancha docs <topic>` for setup, run, traces, explain, compare, scenes, integrations, cloud and playgrounds, and https://docs.ancha.io/coding-agents.\n\nTell the user what you ran, where it ran, the pass rate, the evidence and the result link. Never claim a fix until `ancha run --compare` exits 0.\n";
|
|
22192
22209
|
|
|
22193
22210
|
// frontend/src/workspace-pages.ts
|
|
22194
22211
|
var startSentence = "Set up Ancha for this agent: read https://app.ancha.io/llms.txt and follow its first steps.";
|
|
@@ -23118,7 +23135,7 @@ function navigate() {
|
|
|
23118
23135
|
function starterPanel(tool, q, base) {
|
|
23119
23136
|
if (!tool) return '<div class="quiet-empty">Open a tool to preview its data.</div>';
|
|
23120
23137
|
if (!previewCache.has(tool)) return `<p class="loading" role="status">Loading ${h(toolName(tool))}\u2026</p>`;
|
|
23121
|
-
return `<div class="preview-context"><span>Starter data \xB7 ${h(toolName(tool))}</span></div>${toolView(starterObservation, tool, { ...Object.fromEntries(q), baseHref:
|
|
23138
|
+
return `<div class="preview-context"><span>Starter data \xB7 ${h(toolName(tool))}</span></div>${toolView(starterObservation, tool, { ...Object.fromEntries(q), baseHref: url2(base, { tab: "tools", tool }) })}`;
|
|
23122
23139
|
}
|
|
23123
23140
|
function shell(section, content) {
|
|
23124
23141
|
const nav2 = (items) => items.map(([id, name]) => `<a href="/${id}" data-nav class="nav-item ${section === id ? "active" : ""}" ${section === id ? 'aria-current="page"' : ""}>${name}</a>`).join("");
|
|
@@ -23488,7 +23505,7 @@ function renderAgents(id) {
|
|
|
23488
23505
|
const primary = page === "setup" ? "" : agentPrimary(a, operation);
|
|
23489
23506
|
const blocked = blockedConnect?.agentId === a.id ? blockedConnect : null;
|
|
23490
23507
|
if (blocked) blockedConnect = null;
|
|
23491
|
-
const connectionNotice = blocked ? `<div role="alert">${stateCard("Connection waiting", runnerBusyHtml(blocked.message, blocked.run), "", "queued")}</div>` : connecting || queuedConnect ? `<div class="connect-progress c-state c-state-${connecting ? "running" : "queued"}" role="status"><div>${statusMark(connecting ? "running" : "queued", status2)}<p>${h(operation?.message ?? (queuedConnect ? "Waiting for another connection to finish." : ""))}</p></div>${button("Cancel", "cancel-connect", operation.id, "k-btn")}</div>` : operation?.state === "failed" ? `<div role="alert">${stateCard("Couldn\u2019t connect", h(operation.message ?? operation.error ?? "Check your settings and try again."), navLink("Edit connection",
|
|
23508
|
+
const connectionNotice = blocked ? `<div role="alert">${stateCard("Connection waiting", runnerBusyHtml(blocked.message, blocked.run), "", "queued")}</div>` : connecting || queuedConnect ? `<div class="connect-progress c-state c-state-${connecting ? "running" : "queued"}" role="status"><div>${statusMark(connecting ? "running" : "queued", status2)}<p>${h(operation?.message ?? (queuedConnect ? "Waiting for another connection to finish." : ""))}</p></div>${button("Cancel", "cancel-connect", operation.id, "k-btn")}</div>` : operation?.state === "failed" ? `<div role="alert">${stateCard("Couldn\u2019t connect", h(operation.message ?? operation.error ?? "Check your settings and try again."), navLink("Edit connection", url2(base, { tab: "setup" }), "k-btn"), "error")}</div>` : "";
|
|
23492
23509
|
let content = "";
|
|
23493
23510
|
if (page === "new-test") {
|
|
23494
23511
|
if (q.get("test") && !savedPlaygroundTests.some((t) => t.id === q.get("test"))) {
|
|
@@ -23514,10 +23531,10 @@ function renderAgents(id) {
|
|
|
23514
23531
|
shell("agents", `<div class="k-page ag-page">${agentsBack(a, "Test unavailable") + agentPageHead("Test unavailable") + stateCard("This test is unavailable.", "", navLink("Back to agent", base), "error")}</div>`);
|
|
23515
23532
|
return;
|
|
23516
23533
|
}
|
|
23517
|
-
content = testCard(selectedTest, worlds.find((w) => w.id === selectedTest.worldId), base, savedTestActions(selectedTest.id, "Run", false, true) + navLink("Edit",
|
|
23518
|
-
} else content = connectionNotice + `<div class="k-cols"><div class="k-main"><div id="agent-recent-runs">${agentRecentRuns(playgroundRuns, a, "", { history: agentRuns })}</div><div id="agent-tests">${agentTests(tests, worlds, playgroundRuns, base, (id2) => savedTestActions(id2, "Run tasks", false, true))}</div>${playgroundErrors.map((e) => `<div role="alert">${stateCard("Run could not be read", h(e.message), `<a class="k-btn" href="${h(
|
|
23534
|
+
content = testCard(selectedTest, worlds.find((w) => w.id === selectedTest.worldId), base, savedTestActions(selectedTest.id, "Run", false, true) + navLink("Edit", url2(base, { tab: "new-test", test: selectedTest.id }), "k-btn") + button("Archive", "archive-test", selectedTest.id, "k-btn"), true) + `<div id="agent-recent-runs">${agentRecentRuns(playgroundRuns, a, savedTestActions(selectedTest.id, "Run", false, true), { testId: selectedTest.id })}</div>`;
|
|
23535
|
+
} else content = connectionNotice + `<div class="k-cols"><div class="k-main"><div id="agent-recent-runs">${agentRecentRuns(playgroundRuns, a, "", { history: agentRuns })}</div><div id="agent-tests">${agentTests(tests, worlds, playgroundRuns, base, (id2) => savedTestActions(id2, "Run tasks", false, true))}</div>${playgroundErrors.map((e) => `<div role="alert">${stateCard("Run could not be read", h(e.message), `<a class="k-btn" href="${h(url2(base, { tab: page }))}">Retry</a>`, "error")}</div>`).join("")}<p id="page-form-error" class="error" role="alert"></p></div><aside class="k-side">${agentFacts(a, operation)}</aside></div>`;
|
|
23519
23536
|
}
|
|
23520
|
-
const settingsControl = page === "setup" ? navLink("Overview", base, "k-btn") : navLink("Connection settings",
|
|
23537
|
+
const settingsControl = page === "setup" ? navLink("Overview", base, "k-btn") : navLink("Connection settings", url2(base, { tab: "setup" }), "k-btn");
|
|
23521
23538
|
const testName = savedPlaygroundTests.find((t) => t.id === q.get("test"))?.name ?? a.name;
|
|
23522
23539
|
const crumbs = agentsBack(a, page === "test" ? testName : page === "setup" ? "Connection settings" : void 0);
|
|
23523
23540
|
const heading2 = agentPageHead(page === "test" ? testName : a.name, page === "test" ? "" : primary + settingsControl, page === "test" ? "" : agentConnectionBadge(a, operation));
|
|
@@ -23541,7 +23558,7 @@ function retainReadingPosition(render) {
|
|
|
23541
23558
|
function agentPrimary(a, operation) {
|
|
23542
23559
|
if (operation?.state === "connecting" || operation?.state === "queued") return "";
|
|
23543
23560
|
if (a.execution?.mode === "container" && a.taskInput) return button("Add tasks", "add-tasks", a.id, "k-btn primary");
|
|
23544
|
-
return ownRunsOff() ? "" : navLink("Connect agent",
|
|
23561
|
+
return ownRunsOff() ? "" : navLink("Connect agent", url2("/agents/" + enc2(a.id), { tab: "setup" }), "k-btn primary");
|
|
23545
23562
|
}
|
|
23546
23563
|
function refreshAgentRuns() {
|
|
23547
23564
|
const area = document.querySelector("#agent-recent-runs");
|
|
@@ -23600,7 +23617,7 @@ function renderPlayground() {
|
|
|
23600
23617
|
const actions = readOnlyRun(batch) ? batch.origin?.stored ? button("Delete run", "delete-stored-run", batch.id, "link") : "" : !terminal(batch.status) ? button("Stop", "stop-playground", batch.id) : rerunAction(batch.id);
|
|
23601
23618
|
if (selected && !attempt) throw new Error("This attempt is not available.");
|
|
23602
23619
|
if (q.get("compare")) {
|
|
23603
|
-
const back = q.get("task") ?
|
|
23620
|
+
const back = q.get("task") ? url2(base, { task: q.get("task") }) : base;
|
|
23604
23621
|
shell("playgrounds", head("Compare attempts", navLink("Back", back, "button-link")) + '<div id="comparison-body" role="status">Loading comparison\u2026</div>');
|
|
23605
23622
|
const version2 = generation;
|
|
23606
23623
|
void api(`/playgrounds/${enc2(batch.id)}/compare?left=${enc2(q.get("compare"))}&right=${enc2(q.get("with") ?? "")}`).then((result) => {
|
|
@@ -23771,14 +23788,14 @@ function runCaseTitle(caseId, scenarioId) {
|
|
|
23771
23788
|
function renderAttempt(scene, trial) {
|
|
23772
23789
|
const recorded = legacyObservation.context?.scenario ?? runCaseItem(scene)?.scene;
|
|
23773
23790
|
current.displayScene = recorded;
|
|
23774
|
-
const q = new URLSearchParams(location.search), base =
|
|
23791
|
+
const q = new URLSearchParams(location.search), base = url2("/runs/" + enc2(current.runId), { scene, trial }), view2 = q.get("view") ?? "activity", tool = q.get("tool"), tools = recorded?.twins ?? Object.keys(observation.state ?? {});
|
|
23775
23792
|
const o = { ...observation, checks: Array.isArray(observation.checks) ? observation.checks : observation.checks?.checks ?? [] }, diagnostic = current.metadata?.diagnostic;
|
|
23776
|
-
const tabs = navTabs([["activity", "Activity",
|
|
23793
|
+
const tabs = navTabs([["activity", "Activity", url2("/runs/" + enc2(current.runId), { scene, trial, view: "activity" })], ["sandbox", "Tools", url2("/runs/" + enc2(current.runId), { scene, trial, view: "sandbox" })], ...!diagnostic ? [["result", "Outcomes", url2("/runs/" + enc2(current.runId), { scene, trial, view: "result" })]] : []], view2 === "tools" ? "sandbox" : view2);
|
|
23777
23794
|
const status2 = legacyObservation.state === "live" ? badge("Running", "accent") : observation.entry ? attemptStatus(observation.entry, diagnostic) : badge(legacyObservation.attempt?.state ?? "Unavailable");
|
|
23778
23795
|
let content = legacyObservation.reason ? `<p class="quiet-empty">${h(legacyObservation.reason)}</p>` : "";
|
|
23779
23796
|
if (legacyObservation.observation) {
|
|
23780
23797
|
if (view2 === "result") content += attemptResult(o, recorded, q.get("check"), base);
|
|
23781
|
-
else if (["sandbox", "tools"].includes(view2)) content += `<nav class="tool-nav" aria-label="Trial tools">${tools.map((t) => navLink(toolName(t),
|
|
23798
|
+
else if (["sandbox", "tools"].includes(view2)) content += `<nav class="tool-nav" aria-label="Trial tools">${tools.map((t) => navLink(toolName(t), url2("/runs/" + enc2(current.runId), { scene, trial, view: "sandbox", tool: t }), t === (tool || tools[0]) ? "active" : "")).join("")}</nav><p class="preview-context">${legacyObservation.state === "live" ? "Current captured data" : "Captured final data"}</p>${toolView(o, tool || tools[0], { ...Object.fromEntries(q), baseHref: base })}`;
|
|
23782
23799
|
else content += `${observation.taskDelivery?.response ? responseView({ response: observation.taskDelivery.response, status: legacyObservation.state === "live" ? "running" : "completed" }) : ""}${activityView(o, { baseHref: base })}`;
|
|
23783
23800
|
}
|
|
23784
23801
|
shell("runs", navLink("\u2190 Run", "/runs/" + enc2(current.runId), "back") + head(`${recorded ? title(recorded) : runCaseTitle(scene)} \xB7 trial ${trial}`, current.owned ? button("Stop run", "cancel-run", current.runId) : diagnostic ? "" : button("Run again", "rerun", current.runId, "primary")) + `<p class="task-prompt">${h(recorded?.task ?? "The exact task is not available in this saved result.")}</p><div class="batch-progress">${status2}</div>${tabs}<div id="attempt-evidence">${content}</div>`);
|
|
@@ -24277,7 +24294,7 @@ async function action(kind, value, target) {
|
|
|
24277
24294
|
return;
|
|
24278
24295
|
}
|
|
24279
24296
|
if (kind === "add-tasks") {
|
|
24280
|
-
modal("Add tasks", worlds.length ? `<p>Choose the world to add tasks in.</p><div class="world-picker">${worlds.map((w) => `<a data-nav class="world-picker-item" href="${h(
|
|
24297
|
+
modal("Add tasks", worlds.length ? `<p>Choose the world to add tasks in.</p><div class="world-picker">${worlds.map((w) => `<a data-nav class="world-picker-item" href="${h(url2("/worlds/" + enc2(w.id), { agent: value, configure: "1" }))}"><strong>${h(w.name)}</strong>${worldToolIcons(w)}</a>`).join("")}</div><p><a data-nav href="/worlds/new">Create a world</a></p>` : `<p>No worlds yet.</p><p><a data-nav class="button-link primary" href="/worlds/new">Create a world</a></p>`);
|
|
24281
24298
|
return;
|
|
24282
24299
|
}
|
|
24283
24300
|
if (kind === "copy-start-sentence") {
|
|
@@ -24366,7 +24383,7 @@ async function action(kind, value, target) {
|
|
|
24366
24383
|
}
|
|
24367
24384
|
if (kind === "live") {
|
|
24368
24385
|
const attempt = current.active?.find((a) => a.envId === value);
|
|
24369
|
-
if (attempt) go(
|
|
24386
|
+
if (attempt) go(url2("/runs/" + enc2(current.runId), { scene: attempt.scene, trial: attempt.trial, view: "activity" }));
|
|
24370
24387
|
return;
|
|
24371
24388
|
}
|
|
24372
24389
|
if (kind === "compare") {
|
|
@@ -24501,7 +24518,7 @@ async function submitForm(form) {
|
|
|
24501
24518
|
const values = new FormData(form), d = Object.fromEntries(values);
|
|
24502
24519
|
if (form.classList.contains("attempt-compare-form")) {
|
|
24503
24520
|
if (d.left === d.right) throw new Error("Choose two different attempts.");
|
|
24504
|
-
go(
|
|
24521
|
+
go(url2("/playgrounds/" + enc2(form.dataset.run), { compare: d.left, with: d.right, task: d.task }));
|
|
24505
24522
|
return;
|
|
24506
24523
|
}
|
|
24507
24524
|
if (form.id === "playground-tools-form") {
|