chiefwiggum 1.3.35 → 1.3.38

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 +19 -5
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -388,12 +388,14 @@ function getTodoTaskPrompt() {
388
388
  return `You are an autonomous coding agent. Complete ONE task from TODO.md.
389
389
 
390
390
  ## Before Starting
391
- Read these files to understand the project:
391
+ Read these ROOT-LEVEL files only (ignore subdirectories for project context):
392
392
  - CLAUDE.md \u2014 Project context and conventions
393
393
  - specs/prd.md \u2014 What we are building
394
394
  - specs/technical.md \u2014 How we are building it
395
395
  - TODO.md \u2014 Task list
396
396
 
397
+ IMPORTANT: Only use the root-level files above for project context. Do not read subdirectory README files or other nested project files when determining what project you're working on.
398
+
397
399
  ## Workflow
398
400
  1. Find the FIRST unchecked task (- [ ]) in TODO.md
399
401
  2. Plan: Understand what needs to be done
@@ -416,11 +418,13 @@ function getGitHubTaskPrompt() {
416
418
  return `You are an autonomous coding agent. Complete ONE GitHub Issue.
417
419
 
418
420
  ## Before Starting
419
- Read these files to understand the project:
421
+ Read these ROOT-LEVEL files only (ignore subdirectories for project context):
420
422
  - CLAUDE.md \u2014 Project context and conventions
421
423
  - specs/prd.md \u2014 What we are building
422
424
  - specs/technical.md \u2014 How we are building it
423
425
 
426
+ IMPORTANT: Only use the root-level files above for project context. Do not read subdirectory README files or other nested project files when determining what project you're working on.
427
+
424
428
  Then list open issues: gh issue list --state open
425
429
 
426
430
  ## Workflow
@@ -438,7 +442,7 @@ Use this to update issue status on the project board (replace <issue_number> and
438
442
  \`\`\`bash
439
443
  # Get repo owner and project number
440
444
  OWNER=$(gh repo view --json owner -q .owner.login)
441
- PROJECT_NUM=$(gh repo view --json projectsV2 -q '.projectsV2.nodes[0].number')
445
+ PROJECT_NUM=$(gh repo view --json projectsV2 -q '.projectsV2.Nodes[0].number')
442
446
 
443
447
  # Get the issue's item ID in the project
444
448
  ITEM_ID=$(gh project item-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.items[] | select(.content.number == <issue_number>) | .id')
@@ -571,7 +575,7 @@ function getCurrentCommit() {
571
575
  function getLinkedProjectNumber() {
572
576
  try {
573
577
  const output = (0, import_node_child_process5.execSync)(
574
- "gh repo view --json projectsV2 -q '.projectsV2.nodes[0].number'",
578
+ "gh repo view --json projectsV2 -q '.projectsV2.Nodes[0].number'",
575
579
  { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"], timeout: 3e4 }
576
580
  );
577
581
  const num = output.trim();
@@ -633,9 +637,19 @@ async function ensureProjectLinked() {
633
637
  return;
634
638
  }
635
639
  if (selected === "__new__") {
640
+ const existingNames = new Set(existingProjects.map((p2) => p2.title.toLowerCase()));
636
641
  const projectName = await text2({
637
642
  message: "Board name",
638
- placeholder: "e.g., My Project Kanban"
643
+ placeholder: "e.g., My Project Kanban",
644
+ validate: (value) => {
645
+ if (!value || !value.trim()) {
646
+ return "Board name is required";
647
+ }
648
+ if (existingNames.has(value.trim().toLowerCase())) {
649
+ return `A board named "${value.trim()}" already exists. Choose a different name.`;
650
+ }
651
+ return void 0;
652
+ }
639
653
  });
640
654
  console.log(import_picocolors6.default.cyan(`Creating board "${projectName}"...`));
641
655
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiefwiggum",
3
- "version": "1.3.35",
3
+ "version": "1.3.38",
4
4
  "description": "Autonomous coding agent CLI. Point it at a plan, watch it build.",
5
5
  "type": "module",
6
6
  "bin": {