claude-code-autoconfig 1.0.133 → 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.
@@ -1,29 +1,21 @@
1
- <!-- @description Background worker that syncs the docs when .claude/ files change. -->
2
-
3
- # Docs Refresh Agent
4
-
5
- Incrementally update the docs' treeInfo when `.claude/` files are added or modified.
6
-
7
- ## Trigger
8
-
9
- - PostToolUse hook on Edit|Write to `.claude/`
10
-
11
- ## Scope
12
-
13
- - Read `.claude/**/*.md` for `@description` comments
14
- - Update `.claude/docs/autoconfig.docs.html` treeInfo
15
-
16
- ## Behavior
17
-
18
- 1. Check which `.claude/` file was just modified
19
- 2. Extract the `<!-- @description ... -->` comment from the top
20
- 3. Find the corresponding entry in the docs' `treeInfo` object
21
- 4. Update only that entry's `desc` field
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 1 -->
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: Check for Changes
8
+ ## Step 1: Sync Docs
9
9
 
10
- Compare modification times of files in `.claude/` against `.claude/docs/autoconfig.docs.html`.
10
+ Run the sync script to ensure the docs reflect the current state of `.claude/`:
11
11
 
12
- If any files or folders in `.claude/` have a newer modification time than the docs HTML:
13
- 1. Output: "Syncing docs with latest changes..."
14
- 2. Proceed to Step 2
12
+ ```bash
13
+ node .claude/scripts/sync-docs.js
14
+ ```
15
15
 
16
- If the docs are already current, skip to Step 3.
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
- ## Step 2: Delta Sync
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
- For each file in `.claude/` that is newer than the docs HTML:
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