claude-code-autoconfig 1.0.59 → 1.0.61

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.
@@ -101,9 +101,13 @@ This pointer persists across autoconfig runs and directs Claude to team-maintain
101
101
 
102
102
  ## Step 4: Create Rules Directory
103
103
 
104
- Create an empty `.claude/rules/` directory if it doesn't exist. Do not create any subdirectories or rule files.
104
+ Create `.claude/rules/` directory if it doesn't exist by writing a `.gitkeep` file to it:
105
105
 
106
- **Important**: Use Glob tool to check if directories exist (e.g., `.claude/rules/**`), not Bash commands. This avoids permission prompts during setup.
106
+ ```
107
+ Write .claude/rules/.gitkeep with empty content
108
+ ```
109
+
110
+ **Important**: Use Write tool to create the directory (by creating a placeholder file), not `mkdir` Bash commands. This avoids permission prompts during setup.
107
111
 
108
112
  Rules are path-scoped context files that load automatically when Claude works on matching files. Effective rules require deep understanding of your codebase patterns, team conventions, and quality goals — they should be crafted intentionally, not auto-generated.
109
113
 
@@ -4,6 +4,8 @@
4
4
  "Read(./**)",
5
5
  "Edit(./**)",
6
6
  "Write(./**)",
7
+ "Glob",
8
+ "Grep",
7
9
  "WebSearch",
8
10
  "WebFetch",
9
11
  "Bash(npm run dev)",
@@ -21,7 +23,17 @@
21
23
  "Bash(git push:*)",
22
24
  "Bash(git pull)",
23
25
  "Bash(git checkout:*)",
24
- "Bash(git branch:*)"
26
+ "Bash(git branch:*)",
27
+ "Bash(ls:*)",
28
+ "Bash(dir:*)",
29
+ "Bash(mkdir:*)",
30
+ "Bash(mkdir -p:*)",
31
+ "Bash(start:*)",
32
+ "Bash(start .claude:*)",
33
+ "Bash(open:*)",
34
+ "Bash(open .claude:*)",
35
+ "Bash(xdg-open:*)",
36
+ "Bash(xdg-open .claude:*)"
25
37
  ],
26
38
  "deny": [
27
39
  "Read(./.env)",
package/bin/cli.js CHANGED
@@ -233,33 +233,27 @@ if (fs.existsSync(agentsSrc)) {
233
233
 
234
234
  console.log('\x1b[32m%s\x1b[0m', '✅ Prepared /autoconfig command');
235
235
 
236
- // Step 4: Show install mode menu
236
+ // Step 4: Show "READY TO CONFIGURE" message
237
237
  console.log();
238
238
  console.log('\x1b[33m╔════════════════════════════════════╗');
239
239
  console.log('║ ║');
240
240
  console.log('║ \x1b[1mREADY TO CONFIGURE\x1b[22m ║');
241
241
  console.log('║ ║');
242
- console.log('╠════════════════════════════════════╣');
243
- console.log('║\x1b[0m Choose install mode: \x1b[33m║');
244
- console.log('║ ║');
245
- console.log('║\x1b[0m \x1b[1m1.\x1b[22m Express \x1b[90m(no prompts)\x1b[0m \x1b[33m║');
246
- console.log('║\x1b[0m \x1b[1m2.\x1b[22m Interactive \x1b[90m(confirm each)\x1b[0m \x1b[33m║');
242
+ console.log('║\x1b[0m Press ENTER to launch Claude \x1b[33m║');
243
+ console.log('║\x1b[0m and auto-run \x1b[36m/autoconfig\x1b[33m \x1b[33m║');
247
244
  console.log('║ ║');
248
245
  console.log('╚════════════════════════════════════╝\x1b[0m');
249
246
  console.log();
250
247
 
251
- // Step 5: Get user choice and launch Claude Code
248
+ // Step 5: Wait for Enter, then launch Claude Code
252
249
  const rl = readline.createInterface({
253
250
  input: process.stdin,
254
251
  output: process.stdout
255
252
  });
256
253
 
257
- rl.question('\x1b[90mEnter choice (1 or 2): \x1b[0m', (answer) => {
254
+ rl.question('\x1b[90mPress ENTER to continue...\x1b[0m', () => {
258
255
  rl.close();
259
256
 
260
- const choice = answer.trim();
261
- const expressMode = choice === '1' || choice === ''; // Default to express if just Enter
262
-
263
257
  console.log();
264
258
  console.log('\x1b[36m%s\x1b[0m', '🚀 Launching Claude Code with /autoconfig...');
265
259
  console.log();
@@ -267,11 +261,8 @@ rl.question('\x1b[90mEnter choice (1 or 2): \x1b[0m', (answer) => {
267
261
  console.log('\x1b[90m%s\x1b[0m', ' Please be patient while it loads.');
268
262
  console.log();
269
263
 
270
- // Spawn claude with /autoconfig - express mode skips permission prompts
271
- const args = expressMode
272
- ? ['--dangerously-skip-permissions', '/autoconfig']
273
- : ['/autoconfig'];
274
- const claude = spawn('claude', args, {
264
+ // Spawn claude with /autoconfig - settings.json has pre-approved permissions
265
+ const claude = spawn('claude', ['/autoconfig'], {
275
266
  cwd: cwd,
276
267
  stdio: 'inherit',
277
268
  shell: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
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",