@fractary/faber-cli 1.3.8 → 1.3.9

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.
@@ -319,11 +319,28 @@ async function planSingleIssue(issue, config, repoClient, anthropicClient, optio
319
319
  if (outputFormat === 'text') {
320
320
  console.log(chalk.gray(` → Updating GitHub issue...`));
321
321
  }
322
- await repoClient.updateIssue({
323
- id: issue.number.toString(),
324
- comment: `🤖 Workflow plan created: ${planId}`,
325
- addLabel: 'faber:planned',
326
- });
322
+ try {
323
+ await repoClient.updateIssue({
324
+ id: issue.number.toString(),
325
+ comment: `🤖 Workflow plan created: ${planId}`,
326
+ addLabel: 'faber:planned',
327
+ });
328
+ }
329
+ catch (error) {
330
+ // If label doesn't exist, just add comment without label
331
+ if (error instanceof Error && error.message.includes('not found')) {
332
+ if (outputFormat === 'text') {
333
+ console.log(chalk.yellow(` ⚠️ Label 'faber:planned' not found, adding comment only`));
334
+ }
335
+ await repoClient.updateIssue({
336
+ id: issue.number.toString(),
337
+ comment: `🤖 Workflow plan created: ${planId}`,
338
+ });
339
+ }
340
+ else {
341
+ throw error;
342
+ }
343
+ }
327
344
  if (outputFormat === 'text') {
328
345
  console.log(chalk.green(` ✓ Plan: ${planId}`));
329
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractary/faber-cli",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "FABER CLI - Command-line interface for FABER development toolkit",
5
5
  "main": "dist/index.js",
6
6
  "bin": {