chiefwiggum 1.3.20 → 1.3.21

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +32 -6
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -932,10 +932,23 @@ async function selectOrCreateProjectBoard(knownRepo) {
932
932
  });
933
933
  console.log(import_picocolors7.default.cyan(`Creating board "${projectName}"...`));
934
934
  try {
935
- (0, import_node_child_process6.execSync)(`gh project create --owner ${repoName.split("/")[0]} --title "${projectName}"`, {
936
- stdio: "inherit"
937
- });
935
+ const createOutput = (0, import_node_child_process6.execSync)(
936
+ `gh project create --owner ${repoName.split("/")[0]} --title "${projectName}"`,
937
+ { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }
938
+ );
939
+ const projectNumberMatch = createOutput.match(/projects\/(\d+)/);
940
+ const projectNumber = projectNumberMatch ? projectNumberMatch[1] : null;
938
941
  console.log(import_picocolors7.default.green(`\u2713 Board "${projectName}" created`));
942
+ if (projectNumber) {
943
+ try {
944
+ (0, import_node_child_process6.execSync)(`gh project link ${projectNumber} --owner ${repoName.split("/")[0]} --repo ${repoName}`, {
945
+ stdio: ["pipe", "pipe", "pipe"]
946
+ });
947
+ console.log(import_picocolors7.default.green(`\u2713 Linked to ${repoName}`));
948
+ } catch {
949
+ console.log(import_picocolors7.default.dim(` Note: Board created at org level. Link manually from repo's Projects tab.`));
950
+ }
951
+ }
939
952
  return projectName;
940
953
  } catch {
941
954
  console.log(import_picocolors7.default.yellow("Could not create board. Issues will be created without one."));
@@ -1388,10 +1401,23 @@ async function selectOrCreateProjectBoard2(knownRepo) {
1388
1401
  });
1389
1402
  console.log(import_picocolors9.default.cyan(`Creating board "${projectName}"...`));
1390
1403
  try {
1391
- (0, import_node_child_process7.execSync)(`gh project create --owner ${repoName.split("/")[0]} --title "${projectName}"`, {
1392
- stdio: "inherit"
1393
- });
1404
+ const createOutput = (0, import_node_child_process7.execSync)(
1405
+ `gh project create --owner ${repoName.split("/")[0]} --title "${projectName}"`,
1406
+ { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }
1407
+ );
1408
+ const projectNumberMatch = createOutput.match(/projects\/(\d+)/);
1409
+ const projectNumber = projectNumberMatch ? projectNumberMatch[1] : null;
1394
1410
  console.log(import_picocolors9.default.green(`\u2713 Board "${projectName}" created`));
1411
+ if (projectNumber) {
1412
+ try {
1413
+ (0, import_node_child_process7.execSync)(`gh project link ${projectNumber} --owner ${repoName.split("/")[0]} --repo ${repoName}`, {
1414
+ stdio: ["pipe", "pipe", "pipe"]
1415
+ });
1416
+ console.log(import_picocolors9.default.green(`\u2713 Linked to ${repoName}`));
1417
+ } catch {
1418
+ console.log(import_picocolors9.default.dim(` Note: Board created at org level. Link manually from repo's Projects tab.`));
1419
+ }
1420
+ }
1395
1421
  return projectName;
1396
1422
  } catch {
1397
1423
  console.log(import_picocolors9.default.yellow("Could not create board."));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiefwiggum",
3
- "version": "1.3.20",
3
+ "version": "1.3.21",
4
4
  "description": "Autonomous coding agent CLI. Point it at a plan, watch it build.",
5
5
  "type": "module",
6
6
  "bin": {