claude-code-autoconfig 1.0.0 → 1.0.1
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 +15 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
+
const { exec } = require('child_process');
|
|
5
6
|
|
|
6
7
|
const cwd = process.cwd();
|
|
7
8
|
const packageDir = path.dirname(__dirname);
|
|
@@ -59,6 +60,18 @@ console.log();
|
|
|
59
60
|
console.log('\x1b[36m%s\x1b[0m', '✨ Claude Code Autoconfig installed!');
|
|
60
61
|
console.log();
|
|
61
62
|
console.log('Once Claude Code is open:');
|
|
62
|
-
console.log('
|
|
63
|
-
console.log(' 2. Run \x1b[33m/show-guide\x1b[0m to open the interactive guide');
|
|
63
|
+
console.log(' Run \x1b[33m/autoconfig\x1b[0m to configure for your project');
|
|
64
64
|
console.log();
|
|
65
|
+
|
|
66
|
+
// Auto-open the guide in browser
|
|
67
|
+
const guidePath = path.join(cwd, '.claude', 'guide', 'autoconfig.guide.html');
|
|
68
|
+
if (fs.existsSync(guidePath)) {
|
|
69
|
+
console.log('\x1b[36m%s\x1b[0m', '📖 Opening interactive guide...');
|
|
70
|
+
const openCmd = process.platform === 'win32' ? 'start ""' :
|
|
71
|
+
process.platform === 'darwin' ? 'open' : 'xdg-open';
|
|
72
|
+
exec(`${openCmd} "${guidePath}"`, (err) => {
|
|
73
|
+
if (err) {
|
|
74
|
+
console.log('\x1b[33m%s\x1b[0m', ` Run /show-guide in Claude Code to view the guide`);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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",
|