claude-code-autoconfig 1.0.40 → 1.0.42
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/.claude/settings.local.json +3 -1
- package/bin/cli.js +10 -9
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -233,33 +233,34 @@ 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 "READY TO CONFIGURE" message
|
|
237
237
|
console.log();
|
|
238
238
|
console.log('\x1b[33m╔════════════════════════════════════╗');
|
|
239
239
|
console.log('║ ║');
|
|
240
|
-
console.log('║
|
|
240
|
+
console.log('║ \x1b[1mREADY TO CONFIGURE\x1b[22m ║');
|
|
241
241
|
console.log('║ ║');
|
|
242
|
-
console.log('║\x1b[0m
|
|
243
|
-
console.log('║\x1b[0m
|
|
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║');
|
|
244
244
|
console.log('║ ║');
|
|
245
245
|
console.log('╚════════════════════════════════════╝\x1b[0m');
|
|
246
246
|
console.log();
|
|
247
247
|
|
|
248
|
-
// Step 5: Wait for Enter, then launch Claude Code
|
|
248
|
+
// Step 5: Wait for Enter, then launch Claude Code with /autoconfig
|
|
249
249
|
const rl = readline.createInterface({
|
|
250
250
|
input: process.stdin,
|
|
251
251
|
output: process.stdout
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
rl.question('\x1b[90mPress ENTER to
|
|
254
|
+
rl.question('\x1b[90mPress ENTER to continue...\x1b[0m', () => {
|
|
255
255
|
rl.close();
|
|
256
256
|
|
|
257
257
|
console.log();
|
|
258
|
-
console.log('\x1b[36m%s\x1b[0m', '🚀 Launching Claude Code...');
|
|
258
|
+
console.log('\x1b[36m%s\x1b[0m', '🚀 Launching Claude Code with /autoconfig...');
|
|
259
259
|
console.log();
|
|
260
260
|
|
|
261
|
-
// Spawn claude
|
|
262
|
-
|
|
261
|
+
// Spawn claude with /autoconfig as initial prompt
|
|
262
|
+
// Use --permission-mode=acceptEdits to auto-approve file edits during setup
|
|
263
|
+
const claude = spawn('claude', ['--permission-mode=acceptEdits', '/autoconfig'], {
|
|
263
264
|
cwd: cwd,
|
|
264
265
|
stdio: 'inherit',
|
|
265
266
|
shell: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.42",
|
|
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",
|