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.
- package/bin/cli.js +18 -10
- 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
|
|
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('
|
|
243
|
-
console.log('║\x1b[0m
|
|
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:
|
|
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[
|
|
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
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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.
|
|
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",
|