claude-setup 1.1.1 → 1.1.2
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/README.md +119 -45
- package/dist/builder.js +131 -32
- package/dist/collect.js +40 -5
- package/dist/commands/add.js +10 -7
- package/dist/commands/doctor.d.ts +5 -1
- package/dist/commands/doctor.js +5 -1
- package/dist/commands/init.d.ts +3 -1
- package/dist/commands/init.js +40 -9
- package/dist/commands/remove.js +2 -1
- package/dist/commands/status.js +123 -11
- package/dist/commands/sync.d.ts +3 -1
- package/dist/commands/sync.js +35 -7
- package/dist/config.d.ts +14 -0
- package/dist/config.js +89 -3
- package/dist/doctor.d.ts +1 -1
- package/dist/doctor.js +259 -23
- package/dist/index.js +31 -9
- package/dist/os.d.ts +20 -0
- package/dist/os.js +38 -0
- package/dist/output.d.ts +18 -0
- package/dist/output.js +40 -0
- package/package.json +1 -1
- package/templates/add.md +8 -4
- package/templates/init.md +81 -17
- package/templates/remove.md +10 -5
- package/templates/sync.md +28 -13
package/templates/remove.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Remove from setup: "{{USER_INPUT}}"
|
|
4
4
|
|
|
5
|
-
## Current setup
|
|
5
|
+
## Current setup — read everything before touching any file
|
|
6
6
|
|
|
7
7
|
{{#if HAS_CLAUDE_MD}}
|
|
8
8
|
### CLAUDE.md
|
|
@@ -22,10 +22,15 @@ Remove from setup: "{{USER_INPUT}}"
|
|
|
22
22
|
Skills: {{SKILLS_LIST}} | Commands: {{COMMANDS_LIST}} | Workflows: {{WORKFLOWS_LIST}}
|
|
23
23
|
|
|
24
24
|
## Rules
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
25
|
+
- Find everything related to the removal request across ALL files above.
|
|
26
|
+
- Remove surgically — section by section, key by key.
|
|
27
|
+
- Never delete an entire file. Remove only the relevant section.
|
|
28
|
+
- Never remove content unrelated to the request.
|
|
29
|
+
- After every edit, the file MUST remain valid (JSON stays valid JSON, etc.)
|
|
30
|
+
- If not found anywhere: say so and stop.
|
|
31
|
+
- Check for dangling references: if removing an MCP server, check if any hook or skill references its env vars.
|
|
28
32
|
|
|
29
33
|
## Output — one line per file
|
|
30
|
-
Removed: ✅ [path] — [what removed]
|
|
34
|
+
Removed: ✅ [path] — [what was removed]
|
|
31
35
|
Not found: ⏭ [path] — not referenced
|
|
36
|
+
Dangling: ⚠️ [path] — still references [removed thing]
|
package/templates/sync.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
<!-- claude-setup sync {{DATE}} | last: {{LAST_RUN_DATE}} -->
|
|
2
2
|
|
|
3
|
-
Project changed since last setup. Update
|
|
3
|
+
Project changed since last setup. Update ONLY what the changes demand.
|
|
4
4
|
|
|
5
|
-
## Changes
|
|
6
|
-
|
|
5
|
+
## Changes since last setup
|
|
6
|
+
|
|
7
|
+
### Added files
|
|
7
8
|
{{ADDED_FILES}}
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
### Modified files
|
|
9
11
|
{{MODIFIED_FILES}}
|
|
10
|
-
|
|
12
|
+
|
|
13
|
+
### Deleted files
|
|
11
14
|
{{DELETED_FILES}}
|
|
12
15
|
|
|
13
|
-
## Current setup
|
|
16
|
+
## Current setup — read before touching
|
|
14
17
|
|
|
15
18
|
{{#if HAS_CLAUDE_MD}}
|
|
16
19
|
### CLAUDE.md
|
|
@@ -29,11 +32,23 @@ Project changed since last setup. Update only what the changes demand.
|
|
|
29
32
|
|
|
30
33
|
Skills: {{SKILLS_LIST}} | Commands: {{COMMANDS_LIST}}
|
|
31
34
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
## Your job
|
|
36
|
+
|
|
37
|
+
For EACH changed file: does this change have any implication for the Claude Code setup?
|
|
38
|
+
|
|
39
|
+
Reason about the signal:
|
|
40
|
+
- New dependency → new MCP server needed? New hook justified?
|
|
41
|
+
- New docker-compose service → new MCP entry? Env vars changed?
|
|
42
|
+
- Source file added/removed → CLAUDE.md paths stale? Skill still applies?
|
|
43
|
+
- Config deleted → remove its MCP/hook reference if it was the only evidence?
|
|
44
|
+
|
|
45
|
+
Update ONLY what the change demands.
|
|
46
|
+
Do NOT update things that did not change.
|
|
47
|
+
Do NOT rewrite files — surgical edits only.
|
|
48
|
+
If unsure about a change's implication: flag it, don't guess.
|
|
49
|
+
|
|
50
|
+
## Output — one line per file, nothing else
|
|
35
51
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Flagged: ⚠️ [needs developer decision]
|
|
52
|
+
Updated: ✅ [path] — triggered by: [which changed file and why]
|
|
53
|
+
Skipped: ⏭ [path] — [why this change has no setup implication]
|
|
54
|
+
Flagged: ⚠️ [something that needs the developer's decision]
|