Skip to content

feat(template): app template = full BIM viewer (gated to --beta)#21

Closed
agviegas wants to merge 3 commits into
mainfrom
feat/viewer-app-template
Closed

feat(template): app template = full BIM viewer (gated to --beta)#21
agviegas wants to merge 3 commits into
mainfrom
feat/viewer-app-template

Conversation

@agviegas

Copy link
Copy Markdown
Contributor

Makes the app scaffold template the full BIM viewer (the canonical _platform/bim-viewer, post-A2: top-app / top-viewer / UIManager), and gates it to --beta until the public engine catches up.

What changed

  • Sync src/cli/templates/app from the current bim-viewer (the prior port was pre-A2 — its main.ts still referenced the deleted ViewportsManager/AppManager). Source uses stable import names (@thatopen/components, …); --beta/swap + vite.config getBetaAliases() resolve them to the @thatopen-platform/*-beta packages.
  • Strip the local-dev :4100 builtin-override block from the template main.ts.
  • Remove dead setups/viewports-manager.ts + setups/diagnostics.ts (unused post-A2).
  • Gate create for the app template to --beta: without it, the command errors clearly ("public engine support comes with the October release"). cloud-component is unaffected.

Why the gate

The viewer uses beta-only engine APIs (deferred postproduction, adaptive resolution, Outliner extras, fragments Table API, components-front NearPlaneLineMaterial, nested-relations props spec). A stable scaffold currently fails to type-check with 26 beta-only-API errors, so non-beta scaffolding would hand users a broken project. The gate keeps it honest until October.

Validated

  • node dist/cli.js create x → blocked with the message, no dir created; --beta and cloud-component pass.
  • End-to-end create … --beta: Founders .npmrc written, beta deps installed (components-beta 3.5.6, components-front-beta 3.5.4; latest resolves to published), npm run build green (135 modules).

🤖 Generated with Claude Code

agviegas and others added 3 commits June 18, 2026 02:37
…ine + tools)

Port _platform/bim-viewer into templates/app: 59 setups (clipper, measurements, model tree, properties, files, plans, exploded view, walkthrough, reality-capture, etc.) on stable specifiers so create --beta/swap alias them to the betas (the viewer relies on beta-only render: deferred PEN, FastModelPicker). Added spark/3d-tiles-renderer/camera-controls/web-ifc deps; stripped *.bak + the temp diagnostics profiler. NOT yet build-verified against the betas.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…gate app to --beta

- Re-sync the app template from the canonical bim-viewer (post-A2: top-app/
  top-viewer/UIManager), replacing the stale pre-A2 port.
- Strip the local-dev :4100 builtin-override block from the template main.ts.
- Gate the 'app' template to --beta: it depends on beta-only engine APIs
  (deferred postproduction, adaptive resolution, Outliner extras, fragments
  Table API, components-front NearPlaneLineMaterial, nested-relations props
  spec). Without --beta, error clearly — public engine support lands in Oct.
  cloud-component template is unaffected.
@agviegas

Copy link
Copy Markdown
Contributor Author

Closing — pushing directly to main per maintainer preference (no PRs in engine_services).

@agviegas agviegas closed this Jun 19, 2026
@agviegas agviegas deleted the feat/viewer-app-template branch June 19, 2026 09:56
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