claude-code-autoconfig 1.0.182 → 1.0.183

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/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.183
4
+ - fix: stop copying updates dir to user projects and clean up existing ones
5
+
3
6
  ## v1.0.182
4
7
  - fix: tight column alignment in docs parameter tables
5
8
 
@@ -144,6 +147,3 @@
144
147
  ## v1.0.134
145
148
  - fix: add missing hooks/updates to docs, expand sync tests
146
149
 
147
- ## v1.0.133
148
- - fix: add recover-context, gls, and autoconfig-update to interactive docs
149
-
package/bin/cli.js CHANGED
@@ -27,7 +27,7 @@ const WINDOWS_RESERVED = ['CON', 'PRN', 'AUX', 'NUL', 'COM1', 'COM2', 'COM3', 'C
27
27
  'LPT6', 'LPT7', 'LPT8', 'LPT9'];
28
28
 
29
29
  // Files/folders installed by autoconfig - don't backup these
30
- const AUTOCONFIG_FILES = ['commands', 'docs', 'agents', 'migration', 'hooks', 'updates', 'scripts', 'rules', 'feedback', 'settings.json', 'settings.local.json', '.mcp.json', '.autoconfig-version'];
30
+ const AUTOCONFIG_FILES = ['commands', 'docs', 'agents', 'migration', 'hooks', 'scripts', 'rules', 'feedback', 'settings.json', 'settings.local.json', '.mcp.json', '.autoconfig-version'];
31
31
 
32
32
  function isReservedName(name) {
33
33
  const baseName = name.replace(/\.[^.]*$/, '').toUpperCase();
@@ -497,11 +497,10 @@ if (fs.existsSync(scriptsSrc)) {
497
497
  copyDir(scriptsSrc, path.join(claudeDest, 'scripts'));
498
498
  }
499
499
 
500
- // Copy updates directory (new update files only, never overwrite existing)
501
- const updatesSrc = path.join(packageDir, '.claude', 'updates');
502
- if (fs.existsSync(updatesSrc)) {
503
- copyDirIfMissing(updatesSrc, path.join(claudeDest, 'updates'));
504
- }
500
+ // Note: updates directory is no longer copied to user projects.
501
+ // Update files are only used by --pull-updates (for /autoconfig-update).
502
+ // On fresh install, all updates are pre-marked as applied and the content
503
+ // is already baked into /autoconfig itself, so the files are unnecessary.
505
504
 
506
505
  // Copy settings.json — fresh install gets full copy, upgrades get hooks + permissions merged
507
506
  const settingsSrc = path.join(packageDir, '.claude', 'settings.json');
@@ -621,6 +620,13 @@ if (isUpgrade && (newCommands.length > 0 || updatedCommands.length > 0)) {
621
620
  }
622
621
  }
623
622
 
623
+ // Clean up updates directory — updates are tracked in the @applied block,
624
+ // so the .md files don't need to stay in the user's project
625
+ const userUpdatesDir = path.join(claudeDest, 'updates');
626
+ if (fs.existsSync(userUpdatesDir)) {
627
+ fs.rmSync(userUpdatesDir, { recursive: true });
628
+ }
629
+
624
630
  // Migrate FEEDBACK.md content to CLAUDE.md Discoveries section (one-time, on upgrade)
625
631
  if (isUpgrade) {
626
632
  const claudeMdPath = path.join(cwd, 'CLAUDE.md');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.182",
3
+ "version": "1.0.183",
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",