Engine + brand extension points (default pathsim/PathView unchanged)#305
Merged
Conversation
…gen; engine-tolerant block keys/type_name, engine-reserved toolbox guard, screenshot env hooks
…ook; components/palette read it
…(pathsim defaults) so an alternate engine swaps only these
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.
Make pathview engine- and brand-parametric via small, generic seams. All defaults are unchanged (pathsim engine, PathView/blue brand), so the public and standalone builds behave exactly as before; a downstream/re-branded build configures via env + swaps a couple of seam modules.
constants/engine.ts:ENGINE/ENGINE_MODULE/enginePath()(defaultpathsim,VITE_ENGINEoverride). Codegen (pathsimRunner.ts) imports from${ENGINE_MODULE}and maps core paths viaenginePath()(identity for pathsim).constants/brand.ts: env-drivenBRAND(name/logo/accent/keyword/home/framework, default PathView/blue).+layoutsetsdata-brand;colors.ts/codemirror.ts/+page/WelcomeModalread it.engineInstall.ts(installEngine, default = configured PyPI packages) +engineHooks.ts(enginePreInit, default no-op). Worker/backend call these so an alternate engine swaps only the seam._block_key/type_name(fallback toid()/__name__), never install the engine itself as a toolbox,SCREENSHOT_BASE_URL/SCREENSHOT_OUT_DIRenv hooks for the screenshot script.npm run checkclean;vite buildsucceeds.