claude-code-autoconfig 1.0.134 → 1.0.135
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/docs-refresh.md +21 -29
- package/.claude/commands/show-docs.md +9 -29
- package/.claude/docs/autoconfig.docs.html +565 -341
- package/.claude/scripts/sync-docs.js +556 -0
- package/bin/cli.js +7 -1
- package/package.json +1 -1
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
<!-- @description Background worker that syncs the docs when .claude/ files change. -->
|
|
2
|
-
|
|
3
|
-
# Docs Refresh Agent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
5. If file is new, add a new treeInfo entry
|
|
23
|
-
6. If file was deleted, remove the treeInfo entry
|
|
24
|
-
|
|
25
|
-
## Guidelines
|
|
26
|
-
|
|
27
|
-
- **Be fast**: Only touch the affected entry
|
|
28
|
-
- **Be minimal**: Don't reformat or reorganize unrelated code
|
|
29
|
-
- **Be silent**: Run in background, no output unless error
|
|
1
|
+
<!-- @description Background worker that syncs the docs when .claude/ files change. -->
|
|
2
|
+
|
|
3
|
+
# Docs Refresh Agent
|
|
4
|
+
|
|
5
|
+
Sync the interactive docs with the current state of `.claude/`.
|
|
6
|
+
|
|
7
|
+
## How
|
|
8
|
+
|
|
9
|
+
Run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
node .claude/scripts/sync-docs.js
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This scans `.claude/` for all files, extracts `@description` metadata, and updates the docs HTML (file tree, info cards, and content previews).
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
- After adding, modifying, or deleting files in `.claude/`
|
|
20
|
+
- Before opening docs with `/show-docs` (already built in)
|
|
21
|
+
- As a background task when `.claude/` files change
|
|
@@ -1,43 +1,23 @@
|
|
|
1
1
|
<!-- @description Opens the interactive docs in your browser. -->
|
|
2
|
-
<!-- @version
|
|
2
|
+
<!-- @version 2 -->
|
|
3
3
|
|
|
4
4
|
# Show Docs
|
|
5
5
|
|
|
6
6
|
Open the interactive documentation for Claude Code Autoconfig.
|
|
7
7
|
|
|
8
|
-
## Step 1:
|
|
8
|
+
## Step 1: Sync Docs
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Run the sync script to ensure the docs reflect the current state of `.claude/`:
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
```bash
|
|
13
|
+
node .claude/scripts/sync-docs.js
|
|
14
|
+
```
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
This scans all files in `.claude/` (commands, hooks, agents, feedback, updates, settings) and updates the docs HTML file tree, info cards, and content previews automatically. It's fast and idempotent.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
If the script fails (e.g., file not found), skip to Step 2 — the docs will still open with whatever content they have.
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
1. Map the file to its `fileContents` key in the docs HTML:
|
|
23
|
-
- `CLAUDE.md` → `claude-md`
|
|
24
|
-
- `settings.json` → `settings`
|
|
25
|
-
- `commands/autoconfig.md` → `autoconfig`
|
|
26
|
-
- `commands/show-docs.md` → `docs-cmd`
|
|
27
|
-
- `commands/sync-claude-md.md` → `sync-claude-md`
|
|
28
|
-
- `commands/commit-and-push.md` → `commit-and-push`
|
|
29
|
-
- `commands/enable-retro.md` → `enable-retro`
|
|
30
|
-
- `commands/test.md` → `test`
|
|
31
|
-
- `feedback/FEEDBACK.md` → `feedback-template`
|
|
32
|
-
- `agents/create-retro-item.md` → `create-retro-item` (only if `.claude/retro/` exists)
|
|
33
|
-
|
|
34
|
-
2. Read the current content of the changed file
|
|
35
|
-
|
|
36
|
-
3. Update only that entry's `content` value in the `fileContents` object in the docs HTML
|
|
37
|
-
|
|
38
|
-
4. After all deltas are applied, the docs HTML's modification time will naturally update
|
|
39
|
-
|
|
40
|
-
## Step 3: Open Docs
|
|
20
|
+
## Step 2: Open Docs
|
|
41
21
|
|
|
42
22
|
Open the docs in the default browser. Use the command matching the current OS:
|
|
43
23
|
|