claude-code-autoconfig 1.0.138 → 1.0.139
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.
|
@@ -1263,7 +1263,7 @@
|
|
|
1263
1263
|
title: '.claude/ Directory',
|
|
1264
1264
|
desc: 'Commands, rules, settings, and these docs. Keeps configuration organized as your project grows.'
|
|
1265
1265
|
},
|
|
1266
|
-
|
|
1266
|
+
'rules': {
|
|
1267
1267
|
title: 'rules/',
|
|
1268
1268
|
desc: 'Path-scoped context that loads when Claude works on matching files.'
|
|
1269
1269
|
},
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
},
|
|
1306
1306
|
'gls': {
|
|
1307
1307
|
title: 'gls.md',
|
|
1308
|
-
desc: 'gls.md in commands
|
|
1308
|
+
desc: 'gls.md in commands/<div style="margin-top: 10px;"><strong>Usage:</strong><ul style="margin: 6px 0 0 0; padding-left: 20px; list-style: disc;"><li><code>/gls</code> - Get and display the most recent screenshot</li><li><code>/gls-2</code> - Get and display the 2 most recent screenshots</li><li><code>/gls-3</code> - Get and display the 3 most recent screenshots</li><li><code>/gls-N</code> - Get and display the N most recent screenshots</li><li><code>/gls /path/to/dir</code> - Use a specific directory and save it</li></ul></div>',
|
|
1309
1309
|
trigger: '/gls'
|
|
1310
1310
|
},
|
|
1311
1311
|
'publish': {
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
},
|
|
1316
1316
|
'recover-context': {
|
|
1317
1317
|
title: 'recover-context.md',
|
|
1318
|
-
desc: 'Recovers conversation context from the session transcript after compaction
|
|
1318
|
+
desc: 'Recovers conversation context from the session transcript after compaction.<div style="margin-top: 10px;"><strong>Usage:</strong><ul style="margin: 6px 0 0 0; padding-left: 20px; list-style: disc;"><li><code>/recover-context -60</code> — last 60 minutes of conversation</li><li><code>/recover-context 60</code> — same thing (dash is optional)</li><li><code>/recover-context -30</code> — last 30 minutes</li><li><code>/recover-context -120</code> — last 2 hours</li><li><code>/recover-context -60 --show</code> — same as above, but also opens the filtered transcript in default editor</li></ul></div>',
|
|
1319
1319
|
trigger: '/recover-context'
|
|
1320
1320
|
},
|
|
1321
1321
|
'show-docs': {
|
|
@@ -1569,7 +1569,7 @@ CRITICAL: A plausible-looking cause from code reading is NOT confirmed evidence.
|
|
|
1569
1569
|
|
|
1570
1570
|
> Run \`/autoconfig\` to populate this based on your project.`
|
|
1571
1571
|
},
|
|
1572
|
-
|
|
1572
|
+
'autoconfig-update': {
|
|
1573
1573
|
filename: 'autoconfig-update.md',
|
|
1574
1574
|
content: `<!-- @applied
|
|
1575
1575
|
-->
|
|
@@ -83,7 +83,7 @@ function extractDescription(content, ext) {
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Extract usage lines from a command file's content.
|
|
86
|
-
* Looks for a "Usage:" section and
|
|
86
|
+
* Looks for a "Usage:" section and returns HTML-formatted usage list.
|
|
87
87
|
*/
|
|
88
88
|
function extractUsage(content) {
|
|
89
89
|
const lines = content.split(/\r?\n/);
|
|
@@ -94,14 +94,21 @@ function extractUsage(content) {
|
|
|
94
94
|
for (let i = usageIdx + 1; i < lines.length; i++) {
|
|
95
95
|
const line = lines[i].trim();
|
|
96
96
|
if (line.startsWith('- ')) {
|
|
97
|
-
|
|
97
|
+
// Convert markdown backticks to <code> tags and strip leading "- "
|
|
98
|
+
const item = line.slice(2)
|
|
99
|
+
.replace(/`([^`]+)`/g, '<code>$1</code>');
|
|
100
|
+
usageLines.push(item);
|
|
98
101
|
} else if (line === '') {
|
|
99
102
|
continue; // skip blank lines within usage block
|
|
100
103
|
} else {
|
|
101
104
|
break; // end of usage block
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
|
-
|
|
107
|
+
if (usageLines.length === 0) return null;
|
|
108
|
+
|
|
109
|
+
// Build an HTML list
|
|
110
|
+
const listItems = usageLines.map(l => `<li>${l}</li>`).join('');
|
|
111
|
+
return `<div style="margin-top: 10px;"><strong>Usage:</strong><ul style="margin: 6px 0 0 0; padding-left: 20px; list-style: disc;">${listItems}</ul></div>`;
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
/**
|
|
@@ -343,7 +350,7 @@ function generateTreeInfo(entries) {
|
|
|
343
350
|
|
|
344
351
|
let fullDesc = entry.desc;
|
|
345
352
|
if (entry.usage) {
|
|
346
|
-
fullDesc +=
|
|
353
|
+
fullDesc += entry.usage;
|
|
347
354
|
}
|
|
348
355
|
const escapedDesc = fullDesc.replace(/'/g, "\\'");
|
|
349
356
|
lines.push(` '${entry.key}': {`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.139",
|
|
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",
|