Repository navigation
Research site for any system: config file, morphogen site init/build, --base, Pages template (stacked on #112) - #114
Merged
Merged
Conversation
…build, --base, a Pages workflow template Everything one system's site needs (sources, title, description, owner, repo, system, labels, theme, navigation) now comes from a TOML config whose paths are relative to it; the templates name no system, repository or demo path. `morphogen site build --config PATH --out DIR [--base /prefix]` is `npm run build` in site/ with MORPHOGEN_SITE_CONFIG, MORPHOGEN_SITE_OUT and MORPHOGEN_SITE_BASE; with a base every link and asset starts with it. `morphogen site init` writes a starter site.toml and content folder into a research project, and skills/research-loop/research-site.yml deploys a user's site to GitHub Pages. Morphogen's demo still builds from site/config.toml. Tests: a second made-up system built through init and the CLI under /lab (its repo, labels, theme and header; every link resolves under the base), plus the existing escaping, steering, invalid-claim and multi-assessment checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
This branch was successfully 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.
Stacked on #112 (
claude/site-ssg, itself stacked on #111). Base isclaude/site-ssg; retarget when #112 merges, before that branch is deleted.The owner: "it feels like something anyone spinning up an instance of morphogen should have for themselves, to research and test things for their own system". This makes the research site a kit: the templates in
site/name no system, repository or demo path, and everything comes from a config file.The contract
morphogen site build --config PATH --out DIR [--base /prefix] [--install], the same asnpm run buildinsite/withMORPHOGEN_SITE_CONFIG,MORPHOGEN_SITE_OUTandMORPHOGEN_SITE_BASE./research/claims/x.html).--installrunsnpm ci --ignore-scriptsinsite/the first time.morphogen site init [ROOT] [--repo OWNER/NAME] [--system system:default/NAME] [--title] [--owner] [--force]writesROOT/site.tomlandROOT/site/about.md.originremote and the system tocatalog-info.yaml's System.--force.[site]:title,description,owner,repo(required),branch,system(required), and an optionalrepo_dir(by default found from.git) for claim-file links.[sources]:claims,catalog(files or folders),research,content, and an optionalschema.[labels]: one per steering action.[theme]:cssandlogo, served asassets/user/. The CSS loads afterstyle.css.[nav] pages: any ofclaims, queue, predictions, roles, map, notes, search, or{page, text}to rename one. Pages left out are still built.site/config.toml, rewritten in the new format.SITE_CONFIG,SITE_ROOT,SITE_CONTENTandSITE_OUT.Deploying your own
skills/research-loop/research-site.ymlis a workflow template for the user's repository. It checks out Morphogen'ssite/at a pinnedMORPHOGEN_REF, then runsnpm ciand the build with the three variables, and deploys to Pages. The research-loop skill has a new section, "Set up your research site", with the steps.Tests
Growers/grove, labelsgrove:boost/grove:drop, a theme and logo, a three-page header), built throughsite.initandpython -m morphogen site build --base /lab. It checks:system:line;href/srcresolves to a built file under/lab/;init: it refuses to overwrite, needs a system, and validates the repo.claude plugin validatepasses.npm run devserves pages.Not done / for the owner
site/, somorphogen site buildneeds a clone or the plugin install. It says so, andMORPHOGEN_SITE_SRCcan point elsewhere.🤖 Generated with Claude Code
https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh