chiefwiggum 1.3.3 → 1.3.4

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 +44 -0
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -522,6 +522,7 @@ async function cmdLoop() {
522
522
  // src/commands/new.ts
523
523
  var __dirname = (0, import_node_path2.dirname)((0, import_node_url.fileURLToPath)(importMetaUrl));
524
524
  var LOCAL_TEMPLATES_DIR = ".chiefwiggum/templates";
525
+ var CONFIG_FILE = ".chiefwiggum/CLAUDE.md";
525
526
  var BUNDLED_TEMPLATES_DIR = (0, import_node_path2.join)(__dirname, "..", "templates");
526
527
  async function cmdNew(planFile) {
527
528
  console.log(import_picocolors7.default.bold("Project Setup"));
@@ -537,6 +538,7 @@ async function cmdNew(planFile) {
537
538
  process.exit(0);
538
539
  }
539
540
  await setupTemplates();
541
+ await setupProjectConfig();
540
542
  if (planFile) {
541
543
  if (!(0, import_node_fs3.existsSync)(planFile)) {
542
544
  console.log(import_picocolors7.default.red(`Plan file not found: ${planFile}`));
@@ -653,6 +655,48 @@ async function setupTemplates() {
653
655
  console.log(import_picocolors7.default.dim(" You can customize these templates to change how specs are generated."));
654
656
  console.log();
655
657
  }
658
+ async function setupProjectConfig() {
659
+ if ((0, import_node_fs3.existsSync)(CONFIG_FILE)) {
660
+ console.log(import_picocolors7.default.dim(`Config already exists at ${CONFIG_FILE}`));
661
+ return;
662
+ }
663
+ console.log();
664
+ const useGitHub = await confirm2({
665
+ message: "Use GitHub Issues to track tasks? (instead of TODO.md)",
666
+ initialValue: false
667
+ });
668
+ if (useGitHub) {
669
+ const configContent = `# Chief Wiggum Config
670
+
671
+ ## Project Tracker
672
+
673
+ github
674
+
675
+ ## Notes
676
+
677
+ When project_tracker is set to "github", Chief Wiggum will create GitHub Issues
678
+ instead of using TODO.md for task tracking.
679
+ `;
680
+ (0, import_node_fs3.writeFileSync)(CONFIG_FILE, configContent);
681
+ console.log(import_picocolors7.default.green(`\u2713 Config saved to ${CONFIG_FILE}`));
682
+ console.log(import_picocolors7.default.dim(" Tasks will be created as GitHub Issues."));
683
+ } else {
684
+ const configContent = `# Chief Wiggum Config
685
+
686
+ ## Project Tracker
687
+
688
+ todo
689
+
690
+ ## Notes
691
+
692
+ When project_tracker is set to "todo", Chief Wiggum uses TODO.md for task tracking.
693
+ Change to "github" to use GitHub Issues instead.
694
+ `;
695
+ (0, import_node_fs3.writeFileSync)(CONFIG_FILE, configContent);
696
+ console.log(import_picocolors7.default.green(`\u2713 Config saved to ${CONFIG_FILE}`));
697
+ }
698
+ console.log();
699
+ }
656
700
  async function interactiveDescribe() {
657
701
  console.log();
658
702
  console.log(import_picocolors7.default.bold("Tell me about your project"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiefwiggum",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Autonomous coding agent CLI. Point it at a plan, watch it build.",
5
5
  "type": "module",
6
6
  "bin": {