fix git push auth

This commit is contained in:
David Blass
2025-10-23 16:12:15 -04:00
parent c0f31415a3
commit 1922352d86
6 changed files with 39 additions and 23 deletions
+1 -3
View File
@@ -77,7 +77,6 @@ export class ClaudeAgent implements Agent {
const env = {
ANTHROPIC_API_KEY: this.apiKey,
GITHUB_TOKEN: this.githubInstallationToken,
};
console.log(boxString(prompt, { title: "Prompt" }));
@@ -114,7 +113,6 @@ export class ClaudeAgent implements Agent {
env,
input: `${instructions} ${prompt}`,
timeout: 10 * 60 * 1000, // 10 minutes
cwd: process.env.GITHUB_WORKSPACE || process.cwd(),
onStdout: (_chunk) => {
processJSONChunk(_chunk, this);
},
@@ -173,7 +171,7 @@ function processJSONChunk(chunk: string, agent?: ClaudeAgent): void {
console.log(chunk);
return;
}
console.log(chunk);
const parsedChunk = JSON.parse(trimmedChunk);