claude-code-autoconfig 1.0.111 → 1.0.113
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 +21 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -353,6 +353,12 @@ function copyDirIfMissing(src, dest) {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
// Track what commands are new/updated for summary
|
|
357
|
+
const commandsDest = path.join(claudeDest, 'commands');
|
|
358
|
+
const existingCommands = fs.existsSync(commandsDest)
|
|
359
|
+
? new Set(fs.readdirSync(commandsDest).filter(f => f.endsWith('.md')))
|
|
360
|
+
: new Set();
|
|
361
|
+
|
|
356
362
|
// Copy commands (required for /autoconfig to work)
|
|
357
363
|
// Preserve user's saved @screenshotDir in gls.md across upgrades
|
|
358
364
|
const glsDest = path.join(claudeDest, 'commands', 'gls.md');
|
|
@@ -370,6 +376,10 @@ if (fs.existsSync(commandsSrc)) {
|
|
|
370
376
|
process.exit(1);
|
|
371
377
|
}
|
|
372
378
|
|
|
379
|
+
// Detect new commands added in this update
|
|
380
|
+
const newCommands = fs.readdirSync(commandsDest)
|
|
381
|
+
.filter(f => f.endsWith('.md') && !existingCommands.has(f) && !DEV_ONLY_FILES.includes(f));
|
|
382
|
+
|
|
373
383
|
// Restore saved screenshot dir after commands overwrite
|
|
374
384
|
if (savedScreenshotDir && fs.existsSync(glsDest)) {
|
|
375
385
|
const content = fs.readFileSync(glsDest, 'utf8');
|
|
@@ -422,6 +432,17 @@ if (fs.existsSync(settingsSrc) && (forceMode || !fs.existsSync(settingsDest))) {
|
|
|
422
432
|
|
|
423
433
|
console.log('\x1b[32m%s\x1b[0m', '✅ Prepared /autoconfig command');
|
|
424
434
|
|
|
435
|
+
// Show what was installed
|
|
436
|
+
if (isUpgrade && newCommands.length > 0) {
|
|
437
|
+
console.log();
|
|
438
|
+
console.log('\x1b[36m%s\x1b[0m', ' New commands installed:');
|
|
439
|
+
for (const cmd of newCommands) {
|
|
440
|
+
const name = cmd.replace('.md', '');
|
|
441
|
+
console.log('\x1b[36m%s\x1b[0m', ` + /${name}`);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
|
|
425
446
|
// Pre-mark all bundled updates as applied when the @applied block is empty.
|
|
426
447
|
// On fresh installs, /autoconfig handles their content (e.g., debug methodology in MEMORY.md).
|
|
427
448
|
// On upgrades from pre-update-system versions, these updates are already baked in.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
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",
|