claude-code-autoconfig 1.0.103 → 1.0.105
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 +10 -4
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -301,12 +301,16 @@ const agentsSrc = path.join(packageDir, '.claude', 'agents');
|
|
|
301
301
|
const feedbackSrc = path.join(packageDir, '.claude', 'feedback');
|
|
302
302
|
const hooksSrc = path.join(packageDir, '.claude', 'hooks');
|
|
303
303
|
|
|
304
|
+
// Files that exist in the dev repo but should never be installed to user projects
|
|
305
|
+
const DEV_ONLY_FILES = ['publish.md', 'gls.md'];
|
|
306
|
+
|
|
304
307
|
function copyDir(src, dest) {
|
|
305
308
|
fs.mkdirSync(dest, { recursive: true });
|
|
306
309
|
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
307
310
|
|
|
308
311
|
for (const entry of entries) {
|
|
309
312
|
if (isReservedName(entry.name)) continue;
|
|
313
|
+
if (DEV_ONLY_FILES.includes(entry.name)) continue;
|
|
310
314
|
|
|
311
315
|
const srcPath = path.join(src, entry.name);
|
|
312
316
|
const destPath = path.join(dest, entry.name);
|
|
@@ -324,6 +328,7 @@ function copyDirIfMissing(src, dest) {
|
|
|
324
328
|
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
325
329
|
for (const entry of entries) {
|
|
326
330
|
if (isReservedName(entry.name)) continue;
|
|
331
|
+
if (DEV_ONLY_FILES.includes(entry.name)) continue;
|
|
327
332
|
const srcPath = path.join(src, entry.name);
|
|
328
333
|
const destPath = path.join(dest, entry.name);
|
|
329
334
|
if (entry.isDirectory()) {
|
|
@@ -399,10 +404,11 @@ const isUpgrade = (() => {
|
|
|
399
404
|
return false;
|
|
400
405
|
})();
|
|
401
406
|
|
|
402
|
-
//
|
|
403
|
-
//
|
|
404
|
-
//
|
|
405
|
-
|
|
407
|
+
// Pre-mark all bundled updates as applied when the @applied block is empty.
|
|
408
|
+
// On fresh installs, /autoconfig handles their content (e.g., debug methodology in MEMORY.md).
|
|
409
|
+
// On upgrades from pre-update-system versions, these updates are already baked in.
|
|
410
|
+
// The regex only matches an empty @applied block, so this is safe to run unconditionally.
|
|
411
|
+
{
|
|
406
412
|
const userCmdPath = path.join(claudeDest, 'commands', 'autoconfig-update.md');
|
|
407
413
|
const packageUpdatesDir = path.join(packageDir, '.claude', 'updates');
|
|
408
414
|
if (fs.existsSync(userCmdPath) && fs.existsSync(packageUpdatesDir)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
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",
|