@ancha-labs/cli 0.4.23 → 0.4.25
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 +64027 -60998
- package/lib/assets/docs/cloud.md +13 -0
- package/lib/assets/docs/scenes.md +118 -3
- package/lib/assets/harbor/companion.mjs +45782 -43648
- package/lib/assets/harbor/suiteql-worker.mjs +32 -3
- package/lib/assets/ui/app.js +107 -61
- package/lib/assets/ui/style.css +2 -0
- package/lib/mcp-entry.mjs +192 -29
- package/lib/suiteql-worker.mjs +32 -3
- package/lib/worker.mjs +62341 -59924
- package/lib/world-server.mjs +45740 -43606
- package/package.json +1 -1
package/lib/assets/ui/app.js
CHANGED
|
@@ -20,8 +20,8 @@ var time = (value) => {
|
|
|
20
20
|
var rows = (data, key) => Array.isArray(data[key]) ? data[key] : [];
|
|
21
21
|
function table(data, fields2) {
|
|
22
22
|
if (!data.length) return empty("No records at this point.");
|
|
23
|
-
const
|
|
24
|
-
return `<div class="table-wrap"><table><thead><tr>${
|
|
23
|
+
const keys2 = fields2 ?? [...new Set(data.flatMap((d) => Object.keys(d)))].slice(0, 7);
|
|
24
|
+
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>`;
|
|
25
25
|
}
|
|
26
26
|
function named(scene, ref2) {
|
|
27
27
|
if (typeof ref2 !== "string") return "";
|
|
@@ -86,8 +86,8 @@ function connectionSetup(scene, index) {
|
|
|
86
86
|
}
|
|
87
87
|
function checks(checks2, manual = false) {
|
|
88
88
|
return `<h2>${manual ? "Current conditions" : "Results"}</h2>${checks2.map((c) => {
|
|
89
|
-
const
|
|
90
|
-
return `<article class="check"><div class="row">${badge(
|
|
89
|
+
const status2 = c.status === "skipped" ? "Skipped" : c.error ? "Evaluation error" : c.passed ? "Satisfied" : "Unmet";
|
|
90
|
+
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>`;
|
|
91
91
|
}).join("") || empty("No evaluated conditions available.")}`;
|
|
92
92
|
}
|
|
93
93
|
function timeline(o, filter2 = "all", selected) {
|
|
@@ -650,6 +650,62 @@ function countAttempts(attempts, requested, graded) {
|
|
|
650
650
|
return counts;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
+
// cloud/shared/repair-status.mjs
|
|
654
|
+
var integer = (value) => Number.isSafeInteger(value) && value >= 0;
|
|
655
|
+
var keys = (value, names) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === names.length && names.every((name) => Object.hasOwn(value, name));
|
|
656
|
+
var countKeys = ["requested", "completed", "valid", "invalid", "skipped"];
|
|
657
|
+
var checkKeys = ["check", "production", "passed", "total", "invalid", "skipped"];
|
|
658
|
+
function validRepairEvidence(evidence) {
|
|
659
|
+
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;
|
|
660
|
+
const names = /* @__PURE__ */ new Set();
|
|
661
|
+
return evidence.checks.every((check) => {
|
|
662
|
+
if (!keys(check, checkKeys) || typeof check.check !== "string" || !check.check || names.has(check.check) || !["passed", "failed", "unknown"].includes(check.production) || !["passed", "total", "invalid", "skipped"].every((key) => integer(check[key])) || check.passed + check.invalid + check.skipped > check.total || check.total > evidence.requested) return false;
|
|
663
|
+
names.add(check.check);
|
|
664
|
+
return true;
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
var status = (kind, label2, tone2 = "neutral") => ({ kind, label: label2, tone: tone2 });
|
|
668
|
+
var incomplete = () => status("incomplete", "Comparison incomplete");
|
|
669
|
+
var original = () => status("not-reproduced", "Original failure not reproduced");
|
|
670
|
+
var legacy = {
|
|
671
|
+
reproduced: ["Same failure", "fail"],
|
|
672
|
+
partly: ["Partly the same", "fail"],
|
|
673
|
+
crashed: ["Agent crashed", "fail"],
|
|
674
|
+
matches: ["Matches production", "pass"],
|
|
675
|
+
differs: ["New failure", "warn"],
|
|
676
|
+
unknown: ["Production ungraded", "neutral"],
|
|
677
|
+
ungraded: ["Not compared", "neutral"]
|
|
678
|
+
};
|
|
679
|
+
function repairStatus(row2) {
|
|
680
|
+
const evidence = row2?.repairEvidence;
|
|
681
|
+
if (evidence !== void 0) {
|
|
682
|
+
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((check) => check.total !== evidence.requested || check.invalid !== 0 || check.skipped !== 0)) return incomplete();
|
|
683
|
+
const failed = evidence.checks.filter((check) => check.production === "failed");
|
|
684
|
+
if (row2.verdict !== "crashed" && failed.length && failed.every((check) => check.passed === evidence.requested)) {
|
|
685
|
+
return evidence.checks.every((check) => check.passed === evidence.requested) ? status("fixed", "Fixed", "pass") : status("other-checks-failed", "Original failure cleared \xB7 Other checks failed", "warn");
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
if (row2?.verdict === "not-reproduced") return original();
|
|
689
|
+
const [label2, tone2] = Object.hasOwn(legacy, row2?.verdict) ? legacy[row2.verdict] : ["Not compared", "neutral"];
|
|
690
|
+
return status(row2?.verdict ?? "ungraded", label2, tone2);
|
|
691
|
+
}
|
|
692
|
+
function productionStatus(reproduction) {
|
|
693
|
+
const rows3 = Array.isArray(reproduction) ? reproduction.filter((row2) => row2 && typeof row2 === "object") : [];
|
|
694
|
+
if (!rows3.length) return void 0;
|
|
695
|
+
const states = rows3.map(repairStatus);
|
|
696
|
+
if (states.length === 1) return states[0];
|
|
697
|
+
if (states.some((state) => state.kind === "incomplete")) return incomplete();
|
|
698
|
+
const again = states.filter((state) => ["reproduced", "partly", "crashed"].includes(state.kind)).length;
|
|
699
|
+
if (again) return status("reproduced", `${again} of ${rows3.length} fail again`, "fail");
|
|
700
|
+
if (states.some((state) => state.kind === "other-checks-failed")) return status("other-checks-failed", "Original failure cleared \xB7 Other checks failed", "warn");
|
|
701
|
+
const differs = states.filter((state) => state.kind === "differs").length;
|
|
702
|
+
if (differs) return status("differs", `${differs} new ${differs === 1 ? "failure" : "failures"}`, "warn");
|
|
703
|
+
if (states.some((state) => state.kind === "not-reproduced")) return original();
|
|
704
|
+
if (states.some((state) => !["fixed", "matches"].includes(state.kind))) return status("ungraded", "Not compared");
|
|
705
|
+
const fixed = states.filter((state) => state.kind === "fixed").length;
|
|
706
|
+
return fixed ? status("fixed", `${fixed} of ${rows3.length} fixed`, "pass") : status("matches", "Matches production", "pass");
|
|
707
|
+
}
|
|
708
|
+
|
|
653
709
|
// frontend/src/runs-page.ts
|
|
654
710
|
function starterHtml(run) {
|
|
655
711
|
const by = run.startedBy ?? run.origin?.startedBy;
|
|
@@ -704,18 +760,8 @@ function runTitle(run) {
|
|
|
704
760
|
}
|
|
705
761
|
var productionBadge = (text2, tone2 = "neutral") => `<span class="k-badge ${tone2 === "pass" ? "pass" : tone2 === "fail" ? "fail" : tone2 === "warn" ? "none" : ""}">${h(text2)}</span>`;
|
|
706
762
|
function productionTag(reproduction) {
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
const count3 = (verdict) => rows3.filter((r) => r.verdict === verdict).length;
|
|
710
|
-
const again = count3("reproduced") + count3("partly") + count3("crashed"), fixed = count3("not-reproduced"), differs = count3("differs");
|
|
711
|
-
if (rows3.length === 1) {
|
|
712
|
-
const [text2, tone2] = { reproduced: ["Same failure", "fail"], partly: ["Partly the same", "fail"], crashed: ["Agent crashed", "fail"], "not-reproduced": ["Fixed", "pass"], matches: ["Matches production", "pass"], differs: ["New failure", "warn"], unknown: ["Production ungraded", "neutral"], ungraded: ["Not compared", "neutral"] }[String(rows3[0].verdict)] ?? ["Not compared", "neutral"];
|
|
713
|
-
return productionBadge(text2, tone2);
|
|
714
|
-
}
|
|
715
|
-
if (again) return productionBadge(`${again} of ${rows3.length} fail again`, "fail");
|
|
716
|
-
if (differs) return productionBadge(`${differs} new ${differs === 1 ? "failure" : "failures"}`, "warn");
|
|
717
|
-
if (fixed) return productionBadge(`${fixed} of ${rows3.length} fixed`, "pass");
|
|
718
|
-
return count3("matches") === rows3.length ? productionBadge("Matches production", "pass") : productionBadge("Not compared", "neutral");
|
|
763
|
+
const status2 = productionStatus(reproduction);
|
|
764
|
+
return status2 ? productionBadge(status2.label, status2.tone) : "";
|
|
719
765
|
}
|
|
720
766
|
function baselineNote(run) {
|
|
721
767
|
const comparison = run.comparison;
|
|
@@ -767,7 +813,7 @@ function row(item, now, compared, references) {
|
|
|
767
813
|
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);
|
|
768
814
|
const pending = item.status === "queued" ? queueLabel(run.queue) || "Queued" : item.status === "running" ? "Graded as attempts finish" : "";
|
|
769
815
|
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 ");
|
|
770
|
-
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" 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>`;
|
|
816
|
+
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>`;
|
|
771
817
|
}
|
|
772
818
|
function runsTable(runs, options = {}) {
|
|
773
819
|
const now = options.now ?? Date.now(), compared = runs.some((run) => baselineNote(run));
|
|
@@ -794,8 +840,8 @@ function runsPage(runs, filters, options = {}) {
|
|
|
794
840
|
const commits = values((item) => item.run.origin?.commit, filters.commit);
|
|
795
841
|
const named2 = filters.agent ? all.find((item) => item.run.agentId === filters.agent)?.agent : void 0;
|
|
796
842
|
const agentChoices = values((item) => item.agent, named2 ? void 0 : filters.agent).map((v) => [v === named2 ? filters.agent : v, v]);
|
|
797
|
-
const
|
|
798
|
-
const bar = `<form class="runs-filters k-filters" aria-label="Filter runs" role="search">${
|
|
843
|
+
const legacy2 = ["range"].filter((key) => filters[key]).map((key) => `<input type="hidden" name="${key}" value="${h(filters[key])}">`).join("");
|
|
844
|
+
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>";
|
|
799
845
|
const meta = range ? `${inRange.length} in the last ${RANGES[range][0].replace(" h", " hours").replace(" d", " days")}` : `${all.length} ${all.length === 1 ? "run" : "runs"}`;
|
|
800
846
|
const filtered = Boolean(query || filters.agent || filters.result || filters.where || filters.commit || filters.source || filters.target);
|
|
801
847
|
if (!shown.length) return `<div class="k-page">` + head2(meta) + 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>";
|
|
@@ -826,7 +872,7 @@ var usableMs = (value) => {
|
|
|
826
872
|
var ordered = (values, key) => values.slice().sort((a, b) => (milliseconds(a[key]) || 0) - (milliseconds(b[key]) || 0));
|
|
827
873
|
var pill = (value, tone2 = "") => `<span class="pill ${h(tone2)}">${h(value)}</span>`;
|
|
828
874
|
var empty2 = (value) => `<p class="muted experience-empty">${h(value)}</p>`;
|
|
829
|
-
var heading = (name, context = "",
|
|
875
|
+
var heading = (name, context = "", status2 = "") => `<header class="tool-title"><div><h2>${h(name)}</h2>${context ? `<span class="muted">${h(context)}</span>` : ""}</div>${status2}</header>`;
|
|
830
876
|
function href(base, query) {
|
|
831
877
|
const safe = base.startsWith("/") && !base.startsWith("//") || base.startsWith("?") ? base : "";
|
|
832
878
|
const [pathname, search = ""] = safe.split("?");
|
|
@@ -1019,8 +1065,8 @@ function githubView(o, options) {
|
|
|
1019
1065
|
const issue = list2(s.issues).find((i) => same(i.repo_id, r.id) && same(i.number, p.number));
|
|
1020
1066
|
return `<article class="tool-change"><div class="row"><strong>#${h(p.number)} ${h(text(issue?.title) || "Pull request")}</strong>${pill(p.merged ? "Merged" : text(issue?.state) || "Open", p.merged ? "good" : "")}</div>${issue?.body ? `<p>${h(readable(issue.body))}</p>` : ""}${configuration(s, p.head_sha, p.base_sha)}</article>`;
|
|
1021
1067
|
}).join("")}` : empty2("No pull requests in the captured data.")}${deployments.length ? `<h3 class="tool-section-title">Deployments</h3><ol class="event-list tool-events">${deployments.map((d) => {
|
|
1022
|
-
const
|
|
1023
|
-
return `<li><time>${h(at(d.created_at))}</time><span>${h(text(d.environment) || "Deployment")} \xB7 ${h(text(
|
|
1068
|
+
const status2 = ordered(list2(s.deployment_statuses).filter((v) => same(v.deployment_id, d.id)), "created_at").at(-1);
|
|
1069
|
+
return `<li><time>${h(at(d.created_at))}</time><span>${h(text(d.environment) || "Deployment")} \xB7 ${h(text(status2?.state) || "Status not captured")}${status2?.description ? ` \u2014 ${h(readable(status2.description))}` : ""}</span></li>`;
|
|
1024
1070
|
}).join("")}</ol>` : ""}</article>`;
|
|
1025
1071
|
}).join("") || empty2("No repositories in the captured data.")}</section>`;
|
|
1026
1072
|
}
|
|
@@ -1215,8 +1261,8 @@ function attemptResult(observation2, scene, selectedCheck, baseHref = "") {
|
|
|
1215
1261
|
if (index == null || index < 0 || index >= checks2.length) index = firstMissed < 0 ? 0 : firstMissed;
|
|
1216
1262
|
const selected = checks2[index], selectedState = checkState(selected, provisional);
|
|
1217
1263
|
return `<div class="result-heading"><div><h2>${h(verdict)}</h2><span class="muted">${h(subtitle)}</span></div></div><div class="result-workspace"><nav class="check-list" aria-label="Expected outcomes">${checks2.map((c, i) => {
|
|
1218
|
-
const
|
|
1219
|
-
return `<a data-nav class="check-item ${i === index ? "active selected" : ""}" ${i === index ? 'aria-current="true"' : ""} href="${h(href(baseHref, { view: "result", check: c.id, tool: null, channel: null, thread: null }))}"><span class="check-mark ${h(
|
|
1264
|
+
const status2 = checkState(c, provisional);
|
|
1265
|
+
return `<a data-nav class="check-item ${i === index ? "active selected" : ""}" ${i === index ? 'aria-current="true"' : ""} href="${h(href(baseHref, { view: "result", check: c.id, tool: null, channel: null, thread: null }))}"><span class="check-mark ${h(status2.tone)}" aria-label="${h(status2.label)}">${status2.mark}</span><span>${h(checkLabel(scene, c))}${c.required === false ? '<small class="muted">Advisory</small>' : ""}</span></a>`;
|
|
1220
1266
|
}).join("")}</nav><section class="selected-evidence" aria-label="Selected outcome evidence"><header class="tool-title"><h3>${h(checkLabel(scene, selected))}</h3>${pill(selectedState.label, selectedState.tone)}</header>${selected.error ? `<p class="error">${h(readable(selected.error))}</p>` : selected.status === "skipped" ? `<p>${h(readable(selected.warning) || "This check was not evaluated.")}</p>` : ""}<div class="evidence-surface">${checkEvidence(observation2, scene, selected, baseHref)}</div></section></div>`;
|
|
1221
1267
|
}
|
|
1222
1268
|
|
|
@@ -1295,13 +1341,13 @@ function taskOutcome(attempts, checked = false, requested = attempts.length) {
|
|
|
1295
1341
|
return { value: `${s.finished}/${s.total}`, note: s.active ? "running" : s.queued ? "queued" : s.skipped ? `finished \xB7 ${s.skipped} skipped` : checked ? "finished \xB7 not graded" : "finished \xB7 no checks", tone: "neutral" };
|
|
1296
1342
|
}
|
|
1297
1343
|
function executionBadge(attempt, compact = false) {
|
|
1298
|
-
const
|
|
1299
|
-
if (
|
|
1344
|
+
const status2 = String(attempt.status ?? "unavailable");
|
|
1345
|
+
if (status2 === "starting") {
|
|
1300
1346
|
const since = startingSince(attempt);
|
|
1301
|
-
return `<span class="aw-execution active">${compact ? "Starting" : h(attemptLabel(
|
|
1347
|
+
return `<span class="aw-execution active">${compact ? "Starting" : h(attemptLabel(status2))} <span data-since="${since}">${elapsedLabel(since)}</span></span>`;
|
|
1302
1348
|
}
|
|
1303
|
-
const tone2 =
|
|
1304
|
-
return `<span class="aw-execution ${tone2}">${h(attemptLabel(
|
|
1349
|
+
const tone2 = status2 === "error" ? "error" : ["running", "starting"].includes(status2) ? "active" : "neutral";
|
|
1350
|
+
return `<span class="aw-execution ${tone2}">${h(attemptLabel(status2))}</span>`;
|
|
1305
1351
|
}
|
|
1306
1352
|
function outcomeBadge(attempt) {
|
|
1307
1353
|
const outcome = attemptOutcome2(attempt);
|
|
@@ -1350,7 +1396,7 @@ function agentCrumb(batch) {
|
|
|
1350
1396
|
}
|
|
1351
1397
|
function runDetails(batch, tasks, attempts) {
|
|
1352
1398
|
const baseline = batch.comparison?.baselineRunId, total = timeOf(batch.finishedAt) - timeOf(batch.startedAt ?? batch.createdAt);
|
|
1353
|
-
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.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(duration(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} attempts`)) : "") + (batch.exitCode !== void 0 ? detailRow("Exit", h(batch.exitCode)) : "") + "</section>";
|
|
1399
|
+
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(duration(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} attempts`)) : "") + (batch.exitCode !== void 0 ? detailRow("Exit", h(batch.exitCode)) : "") + "</section>";
|
|
1354
1400
|
}
|
|
1355
1401
|
function testSquares(batch, task, attempts) {
|
|
1356
1402
|
const states = attemptStates({ tasks: [task], attempts });
|
|
@@ -1367,7 +1413,7 @@ function runProgress(batch) {
|
|
|
1367
1413
|
return `<section class="k-card k-progress" aria-label="Progress"><div class="k-progress-line"><strong class="k-big mid">${c.finished} of ${c.total} attempts done</strong></div><div class="k-meter s059-meter" role="img" aria-label="${h(label2)}">${states.map((state) => `<span class="${resultClass(state)}"></span>`).join("")}</div><span class="k-meta">${h(label2)}. Results are graded as each attempt finishes.</span></section>`;
|
|
1368
1414
|
}
|
|
1369
1415
|
function renderRunOverview(batch, actionsHtml = "", options = {}) {
|
|
1370
|
-
if (options.task && batch.rerun && /^run_cloud_/.test(String(batch.id))) actionsHtml += `<form method="post" action="/tests/rerun"><input type="hidden" name="runId" value="${h(batch.id)}"><input type="hidden" name="name" value="${h(options.task)}"><input type="hidden" name="idempotencyKey" value="${h(batch.rerun.key)}-test"><button type="submit" class="k-btn primary">Run x5</button></form>`;
|
|
1416
|
+
if (options.task && batch.rerun && /^run_cloud_/.test(String(batch.id))) actionsHtml += `<form method="post" action="/tests/rerun"><input type="hidden" name="runId" value="${h(batch.id)}"><input type="hidden" name="name" value="${h(options.task)}"><input type="hidden" name="idempotencyKey" value="${h(batch.rerun.key)}-test"><button type="submit" class="k-btn primary">Run x5</button></form><a class="k-btn" href="/tests/edit?runId=${h(encodeURIComponent(batch.id))}&name=${h(encodeURIComponent(options.task))}">Edit</a>`;
|
|
1371
1417
|
if (!options.task && batch.rerun && /^run_cloud_/.test(String(batch.id))) actionsHtml += [["again", "Run again"], ...batch.rerun.failed ? [["failed", "Rerun failed"]] : []].map(([mode, label2]) => `<form method="post" action="/runs/${h(encodeURIComponent(batch.id))}/rerun"><input type="hidden" name="mode" value="${mode}"><input type="hidden" name="idempotencyKey" value="${h(batch.rerun.key)}-${mode}"><button type="submit" class="k-btn">${label2}</button></form>`).join("");
|
|
1372
1418
|
const groups = entrySections(batch), tasks = groups.flatMap((group) => group.tasks), allAttempts = records(batch.attempts), c = runCounts(batch);
|
|
1373
1419
|
const rows3 = groups.flatMap(({ entry, tasks: tasks2, attempts }) => tasks2.map((task) => ({ entry, task, attempts: attempts.filter((a) => a.taskId === task.id) }))).filter((row2) => !options.task || row2.task.id === options.task);
|
|
@@ -1535,8 +1581,8 @@ function capturedToolView(observation2, tool, options) {
|
|
|
1535
1581
|
return content === unavailable ? `<p class="quiet-empty">${h(toolName(tool))} data is unavailable for this attempt.</p>` : content;
|
|
1536
1582
|
}
|
|
1537
1583
|
function managedResponse(attempt) {
|
|
1538
|
-
const
|
|
1539
|
-
if (typeof attempt.response !== "string" || !attempt.response.trim()) return
|
|
1584
|
+
const original2 = responseView(attempt);
|
|
1585
|
+
if (typeof attempt.response !== "string" || !attempt.response.trim()) return original2;
|
|
1540
1586
|
let text2 = attempt.response;
|
|
1541
1587
|
if (/^\s*[\[{]/.test(text2)) {
|
|
1542
1588
|
try {
|
|
@@ -1548,7 +1594,7 @@ function managedResponse(attempt) {
|
|
|
1548
1594
|
} catch {
|
|
1549
1595
|
}
|
|
1550
1596
|
}
|
|
1551
|
-
return
|
|
1597
|
+
return original2.replace(/<div class="response-text">[\s\S]*?<\/div>/, () => `<div class="aw-markdown">${safeMarkdown(text2)}</div>`);
|
|
1552
1598
|
}
|
|
1553
1599
|
function attemptKind(attempt) {
|
|
1554
1600
|
const outcome = attemptOutcome2(attempt).key;
|
|
@@ -1587,8 +1633,8 @@ function gist(value, count3 = 3) {
|
|
|
1587
1633
|
const fields2 = fieldsOf(value, count3 + 1).filter(([, v]) => v !== "");
|
|
1588
1634
|
return fields2.slice(0, count3).map(([k, v]) => `${k}: ${v.length > 40 ? `${v.slice(0, 39)}\u2026` : v}`).join(", ") + (fields2.length > count3 ? ", \u2026" : "");
|
|
1589
1635
|
}
|
|
1590
|
-
var fieldList = (value) => {
|
|
1591
|
-
const fields2 = fieldsOf(value);
|
|
1636
|
+
var fieldList = (value, limit = 60) => {
|
|
1637
|
+
const fields2 = fieldsOf(value, limit);
|
|
1592
1638
|
if (!fields2.length || fields2.length === 1 && !fields2[0][0] && !fields2[0][1]) return '<p class="muted">Empty</p>';
|
|
1593
1639
|
if (fields2.length === 1 && !fields2[0][0]) return `<p class="rd-text">${h(fields2[0][1])}</p>`;
|
|
1594
1640
|
return `<dl class="rd-fields">${fields2.map(([k, v]) => `<dt>${h(k)}</dt><dd>${h(v)}</dd>`).join("")}</dl>`;
|
|
@@ -1608,8 +1654,8 @@ function callsSection(observation2, failing, open) {
|
|
|
1608
1654
|
const seq = Number(t.seq), checks2 = failing.get(seq) ?? [], ms = timeOf(t.tSim), error = Boolean(t.gap || t.issue || Number(t.status) >= 400 || t.response?.ok === false);
|
|
1609
1655
|
const args = t.service === "tools" ? t.request?.args : t.service === "agent" ? t.request?.output : t.request;
|
|
1610
1656
|
const answer = t.service === "tools" ? t.response?.error ?? t.response?.result : t.service === "agent" ? void 0 : t.response;
|
|
1611
|
-
const
|
|
1612
|
-
return `<details class="rd-call${checks2.length ? " failing" : ""}" id="call-${h(seq)}"${seq === open ? " 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">${
|
|
1657
|
+
const status2 = t.status === void 0 ? "" : `<span class="rd-code${error ? " bad" : ""}">${h(t.status)}</span>`;
|
|
1658
|
+
return `<details class="rd-call${checks2.length ? " failing" : ""}" id="call-${h(seq)}"${seq === open ? " 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(duration(ms - start))}` : "\u2014"}</span></summary><div class="rd-call-body"><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>`;
|
|
1613
1659
|
}).join("");
|
|
1614
1660
|
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>`;
|
|
1615
1661
|
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(duration(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>`;
|
|
@@ -1639,8 +1685,8 @@ function checkFields(value) {
|
|
|
1639
1685
|
return fieldsOf(value);
|
|
1640
1686
|
}
|
|
1641
1687
|
function failedCheckCard(check, jump) {
|
|
1642
|
-
const expected = new Map(checkFields(check.expected)), actual = new Map(checkFields(check.actual)),
|
|
1643
|
-
return `<section class="k-check" aria-label="${h(check.id)}"><header class="k-check-head"><span>${resultIcon("failed")}${h(check.id)}</span>${check.kind ? `<span class="k-badge">${check.kind === "judge" ? "AI judge" : "Rule"}</span>` : ""}${check.required === false ? '<span class="k-badge">Optional</span>' : ""}</header><table class="k-fields"><thead><tr><th>Field</th><th>Expected</th><th>Got</th></tr></thead><tbody>${
|
|
1688
|
+
const expected = new Map(checkFields(check.expected)), actual = new Map(checkFields(check.actual)), keys2 = [.../* @__PURE__ */ new Set([...expected.keys(), ...actual.keys()])], person2 = jump(String(check.id));
|
|
1689
|
+
return `<section class="k-check" aria-label="${h(check.id)}"><header class="k-check-head"><span>${resultIcon("failed")}${h(check.id)}</span>${check.kind ? `<span class="k-badge">${check.kind === "judge" ? "AI judge" : "Rule"}</span>` : ""}${check.required === false ? '<span class="k-badge">Optional</span>' : ""}</header><table class="k-fields"><thead><tr><th>Field</th><th>Expected</th><th>Got</th></tr></thead><tbody>${keys2.map((key) => `<tr><td>${h(key || "Result")}</td><td>${h(expected.get(key) ?? "\u2014")}</td><td${expected.get(key) !== actual.get(key) ? ' class="off"' : ""}>${h(actual.get(key) ?? "\u2014")}</td></tr>`).join("")}</tbody></table>${check.explanation ? `<p>${h(check.explanation)}</p>` : ""}${person2 ? `<p>${navLink("See in the conversation", person2, "aw-check-jump")}</p>` : ""}${check.details ? `<details><summary>Record details</summary>${fieldList(check.details, Infinity)}</details>` : ""}</section>`;
|
|
1644
1690
|
}
|
|
1645
1691
|
function stepsSection(observation2, checks2, callHref, jump) {
|
|
1646
1692
|
const trace = records(observation2.trace).filter((t) => t.path !== "console.manual_action").sort((a, b) => (Number(a.seq) || 0) - (Number(b.seq) || 0));
|
|
@@ -2157,9 +2203,9 @@ var viewWorldsEmpty = (boot2) => viewBanner(boot2, /* @__PURE__ */ new Date(), "
|
|
|
2157
2203
|
|
|
2158
2204
|
// frontend/src/generated/tool-catalog.ts
|
|
2159
2205
|
var TOOL_CATALOG = [
|
|
2160
|
-
{ "name": "slack", "title": "Slack", "category": "Team chat", "description": "Channels, messages and threads", "version": "Web API", "env": ["SLACK_API_URL", "SLACK_BOT_TOKEN"], "endpoints": [["POST", "/api/apps.connections.open"], ["POST", "/api/assistant.threads.setStatus"], ["POST", "/api/assistant.threads.setSuggestedPrompts"], ["POST", "/api/assistant.threads.setTitle"], ["POST", "/api/auth.test"], ["POST", "/api/canvases.create"], ["POST", "/api/canvases.getContent"], ["POST", "/api/chat.appendStream"], ["POST", "/api/chat.delete"], ["POST", "/api/chat.getPermalink"], ["POST", "/api/chat.postEphemeral"], ["POST", "/api/chat.postMessage"], ["POST", "/api/chat.startStream"], ["POST", "/api/chat.stopStream"], ["POST", "/api/chat.update"], ["POST", "/api/conversations.create"], ["POST", "/api/conversations.history"], ["POST", "/api/conversations.info"], ["POST", "/api/conversations.join"], ["POST", "/api/conversations.list"], ["POST", "/api/conversations.members"], ["POST", "/api/conversations.open"], ["POST", "/api/conversations.replies"], ["POST", "/api/files.info"], ["POST", "/api/files.list"], ["POST", "/api/reactions.add"], ["POST", "/api/reactions.get"], ["POST", "/api/reactions.remove"], ["POST", "/api/search.messages"], ["POST", "/api/users.conversations"], ["POST", "/api/users.info"], ["POST", "/api/users.list"], ["POST", "/api/users.lookupByEmail"], ["POST", "/api/views.publish"]] },
|
|
2206
|
+
{ "name": "slack", "title": "Slack", "category": "Team chat", "description": "Channels, messages and threads", "version": "Web API", "env": ["SLACK_API_URL", "SLACK_BOT_TOKEN"], "endpoints": [["POST", "/api/apps.connections.open"], ["POST", "/api/assistant.threads.setStatus"], ["POST", "/api/assistant.threads.setSuggestedPrompts"], ["POST", "/api/assistant.threads.setTitle"], ["POST", "/api/auth.test"], ["POST", "/api/canvases.create"], ["POST", "/api/canvases.getContent"], ["POST", "/api/chat.appendStream"], ["POST", "/api/chat.delete"], ["POST", "/api/chat.getPermalink"], ["POST", "/api/chat.postEphemeral"], ["POST", "/api/chat.postMessage"], ["POST", "/api/chat.startStream"], ["POST", "/api/chat.stopStream"], ["POST", "/api/chat.update"], ["POST", "/api/conversations.create"], ["POST", "/api/conversations.history"], ["POST", "/api/conversations.info"], ["POST", "/api/conversations.join"], ["POST", "/api/conversations.list"], ["POST", "/api/conversations.members"], ["POST", "/api/conversations.open"], ["POST", "/api/conversations.replies"], ["POST", "/api/files.info"], ["POST", "/api/files.list"], ["POST", "/api/pins.add"], ["POST", "/api/pins.list"], ["POST", "/api/pins.remove"], ["POST", "/api/reactions.add"], ["POST", "/api/reactions.get"], ["POST", "/api/reactions.remove"], ["POST", "/api/search.messages"], ["POST", "/api/users.conversations"], ["POST", "/api/users.info"], ["POST", "/api/users.list"], ["POST", "/api/users.lookupByEmail"], ["POST", "/api/views.publish"]] },
|
|
2161
2207
|
{ "name": "discord", "title": "Discord", "category": "Community chat", "description": "A community server as its bot sees it: channels, messages, threads and reactions", "version": "REST API v10", "env": ["DISCORD_API_URL", "DISCORD_BOT_TOKEN"], "endpoints": [["GET", "/api/v10/channels/{channel_id}"], ["GET", "/api/v10/channels/{channel_id}/messages"], ["POST", "/api/v10/channels/{channel_id}/messages"], ["GET", "/api/v10/channels/{channel_id}/messages/{message_id}"], ["PATCH", "/api/v10/channels/{channel_id}/messages/{message_id}"], ["DELETE", "/api/v10/channels/{channel_id}/messages/{message_id}"], ["GET", "/api/v10/channels/{channel_id}/messages/{message_id}/reactions/{emoji}"], ["PUT", "/api/v10/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me"], ["DELETE", "/api/v10/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me"], ["POST", "/api/v10/channels/{channel_id}/messages/{message_id}/threads"], ["GET", "/api/v10/channels/{channel_id}/pins"], ["PUT", "/api/v10/channels/{channel_id}/pins/{message_id}"], ["DELETE", "/api/v10/channels/{channel_id}/pins/{message_id}"], ["POST", "/api/v10/channels/{channel_id}/threads"], ["POST", "/api/v10/channels/{channel_id}/typing"], ["GET", "/api/v10/guilds/{guild_id}"], ["GET", "/api/v10/guilds/{guild_id}/channels"], ["GET", "/api/v10/guilds/{guild_id}/members"], ["GET", "/api/v10/guilds/{guild_id}/members/{user_id}"], ["GET", "/api/v10/guilds/{guild_id}/roles"], ["GET", "/api/v10/guilds/{guild_id}/threads/active"], ["GET", "/api/v10/users/{user_id}"], ["GET", "/api/v10/users/@me"], ["POST", "/api/v10/users/@me/channels"], ["GET", "/api/v10/users/@me/guilds"]] },
|
|
2162
|
-
{ "name": "github", "title": "GitHub", "category": "Code", "description": "Repositories, pull requests and deployments", "version": "REST", "env": ["GITHUB_API_URL", "GITHUB_TOKEN"], "endpoints": [["GET", "/repos/:owner/:repo/actions/runs"], ["GET", "/repos/:owner/:repo/actions/runs/:id"], ["POST", "/repos/:owner/:repo/actions/runs/:id/rerun"], ["GET", "/repos/:owner/:repo/actions/workflows/:workflow/runs"], ["GET", "/repos/:owner/:repo/branches"], ["GET", "/repos/:owner/:repo/branches/:branch"], ["GET", "/repos/:owner/:repo/check-runs/:id"], ["GET", "/repos/:owner/:repo/collaborators"], ["GET", "/repos/:owner/:repo/collaborators/:username"], ["PUT", "/repos/:owner/:repo/collaborators/:username"], ["DELETE", "/repos/:owner/:repo/collaborators/:username"], ["GET", "/repos/:owner/:repo/collaborators/:username/permission"], ["GET", "/repos/:owner/:repo/commits"], ["GET", "/repos/:owner/:repo/commits/:ref"], ["GET", "/repos/:owner/:repo/commits/:ref/check-runs"], ["GET", "/repos/:owner/:repo/compare/:base...:head"], ["PUT", "/repos/:owner/:repo/contents/:path"], ["GET", "/repos/:owner/:repo/contents/:path?"], ["GET", "/repos/:owner/:repo/deployments"], ["POST", "/repos/:owner/:repo/deployments"], ["GET", "/repos/:owner/:repo/deployments/:id"], ["GET", "/repos/:owner/:repo/deployments/:id/statuses"], ["POST", "/repos/:owner/:repo/deployments/:id/statuses"], ["GET", "/repos/:owner/:repo/deployments/:id/statuses/:statusId"], ["POST", "/repos/:owner/:repo/git/blobs"], ["GET", "/repos/:owner/:repo/git/blobs/:sha"], ["POST", "/repos/:owner/:repo/git/commits"], ["GET", "/repos/:owner/:repo/git/commits/:sha"], ["GET", "/repos/:owner/:repo/git/matching-refs/:ref?"], ["GET", "/repos/:owner/:repo/git/ref/:ref"], ["POST", "/repos/:owner/:repo/git/refs"], ["PATCH", "/repos/:owner/:repo/git/refs/:ref"], ["DELETE", "/repos/:owner/:repo/git/refs/:ref"], ["POST", "/repos/:owner/:repo/git/trees"], ["GET", "/repos/:owner/:repo/git/trees/:sha"], ["POST", "/graphql"], ["GET", "/repos/:owner/:repo/issues"], ["POST", "/repos/:owner/:repo/issues"], ["GET", "/repos/:owner/:repo/issues/:number"], ["PATCH", "/repos/:owner/:repo/issues/:number"], ["GET", "/repos/:owner/:repo/issues/:number/comments"], ["POST", "/repos/:owner/:repo/issues/:number/comments"], ["GET", "/repos/:owner/:repo/issues/:number/labels"], ["POST", "/repos/:owner/:repo/issues/:number/labels"], ["PUT", "/repos/:owner/:repo/issues/:number/labels"], ["DELETE", "/repos/:owner/:repo/issues/:number/labels"], ["DELETE", "/repos/:owner/:repo/issues/:number/labels/:name"], ["GET", "/repos/:owner/:repo/issues/comments"], ["GET", "/repos/:owner/:repo/issues/comments/:id"], ["PATCH", "/repos/:owner/:repo/issues/comments/:id"], ["DELETE", "/repos/:owner/:repo/issues/comments/:id"], ["GET", "/repos/:owner/:repo/labels"], ["POST", "/repos/:owner/:repo/labels"], ["GET", "/repos/:owner/:repo/labels/:name"], ["PATCH", "/repos/:owner/:repo/labels/:name"], ["DELETE", "/repos/:owner/:repo/labels/:name"], ["GET", "/orgs/:org/members"], ["GET", "/orgs/:org/members/:username"], ["DELETE", "/orgs/:org/members/:username"], ["GET", "/orgs/:org/memberships/:username"], ["DELETE", "/orgs/:org/memberships/:username"], ["GET", "/orgs/:org/repos"], ["GET", "/repos/:owner/:repo/pulls"], ["POST", "/repos/:owner/:repo/pulls"], ["GET", "/repos/:owner/:repo/pulls/:number"], ["PATCH", "/repos/:owner/:repo/pulls/:number"], ["GET", "/repos/:owner/:repo/pulls/:number/comments"], ["POST", "/repos/:owner/:repo/pulls/:number/comments"], ["GET", "/repos/:owner/:repo/pulls/:number/commits"], ["GET", "/repos/:owner/:repo/pulls/:number/files"], ["GET", "/repos/:owner/:repo/pulls/:number/merge"], ["PUT", "/repos/:owner/:repo/pulls/:number/merge"], ["GET", "/repos/:owner/:repo/pulls/:number/reviews"], ["POST", "/repos/:owner/:repo/pulls/:number/reviews"], ["GET", "/repos/:owner/:repo/pulls/:number/reviews/:id"], ["GET", "/repos/:owner/:repo/pulls/comments"], ["GET", "/repos/:owner/:repo/pulls/comments/:id"], ["PATCH", "/repos/:owner/:repo/pulls/comments/:id"], ["DELETE", "/repos/:owner/:repo/pulls/comments/:id"], ["GET", "/repos/:owner/:repo"], ["GET", "/search/issues"], ["GET", "/user"], ["GET", "/user/repos"]] },
|
|
2208
|
+
{ "name": "github", "title": "GitHub", "category": "Code", "description": "Repositories, pull requests and deployments", "version": "REST", "env": ["GITHUB_API_URL", "GITHUB_TOKEN"], "endpoints": [["GET", "/repos/:owner/:repo/actions/runs"], ["GET", "/repos/:owner/:repo/actions/runs/:id"], ["POST", "/repos/:owner/:repo/actions/runs/:id/rerun"], ["GET", "/repos/:owner/:repo/actions/workflows/:workflow/runs"], ["GET", "/repos/:owner/:repo/branches"], ["GET", "/repos/:owner/:repo/branches/:branch"], ["GET", "/repos/:owner/:repo/check-runs/:id"], ["GET", "/repos/:owner/:repo/collaborators"], ["GET", "/repos/:owner/:repo/collaborators/:username"], ["PUT", "/repos/:owner/:repo/collaborators/:username"], ["DELETE", "/repos/:owner/:repo/collaborators/:username"], ["GET", "/repos/:owner/:repo/collaborators/:username/permission"], ["GET", "/repos/:owner/:repo/commits"], ["GET", "/repos/:owner/:repo/commits/:ref"], ["GET", "/repos/:owner/:repo/commits/:ref/check-runs"], ["GET", "/repos/:owner/:repo/commits/:ref/status"], ["GET", "/repos/:owner/:repo/commits/:ref/statuses"], ["GET", "/repos/:owner/:repo/compare/:base...:head"], ["PUT", "/repos/:owner/:repo/contents/:path"], ["GET", "/repos/:owner/:repo/contents/:path?"], ["GET", "/repos/:owner/:repo/deployments"], ["POST", "/repos/:owner/:repo/deployments"], ["GET", "/repos/:owner/:repo/deployments/:id"], ["GET", "/repos/:owner/:repo/deployments/:id/statuses"], ["POST", "/repos/:owner/:repo/deployments/:id/statuses"], ["GET", "/repos/:owner/:repo/deployments/:id/statuses/:statusId"], ["POST", "/repos/:owner/:repo/git/blobs"], ["GET", "/repos/:owner/:repo/git/blobs/:sha"], ["POST", "/repos/:owner/:repo/git/commits"], ["GET", "/repos/:owner/:repo/git/commits/:sha"], ["GET", "/repos/:owner/:repo/git/matching-refs/:ref?"], ["GET", "/repos/:owner/:repo/git/ref/:ref"], ["POST", "/repos/:owner/:repo/git/refs"], ["PATCH", "/repos/:owner/:repo/git/refs/:ref"], ["DELETE", "/repos/:owner/:repo/git/refs/:ref"], ["POST", "/repos/:owner/:repo/git/trees"], ["GET", "/repos/:owner/:repo/git/trees/:sha"], ["POST", "/graphql"], ["GET", "/repos/:owner/:repo/issues"], ["POST", "/repos/:owner/:repo/issues"], ["GET", "/repos/:owner/:repo/issues/:number"], ["PATCH", "/repos/:owner/:repo/issues/:number"], ["GET", "/repos/:owner/:repo/issues/:number/comments"], ["POST", "/repos/:owner/:repo/issues/:number/comments"], ["GET", "/repos/:owner/:repo/issues/:number/labels"], ["POST", "/repos/:owner/:repo/issues/:number/labels"], ["PUT", "/repos/:owner/:repo/issues/:number/labels"], ["DELETE", "/repos/:owner/:repo/issues/:number/labels"], ["DELETE", "/repos/:owner/:repo/issues/:number/labels/:name"], ["GET", "/repos/:owner/:repo/issues/comments"], ["GET", "/repos/:owner/:repo/issues/comments/:id"], ["PATCH", "/repos/:owner/:repo/issues/comments/:id"], ["DELETE", "/repos/:owner/:repo/issues/comments/:id"], ["GET", "/repos/:owner/:repo/labels"], ["POST", "/repos/:owner/:repo/labels"], ["GET", "/repos/:owner/:repo/labels/:name"], ["PATCH", "/repos/:owner/:repo/labels/:name"], ["DELETE", "/repos/:owner/:repo/labels/:name"], ["GET", "/orgs/:org/members"], ["GET", "/orgs/:org/members/:username"], ["DELETE", "/orgs/:org/members/:username"], ["GET", "/orgs/:org/memberships/:username"], ["DELETE", "/orgs/:org/memberships/:username"], ["GET", "/orgs/:org/repos"], ["GET", "/repos/:owner/:repo/pulls"], ["POST", "/repos/:owner/:repo/pulls"], ["GET", "/repos/:owner/:repo/pulls/:number"], ["PATCH", "/repos/:owner/:repo/pulls/:number"], ["GET", "/repos/:owner/:repo/pulls/:number/comments"], ["POST", "/repos/:owner/:repo/pulls/:number/comments"], ["GET", "/repos/:owner/:repo/pulls/:number/commits"], ["GET", "/repos/:owner/:repo/pulls/:number/files"], ["GET", "/repos/:owner/:repo/pulls/:number/merge"], ["PUT", "/repos/:owner/:repo/pulls/:number/merge"], ["GET", "/repos/:owner/:repo/pulls/:number/reviews"], ["POST", "/repos/:owner/:repo/pulls/:number/reviews"], ["GET", "/repos/:owner/:repo/pulls/:number/reviews/:id"], ["GET", "/repos/:owner/:repo/pulls/comments"], ["GET", "/repos/:owner/:repo/pulls/comments/:id"], ["PATCH", "/repos/:owner/:repo/pulls/comments/:id"], ["DELETE", "/repos/:owner/:repo/pulls/comments/:id"], ["GET", "/repos/:owner/:repo"], ["GET", "/search/issues"], ["GET", "/repos/:owner/:repo/statuses/:ref"], ["GET", "/user"], ["GET", "/user/repos"]] },
|
|
2163
2209
|
{ "name": "linear", "title": "Linear", "category": "Issues", "description": "Issues, projects and team workflows", "version": "GraphQL", "env": ["LINEAR_API_URL", "LINEAR_API_KEY"], "endpoints": [["QUERY", "comment"], ["MUTATION", "commentCreate"], ["MUTATION", "commentDelete"], ["QUERY", "comments"], ["MUTATION", "commentUpdate"], ["QUERY", "issue"], ["MUTATION", "issueAddLabel"], ["MUTATION", "issueArchive"], ["MUTATION", "issueCreate"], ["MUTATION", "issueDelete"], ["QUERY", "issueLabel"], ["MUTATION", "issueLabelCreate"], ["QUERY", "issueLabels"], ["MUTATION", "issueRemoveLabel"], ["QUERY", "issues"], ["MUTATION", "issueUpdate"], ["QUERY", "organization"], ["QUERY", "project"], ["QUERY", "projects"], ["QUERY", "searchIssues"], ["QUERY", "team"], ["QUERY", "teams"], ["QUERY", "user"], ["QUERY", "users"], ["QUERY", "viewer"], ["QUERY", "workflowState"], ["QUERY", "workflowStates"]] },
|
|
2164
2210
|
{ "name": "jira", "title": "Jira", "category": "Issues", "description": "Issues, JQL search, comments, transitions and sprints", "version": "REST v3/v2 and agile 1.0", "env": ["JIRA_BASE_URL", "JIRA_EMAIL", "JIRA_API_TOKEN"], "endpoints": [["POST", "/rest/agile/1.0/backlog/issue"], ["GET", "/rest/agile/1.0/board"], ["GET", "/rest/agile/1.0/board/:id"], ["GET", "/rest/agile/1.0/board/:id/backlog"], ["GET", "/rest/agile/1.0/board/:id/issue"], ["GET", "/rest/agile/1.0/board/:id/sprint"], ["POST", "/rest/agile/1.0/sprint"], ["GET", "/rest/agile/1.0/sprint/:id"], ["POST", "/rest/agile/1.0/sprint/:id"], ["GET", "/rest/agile/1.0/sprint/:id/issue"], ["POST", "/rest/agile/1.0/sprint/:id/issue"], ["GET", "/rest/api/3/field"], ["POST", "/rest/api/3/issue"], ["GET", "/rest/api/3/issue/:key"], ["PUT", "/rest/api/3/issue/:key"], ["DELETE", "/rest/api/3/issue/:key"], ["PUT", "/rest/api/3/issue/:key/assignee"], ["GET", "/rest/api/3/issue/:key/changelog"], ["GET", "/rest/api/3/issue/:key/comment"], ["POST", "/rest/api/3/issue/:key/comment"], ["GET", "/rest/api/3/issue/:key/comment/:id"], ["PUT", "/rest/api/3/issue/:key/comment/:id"], ["DELETE", "/rest/api/3/issue/:key/comment/:id"], ["GET", "/rest/api/3/issue/:key/transitions"], ["POST", "/rest/api/3/issue/:key/transitions"], ["GET", "/rest/api/3/issue/:key/watchers"], ["POST", "/rest/api/3/issue/:key/watchers"], ["DELETE", "/rest/api/3/issue/:key/watchers"], ["POST", "/rest/api/3/issue/bulk"], ["GET", "/rest/api/3/issue/createmeta/:key/issuetypes"], ["GET", "/rest/api/3/issue/createmeta/:key/issuetypes/:type"], ["POST", "/rest/api/3/issueLink"], ["GET", "/rest/api/3/issueLink/:id"], ["DELETE", "/rest/api/3/issueLink/:id"], ["GET", "/rest/api/3/issueLinkType"], ["GET", "/rest/api/3/issuetype"], ["GET", "/rest/api/3/label"], ["GET", "/rest/api/3/myself"], ["GET", "/rest/api/3/priority"], ["GET", "/rest/api/3/project"], ["GET", "/rest/api/3/project/:key"], ["GET", "/rest/api/3/project/:key/components"], ["GET", "/rest/api/3/project/:key/statuses"], ["GET", "/rest/api/3/project/:key/versions"], ["GET", "/rest/api/3/project/search"], ["GET", "/rest/api/3/resolution"], ["GET", "/rest/api/3/search"], ["POST", "/rest/api/3/search"], ["POST", "/rest/api/3/search/approximate-count"], ["GET", "/rest/api/3/search/jql"], ["POST", "/rest/api/3/search/jql"], ["GET", "/rest/api/3/serverInfo"], ["GET", "/rest/api/3/status"], ["GET", "/rest/api/3/statuscategory"], ["GET", "/rest/api/3/user"], ["GET", "/rest/api/3/user/assignable/search"], ["GET", "/rest/api/3/user/search"]] },
|
|
2165
2211
|
{ "name": "asana", "title": "Asana", "category": "Projects", "description": "Projects, sections, tasks, subtasks and comments", "version": "REST API 1.0", "env": ["ASANA_API_URL", "ASANA_ACCESS_TOKEN"], "endpoints": [["GET", "/api/1.0/projects"], ["GET", "/api/1.0/projects/{project_gid}"], ["GET", "/api/1.0/projects/{project_gid}/sections"], ["POST", "/api/1.0/projects/{project_gid}/sections"], ["GET", "/api/1.0/projects/{project_gid}/tasks"], ["POST", "/api/1.0/sections/{section_gid}/addTask"], ["GET", "/api/1.0/sections/{section_gid}/tasks"], ["GET", "/api/1.0/tasks"], ["POST", "/api/1.0/tasks"], ["GET", "/api/1.0/tasks/{task_gid}"], ["PUT", "/api/1.0/tasks/{task_gid}"], ["DELETE", "/api/1.0/tasks/{task_gid}"], ["POST", "/api/1.0/tasks/{task_gid}/addProject"], ["POST", "/api/1.0/tasks/{task_gid}/removeProject"], ["GET", "/api/1.0/tasks/{task_gid}/stories"], ["POST", "/api/1.0/tasks/{task_gid}/stories"], ["GET", "/api/1.0/tasks/{task_gid}/subtasks"], ["POST", "/api/1.0/tasks/{task_gid}/subtasks"], ["GET", "/api/1.0/users"], ["GET", "/api/1.0/users/{user_gid}"], ["GET", "/api/1.0/workspaces"], ["GET", "/api/1.0/workspaces/{workspace_gid}"], ["GET", "/api/1.0/workspaces/{workspace_gid}/tasks/search"]] },
|
|
@@ -2179,11 +2225,11 @@ var TOOL_CATALOG = [
|
|
|
2179
2225
|
{ "name": "amazon-s3", "title": "Amazon S3", "category": "Files", "description": "Buckets, objects and multipart uploads", "version": "REST (SigV4)", "env": ["AWS_ENDPOINT_URL_S3", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_REGION"], "endpoints": [["HEAD", "/{Bucket}"], ["GET", "/{Bucket}"], ["PUT", "/{Bucket}"], ["DELETE", "/{Bucket}"], ["HEAD", "/{Bucket}/{Key+}"], ["GET", "/{Bucket}/{Key+}"], ["PUT", "/{Bucket}/{Key+}"], ["DELETE", "/{Bucket}/{Key+}"], ["PUT", "/{Bucket}/{Key+} (x-amz-copy-source)"], ["PUT", "/{Bucket}/{Key+}?partNumber&uploadId"], ["GET", "/{Bucket}/{Key+}?tagging"], ["PUT", "/{Bucket}/{Key+}?tagging"], ["DELETE", "/{Bucket}/{Key+}?tagging"], ["GET", "/{Bucket}/{Key+}?uploadId"], ["POST", "/{Bucket}/{Key+}?uploadId"], ["DELETE", "/{Bucket}/{Key+}?uploadId"], ["POST", "/{Bucket}/{Key+}?uploads"], ["POST", "/{Bucket}?delete"], ["GET", "/{Bucket}?list-type=2"], ["GET", "/{Bucket}?location"], ["GET", "/{Bucket}?tagging"], ["PUT", "/{Bucket}?tagging"], ["DELETE", "/{Bucket}?tagging"], ["GET", "/{Bucket}?uploads"], ["GET", "/"]] },
|
|
2180
2226
|
{ "name": "okta", "title": "Okta", "category": "Identity", "description": "People, groups, app assignments and the System Log", "version": "Management API v1", "env": ["OKTA_ORG_URL", "OKTA_API_TOKEN"], "endpoints": [["GET", "/api/v1/apps"], ["GET", "/api/v1/apps/{appId}"], ["GET", "/api/v1/apps/{appId}/groups"], ["PUT", "/api/v1/apps/{appId}/groups/{groupId}"], ["DELETE", "/api/v1/apps/{appId}/groups/{groupId}"], ["GET", "/api/v1/apps/{appId}/users"], ["POST", "/api/v1/apps/{appId}/users"], ["DELETE", "/api/v1/apps/{appId}/users/{userId}"], ["GET", "/api/v1/groups"], ["POST", "/api/v1/groups"], ["GET", "/api/v1/groups/{groupId}"], ["PUT", "/api/v1/groups/{groupId}"], ["DELETE", "/api/v1/groups/{groupId}"], ["GET", "/api/v1/groups/{groupId}/users"], ["PUT", "/api/v1/groups/{groupId}/users/{userId}"], ["DELETE", "/api/v1/groups/{groupId}/users/{userId}"], ["GET", "/api/v1/logs"], ["GET", "/api/v1/users"], ["POST", "/api/v1/users"], ["GET", "/api/v1/users/{id}"], ["POST", "/api/v1/users/{id}"], ["DELETE", "/api/v1/users/{id}"], ["GET", "/api/v1/users/{id}/appLinks"], ["GET", "/api/v1/users/{id}/groups"], ["POST", "/api/v1/users/{id}/lifecycle/activate"], ["POST", "/api/v1/users/{id}/lifecycle/deactivate"], ["POST", "/api/v1/users/{id}/lifecycle/reset_password"], ["POST", "/api/v1/users/{id}/lifecycle/suspend"], ["POST", "/api/v1/users/{id}/lifecycle/unlock"], ["POST", "/api/v1/users/{id}/lifecycle/unsuspend"], ["DELETE", "/api/v1/users/{id}/sessions"]] },
|
|
2181
2227
|
{ "name": "clerk", "title": "Clerk", "category": "Identity", "description": "Users, organizations, invitations and sessions", "version": "Backend API v1", "env": ["CLERK_API_URL", "CLERK_SECRET_KEY"], "endpoints": [["GET", "/v1/invitations"], ["POST", "/v1/invitations"], ["POST", "/v1/invitations/{invitation_id}/revoke"], ["GET", "/v1/organizations"], ["POST", "/v1/organizations"], ["GET", "/v1/organizations/{organization_id}"], ["PATCH", "/v1/organizations/{organization_id}"], ["DELETE", "/v1/organizations/{organization_id}"], ["GET", "/v1/organizations/{organization_id}/invitations"], ["POST", "/v1/organizations/{organization_id}/invitations"], ["GET", "/v1/organizations/{organization_id}/invitations/{invitation_id}"], ["POST", "/v1/organizations/{organization_id}/invitations/{invitation_id}/revoke"], ["GET", "/v1/organizations/{organization_id}/memberships"], ["POST", "/v1/organizations/{organization_id}/memberships"], ["PATCH", "/v1/organizations/{organization_id}/memberships/{user_id}"], ["DELETE", "/v1/organizations/{organization_id}/memberships/{user_id}"], ["PATCH", "/v1/organizations/{organization_id}/metadata"], ["GET", "/v1/sessions"], ["GET", "/v1/sessions/{session_id}"], ["POST", "/v1/sessions/{session_id}/revoke"], ["GET", "/v1/users"], ["POST", "/v1/users"], ["GET", "/v1/users/{user_id}"], ["PATCH", "/v1/users/{user_id}"], ["DELETE", "/v1/users/{user_id}"], ["POST", "/v1/users/{user_id}/ban"], ["POST", "/v1/users/{user_id}/lock"], ["PATCH", "/v1/users/{user_id}/metadata"], ["GET", "/v1/users/{user_id}/organization_memberships"], ["POST", "/v1/users/{user_id}/unban"], ["POST", "/v1/users/{user_id}/unlock"], ["GET", "/v1/users/count"]] },
|
|
2182
|
-
{ "name": "stripe", "title": "Stripe", "category": "Payments", "description": "Customers, subscriptions, invoices and payments", "version": "API 2026-10-28.endive", "env": ["STRIPE_API_URL", "STRIPE_SECRET_KEY"], "endpoints": [["GET", "/v1/balance"], ["GET", "/v1/charges"], ["GET", "/v1/charges/:id"], ["GET", "/v1/customers"], ["POST", "/v1/customers"], ["GET", "/v1/customers/:id"], ["POST", "/v1/customers/:id"], ["DELETE", "/v1/customers/:id"], ["GET", "/v1/customers/search"], ["GET", "/v1/invoiceitems"], ["POST", "/v1/invoiceitems"], ["GET", "/v1/invoices"], ["POST", "/v1/invoices"], ["GET", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id/finalize"], ["POST", "/v1/invoices/:id/pay"], ["POST", "/v1/invoices/:id/void"], ["GET", "/v1/payment_intents"], ["POST", "/v1/payment_intents"], ["GET", "/v1/payment_intents/:id"], ["POST", "/v1/payment_intents/:id/cancel"], ["POST", "/v1/payment_intents/:id/confirm"], ["GET", "/v1/prices"], ["GET", "/v1/prices/:id"], ["GET", "/v1/products"], ["GET", "/v1/products/:id"], ["GET", "/v1/refunds"], ["POST", "/v1/refunds"], ["GET", "/v1/refunds/:id"], ["GET", "/v1/subscriptions"], ["GET", "/v1/subscriptions/:id"], ["POST", "/v1/subscriptions/:id"], ["DELETE", "/v1/subscriptions/:id"]] },
|
|
2228
|
+
{ "name": "stripe", "title": "Stripe", "category": "Payments", "description": "Customers, subscriptions, invoices and payments", "version": "API 2026-10-28.endive", "env": ["STRIPE_API_URL", "STRIPE_SECRET_KEY"], "endpoints": [["GET", "/v1/balance"], ["GET", "/v1/balance_transactions"], ["GET", "/v1/charges"], ["GET", "/v1/charges/:id"], ["GET", "/v1/charges/:id/refunds"], ["GET", "/v1/charges/search"], ["GET", "/v1/credit_notes"], ["GET", "/v1/customers"], ["POST", "/v1/customers"], ["GET", "/v1/customers/:id"], ["POST", "/v1/customers/:id"], ["DELETE", "/v1/customers/:id"], ["GET", "/v1/customers/:id/balance_transactions"], ["GET", "/v1/customers/:id/cash_balance"], ["GET", "/v1/customers/:id/payment_methods"], ["GET", "/v1/customers/search"], ["GET", "/v1/disputes"], ["GET", "/v1/events"], ["GET", "/v1/invoiceitems"], ["POST", "/v1/invoiceitems"], ["GET", "/v1/invoices"], ["POST", "/v1/invoices"], ["GET", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id/finalize"], ["POST", "/v1/invoices/:id/pay"], ["POST", "/v1/invoices/:id/void"], ["GET", "/v1/payment_intents"], ["POST", "/v1/payment_intents"], ["GET", "/v1/payment_intents/:id"], ["POST", "/v1/payment_intents/:id/cancel"], ["POST", "/v1/payment_intents/:id/confirm"], ["GET", "/v1/payment_intents/search"], ["GET", "/v1/payment_methods/:id"], ["GET", "/v1/prices"], ["GET", "/v1/prices/:id"], ["GET", "/v1/products"], ["GET", "/v1/products/:id"], ["GET", "/v1/refunds"], ["POST", "/v1/refunds"], ["GET", "/v1/refunds/:id"], ["GET", "/v1/subscriptions"], ["GET", "/v1/subscriptions/:id"], ["POST", "/v1/subscriptions/:id"], ["DELETE", "/v1/subscriptions/:id"]] },
|
|
2183
2229
|
{ "name": "paypal", "title": "PayPal", "category": "Payments", "description": "Invoices, checkout orders, payments, refunds, subscriptions and transaction reports", "version": "REST", "env": ["PAYPAL_API_URL", "PAYPAL_CLIENT_ID", "PAYPAL_CLIENT_SECRET"], "endpoints": [["GET", "/v1/billing/plans"], ["POST", "/v1/billing/plans"], ["GET", "/v1/billing/plans/:id"], ["POST", "/v1/billing/plans/:id/activate"], ["POST", "/v1/billing/plans/:id/deactivate"], ["GET", "/v1/billing/subscriptions"], ["POST", "/v1/billing/subscriptions"], ["GET", "/v1/billing/subscriptions/:id"], ["PATCH", "/v1/billing/subscriptions/:id"], ["POST", "/v1/billing/subscriptions/:id/activate"], ["POST", "/v1/billing/subscriptions/:id/cancel"], ["POST", "/v1/billing/subscriptions/:id/capture"], ["POST", "/v1/billing/subscriptions/:id/revise"], ["POST", "/v1/billing/subscriptions/:id/suspend"], ["GET", "/v1/billing/subscriptions/:id/transactions"], ["GET", "/v1/catalogs/products"], ["GET", "/v1/catalogs/products/:id"], ["POST", "/v2/checkout/orders"], ["GET", "/v2/checkout/orders/:id"], ["PATCH", "/v2/checkout/orders/:id"], ["POST", "/v2/checkout/orders/:id/authorize"], ["POST", "/v2/checkout/orders/:id/capture"], ["POST", "/v2/checkout/orders/:id/confirm-payment-source"], ["POST", "/v2/checkout/orders/:id/track"], ["PATCH", "/v2/checkout/orders/:id/trackers/:tracker"], ["GET", "/v2/invoicing/invoices"], ["POST", "/v2/invoicing/invoices"], ["GET", "/v2/invoicing/invoices/:id"], ["POST", "/v2/invoicing/invoices/:id/send"], ["POST", "/v1/oauth2/token"], ["GET", "/v2/payments/authorizations/:id"], ["POST", "/v2/payments/authorizations/:id/capture"], ["POST", "/v2/payments/authorizations/:id/reauthorize"], ["POST", "/v2/payments/authorizations/:id/void"], ["GET", "/v2/payments/captures/:id"], ["POST", "/v2/payments/captures/:id/refund"], ["GET", "/v2/payments/refunds/:id"], ["GET", "/v1/reporting/balances"], ["GET", "/v1/reporting/transactions"]] },
|
|
2184
2230
|
{ "name": "shopify", "title": "Shopify", "category": "Commerce", "description": "Orders, products, inventory, customers, fulfillments and refunds", "version": "Admin GraphQL 2026-10", "env": ["SHOPIFY_API_URL", "SHOPIFY_ACCESS_TOKEN", "SHOPIFY_API_VERSION"], "endpoints": [["QUERY", "customer"], ["MUTATION", "customerCreate"], ["QUERY", "customers"], ["MUTATION", "customerUpdate"], ["MUTATION", "fulfillmentCreate"], ["QUERY", "fulfillmentOrder"], ["MUTATION", "fulfillmentTrackingInfoUpdate"], ["MUTATION", "inventoryAdjustQuantities"], ["QUERY", "inventoryItem"], ["MUTATION", "inventorySetQuantities"], ["QUERY", "job"], ["QUERY", "location"], ["QUERY", "locations"], ["QUERY", "node"], ["QUERY", "nodes"], ["QUERY", "order"], ["MUTATION", "orderCancel"], ["MUTATION", "orderClose"], ["MUTATION", "orderMarkAsPaid"], ["MUTATION", "orderOpen"], ["QUERY", "orders"], ["MUTATION", "orderUpdate"], ["QUERY", "product"], ["QUERY", "products"], ["MUTATION", "productUpdate"], ["QUERY", "productVariant"], ["QUERY", "productVariants"], ["MUTATION", "productVariantsBulkUpdate"], ["MUTATION", "refundCreate"], ["QUERY", "shop"], ["MUTATION", "tagsAdd"], ["MUTATION", "tagsRemove"]] },
|
|
2185
2231
|
{ "name": "kalshi", "title": "Kalshi", "category": "Markets", "description": "Event contracts: markets, order books, orders, positions and settlements", "version": "Trade API v2", "env": ["KALSHI_API_URL", "KALSHI_API_KEY_ID", "KALSHI_PRIVATE_KEY"], "endpoints": [["GET", "/trade-api/v2/events"], ["GET", "/trade-api/v2/events/{event_ticker}"], ["GET", "/trade-api/v2/exchange/schedule"], ["GET", "/trade-api/v2/exchange/status"], ["GET", "/trade-api/v2/markets"], ["GET", "/trade-api/v2/markets/{ticker}"], ["GET", "/trade-api/v2/markets/{ticker}/orderbook"], ["GET", "/trade-api/v2/markets/trades"], ["GET", "/trade-api/v2/portfolio/balance"], ["POST", "/trade-api/v2/portfolio/events/orders"], ["DELETE", "/trade-api/v2/portfolio/events/orders"], ["DELETE", "/trade-api/v2/portfolio/events/orders/{order_id}"], ["POST", "/trade-api/v2/portfolio/events/orders/{order_id}/amend"], ["POST", "/trade-api/v2/portfolio/events/orders/{order_id}/decrease"], ["POST", "/trade-api/v2/portfolio/events/orders/batched"], ["DELETE", "/trade-api/v2/portfolio/events/orders/batched"], ["GET", "/trade-api/v2/portfolio/fills"], ["GET", "/trade-api/v2/portfolio/orders"], ["POST", "/trade-api/v2/portfolio/orders"], ["GET", "/trade-api/v2/portfolio/orders/{order_id}"], ["DELETE", "/trade-api/v2/portfolio/orders/{order_id}"], ["GET", "/trade-api/v2/portfolio/positions"], ["GET", "/trade-api/v2/portfolio/settlements"], ["GET", "/trade-api/v2/series"], ["GET", "/trade-api/v2/series/{series_ticker}"]] },
|
|
2186
|
-
{ "name": "datadog", "title": "Datadog", "category": "Monitoring", "description": "Monitors, metrics and logs", "version": "v1 / v2", "env": ["DATADOG_API_URL", "DD_API_KEY", "DD_APP_KEY"], "endpoints": [["GET", "/api/v1/dashboard"], ["GET", "/api/v1/dashboard/:id"], ["GET", "/api/v1/downtime"], ["POST", "/api/v1/downtime"], ["GET", "/api/v1/downtime/:id"], ["PUT", "/api/v1/downtime/:id"], ["DELETE", "/api/v1/downtime/:id"], ["GET", "/api/v2/downtime"], ["POST", "/api/v2/downtime"], ["GET", "/api/v2/downtime/:id"], ["PATCH", "/api/v2/downtime/:id"], ["DELETE", "/api/v2/downtime/:id"], ["GET", "/api/v1/events"], ["POST", "/api/v1/events"], ["GET", "/api/v2/incidents"], ["POST", "/api/v2/incidents"], ["GET", "/api/v2/incidents/:id"], ["PATCH", "/api/v2/incidents/:id"], ["POST", "/api/v2/logs/events/search"], ["GET", "/api/v1/monitor"], ["GET", "/api/v1/monitor/:id"], ["POST", "/api/v1/monitor/:id/mute"], ["POST", "/api/v1/monitor/:id/unmute"], ["GET", "/api/v1/monitor/:monitor_id/downtimes"], ["GET", "/api/v2/monitor/:monitor_id/downtime_matches"], ["GET", "/api/v1/query"]] },
|
|
2232
|
+
{ "name": "datadog", "title": "Datadog", "category": "Monitoring", "description": "Monitors, metrics and logs", "version": "v1 / v2", "env": ["DATADOG_API_URL", "DD_API_KEY", "DD_APP_KEY"], "endpoints": [["GET", "/api/v1/dashboard"], ["GET", "/api/v1/dashboard/:id"], ["GET", "/api/v1/downtime"], ["POST", "/api/v1/downtime"], ["GET", "/api/v1/downtime/:id"], ["PUT", "/api/v1/downtime/:id"], ["DELETE", "/api/v1/downtime/:id"], ["GET", "/api/v2/downtime"], ["POST", "/api/v2/downtime"], ["GET", "/api/v2/downtime/:id"], ["PATCH", "/api/v2/downtime/:id"], ["DELETE", "/api/v2/downtime/:id"], ["GET", "/api/v1/events"], ["POST", "/api/v1/events"], ["GET", "/api/v2/incidents"], ["POST", "/api/v2/incidents"], ["GET", "/api/v2/incidents/:id"], ["PATCH", "/api/v2/incidents/:id"], ["POST", "/api/v2/logs/events/search"], ["GET", "/api/v1/monitor"], ["GET", "/api/v1/monitor/:id"], ["POST", "/api/v1/monitor/:id/mute"], ["POST", "/api/v1/monitor/:id/unmute"], ["GET", "/api/v1/monitor/:monitor_id/downtimes"], ["GET", "/api/v1/monitor/search"], ["GET", "/api/v2/monitor/:monitor_id/downtime_matches"], ["GET", "/api/v1/query"]] },
|
|
2187
2233
|
{ "name": "sentry", "title": "Sentry", "category": "Errors", "description": "Issues, error events, triage and releases", "version": "REST API /api/0", "env": ["SENTRY_API_URL", "SENTRY_AUTH_TOKEN"], "endpoints": [["GET", "/api/0/"], ["GET", "/api/0/organizations/"], ["GET", "/api/0/organizations/:org/"], ["GET", "/api/0/organizations/:org/eventids/:event/"], ["GET", "/api/0/organizations/:org/events/"], ["GET", "/api/0/organizations/:org/issues/"], ["PUT", "/api/0/organizations/:org/issues/"], ["GET", "/api/0/organizations/:org/issues/:issue/"], ["PUT", "/api/0/organizations/:org/issues/:issue/"], ["DELETE", "/api/0/organizations/:org/issues/:issue/"], ["GET", "/api/0/organizations/:org/issues/:issue/comments/"], ["POST", "/api/0/organizations/:org/issues/:issue/comments/"], ["GET", "/api/0/organizations/:org/issues/:issue/events/"], ["GET", "/api/0/organizations/:org/issues/:issue/events/:event/"], ["GET", "/api/0/organizations/:org/issues/:issue/tags/:key/"], ["GET", "/api/0/organizations/:org/issues/:issue/tags/:key/values/"], ["GET", "/api/0/organizations/:org/members/"], ["GET", "/api/0/organizations/:org/projects/"], ["GET", "/api/0/organizations/:org/releases/"], ["POST", "/api/0/organizations/:org/releases/"], ["GET", "/api/0/organizations/:org/releases/:version/"], ["PUT", "/api/0/organizations/:org/releases/:version/"], ["GET", "/api/0/organizations/:org/releases/:version/deploys/"], ["POST", "/api/0/organizations/:org/releases/:version/deploys/"], ["GET", "/api/0/organizations/:org/shortids/:short/"], ["GET", "/api/0/organizations/:org/teams/"], ["GET", "/api/0/projects/:org/:project/"], ["GET", "/api/0/projects/:org/:project/events/"], ["GET", "/api/0/projects/:org/:project/events/:event/"], ["GET", "/api/0/projects/:org/:project/issues/"], ["GET", "/api/0/projects/:org/:project/keys/"], ["GET", "/api/0/projects/:org/:project/releases/"]] },
|
|
2188
2234
|
{ "name": "better-stack", "title": "Better Stack", "category": "Uptime", "description": "Uptime monitors, heartbeats, incidents and status pages", "version": "Uptime API v2 / v3", "env": ["BETTER_STACK_API_URL", "BETTER_STACK_API_TOKEN"], "endpoints": [["GET", "/api/v1/heartbeat/{token}"], ["POST", "/api/v1/heartbeat/{token}"], ["GET", "/api/v2/heartbeats"], ["POST", "/api/v2/heartbeats"], ["GET", "/api/v2/heartbeats/{id}"], ["PATCH", "/api/v2/heartbeats/{id}"], ["DELETE", "/api/v2/heartbeats/{id}"], ["GET", "/api/v3/incidents"], ["POST", "/api/v3/incidents"], ["GET", "/api/v3/incidents/{id}"], ["DELETE", "/api/v3/incidents/{id}"], ["POST", "/api/v3/incidents/{id}/acknowledge"], ["POST", "/api/v3/incidents/{id}/resolve"], ["GET", "/api/v2/monitors"], ["POST", "/api/v2/monitors"], ["GET", "/api/v2/monitors/{id}"], ["PATCH", "/api/v2/monitors/{id}"], ["DELETE", "/api/v2/monitors/{id}"], ["GET", "/api/v2/monitors/{id}/response-times"], ["GET", "/api/v2/monitors/{id}/sla"], ["GET", "/api/v2/on-calls"], ["GET", "/api/v2/on-calls/{id}"], ["GET", "/api/v2/status-pages"], ["GET", "/api/v2/status-pages/{id}"], ["GET", "/api/v2/status-pages/{id}/resources"], ["GET", "/api/v2/status-pages/{id}/status-reports"], ["POST", "/api/v2/status-pages/{id}/status-reports"], ["GET", "/api/v2/status-pages/{id}/status-reports/{report_id}"], ["POST", "/api/v2/status-pages/{id}/status-reports/{report_id}/status-updates"]] },
|
|
2189
2235
|
{ "name": "pagerduty", "title": "PagerDuty", "category": "Incidents", "description": "Incidents, on-call and escalation", "version": "REST v2 / Events v2", "env": ["PAGERDUTY_API_URL", "PAGERDUTY_API_TOKEN", "PAGERDUTY_FROM_EMAIL"], "endpoints": [["POST", "/v2/enqueue"], ["GET", "/escalation_policies"], ["GET", "/escalation_policies/:id"], ["GET", "/incidents"], ["GET", "/incidents/:id"], ["PUT", "/incidents/:id"], ["GET", "/incidents/:id/log_entries"], ["GET", "/incidents/:id/notes"], ["POST", "/incidents/:id/notes"], ["GET", "/oncalls"], ["GET", "/schedules"], ["GET", "/schedules/:id"], ["GET", "/schedules/:id/overrides"], ["POST", "/schedules/:id/overrides"], ["DELETE", "/schedules/:id/overrides/:override_id"], ["GET", "/schedules/:id/users"], ["GET", "/services"], ["GET", "/services/:id"], ["GET", "/users"], ["GET", "/users/:id"]] },
|
|
@@ -2191,7 +2237,7 @@ var TOOL_CATALOG = [
|
|
|
2191
2237
|
{ "name": "salesforce", "title": "Salesforce", "category": "CRM", "description": "Accounts, contacts and pipeline", "version": "REST v67.0", "env": ["SALESFORCE_INSTANCE_URL", "SALESFORCE_ACCESS_TOKEN"], "endpoints": [["POST", "/services/data/v67.0/composite"], ["GET", "/services/data/v67.0/query"], ["GET", "/services/data/v67.0/query/:locator"], ["GET", "/services/data/v67.0/sobjects"], ["GET", "/services/data/v67.0/sobjects/:type"], ["POST", "/services/data/v67.0/sobjects/:type"], ["GET", "/services/data/v67.0/sobjects/:type/:field/:value"], ["PATCH", "/services/data/v67.0/sobjects/:type/:field/:value"], ["GET", "/services/data/v67.0/sobjects/:type/:id"], ["PATCH", "/services/data/v67.0/sobjects/:type/:id"], ["DELETE", "/services/data/v67.0/sobjects/:type/:id"], ["GET", "/services/data/v67.0/sobjects/:type/describe"], ["GET", "/services/data/"], ["GET", "/services/data/v67.0"]] },
|
|
2192
2238
|
{ "name": "attio", "title": "Attio", "category": "CRM", "description": "People, companies, deals, lists, notes and tasks", "version": "REST v2", "env": ["ATTIO_API_URL", "ATTIO_API_KEY"], "endpoints": [["GET", "/v2/:target/:identifier/attributes"], ["GET", "/v2/lists"], ["GET", "/v2/lists/:list"], ["POST", "/v2/lists/:list/entries"], ["PATCH", "/v2/lists/:list/entries/:entry_id"], ["DELETE", "/v2/lists/:list/entries/:entry_id"], ["POST", "/v2/lists/:list/entries/query"], ["GET", "/v2/notes"], ["POST", "/v2/notes"], ["GET", "/v2/notes/:note_id"], ["DELETE", "/v2/notes/:note_id"], ["GET", "/v2/objects"], ["GET", "/v2/objects/:object"], ["POST", "/v2/objects/:object/records"], ["PUT", "/v2/objects/:object/records"], ["GET", "/v2/objects/:object/records/:record_id"], ["PUT", "/v2/objects/:object/records/:record_id"], ["PATCH", "/v2/objects/:object/records/:record_id"], ["DELETE", "/v2/objects/:object/records/:record_id"], ["GET", "/v2/objects/:object/records/:record_id/attributes/:attribute/values"], ["GET", "/v2/objects/:object/records/:record_id/entries"], ["POST", "/v2/objects/:object/records/query"], ["GET", "/v2/self"], ["GET", "/v2/tasks"], ["POST", "/v2/tasks"], ["GET", "/v2/tasks/:task_id"], ["PATCH", "/v2/tasks/:task_id"], ["DELETE", "/v2/tasks/:task_id"], ["GET", "/v2/workspace_members"], ["GET", "/v2/workspace_members/:id"]] },
|
|
2193
2239
|
{ "name": "intercom", "title": "Intercom", "category": "Support", "description": "Inbox conversations, contacts, companies, tags, notes and help center articles", "version": "API 2.14", "env": ["INTERCOM_API_URL", "INTERCOM_ACCESS_TOKEN"], "endpoints": [["GET", "/admins"], ["GET", "/admins/:id"], ["PUT", "/admins/:id/away"], ["GET", "/articles"], ["POST", "/articles"], ["GET", "/articles/:id"], ["PUT", "/articles/:id"], ["GET", "/articles/search"], ["GET", "/companies"], ["POST", "/companies"], ["GET", "/companies/:id"], ["PUT", "/companies/:id"], ["GET", "/companies/:id/contacts"], ["POST", "/companies/list"], ["GET", "/contacts"], ["POST", "/contacts"], ["GET", "/contacts/:id"], ["PUT", "/contacts/:id"], ["DELETE", "/contacts/:id"], ["POST", "/contacts/:id/archive"], ["GET", "/contacts/:id/companies"], ["POST", "/contacts/:id/companies"], ["DELETE", "/contacts/:id/companies/:company"], ["GET", "/contacts/:id/notes"], ["POST", "/contacts/:id/notes"], ["GET", "/contacts/:id/tags"], ["POST", "/contacts/:id/tags"], ["DELETE", "/contacts/:id/tags/:tag"], ["POST", "/contacts/:id/unarchive"], ["GET", "/contacts/find_by_external_id/:id"], ["POST", "/contacts/search"], ["GET", "/conversations"], ["POST", "/conversations"], ["GET", "/conversations/:id"], ["PUT", "/conversations/:id"], ["POST", "/conversations/:id/parts"], ["POST", "/conversations/:id/reply"], ["POST", "/conversations/:id/tags"], ["DELETE", "/conversations/:id/tags/:tag"], ["POST", "/conversations/search"], ["GET", "/me"], ["GET", "/notes/:id"], ["GET", "/tags"], ["POST", "/tags"], ["GET", "/tags/:id"], ["DELETE", "/tags/:id"], ["GET", "/teams"], ["GET", "/teams/:id"]] },
|
|
2194
|
-
{ "name": "zendesk", "title": "Zendesk", "category": "Support", "description": "Support tickets, replies, people and organizations", "version": "Support API v2", "env": ["ZENDESK_API_URL", "ZENDESK_EMAIL", "ZENDESK_API_TOKEN"], "endpoints": [["GET", "/api/v2/groups"], ["GET", "/api/v2/macros"], ["GET", "/api/v2/organizations"], ["GET", "/api/v2/organizations/{id}"], ["GET", "/api/v2/organizations/{id}/tickets"], ["GET", "/api/v2/search"], ["GET", "/api/v2/tickets"], ["POST", "/api/v2/tickets"], ["GET", "/api/v2/tickets/{id}"], ["PUT", "/api/v2/tickets/{id}"], ["DELETE", "/api/v2/tickets/{id}"], ["GET", "/api/v2/tickets/{id}/comments"], ["GET", "/api/v2/tickets/{id}/macros/{macro_id}/apply"], ["GET", "/api/v2/users"], ["POST", "/api/v2/users"], ["GET", "/api/v2/users/{id}"], ["GET", "/api/v2/users/{id}/tickets/requested"], ["GET", "/api/v2/users/me"], ["GET", "/api/v2/users/search"], ["GET", "/api/v2/views"], ["GET", "/api/v2/views/{id}/tickets"]] },
|
|
2240
|
+
{ "name": "zendesk", "title": "Zendesk", "category": "Support", "description": "Support tickets, replies, people and organizations", "version": "Support API v2", "env": ["ZENDESK_API_URL", "ZENDESK_EMAIL", "ZENDESK_API_TOKEN"], "endpoints": [["GET", "/api/v2/brands"], ["GET", "/api/v2/groups"], ["GET", "/api/v2/macros"], ["GET", "/api/v2/organizations"], ["GET", "/api/v2/organizations/{id}"], ["GET", "/api/v2/organizations/{id}/tickets"], ["GET", "/api/v2/organizations/autocomplete"], ["GET", "/api/v2/organizations/search"], ["GET", "/api/v2/search"], ["GET", "/api/v2/tickets"], ["POST", "/api/v2/tickets"], ["GET", "/api/v2/tickets/{id}"], ["PUT", "/api/v2/tickets/{id}"], ["DELETE", "/api/v2/tickets/{id}"], ["GET", "/api/v2/tickets/{id}/comments"], ["GET", "/api/v2/tickets/{id}/macros/{macro_id}/apply"], ["GET", "/api/v2/tickets/count"], ["GET", "/api/v2/users"], ["POST", "/api/v2/users"], ["GET", "/api/v2/users/{id}"], ["GET", "/api/v2/users/{id}/tickets/requested"], ["GET", "/api/v2/users/me"], ["GET", "/api/v2/users/search"], ["GET", "/api/v2/views"], ["GET", "/api/v2/views/{id}/tickets"]] },
|
|
2195
2241
|
{ "name": "gong", "title": "Gong", "category": "Sales calls", "description": "Sales calls and customer conversations", "version": "v2", "env": ["GONG_API_URL", "GONG_ACCESS_KEY", "GONG_ACCESS_KEY_SECRET"], "endpoints": [["GET", "/v2/calls"], ["POST", "/v2/calls/extensive"], ["POST", "/v2/calls/transcript"], ["GET", "/v2/users"], ["GET", "/v2/workspaces"]] },
|
|
2196
2242
|
{ "name": "ga4", "title": "Google Analytics", "category": "Analytics", "description": "Traffic, campaigns and conversions", "version": "Data API v1beta REST", "env": ["GA4_API_URL", "GA4_ACCESS_TOKEN"], "endpoints": [["POST", "/v1beta/properties/:property:batchRunReports"], ["POST", "/v1beta/properties/:property:checkCompatibility"], ["POST", "/v1beta/properties/:property:runReport"], ["GET", "/v1beta/properties/:property/metadata"]] },
|
|
2197
2243
|
{ "name": "google-ads", "title": "Google Ads", "category": "Ads", "description": "Search campaigns, ads and reports", "version": "v26", "env": ["GOOGLE_ADS_GRPC_ENDPOINT", "GOOGLE_ADS_ACCESS_TOKEN"], "endpoints": [["POST", "/v26/customers/:customerId/adGroupAds:mutate"], ["POST", "/v26/customers/:customerId/adGroupCriteria:mutate"], ["POST", "/v26/customers/:customerId/adGroups:mutate"], ["POST", "/v26/customers/:customerId/campaignBudgets:mutate"], ["POST", "/v26/customers/:customerId/campaigns:mutate"], ["GET", "/v26/customers:listAccessibleCustomers"], ["POST", "/v26/customers/:customerId/googleAds:mutate"], ["POST", "/v26/customers/:customerId/googleAds:search"], ["POST", "/v26/customers/:customerId/googleAds:searchStream"]] },
|
|
@@ -2637,8 +2683,8 @@ function groupRunDefinition(draft, agents) {
|
|
|
2637
2683
|
return { name: String(draft.name ?? "").trim(), entries: chosen.map((agent) => ({ agentId: agent.id, worldId, worldRevision, tasks, seed: String(draft.seed ?? "group-1") })), concurrency, idempotencyKey: draft.idempotencyKey };
|
|
2638
2684
|
}
|
|
2639
2685
|
function submissionWasDefinitivelyRejected(error) {
|
|
2640
|
-
const
|
|
2641
|
-
return Number.isInteger(
|
|
2686
|
+
const status2 = error && typeof error === "object" ? error.status : void 0;
|
|
2687
|
+
return Number.isInteger(status2) && Number(status2) >= 400 && Number(status2) < 500 && Number(status2) !== 409;
|
|
2642
2688
|
}
|
|
2643
2689
|
var groupSubmissionWasRejected = submissionWasDefinitivelyRejected;
|
|
2644
2690
|
function testRunSubmission(testId, idempotencyKey) {
|
|
@@ -2859,8 +2905,8 @@ function connectionsView(info, mode, tool) {
|
|
|
2859
2905
|
return tabs + `<label>Tool<select id="connection-tool">${Object.keys(info.services).map((id) => `<option value="${h(id)}" ${id === tool ? "selected" : ""}>${h(toolName(id))}</option>`).join("")}</select></label><div class="connection-fields">${(fields[tool] ?? []).filter((key) => info.env[key]).map((key) => `<label>${connectionLabel(key)}<input readonly value="${h(info.env[key])}" aria-label="${h(key)}"><span class="field-variable">${h(key)}</span></label>`).join("")}</div>${tool === "google-ads" ? `<p>${button("Download TLS certificate", "download-certificate", "", "link")}</p>` : ""}<div class="actions">${button("Copy tool settings", "copy-connections", "", "primary")}${button("Download all settings", "download-connections")}</div><p class="hint">Use these local values in your tool client. Refresh the sandbox to see its changes.</p>`;
|
|
2860
2906
|
}
|
|
2861
2907
|
function connectionText(info, tool) {
|
|
2862
|
-
const
|
|
2863
|
-
return
|
|
2908
|
+
const keys2 = tool ? fields[tool] ?? [] : Object.keys(info.env);
|
|
2909
|
+
return keys2.filter((key) => info.env[key] !== void 0).map((key) => `${key}=${JSON.stringify(info.env[key])}`).join("\n") + "\n";
|
|
2864
2910
|
}
|
|
2865
2911
|
|
|
2866
2912
|
// frontend/src/tools-page.ts
|
|
@@ -2919,8 +2965,8 @@ function settingsPage(boot2) {
|
|
|
2919
2965
|
// frontend/src/journey.ts
|
|
2920
2966
|
function connectionStatus(verification) {
|
|
2921
2967
|
if (!verification) return badge("Not checked");
|
|
2922
|
-
const
|
|
2923
|
-
return badge(
|
|
2968
|
+
const status2 = verification.status;
|
|
2969
|
+
return badge(status2 === "connected" || status2 === "verified" ? "Connected" : status2 === "running" ? "Connecting" : status2 === "failed" ? "Connection failed" : status2 === "stale" ? "Needs recheck" : "Not checked", status2 === "connected" || status2 === "verified" ? "good" : status2 === "failed" ? "bad" : "warn");
|
|
2924
2970
|
}
|
|
2925
2971
|
function scenarioList(scenes) {
|
|
2926
2972
|
return `<div class="scenario-list">${scenes.map((s) => `<a class="scenario-row" href="/scenarios/${encodeURIComponent(s.key)}" data-nav><div><h2>${h(title(s.scene))}</h2><p>${h(s.scene.twins.map(toolName).join(" \xB7 "))}</p></div>${s.origin === "draft" ? badge("Draft \xB7 unverified") : ""}<span aria-hidden="true">\u2192</span></a>`).join("")}</div>`;
|
|
@@ -3576,11 +3622,11 @@ function renderAgents(id) {
|
|
|
3576
3622
|
selectedAgent = "agent:" + a.id;
|
|
3577
3623
|
const q = new URLSearchParams(location.search), page = q.get("tab") ?? "overview", base = "/agents/" + enc2(a.id);
|
|
3578
3624
|
const operation = connectionOperation, connecting = operation?.state === "connecting", queuedConnect = operation?.state === "queued";
|
|
3579
|
-
const
|
|
3625
|
+
const status2 = agentConnection(a, operation).label;
|
|
3580
3626
|
const primary = page === "setup" ? "" : agentPrimary(a, operation);
|
|
3581
3627
|
const blocked = blockedConnect?.agentId === a.id ? blockedConnect : null;
|
|
3582
3628
|
if (blocked) blockedConnect = null;
|
|
3583
|
-
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",
|
|
3629
|
+
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", url(base, { tab: "setup" }), "k-btn"), "error")}</div>` : "";
|
|
3584
3630
|
let content = "";
|
|
3585
3631
|
if (page === "new-test") {
|
|
3586
3632
|
if (q.get("test") && !savedPlaygroundTests.some((t) => t.id === q.get("test"))) {
|
|
@@ -3866,14 +3912,14 @@ function renderAttempt(scene, trial) {
|
|
|
3866
3912
|
const q = new URLSearchParams(location.search), base = url("/runs/" + enc2(current.runId), { scene, trial }), view2 = q.get("view") ?? "activity", tool = q.get("tool"), tools = recorded?.twins ?? Object.keys(observation.state ?? {});
|
|
3867
3913
|
const o = { ...observation, checks: Array.isArray(observation.checks) ? observation.checks : observation.checks?.checks ?? [] }, diagnostic = current.metadata?.diagnostic;
|
|
3868
3914
|
const tabs = navTabs([["activity", "Activity", url("/runs/" + enc2(current.runId), { scene, trial, view: "activity" })], ["sandbox", "Tools", url("/runs/" + enc2(current.runId), { scene, trial, view: "sandbox" })], ...!diagnostic ? [["result", "Outcomes", url("/runs/" + enc2(current.runId), { scene, trial, view: "result" })]] : []], view2 === "tools" ? "sandbox" : view2);
|
|
3869
|
-
const
|
|
3915
|
+
const status2 = legacyObservation.state === "live" ? badge("Running", "accent") : observation.entry ? attemptStatus(observation.entry, diagnostic) : badge(legacyObservation.attempt?.state ?? "Unavailable");
|
|
3870
3916
|
let content = legacyObservation.reason ? `<p class="quiet-empty">${h(legacyObservation.reason)}</p>` : "";
|
|
3871
3917
|
if (legacyObservation.observation) {
|
|
3872
3918
|
if (view2 === "result") content += attemptResult(o, recorded, q.get("check"), base);
|
|
3873
3919
|
else if (["sandbox", "tools"].includes(view2)) content += `<nav class="tool-nav" aria-label="Trial tools">${tools.map((t) => navLink(toolName(t), url("/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 })}`;
|
|
3874
3920
|
else content += `${observation.taskDelivery?.response ? responseView({ response: observation.taskDelivery.response, status: legacyObservation.state === "live" ? "running" : "completed" }) : ""}${activityView(o, { baseHref: base })}`;
|
|
3875
3921
|
}
|
|
3876
|
-
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">${
|
|
3922
|
+
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>`);
|
|
3877
3923
|
}
|
|
3878
3924
|
function modal(heading2, content, wide = false) {
|
|
3879
3925
|
dialog.className = wide ? "wide" : "";
|
|
@@ -3892,16 +3938,16 @@ function executionFields(policy = { mode: "container", image: "node:24-slim" },
|
|
|
3892
3938
|
return `<input type="hidden" name="originalExecutionImage" value="${h(policy.image ?? "")}"><input type="hidden" name="originalExecutionPreparation" value="${h(policy.preparation ?? "")}"><label>Execution<select id="execution-mode" name="executionMode">${fromConfig ? '<option value="config" selected>Use configuration file</option>' : ""}<option value="container" ${contained ? "selected" : ""}>Container</option><option value="host" ${mode === "host" ? "selected" : ""}>Host process \xB7 not contained</option></select></label><p class="hint" id="execution-detail">${mode === "config" ? "Uses agent.execution from the file; omitted means host process." : contained ? "Fresh container for every trial." : "Runs on this computer with access to its files and network."}</p><div id="container-fields" ${contained ? "" : "hidden"}><p class="hint" id="execution-runtime" role="status">Checking container runtime\u2026</p><label>Linux image<input name="executionImage" placeholder="e.g. my-agent:latest" value="${h(policy.image ?? "")}" ${contained ? "required" : "disabled"}></label><p class="hint">The image must include your agent\u2019s Linux dependencies.</p><label>Project paths<input name="executionFiles" value="${h((policy.files ?? ["."]).join(", "))}" ${contained ? "" : "disabled"}></label><p class="hint">Comma-separated paths. Credentials and local dependencies are excluded.</p><div class="form-grid"><label>Credentials to pass<input name="executionEnv" placeholder="OPENROUTER_API_KEY" value="${h((policy.env ?? []).join(", "))}" ${contained ? "" : "disabled"}></label><label>Allowed model domains<input name="executionHosts" placeholder="openrouter.ai" value="${h((policy.modelHosts ?? []).join(", "))}" ${contained ? "" : "disabled"}></label></div><p class="hint">Variable names only. Exact domains; all other internet access is blocked.</p><input type="hidden" name="executionCpus" value="${h(policy.cpus ?? 1)}"><input type="hidden" name="executionMemory" value="${h(policy.memoryMb ?? 512)}"><input type="hidden" name="executionPids" value="${h(policy.pids ?? 128)}"></div>`;
|
|
3893
3939
|
}
|
|
3894
3940
|
async function executionRuntime() {
|
|
3895
|
-
const
|
|
3896
|
-
if (!
|
|
3941
|
+
const status2 = document.querySelector("#execution-runtime");
|
|
3942
|
+
if (!status2) return;
|
|
3897
3943
|
try {
|
|
3898
3944
|
const runtime = await api("/execution");
|
|
3899
|
-
if (
|
|
3900
|
-
|
|
3901
|
-
|
|
3945
|
+
if (status2.isConnected) {
|
|
3946
|
+
status2.textContent = runtime.available ? "Container runtime ready" : runtime.message;
|
|
3947
|
+
status2.classList.toggle("error", !runtime.available);
|
|
3902
3948
|
}
|
|
3903
3949
|
} catch {
|
|
3904
|
-
if (
|
|
3950
|
+
if (status2.isConnected) status2.textContent = "Container runtime could not be checked. Runs require a ready runtime.";
|
|
3905
3951
|
}
|
|
3906
3952
|
}
|
|
3907
3953
|
function executionValue(data) {
|