claude-code-autoconfig 1.0.69 → 1.0.71

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.
@@ -14,7 +14,8 @@
14
14
  "Bash(claude -p \"/autoconfig\")",
15
15
  "Bash(node:*)",
16
16
  "Bash(npm version:*)",
17
- "Bash(git rm:*)"
17
+ "Bash(git rm:*)",
18
+ "Bash(npm test)"
18
19
  ]
19
20
  }
20
21
  }
package/CLAUDE.md CHANGED
@@ -1,7 +1,32 @@
1
- <!-- AUTO-GENERATED BY /autoconfig — Do not edit. Use .claude/feedback/ for corrections. -->
1
+ # claude-code-autoconfig
2
2
 
3
- # Project Name
3
+ CLI tool that auto-configures Claude Code for any project.
4
4
 
5
- > Run `/autoconfig` to populate this based on your project.
5
+ ## Development Rules
6
6
 
7
- <!-- END AUTO-GENERATED -->
7
+ ### Testing Requirements
8
+
9
+ **CRITICAL: Before committing or outputting any changes to `bin/cli.js`, you MUST run tests and verify they pass:**
10
+
11
+ ```bash
12
+ npm test
13
+ ```
14
+
15
+ This runs `test/box-alignment.test.js` which validates:
16
+ 1. All box-drawing lines have consistent visual width (accounting for ANSI escape codes)
17
+ 2. Box structure is valid (correct corner and border characters)
18
+
19
+ **DO NOT commit or present code changes if tests fail.** Fix the alignment issues first.
20
+
21
+ ### Box Drawing Guidelines
22
+
23
+ When modifying the "READY TO CONFIGURE" box in `bin/cli.js`:
24
+
25
+ 1. All lines must be exactly 46 visible characters wide (including the `║` borders)
26
+ 2. ANSI escape codes (`\x1b[...m`) don't count toward visible width
27
+ 3. Place color codes outside content spacing: `\x1b[33m║\x1b[0m` + 44 chars of content + `\x1b[33m║\x1b[0m`
28
+ 4. Always run `npm test` after any box modifications
29
+
30
+ ## Commands
31
+
32
+ - `npm test` - Run box alignment tests
package/bin/cli.js CHANGED
@@ -239,8 +239,8 @@ console.log('\x1b[33m╔══════════════════
239
239
  console.log('\x1b[33m║ ║\x1b[0m');
240
240
  console.log('\x1b[33m║\x1b[0m \x1b[33;1mREADY TO CONFIGURE\x1b[0m \x1b[33m║\x1b[0m');
241
241
  console.log('\x1b[33m║ ║\x1b[0m');
242
- console.log('\x1b[33m║\x1b[0m \x1b[36mPress ENTER to launch Claude and\x1b[0m \x1b[33m║\x1b[0m');
243
- console.log('\x1b[33m║\x1b[0m \x1b[36mauto-run /autoconfig\x1b[0m \x1b[33m║\x1b[0m');
242
+ console.log('\x1b[33m║\x1b[0m \x1b[36mPress ENTER to launch Claude and\x1b[0m \x1b[33m║\x1b[0m');
243
+ console.log('\x1b[33m║\x1b[0m \x1b[36mauto-run /autoconfig\x1b[0m \x1b[33m║\x1b[0m');
244
244
  console.log('\x1b[33m║ ║\x1b[0m');
245
245
  console.log('\x1b[33m╚════════════════════════════════════════════╝\x1b[0m');
246
246
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "Intelligent, self-configuring setup for Claude Code. One command analyzes your project, configures Claude, and shows you what it did.",
5
5
  "author": "ADAC 1001 <info@adac1001.com>",
6
6
  "license": "MIT",
@@ -21,6 +21,9 @@
21
21
  "configuration",
22
22
  "cli"
23
23
  ],
24
+ "scripts": {
25
+ "test": "node test/box-alignment.test.js"
26
+ },
24
27
  "bin": {
25
28
  "claude-code-autoconfig": "./bin/cli.js"
26
29
  },