feat(template): app template = full BIM viewer (gated to --beta)#21
Closed
agviegas wants to merge 3 commits into
Closed
feat(template): app template = full BIM viewer (gated to --beta)#21agviegas wants to merge 3 commits into
agviegas wants to merge 3 commits into
Conversation
…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.
Contributor
Author
|
Closing — pushing directly to main per maintainer preference (no PRs in engine_services). |
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.
Makes the
appscaffold template the full BIM viewer (the canonical_platform/bim-viewer, post-A2: top-app / top-viewer / UIManager), and gates it to--betauntil the public engine catches up.What changed
src/cli/templates/appfrom the current bim-viewer (the prior port was pre-A2 — itsmain.tsstill referenced the deletedViewportsManager/AppManager). Source uses stable import names (@thatopen/components, …);--beta/swap+vite.configgetBetaAliases()resolve them to the@thatopen-platform/*-betapackages.:4100builtin-override block from the templatemain.ts.setups/viewports-manager.ts+setups/diagnostics.ts(unused post-A2).createfor theapptemplate to--beta: without it, the command errors clearly ("public engine support comes with the October release").cloud-componentis unaffected.Why the gate
The viewer uses beta-only engine APIs (deferred postproduction, adaptive resolution,
Outlinerextras, fragments Table API, components-frontNearPlaneLineMaterial, 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;--betaandcloud-componentpass.create … --beta: Founders.npmrcwritten, beta deps installed (components-beta 3.5.6,components-front-beta 3.5.4;latestresolves to published),npm run buildgreen (135 modules).🤖 Generated with Claude Code