diff --git a/apps/control-station/package-lock.json b/apps/control-station/package-lock.json index 5256e426..2d3cb9ac 100644 --- a/apps/control-station/package-lock.json +++ b/apps/control-station/package-lock.json @@ -10,7 +10,7 @@ "hasInstallScript": true, "dependencies": { "@noble/hashes": "^2.2.0", - "@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.6.tgz", + "@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.7.tgz", "@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react", "@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns", "@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens", @@ -884,9 +884,9 @@ } }, "node_modules/@nodedc/bim-viewer": { - "version": "0.2.6", - "resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.2.6.tgz", - "integrity": "sha512-G4hnJv6ZKi1VHe1RzoPx1bLWvFB4Wt2ciKf/A4wznHdkZ5hfq129rtTYTTImbyx/+WxmF2hjuNNDrRm01GlqDQ==", + "version": "0.2.7", + "resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.2.7.tgz", + "integrity": "sha512-jJXYFDFOWz/YzrYWsiibYBZ3pAEDjnl7x/6wdv4O4xdO+pAn9BebHKRkDwM7JoSCQeAFOCisVyu6bbyNRWds4Q==", "peerDependencies": { "@nodedc/ui-react": "0.7.0", "react": ">=19 <20", diff --git a/apps/control-station/package.json b/apps/control-station/package.json index cc8bab4b..3a12f0b5 100644 --- a/apps/control-station/package.json +++ b/apps/control-station/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@noble/hashes": "^2.2.0", - "@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.6.tgz", + "@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.7.tgz", "@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react", "@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns", "@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens", diff --git a/docs/BIM_MODULE.md b/docs/BIM_MODULE.md index b3595466..a033c763 100644 --- a/docs/BIM_MODULE.md +++ b/docs/BIM_MODULE.md @@ -3,11 +3,11 @@ ## Current cloud slice · 15 November 2026 -Host/Worker package 0.2.2, portable viewer 0.2.6. PTS/LAS/LAZ are converted on the single isolated BIM Worker into immutable Potree 2 products. The actual Bridge_2 1.pts was uploaded through the LivingBIM Dataset UI: 85,515,903 points, 3,323,939,155 source bytes, 897,877,195 ready bytes. Only the verified ready set enters Core; source/CAS remain on Worker and owned staging/scratch are empty. +Host/Worker package 0.2.3, portable viewer 0.2.7. PTS/LAS/LAZ are converted on the single isolated BIM Worker into immutable Potree 2 products. The actual Bridge_2 1.pts was uploaded through the LivingBIM Dataset UI: 85,515,903 points, 3,323,939,155 source bytes, 897,877,195 ready bytes. Only the verified ready set enters Core; source/CAS remain on Worker and owned staging/scratch are empty. Colored cloud and L3 IFC open as independent layers after full reload with BIM Worker service stopped. Original export correctly reports the unavailable server. IFC/FRAG native exports matched SHA-256; cloud format chooser offers PTS/Potree 2 ZIP. No guessed registration transform was saved: the scan and IFC have unmatched local frames, so exact geometric overlay remains unqualified. Eight unrelated running Worker containers were preserved; ndc-bim-worker was stopped for that offline probe and is now running again for intake/source exports. Canonical Core 8000 remains running. -115 module Python / 44 module client / 2 Core adapter tests passed. Core 1,604 frontend tests, architecture, typography, typecheck and build passed in the shared canonical checkout; unrelated edits are excluded from this delivery. Source-byte dedup ignores file names. Orphan intake GUI after queue refusal, full multiuser ACL/personalization and power-loss qualification remain open. Exact release identities/hashes are in vendor/bim manifests. [Current detailed evidence and limits](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/point-clouds.md). Older sections below are dated acceptance history. +117 module Python / 51 module client / 2 Core adapter tests passed. Core 1,604 frontend tests, architecture, typography, typecheck and build passed in the shared canonical checkout; unrelated edits are excluded from this delivery. Source-byte dedup ignores file names. Duplicate preflight creates no upload row or host intent. Orphan intake reconciliation after other queue refusals, full multiuser ACL/personalization and power-loss qualification remain open. Exact release identities/hashes are in vendor/bim manifests. [Current detailed evidence and limits](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/point-clouds.md). Older sections below are dated acceptance history. Qualified on 2026-11-14: **Данные → Архитектурные проекты** at the canonical `http://127.0.0.1:8000/`. The operator can create a project, upload IFC, wait for Worker conversion, download the prepared product and view it in 3D or through the navigation cube. MapLibre, project tree, model versions and visibility share the same catalog. Map markers, project eyes and version rows enter the same project viewer. @@ -57,9 +57,11 @@ typography/type/build gates passed; no live transfer was restarted for this edit ## Project identity and shared products · 15 November 2026 Worker rejects a second source SHA-256 inside one root project, even with a -different filename, asset or version. The decision follows byte transfer and -server hashing, before conversion. A durable project/hash claim serializes -concurrent admission and survives interrupted publication. Client 0.2.6 reports +different filename, asset or version. The selected file is hashed in bounded browser-worker slices and checked against +the current project before Add is enabled or an upload row is created. The final +server byte hash remains authoritative and rejects concurrent admission races +before conversion. A durable project/hash claim serializes +concurrent admission and survives interrupted publication. Client 0.2.7 reports «Этот файл уже добавлен в проект. Повторная загрузка не требуется.», releases the rejected File and queue row, then continues the next queued operation. @@ -82,9 +84,39 @@ Core changed only package pins/manifests and this integration record. Evidence: [shared content qualification](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/evidence/shared-content-qualification-20261115.json). +## Early file check and flight · 15 November 2026 + +File selection/drop starts incremental SHA-256 in a dedicated browser worker, +with 4 MiB slices and visible progress. The read-only project-scoped check adds +no source, job or host intent. An existing digest disables Add and explains that +the file is already in the project; filename changes do not bypass it. A local +queue check also rejects an identical pending file in the same project. Worker +still validates actual received bytes and serializes final admission. Other +projects may reuse the same immutable content through the qualified link path. + +Real UI selection of LivingBIM L2_HW_IFC showed the duplicate message before +upload, with Add disabled and no new row. Installed API checks returned duplicate +for that project and available for another project/new digest, with zero new +imports/jobs/products. Existing BIM and cloud layers still render. + +The portable viewer owns RMB flight: physical WASD positions move the camera, +Q lowers it, E raises it, and Shift multiplies speed by four. Mouse look rotates +around the camera. Viewport settings expose speed in metres/second (default 5). +KeyboardEvent.code makes movement independent of input language. Release, blur, +hidden document, Escape and focus entering a field clear movement. No host app +shortcut or PlayCanvas camera implementation was changed. + +Client fixtures exercise real Three cameras with physical codes and English, +Cyrillic and IME key labels, diagonal normalization and focus/release cleanup. +UI settings were verified; a physical held-RMB keyboard session across native +input methods was not independently qualified. Orthographic forward movement +changes camera depth, not zoom. Full reload/exit upload recovery remains open. + +Evidence: [intake and flight qualification](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/evidence/intake-flight-qualification-20261115.json). + ## Ownership and integration -The implementation belongs to [NODEDC_BIM_MOD](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD), branch `feat/portable-bim-ifc`. Core consumes Python host services 0.2.2 and browser workspace 0.2.6 from `vendor/bim/`; release manifests hold source commits and SHA-256 identities. The Python package owns contracts, project documents, transfer lifecycle and the host API. The browser package owns catalog, intake, map and renderer. It uses the host's React and NODE.DC UI, while keeping its Three/Fragments graph private; render objects are not exchanged with existing Core renderers. +The implementation belongs to [NODEDC_BIM_MOD](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD), branch `feat/portable-bim-ifc`. Core consumes Python host services 0.2.3 and browser workspace 0.2.7 from `vendor/bim/`; release manifests hold source commits and SHA-256 identities. The Python package owns contracts, project documents, transfer lifecycle and the host API. The browser package owns catalog, intake, map and renderer. It uses the host's React and NODE.DC UI, while keeping its Three/Fragments graph private; render objects are not exchanged with existing Core renderers. Core-specific files are `src/k1link/web/bim_module.py`, `apps/control-station/src/workspaces/data/ArchitecturalProjectsWorkspace.tsx` and asset declarations. The app mounts `/api/v1/bim`, closes the module on shutdown and runs its ready-copy retention with the existing reaper. Product registry/composition select the workspace. The generic shell reads capability status; no BIM pipeline is implemented in App.tsx. The adapter emits canonical toasts, observed by the current Core notification history. It does not depend on that history's source files. @@ -94,7 +126,7 @@ The backend admits only the local operator boundary (loopback peer, loopback Hos Under `data_dir/architectural-projects/`, `documents` contains durable catalog, version references, selection and placement; `ready-copies` contains selected immutable renderable products and copy metadata. `connection` contains private Worker binding and a separately protected service token. Do not commit it. The independent module documents `WorkerBinding` configuration and validates allowed HTTP/SSH transport. The qualified path uses the existing SSH alias to a fixed API pipe inside the Worker container; no public port or extra sidecar was introduced. -Worker 006 owns **one** `ndc-bim-worker`, its `ndc-bim-data` volume, installed IFC converter, SQLite queue, Sources and published products. The qualified image is `sha256:801d11acd171ea52ee77e4be2e5f1af6be170e5efd8651d526dcb38594f0c22b` (module source `9f84058e57097a48312fee21b68250159ef72533`). It has an internal network, no published ports or Docker socket, read-only root, UID 10001 and 4 CPU / 8 GiB / 128 PID limits. Other Worker containers and the existing PlayCanvas simulation were not changed by this integration. +Worker 006 owns **one** `ndc-bim-worker`, its `ndc-bim-data` volume, installed IFC converter, SQLite queue, Sources and published products. The qualified image is `sha256:46b481a9712543a091ec1eea247af51da8d7af69423358f089c8d1958d7ff760` (module source `2fd1ab52b10aee516a964b095b9cace05b9f4a5f`). It has an internal network, no published ports or Docker socket, read-only root, UID 10001 and 4 CPU / 8 GiB / 128 PID limits. Other Worker containers and the existing PlayCanvas simulation were not changed by this integration. Raw IFC streams through Core to the Worker; it is not spooled into Core data. Worker paths are readable Latin project/material/version directories with content deduplication. Local removal retains catalog references and Worker ownership. Re-download restores the same immutable product without conversion. Pin and active viewer leases protect local copies; unpinned inactive copies follow retention. Downloads currently use one active transfer and bounded in-memory status records, without restart-resume. No local IFC conversion fallback exists. diff --git a/pyproject.toml b/pyproject.toml index d90db42d..29aeab05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "httpx>=0.28,<1", "lz4>=4.4,<5", "missioncore-plugin-sdk", - "nodedc-bim-module==0.2.2", + "nodedc-bim-module==0.2.3", "paho-mqtt>=2.1,<3", "pillow>=12,<13", "pyyaml>=6.0,<7", @@ -29,7 +29,7 @@ dependencies = [ ] [tool.uv.sources] -nodedc-bim-module = { path = "vendor/bim/nodedc_bim_module-0.2.2-py3-none-any.whl" } +nodedc-bim-module = { path = "vendor/bim/nodedc_bim_module-0.2.3-py3-none-any.whl" } missioncore-plugin-sdk = { path = "packages/plugin-sdk", editable = true } [project.optional-dependencies] diff --git a/uv.lock b/uv.lock index b8974272..768d3f3f 100644 --- a/uv.lock +++ b/uv.lock @@ -479,8 +479,8 @@ wheels = [ [[package]] name = "nodedc-bim-module" -version = "0.2.2" -source = { path = "vendor/bim/nodedc_bim_module-0.2.2-py3-none-any.whl" } +version = "0.2.3" +source = { path = "vendor/bim/nodedc_bim_module-0.2.3-py3-none-any.whl" } dependencies = [ { name = "fastapi" }, { name = "httpx" }, @@ -488,7 +488,7 @@ dependencies = [ { name = "uvicorn" }, ] wheels = [ - { filename = "nodedc_bim_module-0.2.2-py3-none-any.whl", hash = "sha256:c616ccd772686a15b850173859ad4b51326280af5e32b4883e6545bcd3530679" }, + { filename = "nodedc_bim_module-0.2.3-py3-none-any.whl", hash = "sha256:a3cda18208b5272864f0c5e25004c65399c1d1d32b656e1f8b2441f211a69592" }, ] [package.metadata] @@ -560,7 +560,7 @@ requires-dist = [ { name = "httpx", specifier = ">=0.28,<1" }, { name = "lz4", specifier = ">=4.4,<5" }, { name = "missioncore-plugin-sdk", editable = "packages/plugin-sdk" }, - { name = "nodedc-bim-module", path = "vendor/bim/nodedc_bim_module-0.2.2-py3-none-any.whl" }, + { name = "nodedc-bim-module", path = "vendor/bim/nodedc_bim_module-0.2.3-py3-none-any.whl" }, { name = "paho-mqtt", specifier = ">=2.1,<3" }, { name = "pillow", specifier = ">=12,<13" }, { name = "pyyaml", specifier = ">=6.0,<7" }, diff --git a/vendor/bim/client-release.json b/vendor/bim/client-release.json index 49afa494..b8449cad 100644 --- a/vendor/bim/client-release.json +++ b/vendor/bim/client-release.json @@ -1,12 +1,12 @@ { "schema_version": "missioncore.bim-client-release/v1", "repository": "https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD", - "source_commit": "9f84058e57097a48312fee21b68250159ef72533", - "package": "nodedc-bim-viewer-0.2.6.tgz", - "sha256": "e6ab36b88d1aed778055f7866b9cad5c73b1b1a6a8f08897a83e1494fa7038ed", + "source_commit": "2fd1ab52b10aee516a964b095b9cace05b9f4a5f", + "package": "nodedc-bim-viewer-0.2.7.tgz", + "sha256": "1aa39005e054ff468355c31b3ccb89ffbfa401dbb05f77b6a9e7434de3a5713f", "types": "pass", - "contract_tests": 44, - "visual_acceptance": "Duplicate source intake receives canonical notification; rejected File/queue row removed and next queued transfer proceeds. Existing composition unchanged.", + "contract_tests": 51, + "visual_acceptance": "Actual L2_HW_IFC selection in LivingBIM: duplicate message before upload, Add disabled, no new row. BIM/cloud viewer and physical-key flight speed/help visible.", "evidence": "docs/BIM_MODULE.md", "qualification_date": "2026-11-15", "design_guideline_commit": "70d5d8b3851df0d41233b46b6d39f5721508562b", @@ -15,6 +15,7 @@ "validation_context": "shared canonical working checkout; unrelated concurrent edits preserved", "visual_limits": [ "System Fullscreen API rejected by embedded browser; unchanged control not requalified in this pass.", - "Actual desktop pixel sampling was not independently automated." + "Actual desktop pixel sampling was not independently automated.", + "Physical held-RMB keyboard flight across native input methods was not independently qualified; controller tests cover physical codes, camera movement and release/focus cleanup." ] } diff --git a/vendor/bim/nodedc-bim-viewer-0.2.7.tgz b/vendor/bim/nodedc-bim-viewer-0.2.7.tgz new file mode 100644 index 00000000..e99b2733 Binary files /dev/null and b/vendor/bim/nodedc-bim-viewer-0.2.7.tgz differ diff --git a/vendor/bim/nodedc_bim_module-0.2.3-py3-none-any.whl b/vendor/bim/nodedc_bim_module-0.2.3-py3-none-any.whl new file mode 100644 index 00000000..312fd9dc Binary files /dev/null and b/vendor/bim/nodedc_bim_module-0.2.3-py3-none-any.whl differ diff --git a/vendor/bim/release.json b/vendor/bim/release.json index 9862b6f9..0630f685 100644 --- a/vendor/bim/release.json +++ b/vendor/bim/release.json @@ -1,13 +1,13 @@ { "schema_version": "missioncore.bim-release/v1", "repository": "https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD", - "source_commit": "9f84058e57097a48312fee21b68250159ef72533", - "package": "nodedc_bim_module-0.2.2-py3-none-any.whl", - "sha256": "c616ccd772686a15b850173859ad4b51326280af5e32b4883e6545bcd3530679", - "python_tests": 115, + "source_commit": "2fd1ab52b10aee516a964b095b9cace05b9f4a5f", + "package": "nodedc_bim_module-0.2.3-py3-none-any.whl", + "sha256": "a3cda18208b5272864f0c5e25004c65399c1d1d32b656e1f8b2441f211a69592", + "python_tests": 117, "node_reader_tests": 1, - "scope": "Project SHA-256 uniqueness; compatible cross-project Worker product reuse and Core hardlinks", + "scope": "Preflight source identity before upload, shared content lifecycle and physical-key viewport flight", "qualification_date": "2026-11-15", - "worker_source_commit": "9f84058e57097a48312fee21b68250159ef72533", - "worker_image": "sha256:801d11acd171ea52ee77e4be2e5f1af6be170e5efd8651d526dcb38594f0c22b" + "worker_source_commit": "2fd1ab52b10aee516a964b095b9cace05b9f4a5f", + "worker_image": "sha256:46b481a9712543a091ec1eea247af51da8d7af69423358f089c8d1958d7ff760" }