diff --git a/mcp/comment.ts b/mcp/comment.ts index 77c5394..2713988 100644 --- a/mcp/comment.ts +++ b/mcp/comment.ts @@ -1,6 +1,5 @@ import { Octokit } from "@octokit/rest"; import { type } from "arktype"; -import { LEAPING_INTO_ACTION_PREFIX } from "../../utils/github/leapingComment.ts"; import type { Payload } from "../external.ts"; import { agentsManifest } from "../external.ts"; import { fetchWorkflowRunInfo } from "../utils/api.ts"; @@ -9,6 +8,13 @@ import { contextualize, getMcpContext, tool } from "./shared.ts"; const PULLFROG_DIVIDER = ""; +/** + * The prefix text for the initial "leaping into action" comment. + * This is used to identify if a comment is still in its initial state + * and hasn't been updated with progress or error messages. + */ +export const LEAPING_INTO_ACTION_PREFIX = "Leaping into action"; + function buildCommentFooter(payload: Payload): string { const repoContext = parseRepoContext(); const runId = process.env.GITHUB_RUN_ID;