claude-code-autoconfig 1.0.71 → 1.0.73
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/.claude/agents/{guide-refresh.md → docs-refresh.md} +5 -5
- package/.claude/commands/autoconfig.md +23 -11
- package/.claude/commands/{show-guide.md → show-docs.md} +17 -17
- package/.claude/{guide/autoconfig.guide.html → docs/autoconfig.docs.html} +1834 -1834
- package/README.md +5 -5
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<!-- @description Background worker that syncs the
|
|
1
|
+
<!-- @description Background worker that syncs the docs when .claude/ files change. -->
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# Docs Refresh Agent
|
|
4
4
|
|
|
5
|
-
Incrementally update the
|
|
5
|
+
Incrementally update the docs' treeInfo when `.claude/` files are added or modified.
|
|
6
6
|
|
|
7
7
|
## Trigger
|
|
8
8
|
|
|
@@ -11,13 +11,13 @@ Incrementally update the guide's treeInfo when `.claude/` files are added or mod
|
|
|
11
11
|
## Scope
|
|
12
12
|
|
|
13
13
|
- Read `.claude/**/*.md` for `@description` comments
|
|
14
|
-
- Update `.claude/
|
|
14
|
+
- Update `.claude/docs/autoconfig.docs.html` treeInfo
|
|
15
15
|
|
|
16
16
|
## Behavior
|
|
17
17
|
|
|
18
18
|
1. Check which `.claude/` file was just modified
|
|
19
19
|
2. Extract the `<!-- @description ... -->` comment from the top
|
|
20
|
-
3. Find the corresponding entry in the
|
|
20
|
+
3. Find the corresponding entry in the docs' `treeInfo` object
|
|
21
21
|
4. Update only that entry's `desc` field
|
|
22
22
|
5. If file is new, add a new treeInfo entry
|
|
23
23
|
6. If file was deleted, remove the treeInfo entry
|
|
@@ -173,31 +173,43 @@ Set session-level env vars:
|
|
|
173
173
|
- Optimize for Claude's efficiency, not human documentation
|
|
174
174
|
- When uncertain, leave it out — Claude can ask or explore
|
|
175
175
|
|
|
176
|
-
## Step 6: Update the
|
|
176
|
+
## Step 6: Update the Docs
|
|
177
177
|
|
|
178
|
-
After populating CLAUDE.md, update the
|
|
178
|
+
After populating CLAUDE.md, update the docs file preview to show the actual content:
|
|
179
179
|
|
|
180
|
-
1. Open `.claude/
|
|
180
|
+
1. Open `.claude/docs/autoconfig.docs.html`
|
|
181
181
|
2. Find the `fileContents` JavaScript object (search for `'claude-md':`)
|
|
182
182
|
3. Replace the `content` value with the actual CLAUDE.md content you just generated
|
|
183
183
|
4. Use template literal syntax and escape any backticks in the content
|
|
184
184
|
|
|
185
|
-
This ensures double-clicking CLAUDE.md in the
|
|
185
|
+
This ensures double-clicking CLAUDE.md in the docs shows the real generated content.
|
|
186
186
|
|
|
187
187
|
## After Completion
|
|
188
188
|
|
|
189
|
-
### Open
|
|
189
|
+
### Open Docs & Finale
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
**Only if `.claude/docs/autoconfig.docs.html` exists**, open it in the user's browser:
|
|
192
192
|
|
|
193
|
-
- macOS: `open .claude/
|
|
194
|
-
- Linux: `xdg-open .claude/
|
|
195
|
-
- Windows: `start .claude/
|
|
193
|
+
- macOS: `open .claude/docs/autoconfig.docs.html`
|
|
194
|
+
- Linux: `xdg-open .claude/docs/autoconfig.docs.html`
|
|
195
|
+
- Windows: `start .claude/docs/autoconfig.docs.html`
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
If the docs file exists, output:
|
|
198
198
|
|
|
199
199
|
---
|
|
200
200
|
|
|
201
|
-
✅ Setup complete! The interactive
|
|
201
|
+
✅ Setup complete! The interactive docs are now open in your browser.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
If the docs file does NOT exist (e.g., user ran `/autoconfig` without the full npx install), output:
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
✅ Setup complete!
|
|
210
|
+
|
|
211
|
+
Run `/show-docs` to view the interactive documentation (requires full install via `npx claude-code-autoconfig`).
|
|
212
|
+
|
|
213
|
+
---
|
|
202
214
|
|
|
203
215
|
**IMPORTANT**: Do not add any additional text, summaries, or details after this message. The finale should be clean and punchy - end here.
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<!-- @description Opens the interactive
|
|
1
|
+
<!-- @description Opens the interactive docs in your browser. -->
|
|
2
2
|
|
|
3
|
-
# Show
|
|
3
|
+
# Show Docs
|
|
4
4
|
|
|
5
|
-
Open the interactive
|
|
5
|
+
Open the interactive documentation for Claude Code Autoconfig.
|
|
6
6
|
|
|
7
7
|
## Step 1: Check for Changes
|
|
8
8
|
|
|
9
|
-
Compare modification times of files in `.claude/` against `.claude/
|
|
9
|
+
Compare modification times of files in `.claude/` against `.claude/docs/autoconfig.docs.html`.
|
|
10
10
|
|
|
11
|
-
If any files or folders in `.claude/` have a newer modification time than the
|
|
12
|
-
1. Output: "Syncing
|
|
11
|
+
If any files or folders in `.claude/` have a newer modification time than the docs HTML:
|
|
12
|
+
1. Output: "Syncing docs with latest changes..."
|
|
13
13
|
2. Proceed to Step 2
|
|
14
14
|
|
|
15
|
-
If the
|
|
15
|
+
If the docs are already current, skip to Step 3.
|
|
16
16
|
|
|
17
17
|
## Step 2: Delta Sync
|
|
18
18
|
|
|
19
|
-
For each file in `.claude/` that is newer than the
|
|
19
|
+
For each file in `.claude/` that is newer than the docs HTML:
|
|
20
20
|
|
|
21
|
-
1. Map the file to its `fileContents` key in the
|
|
21
|
+
1. Map the file to its `fileContents` key in the docs HTML:
|
|
22
22
|
- `CLAUDE.md` → `claude-md`
|
|
23
23
|
- `settings.json` → `settings`
|
|
24
24
|
- `commands/autoconfig.md` → `autoconfig`
|
|
25
|
-
- `commands/show-
|
|
25
|
+
- `commands/show-docs.md` → `docs-cmd`
|
|
26
26
|
- `commands/sync-claude-md.md` → `sync-claude-md`
|
|
27
27
|
- `commands/commit-and-push.md` → `commit-and-push`
|
|
28
28
|
- `commands/enable-retro.md` → `enable-retro`
|
|
@@ -32,21 +32,21 @@ For each file in `.claude/` that is newer than the guide HTML:
|
|
|
32
32
|
|
|
33
33
|
2. Read the current content of the changed file
|
|
34
34
|
|
|
35
|
-
3. Update only that entry's `content` value in the `fileContents` object in the
|
|
35
|
+
3. Update only that entry's `content` value in the `fileContents` object in the docs HTML
|
|
36
36
|
|
|
37
|
-
4. After all deltas are applied, the
|
|
37
|
+
4. After all deltas are applied, the docs HTML's modification time will naturally update
|
|
38
38
|
|
|
39
|
-
## Step 3: Open
|
|
39
|
+
## Step 3: Open Docs
|
|
40
40
|
|
|
41
|
-
Open the
|
|
41
|
+
Open the docs in the default browser using the appropriate command for the OS:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
44
|
# macOS
|
|
45
|
-
open .claude/
|
|
45
|
+
open .claude/docs/autoconfig.docs.html
|
|
46
46
|
|
|
47
47
|
# Linux
|
|
48
|
-
xdg-open .claude/
|
|
48
|
+
xdg-open .claude/docs/autoconfig.docs.html
|
|
49
49
|
|
|
50
50
|
# Windows
|
|
51
|
-
start .claude/
|
|
51
|
+
start .claude/docs/autoconfig.docs.html
|
|
52
52
|
```
|