diff --git a/action.yml b/action.yml index 907ff2b..ca11940 100644 --- a/action.yml +++ b/action.yml @@ -145,7 +145,7 @@ runs: echo "Base-action dependencies installed" cd - # Install Claude Code globally - curl -fsSL https://claude.ai/install.sh | bash -s 1.0.85 + curl -fsSL https://claude.ai/install.sh | bash -s 1.0.86 echo "$HOME/.local/bin" >> "$GITHUB_PATH" - name: Setup Network Restrictions diff --git a/base-action/action.yml b/base-action/action.yml index fff9ff2..f326ed8 100644 --- a/base-action/action.yml +++ b/base-action/action.yml @@ -85,7 +85,7 @@ runs: - name: Install Claude Code shell: bash - run: curl -fsSL https://claude.ai/install.sh | bash -s 1.0.85 + run: curl -fsSL https://claude.ai/install.sh | bash -s 1.0.86 - name: Run Claude Code Action shell: bash diff --git a/base-action/src/run-claude.ts b/base-action/src/run-claude.ts index f916ec4..290d495 100644 --- a/base-action/src/run-claude.ts +++ b/base-action/src/run-claude.ts @@ -261,7 +261,10 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) { await writeFile("output.txt", output); // Process output.txt into JSON and save to execution file - const { stdout: jsonOutput } = await execAsync("jq -s '.' output.txt"); + // Increase maxBuffer from Node.js default of 1MB to 10MB to handle large Claude outputs + const { stdout: jsonOutput } = await execAsync("jq -s '.' output.txt", { + maxBuffer: 10 * 1024 * 1024, + }); await writeFile(EXECUTION_FILE, jsonOutput); console.log(`Log saved to ${EXECUTION_FILE}`); @@ -278,7 +281,10 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) { if (output) { try { await writeFile("output.txt", output); - const { stdout: jsonOutput } = await execAsync("jq -s '.' output.txt"); + // Increase maxBuffer from Node.js default of 1MB to 10MB to handle large Claude outputs + const { stdout: jsonOutput } = await execAsync("jq -s '.' output.txt", { + maxBuffer: 10 * 1024 * 1024, + }); await writeFile(EXECUTION_FILE, jsonOutput); core.setOutput("execution_file", EXECUTION_FILE); } catch (e) {