@johnz4021/illuminate 0.5.2 → 0.5.4
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 +55 -6
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/viewer/assets/{elk.bundled-Uq41P_C7.js → elk.bundled-BIfdAZMH.js} +2 -2
- package/viewer/assets/{elk.bundled-Uq41P_C7.js.map → elk.bundled-BIfdAZMH.js.map} +1 -1
- package/viewer/assets/{index-DzcavrZw.css → index-Bcn6ZqFw.css} +1 -1
- package/viewer/assets/index-yqlrfm1R.js +71 -0
- package/viewer/assets/index-yqlrfm1R.js.map +1 -0
- package/viewer/index.html +2 -2
- package/viewer/assets/index-C_x6TUup.js +0 -71
- package/viewer/assets/index-C_x6TUup.js.map +0 -1
package/README.md
CHANGED
|
@@ -12,15 +12,55 @@ Design: [Codemap v1 Design](https://claude.ai/artifact/55L8tokprGe61qtfpDXJ5h).
|
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
You need Claude Code 2.1.275 or later (`claude --version`) and Node 20.19 or later (`node --version`). There is no API
|
|
16
|
+
key to set up: illuminate uses your own Claude Code session and sign-in.
|
|
17
|
+
|
|
18
|
+
**1. Install the plugin.** In a terminal:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
claude plugin install illuminate --marketplace johnz4021/illuminate
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or inside Claude Code:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
/plugin marketplace add johnz4021/illuminate
|
|
28
|
+
/plugin install illuminate@illuminate
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**2. Restart Claude Code.**
|
|
32
|
+
|
|
33
|
+
**3. Ask how something works**, in any repo:
|
|
34
|
+
|
|
35
|
+
> What happens when a user signs up?
|
|
36
|
+
|
|
37
|
+
Or start with `/illuminate`. A map opens in your browser after about a minute.
|
|
38
|
+
|
|
39
|
+
### Or have your agent install it
|
|
40
|
+
|
|
41
|
+
Paste this into Claude Code:
|
|
16
42
|
|
|
17
43
|
```
|
|
18
|
-
|
|
44
|
+
Install the illuminate plugin for Claude Code for me (https://github.com/johnz4021/illuminate):
|
|
45
|
+
1. Check `claude --version` is 2.1.275 or later and `node --version` is 20.19 or later. If Claude Code is older,
|
|
46
|
+
tell me to run `claude update` myself and stop. If Node is missing or older, tell me, and offer to install it
|
|
47
|
+
with what my machine already uses (nvm, fnm, volta, asdf or Homebrew); only do it if I say yes.
|
|
48
|
+
2. Run `claude plugin install illuminate --marketplace johnz4021/illuminate`. If it fails because the git clone
|
|
49
|
+
timed out, run it once more with CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS=300000 set.
|
|
50
|
+
3. Run `claude plugin list` and check illuminate is there and enabled.
|
|
51
|
+
4. Tell me to restart Claude Code, and suggest a first question to ask about this repo.
|
|
19
52
|
```
|
|
20
53
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
54
|
+
For Codex, see [Codex (preview)](#codex-preview).
|
|
55
|
+
|
|
56
|
+
### If it doesn't work
|
|
57
|
+
|
|
58
|
+
- **"Git clone timed out" while installing:** Claude Code downloads the plugin from GitHub, and a slow connection can
|
|
59
|
+
time out. Run the command again, or give it longer: `CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS=300000 claude plugin install
|
|
60
|
+
illuminate --marketplace johnz4021/illuminate`.
|
|
61
|
+
- **Claude doesn't make a map after the restart:** run `/mcp` in Claude Code. It shows whether the illuminate server
|
|
62
|
+
started, and its error if it didn't. The usual cause is Node: ask for a map anyway, and Claude checks Node, offers to
|
|
63
|
+
install or update it, and tells you what to restart.
|
|
24
64
|
|
|
25
65
|
## Updating
|
|
26
66
|
|
|
@@ -92,7 +132,7 @@ parts are now in the code.
|
|
|
92
132
|
- **Click any box or arrow** to see what it does and the code behind it: the function itself, with the lines the map
|
|
93
133
|
relies on marked and a link that opens the file in your editor at that line.
|
|
94
134
|
- **Ask a follow-up** in the box at the bottom, or select something first and ask about that. The answer lights up the
|
|
95
|
-
part of the map it's about. When the question is about the code itself ("what's in this payload?"), the answer comes
|
|
135
|
+
part of the map it's about, and when seeing it drawn helps, Claude adds it to the map, checked like the rest. When the question is about the code itself ("what's in this payload?"), the answer comes
|
|
96
136
|
with the lines that show it, each with a note.
|
|
97
137
|
- **Ask for a fix.** Claude proposes one, drawn on the map next to the exact change. Nothing is edited until you
|
|
98
138
|
approve it.
|
|
@@ -146,6 +186,15 @@ codex plugin marketplace add johnz4021/illuminate
|
|
|
146
186
|
codex plugin add illuminate@illuminate
|
|
147
187
|
```
|
|
148
188
|
|
|
189
|
+
Then restart Codex. Or paste this into Codex:
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
Install the illuminate plugin for Codex for me (https://github.com/johnz4021/illuminate):
|
|
193
|
+
1. Check `node --version` is 20.19 or later. If Node is missing or older, tell me and stop.
|
|
194
|
+
2. Run `codex plugin marketplace add johnz4021/illuminate`, then `codex plugin add illuminate@illuminate`.
|
|
195
|
+
3. Tell me to restart Codex, then to ask for a map in the chat.
|
|
196
|
+
```
|
|
197
|
+
|
|
149
198
|
Or add only the server: `codex mcp add illuminate -- npx -y @johnz4021/illuminate@latest channel`. From a checkout of
|
|
150
199
|
this repo: `npm i && npm run build`, then `codex mcp add illuminate -- node "$PWD/packages/server/bin/illuminate.mjs" channel`.
|
|
151
200
|
To update the plugin, refresh its marketplace with `codex plugin marketplace upgrade`; with `@latest`, restart Codex.
|
package/dist/cli.mjs
CHANGED
|
@@ -3802,7 +3802,7 @@ var init_prompts = __esm({
|
|
|
3802
3802
|
'- Box `name`: plain English, at most 30 characters ("Patient marked enrolled", not "markConverted()").',
|
|
3803
3803
|
"- `kind`: entry (a way in), step, store (table, queue, cache), external (outside service), job (scheduled or background work).",
|
|
3804
3804
|
"- `explain` for every box: just `concept`, 1\u20132 plain sentences, no jargon, saying what this step does. The box already shows its function and file, so leave those out.",
|
|
3805
|
-
'- Arrow `label`:
|
|
3805
|
+
'- Arrow `label`: a few words saying how one step leads to the next ("sends request", "calls", "announces", "every night"). People read an arrow as a sentence, "<from box> <label> <to box>", so the label\'s subject is the box it leaves. When someone else does the next step, say who or what sets it off ("then Alice claims", "once paid"), never only what the next box does.',
|
|
3806
3806
|
"- Code that exists but isn't reached from the start can still be boxes. Don't draw arrows that don't exist.",
|
|
3807
3807
|
`- An \`absence\` is a break in the flow you were asked about: a step on that path should lead to the next one and doesn't (something is announced that nothing listens for, a job that nothing ever starts). Most maps have none, and a map without one is complete. Don't go looking for one, and don't use one for a design choice or guarantee ("X never calls Y", "nothing here edits files"): say that in a box's explanation or the walkthrough instead. Don't record small mismatches beside the question (a command the docs don't mention, an unused option).`,
|
|
3808
3808
|
"- When there is a break, record it: the `claim` in plain words, the two boxes it should connect (`between`), and the exact `search` that proves nothing is there (`pattern`, `regex`, optional `paths` globs covering every file where the missing piece could live), with `matches` set to the count that search returns (usually 0). Run that search yourself with Grep first."
|
|
@@ -5024,7 +5024,7 @@ var VERSION, PACKAGE, DAY;
|
|
|
5024
5024
|
var init_updates = __esm({
|
|
5025
5025
|
"packages/server/src/updates.ts"() {
|
|
5026
5026
|
"use strict";
|
|
5027
|
-
VERSION = true ? "0.5.
|
|
5027
|
+
VERSION = true ? "0.5.4" : void 0;
|
|
5028
5028
|
PACKAGE = "@johnz4021/illuminate";
|
|
5029
5029
|
DAY = 24 * 60 * 60 * 1e3;
|
|
5030
5030
|
}
|