diff --git a/action.yml b/action.yml index b207893..ab4574e 100644 --- a/action.yml +++ b/action.yml @@ -192,6 +192,9 @@ runs: if: steps.prepare.outputs.contains_trigger == 'true' shell: bash run: | + # Install Claude Code globally + bun install -g @anthropic-ai/claude-code@1.0.59 + # Run the base-action cd ${GITHUB_ACTION_PATH}/base-action bun install diff --git a/base-action/action.yml b/base-action/action.yml index 0a44f84..1d92bcf 100644 --- a/base-action/action.yml +++ b/base-action/action.yml @@ -113,6 +113,10 @@ runs: cd ${GITHUB_ACTION_PATH} bun install + - name: Install Claude Code + shell: bash + run: npm install -g @anthropic-ai/claude-code@1.0.59 + - name: Run Claude Code Action shell: bash id: run_claude diff --git a/base-action/bun.lock b/base-action/bun.lock index 1521783..0f2bb60 100644 --- a/base-action/bun.lock +++ b/base-action/bun.lock @@ -5,7 +5,6 @@ "name": "@anthropic-ai/claude-code-base-action", "dependencies": { "@actions/core": "^1.10.1", - "@anthropic-ai/claude-code": "1.0.59", }, "devDependencies": { "@types/bun": "^1.2.12", @@ -24,39 +23,19 @@ "@actions/io": ["@actions/io@1.1.3", "", {}, "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="], - "@anthropic-ai/claude-code": ["@anthropic-ai/claude-code@1.0.59", "", { "optionalDependencies": { "@img/sharp-darwin-arm64": "^0.33.5", "@img/sharp-darwin-x64": "^0.33.5", "@img/sharp-linux-arm": "^0.33.5", "@img/sharp-linux-arm64": "^0.33.5", "@img/sharp-linux-x64": "^0.33.5", "@img/sharp-win32-x64": "^0.33.5" }, "bin": { "claude": "cli.js" } }, "sha512-/DkygJuGk9fVPkBwB2a8o9Vi2/3iDvzi5+FJ6w4sUFTR97VTR84/zCP20PyY24zVWm++X3yslyqjOzOaYmtLnw=="], - "@fastify/busboy": ["@fastify/busboy@2.1.1", "", {}, "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA=="], - "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="], + "@types/bun": ["@types/bun@1.2.19", "", { "dependencies": { "bun-types": "1.2.19" } }, "sha512-d9ZCmrH3CJ2uYKXQIUuZ/pUnTqIvLDS0SK7pFmbx8ma+ziH/FRMoAq5bYpRG7y+w1gl+HgyNZbtqgMq4W4e2Lg=="], - "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="], + "@types/node": ["@types/node@20.19.9", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-cuVNgarYWZqxRJDQHEB58GEONhOK79QVR/qYx4S7kcUObQvUwvFnYxJuuHUKm2aieN9X3yZB4LZsuYNU1Qphsw=="], - "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.0.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="], + "@types/react": ["@types/react@19.1.8", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g=="], - "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.0.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="], + "bun-types": ["bun-types@1.2.19", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-uAOTaZSPuYsWIXRpj7o56Let0g/wjihKCkeRqUBhlLVM/Bt+Fj9xTo+LhC1OV1XDaGkz4hNC80et5xgy+9KTHQ=="], - "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.0.5", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="], + "csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="], - "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="], - - "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="], - - "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="], - - "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="], - - "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="], - - "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.33.5", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="], - - "@types/bun": ["@types/bun@1.2.12", "", { "dependencies": { "bun-types": "1.2.12" } }, "sha512-lY/GQTXDGsolT/TiH72p1tuyUORuRrdV7VwOTOjDOt8uTBJQOJc5zz3ufwwDl0VBaoxotSk4LdP0hhjLJ6ypIQ=="], - - "@types/node": ["@types/node@20.17.32", "", { "dependencies": { "undici-types": "~6.19.2" } }, "sha512-zeMXFn8zQ+UkjK4ws0RiOC9EWByyW1CcVmLe+2rQocXRsGEDxUCwPEIVgpsGcLHS/P8JkT0oa3839BRABS0oPw=="], - - "bun-types": ["bun-types@1.2.12", "", { "dependencies": { "@types/node": "*" } }, "sha512-tvWMx5vPqbRXgE8WUZI94iS1xAYs8bkqESR9cxBB1Wi+urvfTrF1uzuDgBHFAdO0+d2lmsbG3HmeKMvUyj6pWA=="], - - "prettier": ["prettier@3.5.3", "", { "bin": "bin/prettier.cjs" }, "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw=="], + "prettier": ["prettier@3.5.3", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw=="], "tunnel": ["tunnel@0.0.6", "", {}, "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="], @@ -64,6 +43,6 @@ "undici": ["undici@5.29.0", "", { "dependencies": { "@fastify/busboy": "^2.0.0" } }, "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg=="], - "undici-types": ["undici-types@6.19.8", "", {}, "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="], + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], } } diff --git a/base-action/package.json b/base-action/package.json index b5d5cef..eb9165e 100644 --- a/base-action/package.json +++ b/base-action/package.json @@ -10,8 +10,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@actions/core": "^1.10.1", - "@anthropic-ai/claude-code": "1.0.59" + "@actions/core": "^1.10.1" }, "devDependencies": { "@types/bun": "^1.2.12", diff --git a/base-action/src/run-claude.ts b/base-action/src/run-claude.ts index 7f8e186..70e38d7 100644 --- a/base-action/src/run-claude.ts +++ b/base-action/src/run-claude.ts @@ -1,12 +1,15 @@ import * as core from "@actions/core"; -import { writeFile } from "fs/promises"; -import { - query, - type SDKMessage, - type Options, -} from "@anthropic-ai/claude-code"; +import { exec } from "child_process"; +import { promisify } from "util"; +import { unlink, writeFile, stat } from "fs/promises"; +import { createWriteStream } from "fs"; +import { spawn } from "child_process"; +const execAsync = promisify(exec); + +const PIPE_PATH = `${process.env.RUNNER_TEMP}/claude_prompt_pipe`; const EXECUTION_FILE = `${process.env.RUNNER_TEMP}/claude-execution-output.json`; +const BASE_ARGS = ["-p", "--verbose", "--output-format", "stream-json"]; export type ClaudeOptions = { allowedTools?: string; @@ -21,7 +24,13 @@ export type ClaudeOptions = { model?: string; }; -export function parseCustomEnvVars(claudeEnv?: string): Record { +type PreparedConfig = { + claudeArgs: string[]; + promptPath: string; + env: Record; +}; + +function parseCustomEnvVars(claudeEnv?: string): Record { if (!claudeEnv || claudeEnv.trim() === "") { return {}; } @@ -53,57 +62,18 @@ export function parseCustomEnvVars(claudeEnv?: string): Record { return customEnv; } -export function parseTools(toolsString?: string): string[] | undefined { - if (!toolsString || toolsString.trim() === "") { - return undefined; - } - return toolsString - .split(",") - .map((tool) => tool.trim()) - .filter(Boolean); -} - -export function parseMcpConfig( - mcpConfigString?: string, -): Record | undefined { - if (!mcpConfigString || mcpConfigString.trim() === "") { - return undefined; - } - try { - return JSON.parse(mcpConfigString); - } catch (e) { - core.warning(`Failed to parse MCP config: ${e}`); - return undefined; - } -} - -export async function runClaude(promptPath: string, options: ClaudeOptions) { - // Read prompt from file - const prompt = await Bun.file(promptPath).text(); - - // Parse options - const customEnv = parseCustomEnvVars(options.claudeEnv); - - // Apply custom environment variables - for (const [key, value] of Object.entries(customEnv)) { - process.env[key] = value; - } - - // Set up SDK options - const sdkOptions: Options = { - cwd: process.cwd(), - // Use bun as the executable since we're in a Bun environment - executable: "bun", - }; +export function prepareRunConfig( + promptPath: string, + options: ClaudeOptions, +): PreparedConfig { + const claudeArgs = [...BASE_ARGS]; if (options.allowedTools) { - sdkOptions.allowedTools = parseTools(options.allowedTools); + claudeArgs.push("--allowedTools", options.allowedTools); } - if (options.disallowedTools) { - sdkOptions.disallowedTools = parseTools(options.disallowedTools); + claudeArgs.push("--disallowedTools", options.disallowedTools); } - if (options.maxTurns) { const maxTurnsNum = parseInt(options.maxTurns, 10); if (isNaN(maxTurnsNum) || maxTurnsNum <= 0) { @@ -111,34 +81,23 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) { `maxTurns must be a positive number, got: ${options.maxTurns}`, ); } - sdkOptions.maxTurns = maxTurnsNum; + claudeArgs.push("--max-turns", options.maxTurns); } - if (options.mcpConfig) { - const mcpConfig = parseMcpConfig(options.mcpConfig); - if (mcpConfig?.mcpServers) { - sdkOptions.mcpServers = mcpConfig.mcpServers; - } + claudeArgs.push("--mcp-config", options.mcpConfig); } - if (options.systemPrompt) { - sdkOptions.customSystemPrompt = options.systemPrompt; + claudeArgs.push("--system-prompt", options.systemPrompt); } - if (options.appendSystemPrompt) { - sdkOptions.appendSystemPrompt = options.appendSystemPrompt; + claudeArgs.push("--append-system-prompt", options.appendSystemPrompt); } - if (options.fallbackModel) { - sdkOptions.fallbackModel = options.fallbackModel; + claudeArgs.push("--fallback-model", options.fallbackModel); } - if (options.model) { - sdkOptions.model = options.model; + claudeArgs.push("--model", options.model); } - - // Set up timeout - let timeoutMs = 10 * 60 * 1000; // Default 10 minutes if (options.timeoutMinutes) { const timeoutMinutesNum = parseInt(options.timeoutMinutes, 10); if (isNaN(timeoutMinutesNum) || timeoutMinutesNum <= 0) { @@ -146,7 +105,126 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) { `timeoutMinutes must be a positive number, got: ${options.timeoutMinutes}`, ); } - timeoutMs = timeoutMinutesNum * 60 * 1000; + } + + // Parse custom environment variables + const customEnv = parseCustomEnvVars(options.claudeEnv); + + return { + claudeArgs, + promptPath, + env: customEnv, + }; +} + +export async function runClaude(promptPath: string, options: ClaudeOptions) { + const config = prepareRunConfig(promptPath, options); + + // Create a named pipe + try { + await unlink(PIPE_PATH); + } catch (e) { + // Ignore if file doesn't exist + } + + // Create the named pipe + await execAsync(`mkfifo "${PIPE_PATH}"`); + + // Log prompt file size + let promptSize = "unknown"; + try { + const stats = await stat(config.promptPath); + promptSize = stats.size.toString(); + } catch (e) { + // Ignore error + } + + console.log(`Prompt file size: ${promptSize} bytes`); + + // Log custom environment variables if any + if (Object.keys(config.env).length > 0) { + const envKeys = Object.keys(config.env).join(", "); + console.log(`Custom environment variables: ${envKeys}`); + } + + // Output to console + console.log(`Running Claude with prompt from file: ${config.promptPath}`); + + // Start sending prompt to pipe in background + const catProcess = spawn("cat", [config.promptPath], { + stdio: ["ignore", "pipe", "inherit"], + }); + const pipeStream = createWriteStream(PIPE_PATH); + catProcess.stdout.pipe(pipeStream); + + catProcess.on("error", (error) => { + console.error("Error reading prompt file:", error); + pipeStream.destroy(); + }); + + const claudeProcess = spawn("claude", config.claudeArgs, { + stdio: ["pipe", "pipe", "inherit"], + env: { + ...process.env, + ...config.env, + }, + }); + + // Handle Claude process errors + claudeProcess.on("error", (error) => { + console.error("Error spawning Claude process:", error); + pipeStream.destroy(); + }); + + // Capture output for parsing execution metrics + let output = ""; + claudeProcess.stdout.on("data", (data) => { + const text = data.toString(); + + // Try to parse as JSON and pretty print if it's on a single line + const lines = text.split("\n"); + lines.forEach((line: string, index: number) => { + if (line.trim() === "") return; + + try { + // Check if this line is a JSON object + const parsed = JSON.parse(line); + const prettyJson = JSON.stringify(parsed, null, 2); + process.stdout.write(prettyJson); + if (index < lines.length - 1 || text.endsWith("\n")) { + process.stdout.write("\n"); + } + } catch (e) { + // Not a JSON object, print as is + process.stdout.write(line); + if (index < lines.length - 1 || text.endsWith("\n")) { + process.stdout.write("\n"); + } + } + }); + + output += text; + }); + + // Handle stdout errors + claudeProcess.stdout.on("error", (error) => { + console.error("Error reading Claude stdout:", error); + }); + + // Pipe from named pipe to Claude + const pipeProcess = spawn("cat", [PIPE_PATH]); + pipeProcess.stdout.pipe(claudeProcess.stdin); + + // Handle pipe process errors + pipeProcess.on("error", (error) => { + console.error("Error reading from named pipe:", error); + claudeProcess.kill("SIGTERM"); + }); + + // Wait for Claude to finish with timeout + let timeoutMs = 10 * 60 * 1000; // Default 10 minutes + if (options.timeoutMinutes) { + timeoutMs = parseInt(options.timeoutMinutes, 10) * 60 * 1000; } else if (process.env.INPUT_TIMEOUT_MINUTES) { const envTimeout = parseInt(process.env.INPUT_TIMEOUT_MINUTES, 10); if (isNaN(envTimeout) || envTimeout <= 0) { @@ -156,76 +234,98 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) { } timeoutMs = envTimeout * 60 * 1000; } + const exitCode = await new Promise((resolve) => { + let resolved = false; - // Create abort controller for timeout - const abortController = new AbortController(); - const timeoutId = setTimeout(() => { - console.error(`Claude process timed out after ${timeoutMs / 1000} seconds`); - abortController.abort(); - }, timeoutMs); + // Set a timeout for the process + const timeoutId = setTimeout(() => { + if (!resolved) { + console.error( + `Claude process timed out after ${timeoutMs / 1000} seconds`, + ); + claudeProcess.kill("SIGTERM"); + // Give it 5 seconds to terminate gracefully, then force kill + setTimeout(() => { + try { + claudeProcess.kill("SIGKILL"); + } catch (e) { + // Process may already be dead + } + }, 5000); + resolved = true; + resolve(124); // Standard timeout exit code + } + }, timeoutMs); - sdkOptions.abortController = abortController; + claudeProcess.on("close", (code) => { + if (!resolved) { + clearTimeout(timeoutId); + resolved = true; + resolve(code || 0); + } + }); - // Add stderr handler to capture CLI errors - sdkOptions.stderr = (data: string) => { - console.error("Claude CLI stderr:", data); - }; + claudeProcess.on("error", (error) => { + if (!resolved) { + console.error("Claude process error:", error); + clearTimeout(timeoutId); + resolved = true; + resolve(1); + } + }); + }); - console.log(`Running Claude with prompt from file: ${promptPath}`); - - // Log custom environment variables if any - if (Object.keys(customEnv).length > 0) { - const envKeys = Object.keys(customEnv).join(", "); - console.log(`Custom environment variables: ${envKeys}`); + // Clean up processes + try { + catProcess.kill("SIGTERM"); + } catch (e) { + // Process may already be dead + } + try { + pipeProcess.kill("SIGTERM"); + } catch (e) { + // Process may already be dead } - const messages: SDKMessage[] = []; - let executionFailed = false; - + // Clean up pipe file try { - // Execute the query - for await (const message of query({ - prompt, - abortController, - options: sdkOptions, - })) { - messages.push(message); + await unlink(PIPE_PATH); + } catch (e) { + // Ignore errors during cleanup + } - // Pretty print the message to stdout - const prettyJson = JSON.stringify(message, null, 2); - console.log(prettyJson); + // Set conclusion based on exit code + if (exitCode === 0) { + // Try to process the output and save execution metrics + try { + await writeFile("output.txt", output); - // Check if execution failed - if (message.type === "result" && message.is_error) { - executionFailed = true; + // Process output.txt into JSON and save to execution file + const { stdout: jsonOutput } = await execAsync("jq -s '.' output.txt"); + await writeFile(EXECUTION_FILE, jsonOutput); + + console.log(`Log saved to ${EXECUTION_FILE}`); + } catch (e) { + core.warning(`Failed to process output for execution metrics: ${e}`); + } + + core.setOutput("conclusion", "success"); + core.setOutput("execution_file", EXECUTION_FILE); + } else { + core.setOutput("conclusion", "failure"); + + // Still try to save execution file if we have output + if (output) { + try { + await writeFile("output.txt", output); + const { stdout: jsonOutput } = await execAsync("jq -s '.' output.txt"); + await writeFile(EXECUTION_FILE, jsonOutput); + core.setOutput("execution_file", EXECUTION_FILE); + } catch (e) { + // Ignore errors when processing output during failure } } - } catch (error) { - console.error("Error during Claude execution:", error); - executionFailed = true; - // Add error to messages if it's not an abort - if (error instanceof Error && error.name !== "AbortError") { - throw error; - } - } finally { - clearTimeout(timeoutId); - } - - // Save execution output - try { - await writeFile(EXECUTION_FILE, JSON.stringify(messages, null, 2)); - console.log(`Log saved to ${EXECUTION_FILE}`); - core.setOutput("execution_file", EXECUTION_FILE); - } catch (e) { - core.warning(`Failed to save execution file: ${e}`); - } - - // Set conclusion - if (executionFailed) { - core.setOutput("conclusion", "failure"); - process.exit(1); - } else { - core.setOutput("conclusion", "success"); + process.exit(exitCode); } } diff --git a/base-action/test/run-claude.test.ts b/base-action/test/run-claude.test.ts index 9b2054a..7dcfb18 100644 --- a/base-action/test/run-claude.test.ts +++ b/base-action/test/run-claude.test.ts @@ -1,260 +1,297 @@ #!/usr/bin/env bun -import { - describe, - test, - expect, - beforeAll, - afterAll, - afterEach, -} from "bun:test"; -import { - runClaude, - type ClaudeOptions, - parseCustomEnvVars, - parseTools, - parseMcpConfig, -} from "../src/run-claude"; -import { writeFile, unlink } from "fs/promises"; -import { join } from "path"; +import { describe, test, expect } from "bun:test"; +import { prepareRunConfig, type ClaudeOptions } from "../src/run-claude"; -// Since we can't easily mock the SDK, let's focus on testing input validation -// and error cases that happen before the SDK is called +describe("prepareRunConfig", () => { + test("should prepare config with basic arguments", () => { + const options: ClaudeOptions = {}; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); -describe("runClaude input validation", () => { - const testPromptPath = join( - process.env.RUNNER_TEMP || "/tmp", - "test-prompt-claude.txt", - ); - - // Create a test prompt file before tests - beforeAll(async () => { - await writeFile(testPromptPath, "Test prompt content"); + expect(prepared.claudeArgs.slice(0, 4)).toEqual([ + "-p", + "--verbose", + "--output-format", + "stream-json", + ]); }); - // Clean up after tests - afterAll(async () => { - try { - await unlink(testPromptPath); - } catch (e) { - // Ignore if file doesn't exist - } + test("should include promptPath", () => { + const options: ClaudeOptions = {}; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.promptPath).toBe("/tmp/test-prompt.txt"); + }); + + test("should include allowed tools in command arguments", () => { + const options: ClaudeOptions = { + allowedTools: "Bash,Read", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--allowedTools"); + expect(prepared.claudeArgs).toContain("Bash,Read"); + }); + + test("should include disallowed tools in command arguments", () => { + const options: ClaudeOptions = { + disallowedTools: "Bash,Read", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--disallowedTools"); + expect(prepared.claudeArgs).toContain("Bash,Read"); + }); + + test("should include max turns in command arguments", () => { + const options: ClaudeOptions = { + maxTurns: "5", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--max-turns"); + expect(prepared.claudeArgs).toContain("5"); + }); + + test("should include mcp config in command arguments", () => { + const options: ClaudeOptions = { + mcpConfig: "/path/to/mcp-config.json", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--mcp-config"); + expect(prepared.claudeArgs).toContain("/path/to/mcp-config.json"); + }); + + test("should include system prompt in command arguments", () => { + const options: ClaudeOptions = { + systemPrompt: "You are a senior backend engineer.", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--system-prompt"); + expect(prepared.claudeArgs).toContain("You are a senior backend engineer."); + }); + + test("should include append system prompt in command arguments", () => { + const options: ClaudeOptions = { + appendSystemPrompt: + "After writing code, be sure to code review yourself.", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--append-system-prompt"); + expect(prepared.claudeArgs).toContain( + "After writing code, be sure to code review yourself.", + ); + }); + + test("should include fallback model in command arguments", () => { + const options: ClaudeOptions = { + fallbackModel: "claude-sonnet-4-20250514", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toContain("--fallback-model"); + expect(prepared.claudeArgs).toContain("claude-sonnet-4-20250514"); + }); + + test("should use provided prompt path", () => { + const options: ClaudeOptions = {}; + const prepared = prepareRunConfig("/custom/prompt/path.txt", options); + + expect(prepared.promptPath).toBe("/custom/prompt/path.txt"); + }); + + test("should not include optional arguments when not set", () => { + const options: ClaudeOptions = {}; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).not.toContain("--allowedTools"); + expect(prepared.claudeArgs).not.toContain("--disallowedTools"); + expect(prepared.claudeArgs).not.toContain("--max-turns"); + expect(prepared.claudeArgs).not.toContain("--mcp-config"); + expect(prepared.claudeArgs).not.toContain("--system-prompt"); + expect(prepared.claudeArgs).not.toContain("--append-system-prompt"); + expect(prepared.claudeArgs).not.toContain("--fallback-model"); + }); + + test("should preserve order of claude arguments", () => { + const options: ClaudeOptions = { + allowedTools: "Bash,Read", + maxTurns: "3", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toEqual([ + "-p", + "--verbose", + "--output-format", + "stream-json", + "--allowedTools", + "Bash,Read", + "--max-turns", + "3", + ]); + }); + + test("should preserve order with all options including fallback model", () => { + const options: ClaudeOptions = { + allowedTools: "Bash,Read", + disallowedTools: "Write", + maxTurns: "3", + mcpConfig: "/path/to/config.json", + systemPrompt: "You are a helpful assistant", + appendSystemPrompt: "Be concise", + fallbackModel: "claude-sonnet-4-20250514", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + + expect(prepared.claudeArgs).toEqual([ + "-p", + "--verbose", + "--output-format", + "stream-json", + "--allowedTools", + "Bash,Read", + "--disallowedTools", + "Write", + "--max-turns", + "3", + "--mcp-config", + "/path/to/config.json", + "--system-prompt", + "You are a helpful assistant", + "--append-system-prompt", + "Be concise", + "--fallback-model", + "claude-sonnet-4-20250514", + ]); }); describe("maxTurns validation", () => { - test("should throw error for non-numeric maxTurns", async () => { + test("should accept valid maxTurns value", () => { + const options: ClaudeOptions = { maxTurns: "5" }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.claudeArgs).toContain("--max-turns"); + expect(prepared.claudeArgs).toContain("5"); + }); + + test("should throw error for non-numeric maxTurns", () => { const options: ClaudeOptions = { maxTurns: "abc" }; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( + expect(() => prepareRunConfig("/tmp/test-prompt.txt", options)).toThrow( "maxTurns must be a positive number, got: abc", ); }); - test("should throw error for negative maxTurns", async () => { + test("should throw error for negative maxTurns", () => { const options: ClaudeOptions = { maxTurns: "-1" }; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( + expect(() => prepareRunConfig("/tmp/test-prompt.txt", options)).toThrow( "maxTurns must be a positive number, got: -1", ); }); - test("should throw error for zero maxTurns", async () => { + test("should throw error for zero maxTurns", () => { const options: ClaudeOptions = { maxTurns: "0" }; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( + expect(() => prepareRunConfig("/tmp/test-prompt.txt", options)).toThrow( "maxTurns must be a positive number, got: 0", ); }); }); describe("timeoutMinutes validation", () => { - test("should throw error for non-numeric timeoutMinutes", async () => { + test("should accept valid timeoutMinutes value", () => { + const options: ClaudeOptions = { timeoutMinutes: "15" }; + expect(() => + prepareRunConfig("/tmp/test-prompt.txt", options), + ).not.toThrow(); + }); + + test("should throw error for non-numeric timeoutMinutes", () => { const options: ClaudeOptions = { timeoutMinutes: "abc" }; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( + expect(() => prepareRunConfig("/tmp/test-prompt.txt", options)).toThrow( "timeoutMinutes must be a positive number, got: abc", ); }); - test("should throw error for negative timeoutMinutes", async () => { + test("should throw error for negative timeoutMinutes", () => { const options: ClaudeOptions = { timeoutMinutes: "-5" }; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( + expect(() => prepareRunConfig("/tmp/test-prompt.txt", options)).toThrow( "timeoutMinutes must be a positive number, got: -5", ); }); - test("should throw error for zero timeoutMinutes", async () => { + test("should throw error for zero timeoutMinutes", () => { const options: ClaudeOptions = { timeoutMinutes: "0" }; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( + expect(() => prepareRunConfig("/tmp/test-prompt.txt", options)).toThrow( "timeoutMinutes must be a positive number, got: 0", ); }); }); - describe("environment variable validation from INPUT_TIMEOUT_MINUTES", () => { - const originalEnv = process.env.INPUT_TIMEOUT_MINUTES; - - afterEach(() => { - // Restore original value - if (originalEnv !== undefined) { - process.env.INPUT_TIMEOUT_MINUTES = originalEnv; - } else { - delete process.env.INPUT_TIMEOUT_MINUTES; - } + describe("custom environment variables", () => { + test("should parse empty claudeEnv correctly", () => { + const options: ClaudeOptions = { claudeEnv: "" }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({}); }); - test("should throw error for invalid INPUT_TIMEOUT_MINUTES", async () => { - process.env.INPUT_TIMEOUT_MINUTES = "invalid"; + test("should parse single environment variable", () => { + const options: ClaudeOptions = { claudeEnv: "API_KEY: secret123" }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({ API_KEY: "secret123" }); + }); + + test("should parse multiple environment variables", () => { + const options: ClaudeOptions = { + claudeEnv: "API_KEY: secret123\nDEBUG: true\nUSER: testuser", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({ + API_KEY: "secret123", + DEBUG: "true", + USER: "testuser", + }); + }); + + test("should handle environment variables with spaces around values", () => { + const options: ClaudeOptions = { + claudeEnv: "API_KEY: secret123 \n DEBUG : true ", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({ + API_KEY: "secret123", + DEBUG: "true", + }); + }); + + test("should skip empty lines and comments", () => { + const options: ClaudeOptions = { + claudeEnv: + "API_KEY: secret123\n\n# This is a comment\nDEBUG: true\n# Another comment", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({ + API_KEY: "secret123", + DEBUG: "true", + }); + }); + + test("should skip lines without colons", () => { + const options: ClaudeOptions = { + claudeEnv: "API_KEY: secret123\nINVALID_LINE\nDEBUG: true", + }; + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({ + API_KEY: "secret123", + DEBUG: "true", + }); + }); + + test("should handle undefined claudeEnv", () => { const options: ClaudeOptions = {}; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( - "INPUT_TIMEOUT_MINUTES must be a positive number, got: invalid", - ); + const prepared = prepareRunConfig("/tmp/test-prompt.txt", options); + expect(prepared.env).toEqual({}); }); - - test("should throw error for zero INPUT_TIMEOUT_MINUTES", async () => { - process.env.INPUT_TIMEOUT_MINUTES = "0"; - const options: ClaudeOptions = {}; - await expect(runClaude(testPromptPath, options)).rejects.toThrow( - "INPUT_TIMEOUT_MINUTES must be a positive number, got: 0", - ); - }); - }); - - // Note: We can't easily test the full execution flow without either: - // 1. Mocking the SDK (which seems difficult with Bun's current mocking capabilities) - // 2. Having a valid API key and actually calling the API (not suitable for unit tests) - // 3. Refactoring the code to be more testable (e.g., dependency injection) - - // For now, we're testing what we can: input validation that happens before the SDK call -}); - -describe("parseCustomEnvVars", () => { - test("should parse empty string correctly", () => { - expect(parseCustomEnvVars("")).toEqual({}); - }); - - test("should parse single environment variable", () => { - expect(parseCustomEnvVars("API_KEY: secret123")).toEqual({ - API_KEY: "secret123", - }); - }); - - test("should parse multiple environment variables", () => { - const input = "API_KEY: secret123\nDEBUG: true\nUSER: testuser"; - expect(parseCustomEnvVars(input)).toEqual({ - API_KEY: "secret123", - DEBUG: "true", - USER: "testuser", - }); - }); - - test("should handle environment variables with spaces around values", () => { - const input = "API_KEY: secret123 \n DEBUG : true "; - expect(parseCustomEnvVars(input)).toEqual({ - API_KEY: "secret123", - DEBUG: "true", - }); - }); - - test("should skip empty lines and comments", () => { - const input = - "API_KEY: secret123\n\n# This is a comment\nDEBUG: true\n# Another comment"; - expect(parseCustomEnvVars(input)).toEqual({ - API_KEY: "secret123", - DEBUG: "true", - }); - }); - - test("should skip lines without colons", () => { - const input = "API_KEY: secret123\nINVALID_LINE\nDEBUG: true"; - expect(parseCustomEnvVars(input)).toEqual({ - API_KEY: "secret123", - DEBUG: "true", - }); - }); - - test("should handle undefined input", () => { - expect(parseCustomEnvVars(undefined)).toEqual({}); - }); - - test("should handle whitespace-only input", () => { - expect(parseCustomEnvVars(" \n \t ")).toEqual({}); - }); -}); - -describe("parseTools", () => { - test("should return undefined for empty string", () => { - expect(parseTools("")).toBeUndefined(); - }); - - test("should return undefined for whitespace-only string", () => { - expect(parseTools(" \t ")).toBeUndefined(); - }); - - test("should return undefined for undefined input", () => { - expect(parseTools(undefined)).toBeUndefined(); - }); - - test("should parse single tool", () => { - expect(parseTools("Bash")).toEqual(["Bash"]); - }); - - test("should parse multiple tools", () => { - expect(parseTools("Bash,Read,Write")).toEqual(["Bash", "Read", "Write"]); - }); - - test("should trim whitespace around tools", () => { - expect(parseTools(" Bash , Read , Write ")).toEqual([ - "Bash", - "Read", - "Write", - ]); - }); - - test("should filter out empty tool names", () => { - expect(parseTools("Bash,,Read,,,Write")).toEqual(["Bash", "Read", "Write"]); - }); -}); - -describe("parseMcpConfig", () => { - test("should return undefined for empty string", () => { - expect(parseMcpConfig("")).toBeUndefined(); - }); - - test("should return undefined for whitespace-only string", () => { - expect(parseMcpConfig(" \t ")).toBeUndefined(); - }); - - test("should return undefined for undefined input", () => { - expect(parseMcpConfig(undefined)).toBeUndefined(); - }); - - test("should parse valid JSON", () => { - const config = { "test-server": { command: "test", args: ["--test"] } }; - expect(parseMcpConfig(JSON.stringify(config))).toEqual(config); - }); - - test("should return undefined for invalid JSON", () => { - // Check console warning is logged - const originalWarn = console.warn; - const warnings: string[] = []; - console.warn = (msg: string) => warnings.push(msg); - - expect(parseMcpConfig("{ invalid json")).toBeUndefined(); - - console.warn = originalWarn; - }); - - test("should parse complex MCP config", () => { - const config = { - "github-mcp": { - command: "npx", - args: ["-y", "@modelcontextprotocol/server-github"], - env: { - GITHUB_TOKEN: "test-token", - }, - }, - "filesystem-mcp": { - command: "npx", - args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"], - }, - }; - expect(parseMcpConfig(JSON.stringify(config))).toEqual(config); }); }); diff --git a/bun.lock b/bun.lock index 9620cfd..805acbc 100644 --- a/bun.lock +++ b/bun.lock @@ -6,7 +6,6 @@ "dependencies": { "@actions/core": "^1.10.1", "@actions/github": "^6.0.1", - "@anthropic-ai/claude-code": "1.0.59", "@modelcontextprotocol/sdk": "^1.11.0", "@octokit/graphql": "^8.2.2", "@octokit/rest": "^21.1.1", @@ -34,43 +33,19 @@ "@actions/io": ["@actions/io@1.1.3", "", {}, "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="], - "@anthropic-ai/claude-code": ["@anthropic-ai/claude-code@1.0.59", "", { "optionalDependencies": { "@img/sharp-darwin-arm64": "^0.33.5", "@img/sharp-darwin-x64": "^0.33.5", "@img/sharp-linux-arm": "^0.33.5", "@img/sharp-linux-arm64": "^0.33.5", "@img/sharp-linux-x64": "^0.33.5", "@img/sharp-win32-x64": "^0.33.5" }, "bin": { "claude": "cli.js" } }, "sha512-/DkygJuGk9fVPkBwB2a8o9Vi2/3iDvzi5+FJ6w4sUFTR97VTR84/zCP20PyY24zVWm++X3yslyqjOzOaYmtLnw=="], - "@fastify/busboy": ["@fastify/busboy@2.1.1", "", {}, "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA=="], - "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="], - - "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="], - - "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.0.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="], - - "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.0.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="], - - "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.0.5", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="], - - "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="], - - "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="], - - "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="], - - "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="], - - "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="], - - "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.33.5", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="], - - "@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.11.0", "", { "dependencies": { "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.3", "eventsource": "^3.0.2", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-k/1pb70eD638anoi0e8wUGAlbMJXyvdV4p62Ko+EZ7eBe1xMx8Uhak1R5DgfoofsK5IBBnRwsYGTaLZl+6/+RQ=="], + "@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.16.0", "", { "dependencies": { "ajv": "^6.12.6", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-8ofX7gkZcLj9H9rSd50mCgm3SSF8C7XoclxJuLoV0Cz3rEQ1tv9MZRYYvJtm9n1BiEQQMzSmE/w2AEkNacLYfg=="], "@octokit/auth-token": ["@octokit/auth-token@4.0.0", "", {}, "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA=="], - "@octokit/core": ["@octokit/core@5.2.1", "", { "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", "@octokit/request": "^8.4.1", "@octokit/request-error": "^5.1.1", "@octokit/types": "^13.0.0", "before-after-hook": "^2.2.0", "universal-user-agent": "^6.0.0" } }, "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ=="], + "@octokit/core": ["@octokit/core@5.2.2", "", { "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", "@octokit/request": "^8.4.1", "@octokit/request-error": "^5.1.1", "@octokit/types": "^13.0.0", "before-after-hook": "^2.2.0", "universal-user-agent": "^6.0.0" } }, "sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg=="], "@octokit/endpoint": ["@octokit/endpoint@9.0.6", "", { "dependencies": { "@octokit/types": "^13.1.0", "universal-user-agent": "^6.0.0" } }, "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw=="], "@octokit/graphql": ["@octokit/graphql@8.2.2", "", { "dependencies": { "@octokit/request": "^9.2.3", "@octokit/types": "^14.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-Yi8hcoqsrXGdt0yObxbebHXFOiUA+2v3n53epuOg1QUgOB6c4XzvisBNVXJSl8RYA5KrDuSL2yq9Qmqe5N0ryA=="], - "@octokit/openapi-types": ["@octokit/openapi-types@25.0.0", "", {}, "sha512-FZvktFu7HfOIJf2BScLKIEYjDsw6RKc7rBJCdvCTfKsVnx2GEB/Nbzjr29DUdb7vQhlzS/j8qDzdditP0OC6aw=="], + "@octokit/openapi-types": ["@octokit/openapi-types@25.1.0", "", {}, "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA=="], "@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@9.2.2", "", { "dependencies": { "@octokit/types": "^12.6.0" }, "peerDependencies": { "@octokit/core": "5" } }, "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ=="], @@ -84,18 +59,20 @@ "@octokit/rest": ["@octokit/rest@21.1.1", "", { "dependencies": { "@octokit/core": "^6.1.4", "@octokit/plugin-paginate-rest": "^11.4.2", "@octokit/plugin-request-log": "^5.3.1", "@octokit/plugin-rest-endpoint-methods": "^13.3.0" } }, "sha512-sTQV7va0IUVZcntzy1q3QqPm/r8rWtDCqpRAmb8eXXnKkjoQEtFe3Nt5GTVsHft+R6jJoHeSiVLcgcvhtue/rg=="], - "@octokit/types": ["@octokit/types@14.0.0", "", { "dependencies": { "@octokit/openapi-types": "^25.0.0" } }, "sha512-VVmZP0lEhbo2O1pdq63gZFiGCKkm8PPp8AUOijlwPO6hojEVjspA0MWKP7E4hbvGxzFKNqKr6p0IYtOH/Wf/zA=="], + "@octokit/types": ["@octokit/types@14.1.0", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="], "@octokit/webhooks-types": ["@octokit/webhooks-types@7.6.1", "", {}, "sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw=="], "@types/bun": ["@types/bun@1.2.11", "", { "dependencies": { "bun-types": "1.2.11" } }, "sha512-ZLbbI91EmmGwlWTRWuV6J19IUiUC5YQ3TCEuSHI3usIP75kuoA8/0PVF+LTrbEnVc8JIhpElWOxv1ocI1fJBbw=="], - "@types/node": ["@types/node@20.17.44", "", { "dependencies": { "undici-types": "~6.19.2" } }, "sha512-50sE4Ibb4BgUMxHrcJQSAU0Fu7fLcTdwcXwRzEF7wnVMWvImFLg2Rxc7SW0vpvaJm4wvhoWEZaQiPpBpocZiUA=="], + "@types/node": ["@types/node@20.19.9", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-cuVNgarYWZqxRJDQHEB58GEONhOK79QVR/qYx4S7kcUObQvUwvFnYxJuuHUKm2aieN9X3yZB4LZsuYNU1Qphsw=="], "@types/node-fetch": ["@types/node-fetch@2.6.12", "", { "dependencies": { "@types/node": "*", "form-data": "^4.0.0" } }, "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA=="], "accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="], + "ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="], + "asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="], "before-after-hook": ["before-after-hook@2.2.3", "", {}, "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="], @@ -126,7 +103,7 @@ "data-uri-to-buffer": ["data-uri-to-buffer@4.0.1", "", {}, "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A=="], - "debug": ["debug@4.4.0", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="], + "debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], "delayed-stream": ["delayed-stream@1.0.0", "", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="], @@ -152,21 +129,25 @@ "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="], - "eventsource": ["eventsource@3.0.6", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-l19WpE2m9hSuyP06+FbuUUf1G+R0SFLrtQfbRb9PRr+oimOfxQhgGCbVaXg5IvZyyTThJsxh6L/srkMiCeBPDA=="], + "eventsource": ["eventsource@3.0.7", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="], - "eventsource-parser": ["eventsource-parser@3.0.1", "", {}, "sha512-VARTJ9CYeuQYb0pZEPbzi740OWFgpHe7AYJ2WFZVnUDUQp5Dk2yJUgF36YsZ81cOyxT0QxmXD2EQpapAouzWVA=="], + "eventsource-parser": ["eventsource-parser@3.0.3", "", {}, "sha512-nVpZkTMM9rF6AQ9gPJpFsNAMt48wIzB5TQgiTLdHiuO8XEDhUgZEhqKlZWXbIzo9VmJ/HvysHqEaVeD5v9TPvA=="], "express": ["express@5.1.0", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.0", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA=="], - "express-rate-limit": ["express-rate-limit@7.5.0", "", { "peerDependencies": { "express": "^4.11 || 5 || ^5.0.0-beta.1" } }, "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg=="], + "express-rate-limit": ["express-rate-limit@7.5.1", "", { "peerDependencies": { "express": ">= 4.11" } }, "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw=="], "fast-content-type-parse": ["fast-content-type-parse@2.0.1", "", {}, "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q=="], + "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], + + "fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="], + "fetch-blob": ["fetch-blob@3.2.0", "", { "dependencies": { "node-domexception": "^1.0.0", "web-streams-polyfill": "^3.0.3" } }, "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ=="], "finalhandler": ["finalhandler@2.1.0", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q=="], - "form-data": ["form-data@4.0.2", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "mime-types": "^2.1.12" } }, "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w=="], + "form-data": ["form-data@4.0.4", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "hasown": "^2.0.2", "mime-types": "^2.1.12" } }, "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow=="], "formdata-polyfill": ["formdata-polyfill@4.0.10", "", { "dependencies": { "fetch-blob": "^3.1.2" } }, "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g=="], @@ -200,6 +181,8 @@ "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + "json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="], + "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], "media-typer": ["media-typer@1.1.0", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="], @@ -238,6 +221,8 @@ "proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="], + "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="], + "qs": ["qs@6.14.0", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w=="], "range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="], @@ -280,12 +265,14 @@ "undici": ["undici@5.29.0", "", { "dependencies": { "@fastify/busboy": "^2.0.0" } }, "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg=="], - "undici-types": ["undici-types@6.19.8", "", {}, "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="], + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], - "universal-user-agent": ["universal-user-agent@7.0.2", "", {}, "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="], + "universal-user-agent": ["universal-user-agent@7.0.3", "", {}, "sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A=="], "unpipe": ["unpipe@1.0.0", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="], + "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="], + "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="], "web-streams-polyfill": ["web-streams-polyfill@3.3.3", "", {}, "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw=="], @@ -294,9 +281,9 @@ "wrappy": ["wrappy@1.0.2", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="], - "zod": ["zod@3.24.4", "", {}, "sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg=="], + "zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], - "zod-to-json-schema": ["zod-to-json-schema@3.24.5", "", { "peerDependencies": { "zod": "^3.24.1" } }, "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g=="], + "zod-to-json-schema": ["zod-to-json-schema@3.24.6", "", { "peerDependencies": { "zod": "^3.24.1" } }, "sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg=="], "@octokit/core/@octokit/graphql": ["@octokit/graphql@7.1.1", "", { "dependencies": { "@octokit/request": "^8.4.1", "@octokit/types": "^13.0.0", "universal-user-agent": "^6.0.0" } }, "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g=="], @@ -308,11 +295,11 @@ "@octokit/endpoint/universal-user-agent": ["universal-user-agent@6.0.1", "", {}, "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ=="], - "@octokit/graphql/@octokit/request": ["@octokit/request@9.2.3", "", { "dependencies": { "@octokit/endpoint": "^10.1.4", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "fast-content-type-parse": "^2.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-Ma+pZU8PXLOEYzsWf0cn/gY+ME57Wq8f49WTXA8FMHp2Ps9djKw//xYJ1je8Hm0pR2lU9FUGeJRWOtxq6olt4w=="], + "@octokit/graphql/@octokit/request": ["@octokit/request@9.2.4", "", { "dependencies": { "@octokit/endpoint": "^10.1.4", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "fast-content-type-parse": "^2.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-q8ybdytBmxa6KogWlNa818r0k1wlqzNC+yNkcQDECHvQo8Vmstrg18JwqJHdJdUiHD2sjlwBgSm9kHkOKe2iyA=="], "@octokit/plugin-paginate-rest/@octokit/types": ["@octokit/types@12.6.0", "", { "dependencies": { "@octokit/openapi-types": "^20.0.0" } }, "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw=="], - "@octokit/plugin-request-log/@octokit/core": ["@octokit/core@6.1.5", "", { "dependencies": { "@octokit/auth-token": "^5.0.0", "@octokit/graphql": "^8.2.2", "@octokit/request": "^9.2.3", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "before-after-hook": "^3.0.2", "universal-user-agent": "^7.0.0" } }, "sha512-vvmsN0r7rguA+FySiCsbaTTobSftpIDIpPW81trAmsv9TGxg3YCujAxRYp/Uy8xmDgYCzzgulG62H7KYUFmeIg=="], + "@octokit/plugin-request-log/@octokit/core": ["@octokit/core@6.1.6", "", { "dependencies": { "@octokit/auth-token": "^5.0.0", "@octokit/graphql": "^8.2.2", "@octokit/request": "^9.2.3", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "before-after-hook": "^3.0.2", "universal-user-agent": "^7.0.0" } }, "sha512-kIU8SLQkYWGp3pVKiYzA5OSaNF5EE03P/R8zEmmrG6XwOg5oBjXyQVVIauQ0dgau4zYhpZEhJrvIYt6oM+zZZA=="], "@octokit/plugin-rest-endpoint-methods/@octokit/types": ["@octokit/types@12.6.0", "", { "dependencies": { "@octokit/openapi-types": "^20.0.0" } }, "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw=="], @@ -322,7 +309,7 @@ "@octokit/request-error/@octokit/types": ["@octokit/types@13.10.0", "", { "dependencies": { "@octokit/openapi-types": "^24.2.0" } }, "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA=="], - "@octokit/rest/@octokit/core": ["@octokit/core@6.1.5", "", { "dependencies": { "@octokit/auth-token": "^5.0.0", "@octokit/graphql": "^8.2.2", "@octokit/request": "^9.2.3", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "before-after-hook": "^3.0.2", "universal-user-agent": "^7.0.0" } }, "sha512-vvmsN0r7rguA+FySiCsbaTTobSftpIDIpPW81trAmsv9TGxg3YCujAxRYp/Uy8xmDgYCzzgulG62H7KYUFmeIg=="], + "@octokit/rest/@octokit/core": ["@octokit/core@6.1.6", "", { "dependencies": { "@octokit/auth-token": "^5.0.0", "@octokit/graphql": "^8.2.2", "@octokit/request": "^9.2.3", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "before-after-hook": "^3.0.2", "universal-user-agent": "^7.0.0" } }, "sha512-kIU8SLQkYWGp3pVKiYzA5OSaNF5EE03P/R8zEmmrG6XwOg5oBjXyQVVIauQ0dgau4zYhpZEhJrvIYt6oM+zZZA=="], "@octokit/rest/@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@11.6.0", "", { "dependencies": { "@octokit/types": "^13.10.0" }, "peerDependencies": { "@octokit/core": ">=6" } }, "sha512-n5KPteiF7pWKgBIBJSk8qzoZWcUkza2O6A0za97pMGVrGfPdltxrfmfF5GucHYvHGZD8BdaZmmHGz5cX/3gdpw=="], @@ -348,7 +335,7 @@ "@octokit/plugin-request-log/@octokit/core/@octokit/auth-token": ["@octokit/auth-token@5.1.2", "", {}, "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw=="], - "@octokit/plugin-request-log/@octokit/core/@octokit/request": ["@octokit/request@9.2.3", "", { "dependencies": { "@octokit/endpoint": "^10.1.4", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "fast-content-type-parse": "^2.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-Ma+pZU8PXLOEYzsWf0cn/gY+ME57Wq8f49WTXA8FMHp2Ps9djKw//xYJ1je8Hm0pR2lU9FUGeJRWOtxq6olt4w=="], + "@octokit/plugin-request-log/@octokit/core/@octokit/request": ["@octokit/request@9.2.4", "", { "dependencies": { "@octokit/endpoint": "^10.1.4", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "fast-content-type-parse": "^2.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-q8ybdytBmxa6KogWlNa818r0k1wlqzNC+yNkcQDECHvQo8Vmstrg18JwqJHdJdUiHD2sjlwBgSm9kHkOKe2iyA=="], "@octokit/plugin-request-log/@octokit/core/@octokit/request-error": ["@octokit/request-error@6.1.8", "", { "dependencies": { "@octokit/types": "^14.0.0" } }, "sha512-WEi/R0Jmq+IJKydWlKDmryPcmdYSVjL3ekaiEL1L9eo1sUnqMJ+grqmC9cjk7CA7+b2/T397tO5d8YLOH3qYpQ=="], @@ -362,7 +349,7 @@ "@octokit/rest/@octokit/core/@octokit/auth-token": ["@octokit/auth-token@5.1.2", "", {}, "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw=="], - "@octokit/rest/@octokit/core/@octokit/request": ["@octokit/request@9.2.3", "", { "dependencies": { "@octokit/endpoint": "^10.1.4", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "fast-content-type-parse": "^2.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-Ma+pZU8PXLOEYzsWf0cn/gY+ME57Wq8f49WTXA8FMHp2Ps9djKw//xYJ1je8Hm0pR2lU9FUGeJRWOtxq6olt4w=="], + "@octokit/rest/@octokit/core/@octokit/request": ["@octokit/request@9.2.4", "", { "dependencies": { "@octokit/endpoint": "^10.1.4", "@octokit/request-error": "^6.1.8", "@octokit/types": "^14.0.0", "fast-content-type-parse": "^2.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-q8ybdytBmxa6KogWlNa818r0k1wlqzNC+yNkcQDECHvQo8Vmstrg18JwqJHdJdUiHD2sjlwBgSm9kHkOKe2iyA=="], "@octokit/rest/@octokit/core/@octokit/request-error": ["@octokit/request-error@6.1.8", "", { "dependencies": { "@octokit/types": "^14.0.0" } }, "sha512-WEi/R0Jmq+IJKydWlKDmryPcmdYSVjL3ekaiEL1L9eo1sUnqMJ+grqmC9cjk7CA7+b2/T397tO5d8YLOH3qYpQ=="], diff --git a/package.json b/package.json index 559a4c0..e3c3c65 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "dependencies": { "@actions/core": "^1.10.1", "@actions/github": "^6.0.1", - "@anthropic-ai/claude-code": "1.0.59", "@modelcontextprotocol/sdk": "^1.11.0", "@octokit/graphql": "^8.2.2", "@octokit/rest": "^21.1.1",