@fractary/faber-cli 1.3.12 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -312,7 +312,12 @@ async function planSingleIssue(issue, config, repoClient, anthropicClient, optio
|
|
|
312
312
|
}
|
|
313
313
|
catch (error) {
|
|
314
314
|
// If worktree already exists, try to use it
|
|
315
|
-
|
|
315
|
+
// Check for both "already exists" and exit code 128 which indicates the path exists
|
|
316
|
+
if (error instanceof Error &&
|
|
317
|
+
(error.message.includes('already exists') ||
|
|
318
|
+
error.message.includes('exit code 128') ||
|
|
319
|
+
error.message.includes(`'${worktree}'`) ||
|
|
320
|
+
error.message.includes(worktree.replace('~', (await import('os')).homedir())))) {
|
|
316
321
|
if (outputFormat === 'text') {
|
|
317
322
|
console.log(chalk.yellow(` ⚠️ Worktree already exists, using existing worktree`));
|
|
318
323
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-app-auth.d.ts","sourceRoot":"","sources":["../../src/lib/github-app-auth.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAqB1D;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B;;;;;;;OAOG;WACU,IAAI,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAiD3D;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAUtC;AAED;;;;GAIG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAAuC;IACpD,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,cAAc,CAAgC;IAGtD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAiB;IAE7D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAO;IAEjD,OAAO,CAAC,MAAM,CA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IG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB/B;;OAEG;YACW,SAAS;IAmBvB;;OAEG;YACW,WAAW;IAoBzB;;OAEG;YACW,4BAA4B;IAyD1C;;OAEG;IACH,OAAO,CAAC,SAAS;IAIjB;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAUjC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;;GAIG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IAC3C,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,MAAM;IAE3B,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC;AAED;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,aAAa;IAC9C,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEjC,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAGlC"}
|
|
@@ -219,8 +219,9 @@ export class GitHubAppAuth {
|
|
|
219
219
|
}
|
|
220
220
|
if (!response.ok) {
|
|
221
221
|
const errorBody = await response.text().catch(() => 'Unknown error');
|
|
222
|
+
console.error('[DEBUG] GitHub API error:', response.status, errorBody);
|
|
222
223
|
if (response.status === 401) {
|
|
223
|
-
throw new Error(
|
|
224
|
+
throw new Error(`Failed to authenticate with GitHub App. Status: ${response.status}, Response: ${errorBody}`);
|
|
224
225
|
}
|
|
225
226
|
if (response.status === 404) {
|
|
226
227
|
throw new Error(`GitHub App installation not found (ID: ${this.config.installation_id}). ` +
|