claude-code-autoconfig 1.0.177 → 1.0.178

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.
@@ -1268,7 +1268,7 @@
1268
1268
  title: '.claude/ Directory',
1269
1269
  desc: 'Commands, rules, settings, and these docs. Keeps configuration organized as your project grows.'
1270
1270
  },
1271
- 'rules': {
1271
+ 'rules': {
1272
1272
  title: 'rules/',
1273
1273
  desc: 'Path-scoped context that loads when Claude works on matching files.'
1274
1274
  },
@@ -1579,7 +1579,7 @@ CRITICAL: A plausible-looking cause from code reading is NOT confirmed evidence.
1579
1579
 
1580
1580
  > Run \`/autoconfig\` to populate this based on your project.`
1581
1581
  },
1582
- 'autoconfig-update': {
1582
+ 'autoconfig-update': {
1583
1583
  filename: 'autoconfig-update.md',
1584
1584
  content: `<!-- @applied
1585
1585
  -->
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.178
4
+ - fix: move insideClaude check before file copying
5
+
3
6
  ## v1.0.177
4
7
  - feat: add pre-install diagnostic logging and fix AUTOCONFIG_FILES
5
8
 
@@ -144,6 +147,3 @@
144
147
  ## v1.0.129
145
148
  - fix: tighten /recover-context confirmation to single line
146
149
 
147
- ## v1.0.128
148
- - fix: show estimated tokens instead of bytes in /recover-context
149
-
package/bin/cli.js CHANGED
@@ -160,6 +160,17 @@ const insideClaude = process.env.CLAUDECODE === '1';
160
160
  console.log('\x1b[36m%s\x1b[0m', '🚀 Claude Code Autoconfig');
161
161
  console.log();
162
162
 
163
+ // Block early if running inside Claude Code (unless --bootstrap)
164
+ if (insideClaude && !process.argv.includes('--bootstrap')) {
165
+ console.log('\x1b[31m%s\x1b[0m', '● The tool needs to be run from a regular terminal, not from within Claude Code.');
166
+ console.log();
167
+ console.log(' Open a separate terminal window and run:');
168
+ console.log();
169
+ console.log(' \x1b[36mnpx claude-code-autoconfig@latest\x1b[0m');
170
+ console.log();
171
+ process.exit(0);
172
+ }
173
+
163
174
  // Step 1: Check if Claude Code is installed
164
175
  function isClaudeInstalled() {
165
176
  try {
@@ -659,14 +670,7 @@ const launchCommand = isUpgrade ? '/autoconfig-update' : '/autoconfig';
659
670
 
660
671
  // --bootstrap: copy files only, exit silently (used by /autoconfig inside Claude)
661
672
  const bootstrapMode = process.argv.includes('--bootstrap');
662
- if (bootstrapMode || insideClaude) {
663
- if (!bootstrapMode) {
664
- // insideClaude without --bootstrap: block with clear message
665
- console.log();
666
- console.log('\x1b[31m%s\x1b[0m', `❌ npx claude-code-autoconfig must be run from a regular terminal.`);
667
- console.log('\x1b[32m%s\x1b[0m', `✅ Open a terminal outside Claude Code and run 👉 npx claude-code-autoconfig@latest`);
668
- console.log();
669
- }
673
+ if (bootstrapMode) {
670
674
  process.exit(0);
671
675
  }
672
676
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
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",