claude-code-autoconfig 1.0.59 → 1.0.60
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.json +9 -1
- package/bin/cli.js +7 -16
- package/package.json +1 -1
package/.claude/settings.json
CHANGED
|
@@ -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,13 @@
|
|
|
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(start:*)",
|
|
31
|
+
"Bash(open:*)",
|
|
32
|
+
"Bash(xdg-open:*)"
|
|
25
33
|
],
|
|
26
34
|
"deny": [
|
|
27
35
|
"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
|
|
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
|
|
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:
|
|
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[
|
|
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 -
|
|
271
|
-
const
|
|
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.
|
|
3
|
+
"version": "1.0.60",
|
|
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",
|