@johnz4021/illuminate 0.5.8 → 0.5.10
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 +16 -3
- package/package.json +9 -2
- package/viewer/assets/{elk.bundled-zPTBQaxZ.js → elk.bundled-BvipFih1.js} +2 -2
- package/viewer/assets/{elk.bundled-zPTBQaxZ.js.map → elk.bundled-BvipFih1.js.map} +1 -1
- package/viewer/assets/{index-CD2Dl_jB.css → index-B-WlclrW.css} +1 -1
- package/viewer/assets/index-CI2xGp2V.js +82 -0
- package/viewer/assets/index-CI2xGp2V.js.map +1 -0
- package/viewer/index.html +2 -2
- package/viewer/assets/index-Q0V5V0eL.js +0 -82
- package/viewer/assets/index-Q0V5V0eL.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));
|
|
@@ -5047,7 +5060,7 @@ var VERSION, PACKAGE, DAY;
|
|
|
5047
5060
|
var init_updates = __esm({
|
|
5048
5061
|
"packages/server/src/updates.ts"() {
|
|
5049
5062
|
"use strict";
|
|
5050
|
-
VERSION = true ? "0.5.
|
|
5063
|
+
VERSION = true ? "0.5.10" : void 0;
|
|
5051
5064
|
PACKAGE = "@johnz4021/illuminate";
|
|
5052
5065
|
DAY = 24 * 60 * 60 * 1e3;
|
|
5053
5066
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnz4021/illuminate",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
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
|
}
|