claude-code-autoconfig 1.0.138 → 1.0.140
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.
|
@@ -4,10 +4,7 @@ Recover recent conversation context from the raw session transcript on disk.
|
|
|
4
4
|
|
|
5
5
|
Usage:
|
|
6
6
|
- `/recover-context -60` — last 60 minutes of conversation
|
|
7
|
-
- `/recover-context 60` — same
|
|
8
|
-
- `/recover-context -30` — last 30 minutes
|
|
9
|
-
- `/recover-context -120` — last 2 hours
|
|
10
|
-
- `/recover-context -60 --show` — same as above, but also opens the filtered transcript in default editor
|
|
7
|
+
- `/recover-context -60 --show` — same, but also opens the transcript in your editor
|
|
11
8
|
|
|
12
9
|
The number means "go back N minutes from now." The leading dash is optional. The minutes argument is **required**.
|
|
13
10
|
|
|
@@ -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 --show</code> — same, but also opens the transcript in your 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
|
-->
|
|
@@ -1760,10 +1760,7 @@ Run tests, bump the patch version, commit, push, and publish to npm.
|
|
|
1760
1760
|
|
|
1761
1761
|
Usage:
|
|
1762
1762
|
- \`/recover-context -60\` — last 60 minutes of conversation
|
|
1763
|
-
- \`/recover-context 60\` — same
|
|
1764
|
-
- \`/recover-context -30\` — last 30 minutes
|
|
1765
|
-
- \`/recover-context -120\` — last 2 hours
|
|
1766
|
-
- \`/recover-context -60 --show\` — same as above, but also opens the filtered transcript in default editor
|
|
1763
|
+
- \`/recover-context -60 --show\` — same, but also opens the transcript in your editor
|
|
1767
1764
|
|
|
1768
1765
|
The number means "go back N minutes from now." The leading dash is optional. The minutes argument is **required**.
|
|
1769
1766
|
|
|
@@ -1785,7 +1782,9 @@ ls -t ~/.claude/projects/*/*.jsonl 2>/dev/null | head -1
|
|
|
1785
1782
|
|
|
1786
1783
|
If no transcript is found, tell the user and stop.
|
|
1787
1784
|
|
|
1788
|
-
## Step 3: Extract conversation context
|
|
1785
|
+
## Step 3: Extract conversation context
|
|
1786
|
+
|
|
1787
|
+
Run this Python script to extract the stripped-down conversation. Substitute \`$MINUTES\` with the resolved minutes value and \`$TRANSCRIPT_PATH\` with the path from Step 2:`
|
|
1789
1788
|
},
|
|
1790
1789
|
'show-docs': {
|
|
1791
1790
|
filename: 'show-docs.md',
|
|
@@ -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.140",
|
|
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",
|