Skip to content

Engine + brand extension points (default pathsim/PathView unchanged)#305

Merged
milanofthe merged 3 commits into
mainfrom
feature/engine-brand-modularization
Jun 2, 2026
Merged

Engine + brand extension points (default pathsim/PathView unchanged)#305
milanofthe merged 3 commits into
mainfrom
feature/engine-brand-modularization

Conversation

@milanofthe
Copy link
Copy Markdown
Member

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() (default pathsim, VITE_ENGINE override). Codegen (pathsimRunner.ts) imports from ${ENGINE_MODULE} and maps core paths via enginePath() (identity for pathsim).
  • constants/brand.ts: env-driven BRAND (name/logo/accent/keyword/home/framework, default PathView/blue). +layout sets data-brand; colors.ts/codemirror.ts/+page/WelcomeModal read it.
  • Engine seams: 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.
  • Generic hardening: stable _block_key/type_name (fallback to id()/__name__), never install the engine itself as a toolbox, SCREENSHOT_BASE_URL/SCREENSHOT_OUT_DIR env hooks for the screenshot script.

npm run check clean; vite build succeeds.

…gen; engine-tolerant block keys/type_name, engine-reserved toolbox guard, screenshot env hooks
…(pathsim defaults) so an alternate engine swaps only these
@milanofthe milanofthe merged commit c41a80b into main Jun 2, 2026
4 checks passed
@milanofthe milanofthe deleted the feature/engine-brand-modularization branch June 2, 2026 08:42
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.

1 participant