claude-code-autoconfig 1.0.57 → 1.0.59

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/bin/cli.js +18 -10
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -233,27 +233,33 @@ if (fs.existsSync(agentsSrc)) {
233
233
 
234
234
  console.log('\x1b[32m%s\x1b[0m', '✅ Prepared /autoconfig command');
235
235
 
236
- // Step 4: Show "READY TO CONFIGURE" message
236
+ // Step 4: Show install mode menu
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('║\x1b[0m Press ENTER to launch Claude \x1b[33m║');
243
- console.log('║\x1b[0m and auto-run \x1b[36m/autoconfig\x1b[33m \x1b[33m║');
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║');
244
247
  console.log('║ ║');
245
248
  console.log('╚════════════════════════════════════╝\x1b[0m');
246
249
  console.log();
247
250
 
248
- // Step 5: Wait for Enter, then launch Claude Code with /autoconfig
251
+ // Step 5: Get user choice and launch Claude Code
249
252
  const rl = readline.createInterface({
250
253
  input: process.stdin,
251
254
  output: process.stdout
252
255
  });
253
256
 
254
- rl.question('\x1b[90mPress ENTER to continue...\x1b[0m', () => {
257
+ rl.question('\x1b[90mEnter choice (1 or 2): \x1b[0m', (answer) => {
255
258
  rl.close();
256
259
 
260
+ const choice = answer.trim();
261
+ const expressMode = choice === '1' || choice === ''; // Default to express if just Enter
262
+
257
263
  console.log();
258
264
  console.log('\x1b[36m%s\x1b[0m', '🚀 Launching Claude Code with /autoconfig...');
259
265
  console.log();
@@ -261,12 +267,14 @@ rl.question('\x1b[90mPress ENTER to continue...\x1b[0m', () => {
261
267
  console.log('\x1b[90m%s\x1b[0m', ' Please be patient while it loads.');
262
268
  console.log();
263
269
 
264
- // Spawn claude in print mode with scoped permissions for smooth setup
265
- // -p (print mode) skips trust dialog, --allowedTools scopes what's permitted
266
- const allowedTools = 'Read(.**) Edit(.**) Write(.**) Glob(.**) Grep(.**) Bash(start:*) Bash(open:*) Bash(xdg-open:*)';
267
- const claude = spawn('claude', ['-p', '--allowedTools', allowedTools, '/autoconfig'], {
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, {
268
275
  cwd: cwd,
269
- stdio: 'inherit'
276
+ stdio: 'inherit',
277
+ shell: true
270
278
  });
271
279
 
272
280
  claude.on('error', (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
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",