@ancha-labs/cli 0.4.10 → 0.4.12

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.
@@ -759,8 +759,8 @@ function filterUrl(filters, change) {
759
759
  var RESULT_ORDER = ["passed", "failed", "invalid", "skipped", "running", "queued", "stopped", "error", "ungraded"];
760
760
  function runsPage(runs, filters, options = {}) {
761
761
  const now = options.now ?? Date.now(), range = RANGES[filters.range ?? ""] ? filters.range : "";
762
- const head2 = (meta2) => `<header class="page-head runs-head"><div><h1>Runs</h1>${meta2 ? `<p class="page-meta">${h(meta2)}</p>` : ""}</div><div class="actions"><nav class="c-segmented" aria-label="Time range">${[["", "All"], ...Object.entries(RANGES).map(([key, [label2]]) => [key, label2])].map(([key, label2]) => `<a href="${h(filterUrl(filters, { range: key, limit: void 0 }))}" data-nav${key === range ? ' aria-current="page"' : ""}>${h(label2)}</a>`).join("")}</nav>${copyCommand("ancha run --on cloud")}</div></header>`;
763
- if (!runs.length) return head2("") + stateCard("No runs yet", options.emptyHtml ?? "Runs from the CLI, CI and this console land here. Run your first test in the cloud:", copyCommand("ancha run --on cloud"));
762
+ const head2 = (meta2) => `<header class="page-head runs-head"><div><h1>Runs</h1>${meta2 ? `<p class="page-meta">${h(meta2)}</p>` : ""}</div><div class="actions"><nav class="c-segmented" aria-label="Time range">${[["", "All"], ...Object.entries(RANGES).map(([key, [label2]]) => [key, label2])].map(([key, label2]) => `<a href="${h(filterUrl(filters, { range: key, limit: void 0 }))}" data-nav${key === range ? ' aria-current="page"' : ""}>${h(label2)}</a>`).join("")}</nav>${copyCommand("ancha run")}</div></header>`;
763
+ if (!runs.length) return head2("") + stateCard("No runs yet", options.emptyHtml ?? "", copyCommand("ancha run"));
764
764
  const all = runs.map((run) => view(run, now)).sort((a, b) => timeOf(b.run.createdAt) - timeOf(a.run.createdAt) || String(b.run.id).localeCompare(String(a.run.id)));
765
765
  const inRange = range ? all.filter((item) => now - timeOf(item.run.createdAt) <= RANGES[range][1]) : all;
766
766
  const values = (pick, chosen) => [...new Set([...all.map(pick), chosen].filter((v) => Boolean(v)))];
@@ -1945,7 +1945,7 @@ function worldDataPage(title2, context, back, data, base, query) {
1945
1945
  const options = Object.fromEntries([...query].filter(([key]) => key === "resource" || key === "conversation"));
1946
1946
  const pending = data.status === 202, failed = data.status === 422 || data.timedOut;
1947
1947
  const retry = `<button type="button" data-action="reload"${data.retryAfter > 0 ? " disabled" : ""}>Try again</button>`;
1948
- return `<div class="world-data-page"><a data-nav class="back" href="${h(back.href)}">\u2190 ${h(back.label)}</a><header class="page-head"><div><h1>${h(title2)}</h1><p class="page-meta">${h(context)}</p></div></header><p class="world-data-note">Starting data, before any run. Read-only.</p>` + (pending ? stateCard("Preparing this world's starting data", "It opens here when it is ready.") + skeletonRows(5) : failed ? stateCard(data.timedOut ? "The starting data is taking longer to prepare" : "The starting data could not be prepared", h(data.timedOut ? "Try again to check its progress." : data.error?.message ?? data.error ?? "Try again to prepare the starting data."), retry, "error") : tools.length ? `<nav class="tabs world-data-tabs" aria-label="Tools">${tabs}</nav>${recordsView(data, tool, { ...options, embedded: true, baseHref: link(tool) })}` : stateCard("No tools in this world", "Choose tools in the world editor.")) + "</div>";
1948
+ return `<div class="world-data-page"><a data-nav class="back" href="${h(back.href)}">\u2190 ${h(back.label)}</a><header class="page-head"><div><h1>${h(title2)}</h1><p class="page-meta">${h(context)}</p></div></header>` + (pending ? stateCard("Preparing this world's starting data", "It opens here when it is ready.") + skeletonRows(5) : failed ? stateCard(data.timedOut ? "The starting data is taking longer to prepare" : "The starting data could not be prepared", h(data.timedOut ? "Try again to check its progress." : data.error?.message ?? data.error ?? "Try again to prepare the starting data."), retry, "error") : tools.length ? `<nav class="tabs world-data-tabs" aria-label="Tools">${tabs}</nav>${recordsView(data, tool, { ...options, embedded: true, baseHref: link(tool) })}` : stateCard("No tools in this world", "Choose tools in the world editor.")) + "</div>";
1949
1949
  }
1950
1950
  function worldToolsCell(world) {
1951
1951
  const tools = [...new Set(world.tools ?? (world.configuration?.preset?.datasets ?? []).map((dataset) => dataset.tool))];
@@ -1953,7 +1953,7 @@ function worldToolsCell(world) {
1953
1953
  return `<div class="world-tool-icons" role="group" aria-label="Tools: ${h(names.join(", "))}">${tools.slice(0, 2).map((tool) => `<span class="world-tool-name" title="${h(toolName(tool))}">${toolLogo(tool)}<span>${h(toolName(tool))}</span></span>`).join("")}${tools.length > 2 ? `<span class="world-tool-more" title="${h(names.join(", "))}">+${tools.length - 2}</span>` : ""}</div>`;
1954
1954
  }
1955
1955
  function worldsTable(worlds2, taskCounts, writable = true, options = {}) {
1956
- if (!worlds2.length) return stateCard("No worlds yet", "Create a world with the tools your agent uses.", writable ? '<a href="/worlds/new" data-nav class="button-link primary">Create world</a>' : "");
1956
+ if (!worlds2.length) return stateCard("No worlds yet", "", writable ? '<a href="/worlds/new" data-nav class="button-link primary">Create world</a>' : "");
1957
1957
  return `<div class="worlds-scroll" role="region" aria-label="Worlds" tabindex="0"><table class="worlds-table${taskCounts ? "" : " worlds-no-tasks"}"><thead><tr><th scope="col">World</th><th scope="col">Tools</th>${taskCounts ? '<th scope="col" class="num">Tasks</th>' : ""}<th scope="col" class="num">Revision</th><th scope="col" class="num">Updated</th></tr></thead><tbody>${worlds2.map((world) => {
1958
1958
  const base = "/worlds/" + encodeURIComponent(world.id) + (options.startingData ? "?data=1" : "");
1959
1959
  return `<tr><td><a data-nav class="worlds-name" href="${base}" title="${h(world.name)}">${h(world.name)}</a><div class="worlds-id"><code title="${h(world.id)}">${h(shortId(world.id))}</code>${copyButton(world.id, "Copy world id")}</div></td><td>${worldToolsCell(world)}</td>${taskCounts ? `<td class="num"><a data-nav href="${base}" data-world-count="${h(world.id)}">${h(taskCounts.get(world.id) ?? 0)}</a></td>` : ""}<td class="num">${h(world.revision ?? "\u2014")}</td><td class="num">${when(world.updatedAt)}</td></tr>`;
@@ -1991,27 +1991,81 @@ var VIEW_SECTIONS = /* @__PURE__ */ new Set(["worlds", "agents", "playgrounds",
1991
1991
  var viewMode = (boot2) => boot2.mode === "view";
1992
1992
  var viewServes = (section, sub, query = new URLSearchParams()) => VIEW_SECTIONS.has(section) && !(sub && (section === "agents" || section === "worlds" && (sub === "new" || query.get("data") !== "1")));
1993
1993
  function snapshotNote(answer) {
1994
- if (!answer.snapshotAt) return '<p class="quiet-empty">This list fills in once the workspace has answered. Start it to see it now.</p>';
1994
+ if (!answer.snapshotAt) return "";
1995
1995
  return `<p class="view-note">As the workspace last listed them, ${h(appTime(String(answer.snapshotAt)))}.</p>`;
1996
1996
  }
1997
1997
  function hoursLabel(value) {
1998
1998
  const n = Number(value) || 0, scale = n >= 10 ? 10 : 100;
1999
1999
  return `${String(Math.round(n * scale) / scale)} hosted ${n === 1 ? "hour" : "hours"}`;
2000
2000
  }
2001
- function viewBanner(boot2, now = /* @__PURE__ */ new Date()) {
2001
+ var NEEDS = { worlds: "Editing worlds runs on a machine of your own.", agents: "Task runs happen on a machine of your own.", playgrounds: "This run is on a machine of your own." };
2002
+ function viewBanner(boot2, now = /* @__PURE__ */ new Date(), section = "") {
2002
2003
  const machine = boot2.machine ?? {};
2003
- if (machine.state === "starting") return '<section class="view-banner" role="status"><span class="status-spinner" aria-hidden="true"></span><div><strong>Your workspace is starting\u2026</strong><p>Worlds, agents and tools open here when it is up, and runs started in the workspace are listed again. This page reloads by itself.</p></div></section>';
2004
+ if (machine.state === "starting") return '<section class="view-banner" role="status"><span class="status-spinner" aria-hidden="true"></span><div><strong>Your machine is starting\u2026</strong></div></section>';
2004
2005
  if (machine.state === "capped") {
2005
2006
  const month = now.toLocaleString("en-US", { month: "long", timeZone: "UTC" }), ask = boot2.hosted?.execution === false;
2006
- return `<section class="view-banner" role="status"><div><strong>Hosted hours used for ${h(month)}</strong><p>This workspace used its ${h(hoursLabel(machine.hoursCap))} for ${h(month)}. Your data is kept; the workspace wakes again on the 1st. Connect with <code>ancha doctor --on cloud</code>, then <code>ancha run --on cloud</code>${ask ? ', or <a href="/account#hosted">request higher limits</a> to run your own agent on the workspace machine' : ""}.</p></div></section>`;
2007
+ return `<section class="view-banner" role="status"><div><strong>Machine hours used for ${h(month)}</strong><p>This workspace used its ${h(hoursLabel(machine.hoursCap))}; the machine starts again on the 1st.</p></div>${ask ? '<a class="button-link" href="/account#hosted">Request higher limits</a>' : ""}</section>`;
2007
2008
  }
2008
- const asleep = machine.state === "absent" ? "Your workspace hasn\u2019t started yet." : "Your workspace is asleep.";
2009
- return `<section class="view-banner" role="status"><div><strong>${asleep}</strong><p>Runs you upload are here, and your worlds and agents as the workspace last listed them. Start it to work with them.</p></div>${machine.canStart ? button("Start workspace", "start-workspace", "", "primary") : '<p class="muted">This workspace is read-only right now.</p>'}</section>`;
2009
+ return `<section class="view-banner" role="status"><div><strong>${h(NEEDS[section] ?? "This page runs on a machine of your own.")}</strong></div>${machine.canStart ? button("Start machine", "start-workspace", "", "primary") : '<p class="muted">This workspace is read-only right now.</p>'}</section>`;
2010
2010
  }
2011
- function viewStartPage(boot2) {
2012
- return `${viewBanner(boot2)}<p class="view-note">Runs you upload stay readable while the workspace sleeps: <a href="/playgrounds" data-nav>see your runs</a>.</p>`;
2011
+ function viewStartPage(boot2, section = "") {
2012
+ return viewBanner(boot2, /* @__PURE__ */ new Date(), section);
2013
2013
  }
2014
- var waitingForToolPreview = () => '<p class="view-note" role="status">Waiting for the workspace to start. Starter data loads when it is ready.</p>';
2014
+ var viewWorldsEmpty = (boot2) => viewBanner(boot2, /* @__PURE__ */ new Date(), "worlds");
2015
+
2016
+ // frontend/src/generated/tool-catalog.ts
2017
+ var TOOL_CATALOG = [
2018
+ { "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/auth.test"], ["POST", "/api/chat.delete"], ["POST", "/api/chat.getPermalink"], ["POST", "/api/chat.postMessage"], ["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/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"]] },
2019
+ { "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"]] },
2020
+ { "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"], ["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", "/user"], ["GET", "/user/repos"]] },
2021
+ { "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"]] },
2022
+ { "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"]] },
2023
+ { "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"]] },
2024
+ { "name": "notion", "title": "Notion", "category": "Docs", "description": "Pages, databases, blocks and comments", "version": "Notion-Version 2025-09-03", "env": ["NOTION_API_URL", "NOTION_TOKEN"], "endpoints": [["GET", "/v1/blocks/:block_id"], ["PATCH", "/v1/blocks/:block_id"], ["DELETE", "/v1/blocks/:block_id"], ["GET", "/v1/blocks/:block_id/children"], ["PATCH", "/v1/blocks/:block_id/children"], ["GET", "/v1/comments"], ["POST", "/v1/comments"], ["GET", "/v1/comments/:comment_id"], ["GET", "/v1/data_sources/:data_source_id"], ["POST", "/v1/data_sources/:data_source_id/query"], ["GET", "/v1/databases/:database_id"], ["POST", "/v1/pages"], ["GET", "/v1/pages/:page_id"], ["PATCH", "/v1/pages/:page_id"], ["GET", "/v1/pages/:page_id/properties/:property_id"], ["POST", "/v1/search"], ["GET", "/v1/users"], ["GET", "/v1/users/:user_id"], ["GET", "/v1/users/me"]] },
2025
+ { "name": "microsoft-word", "title": "Microsoft Word", "category": "Docs", "description": "Word documents in OneDrive through Microsoft Graph", "version": "Graph v1.0 drive items", "env": ["MICROSOFT_GRAPH_API_URL", "MICROSOFT_GRAPH_ACCESS_TOKEN"], "endpoints": [["GET", "/download/{token}"], ["GET", "/monitor/{token}"], ["GET", "/v1.0/me"], ["GET", "/v1.0/me/drive"], ["GET", "/v1.0/me/drive/items/{item-id}"], ["PATCH", "/v1.0/me/drive/items/{item-id}"], ["DELETE", "/v1.0/me/drive/items/{item-id}"], ["GET", "/v1.0/me/drive/items/{item-id}/children"], ["POST", "/v1.0/me/drive/items/{item-id}/children"], ["GET", "/v1.0/me/drive/items/{item-id}/content"], ["POST", "/v1.0/me/drive/items/{item-id}/copy"], ["POST", "/v1.0/me/drive/items/{item-id}/createLink"], ["POST", "/v1.0/me/drive/items/{item-id}/invite"], ["GET", "/v1.0/me/drive/items/{item-id}/permissions"], ["DELETE", "/v1.0/me/drive/items/{item-id}/permissions/{perm-id}"], ["GET", "/v1.0/me/drive/items/{item-id}/versions"], ["GET", "/v1.0/me/drive/items/{item-id}/versions/{version-id}/content"], ["POST", "/v1.0/me/drive/items/{item-id}/versions/{version-id}/restoreVersion"], ["PUT", "/v1.0/me/drive/items/{parent-id}:/{filename}:/content"], ["GET", "/v1.0/me/drive/recent"], ["GET", "/v1.0/me/drive/root/search(q='{text}')"]] },
2026
+ { "name": "airtable", "title": "Airtable", "category": "Databases", "description": "Bases of linked tables: records, views, formulas and comments", "version": "Web API v0", "env": ["AIRTABLE_API_URL", "AIRTABLE_ENDPOINT_URL", "AIRTABLE_API_KEY"], "endpoints": [["GET", "/v0/{baseId}/{tableIdOrName}"], ["POST", "/v0/{baseId}/{tableIdOrName}"], ["PUT", "/v0/{baseId}/{tableIdOrName}"], ["PATCH", "/v0/{baseId}/{tableIdOrName}"], ["DELETE", "/v0/{baseId}/{tableIdOrName}"], ["GET", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["PUT", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["PATCH", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["DELETE", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["GET", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments"], ["POST", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments"], ["PATCH", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments/{rowCommentId}"], ["DELETE", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments/{rowCommentId}"], ["POST", "/v0/{baseId}/{tableIdOrName}/listRecords"], ["GET", "/v0/meta/bases"], ["GET", "/v0/meta/bases/{baseId}/tables"], ["POST", "/v0/meta/bases/{baseId}/tables"], ["POST", "/v0/meta/bases/{baseId}/tables/{tableId}/fields"], ["PATCH", "/v0/meta/bases/{baseId}/tables/{tableId}/fields/{columnId}"], ["PATCH", "/v0/meta/bases/{baseId}/tables/{tableIdOrName}"], ["GET", "/v0/meta/whoami"]] },
2027
+ { "name": "netsuite", "title": "NetSuite", "category": "Finance", "description": "Order to cash and procure to pay: customers, vendors, invoices, payments, bills and SuiteQL", "version": "SuiteTalk REST record v1 and SuiteQL", "env": ["NETSUITE_API_URL", "NETSUITE_RECORD_URL", "NETSUITE_SUITEQL_URL", "NETSUITE_ACCOUNT_ID", "NETSUITE_CONSUMER_KEY", "NETSUITE_CONSUMER_SECRET", "NETSUITE_TOKEN_ID", "NETSUITE_TOKEN_SECRET", "NETSUITE_ACCESS_TOKEN", "NETSUITE_TOKEN_URL", "NETSUITE_CLIENT_ID", "NETSUITE_CLIENT_SECRET", "NETSUITE_CERTIFICATE_ID", "NETSUITE_PRIVATE_KEY"], "endpoints": [["GET", "/app/login/oauth2/authorize.nl"], ["POST", "/services/mcp/v1/all"], ["POST", "/services/mcp/v1/suiteapp/com.netsuite.mcpstandardtools"], ["GET", "/services/rest/async/v1/job/:id"], ["GET", "/services/rest/async/v1/job/:id/task"], ["GET", "/services/rest/async/v1/job/:id/task/:task"], ["GET", "/services/rest/async/v1/job/:id/task/:task/request"], ["GET", "/services/rest/async/v1/job/:id/task/:task/result"], ["GET", "/services/rest/auth/oauth2/v1/keys"], ["POST", "/services/rest/auth/oauth2/v1/revoke"], ["POST", "/services/rest/auth/oauth2/v1/token"], ["POST", "/services/rest/query/v1/suiteql"], ["GET", "/services/rest/record/v1/:type"], ["POST", "/services/rest/record/v1/:type"], ["POST", "/services/rest/record/v1/:type (Prefer: respond-async)"], ["PUT", "/services/rest/record/v1/:type/:externalId"], ["GET", "/services/rest/record/v1/:type/:id"], ["PATCH", "/services/rest/record/v1/:type/:id"], ["DELETE", "/services/rest/record/v1/:type/:id"], ["GET", "/services/rest/record/v1/:type/:id/:sublist"], ["GET", "/services/rest/record/v1/:type/:id/:sublist/:line"], ["POST", "/services/rest/record/v1/:type/:id/!transform/:target"], ["GET", "/services/rest/record/v1/metadata-catalog"]] },
2028
+ { "name": "carrier-portal", "title": "Carrier portal", "category": "Insurance", "description": "Larchmont Mutual agency website: policy search, documents and underwriting requests", "version": "Agency portal v1", "env": ["CARRIER_PORTAL_URL", "CARRIER_PORTAL_USERNAME", "CARRIER_PORTAL_PASSWORD", "CARRIER_PORTAL_AGENCY_CODE"], "endpoints": [["GET", "/documents/:id/download"], ["GET", "/messages"], ["POST", "/messages"], ["GET", "/policies"], ["GET", "/policies/:number"], ["GET", "/policies/:number/requests/add-vehicle"], ["POST", "/policies/:number/requests/add-vehicle"], ["GET", "/policies/:number/requests/additional-insured"], ["POST", "/policies/:number/requests/additional-insured"], ["GET", "/policies/:number/requests/certificate"], ["POST", "/policies/:number/requests/certificate"], ["GET", "/policies/:number/requests/loss-runs"], ["POST", "/policies/:number/requests/loss-runs"], ["GET", "/policies/:number/requests/mailing-address"], ["POST", "/policies/:number/requests/mailing-address"], ["GET", "/policies/:number/requests/remove-vehicle"], ["POST", "/policies/:number/requests/remove-vehicle"], ["GET", "/requests"], ["GET", "/requests/:reference"], ["GET", "/sign-in"], ["POST", "/sign-in"], ["POST", "/sign-out"], ["GET", "/"]] },
2029
+ { "name": "gmail", "title": "Gmail", "category": "Email", "description": "Mailboxes, threads, labels and drafts", "version": "v1", "env": ["GMAIL_API_URL", "GMAIL_ACCESS_TOKEN"], "endpoints": [["GET", "/.well-known/openid-configuration"], ["GET", "/gmail/v1/users/:userId/drafts"], ["POST", "/gmail/v1/users/:userId/drafts"], ["GET", "/gmail/v1/users/:userId/drafts/:id"], ["PUT", "/gmail/v1/users/:userId/drafts/:id"], ["DELETE", "/gmail/v1/users/:userId/drafts/:id"], ["POST", "/gmail/v1/users/:userId/drafts/send"], ["GET", "/gmail/v1/users/:userId/history"], ["GET", "/gmail/v1/users/:userId/labels"], ["POST", "/gmail/v1/users/:userId/labels"], ["GET", "/gmail/v1/users/:userId/labels/:id"], ["PATCH", "/gmail/v1/users/:userId/labels/:id"], ["DELETE", "/gmail/v1/users/:userId/labels/:id"], ["GET", "/gmail/v1/users/:userId/messages"], ["GET", "/gmail/v1/users/:userId/messages/:id"], ["POST", "/gmail/v1/users/:userId/messages/:id/modify"], ["POST", "/gmail/v1/users/:userId/messages/:id/trash"], ["POST", "/gmail/v1/users/:userId/messages/:id/untrash"], ["GET", "/gmail/v1/users/:userId/messages/:messageId/attachments/:id"], ["POST", "/gmail/v1/users/:userId/messages/batchModify"], ["POST", "/gmail/v1/users/:userId/messages/send"], ["GET", "/gmail/v1/users/:userId/profile"], ["GET", "/gmail/v1/users/:userId/settings/filters"], ["POST", "/gmail/v1/users/:userId/settings/filters"], ["GET", "/gmail/v1/users/:userId/settings/filters/:id"], ["DELETE", "/gmail/v1/users/:userId/settings/filters/:id"], ["GET", "/gmail/v1/users/:userId/settings/forwardingAddresses"], ["GET", "/gmail/v1/users/:userId/settings/sendAs"], ["GET", "/gmail/v1/users/:userId/settings/sendAs/:sendAsEmail"], ["POST", "/gmail/v1/users/:userId/stop"], ["GET", "/gmail/v1/users/:userId/threads"], ["GET", "/gmail/v1/users/:userId/threads/:id"], ["POST", "/gmail/v1/users/:userId/threads/:id/modify"], ["POST", "/gmail/v1/users/:userId/threads/:id/trash"], ["POST", "/gmail/v1/users/:userId/threads/:id/untrash"], ["POST", "/gmail/v1/users/:userId/watch"], ["GET", "/oauth2/v2/userinfo"]] },
2030
+ { "name": "outlook", "title": "Outlook", "category": "Email", "description": "Mailboxes, conversations, drafts and attachments through Microsoft Graph", "version": "Graph v1.0 mail", "env": ["MICROSOFT_GRAPH_API_URL", "MICROSOFT_GRAPH_ACCESS_TOKEN", "MICROSOFT_GRAPH_TOKEN_URL", "MICROSOFT_GRAPH_CLIENT_ID", "MICROSOFT_GRAPH_CLIENT_SECRET"], "endpoints": [["POST", "/{tenant}/oauth2/v2.0/token"], ["PUT", "/upload/{id}"], ["GET", "/v1.0/me"], ["GET", "/v1.0/me/mailFolders/{id}"], ["POST", "/v1.0/me/mailFolders/{id}"], ["PATCH", "/v1.0/me/mailFolders/{id}"], ["DELETE", "/v1.0/me/mailFolders/{id}"], ["GET", "/v1.0/me/mailFolders/{id}/messages"], ["GET", "/v1.0/me/mailFolders/{id}/messages/delta"], ["GET", "/v1.0/me/messages"], ["POST", "/v1.0/me/messages"], ["GET", "/v1.0/me/messages/{id}"], ["PATCH", "/v1.0/me/messages/{id}"], ["DELETE", "/v1.0/me/messages/{id}"], ["GET", "/v1.0/me/messages/{id}/attachments"], ["POST", "/v1.0/me/messages/{id}/attachments"], ["DELETE", "/v1.0/me/messages/{id}/attachments"], ["POST", "/v1.0/me/messages/{id}/attachments/createUploadSession"], ["POST", "/v1.0/me/messages/{id}/copy"], ["POST", "/v1.0/me/messages/{id}/createForward"], ["POST", "/v1.0/me/messages/{id}/createReply"], ["POST", "/v1.0/me/messages/{id}/createReplyAll"], ["POST", "/v1.0/me/messages/{id}/forward"], ["POST", "/v1.0/me/messages/{id}/move"], ["POST", "/v1.0/me/messages/{id}/reply"], ["POST", "/v1.0/me/messages/{id}/replyAll"], ["POST", "/v1.0/me/messages/{id}/send"], ["POST", "/v1.0/me/sendMail"]] },
2031
+ { "name": "resend", "title": "Resend", "category": "Email", "description": "Transactional email, broadcasts, domains, contacts and segments", "version": "REST", "env": ["RESEND_BASE_URL", "RESEND_API_KEY"], "endpoints": [["GET", "/audiences"], ["POST", "/audiences"], ["GET", "/audiences/:id"], ["DELETE", "/audiences/:id"], ["GET", "/audiences/:id/contacts"], ["POST", "/audiences/:id/contacts"], ["GET", "/audiences/:id/contacts/:contact"], ["PATCH", "/audiences/:id/contacts/:contact"], ["GET", "/broadcasts"], ["POST", "/broadcasts"], ["GET", "/broadcasts/:id"], ["PATCH", "/broadcasts/:id"], ["DELETE", "/broadcasts/:id"], ["POST", "/broadcasts/:id/cancel"], ["POST", "/broadcasts/:id/send"], ["GET", "/contacts"], ["POST", "/contacts"], ["GET", "/contacts/:id"], ["PATCH", "/contacts/:id"], ["DELETE", "/contacts/:id"], ["GET", "/contacts/:id/segments"], ["POST", "/contacts/:id/segments/:segment_id"], ["DELETE", "/contacts/:id/segments/:segment_id"], ["GET", "/domains"], ["POST", "/domains"], ["GET", "/domains/:id"], ["DELETE", "/domains/:id"], ["POST", "/domains/:id/verify"], ["GET", "/emails"], ["POST", "/emails"], ["GET", "/emails/:id"], ["PATCH", "/emails/:id"], ["POST", "/emails/:id/cancel"], ["POST", "/emails/batch"], ["GET", "/segments"], ["POST", "/segments"], ["GET", "/segments/:id"], ["PATCH", "/segments/:id"], ["DELETE", "/segments/:id"], ["GET", "/segments/:id/contacts"]] },
2032
+ { "name": "lob", "title": "Lob", "category": "Mail", "description": "Letters, postcards and checks by mail, with US address verification", "version": "Print & Mail API v1", "env": ["LOB_API_URL", "LOB_API_KEY", "LOB_ASSETS_URL"], "endpoints": [["GET", "/v1/addresses"], ["POST", "/v1/addresses"], ["GET", "/v1/addresses/{id}"], ["DELETE", "/v1/addresses/{id}"], ["GET", "/v1/bank_accounts"], ["POST", "/v1/bank_accounts"], ["GET", "/v1/bank_accounts/{id}"], ["DELETE", "/v1/bank_accounts/{id}"], ["POST", "/v1/bank_accounts/{id}/verify"], ["POST", "/v1/bulk/us_verifications"], ["GET", "/v1/checks"], ["POST", "/v1/checks"], ["GET", "/v1/checks/{id}"], ["DELETE", "/v1/checks/{id}"], ["GET", "/v1/letters"], ["POST", "/v1/letters"], ["GET", "/v1/letters/{id}"], ["DELETE", "/v1/letters/{id}"], ["GET", "/v1/postcards"], ["POST", "/v1/postcards"], ["GET", "/v1/postcards/{id}"], ["DELETE", "/v1/postcards/{id}"], ["GET", "/v1/templates"], ["POST", "/v1/templates"], ["GET", "/v1/templates/{id}"], ["POST", "/v1/templates/{id}"], ["DELETE", "/v1/templates/{id}"], ["POST", "/v1/us_verifications"]] },
2033
+ { "name": "twilio", "title": "Twilio", "category": "SMS & voice", "description": "SMS, voice calls, Verify codes and phone number lookups", "version": "REST 2010-04-01, Verify v2 and Lookup v2", "env": ["TWILIO_API_URL", "TWILIO_ACCOUNT_SID", "TWILIO_AUTH_TOKEN"], "endpoints": [["GET", "/2010-04-01/Accounts/{AccountSid}.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/Balance.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/Calls.json"], ["POST", "/2010-04-01/Accounts/{AccountSid}/Calls.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json"], ["POST", "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/Messages.json"], ["POST", "/2010-04-01/Accounts/{AccountSid}/Messages.json"], ["GET", "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json"], ["POST", "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json"], ["DELETE", "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json"], ["GET", "/lookups/v2/PhoneNumbers/{PhoneNumber}"], ["GET", "/verify/v2/Services"], ["GET", "/verify/v2/Services/{Sid}"], ["POST", "/verify/v2/Services/{Sid}/VerificationCheck"], ["POST", "/verify/v2/Services/{Sid}/Verifications"], ["GET", "/verify/v2/Services/{Sid}/Verifications/{VerificationSid}"], ["POST", "/verify/v2/Services/{Sid}/Verifications/{VerificationSid}"]] },
2034
+ { "name": "google-calendar", "title": "Google Calendar", "category": "Calendar", "description": "Calendars, events, attendees, recurrence and free/busy", "version": "API v3", "env": ["GOOGLE_CALENDAR_API_URL", "GOOGLE_CALENDAR_ACCESS_TOKEN"], "endpoints": [["POST", "/calendar/v3/calendars"], ["GET", "/calendar/v3/calendars/:calendarId"], ["PATCH", "/calendar/v3/calendars/:calendarId"], ["DELETE", "/calendar/v3/calendars/:calendarId"], ["GET", "/calendar/v3/calendars/:calendarId/events"], ["POST", "/calendar/v3/calendars/:calendarId/events"], ["GET", "/calendar/v3/calendars/:calendarId/events/:eventId"], ["PUT", "/calendar/v3/calendars/:calendarId/events/:eventId"], ["PATCH", "/calendar/v3/calendars/:calendarId/events/:eventId"], ["DELETE", "/calendar/v3/calendars/:calendarId/events/:eventId"], ["GET", "/calendar/v3/calendars/:calendarId/events/:eventId/instances"], ["POST", "/calendar/v3/calendars/:calendarId/events/:eventId/move"], ["POST", "/calendar/v3/calendars/:calendarId/events/import"], ["POST", "/calendar/v3/calendars/:calendarId/events/quickAdd"], ["GET", "/calendar/v3/colors"], ["POST", "/calendar/v3/freeBusy"], ["GET", "/calendar/v3/users/me/calendarList"], ["GET", "/calendar/v3/users/me/calendarList/:calendarId"], ["GET", "/calendar/v3/users/me/settings"], ["GET", "/calendar/v3/users/me/settings/:setting"]] },
2035
+ { "name": "google-drive", "title": "Google Drive", "category": "Files", "description": "Files, folders, sharing and comments", "version": "Drive API v3", "env": ["GOOGLE_DRIVE_API_URL", "GOOGLE_DRIVE_ACCESS_TOKEN"], "endpoints": [["GET", "/drive/v3/about"], ["GET", "/drive/v3/changes"], ["GET", "/drive/v3/changes/startPageToken"], ["GET", "/drive/v3/files"], ["POST", "/drive/v3/files"], ["GET", "/drive/v3/files/{fileId}"], ["PATCH", "/drive/v3/files/{fileId}"], ["DELETE", "/drive/v3/files/{fileId}"], ["GET", "/drive/v3/files/{fileId}/comments"], ["POST", "/drive/v3/files/{fileId}/comments"], ["GET", "/drive/v3/files/{fileId}/comments/{commentId}"], ["PATCH", "/drive/v3/files/{fileId}/comments/{commentId}"], ["DELETE", "/drive/v3/files/{fileId}/comments/{commentId}"], ["GET", "/drive/v3/files/{fileId}/comments/{commentId}/replies"], ["POST", "/drive/v3/files/{fileId}/comments/{commentId}/replies"], ["POST", "/drive/v3/files/{fileId}/copy"], ["GET", "/drive/v3/files/{fileId}/export"], ["GET", "/drive/v3/files/{fileId}/permissions"], ["POST", "/drive/v3/files/{fileId}/permissions"], ["GET", "/drive/v3/files/{fileId}/permissions/{permissionId}"], ["PATCH", "/drive/v3/files/{fileId}/permissions/{permissionId}"], ["DELETE", "/drive/v3/files/{fileId}/permissions/{permissionId}"], ["GET", "/drive/v3/files/{fileId}/revisions"], ["DELETE", "/drive/v3/files/trash"], ["POST", "/upload/drive/v3/files"], ["PATCH", "/upload/drive/v3/files/{fileId}"]] },
2036
+ { "name": "dropbox", "title": "Dropbox", "category": "Files", "description": "Files, folders, shared links and shared folders", "version": "API v2", "env": ["DROPBOX_API_URL", "DROPBOX_ACCESS_TOKEN"], "endpoints": [["POST", "/2/files/copy_v2"], ["POST", "/2/files/create_folder_v2"], ["POST", "/2/files/delete_v2"], ["POST", "/2/files/download"], ["POST", "/2/files/get_metadata"], ["POST", "/2/files/get_temporary_link"], ["POST", "/2/files/list_folder"], ["POST", "/2/files/list_folder/continue"], ["POST", "/2/files/list_revisions"], ["POST", "/2/files/move_v2"], ["POST", "/2/files/restore"], ["POST", "/2/files/search_v2"], ["POST", "/2/files/search/continue_v2"], ["POST", "/2/files/upload"], ["POST", "/2/sharing/add_folder_member"], ["POST", "/2/sharing/create_shared_link_with_settings"], ["POST", "/2/sharing/list_folder_members"], ["POST", "/2/sharing/list_shared_links"], ["POST", "/2/sharing/modify_shared_link_settings"], ["POST", "/2/sharing/revoke_shared_link"], ["POST", "/2/sharing/share_folder"], ["POST", "/2/users/get_current_account"], ["POST", "/2/users/get_space_usage"], ["GET", "/temporary/{token}"]] },
2037
+ { "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", "/"]] },
2038
+ { "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"]] },
2039
+ { "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"]] },
2040
+ { "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"]] },
2041
+ { "name": "paypal", "title": "PayPal", "category": "Payments", "description": "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"], ["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"]] },
2042
+ { "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"]] },
2043
+ { "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}"]] },
2044
+ { "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"]] },
2045
+ { "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/"]] },
2046
+ { "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"]] },
2047
+ { "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"]] },
2048
+ { "name": "hubspot", "title": "HubSpot", "category": "CRM", "description": "Companies, contacts and deals", "version": "CRM v3", "env": ["HUBSPOT_API_URL", "HUBSPOT_ACCESS_TOKEN"], "endpoints": [["POST", "/crm/v3/associations/:from/:to/batch/:operation"], ["GET", "/crm/v3/associations/:from/:to/types"], ["GET", "/crm/v3/objects/:type"], ["POST", "/crm/v3/objects/:type"], ["GET", "/crm/v3/objects/:type/:id"], ["PATCH", "/crm/v3/objects/:type/:id"], ["DELETE", "/crm/v3/objects/:type/:id"], ["GET", "/crm/v3/objects/:type/:id/associations/:to"], ["PUT", "/crm/v3/objects/:type/:id/associations/:to/:toId/:associationType"], ["DELETE", "/crm/v3/objects/:type/:id/associations/:to/:toId/:associationType"], ["POST", "/crm/v3/objects/:type/batch/:operation"], ["POST", "/crm/v3/objects/:type/search"], ["GET", "/crm/v3/pipelines/:type"], ["GET", "/crm/v3/pipelines/:type/:id"], ["GET", "/crm/v3/pipelines/:type/:id/stages"], ["GET", "/crm/v3/pipelines/:type/:id/stages/:stage"], ["GET", "/crm/v3/properties/:type"], ["GET", "/crm/v3/properties/:type/:property"]] },
2049
+ { "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"]] },
2050
+ { "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"]] },
2051
+ { "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"]] },
2052
+ { "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"]] },
2053
+ { "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"]] },
2054
+ { "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"]] },
2055
+ { "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"]] },
2056
+ { "name": "linkedin-ads", "title": "LinkedIn Ads", "category": "Ads", "description": "Campaigns, audiences and performance", "version": "202610", "env": ["LINKEDIN_ADS_API_URL", "LINKEDIN_ADS_TOKEN"], "endpoints": [["GET", "/rest/adAccounts"], ["GET", "/rest/adAccounts/:accountId"], ["GET", "/rest/adAnalytics"], ["GET", "/rest/adAccounts/:accountId/adCampaignGroups"], ["POST", "/rest/adAccounts/:accountId/adCampaignGroups"], ["GET", "/rest/adAccounts/:accountId/adCampaignGroups/:id"], ["POST", "/rest/adAccounts/:accountId/adCampaignGroups/:id"], ["GET", "/rest/adAccounts/:accountId/adCampaigns"], ["POST", "/rest/adAccounts/:accountId/adCampaigns"], ["GET", "/rest/adAccounts/:accountId/adCampaigns/:id"], ["POST", "/rest/adAccounts/:accountId/adCampaigns/:id"], ["GET", "/rest/adTargetingEntities"], ["GET", "/rest/adTargetingFacets"], ["GET", "/rest/adAccounts/:accountId/creatives"], ["POST", "/rest/adAccounts/:accountId/creatives"], ["GET", "/rest/adAccounts/:accountId/creatives/:id"], ["POST", "/rest/adAccounts/:accountId/creatives/:id"]] },
2057
+ { "name": "chatgpt-ads", "title": "ChatGPT Ads", "category": "Ads", "description": "Campaigns, creative reviews and insights", "version": "Advertiser API v1", "env": ["OPENAI_ADS_API_URL", "OPENAI_ADS_API_KEY"], "endpoints": [["GET", "/v1/ad_account"], ["GET", "/v1/ad_account/insights"], ["GET", "/v1/ad_groups"], ["POST", "/v1/ad_groups"], ["GET", "/v1/ad_groups/:id"], ["POST", "/v1/ad_groups/:id"], ["POST", "/v1/ad_groups/:id/activate"], ["POST", "/v1/ad_groups/:id/archive"], ["GET", "/v1/ad_groups/:id/insights"], ["POST", "/v1/ad_groups/:id/pause"], ["GET", "/v1/ads"], ["POST", "/v1/ads"], ["GET", "/v1/ads/:id"], ["POST", "/v1/ads/:id"], ["POST", "/v1/ads/:id/activate"], ["POST", "/v1/ads/:id/archive"], ["GET", "/v1/ads/:id/insights"], ["POST", "/v1/ads/:id/pause"], ["GET", "/v1/campaigns"], ["POST", "/v1/campaigns"], ["GET", "/v1/campaigns/:id"], ["POST", "/v1/campaigns/:id"], ["POST", "/v1/campaigns/:id/activate"], ["POST", "/v1/campaigns/:id/archive"], ["GET", "/v1/campaigns/:id/insights"], ["POST", "/v1/campaigns/:id/pause"]] },
2058
+ { "name": "open-meteo", "title": "Open-Meteo", "category": "Weather", "description": "Weather forecasts and place lookup", "version": "v1", "env": ["OPEN_METEO_API_URL", "OPEN_METEO_GEOCODING_URL"], "endpoints": [["GET", "/v1/forecast"], ["GET", "/v1/search"]] }
2059
+ ];
2060
+
2061
+ // frontend/src/tool-catalog.ts
2062
+ var catalogTools = () => TOOL_CATALOG.map((tool) => ({
2063
+ name: tool.name,
2064
+ category: tool.category,
2065
+ env: tool.env,
2066
+ descriptor: { title: tool.title, description: tool.description, version: tool.version },
2067
+ coverage: tool.endpoints.map(([method, path2]) => ({ method, path: path2 }))
2068
+ }));
2015
2069
 
2016
2070
  // frontend/src/heartbeat.ts
2017
2071
  var backgroundHeader = { "x-ancha-background": "1" };
@@ -2092,13 +2146,13 @@ function starterCount(tool, key, state) {
2092
2146
  }
2093
2147
 
2094
2148
  // frontend/src/generated/coding-agent-skill.ts
2095
- var codingAgentSkill = "---\nname: ancha\ndescription: Test, debug and fix an AI agent (a Slack bot, a support or on-call agent) against stateful replicas of the tools it uses, built from its production traces, and prove a fix with graded runs in the cloud. Use when asked to test an agent with Ancha, or in a repository that has ancha.yaml.\n---\n\n# Ancha\n\nAncha gives an AI agent the other side of its job: stateful replicas of the tools it uses (Slack, GitHub, Datadog, PagerDuty and more), seeded with one fictional company or rebuilt from a production trace, and checks that grade every attempt from the agent's calls and the world's end state. The verdict comes from the world, not from mocks you wrote yourself. `ancha run --on cloud` runs each attempt on a fresh machine of its own in Ancha's cloud.\n\n## Run the CLI\n\nBefore the CLI is installed, run every command as `npx -y @ancha-labs/cli <command>`. After `npm install -g @ancha-labs/cli` (Node 24 or newer), run `ancha <command>`. Never run `npx` with the bare name `ancha`: that npm name is not this package.\n\nAdd `--json` to every command. Runs print NDJSON events that end with `run_finished`; hosted imports print one result per saved test. `env list` and `sandbox list` return arrays; trace commands use the fields described in `ancha docs traces`. `ancha schema <kind> --json` prints the JSON Schema of `ancha.yaml`, scene files and these outputs. If your command can time out, give `ancha run` an `--idempotency-key <key>`: running it again with the same key returns the same run instead of starting another.\n\n## First steps\n\n<!-- ancha:first-steps -->\n1. **Install the CLI and sign in.** It needs Node 24 or newer. Approve this computer in the browser, once.\n ```sh\n ancha --version || npm install -g @ancha-labs/cli\n ancha login\n ```\n2. **Name the agent's command.** Run it in the agent's project: it writes `ancha.yaml`, and installs and runs nothing.\n ```sh\n ancha init --agent \"<the command that starts your agent>\"\n ```\n3. **Store the secrets it needs.** Run it in the agent's project: it stores the key in your workspace and names it under `agent.pass_env` in `ancha.yaml`, so the agent gets it in cloud runs. The value comes from your shell, never from an argument.\n ```sh\n ancha secrets set OPENAI_API_KEY\n ```\n4. **Connect it.** A fresh machine in the cloud installs the project's dependencies and finds the agent's command; an agent served over HTTP also starts and answers.\n ```sh\n ancha doctor --on cloud\n ```\n - The install follows the project's own manifests and lockfiles; `agent.install` in `ancha.yaml` sets the command instead.\n5. **Make a test from one production failure.** Take the trace of one run where the agent went wrong, with its tool calls and their results, and say what went wrong. The test lands in `scenes/from-traces/` and in your workspace.\n ```sh\n ancha import trace.jsonl --expect \"<what went wrong>\" --json\n ```\n - A trace in Langfuse or LangSmith: `ancha import --from langfuse <trace id>`, or `--from langsmith`.\n - A trace your agent already sent to your workspace: `ancha traces --failed`, then `ancha pull <trace id> --expect \"<what went wrong>\"`.\n - The test lists what one trace cannot settle: answer with `ancha pull <test id> --answer <question>=<answer>`.\n6. **Point the agent at the test's tools.** In a test, the agent calls Ancha instead of production:\n - Its clients for Slack, GitHub and the other tools Ancha replicates take the URLs and credentials Ancha supplies: `ancha connect <tool>` prints the settings.\n - Its own functions: wrap them with `wrapTools` from `@ancha-labs/tools` (`ancha.wrap_tools` in Python), or serve them over MCP.\n7. **Run it in the cloud.** Three attempts of the test. The run says, check by check, whether production's failure happens again, and ends with the link to its result.\n ```sh\n ancha run --on cloud scenes/from-traces/<test>/scene.yaml --attempts 3 --concurrency 3 --json\n ```\n - Your agent and its worlds run in the cloud, each attempt on a fresh machine of its own; a run keeps going when your laptop closes, and its results land in Runs.\n - `--concurrency <n>` sets how many attempts run at once.\n - `ancha wait <run id>` follows a run again from any terminal; `ancha explain <run id>` shows why a check failed.\n - `ancha status --on cloud` shows which of these steps your workspace has done.\n8. **Fix the agent and keep the test.** Keep the failing run as the reference, fix the agent, and run again: exit 0 means every check passes and nothing regressed.\n ```sh\n ancha baseline save before --from <run id>\n ancha run --on cloud scenes/from-traces/<test>/scene.yaml --attempts 3 --concurrency 3 --compare before --json\n ```\n - Commit `scenes/from-traces/` so every run, in CI too, keeps it fixed.\n9. **Run it on this computer.** While you develop, `ancha run --on local` runs the agent and its worlds on this computer, with the same checks.\n ```sh\n ancha run --on local scenes/from-traces/<test>/scene.yaml --attempts 1 --json\n ```\n - Here the agent gets the keys in `agent.pass_env` from your shell, and model-graded checks need `OPENROUTER_API_KEY`.\n<!-- /ancha:first-steps -->\n\n## Cloud runs\n\n- `ancha run --on cloud` sends the project as one bundle: the agent's files, without hidden directories, dependencies or credential-like files, and its tests with their worlds and checks, which stay with the grader and never reach the agent. Each attempt's machine installs the dependencies, runs the agent and grades it with the same engine as a run on this computer. `--attempts <n>` sets the attempts per test, `--concurrency <n>` how many run at once.\n- The agent gets the workspace's secrets for the names in `agent.pass_env`, and its network reaches its tools and its model providers. Model-graded checks and the people in a world run on the workspace's model credit.\n- The `run_finished` event carries `url` (the result in the workspace) and `summary`, with `counts` of the attempts: requested, completed, invalid, skipped and cancelled. Interrupting the command stops the following, never the run: `ancha wait <run id>` follows it again, and `--detach` returns once the run is accepted.\n- `ancha explain <run id> --json` shows each failed check: what was expected, what happened, and the calls and world events behind it. Read it before guessing from the code; many bugs only show up with the world's data and timing.\n- `ancha status --on cloud --json` shows the workspace's checks (agent connected, traces imported, first graded cloud run) and the next command. In CI, `ANCHA_SERVER_URL` and `ANCHA_API_KEY` replace the login. More: `ancha docs cloud`.\n\n## An app, not a command\n\nIf the AI feature lives inside an app (a web app or API server with its database, workers and scheduled jobs), don't wrap it in `agent.command`. Ancha starts the app once per attempt with `agent.start`, waits for `agent.ready_url`, delivers the tools' events to `agent.url`, and a scene's `world_rules.app_calls` call the app's own routes, such as its cron jobs, at a time. Read `ancha docs apps` before writing `ancha.yaml`. The start script gives the app a clean database, cache and seed every attempt: a new world has new URLs and tokens, and stale rows or sync cursors make an app silently do nothing.\n\n## More from production traces\n\n`ancha import <trace file> --json` sends the trace to the workspace, which rebuilds the world and the checks, and writes the test to `scenes/from-traces/<name>/scene.yaml`. The test lists the questions one trace cannot settle, each with the default it uses. Ask the user for the answers; don't guess them. Pass them with `ancha pull <test id> --answer <question>=<value>`. `ancha import --offline <trace file> --json` makes the tests on this computer instead, one per conversation, and uploads nothing; there, `--answer` and `--force` go on the import.\n\nThe test should fail the same way production did. If it doesn't, run it on this computer: `ancha traces diff <trace file> latest` shows the calls production made and the attempt didn't, and the import also lists the app's own setup calls, which the start script or an `app_call` has to make.\n\nIf the user's workspace takes traces (their agents send them to it), each trace becomes a test there: `ancha pull --all --json` writes every test that is turned on (`--agent <name>` for one agent's), `ancha traces --failed --json` lists the ones where production failed a check, `ancha traces show <id> --json` previews the test, and `ancha pull <id> --json` writes one, with `--answer` for its questions. Checks you add to a pulled `scene.yaml` stay when you pull a newer version; any other edit stops the pull. More: `ancha docs traces`.\n\n## Other tests\n\nThe starter scene `ancha init` writes when `scenes/` holds no tests only proves that the agent reaches each tool. For the agent's real job beyond its traces, `ancha test new \"<the test in one sentence>\" --json` drafts a test with people for the project's world (`ancha init --intent \"<company and scenario>\"` makes the world and a first test). Review its checks before you run it. To write a seed yourself, `ancha twins seed <tool> --json` prints the tool's fields, an example that validates as written, and the checks a scene can make on it. More: `ancha docs scenes`.\n\n## The rule\n\nFix the agent, not `ancha.yaml`, the scenes or their checks. The exception is a check that is wrong for the real API, such as a method the official SDK never sends. Then don't quietly edit it: tell the user, show the evidence (the call from `ancha explain`, the vendor's documentation), and change it only with their agreement.\n\nNever give the agent under test the scenes, checks, seeds or reference companions (`oracle.mjs`, `null.mjs`), and never point it at a real SaaS API.\n\n## What the agent gets\n\nEach attempt gives the agent its tools as environment variables, with fake credentials that only work against the replicas:\n\n- Slack: `SLACK_API_URL` (ends in `/api/`), `SLACK_BOT_TOKEN`\n- GitHub: `GITHUB_API_URL`, `GITHUB_TOKEN`\n- Datadog: `DATADOG_API_URL`, `DD_API_KEY`, `DD_APP_KEY`\n- PagerDuty: `PAGERDUTY_API_URL`, `PAGERDUTY_API_TOKEN`, `PAGERDUTY_FROM_EMAIL`, `PAGERDUTY_ROUTING_KEY`\n- the same pattern for the other tools in the world; `ANCHA_TASK` carries a command-line task.\n\n`ancha connect <tool> --lang ts|py` prints the SDK settings. `ancha twins coverage <tool>` lists the endpoints each replica implements.\n\nGoogle clients (`googleapis`, `@googleapis/*`) take the replica's URL in each call's options: `drive.files.list(params, { rootUrl: process.env.GOOGLE_DRIVE_API_URL + '/' })`. A `rootUrl` set on the client keeps only the host; Ancha still routes those calls by their token, but the client sends file uploads to www.googleapis.com.\n\nThe agent's own keys are the names in `agent.pass_env` in `ancha.yaml`, such as `agent.pass_env: [OPENAI_API_KEY]`, and `agent.env` sets fixed values, such as the path of a key file. In the cloud each name comes from the workspace's secrets (`ancha secrets set NAME`). `ancha run --on local` starts the agent on this computer instead, with this computer's network and those names from this shell (or `--pass-env NAME`); `--on docker` seals it in a container (`agent.execution: { mode: container, image: node:24-slim }`, which needs Docker). An agent without its model key stops at its first model call.\n\n## When something fails\n\n- Exit 1: a check failed or the comparison regressed (a single check's drop counts, see `comparison.droppedChecks`). Run `ancha explain <run id> --json`.\n- Exit 2: usage, config, scene or authentication error, or a cancelled cloud run. `AUTH_INVALID` means `ancha login` again or a valid `ANCHA_API_KEY`; `CONFIG_INVALID` naming a workspace secret means `ancha secrets set NAME`. Read the `hint`.\n- Exit 3: infrastructure, or an attempt the harness couldn't run or grade. It counts as invalid, never as a failed check, so it's not the agent's fault; run again, and `ancha doctor --on cloud --json` if it repeats.\n- Exit 4, only with `--strict`: an endpoint coverage error or a verdict using simulated tool answers. The summary names the tests, trials and evaluated checks using those answers. `ancha explain` lists endpoint errors; `ancha twins coverage <tool>` shows the endpoint inventory.\n\nRead the error's stable `code` and `message`, then follow its `hint` when provided. More: `ancha docs`, `ancha docs <topic>` for setup, run, traces, explain, compare, scenes, integrations, cloud and playgrounds, and https://docs.ancha.io/coding-agents.\n\nTell the user what you ran, where it ran, the pass rate, the evidence and the result link. Never claim a fix until `ancha run --compare` exits 0.\n";
2149
+ var codingAgentSkill = "---\nname: ancha\ndescription: Test, debug and fix an AI agent (a Slack bot, a support or on-call agent) against stateful replicas of the tools it uses, built from its production traces, and prove a fix with graded runs in the cloud. Use when asked to test an agent with Ancha, or in a repository that has ancha.yaml.\n---\n\n# Ancha\n\nAncha gives an AI agent the other side of its job: stateful replicas of the tools it uses (Slack, GitHub, Datadog, PagerDuty and more), seeded with one fictional company or rebuilt from a production trace, and checks that grade every attempt from the agent's calls and the world's end state. The verdict comes from the world, not from mocks you wrote yourself. `ancha run --on cloud` runs each attempt on a fresh machine of its own in Ancha's cloud.\n\n## Run the CLI\n\nBefore the CLI is installed, run every command as `npx -y @ancha-labs/cli <command>`. After `npm install -g @ancha-labs/cli` (Node 24 or newer), run `ancha <command>`. Never run `npx` with the bare name `ancha`: that npm name is not this package.\n\nAdd `--json` to every command. Runs print NDJSON events that end with `run_finished`; `ancha traces upload` prints the tests it made. `env list` and `sandbox list` return arrays; trace commands use the fields described in `ancha docs traces`. `ancha schema <kind> --json` prints the JSON Schema of `ancha.yaml`, test files (`scene.yaml`) and these outputs. If your command can time out, give `ancha run` an `--idempotency-key <key>`: running it again with the same key returns the same run instead of starting another.\n\n## First steps\n\n<!-- ancha:first-steps -->\n1. **Install the CLI and sign in.** It needs Node 24 or newer. Approve this computer in the browser, once.\n ```sh\n ancha --version || npm install -g @ancha-labs/cli\n ancha login\n ```\n2. **Set up the project.** Run it in the agent's project: it finds the command that starts the agent and how the agent takes its task, and writes both to `ancha.yaml`. It installs and runs nothing.\n ```sh\n ancha init\n ```\n - To name the command yourself: `ancha init --agent \"<the command that starts your agent>\"`.\n3. **Store the key it needs.** The agent's own model key, read from your shell, never from an argument: it is stored in your workspace and named under `agent.pass_env` in `ancha.yaml`, so the agent gets it in every cloud attempt.\n ```sh\n ancha secrets set ANTHROPIC_API_KEY\n ```\n4. **Upload your agent.** A fresh machine in the cloud installs the project's dependencies and starts the agent once with a task. It says the agent is ready, or shows the end of its log.\n ```sh\n ancha agent upload\n ```\n - The install follows the project's own manifests and lockfiles; `agent.install` in `ancha.yaml` sets the command instead.\n5. **Upload traces.** A file or a folder of traces, runs that went fine and runs that failed: each trace becomes a test, in `scenes/from-traces/` and in your workspace.\n ```sh\n ancha traces upload ./traces\n ```\n - From Langfuse or LangSmith, with your keys on this computer: `ancha traces upload --from langfuse --limit 50`, or `--from langsmith`.\n - A trace of a run that went wrong can say what went wrong: `ancha traces upload <trace file> --expect \"<what went wrong>\"`, or for a test already made, `ancha pull <test id> --expect \"<what went wrong>\"`.\n - Traces your agent already sent to your workspace: `ancha traces`, then `ancha pull <trace id>`.\n - A test lists what one trace cannot settle: answer with `ancha pull <test id> --answer <question>=<answer>`.\n6. **Point the agent at the test's tools.** In a test, the agent calls Ancha instead of production:\n - Its clients for Slack, GitHub and the other tools Ancha replicates take the URLs and credentials Ancha supplies: `ancha connect <tool>` prints the settings.\n - Its own functions: wrap them with `wrapTools` from `@ancha-labs/tools` (`ancha.wrap_tools` in Python), or serve them over MCP.\n7. **Run your tests.** Every test, each attempt on a fresh machine. The run grades each attempt check by check and ends with the link to its result.\n ```sh\n ancha run\n ```\n - Your agent and its worlds run in the cloud, each attempt on a fresh machine of its own; a run keeps going when your laptop closes, and its results land in Runs.\n - `--attempts <n>` sets how many attempts each test gets, `--concurrency <n>` how many run at once.\n - `ancha wait <run id>` follows a run again from any terminal; `ancha explain <run id>` shows why a check failed.\n - `ancha status` shows which of these steps your workspace has done.\n8. **Fix the agent and keep the test.** Keep the failing run as the reference, fix the agent, and run again: exit 0 means every check passes and nothing regressed.\n ```sh\n ancha baseline save before --from <run id>\n ancha run --compare before\n ```\n - Commit `scenes/from-traces/` so every run, in CI too, keeps it fixed.\n9. **Run it on this computer.** While you develop, `ancha run --on local` runs the agent and its worlds on this computer, with the same checks.\n ```sh\n ancha run --on local --attempts 1\n ```\n - Here the agent gets the keys in `agent.pass_env` from your shell, and model-graded checks need `OPENROUTER_API_KEY`.\n<!-- /ancha:first-steps -->\n\n## Cloud runs\n\n- `ancha run --on cloud` sends the project as one bundle: the agent's files, without hidden directories, dependencies or credential-like files, and its tests with their worlds and checks, which stay with the grader and never reach the agent. Each attempt's machine installs the dependencies, runs the agent and grades it with the same engine as a run on this computer. `--attempts <n>` sets the attempts per test, `--concurrency <n>` how many run at once.\n- The agent gets the workspace's secrets for the names in `agent.pass_env`, and its network reaches its tools and its model providers. Model-graded checks and the people in a world run on the workspace's model credit.\n- The `run_finished` event carries `url` (the result in the workspace) and `summary`, with `counts` of the attempts: requested, completed, invalid, skipped and cancelled. Interrupting the command stops the following, never the run: `ancha wait <run id>` follows it again, and `--detach` returns once the run is accepted.\n- `ancha explain <run id> --json` shows each failed check: what was expected, what happened, and the calls and world events behind it. Read it before guessing from the code; many bugs only show up with the world's data and timing.\n- When every attempt ended before the agent did anything (it exited within seconds without a call, or its command could not start), the run, `ancha wait` and `ancha explain` say that first: \"Your agent didn't run\", the end of its log once, and the likely fix read from it, such as the `agent.env` line that gives the agent its task under the name it reads. `agentNeverRan` in the JSON carries the same. Make that fix first: the failed checks follow from it, and `ancha explain <run id> --all` lists them.\n- `ancha status --json` shows the workspace's three steps (agent uploaded, traces uploaded, tests run in the cloud) and the next command. In CI, `ANCHA_SERVER_URL` and `ANCHA_API_KEY` replace the login. More: `ancha docs cloud`.\n\n## An app, not a command\n\nIf the AI feature lives inside an app (a web app or API server with its database, workers and scheduled jobs), don't wrap it in `agent.command`. Ancha starts the app once per attempt with `agent.start`, waits for `agent.ready_url`, delivers the tools' events to `agent.url`, and a scene's `world_rules.app_calls` call the app's own routes, such as its cron jobs, at a time. Read `ancha docs apps` before writing `ancha.yaml`. The start script gives the app a clean database, cache and seed every attempt: a new world has new URLs and tokens, and stale rows or sync cursors make an app silently do nothing.\n\n## More from production traces\n\n`ancha traces upload <file or folder> --json` sends the traces to the workspace, which rebuilds each one's world and checks, and writes each test to `scenes/from-traces/<name>/scene.yaml`: runs that went fine and runs that failed. `--from langfuse` or `--from langsmith` takes the newest traces there instead (`--limit`, `--since`), with the keys in this shell. For one trace of a failure, `--expect \"<what went wrong>\"` adds a check for it. A test lists the questions one trace cannot settle, each with the default it uses. Ask the user for the answers; don't guess them. Pass them with `ancha pull <test id> --answer <question>=<value>`. `ancha import --offline <trace file> --json` makes the tests on this computer instead, one per conversation, and uploads nothing; there, `--answer` and `--force` go on the import.\n\nA test from a run that failed should fail the same way production did. If it doesn't, run it on this computer: `ancha traces diff <trace file> latest` shows the calls production made and the attempt didn't, and the import also lists the app's own setup calls, which the start script or an `app_call` has to make.\n\nIf the user's workspace takes traces (their agents send them to it), each trace becomes a test there: `ancha pull --all --json` writes every test that is turned on (`--agent <name>` for one agent's), `ancha traces --failed --json` lists the ones where production failed a check, `ancha traces show <id> --json` previews the test, and `ancha pull <id> --json` writes one, with `--answer` for its questions. Checks you add to a pulled `scene.yaml` stay when you pull a newer version; any other edit stops the pull. More: `ancha docs traces`.\n\n## Other tests\n\nThe starter test `ancha init` writes when `scenes/` holds no tests only proves that the agent reaches each tool. For the agent's real job beyond its traces, `ancha test new \"<the test in one sentence>\" --json` drafts a test with people for the project's world (`ancha init --intent \"<company and scenario>\"` makes the world and a first test). Review its checks before you run it. To write a seed yourself, `ancha twins seed <tool> --json` prints the tool's fields, an example that validates as written, and the checks a test can make on it. More: `ancha docs scenes`.\n\n## The rule\n\nFix the agent, not the tests or their checks. `ancha.yaml` says how to start the agent and give it its task and keys: change it for that, never to make a check pass. The exception is a check that is wrong for the real API, such as a method the official SDK never sends. Then don't quietly edit it: tell the user, show the evidence (the call from `ancha explain`, the vendor's documentation), and change it only with their agreement.\n\nNever give the agent under test the tests, checks, seeds or reference companions (`oracle.mjs`, `null.mjs`), and never point it at a real SaaS API.\n\n## What the agent gets\n\nEach attempt gives the agent its tools as environment variables, with fake credentials that only work against the replicas:\n\n- Slack: `SLACK_API_URL` (ends in `/api/`), `SLACK_BOT_TOKEN`\n- GitHub: `GITHUB_API_URL`, `GITHUB_TOKEN`\n- Datadog: `DATADOG_API_URL`, `DD_API_KEY`, `DD_APP_KEY`\n- PagerDuty: `PAGERDUTY_API_URL`, `PAGERDUTY_API_TOKEN`, `PAGERDUTY_FROM_EMAIL`, `PAGERDUTY_ROUTING_KEY`\n- the same pattern for the other tools in the world; `ANCHA_TASK` carries a command-line task, and `ANCHA_TASK_FILE` names a file holding it. An agent that reads its task under another name gets it with `agent.env: { MY_TASK: \"{{task}}\" }` (`{{task_file}}` for the file); `ancha init` writes that line when it finds the name.\n\n`ancha connect <tool> --lang ts|py` prints the SDK settings. `ancha twins coverage <tool>` lists the endpoints each replica implements.\n\nGoogle clients (`googleapis`, `@googleapis/*`) take the replica's URL in each call's options: `drive.files.list(params, { rootUrl: process.env.GOOGLE_DRIVE_API_URL + '/' })`. A `rootUrl` set on the client keeps only the host; Ancha still routes those calls by their token, but the client sends file uploads to www.googleapis.com.\n\nThe agent's own keys are the names in `agent.pass_env` in `ancha.yaml`, such as `agent.pass_env: [OPENAI_API_KEY]`, and `agent.env` sets fixed values, such as the path of a key file. In the cloud each name comes from the workspace's secrets (`ancha secrets set NAME`). `ancha run --on local` starts the agent on this computer instead, with this computer's network and those names from this shell (or `--pass-env NAME`); `--on docker` seals it in a container (`agent.execution: { mode: container, image: node:24-slim }`, which needs Docker). An agent without its model key stops at its first model call.\n\n## When something fails\n\n- Exit 1: a check failed or the comparison regressed (a single check's drop counts, see `comparison.droppedChecks`). Run `ancha explain <run id> --json`.\n- Exit 2: usage, config, test file or authentication error, or a cancelled cloud run. `AUTH_INVALID` means `ancha login` again or a valid `ANCHA_API_KEY`; `CONFIG_INVALID` naming a workspace secret means `ancha secrets set NAME`. Read the `hint`.\n- Exit 3: infrastructure, or an attempt the harness couldn't run or grade. It counts as invalid, never as a failed check, so it's not the agent's fault; run again, and `ancha agent upload --json` if it repeats.\n- Exit 4, only with `--strict`: an endpoint coverage error or a verdict using simulated tool answers. The summary names the tests, trials and evaluated checks using those answers. `ancha explain` lists endpoint errors; `ancha twins coverage <tool>` shows the endpoint inventory.\n\nRead the error's stable `code` and `message`, then follow its `hint` when provided. More: `ancha docs`, `ancha docs <topic>` for setup, run, traces, explain, compare, scenes, integrations, cloud and playgrounds, and https://docs.ancha.io/coding-agents.\n\nTell the user what you ran, where it ran, the pass rate, the evidence and the result link. Never claim a fix until `ancha run --compare` exits 0.\n";
2096
2150
 
2097
2151
  // frontend/src/workspace-pages.ts
2098
2152
  var startSentence = "Set up Ancha for this agent: read https://app.ancha.io/llms.txt and follow its first steps.";
2099
2153
  function startCard(sampleRunId, hosted = false) {
2100
2154
  const sample = sampleRunId ? `<a data-nav class="start-sample" href="/playgrounds/${encodeURIComponent(sampleRunId)}">See the sample run \u2192</a>` : "";
2101
- if (hosted) return `<section class="start-card" aria-label="Start"><h2>New to Ancha?</h2><p>Get started has the first steps, from one production failure to a test your agent passes.</p><a class="button-link primary" href="/start">Get started</a>${sample}</section>`;
2155
+ if (hosted) return `<section class="start-card" aria-label="Start"><h2>New to Ancha?</h2><a class="button-link primary" href="/start">Get started</a>${sample}</section>`;
2102
2156
  return `<section class="start-card" aria-label="Start"><h2>Give this to your coding agent</h2><div class="start-sentence"><code>${h(startSentence)}</code><button class="primary" data-action="copy-start-sentence">Copy</button></div>${sample}</section>`;
2103
2157
  }
2104
2158
  function helpPage() {
@@ -2188,7 +2242,7 @@ function mountWorlds(node, worlds2, tools, selected, api2, go2) {
2188
2242
  return;
2189
2243
  }
2190
2244
  if (world) {
2191
- node.innerHTML = `<p class="world-intro">Each trial starts with a fresh copy of this world.</p><div class="world-tool-grid">${world.configuration.preset.datasets.map((d) => `<a class="world-tool world-data-link" data-nav href="/tools/${encodeURIComponent(d.tool)}">${toolLogo(d.tool)}<strong>${h(toolName(d.tool))}</strong><span>Preview starter data \u2192</span></a>`).join("")}</div>`;
2245
+ node.innerHTML = `<div class="world-tool-grid">${world.configuration.preset.datasets.map((d) => `<a class="world-tool world-data-link" data-nav href="/tools/${encodeURIComponent(d.tool)}">${toolLogo(d.tool)}<strong>${h(toolName(d.tool))}</strong><span>Preview starter data \u2192</span></a>`).join("")}</div>`;
2192
2246
  return;
2193
2247
  }
2194
2248
  node.innerHTML = worldsTable(worlds2);
@@ -2716,7 +2770,7 @@ function toolEndpoints(coverage) {
2716
2770
  }
2717
2771
  function toolConnect(name) {
2718
2772
  const env = connectionFields[name] ?? [];
2719
- return env.length ? `<section class="tool-aside-section"><h2>Connect your agent</h2><p>Your agent reads these at start; point your client at the URL instead of the real service.</p><div class="catalog-scroll" tabindex="0" aria-label="Connection variables"><table class="catalog-table connect-table"><thead><tr><th scope="col">Variable</th><th scope="col">Holds</th></tr></thead><tbody>${env.map((key) => `<tr><td><div class="catalog-copy"><code>${h(key)}</code>${copyButton(key, "Copy variable name")}</div></td><td>${h(connectionLabel(key))}</td></tr>`).join("")}</tbody></table></div>${connectionNote[name] ? `<p class="hint">${h(connectionNote[name])}</p>` : ""}</section>` : "";
2773
+ return env.length ? `<section class="tool-aside-section"><h2>Connect your agent</h2><div class="catalog-scroll" tabindex="0" aria-label="Connection variables"><table class="catalog-table connect-table"><thead><tr><th scope="col">Variable</th><th scope="col">Holds</th></tr></thead><tbody>${env.map((key) => `<tr><td><div class="catalog-copy"><code>${h(key)}</code>${copyButton(key, "Copy variable name")}</div></td><td>${h(connectionLabel(key))}</td></tr>`).join("")}</tbody></table></div>${connectionNote[name] ? `<p class="hint">${h(connectionNote[name])}</p>` : ""}</section>` : "";
2720
2774
  }
2721
2775
  function agentList(agents, instead) {
2722
2776
  if (!agents.length) return stateCard("No agents", instead ? "" : "Choose your local project to get started.", instead ?? copyCommand("ancha init") + button("Connect agent", "add-agent", "", "primary"));
@@ -2944,7 +2998,8 @@ var ownRunsOff = () => boot.hosted?.execution === false;
2944
2998
  var agentsBack = () => navLink(boot.hosted ? "\u2190 Connected agents" : "\u2190 Agents", agentsHome(Boolean(boot.hosted)), "back");
2945
2999
  var notFound = () => head("Page not found") + notFoundPage(Boolean(boot.hosted));
2946
3000
  var viewMode2 = () => viewMode(boot);
2947
- var viewBanner2 = () => viewBanner(boot);
3001
+ var staticTools = catalogTools();
3002
+ var previewFailed = /* @__PURE__ */ new Set();
2948
3003
  var worldsAnswer = {};
2949
3004
  var agentsAnswer = {};
2950
3005
  var worldData;
@@ -2981,7 +3036,7 @@ async function startWorkspace() {
2981
3036
  await load();
2982
3037
  if (result.state !== "capped") waitForWorkspace();
2983
3038
  }
2984
- var betaNote = () => '<p class="beta-note">Connect with <code>ancha doctor --on cloud</code>, then <code>ancha run --on cloud</code>. To run your own agent on the workspace machine, <a href="/account#hosted">request higher limits in Settings</a>.</p>';
3039
+ var betaNote = () => `<div class="beta-note">${copyCommand("ancha agent upload")}<a href="/account#hosted">Request higher limits</a></div>`;
2985
3040
  var poll = (path2, signal) => api(path2, void 0, signal, true);
2986
3041
  function path() {
2987
3042
  return location.pathname.split("/").filter(Boolean).map(decodeURIComponent);
@@ -3039,11 +3094,11 @@ function starterPanel(tool, q, base) {
3039
3094
  }
3040
3095
  function shell(section, content) {
3041
3096
  const nav2 = (items) => items.map(([id, name]) => `<a href="/${id}" data-nav class="nav-item ${section === id ? "active" : ""}" ${section === id ? 'aria-current="page"' : ""}>${name}</a>`).join("");
3042
- root.innerHTML = `<aside class="sidebar"><a href="/worlds" class="brand" data-nav>ancha</a><nav class="app-nav" aria-label="Main navigation">${nav2([["worlds", "Worlds"], ["agents", "Agents"], ["playgrounds", "Runs"], ["tools", "Tools"]])}</nav><div class="workspace"><span id="connection" class="connection warn" role="status"${failedProbes < 2 ? " hidden" : ""}>${failedProbes < 2 ? "" : "Can\u2019t reach the server. Retrying\u2026"}</span><a href="/help" data-nav>Help</a><a href="/settings" data-nav>Settings</a></div></aside><main id="main" tabindex="-1">${viewMode2() && viewServes(section, path()[1], new URLSearchParams(location.search)) ? viewBanner2() : ""}${content}</main>`;
3097
+ root.innerHTML = `<aside class="sidebar"><a href="/worlds" class="brand" data-nav>ancha</a><nav class="app-nav" aria-label="Main navigation">${nav2([["worlds", "Worlds"], ["agents", "Agents"], ["playgrounds", "Runs"], ["tools", "Tools"]])}</nav><div class="workspace"><span id="connection" class="connection warn" role="status"${failedProbes < 2 ? " hidden" : ""}>${failedProbes < 2 ? "" : "Can\u2019t reach the server. Retrying\u2026"}</span><a href="/help" data-nav>Help</a><a href="/settings" data-nav>Settings</a></div></aside><main id="main" tabindex="-1">${content}</main>`;
3043
3098
  }
3044
3099
  function folderScenes(scenes) {
3045
3100
  if (!scenes.length) return "";
3046
- return `<section class="folder-scenes" aria-labelledby="folder-scenes-title"><div class="section-title"><div><h2 id="folder-scenes-title">Scenes in this folder</h2><p class="muted">Open one to see its starting data before any run.</p></div></div><div class="worlds-scroll" role="region" aria-label="Scenes in this folder" tabindex="0"><table class="worlds-table scenes-table"><thead><tr><th scope="col">Scene</th><th scope="col">Tools</th><th scope="col">Path</th></tr></thead><tbody>${scenes.map((scene) => `<tr><td><a class="worlds-name" href="/worlds?scene=${enc2(String(scene.key))}" data-nav title="${h(String(scene.title || scene.id))}">${h(String(scene.title || scene.id))}</a></td><td>${worldToolIcons(scene)}</td><td><code class="worlds-path" title="${h(String(scene.path))}">${h(String(scene.path))}</code></td></tr>`).join("")}</tbody></table></div></section>`;
3101
+ return `<section class="folder-scenes" aria-labelledby="folder-scenes-title"><div class="section-title"><div><h2 id="folder-scenes-title">Scenes in this folder</h2></div></div><div class="worlds-scroll" role="region" aria-label="Scenes in this folder" tabindex="0"><table class="worlds-table scenes-table"><thead><tr><th scope="col">Scene</th><th scope="col">Tools</th><th scope="col">Path</th></tr></thead><tbody>${scenes.map((scene) => `<tr><td><a class="worlds-name" href="/worlds?scene=${enc2(String(scene.key))}" data-nav title="${h(String(scene.title || scene.id))}">${h(String(scene.title || scene.id))}</a></td><td>${worldToolIcons(scene)}</td><td><code class="worlds-path" title="${h(String(scene.path))}">${h(String(scene.path))}</code></td></tr>`).join("")}</tbody></table></div></section>`;
3047
3102
  }
3048
3103
  function worldToolIcons(world) {
3049
3104
  return worldToolsCell(world);
@@ -3080,7 +3135,7 @@ async function load() {
3080
3135
  return;
3081
3136
  }
3082
3137
  if (viewMode2() && !viewServes(section, p[1], new URLSearchParams(location.search))) {
3083
- shell(section, head(SECTIONS[section]) + viewStartPage(boot));
3138
+ shell(section, head(SECTIONS[section]) + viewStartPage(boot, section));
3084
3139
  return;
3085
3140
  }
3086
3141
  if (section === "agents") {
@@ -3148,7 +3203,7 @@ async function load() {
3148
3203
  if (viewMode2()) {
3149
3204
  current = {};
3150
3205
  shell("worlds", head("Worlds") + '<div id="worlds-page"></div>');
3151
- document.querySelector("#worlds-page").innerHTML = snapshotNote(worldsAnswer) + (worldsAnswer.snapshotAt ? worldsTable(worlds, worldTaskCounts, false, { startingData: true }) : "");
3206
+ document.querySelector("#worlds-page").innerHTML = worldsAnswer.snapshotAt ? snapshotNote(worldsAnswer) + worldsTable(worlds, worldTaskCounts, false, { startingData: true }) : viewWorldsEmpty(boot);
3152
3207
  } else if (selected && !editing) {
3153
3208
  current = { world: selected };
3154
3209
  shell("worlds", '<div id="world-workspace"></div>');
@@ -3168,9 +3223,21 @@ async function load() {
3168
3223
  }
3169
3224
  } else if (section === "tools") {
3170
3225
  current = {};
3171
- if (!viewMode2() && p[1] && toolCatalog.some((t) => t.name === p[1])) starterObservation = await starterPreview(p[1]);
3172
- if (thisGeneration !== generation) return;
3226
+ starterObservation = p[1] ? previewCache.get(p[1]) ?? {} : {};
3173
3227
  renderTools(p[1]);
3228
+ if (!viewMode2() && p[1] && toolCatalog.some((t) => t.name === p[1]) && !previewCache.has(p[1])) {
3229
+ previewFailed.delete(p[1]);
3230
+ void starterPreview(p[1]).then((data) => {
3231
+ if (thisGeneration !== generation) return;
3232
+ starterObservation = data;
3233
+ renderTools(p[1]);
3234
+ }).catch((error) => {
3235
+ previewFailed.add(p[1]);
3236
+ if (thisGeneration !== generation) return;
3237
+ renderTools(p[1]);
3238
+ notify(error instanceof Error ? error.message : String(error), true);
3239
+ });
3240
+ }
3174
3241
  } else if (section === "playgrounds" && p[1]) {
3175
3242
  const q = new URLSearchParams(location.search), asked = q.get("attempt");
3176
3243
  const [batch, worldList, askedEvidence] = await Promise.all([api(`/playgrounds/${enc2(p[1])}`), api("/worlds"), asked ? api(`/playgrounds/${enc2(p[1])}/attempts/${enc2(asked)}`) : Promise.resolve({})]);
@@ -3196,6 +3263,10 @@ async function load() {
3196
3263
  shell(section, head("Run not found") + '<p>This run is not in this workspace.</p><p><a href="/playgrounds" data-nav>Back to Runs</a></p>');
3197
3264
  return;
3198
3265
  }
3266
+ if (viewMode2() && e.status === 409) {
3267
+ shell(section, head(SECTIONS[section] ?? section) + viewStartPage(boot, section));
3268
+ return;
3269
+ }
3199
3270
  shell(section, head("Unable to load this view", button("Try again", "reload"), message) + `<p><a href="/${section}" data-nav>Back to ${h(SECTIONS[section] ?? section)}</a></p>`);
3200
3271
  notify(message, true);
3201
3272
  } finally {
@@ -3358,7 +3429,7 @@ function renderAgents(id) {
3358
3429
  if (!id) {
3359
3430
  const listHead = (actions2 = "") => boot.hosted ? `<a class="back" href="/agents">\u2190 Agents</a>${catalogHead("Connected agents", actions2)}` : catalogHead("Agents", actions2);
3360
3431
  if (viewMode2()) {
3361
- shell("agents", listHead() + snapshotNote(agentsAnswer) + (agentsAnswer.snapshotAt ? agentList(agentCatalog, void 0) : ""));
3432
+ shell("agents", listHead() + (agentsAnswer.snapshotAt && agentCatalog.length ? snapshotNote(agentsAnswer) + agentList(agentCatalog, void 0) : stateCard("No connected agents", "", '<a class="button-link" href="/agents">All agents</a>')));
3362
3433
  return;
3363
3434
  }
3364
3435
  if (new URLSearchParams(location.search).get("tab") === "group-run") {
@@ -3486,7 +3557,7 @@ var searchTimer;
3486
3557
  var shownAttempt;
3487
3558
  function renderRunsList() {
3488
3559
  const q = new URLSearchParams(location.search), get = (key) => q.get(key) ?? void 0;
3489
- shell("playgrounds", runsPage(runsList?.runs ?? [], { q: get("q"), range: get("range"), agent: get("agent"), result: get("result"), where: get("where"), commit: get("commit"), source: get("source"), target: get("target"), limit: Number(q.get("limit")) || void 0 }, boot.hosted || viewMode2() ? { emptyHtml: "Runs from <code>ancha run --on cloud</code>, from CI and the results <code>ancha run --upload</code> sends from your computer land here. Run your first test in the cloud:" } : {}));
3560
+ shell("playgrounds", runsPage(runsList?.runs ?? [], { q: get("q"), range: get("range"), agent: get("agent"), result: get("result"), where: get("where"), commit: get("commit"), source: get("source"), target: get("target"), limit: Number(q.get("limit")) || void 0 }));
3490
3561
  }
3491
3562
  function runFilterUrl(form) {
3492
3563
  const params = new URLSearchParams();
@@ -3540,12 +3611,14 @@ function starterStats(tool) {
3540
3611
  }
3541
3612
  function renderTools(selected) {
3542
3613
  renderedLocation = new URL(location.href);
3543
- const tool = toolCatalog.find((t) => t.name === selected);
3544
- if (selected && !tool) throw new Error("Tool not found.");
3614
+ const tool = staticTools.find((t) => t.name === selected);
3615
+ if (selected && !tool) {
3616
+ shell("tools", `<a class="back" data-nav href="/tools">\u2190 All tools</a>${head("Tool not found")}`);
3617
+ return;
3618
+ }
3545
3619
  if (!tool) {
3546
3620
  const filters = Object.fromEntries(new URLSearchParams(location.search));
3547
- const cliNote = boot.hosted ? '<p class="tools-cli-note">These replicas come with this workspace. To use all of them from your computer, update your CLI: <code>npm install -g @ancha-labs/cli@latest</code></p>' : "";
3548
- shell("tools", catalogHead("Tools", '<a class="button-link" href="mailto:patrick@ancha.io?subject=Tool%20request">Request a tool</a>', "Replicas of the APIs agents call. Every attempt gets its own copy, seeded with the data shown on each tool.") + cliNote + toolsCatalog(toolCatalog, filters));
3621
+ shell("tools", catalogHead("Tools", '<a class="button-link" href="mailto:patrick@ancha.io?subject=Tool%20request">Request a tool</a>') + toolsCatalog(staticTools, filters));
3549
3622
  const catalogNode = document.querySelector(".tools-catalog");
3550
3623
  const update = () => {
3551
3624
  const next = new URL(location.href);
@@ -3555,8 +3628,8 @@ function renderTools(selected) {
3555
3628
  }
3556
3629
  history.replaceState(history.state, "", next);
3557
3630
  renderedLocation = next;
3558
- catalogNode.querySelector("#tool-tiles").innerHTML = toolTiles(toolCatalog, filters);
3559
- catalogNode.querySelector(".tools-result-count").textContent = `${filteredTools(toolCatalog, filters).length} of ${toolCatalog.length} tools`;
3631
+ catalogNode.querySelector("#tool-tiles").innerHTML = toolTiles(staticTools, filters);
3632
+ catalogNode.querySelector(".tools-result-count").textContent = `${filteredTools(staticTools, filters).length} of ${staticTools.length} tools`;
3560
3633
  catalogNode.querySelectorAll("[data-tool-category]").forEach((chip) => chip.setAttribute("aria-pressed", String(chip.dataset.toolCategory === (filters.category ?? ""))));
3561
3634
  };
3562
3635
  catalogNode.querySelector("#tools-search").addEventListener("input", (event) => {
@@ -3577,8 +3650,10 @@ function renderTools(selected) {
3577
3650
  return;
3578
3651
  }
3579
3652
  const d = tool.descriptor ?? {}, endpoints = toolEndpoints(tool.coverage ?? []), connect = toolConnect(tool.name);
3580
- const preview = viewMode2() ? waitingForToolPreview() : previewCache.has(tool.name) ? toolView(starterObservation, tool.name, { ...Object.fromEntries(new URLSearchParams(location.search)), baseHref: "/tools/" + enc2(tool.name), embedded: true }) : `<p class="loading" role="status">Loading ${h(toolName(tool.name))}\u2026</p>`;
3581
- shell("tools", `<a class="back" data-nav href="/tools">\u2190 All tools</a><header class="page-head tool-hero"><div class="tool-hero-id">${toolLogo(tool.name)}<div><h1>${h(toolName(tool.name))}</h1><p class="page-meta">${h(toolCategory[tool.name] ?? "Tool")} \xB7 ${h(d.description ?? toolDescription(tool.name))}</p></div></div>${viewMode2() || !taskTool(tool.name) ? "" : `<div class="actions"><a class="button-link primary" data-nav href="/worlds/new?tool=${enc2(tool.name)}">Use in a world</a></div>`}</header><p class="tool-intro">A replica of the ${h(toolName(tool.name))} API with its own data. Every attempt starts from a fresh copy of what is below, and every call your agent makes is recorded.</p>${!viewMode2() && previewCache.has(tool.name) ? starterStats(tool.name) : ""}<div class="tool-page"><section class="tool-main"><h2 class="tool-main-title">Starter data</h2>${preview}</section><aside class="tool-aside">${connect}${endpoints}</aside></div>`);
3653
+ const starter = !viewMode2() && toolCatalog.some((t) => t.name === tool.name) && !previewFailed.has(tool.name);
3654
+ const preview = previewCache.has(tool.name) ? toolView(starterObservation, tool.name, { ...Object.fromEntries(new URLSearchParams(location.search)), baseHref: "/tools/" + enc2(tool.name), embedded: true }) : `<p class="loading" role="status">Loading ${h(toolName(tool.name))}\u2026</p>`;
3655
+ const about = facts([{ label: "Category", value: toolCategory[tool.name] ?? "Tool" }, { label: "API", value: String(d.version ?? "\u2014") }, { label: "Endpoints", value: String((tool.coverage ?? []).length) }], "Tool facts");
3656
+ shell("tools", `<a class="back" data-nav href="/tools">\u2190 All tools</a><header class="page-head tool-hero"><div class="tool-hero-id">${toolLogo(tool.name)}<div><h1>${h(toolName(tool.name))}</h1><p class="page-meta">${h(d.description ?? toolDescription(tool.name))}</p></div></div>${viewMode2() || !taskTool(tool.name) ? "" : `<div class="actions"><a class="button-link primary" data-nav href="/worlds/new?tool=${enc2(tool.name)}">Use in a world</a></div>`}</header><div class="tool-facts">${about}</div><div class="tool-page${starter ? "" : " tool-reference"}">${starter ? `<section class="tool-main"><h2 class="tool-main-title">Starter data</h2>${previewCache.has(tool.name) ? starterStats(tool.name) : ""}${preview}</section>` : ""}<aside class="tool-aside">${connect}${endpoints}</aside></div>`);
3582
3657
  document.querySelector("#endpoint-filter")?.addEventListener("input", (event) => {
3583
3658
  const query = event.target.value.trim().toLowerCase();
3584
3659
  const rows3 = [...document.querySelectorAll(".endpoint-table tbody tr")];