@johnz4021/illuminate 0.5.9 → 0.5.11
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 +19 -0
- package/dist/cli.mjs +17 -5
- package/package.json +9 -2
- package/viewer/assets/{elk.bundled-BvipFih1.js → elk.bundled-CFqJpz5w.js} +2 -2
- package/viewer/assets/{elk.bundled-BvipFih1.js.map → elk.bundled-CFqJpz5w.js.map} +1 -1
- package/viewer/assets/{index-B-WlclrW.css → index-B01B3ZY-.css} +1 -1
- package/viewer/assets/{index-CI2xGp2V.js → index-lekTehua.js} +24 -24
- package/viewer/assets/index-lekTehua.js.map +1 -0
- package/viewer/index.html +2 -2
- package/viewer/assets/index-CI2xGp2V.js.map +0 -1
package/README.md
CHANGED
|
@@ -61,6 +61,20 @@ For Codex, see [Codex (preview)](#codex-preview).
|
|
|
61
61
|
- **Claude doesn't make a map after the restart:** run `/mcp` in Claude Code. It shows whether the illuminate server
|
|
62
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
63
|
install or update it, and tells you what to restart.
|
|
64
|
+
- **`/mcp` says illuminate "failed" or "Connection closed", but Node and Claude Code are new enough:** the first time
|
|
65
|
+
Claude Code starts illuminate, `npx` has to download it, and on a slow connection that can take longer than Claude
|
|
66
|
+
Code waits. Download it once yourself in a terminal (it starts, then exits straight away):
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
npx -y @johnz4021/illuminate@0.5.10 channel </dev/null
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Then, in Claude Code, run `/mcp`, choose **plugin:illuminate:illuminate** and **Reconnect** (or restart Claude Code).
|
|
73
|
+
It starts quickly from then on. If that command prints an error instead, that error is the real problem: please
|
|
74
|
+
[open an issue](https://github.com/johnz4021/illuminate/issues) with it. An error about a missing
|
|
75
|
+
`@oxc-parser/binding-…` usually means npm's cache is damaged: delete `~/.npm/_npx` and run the command again.
|
|
76
|
+
Versions before 0.5.10 downloaded about 170 MB the first time, so this happened much more often; update with the
|
|
77
|
+
steps below.
|
|
64
78
|
|
|
65
79
|
## Updating
|
|
66
80
|
|
|
@@ -249,6 +263,11 @@ npm run illume -- check <map-id> --repo <dir> # re-check a saved map against th
|
|
|
249
263
|
|
|
250
264
|
Options: `--port <n>` (default 4317), `--no-open`, `--model <id>` (default `claude-opus-5-5`, or `ILLUMINATE_MODEL`).
|
|
251
265
|
|
|
266
|
+
The published package runs the CLI too, but leaves out the Agent SDK it needs to call Claude on its own (it brings a
|
|
267
|
+
whole Claude Code binary, about 250 MB, which the plugin doesn't need). Install the two together:
|
|
268
|
+
`npm i -g @johnz4021/illuminate @anthropic-ai/claude-agent-sdk@0.3.296`, then `illume "<question>"`. A checkout
|
|
269
|
+
already has it.
|
|
270
|
+
|
|
252
271
|
Claude access: an `ANTHROPIC_API_KEY` (a logged-in Claude Code also works for your own use, but don't hand illuminate to
|
|
253
272
|
others that way: Anthropic doesn't allow products on the Agent SDK to use people's claude.ai sign-in). To keep the key in a file,
|
|
254
273
|
`cp .env.example .env` at the root of this checkout and fill it in; the CLI loads it, and your shell's variables win.
|
package/dist/cli.mjs
CHANGED
|
@@ -3350,7 +3350,6 @@ var init_src2 = __esm({
|
|
|
3350
3350
|
|
|
3351
3351
|
// packages/server/src/agent.ts
|
|
3352
3352
|
import * as path4 from "node:path";
|
|
3353
|
-
import { query } from "@anthropic-ai/claude-agent-sdk";
|
|
3354
3353
|
function progressOf(name, input, cwd) {
|
|
3355
3354
|
const rel = (p) => typeof p === "string" ? path4.relative(cwd, path4.resolve(cwd, p)) || "." : "";
|
|
3356
3355
|
if (name === "Read") return { kind: "read", text: `Reading ${rel(input.file_path)}` };
|
|
@@ -3376,7 +3375,19 @@ function secretGuard(cwd) {
|
|
|
3376
3375
|
return {};
|
|
3377
3376
|
};
|
|
3378
3377
|
}
|
|
3379
|
-
|
|
3378
|
+
async function loadSdk() {
|
|
3379
|
+
try {
|
|
3380
|
+
return await import("@anthropic-ai/claude-agent-sdk");
|
|
3381
|
+
} catch (err) {
|
|
3382
|
+
const e = err;
|
|
3383
|
+
const missing = (e.code === "ERR_MODULE_NOT_FOUND" || e.code === "MODULE_NOT_FOUND") && String(e.message).includes(`'${AGENT_SDK}'`);
|
|
3384
|
+
if (!missing) throw err;
|
|
3385
|
+
throw new Error(
|
|
3386
|
+
`illume needs ${AGENT_SDK} to ask Claude on its own. Install it next to illuminate (npm i -g @johnz4021/illuminate ${AGENT_SDK}), or use illuminate from Claude Code with the plugin, which needs neither.`
|
|
3387
|
+
);
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
var DEFAULT_MODEL, READ_ONLY, NOT_SECRETS, AGENT_SDK, sdkAgent;
|
|
3380
3391
|
var init_agent = __esm({
|
|
3381
3392
|
"packages/server/src/agent.ts"() {
|
|
3382
3393
|
"use strict";
|
|
@@ -3384,7 +3395,9 @@ var init_agent = __esm({
|
|
|
3384
3395
|
DEFAULT_MODEL = process.env.ILLUMINATE_MODEL ?? "claude-opus-5-5";
|
|
3385
3396
|
READ_ONLY = ["Read", "Grep", "Glob"];
|
|
3386
3397
|
NOT_SECRETS = "!**/{.env,.env.*,*.pem,*.key,*.p12,id_rsa*,id_ed25519*,.npmrc,.netrc}";
|
|
3398
|
+
AGENT_SDK = "@anthropic-ai/claude-agent-sdk";
|
|
3387
3399
|
sdkAgent = async (req) => {
|
|
3400
|
+
const { query } = await loadSdk();
|
|
3388
3401
|
const abortController = new AbortController();
|
|
3389
3402
|
req.signal?.addEventListener("abort", () => abortController.abort(), { once: true });
|
|
3390
3403
|
const tools = READ_ONLY.filter((t) => (req.tools ?? READ_ONLY).includes(t));
|
|
@@ -3806,8 +3819,7 @@ var init_prompts = __esm({
|
|
|
3806
3819
|
"- 2\u20136 `areas` named in product language (Patients, Billing, Background jobs), not folder names.",
|
|
3807
3820
|
"- Aim for 6\u20138 boxes (`nodes`); 12 is a hard ceiling, reached only when the question asks about several things at once. A map is an answer, not an inventory: someone should be able to hold it in their head. Each box is one step a person would recognize and that the answer turns on.",
|
|
3808
3821
|
"- Leave plumbing off the map unless the question is about it: a request arriving, a job being started, a result being saved, an update being sent to the screen. Fold each into the box it serves and say it in that box's `explain` or on the arrow.",
|
|
3809
|
-
"- When several steps in a row just hand on to the next (a route that calls a handler that calls a service), they are one box, cited at the step that matters.",
|
|
3810
|
-
'- A wrapper is not just handing on: a function that works out or fixes some of what it passes before calling another (who the owner is, a mode turned on or off, a value computed from the caller) is its own box, cited in the wrapper itself, never folded into its caller or the function it calls. Its `explain` says what it fills in and how ("Makes whoever signed the owner, and turns safe mode off, then creates the record"). People new to the code can\'t guess those values from the function it calls.',
|
|
3822
|
+
"- When several steps in a row just hand on to the next (a route that calls a handler that calls a service), they are one box, cited at the step that matters. If one of them fills in or changes what it passes along (who the owner is, a mode turned on or off, a value worked out from the caller), say that in the box's `explain` and cite its line too.",
|
|
3811
3823
|
"- When what they ask about can happen more than one way (two ways to sign up, a request through the server and a direct call, two modes), draw each way to where they meet, unless they asked about one of them. Someone new to the code needs to know the others exist. Each way can be a box or two.",
|
|
3812
3824
|
"- When the answer is a list of like things (five kinds of rule, four checks), that is one box naming the group, or at most the two or three that differ in a way the question cares about; put the rest in `explain`.",
|
|
3813
3825
|
"- Before returning, go through the boxes one at a time: if the answer would be the same without it, drop or merge it.",
|
|
@@ -5047,7 +5059,7 @@ var VERSION, PACKAGE, DAY;
|
|
|
5047
5059
|
var init_updates = __esm({
|
|
5048
5060
|
"packages/server/src/updates.ts"() {
|
|
5049
5061
|
"use strict";
|
|
5050
|
-
VERSION = true ? "0.5.
|
|
5062
|
+
VERSION = true ? "0.5.11" : void 0;
|
|
5051
5063
|
PACKAGE = "@johnz4021/illuminate";
|
|
5052
5064
|
DAY = 24 * 60 * 60 * 1e3;
|
|
5053
5065
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnz4021/illuminate",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"description": "Checked, interactive maps of how your code works, drawn by your own Claude Code session.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"node": ">=20.19"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.296",
|
|
34
33
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
35
34
|
"@vscode/tree-sitter-wasm": "0.3.1",
|
|
36
35
|
"es-module-lexer": "1.7.0",
|
|
@@ -41,5 +40,13 @@
|
|
|
41
40
|
"ws": "8.22.0",
|
|
42
41
|
"yaml": "2.9.1",
|
|
43
42
|
"zod": "4.6.6"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.296"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"@anthropic-ai/claude-agent-sdk": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
44
51
|
}
|
|
45
52
|
}
|