claude-code-autoconfig 1.0.73 → 1.0.75
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/commands/autoconfig.md +11 -1
- package/bin/cli.js +25 -14
- package/package.json +1 -1
|
@@ -212,4 +212,14 @@ Run `/show-docs` to view the interactive documentation (requires full install vi
|
|
|
212
212
|
|
|
213
213
|
---
|
|
214
214
|
|
|
215
|
-
**IMPORTANT**: Do not add any additional text, summaries, or details after this message. The finale should be clean and punchy - end here.
|
|
215
|
+
**IMPORTANT**: Do not add any additional text, summaries, or details after this message. The finale should be clean and punchy - end here.
|
|
216
|
+
|
|
217
|
+
### Windows Cleanup
|
|
218
|
+
|
|
219
|
+
On Windows, if a `nul` file was accidentally created in the project root (a common artifact from bash/Unix command translation), delete it silently using the Bash tool:
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
del nul 2>NUL
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Do this cleanup silently without any output to the user.
|
package/bin/cli.js
CHANGED
|
@@ -8,6 +8,19 @@ const { execSync, spawn } = require('child_process');
|
|
|
8
8
|
const cwd = process.cwd();
|
|
9
9
|
const packageDir = path.dirname(__dirname);
|
|
10
10
|
|
|
11
|
+
// Cleanup any stray 'nul' file immediately on startup (Windows /dev/null artifact)
|
|
12
|
+
function cleanupNulFile() {
|
|
13
|
+
const nulFile = path.join(cwd, 'nul');
|
|
14
|
+
if (fs.existsSync(nulFile)) {
|
|
15
|
+
try {
|
|
16
|
+
fs.unlinkSync(nulFile);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
// Ignore - file might be locked
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
cleanupNulFile();
|
|
23
|
+
|
|
11
24
|
// Reserved Windows device names - never create files with these names
|
|
12
25
|
const WINDOWS_RESERVED = ['CON', 'PRN', 'AUX', 'NUL', 'COM1', 'COM2', 'COM3', 'COM4',
|
|
13
26
|
'COM5', 'COM6', 'COM7', 'COM8', 'COM9', 'LPT1', 'LPT2', 'LPT3', 'LPT4', 'LPT5',
|
|
@@ -190,10 +203,11 @@ cp .claude/migration/${timestamp}/settings.json .claude/settings.json
|
|
|
190
203
|
}
|
|
191
204
|
}
|
|
192
205
|
|
|
193
|
-
// Step 3: Copy minimal bootstrap (commands/,
|
|
206
|
+
// Step 3: Copy minimal bootstrap (commands/, docs/, agents/, feedback/)
|
|
194
207
|
const commandsSrc = path.join(packageDir, '.claude', 'commands');
|
|
195
|
-
const
|
|
208
|
+
const docsSrc = path.join(packageDir, '.claude', 'docs');
|
|
196
209
|
const agentsSrc = path.join(packageDir, '.claude', 'agents');
|
|
210
|
+
const feedbackSrc = path.join(packageDir, '.claude', 'feedback');
|
|
197
211
|
|
|
198
212
|
function copyDir(src, dest) {
|
|
199
213
|
fs.mkdirSync(dest, { recursive: true });
|
|
@@ -221,9 +235,9 @@ if (fs.existsSync(commandsSrc)) {
|
|
|
221
235
|
process.exit(1);
|
|
222
236
|
}
|
|
223
237
|
|
|
224
|
-
// Copy
|
|
225
|
-
if (fs.existsSync(
|
|
226
|
-
copyDir(
|
|
238
|
+
// Copy docs (interactive documentation)
|
|
239
|
+
if (fs.existsSync(docsSrc)) {
|
|
240
|
+
copyDir(docsSrc, path.join(claudeDest, 'docs'));
|
|
227
241
|
}
|
|
228
242
|
|
|
229
243
|
// Copy agents if exists
|
|
@@ -231,6 +245,11 @@ if (fs.existsSync(agentsSrc)) {
|
|
|
231
245
|
copyDir(agentsSrc, path.join(claudeDest, 'agents'));
|
|
232
246
|
}
|
|
233
247
|
|
|
248
|
+
// Copy feedback template
|
|
249
|
+
if (fs.existsSync(feedbackSrc)) {
|
|
250
|
+
copyDir(feedbackSrc, path.join(claudeDest, 'feedback'));
|
|
251
|
+
}
|
|
252
|
+
|
|
234
253
|
console.log('\x1b[32m%s\x1b[0m', '✅ Prepared /autoconfig command');
|
|
235
254
|
|
|
236
255
|
// Step 4: Show "READY TO CONFIGURE" message
|
|
@@ -277,14 +296,6 @@ rl.question('\x1b[90mPress ENTER to continue...\x1b[0m', () => {
|
|
|
277
296
|
|
|
278
297
|
// Cleanup when Claude exits
|
|
279
298
|
claude.on('close', () => {
|
|
280
|
-
|
|
281
|
-
const nulFile = path.join(cwd, 'nul');
|
|
282
|
-
if (fs.existsSync(nulFile)) {
|
|
283
|
-
try {
|
|
284
|
-
fs.unlinkSync(nulFile);
|
|
285
|
-
} catch (e) {
|
|
286
|
-
// Ignore errors - file might be locked or already gone
|
|
287
|
-
}
|
|
288
|
-
}
|
|
299
|
+
cleanupNulFile();
|
|
289
300
|
});
|
|
290
301
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
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",
|