@ancha-labs/cli 0.4.22 → 0.4.24

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.
@@ -241,6 +241,18 @@ CREATE VIEW ns_q_mediaitemfolder AS SELECT id, name, parent, description, datecr
241
241
  var col = (name, type, more = {}) => ({ name, type, ...more });
242
242
  var ref = (name, table) => col(name, "id", { ref: table });
243
243
  var dated = [col("datecreated", "datetime"), col("lastmodifieddate", "datetime")];
244
+ var TRANSACTION_LINKS = `SELECT * FROM ns_q_nexttransactionlinelink
245
+ UNION ALL SELECT l.createdfrom, l.orderline, l."transaction", l.line,
246
+ CASE WHEN t.type IN ('ItemRcpt','ItemShip') THEN 'ShipRcpt' WHEN t.type IN ('VendBill','CustInvc') THEN 'OrdBill' END,
247
+ l.amount, p.type, t.type, t.lastmodifieddate
248
+ FROM ns_lines l JOIN ns_transactions t ON t.id=l."transaction" JOIN ns_transactions p ON p.id=l.createdfrom
249
+ WHERE l.createdfrom IS NOT NULL
250
+ UNION ALL SELECT t.createdfrom, 0, t.id, 0, NULL, t.total, p.type, t.type, t.lastmodifieddate
251
+ FROM ns_transactions t JOIN ns_transactions p ON p.id=t.createdfrom
252
+ WHERE NOT EXISTS (SELECT 1 FROM ns_lines l WHERE l."transaction"=t.id AND l.createdfrom=t.createdfrom)
253
+ AND NOT EXISTS (SELECT 1 FROM ns_applications a WHERE a.source=t.id AND a.doc=t.createdfrom)`;
254
+ var SYSTEM_NOTES = `SELECT ${["id", "recordid", "recordtypeid", "date", "name", "field", "oldvalue", "newvalue", "context", "type"].map((c) => `json_extract(n.value, '$.${c}') AS "${c}"`).join(", ")}
255
+ FROM ns_extra e, json_each(e.fields, '$.notes') n WHERE substr(e.owner,1,20)='netsuite:systemnote:'`;
244
256
  var SUITEQL_TABLES = [
245
257
  { name: "customer", view: "ns_q_customer", display: "entityid", columns: [
246
258
  col("id", "id"),
@@ -432,6 +444,9 @@ var SUITEQL_TABLES = [
432
444
  col("closedondate", "date")
433
445
  ] },
434
446
  { name: "transaction", view: "ns_q_transaction", display: "tranid", columns: [
447
+ col("createdby", "id", { ref: "employee", sql: `COALESCE(
448
+ (SELECT json_extract(a.fields, '$.createdBy') FROM ns_extra a WHERE a.owner='netsuite:systemnote:' || ns_q_transaction.recordtype AND a.id=ns_q_transaction.id),
449
+ (SELECT COALESCE(json_extract(x.fields, '$.createdBy.id'),json_extract(x.fields, '$.createdby.id'),json_extract(x.fields, '$.createdBy'),json_extract(x.fields, '$.createdby')) FROM ns_extra x WHERE x.owner='transaction' AND x.id=ns_q_transaction.id))` }),
435
450
  col("id", "id"),
436
451
  col("tranid", "text"),
437
452
  col("trandate", "date"),
@@ -503,7 +518,7 @@ var SUITEQL_TABLES = [
503
518
  col("posting", "boolean"),
504
519
  ref("postingperiod", "accountingperiod")
505
520
  ] },
506
- ...["nexttransactionlinelink", "previoustransactionlinelink"].map((name) => ({ name, view: `ns_q_${name}`, display: "linktype", columns: [
521
+ ...["nexttransactionlinelink", "previoustransactionlinelink"].map((name) => ({ name, view: `ns_q_${name}`, source: TRANSACTION_LINKS, display: "linktype", columns: [
507
522
  ref("previousdoc", "transaction"),
508
523
  col("previousline", "integer"),
509
524
  ref("nextdoc", "transaction"),
@@ -514,6 +529,18 @@ var SUITEQL_TABLES = [
514
529
  col("nexttype", "text"),
515
530
  col("lastmodifieddate", "datetime")
516
531
  ] })),
532
+ { name: "systemnote", view: "ns_extra", source: SYSTEM_NOTES, display: "field", columns: [
533
+ col("id", "id"),
534
+ col("recordid", "id"),
535
+ col("recordtypeid", "integer"),
536
+ col("date", "datetime"),
537
+ ref("name", "entity"),
538
+ col("field", "text"),
539
+ col("oldvalue", "text"),
540
+ col("newvalue", "text"),
541
+ col("context", "text"),
542
+ col("type", "integer")
543
+ ] },
517
544
  { name: "file", view: "ns_q_file", display: "name", columns: [
518
545
  col("id", "id"),
519
546
  col("name", "text"),
@@ -1293,7 +1320,9 @@ function resolve(scope, name, qualifier) {
1293
1320
  scope.correlations.push(value);
1294
1321
  return value;
1295
1322
  }
1296
- invalid(`Field '${qualifier ? `${qualifier}.` : ""}${name}' was not found.`);
1323
+ const pending = { transaction: ["createdfrom", "total", "amountremaining"], transactionline: ["amount"] };
1324
+ const gap = owners.some((r) => r.columns.some((c) => c.origin && pending[c.origin.table.name]?.includes(name)));
1325
+ invalid(`Field '${qualifier ? `${qualifier}.` : ""}${name}' was not found.`, gap);
1297
1326
  }
1298
1327
  var key = (b) => JSON.stringify([b.sql, b.params]);
1299
1328
  var numeric = (t) => ["id", "integer", "number"].includes(t);
@@ -1544,7 +1573,7 @@ var Compiler = class {
1544
1573
  columns = [{ name: "dummy", type: "text", value: sql("") }];
1545
1574
  } else {
1546
1575
  const table = this.tables.find((t) => t.name === source.table);
1547
- if (!table) invalid(`Record '${source.table}' was not found.`);
1576
+ if (!table) invalid(`Record '${source.table}' was not found.`, source.table === "transactionlink");
1548
1577
  const computed = table.columns.filter((c) => c.sql);
1549
1578
  value = table.source ? sql("(", table.source, ")") : computed.length ? sql("(SELECT *, ", computed.map((c) => `${c.sql} AS ${quote(c.name)}`).join(", "), " FROM ", quote(table.view), ")") : sql(quote(table.view));
1550
1579
  columns = table.columns.map((column) => ({ name: column.name, type: column.type, value: sql(""), origin: { table, column, relation: alias } }));
@@ -581,6 +581,53 @@ function duration(ms) {
581
581
  return `${Math.floor(s / 3600)} h ${String(Math.floor(s / 60) % 60).padStart(2, "0")} m`;
582
582
  }
583
583
 
584
+ // cloud/shared/run-metadata.mjs
585
+ function runNumberOf(value) {
586
+ return Number.isSafeInteger(value) && value > 0 ? value : void 0;
587
+ }
588
+ function runLabel(run, fallback = run.id ?? run.runId ?? run.run_id ?? "") {
589
+ const number = runNumberOf(run.runNumber ?? run.summary?.runNumber);
590
+ return number === void 0 ? fallback : `#${number}`;
591
+ }
592
+ function github2(value) {
593
+ if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).sort().join(",") !== "repository,runId,serverUrl") throw new Error("Invalid GitHub Actions context.");
594
+ const { repository, runId, serverUrl } = value;
595
+ 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.");
596
+ let url2;
597
+ try {
598
+ url2 = new URL(serverUrl);
599
+ } catch {
600
+ throw new Error("Invalid GitHub Actions server.");
601
+ }
602
+ if (typeof serverUrl !== "string" || serverUrl.length > 2048 || url2.protocol !== "https:" || url2.username || url2.password || url2.search || url2.hash || url2.pathname !== "/") throw new Error("Invalid GitHub Actions server.");
603
+ return { repository, runId, serverUrl: url2.origin };
604
+ }
605
+ function validateRunMetadata(value) {
606
+ if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).some((k) => !["runNumber", "startedBy"].includes(k))) throw new Error("Invalid run metadata.");
607
+ if (value.runNumber !== void 0 && runNumberOf(value.runNumber) === void 0) throw new Error("Invalid run number.");
608
+ if (value.startedBy !== void 0) {
609
+ const by = value.startedBy;
610
+ 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.");
611
+ 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.");
612
+ if (by.source === "github-actions") {
613
+ let u;
614
+ try {
615
+ u = new URL(by.url);
616
+ } catch {
617
+ throw new Error("Invalid workflow URL.");
618
+ }
619
+ const match = /^\/(.+)\/actions\/runs\/(\d+)$/.exec(u.pathname);
620
+ if (!match || match[1] !== by.repository || u.search || u.hash || u.username || u.password) throw new Error("Invalid workflow URL.");
621
+ github2({ repository: by.repository, runId: match[2], serverUrl: u.origin });
622
+ } else if (by.repository !== void 0 || by.url !== void 0) throw new Error("Invalid run starter context.");
623
+ }
624
+ return value;
625
+ }
626
+ function starterLabel(by) {
627
+ if (!by) return "";
628
+ return [by.email, by.source === "github-actions" ? "GitHub Actions" : by.source === "cli" ? "CLI" : "", by.repository].filter(Boolean).join(" \xB7 ");
629
+ }
630
+
584
631
  // cloud/shared/outcome-counts.mjs
585
632
  var count = (value) => Number.isSafeInteger(value) && value >= 0 ? value : void 0;
586
633
  function attemptOutcome(attempt, graded) {
@@ -604,6 +651,16 @@ function countAttempts(attempts, requested, graded) {
604
651
  }
605
652
 
606
653
  // frontend/src/runs-page.ts
654
+ function starterHtml(run) {
655
+ const by = run.startedBy ?? run.origin?.startedBy;
656
+ try {
657
+ validateRunMetadata({ startedBy: by });
658
+ } catch {
659
+ return "";
660
+ }
661
+ const label2 = h(starterLabel(by));
662
+ return by?.url ? `<a href="${h(by.url)}" target="_blank" rel="noopener noreferrer">${label2}</a>` : label2;
663
+ }
607
664
  var SOURCES = { console: "Console", cli: "CLI", ci: "CI", cloud: "Cloud" };
608
665
  var TARGETS = { local: "Local", docker: "Docker", hosted: "Hosted", cloud: "Cloud" };
609
666
  var RANGES = { "24h": ["24 h", 864e5], "7d": ["7 d", 7 * 864e5], "30d": ["30 d", 30 * 864e5] };
@@ -710,7 +767,7 @@ function row(item, now, compared, references) {
710
767
  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);
711
768
  const pending = item.status === "queued" ? queueLabel(run.queue) || "Queued" : item.status === "running" ? "Graded as attempts finish" : "";
712
769
  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 ");
713
- 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(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")}</td><td class="wrap num k-meta">${when(run.createdAt, now)}<div>${h(item.status === "queued" ? "Queued" : duration(item.ms))}</div></td></tr>`;
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>`;
714
771
  }
715
772
  function runsTable(runs, options = {}) {
716
773
  const now = options.now ?? Date.now(), compared = runs.some((run) => baselineNote(run));
@@ -731,7 +788,7 @@ function runsPage(runs, filters, options = {}) {
731
788
  const inRange = range ? all.filter((item) => now - timeOf(item.run.createdAt) <= RANGES[range][1]) : all;
732
789
  const values = (pick, chosen) => [...new Set([...all.map(pick), chosen].filter((v) => Boolean(v)))];
733
790
  const query = String(filters.q ?? "").trim().toLowerCase();
734
- const matches = (item) => !query || [item.title, item.run.origin?.branch, item.run.id, 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));
791
+ 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));
735
792
  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));
736
793
  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>`;
737
794
  const commits = values((item) => item.run.origin?.commit, filters.commit);
@@ -1293,7 +1350,7 @@ function agentCrumb(batch) {
1293
1350
  }
1294
1351
  function runDetails(batch, tasks, attempts) {
1295
1352
  const baseline = batch.comparison?.baselineRunId, total = timeOf(batch.finishedAt) - timeOf(batch.startedAt ?? batch.createdAt);
1296
- 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)))) : "") + 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))}<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>";
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.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>";
1297
1354
  }
1298
1355
  function testSquares(batch, task, attempts) {
1299
1356
  const states = attemptStates({ tasks: [task], attempts });
@@ -1310,12 +1367,14 @@ function runProgress(batch) {
1310
1367
  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>`;
1311
1368
  }
1312
1369
  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><a class="k-btn" href="/tests/edit?runId=${h(encodeURIComponent(batch.id))}&amp;name=${h(encodeURIComponent(options.task))}">Edit</a>`;
1371
+ 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("");
1313
1372
  const groups = entrySections(batch), tasks = groups.flatMap((group) => group.tasks), allAttempts = records(batch.attempts), c = runCounts(batch);
1314
1373
  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);
1315
1374
  const hasProduction = rows3.some((row2) => reproductionOf(batch, row2.task)), baseline = baselineNote(batch);
1316
1375
  const failed = rows3.filter((row2) => row2.attempts.some((a) => a.outcome === "failed")).length;
1317
1376
  const noResult = rows3.filter((row2) => row2.attempts.some((a) => ["completed", "error", "stopped"].includes(a.status) && !["passed", "failed"].includes(a.outcome))).length;
1318
- return `<div class="k-page s059-run"><div class="s059-run-content k-stack"><nav class="k-crumbs" aria-label="Breadcrumb">${agentCrumb(batch)}${navLink("Runs", "/playgrounds")}<span>/</span><span aria-current="page">#${h(shortId(String(batch.id)))}</span></nav><header class="k-head"><div class="k-title"><h1>${h(batch.groupName || runTitle(batch))} <span class="k-num">#${h(shortId(String(batch.id)))}</span></h1>${batch.origin?.branch ? `<span class="k-meta">${h(batch.origin.branch)}</span>` : ""}${resultBadge(runStatus(batch))}</div><div class="k-actions">${kitActions(actionsHtml)}</div></header>${queueLine(batch)}${errorMessage(batch.error)}<div class="k-cols"><div class="k-main">${options.task && rows3[0] ? `<section class="k-card k-task"><span class="k-label">Task</span><div>${h(rows3[0].task.prompt ?? "")}</div></section>${comparisonForm(batch, rows3[0].task, rows3[0].attempts)}` : ""}${["running", "starting", "queued"].includes(batch.status) ? runProgress(batch) : ""}<section class="k-card" aria-label="Tests"><div class="k-card-head"><h2>${c.passed} of ${c.total} passed</h2><nav class="k-seg" aria-label="Filter tests"><button type="button" id="run-filter-all" data-test-filter="all" aria-pressed="true">All (${rows3.length})</button><button type="button" id="run-filter-failed" data-test-filter="failed" aria-pressed="false">Failed (${failed})</button><button type="button" id="run-filter-none" data-test-filter="none" aria-pressed="false">No result (${noResult})</button></nav></div><div class="k-scroll"><table class="k-table mid"><thead><tr><th class="icon-cell"><span class="sr-only">Result</span></th><th>Test</th><th>Attempts</th><th class="num">Passed</th>${hasProduction ? "<th>vs production</th>" : ""}</tr></thead><tbody>${rows3.map(({ entry, task, attempts }) => {
1377
+ return `<div class="k-page s059-run"><div class="s059-run-content k-stack"><nav class="k-crumbs" aria-label="Breadcrumb">${agentCrumb(batch)}${navLink("Runs", "/playgrounds")}<span>/</span><span aria-current="page">${h(runLabel(batch, `#${shortId(String(batch.id))}`))}</span></nav><header class="k-head"><div class="k-title"><h1>${h(batch.groupName || runTitle(batch))} <span class="k-num">${h(runLabel(batch, `#${shortId(String(batch.id))}`))}</span></h1>${batch.origin?.branch ? `<span class="k-meta">${h(batch.origin.branch)}</span>` : ""}${resultBadge(runStatus(batch))}</div><div class="k-actions">${kitActions(actionsHtml)}</div></header>${queueLine(batch)}${errorMessage(batch.error)}<div class="k-cols"><div class="k-main">${options.task && rows3[0] ? `<section class="k-card k-task"><span class="k-label">Task</span><div>${h(rows3[0].task.prompt ?? "")}</div></section>${comparisonForm(batch, rows3[0].task, rows3[0].attempts)}` : ""}${["running", "starting", "queued"].includes(batch.status) ? runProgress(batch) : ""}<section class="k-card" aria-label="Tests"><div class="k-card-head"><h2>${c.passed} of ${c.total} passed</h2><nav class="k-seg" aria-label="Filter tests"><button type="button" id="run-filter-all" data-test-filter="all" aria-pressed="true">All (${rows3.length})</button><button type="button" id="run-filter-failed" data-test-filter="failed" aria-pressed="false">Failed (${failed})</button><button type="button" id="run-filter-none" data-test-filter="none" aria-pressed="false">No result (${noResult})</button></nav></div><div class="k-scroll"><table class="k-table mid"><thead><tr><th class="icon-cell"><span class="sr-only">Result</span></th><th>Test</th><th>Attempts</th><th class="num">Passed</th>${hasProduction ? "<th>vs production</th>" : ""}</tr></thead><tbody>${rows3.map(({ entry, task, attempts }) => {
1319
1378
  const outcome = taskOutcome(attempts, hasChecks([task]), Number(task.attempts) || attempts.length), reproduction = reproductionOf(batch, task);
1320
1379
  return `<tr data-test-row data-failed="${attempts.some((a) => a.outcome === "failed")}" data-none="${attempts.some((a) => ["completed", "error", "stopped"].includes(a.status) && !["passed", "failed"].includes(a.outcome))}"><td class="icon-cell">${resultIcon(taskKind(attempts))}</td><td class="wrap"><button class="k-name" type="button" id="run-test-${h(task.id)}" data-peek-task="${h(task.id)}" aria-haspopup="dialog">${h(taskDisplayName(task, tasks.indexOf(task)))}</button>${groups.length > 1 ? `<div class="k-meta">${h(entry?.agentName ?? entry?.name ?? "")}</div>` : ""}<div class="k-meta">${h(shortPrompt(task.prompt))}</div><template data-test-peek="${h(task.id)}">${testPeek(batch, task, attempts, tasks.indexOf(task))}</template></td><td>${testSquares(batch, task, attempts)}</td><td class="num">${attempts.some((a) => ["passed", "failed"].includes(a.outcome)) ? `${attempts.filter((a) => a.outcome === "passed").length}/${Number(task.attempts) || attempts.length}` : "\u2014"}<div class="k-meta">${h(outcome.note)}</div></td>${hasProduction ? `<td>${productionTag(reproduction ? [reproduction] : []) || "\u2014"}</td>` : ""}</tr>`;
1321
1380
  }).join("")}</tbody></table></div>${!rows3.length ? '<p class="k-empty">No tasks recorded.</p>' : ""}<p class="k-empty" data-test-empty hidden>No tests match this filter.</p></section></div><aside class="k-side">${runDetails(batch, tasks, allAttempts)}${baseline ? `<p class="k-meta${baseline.tone === "fail" ? " k-fail-text" : ""}">${h(baseline.text)}</p>` : ""}</aside></div></div><div data-peek-host></div></div>`;
@@ -1640,8 +1699,8 @@ function renderAttemptWorkspace(batch, attempt, evidence, options = {}) {
1640
1699
  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);
1641
1700
  const tab2 = (label2, name, href2) => navLink(label2, href2, view2 === name ? "on" : "").replace("<a ", `<a ${view2 === name ? 'aria-current="page" ' : ""}`);
1642
1701
  const ms = attemptMs(attempt), calls = Number(fullEvidence.toolCalls ?? attempt.toolCalls) || 0, id = String(batch.id), trace = reproductionOf(batch, task)?.trace;
1643
- 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" : duration(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(shortId(id), basePath(batch)))}${detailRow("Test", h(task.id))}</section>`;
1644
- 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("#" + 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)}${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>`;
1702
+ 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" : duration(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>`;
1703
+ 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)}${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>`;
1645
1704
  }
1646
1705
  function renderManagedComparison(data) {
1647
1706
  const sides = records(data.attempts ?? [data.left, data.right]);
@@ -1781,7 +1840,7 @@ function mountWorldWorkspace(node, options) {
1781
1840
  if (disposed) return;
1782
1841
  const currentRuns = selected ? setupRuns(runs, selected) : [], run = currentRuns[0], attempts = run?.attempts ?? [], tasks = selected?.tasks ?? [], choices = worldSetups(tests, world.id, agentId);
1783
1842
  const usedBy = worldSetups(tests, world.id), datasets = world.configuration?.preset?.datasets ?? [];
1784
- node.innerHTML = `<div class="k-page world-v2"><nav class="k-crumbs" aria-label="Breadcrumb"><a data-nav href="/worlds">Worlds</a><span>/</span><span aria-current="page">${h(world.name)}</span></nav><header class="k-head"><div><div class="k-title"><h1>${h(world.name)}</h1><span class="k-badge">Revision ${h(world.revision)}</span></div><div class="worlds-id"><code title="${h(world.id)}">${h(shortId(world.id))}</code>${copyButton(world.id, "Copy world id")}</div></div><div class="k-actions"><span class="world-agent-select"><select class="k-filter" aria-label="Agent" data-ww-select="agent"><option value="" disabled>Choose agent</option>${agents.map((a) => `<option value="${h(a.id)}" ${a.id === agentId ? "selected" : ""}>${h(agentLabel(a, agents))}</option>`).join("")}</select></span><a data-nav class="k-btn" href="${base}?data=1">View data</a><button class="k-btn" type="button" data-ww="configure">Configure</button>${selected ? options.runActions?.(selected.id) ?? button("Run tasks", "run-saved-test", selected.id, "k-btn primary") : ""}</div></header><p class="ww-error" role="alert" ${error ? "" : "hidden"}>${h(error)}</p>${errors.map((e) => `<p class="ww-error" role="alert">${h(e.message)}</p>`).join("")}${error || errors.length ? '<button class="k-btn" type="button" data-ww="retry">Retry loading tasks and runs</button>' : ""}${!loaded ? skeletonRows(4) : ""}<div class="k-cols"><div class="k-main">${choices.length > 1 ? `<span class="world-setup-select"><select class="k-filter" aria-label="Configuration" data-ww-select="test">${!selected ? '<option value="" selected disabled>New configuration</option>' : ""}${choices.map((t) => `<option value="${h(t.id)}" ${t.id === selected?.id ? "selected" : ""}>${h(t.name)}</option>`).join("")}</select></span>` : ""}${loaded && configure ? configuration2() : loaded ? `${run ? latestRun(run, attempts, tasks) : ""}<section class="k-card"><div class="k-card-head"><h2>Tasks${tasks.length ? ` \xB7 ${tasks.length}` : ""}</h2><div class="k-actions">${worldHistory(runs, world.id, agentId || void 0).length || selected ? `<button class="k-btn small" type="button" data-ww="history" aria-expanded="${showHistory}">History</button>` : ""}<button class="k-btn small" type="button" data-ww="configure">${tasks.length ? "Edit tasks" : "Add tasks"}</button></div></div>${tasks.length ? taskTable(tasks, attempts, run) : stateCard("Add tasks to this world", agents.length ? "Configure tasks for your agent to run." : "Connect an agent to run tasks.", agents.length ? '<button class="k-btn" type="button" data-ww="configure">Add tasks</button>' : '<a class="k-btn" data-nav href="/agents">Connect an agent</a>')}</section>${selected && !currentRuns.length && setupHistory(runs, selected).some((item) => item.earlier) ? '<p class="k-meta">This configuration has changed. Earlier attempts are in History.</p>' : ""}${showHistory ? history2() : ""}` : ""}${peopleSection(world, true)}</div><aside class="k-side"><section class="k-card"><div class="k-card-head"><h2>Tools \xB7 ${datasets.length}</h2><a data-nav href="${base}?edit=1">Edit world</a></div><div class="k-scroll" role="region" aria-label="World tools" tabindex="0"><table class="k-table"><thead><tr><th scope="col">Tool</th><th scope="col">Records</th></tr></thead><tbody>${datasets.map((dataset) => `<tr><td><a data-nav class="k-name world-tool-label" href="/tools/${enc(dataset.tool)}">${toolLogo(dataset.tool)}${h(toolName(dataset.tool))}</a></td><td><a data-nav class="k-name" href="${base}?data=1&amp;tool=${enc(dataset.tool)}">View data</a></td></tr>`).join("")}</tbody></table></div>${!datasets.length ? '<p class="k-empty">No tools</p>' : ""}</section>${loaded ? `<section class="k-card"><div class="k-card-head"><h2>Used by ${usedBy.length} ${usedBy.length === 1 ? "test" : "tests"}</h2></div>${usedBy.length ? usedBy.map((test) => `<a data-nav class="k-kv k-name" href="${h(href2(test, test.agentId))}">${h(test.name)}</a>`).join("") : '<p class="k-empty">No tests</p>'}</section>` : ""}</aside></div></div>`;
1843
+ node.innerHTML = `<div class="k-page world-v2"><nav class="k-crumbs" aria-label="Breadcrumb"><a data-nav href="/worlds">Worlds</a><span>/</span><span aria-current="page">${h(world.name)}</span></nav><header class="k-head"><div><div class="k-title"><h1>${h(world.name)}</h1><span class="k-badge">Revision ${h(world.revision)}</span></div><div class="worlds-id"><code title="${h(world.id)}">${h(shortId(world.id))}</code>${copyButton(world.id, "Copy world id")}</div></div><div class="k-actions"><span class="world-agent-select"><select class="k-filter" aria-label="Agent" data-ww-select="agent"><option value="" disabled>Choose agent</option>${agents.map((a) => `<option value="${h(a.id)}" ${a.id === agentId ? "selected" : ""}>${h(agentLabel(a, agents))}</option>`).join("")}</select></span><a data-nav class="k-btn" href="${base}?data=1">View data</a><a data-nav class="k-btn" href="${h(base + "?new=1&configure=1" + (agentId ? "&agent=" + enc(agentId) : ""))}">New test in this world</a><button class="k-btn" type="button" data-ww="configure">Configure</button>${selected ? options.runActions?.(selected.id) ?? button("Run tasks", "run-saved-test", selected.id, "k-btn primary") : ""}</div></header><p class="ww-error" role="alert" ${error ? "" : "hidden"}>${h(error)}</p>${errors.map((e) => `<p class="ww-error" role="alert">${h(e.message)}</p>`).join("")}${error || errors.length ? '<button class="k-btn" type="button" data-ww="retry">Retry loading tasks and runs</button>' : ""}${!loaded ? skeletonRows(4) : ""}<div class="k-cols"><div class="k-main">${choices.length > 1 ? `<span class="world-setup-select"><select class="k-filter" aria-label="Configuration" data-ww-select="test">${!selected ? '<option value="" selected disabled>New configuration</option>' : ""}${choices.map((t) => `<option value="${h(t.id)}" ${t.id === selected?.id ? "selected" : ""}>${h(t.name)}</option>`).join("")}</select></span>` : ""}${loaded && configure ? configuration2() : loaded ? `${run ? latestRun(run, attempts, tasks) : ""}<section class="k-card"><div class="k-card-head"><h2>Tasks${tasks.length ? ` \xB7 ${tasks.length}` : ""}</h2><div class="k-actions">${worldHistory(runs, world.id, agentId || void 0).length || selected ? `<button class="k-btn small" type="button" data-ww="history" aria-expanded="${showHistory}">History</button>` : ""}<button class="k-btn small" type="button" data-ww="configure">${tasks.length ? "Edit tasks" : "Add tasks"}</button></div></div>${tasks.length ? taskTable(tasks, attempts, run) : stateCard("Add tasks to this world", agents.length ? "Configure tasks for your agent to run." : "Connect an agent to run tasks.", agents.length ? '<button class="k-btn" type="button" data-ww="configure">Add tasks</button>' : '<a class="k-btn" data-nav href="/agents">Connect an agent</a>')}</section>${selected && !currentRuns.length && setupHistory(runs, selected).some((item) => item.earlier) ? '<p class="k-meta">This configuration has changed. Earlier attempts are in History.</p>' : ""}${showHistory ? history2() : ""}` : ""}${peopleSection(world, true)}<section class="k-cmd-card"><strong>New test from your coding assistant</strong>${copyCommand(`ancha playground test create --name "<test name>" --agent ${agentId || "<agent id>"} --world ${world.id} --tasks tasks.json`)}</section></div><aside class="k-side"><section class="k-card"><div class="k-card-head"><h2>Tools \xB7 ${datasets.length}</h2><a data-nav href="${base}?edit=1">Edit world</a></div><div class="k-scroll" role="region" aria-label="World tools" tabindex="0"><table class="k-table"><thead><tr><th scope="col">Tool</th><th scope="col">Records</th></tr></thead><tbody>${datasets.map((dataset) => `<tr><td><a data-nav class="k-name world-tool-label" href="/tools/${enc(dataset.tool)}">${toolLogo(dataset.tool)}${h(toolName(dataset.tool))}</a></td><td><a data-nav class="k-name" href="${base}?data=1&amp;tool=${enc(dataset.tool)}">View data</a></td></tr>`).join("")}</tbody></table></div>${!datasets.length ? '<p class="k-empty">No tools</p>' : ""}</section>${loaded ? `<section class="k-card"><div class="k-card-head"><h2>Used by ${usedBy.length} ${usedBy.length === 1 ? "test" : "tests"}</h2></div>${usedBy.length ? usedBy.map((test) => `<a data-nav class="k-kv k-name" href="${h(href2(test, test.agentId))}">${h(test.name)}</a>`).join("") : '<p class="k-empty">No tests</p>'}</section>` : ""}</aside></div></div>`;
1785
1844
  }
1786
1845
  function latestRun(run, attempts, tasks) {
1787
1846
  const requested = run.summary?.counts?.requested ?? attempts.length, summary = executionSummary(attempts, requested), outcome = taskOutcome(attempts, hasChecks(run.tasks ?? tasks), requested);
@@ -2014,7 +2073,7 @@ function historyBars(runs, history2) {
2014
2073
  const bars = runs.map((run) => {
2015
2074
  const counts = runCounts(run), states = attemptStates(run);
2016
2075
  const passed = counts.passed, failed = states.filter((state) => state === "failed").length;
2017
- return { id: run.id, createdAt: run.createdAt, href: "/playgrounds/" + encodeURIComponent(run.id), passed, failed, none: Math.max(0, counts.total - passed - failed), total: counts.total };
2076
+ return { id: run.id, runNumber: run.runNumber, createdAt: run.createdAt, href: "/playgrounds/" + encodeURIComponent(run.id), passed, failed, none: Math.max(0, counts.total - passed - failed), total: counts.total };
2018
2077
  });
2019
2078
  for (const run of history2) {
2020
2079
  if (!run.summary || bars.some((bar) => bar.id === run.runId)) continue;
@@ -2024,7 +2083,7 @@ function historyBars(runs, history2) {
2024
2083
  const ungraded = summary?.verdict === "ungraded" || run.view?.state === "ungraded";
2025
2084
  const passed = ungraded ? 0 : c?.passed ?? scenes.reduce((n, s) => n + Number(s.passed ?? 0), 0);
2026
2085
  const failed = ungraded ? 0 : c?.failed ?? 0;
2027
- bars.push({ id: run.runId, createdAt: summary.startedAt ?? run.status?.startedAt, href: "/playgrounds/" + encodeURIComponent(run.runId), passed, failed, none: Math.max(0, total - passed - failed), total });
2086
+ bars.push({ id: run.runId, runNumber: summary.runNumber, createdAt: summary.startedAt ?? run.status?.startedAt, href: "/playgrounds/" + encodeURIComponent(run.runId), passed, failed, none: Math.max(0, total - passed - failed), total });
2028
2087
  }
2029
2088
  return bars.sort(newestFirst).slice(0, 10).reverse();
2030
2089
  }
@@ -2037,10 +2096,10 @@ function agentRecentRuns(runs, agent, emptyAction, options = {}) {
2037
2096
  const recent = historyBars(runs, options.history ?? []), max = Math.max(1, ...recent.map((run) => run.total));
2038
2097
  const legend = `<div class="ag-legend">${[["pass", "Passed"], ["fail", "Failed"], ["none", "No result"]].map(([kind, label2]) => `<span><span class="k-icon ${kind}" role="img" aria-label="${label2}"></span>${label2}</span>`).join("")}</div>`;
2039
2098
  return `<section class="k-card" aria-label="Results over time"><div class="k-card-head"><h2>${recent.length ? `Last ${recent.length} ${recent.length === 1 ? "run" : "runs"}` : "Runs"}</h2>${legend}</div>${recent.length ? `<div class="k-scroll"><div class="ag-chart"><div class="ag-axis k-meta"><span>${max}</span><span>0</span></div><div class="ag-bars">${recent.map((run) => {
2040
- const label2 = `Run ${shortId(String(run.id))}: ${run.passed} passed, ${run.failed} failed, ${run.none} no result`;
2099
+ const label2 = `Run ${runLabel(run, shortId(String(run.id)))}: ${run.passed} passed, ${run.failed} failed, ${run.none} no result`;
2041
2100
  const pass = Math.round(10 * run.passed / max), fail = Math.round(10 * (run.passed + run.failed) / max) - pass;
2042
2101
  const none = Math.round(10 * run.total / max) - pass - fail;
2043
- return `<a class="ag-run" href="${h(run.href)}" data-nav aria-label="${h(label2)}" title="${h(label2)}"><span class="ag-run-stack" aria-hidden="true"><span class="ag-segment pass ag-h-${pass}"></span><span class="ag-segment fail ag-h-${fail}"></span><span class="ag-segment none ag-h-${none}"></span></span><span class="ag-run-id">${h(String(run.id).slice(-7))}</span></a>`;
2102
+ return `<a class="ag-run" href="${h(run.href)}" data-nav aria-label="${h(label2)}" title="${h(label2)}"><span class="ag-run-stack" aria-hidden="true"><span class="ag-segment pass ag-h-${pass}"></span><span class="ag-segment fail ag-h-${fail}"></span><span class="ag-segment none ag-h-${none}"></span></span><span class="ag-run-id">${h(runLabel(run, String(run.id).slice(-7)))}</span></a>`;
2044
2103
  }).join("")}</div></div></div><p class="k-note"><a class="k-more" data-nav href="${h(all)}">All runs</a></p>` : stateCard("No runs yet", "Run a saved task to see its results here.", emptyAction)}</section>`;
2045
2104
  }
2046
2105
  function testLastRun(run, testId) {
@@ -2098,9 +2157,9 @@ var viewWorldsEmpty = (boot2) => viewBanner(boot2, /* @__PURE__ */ new Date(), "
2098
2157
 
2099
2158
  // frontend/src/generated/tool-catalog.ts
2100
2159
  var TOOL_CATALOG = [
2101
- { "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"]] },
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/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"]] },
2102
2161
  { "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"]] },
2103
- { "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"]] },
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/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"]] },
2104
2163
  { "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"]] },
2105
2164
  { "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"]] },
2106
2165
  { "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"]] },
@@ -2120,11 +2179,11 @@ var TOOL_CATALOG = [
2120
2179
  { "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", "/"]] },
2121
2180
  { "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"]] },
2122
2181
  { "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"]] },
2123
- { "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"]] },
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/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"]] },
2124
2183
  { "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"]] },
2125
2184
  { "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"]] },
2126
2185
  { "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}"]] },
2127
- { "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"]] },
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/v1/monitor/search"], ["GET", "/api/v2/monitor/:monitor_id/downtime_matches"], ["GET", "/api/v1/query"]] },
2128
2187
  { "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/"]] },
2129
2188
  { "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"]] },
2130
2189
  { "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"]] },
@@ -2132,7 +2191,7 @@ var TOOL_CATALOG = [
2132
2191
  { "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"]] },
2133
2192
  { "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"]] },
2134
2193
  { "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"]] },
2135
- { "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"]] },
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/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"]] },
2136
2195
  { "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"]] },
2137
2196
  { "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"]] },
2138
2197
  { "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"]] },