Skip to content

feat(plugins): built-in map-views plugin for one-file HTML renders - #239

Merged
mindsocket merged 1 commit into
mainfrom
claude/project-thread-tmn7yk
Nov 15, 2026
Merged

mindsocket merged 1 commit into
mainfrom
claude/project-thread-tmn7yk

Conversation

@mindsocket

Copy link
Copy Markdown
Owner

What

sctx render <space> map-views.html -o map.html works without installing anything: it writes the space and its map views as one self-contained interactive HTML file.

How

  • src/plugins/map-views is a built-in plugin with a static format list. It imports the sctx-map-views package only when a space is rendered, because the package bundles the map view library and would otherwise slow every command's start.
  • sctx-map-views becomes a dependency. It has no structured-context dependency at runtime: it reads the graph, validation issues and map view folders through the render callbacks (exportGraph, validate, resourceDirs).
  • A test checks the static format list against the package's own.

Checks

bun run test, typecheck and lint pass. The render test writes a space to a page and finds the bundled map view definitions in it.

Alternative considered

Leaving it a separate install and hinting when a user renders without it. This was rejected because the plugin should work out of the box.


Generated by Claude Code

…file

The sctx-map-views package is imported when a space is rendered, so no other
command pays for its size.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019XphpeFwEYm8K11SoT9ewz
@claude

claude Bot commented Nov 15, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@mindsocket
mindsocket merged commit 07d5678 into main Nov 15, 2026
2 checks passed
@mindsocket
mindsocket deleted the claude/project-thread-tmn7yk branch November 15, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants