MCPcopy Create free account
hub / github.com/ColeMurray/background-agents / webhook-handler.test.ts

File webhook-handler.test.ts

packages/linear-bot/src/webhook-handler.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, beforeEach, describe, expect, it, vi, type Mock } from "vitest";
2import { handleAgentSessionEvent } from "./webhook-handler";
3import { buildFollowUpPrompt, buildPrompt, buildPromptContextPrompt, escapeHtml } from "./prompts";
4import type { Environment } from "@open-inspect/shared/types/environments";

Callers

nothing calls this directly

Calls 11

escapeHtmlFunction · 0.90
buildPromptFunction · 0.90
buildPromptContextPromptFunction · 0.90
buildFollowUpPromptFunction · 0.90
createFakeKVFunction · 0.90
makeLinearBotEnvFunction · 0.90
handleAgentSessionEventFunction · 0.90
expiredTokenFunction · 0.85
stubInvalidGrantFunction · 0.85
makeWebhookFunction · 0.85
controlPlaneFetchFunction · 0.70

Tested by

no test coverage detected