@fractary/faber-cli 1.3.11 → 1.3.13
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.
|
@@ -354,7 +354,10 @@ async function planSingleIssue(issue, config, repoClient, anthropicClient, optio
|
|
|
354
354
|
}
|
|
355
355
|
catch (error) {
|
|
356
356
|
// If label doesn't exist, just add comment without label
|
|
357
|
-
if (error instanceof Error &&
|
|
357
|
+
if (error instanceof Error &&
|
|
358
|
+
(error.message.includes('not found') ||
|
|
359
|
+
error.message.includes('faber:planned') ||
|
|
360
|
+
error.message.includes('--add-label'))) {
|
|
358
361
|
if (outputFormat === 'text') {
|
|
359
362
|
console.log(chalk.yellow(` ⚠️ Label 'faber:planned' not found, adding comment only`));
|
|
360
363
|
}
|
|
@@ -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,CAAC,QAAQ,CAAC,cAAc,CAA4B;gBAEtD,MAAM,EAAE,eAAe;IAInC;;;;;OAKG;IAC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BvB;;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}). ` +
|