The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(e2e): mock skills registry catalog
Steven Enamakelf62d158e8d4c
diff --git a/app/scripts/e2e-web-session.sh b/app/scripts/e2e-web-session.shindex ac640eeeff..7a07c2d6f4 100755--- a/app/scripts/e2e-web-session.sh+++ b/app/scripts/e2e-web-session.sh@@ -165,6 +165,10 @@ if [ ! -x "$OPENHUMAN_CORE_BIN" ]; thenfiexport OPENHUMAN_CORE_TOKEN="$PW_CORE_RPC_TOKEN"+# The skills registry defaults to a public HermesHub fetch. The browser E2E+# lane must remain deterministic and offline, so serve its compact catalog+# fixture from the local mock backend instead.+export OPENHUMAN_SKILL_REGISTRY_CATALOG_URL="http://127.0.0.1:${E2E_MOCK_PORT}/skills/catalog.json"export OPENHUMAN_TELEGRAM_BOT_API_BASE="http://127.0.0.1:${E2E_MOCK_PORT}"export OPENHUMAN_COMPOSIO_DIRECT_BASE_V2="http://127.0.0.1:${E2E_MOCK_PORT}"export OPENHUMAN_COMPOSIO_DIRECT_BASE_V3="http://127.0.0.1:${E2E_MOCK_PORT}"diff --git a/scripts/mock-api/routes/integrations.mjs b/scripts/mock-api/routes/integrations.mjsindex 86606db55f..fae62f67f6 100644--- a/scripts/mock-api/routes/integrations.mjs+++ b/scripts/mock-api/routes/integrations.mjs@@ -2,10 +2,43 @@ import { json } from "../http.mjs";import { behavior, parseBehaviorJson, setMockBehavior } from "../state.mjs";import { listMockLlmModels } from "./llm/shared.mjs";+// The web E2E core must never fetch the public Hermes catalog. Keep the+// fixture small but representative: registry smoke tests need sources and+// browse results, while search tests need both `git` and `docker` matches.+const SKILL_REGISTRY_CATALOG = [+ {+ name: "git-workflow",+ description: "Inspect repositories and manage Git branches.",+ category: "development",+ source: "built-in",+ docsPath: "bundled/development/git-workflow",+ tags: ["git", "repository"],+ platforms: ["linux", "macos", "windows"],+ commands: ["git"],+ envVars: [],+ },+ {+ name: "docker-management",+ description: "Inspect and manage Docker containers.",+ category: "devops",+ source: "optional",+ docsPath: "optional/devops/devops-docker-management",+ tags: ["docker", "containers"],+ platforms: ["linux", "macos", "windows"],+ commands: ["docker"],+ envVars: [],+ },+];+export function handleIntegrations(ctx) {const { method, url, parsedBody, res } = ctx;const mockBehavior = behavior();+ if (method === "GET" && /^\/skills\/catalog\.json\/?(?:\?.*)?$/.test(url)) {+ json(res, 200, SKILL_REGISTRY_CATALOG);+ return true;+ }+// ── Telegram ───────────────────────────────────────────────if (method === "POST" && /^\/telegram\/command\/?$/.test(url)) {if (mockBehavior.telegramUnauthorized === "true") {