Repository navigation
feat: sctx-map-views render plugin - #37
Draft
mindsocket wants to merge 1 commit into
Draft
mindsocket wants to merge 1 commit into
mindsocket wants to merge 1 commit into
Conversation
… HTML file Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019XphpeFwEYm8K11SoT9ewz
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sctx-map-views, a structured-context render plugin.sctx render <space> map-views.html -o map.htmlwrites the space and its map views as one self-contained interactive HTML file (scripts and styles inlined, no CDN).How
packages/sctx-map-views, bundled with Bun. It inlines the library's page template (structured-context-map-views/page.html) and/nodeentry; structured-context is imported for types only.exportGraph(),validate(options)andresourceDirs('map-views'). Validation options come from-d(semantic,depth,ruleFilter,includeGated), so severity stays core's.map-views: the definition-reading loop innode/index.tsis nowreadDefinitionFolders, shared byloadMapViewDefinitionsand the plugin.fillPageis exported from/node, andpage.htmlfrom the package exports.build:libraryisbuildwithout the CDN-checking artifact page, so CI, the pre-push hook and the plugin build can use it. The hook now links the plugin'snode_modulesand builds the library before checking.Checks
-doptions, missing callbacks); full suite, typecheck and lint pass.sctx renderwith a definition in.sctx/map-views/: 48 cards, no console errors.Not in this PR
sctx-map-viewsis published (the release workflow only publishespackages/map-views).sctx["map-views"]in a plugin's package.json (this repo's loader still readssctx.mapViews).Generated by Claude Code