Repository navigation
mission-control draws its code map on Windows - #133
ManushPatel08 wants to merge 4 commits into
Conversation
The Code view ran Chrome from its macOS path through sh, so on Windows it only said it needed Chrome. And no Windows terminal shows images, so even a found Chrome would have drawn the alt text alone. On Windows the Code view now lists the map as lines (state, imports, the why), and b opens the drawn map in the default browser as a page that reloads itself, redrawn on each change once it is open. No Chrome is needed: the browser draws the SVG. Backslash paths are turned to slashes, so names and imports resolve. The test mocks now read paths the way the engine hands them on Windows (C:\tmp\...), which two tests tripped on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/mods.md # mods/mission-control/tests/mission-control.test.tsx
…ite says so The engine makes no folders, so %TEMP%\mission-control\ might not exist and b did nothing. The page is now %TEMP%\mission-control-map.html, and a page that can't be written shows an error instead of failing silently. Bumps mission-control to 0.1.5 and adds the Windows note to the site page.
|
Thanks for this, it's a smart way round terminals that show no images. I pushed two commits on top of yours (no force push, your commit is unchanged), so please pull before pushing again:
Tests: Not changed, for later: once opened, the page keeps redrawing for the rest of the session, and it reloads every 2 seconds. |
# Conflicts: # README.md # mods/mission-control/hooks/register.tsx # mods/mission-control/tests/mission-control.test.tsx
|
I merged main in again (normal push, nothing of yours rewritten), so please pull first. #144 had just taken mission-control to 0.1.5, so this PR is now 0.1.6. Both sides are kept: your Windows view plus main's single clock and caught redraws. Still the one thing before merging: could you press |
What changed
On Windows,
/mission codeonly said "The code map needs Google Chrome at /Applications/Google Chrome.app/…": the Code view runs Chrome from its macOS path throughsh. Fixing the path alone would not help, sinceImagedraws pixels only in kitty, Ghostty and iTerm2, so Windows Terminal would show just the alt text.On Windows only (macOS takes the same path as before):
b(a Browser button in the Code view) writes the drawn SVG into a page that reloads itself,%TEMP%\mission-control\map.html, and opens it withexplorer.exe. Once open, each change redraws it. No Chrome is needed: the browser draws the SVG.file_pathbackslashes become slashes, sotitleOfandimportsOfwork. Before, a file's title was its wholeC:\…path and no import resolved.docs/mods.mdnotes say what the Code view does on Windows.Tests:
bwrites and opens the page, and the page follows later changes./tmp/xarrives asC:\tmp\x), which made two existing tests fail there.claude plugin test mods/mission-control9 pass;claude plugin validate .andmods/mission-controlpass;node --test test/*.test.mjs33 of 34, and the one failure (the publish workflow regex) fails the same onmainin a CRLF checkout.Checklist
claude plugin validate mods/<name>passesclaude plugin test mods/<name>passesplugin.jsonand in.claude-plugin/marketplace.json.claude-plugin/marketplace.jsondocs/mods.mdnotes🤖 Generated with Claude Code