@thatopen/services 0.35.0 → 0.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +66 -66
  2. package/dist/cli.js.map +1 -1
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/vite-env.d.ts +1 -1
  6. package/docs/ai-quickstart.md +548 -548
  7. package/docs/builtin/paths.json +130 -130
  8. package/docs/cli/create.md +29 -29
  9. package/docs/cli/local-server.md +38 -38
  10. package/docs/cli/login.md +32 -32
  11. package/docs/cli/mcp.md +46 -46
  12. package/docs/cli/publish.md +31 -31
  13. package/docs/cli/run.md +26 -26
  14. package/docs/cli/serve.md +43 -43
  15. package/docs/cli/swap.md +30 -30
  16. package/docs/cloud/GaussianSplatConverter.md +43 -43
  17. package/docs/cloud/PointCloudConverter.md +53 -53
  18. package/docs/flow-architecture.md +393 -393
  19. package/docs/flow-plugin-guide.md +354 -354
  20. package/docs/platform-token.md +81 -81
  21. package/docs/rate-limits.md +133 -133
  22. package/docs/recipes-guide.md +243 -243
  23. package/docs/revit-collab-quickstart.md +445 -445
  24. package/docs/rhino-interop-quickstart.md +387 -387
  25. package/docs/sheet-sets-guide.md +69 -69
  26. package/package.json +1 -1
  27. package/resources/AGENTS.md +57 -57
  28. package/src/built-in/CDEManager/example.ts +214 -214
  29. package/src/built-in/CDEManager/examples/FileEditing/example.ts +226 -226
  30. package/src/built-in/CDEManager/examples/FileMoves/example.ts +186 -186
  31. package/src/built-in/CDEManager/examples/FileOperations/example.ts +295 -295
  32. package/src/built-in/CDEManager/examples/FileTransfers/example.ts +210 -210
  33. package/src/built-in/CDEManager/examples/FolderManagement/example.ts +230 -230
  34. package/src/built-in/CDEManager/examples/MetadataSchema/example.ts +230 -230
  35. package/src/built-in/CDEManager/examples/MetadataViews/example.ts +166 -166
  36. package/src/built-in/CDEManager/examples/ProjectConfig/example.ts +177 -177
  37. package/src/built-in/ClashesManager/example.ts +283 -283
  38. package/src/built-in/GISManager/example.ts +355 -355
  39. package/src/built-in/ProjectManager/example.ts +124 -124
  40. package/src/built-in/UIManager/src/app/example.ts +97 -97
  41. package/src/built-in/UIManager/src/app/examples/AppState/example.ts +140 -140
  42. package/src/built-in/UIManager/src/app/examples/Banner/example.ts +159 -159
  43. package/src/built-in/UIManager/src/app/examples/Contexts/example.ts +123 -123
  44. package/src/built-in/UIManager/src/app/examples/FileDrop/example.ts +124 -124
  45. package/src/built-in/UIManager/src/app/examples/FloatingLayout/example.ts +90 -90
  46. package/src/built-in/UIManager/src/app/examples/Modal/example.ts +163 -163
  47. package/src/built-in/UIManager/src/app/examples/Notifications/example.ts +133 -133
  48. package/src/built-in/UIManager/src/app/examples/ProjectFileStorage/example.ts +150 -150
  49. package/src/built-in/UIManager/src/app/examples/Sidebar/example.ts +105 -105
  50. package/src/built-in/UIManager/src/clashes-panel/example.ts +183 -183
  51. package/src/built-in/UIManager/src/gis-panel/example.ts +163 -163
  52. package/src/built-in/UIManager/src/gis-properties-panel/example.ts +168 -168
  53. package/src/built-in/UIManager/src/git-history-panel/example.ts +70 -70
  54. package/src/built-in/UIManager/src/map-panel/example.ts +189 -189
  55. package/src/built-in/UIManager/src/models-list/example.ts +181 -181
  56. package/src/built-in/UIManager/src/settings-panel/example.ts +303 -303
  57. package/src/built-in/UIManager/src/topics-panel/example.ts +170 -170
  58. package/src/built-in/UIManager/src/viewer/example.ts +182 -182
  59. package/src/built-in/UIManager/src/viewer-toolbar/example.ts +376 -376
  60. package/src/built-in/index.ts +2995 -2995
  61. package/src/cli/templates/app/README.md +250 -250
  62. package/src/cli/templates/app/index.html +35 -35
  63. package/src/cli/templates/app/package.json +32 -32
  64. package/src/cli/templates/app/src/app.ts +37 -37
  65. package/src/cli/templates/app/src/assets/tool-placeholder.ts +50 -50
  66. package/src/cli/templates/app/src/bim-components/CloudRunner/index.ts +95 -95
  67. package/src/cli/templates/app/src/bim-components/CloudRunner/src/index.ts +1 -1
  68. package/src/cli/templates/app/src/bim-components/CloudRunner/src/types.ts +5 -5
  69. package/src/cli/templates/app/src/bim-components/index.ts +1 -1
  70. package/src/cli/templates/app/src/globals.ts +1 -1
  71. package/src/cli/templates/app/src/main.history.ts +191 -191
  72. package/src/cli/templates/app/src/main.ts +226 -226
  73. package/src/cli/templates/app/src/setups/channel.ts +76 -76
  74. package/src/cli/templates/app/src/setups/reality-capture/lib/hidden-tiles-plugin.ts +88 -88
  75. package/src/cli/templates/app/src/setups/reality-capture/lib/point-tile-plugin.ts +166 -166
  76. package/src/cli/templates/app/src/setups/reality-capture/lib/render-frame.ts +31 -31
  77. package/src/cli/templates/app/src/setups/reality-capture/lib/splat-tile-plugin.ts +51 -51
  78. package/src/cli/templates/app/src/setups/reality-capture-viewer.ts +1383 -1383
  79. package/src/cli/templates/app/src/ui-components/app-info-section/index.ts +26 -26
  80. package/src/cli/templates/app/src/ui-components/app-info-section/src/index.ts +1 -1
  81. package/src/cli/templates/app/src/ui-components/app-info-section/src/types.ts +15 -15
  82. package/src/cli/templates/app/src/ui-components/cloud-runner-section/index.ts +37 -37
  83. package/src/cli/templates/app/src/ui-components/cloud-runner-section/src/index.ts +1 -1
  84. package/src/cli/templates/app/src/ui-components/cloud-runner-section/src/types.ts +14 -14
  85. package/src/cli/templates/app/src/ui-components/index.ts +2 -2
  86. package/src/cli/templates/app/tsconfig.json +16 -16
  87. package/src/cli/templates/app/vite.config.js +57 -57
  88. package/src/cli/templates/cloud-component/README.md +205 -205
  89. package/src/cli/templates/cloud-component/_thatopen +5 -5
  90. package/src/cli/templates/cloud-component/declarations.json +4 -4
  91. package/src/cli/templates/cloud-component/package.json +21 -21
  92. package/src/cli/templates/cloud-component/src/main.ts +70 -70
  93. package/src/cli/templates/cloud-component/tsconfig.json +16 -16
  94. package/src/cli/templates/cloud-component/vite.config.js +46 -46
  95. package/src/cli/templates/shared/AGENTS.md +8 -8
  96. package/src/cli/templates/shared/CLAUDE.md +1 -1
  97. package/src/cli/templates/shared/_gitignore +5 -5
  98. package/src/core/examples/.env.example +7 -7
  99. package/src/core/examples/apps.ts +67 -67
  100. package/src/core/examples/batch-reads.ts +99 -99
  101. package/src/core/examples/channel.ts +65 -65
  102. package/src/core/examples/components.ts +91 -91
  103. package/src/core/examples/execution.ts +75 -75
  104. package/src/core/examples/file-metadata.ts +94 -94
  105. package/src/core/examples/files.ts +81 -81
  106. package/src/core/examples/folders.ts +82 -82
  107. package/src/core/examples/hidden-files.ts +88 -88
  108. package/src/core/examples/history.ts +103 -103
  109. package/src/core/examples/icons.ts +68 -68
  110. package/src/core/examples/permissions.ts +87 -87
@@ -1,130 +1,130 @@
1
- [
2
- {
3
- "path": "src/built-in/CDEManager/example.ts",
4
- "description": "CDEManager — CDEManager is the central state machine for a Common Data Environment. It holds files, folders, metadata schemas, viewer groups, and user permissions, and exposes a typed state machine that all file operations — selecting, editing, uploading, viewing — route through. It has no DOM or Three.js dependencies and can run in Node, a browser, or a server-side worker wherever `@thatopen/components` is available."
5
- },
6
- {
7
- "path": "src/built-in/CDEManager/examples/FileEditing/example.ts",
8
- "description": "Bulk file editing — stage, preview, revert, and commit — A project manager preparing a deliverable handoff needs to update discipline tags across fifteen IFC files after a scope change, rename each to match the new naming convention, and archive three superseded models — all before anything is sent to the backend. Doing the changes one file at a time risks leaving the file list in a half-updated state if the session is interrupted, and there is no way to review exactly what will change before committing."
9
- },
10
- {
11
- "path": "src/built-in/CDEManager/examples/FileMoves/example.ts",
12
- "description": "Drag-and-drop file and folder moves — A coordinator restructures the project after a scope change: structural files move from the root into a dedicated discipline folder, a MEP sub-folder needs to be promoted to the top level, and a few documents need to come back to root to appear in the general view. Drag-and-drop is the natural gesture for all of this, but each drag session has intermediate stages — the file is \"in the air\", hovering over a candidate target — and every panel watching the file table should see the right state without coordinating directly with the drag component."
13
- },
14
- {
15
- "path": "src/built-in/CDEManager/examples/FileOperations/example.ts",
16
- "description": "File operations — inline edit, rename, view, download, archive — BIM coordinators reviewing a model drop repeat the same small actions throughout their session: correcting a discipline tag that changed after a scope revision, renaming a file to match the agreed convention, opening it alongside the structural model to check for clashes, handing it off to a sub-consultant, or removing a superseded version from the live set. If every panel in the platform handles these separately, two panels looking at the same file at the same time can show contradictory states — one says \"uploading\", another still shows the old name."
17
- },
18
- {
19
- "path": "src/built-in/CDEManager/examples/FileTransfers/example.ts",
20
- "description": "File uploads, versioning, and the download cache — A site coordinator drops a batch of files onto the CDE every Monday after the weekend review: some are entirely new models, some are revised versions of files already in the project, and sometimes the metadata group they upload into should be stamped automatically onto the new files. If the platform makes the coordinator sort this out manually, it slows the handoff and introduces naming errors. And if an upload fails halfway through a batch, the file table should land in a safe state rather than freeze at a loading spinner."
21
- },
22
- {
23
- "path": "src/built-in/CDEManager/examples/FolderManagement/example.ts",
24
- "description": "Folder management — create, rename, archive, and commit — A project reaches the construction phase and the coordination team needs to restructure the folder hierarchy: add a \"Facades\" discipline folder, rename \"Structural\" to its official abbreviation, and archive two superseded folders that have been merged. Doing these one at a time through separate API calls means the folder tree flickers between invalid states as each change lands — a freshly created folder appears before its sibling is renamed, and the archived folders briefly disappear before the new one is visible."
25
- },
26
- {
27
- "path": "src/built-in/CDEManager/examples/MetadataSchema/example.ts",
28
- "description": "Metadata schema — define, stage, and publish field definitions — Every project has its own vocabulary for describing files: discipline codes, revision phases, area zones, review statuses. A metadata schema defines which fields exist, what values they accept, and whether they are mandatory. Without a structured schema, each user invents their own labels and the file list becomes impossible to filter or report on consistently."
29
- },
30
- {
31
- "path": "src/built-in/CDEManager/examples/MetadataViews/example.ts",
32
- "description": "Metadata views — organize fields into named table layouts — A structural engineer and an MEP coordinator look at the same file list but care about completely different metadata. Showing every field to everyone produces a wide table that is hard to navigate. Metadata views let each role define which fields appear in which order — saving the layout so the table opens correctly next time without requiring a manual setup every session."
33
- },
34
- {
35
- "path": "src/built-in/CDEManager/examples/ProjectConfig/example.ts",
36
- "description": "Project configuration — read, write, and reload persistent data — A CDE application needs to store two kinds of configuration: project-wide settings that all team members share (the metadata schema, custom naming rules) and personal settings that belong to one user (which columns are visible, which metadata views are pinned). Both live inside the project's file storage under a reserved system folder, so they travel with the project and don't rely on a separate configuration service."
37
- },
38
- {
39
- "path": "src/built-in/ClashesManager/example.ts",
40
- "description": "ClashesManager — Structural engineers and BIM coordinators routinely detect geometric clashes between disciplines — structural steel penetrating ductwork, pipes clashing with slabs — and need to track the status of each issue through resolution without leaving their BIM environment."
41
- },
42
- {
43
- "path": "src/built-in/GISManager/example.ts",
44
- "description": "GISManager — Georeferenced BIM projects need their surroundings: the real terrain and buildings around the model, and the project's GIS layers (parcels, networks, boundaries) drawn at the right place in the 3D scene and on a 2D map."
45
- },
46
- {
47
- "path": "src/built-in/ProjectManager/example.ts",
48
- "description": "ProjectManager — Project-level configuration and data — GIS origin, georeferencing, app settings, and other project-scoped concerns — need a single canonical place to live. Without it, every builtin that needs to persist something at the project level (not per-file, not per-user) ends up inventing its own file, its own save/load pattern, and its own place to put it."
49
- },
50
- {
51
- "path": "src/built-in/UIManager/src/app/example.ts",
52
- "description": "top-app — Front-end developers building BIM web apps need to coordinate several async initialization steps before the UI can be shown — loading the engine, preparing fragment workers, registering loaders — and users need visible feedback on what is happening during that wait, rather than a blank screen."
53
- },
54
- {
55
- "path": "src/built-in/UIManager/src/app/examples/AppState/example.ts",
56
- "description": "Shared reactive state with AppState — Developers building interactive BIM panels often need sibling components — a filter selector and a results table, for example — to stay in sync without a shared parent. Lifting state to a common ancestor and threading it down as props works for shallow trees but becomes unwieldy as the component tree grows."
57
- },
58
- {
59
- "path": "src/built-in/UIManager/src/app/examples/Banner/example.ts",
60
- "description": "Persistent banners with top:banner — Some application states need a persistent, visible indicator that stays on screen until the state is explicitly cleared — an archived-files mode, a read-only permission warning, a degraded-connectivity notice. A toast auto-dismisses after a few seconds, which is wrong for these cases. A modal blocks interaction entirely, which is too heavy."
61
- },
62
- {
63
- "path": "src/built-in/UIManager/src/app/examples/Contexts/example.ts",
64
- "description": "Consuming platform contexts in child components — Developers building custom BIM panels need access to the 3D engine, the platform API, and the current project's metadata — but threading these objects down through props across multiple component layers forces every intermediate element to know about data it doesn't use, making trees brittle and hard to refactor."
65
- },
66
- {
67
- "path": "src/built-in/UIManager/src/app/examples/FileDrop/example.ts",
68
- "description": "File drag-and-drop with top:files-dropped — Desktop BIM workflows often rely on dragging files straight from the OS file manager onto the browser window — but wiring a document-level dragenter, dragover, dragleave, and drop handler that correctly tracks nested enter/leave counts, shows a visual overlay, and forwards the files to the right component is tedious boilerplate to repeat for every app."
69
- },
70
- {
71
- "path": "src/built-in/UIManager/src/app/examples/FloatingLayout/example.ts",
72
- "description": "Floating layout — Developers building BIM coordination tools often want the 3D model to fill the entire window while control panels float above it — but standard grid layouts give every area equal standing, shrinking the viewer into one cell and leaving visible seams between it and the panels."
73
- },
74
- {
75
- "path": "src/built-in/UIManager/src/app/examples/Modal/example.ts",
76
- "description": "Confirmation modals with top:modal — Destructive or irreversible actions — deleting records, overwriting files, leaving unsaved changes — should ask the user to confirm before proceeding. Opening a custom dialog element from a deeply nested component means threading a reference to a controller up through every layer of the tree."
77
- },
78
- {
79
- "path": "src/built-in/UIManager/src/app/examples/Notifications/example.ts",
80
- "description": "Toasts and cross-component notifications — Developers building BIM processing UIs need to surface status updates, errors, and async feedback to users from different points in the component tree — but reaching back to the app root to trigger a notification from a deeply nested component requires threading a reference through every layer in between."
81
- },
82
- {
83
- "path": "src/built-in/UIManager/src/app/examples/ProjectFileStorage/example.ts",
84
- "description": "Persisting project-scoped data with projectStorageContext — Most non-trivial apps built on top-app eventually need to persist some of their own data inside the project — user preferences, cached results, domain state that isn't a 3D model or a regular CDE file. The naive approach is for each panel/manager to talk to the CDE client directly: resolve or create a folder under `__project_data`, resolve or create the file, decide between uploading a new file and versioning an existing one. That's the same handful of steps every single consumer ends up re-implementing."
85
- },
86
- {
87
- "path": "src/built-in/UIManager/src/app/examples/Sidebar/example.ts",
88
- "description": "Sidebar navigation — Product teams building BIM apps often need multiple distinct views — a 3D model viewer, a data browser, a settings screen — but wiring a custom nav bar and managing view transitions from scratch adds complexity before any real feature work begins."
89
- },
90
- {
91
- "path": "src/built-in/UIManager/src/clashes-panel/example.ts",
92
- "description": "clashes-panel — BIM coordinators need a dedicated review environment where they can see all detected clashes, filter by status, navigate to each issue in the 3D viewer, and mark items as resolved — without writing any UI code themselves."
93
- },
94
- {
95
- "path": "src/built-in/UIManager/src/gis-panel/example.ts",
96
- "description": "gis-panel — A georeferenced project is much easier to review with its real surroundings around the model, and with the GIS layers of the site (networks, parcels, boundaries) switched on and off from a list. Streaming the terrain and buildings needs a Cesium Ion token and a way to load and unload them, and fine-tuning their position needs a few controls."
97
- },
98
- {
99
- "path": "src/built-in/UIManager/src/gis-properties-panel/example.ts",
100
- "description": "gis-properties-panel — A GIS feature (a pipe, a parcel, a manhole) is useless without its attributes: diameter, material, owner, installation date. Users want to click a feature, in the 3D view or on the map, and read them."
101
- },
102
- {
103
- "path": "src/built-in/UIManager/src/git-history-panel/example.ts",
104
- "description": "git-history-panel — `top-git-history` is a GitKraken-style commit timeline for the **revit-flow** feature. It lists the commits pushed by the Revit add-in (newest first) and, when you click a commit, drives the shared 3D viewer to color that commit's changed elements — created green, modified blue, deleted red — on the loaded baseline model."
105
- },
106
- {
107
- "path": "src/built-in/UIManager/src/map-panel/example.ts",
108
- "description": "map-panel — In a large site, the 3D camera alone is a poor way to get oriented: users want a plan view to see where they are, where the GIS features are, and to jump somewhere else with a click."
109
- },
110
- {
111
- "path": "src/built-in/UIManager/src/models-list/example.ts",
112
- "description": "top-models-list — top-models-list is the project's 3D-viewable-files tree: it mirrors the real storage folder structure, converts IFC to fragments, and loads `.frag`/`.potree`/`.splat` models into the 3D scene. Its loaders are PLUGGABLE — the panel owns the UI and the orchestration (progress, refresh, association), but the HOST decides how each extra file format is loaded, so you can teach it new formats without forking the built-in."
113
- },
114
- {
115
- "path": "src/built-in/UIManager/src/settings-panel/example.ts",
116
- "description": "top-settings-panel — Every viewer app ends up needing the same settings screen: rendering options, clip/measurement styling, a \"which cloud component converts this format\" picker, a keyboard-shortcut reference — plus a search box that filters all of it and a \"restore defaults\" button that resets whatever has persisted state. Building that, and keeping it in sync with the tools it configures, is real work before you've added a single setting of your own."
117
- },
118
- {
119
- "path": "src/built-in/UIManager/src/topics-panel/example.ts",
120
- "description": "topics-panel — Every coordination workflow needs a place to track issues, clashes, and action items against a 3D model — who's responsible, what still needs review, and where in the model it actually is. Building that from scratch means a BCF-compatible data model, a form, comment threads, viewpoint capture/navigation, document links, and a persistence layer — all before a single issue gets tracked."
121
- },
122
- {
123
- "path": "src/built-in/UIManager/src/viewer/example.ts",
124
- "description": "top-viewer — Every BIM app needs a 3D viewport: a scene, a camera, a grid, element highlighting, and the plumbing to keep loaded models framed and rendering efficiently as they stream in. Building that from scratch is a project on its own, before a single button or panel gets wired to it."
125
- },
126
- {
127
- "path": "src/built-in/UIManager/src/viewer-toolbar/example.ts",
128
- "description": "top-viewer-toolbar — A 3D viewport is only as useful as the controls around it: selecting a target set, hiding/isolating/ghosting elements, clipping, measuring, walking through the model. Building that toolbar — and keeping every button in sync with tool state and with each other — is real work, before you've customized anything."
129
- }
130
- ]
1
+ [
2
+ {
3
+ "path": "src/built-in/CDEManager/example.ts",
4
+ "description": "CDEManager — CDEManager is the central state machine for a Common Data Environment. It holds files, folders, metadata schemas, viewer groups, and user permissions, and exposes a typed state machine that all file operations — selecting, editing, uploading, viewing — route through. It has no DOM or Three.js dependencies and can run in Node, a browser, or a server-side worker wherever `@thatopen/components` is available."
5
+ },
6
+ {
7
+ "path": "src/built-in/CDEManager/examples/FileEditing/example.ts",
8
+ "description": "Bulk file editing — stage, preview, revert, and commit — A project manager preparing a deliverable handoff needs to update discipline tags across fifteen IFC files after a scope change, rename each to match the new naming convention, and archive three superseded models — all before anything is sent to the backend. Doing the changes one file at a time risks leaving the file list in a half-updated state if the session is interrupted, and there is no way to review exactly what will change before committing."
9
+ },
10
+ {
11
+ "path": "src/built-in/CDEManager/examples/FileMoves/example.ts",
12
+ "description": "Drag-and-drop file and folder moves — A coordinator restructures the project after a scope change: structural files move from the root into a dedicated discipline folder, a MEP sub-folder needs to be promoted to the top level, and a few documents need to come back to root to appear in the general view. Drag-and-drop is the natural gesture for all of this, but each drag session has intermediate stages — the file is \"in the air\", hovering over a candidate target — and every panel watching the file table should see the right state without coordinating directly with the drag component."
13
+ },
14
+ {
15
+ "path": "src/built-in/CDEManager/examples/FileOperations/example.ts",
16
+ "description": "File operations — inline edit, rename, view, download, archive — BIM coordinators reviewing a model drop repeat the same small actions throughout their session: correcting a discipline tag that changed after a scope revision, renaming a file to match the agreed convention, opening it alongside the structural model to check for clashes, handing it off to a sub-consultant, or removing a superseded version from the live set. If every panel in the platform handles these separately, two panels looking at the same file at the same time can show contradictory states — one says \"uploading\", another still shows the old name."
17
+ },
18
+ {
19
+ "path": "src/built-in/CDEManager/examples/FileTransfers/example.ts",
20
+ "description": "File uploads, versioning, and the download cache — A site coordinator drops a batch of files onto the CDE every Monday after the weekend review: some are entirely new models, some are revised versions of files already in the project, and sometimes the metadata group they upload into should be stamped automatically onto the new files. If the platform makes the coordinator sort this out manually, it slows the handoff and introduces naming errors. And if an upload fails halfway through a batch, the file table should land in a safe state rather than freeze at a loading spinner."
21
+ },
22
+ {
23
+ "path": "src/built-in/CDEManager/examples/FolderManagement/example.ts",
24
+ "description": "Folder management — create, rename, archive, and commit — A project reaches the construction phase and the coordination team needs to restructure the folder hierarchy: add a \"Facades\" discipline folder, rename \"Structural\" to its official abbreviation, and archive two superseded folders that have been merged. Doing these one at a time through separate API calls means the folder tree flickers between invalid states as each change lands — a freshly created folder appears before its sibling is renamed, and the archived folders briefly disappear before the new one is visible."
25
+ },
26
+ {
27
+ "path": "src/built-in/CDEManager/examples/MetadataSchema/example.ts",
28
+ "description": "Metadata schema — define, stage, and publish field definitions — Every project has its own vocabulary for describing files: discipline codes, revision phases, area zones, review statuses. A metadata schema defines which fields exist, what values they accept, and whether they are mandatory. Without a structured schema, each user invents their own labels and the file list becomes impossible to filter or report on consistently."
29
+ },
30
+ {
31
+ "path": "src/built-in/CDEManager/examples/MetadataViews/example.ts",
32
+ "description": "Metadata views — organize fields into named table layouts — A structural engineer and an MEP coordinator look at the same file list but care about completely different metadata. Showing every field to everyone produces a wide table that is hard to navigate. Metadata views let each role define which fields appear in which order — saving the layout so the table opens correctly next time without requiring a manual setup every session."
33
+ },
34
+ {
35
+ "path": "src/built-in/CDEManager/examples/ProjectConfig/example.ts",
36
+ "description": "Project configuration — read, write, and reload persistent data — A CDE application needs to store two kinds of configuration: project-wide settings that all team members share (the metadata schema, custom naming rules) and personal settings that belong to one user (which columns are visible, which metadata views are pinned). Both live inside the project's file storage under a reserved system folder, so they travel with the project and don't rely on a separate configuration service."
37
+ },
38
+ {
39
+ "path": "src/built-in/ClashesManager/example.ts",
40
+ "description": "ClashesManager — Structural engineers and BIM coordinators routinely detect geometric clashes between disciplines — structural steel penetrating ductwork, pipes clashing with slabs — and need to track the status of each issue through resolution without leaving their BIM environment."
41
+ },
42
+ {
43
+ "path": "src/built-in/GISManager/example.ts",
44
+ "description": "GISManager — Georeferenced BIM projects need their surroundings: the real terrain and buildings around the model, and the project's GIS layers (parcels, networks, boundaries) drawn at the right place in the 3D scene and on a 2D map."
45
+ },
46
+ {
47
+ "path": "src/built-in/ProjectManager/example.ts",
48
+ "description": "ProjectManager — Project-level configuration and data — GIS origin, georeferencing, app settings, and other project-scoped concerns — need a single canonical place to live. Without it, every builtin that needs to persist something at the project level (not per-file, not per-user) ends up inventing its own file, its own save/load pattern, and its own place to put it."
49
+ },
50
+ {
51
+ "path": "src/built-in/UIManager/src/app/example.ts",
52
+ "description": "top-app — Front-end developers building BIM web apps need to coordinate several async initialization steps before the UI can be shown — loading the engine, preparing fragment workers, registering loaders — and users need visible feedback on what is happening during that wait, rather than a blank screen."
53
+ },
54
+ {
55
+ "path": "src/built-in/UIManager/src/app/examples/AppState/example.ts",
56
+ "description": "Shared reactive state with AppState — Developers building interactive BIM panels often need sibling components — a filter selector and a results table, for example — to stay in sync without a shared parent. Lifting state to a common ancestor and threading it down as props works for shallow trees but becomes unwieldy as the component tree grows."
57
+ },
58
+ {
59
+ "path": "src/built-in/UIManager/src/app/examples/Banner/example.ts",
60
+ "description": "Persistent banners with top:banner — Some application states need a persistent, visible indicator that stays on screen until the state is explicitly cleared — an archived-files mode, a read-only permission warning, a degraded-connectivity notice. A toast auto-dismisses after a few seconds, which is wrong for these cases. A modal blocks interaction entirely, which is too heavy."
61
+ },
62
+ {
63
+ "path": "src/built-in/UIManager/src/app/examples/Contexts/example.ts",
64
+ "description": "Consuming platform contexts in child components — Developers building custom BIM panels need access to the 3D engine, the platform API, and the current project's metadata — but threading these objects down through props across multiple component layers forces every intermediate element to know about data it doesn't use, making trees brittle and hard to refactor."
65
+ },
66
+ {
67
+ "path": "src/built-in/UIManager/src/app/examples/FileDrop/example.ts",
68
+ "description": "File drag-and-drop with top:files-dropped — Desktop BIM workflows often rely on dragging files straight from the OS file manager onto the browser window — but wiring a document-level dragenter, dragover, dragleave, and drop handler that correctly tracks nested enter/leave counts, shows a visual overlay, and forwards the files to the right component is tedious boilerplate to repeat for every app."
69
+ },
70
+ {
71
+ "path": "src/built-in/UIManager/src/app/examples/FloatingLayout/example.ts",
72
+ "description": "Floating layout — Developers building BIM coordination tools often want the 3D model to fill the entire window while control panels float above it — but standard grid layouts give every area equal standing, shrinking the viewer into one cell and leaving visible seams between it and the panels."
73
+ },
74
+ {
75
+ "path": "src/built-in/UIManager/src/app/examples/Modal/example.ts",
76
+ "description": "Confirmation modals with top:modal — Destructive or irreversible actions — deleting records, overwriting files, leaving unsaved changes — should ask the user to confirm before proceeding. Opening a custom dialog element from a deeply nested component means threading a reference to a controller up through every layer of the tree."
77
+ },
78
+ {
79
+ "path": "src/built-in/UIManager/src/app/examples/Notifications/example.ts",
80
+ "description": "Toasts and cross-component notifications — Developers building BIM processing UIs need to surface status updates, errors, and async feedback to users from different points in the component tree — but reaching back to the app root to trigger a notification from a deeply nested component requires threading a reference through every layer in between."
81
+ },
82
+ {
83
+ "path": "src/built-in/UIManager/src/app/examples/ProjectFileStorage/example.ts",
84
+ "description": "Persisting project-scoped data with projectStorageContext — Most non-trivial apps built on top-app eventually need to persist some of their own data inside the project — user preferences, cached results, domain state that isn't a 3D model or a regular CDE file. The naive approach is for each panel/manager to talk to the CDE client directly: resolve or create a folder under `__project_data`, resolve or create the file, decide between uploading a new file and versioning an existing one. That's the same handful of steps every single consumer ends up re-implementing."
85
+ },
86
+ {
87
+ "path": "src/built-in/UIManager/src/app/examples/Sidebar/example.ts",
88
+ "description": "Sidebar navigation — Product teams building BIM apps often need multiple distinct views — a 3D model viewer, a data browser, a settings screen — but wiring a custom nav bar and managing view transitions from scratch adds complexity before any real feature work begins."
89
+ },
90
+ {
91
+ "path": "src/built-in/UIManager/src/clashes-panel/example.ts",
92
+ "description": "clashes-panel — BIM coordinators need a dedicated review environment where they can see all detected clashes, filter by status, navigate to each issue in the 3D viewer, and mark items as resolved — without writing any UI code themselves."
93
+ },
94
+ {
95
+ "path": "src/built-in/UIManager/src/gis-panel/example.ts",
96
+ "description": "gis-panel — A georeferenced project is much easier to review with its real surroundings around the model, and with the GIS layers of the site (networks, parcels, boundaries) switched on and off from a list. Streaming the terrain and buildings needs a Cesium Ion token and a way to load and unload them, and fine-tuning their position needs a few controls."
97
+ },
98
+ {
99
+ "path": "src/built-in/UIManager/src/gis-properties-panel/example.ts",
100
+ "description": "gis-properties-panel — A GIS feature (a pipe, a parcel, a manhole) is useless without its attributes: diameter, material, owner, installation date. Users want to click a feature, in the 3D view or on the map, and read them."
101
+ },
102
+ {
103
+ "path": "src/built-in/UIManager/src/git-history-panel/example.ts",
104
+ "description": "git-history-panel — `top-git-history` is a GitKraken-style commit timeline for the **revit-flow** feature. It lists the commits pushed by the Revit add-in (newest first) and, when you click a commit, drives the shared 3D viewer to color that commit's changed elements — created green, modified blue, deleted red — on the loaded baseline model."
105
+ },
106
+ {
107
+ "path": "src/built-in/UIManager/src/map-panel/example.ts",
108
+ "description": "map-panel — In a large site, the 3D camera alone is a poor way to get oriented: users want a plan view to see where they are, where the GIS features are, and to jump somewhere else with a click."
109
+ },
110
+ {
111
+ "path": "src/built-in/UIManager/src/models-list/example.ts",
112
+ "description": "top-models-list — top-models-list is the project's 3D-viewable-files tree: it mirrors the real storage folder structure, converts IFC to fragments, and loads `.frag`/`.potree`/`.splat` models into the 3D scene. Its loaders are PLUGGABLE — the panel owns the UI and the orchestration (progress, refresh, association), but the HOST decides how each extra file format is loaded, so you can teach it new formats without forking the built-in."
113
+ },
114
+ {
115
+ "path": "src/built-in/UIManager/src/settings-panel/example.ts",
116
+ "description": "top-settings-panel — Every viewer app ends up needing the same settings screen: rendering options, clip/measurement styling, a \"which cloud component converts this format\" picker, a keyboard-shortcut reference — plus a search box that filters all of it and a \"restore defaults\" button that resets whatever has persisted state. Building that, and keeping it in sync with the tools it configures, is real work before you've added a single setting of your own."
117
+ },
118
+ {
119
+ "path": "src/built-in/UIManager/src/topics-panel/example.ts",
120
+ "description": "topics-panel — Every coordination workflow needs a place to track issues, clashes, and action items against a 3D model — who's responsible, what still needs review, and where in the model it actually is. Building that from scratch means a BCF-compatible data model, a form, comment threads, viewpoint capture/navigation, document links, and a persistence layer — all before a single issue gets tracked."
121
+ },
122
+ {
123
+ "path": "src/built-in/UIManager/src/viewer/example.ts",
124
+ "description": "top-viewer — Every BIM app needs a 3D viewport: a scene, a camera, a grid, element highlighting, and the plumbing to keep loaded models framed and rendering efficiently as they stream in. Building that from scratch is a project on its own, before a single button or panel gets wired to it."
125
+ },
126
+ {
127
+ "path": "src/built-in/UIManager/src/viewer-toolbar/example.ts",
128
+ "description": "top-viewer-toolbar — A 3D viewport is only as useful as the controls around it: selecting a target set, hiding/isolating/ghosting elements, clipping, measuring, walking through the model. Building that toolbar — and keeping every button in sync with tool state and with each other — is real work, before you've customized anything."
129
+ }
130
+ ]
@@ -1,29 +1,29 @@
1
- ---
2
- description: "Scaffold a new app or cloud component project from a template. Covers --template (app for browser BIM apps, cloud-component for server-side components), --beta for switching to private beta engine libraries at scaffold time, and using '.' as the project name to scaffold into the current directory."
3
- ---
4
-
5
- ## thatopen create
6
-
7
- Scaffolds a new ThatOpen project and runs `npm install` automatically.
8
-
9
- **Usage:**
10
- ```bash
11
- thatopen create <project-name> [flags]
12
- thatopen create . # scaffold into the current directory
13
- ```
14
-
15
- **Flags:**
16
-
17
- - `--template <template>`, `-t` — Template to use. Default: `app`.
18
- - `app` — Browser BIM app running inside the platform iframe.
19
- - `cloud-component` — Server-side component executed by the platform's cloud engine and consumed in apps and/or automations.
20
- - `--beta` — Use private beta engine libraries (`@thatopen-platform/*-beta`) instead of the public ones. Sets `beta: true` in `.thatopen` so `serve`, `local-server`, and `vite build` all resolve to beta packages automatically. Requires beta npm access configured (handled automatically once you `thatopen login`).
21
-
22
- > **`--beta` is currently required.** The templates depend on engine APIs that only exist in the beta libraries, so scaffolding without `--beta` errors out for now. Public (non-beta) support is coming with the October release.
23
-
24
- **Examples:**
25
- ```bash
26
- thatopen create my-app --beta
27
- thatopen create my-app -t cloud-component --beta
28
- thatopen create . --beta
29
- ```
1
+ ---
2
+ description: "Scaffold a new app or cloud component project from a template. Covers --template (app for browser BIM apps, cloud-component for server-side components), --beta for switching to private beta engine libraries at scaffold time, and using '.' as the project name to scaffold into the current directory."
3
+ ---
4
+
5
+ ## thatopen create
6
+
7
+ Scaffolds a new ThatOpen project and runs `npm install` automatically.
8
+
9
+ **Usage:**
10
+ ```bash
11
+ thatopen create <project-name> [flags]
12
+ thatopen create . # scaffold into the current directory
13
+ ```
14
+
15
+ **Flags:**
16
+
17
+ - `--template <template>`, `-t` — Template to use. Default: `app`.
18
+ - `app` — Browser BIM app running inside the platform iframe.
19
+ - `cloud-component` — Server-side component executed by the platform's cloud engine and consumed in apps and/or automations.
20
+ - `--beta` — Use private beta engine libraries (`@thatopen-platform/*-beta`) instead of the public ones. Sets `beta: true` in `.thatopen` so `serve`, `local-server`, and `vite build` all resolve to beta packages automatically. Requires beta npm access configured (handled automatically once you `thatopen login`).
21
+
22
+ > **`--beta` is currently required.** The templates depend on engine APIs that only exist in the beta libraries, so scaffolding without `--beta` errors out for now. Public (non-beta) support is coming with the October release.
23
+
24
+ **Examples:**
25
+ ```bash
26
+ thatopen create my-app --beta
27
+ thatopen create my-app -t cloud-component --beta
28
+ thatopen create . --beta
29
+ ```
@@ -1,38 +1,38 @@
1
- ---
2
- description: "Start a local HTTP + Socket.IO server that replicates the platform's cloud execution API on port 4001, with esbuild watch mode. Connect an app to it via EngineServicesClient's localServerUrl option to execute and monitor a local cloud component without publishing."
3
- ---
4
-
5
- ## thatopen local-server
6
-
7
- Starts a local server that mimics the platform's cloud execution API. Runs esbuild in watch mode and rebuilds the component on every save.
8
-
9
- Connect an app to it by passing `localServerUrl` to `EngineServicesClient`:
10
-
11
- ```ts
12
- const client = new EngineServicesClient(token, apiUrl, {
13
- localServerUrl: 'http://localhost:4001'
14
- });
15
- ```
16
-
17
- **Usage:**
18
- ```bash
19
- thatopen local-server [flags]
20
- ```
21
-
22
- **Flags:**
23
-
24
- - `--port <port>` — Port to run the server on. Default: `4001`.
25
- - `--skip-build` — Skip the initial build and use the existing `dist/bundle.js`.
26
-
27
- **Endpoints:**
28
-
29
- - `POST /api/processor/:componentId/execute`
30
- - `GET /api/processor/progress/:executionId`
31
- - `POST /api/processor/progress/:executionId/abort`
32
- - `GET /api/processor/:componentId/progress`
33
-
34
- **Example:**
35
- ```bash
36
- thatopen local-server
37
- thatopen local-server --port 5000
38
- ```
1
+ ---
2
+ description: "Start a local HTTP + Socket.IO server that replicates the platform's cloud execution API on port 4001, with esbuild watch mode. Connect an app to it via EngineServicesClient's localServerUrl option to execute and monitor a local cloud component without publishing."
3
+ ---
4
+
5
+ ## thatopen local-server
6
+
7
+ Starts a local server that mimics the platform's cloud execution API. Runs esbuild in watch mode and rebuilds the component on every save.
8
+
9
+ Connect an app to it by passing `localServerUrl` to `EngineServicesClient`:
10
+
11
+ ```ts
12
+ const client = new EngineServicesClient(token, apiUrl, {
13
+ localServerUrl: 'http://localhost:4001'
14
+ });
15
+ ```
16
+
17
+ **Usage:**
18
+ ```bash
19
+ thatopen local-server [flags]
20
+ ```
21
+
22
+ **Flags:**
23
+
24
+ - `--port <port>` — Port to run the server on. Default: `4001`.
25
+ - `--skip-build` — Skip the initial build and use the existing `dist/bundle.js`.
26
+
27
+ **Endpoints:**
28
+
29
+ - `POST /api/processor/:componentId/execute`
30
+ - `GET /api/processor/progress/:executionId`
31
+ - `POST /api/processor/progress/:executionId/abort`
32
+ - `GET /api/processor/:componentId/progress`
33
+
34
+ **Example:**
35
+ ```bash
36
+ thatopen local-server
37
+ thatopen local-server --port 5000
38
+ ```
package/docs/cli/login.md CHANGED
@@ -1,32 +1,32 @@
1
- ---
2
- description: "Authenticate with the ThatOpen platform by validating an access token against the API. Saves credentials globally (~/.thatopen/config.json) by default, or locally to the project's .thatopen file with --local. Local config takes priority over global."
3
- ---
4
-
5
- ## thatopen login
6
-
7
- Validates an access token against the platform API and saves the credentials. Run this once globally before using any other command, or per-project with `--local`.
8
-
9
- To get a token:
10
- 1. Go to [https://platform.thatopen.com](https://platform.thatopen.com)
11
- 2. In the header, click **Data**
12
- 3. Find the **Tokens** card and create a new token
13
- 4. Enable the permissions: **Apps**, **Components**, and **Storage**
14
- 5. Copy the token
15
-
16
- **Usage:**
17
- ```bash
18
- thatopen login --token <token> [flags]
19
- ```
20
-
21
- **Flags:**
22
-
23
- - `--token <token>` — Access token from the dashboard. Required.
24
- - `--api-url <url>` — Platform API URL. Default: `https://platform.thatopen.com` (production). Pass `https://dev.platform.thatopen.com` to target the dev environment.
25
- - `--local` — Save credentials to `.thatopen` in the current directory instead of the global config. Use this inside a project to override the global token for that project only.
26
-
27
- **Examples:**
28
- ```bash
29
- thatopen login --token my-token
30
- thatopen login --token my-token --local
31
- npm run login -- --token my-token # from inside a scaffolded project
32
- ```
1
+ ---
2
+ description: "Authenticate with the ThatOpen platform by validating an access token against the API. Saves credentials globally (~/.thatopen/config.json) by default, or locally to the project's .thatopen file with --local. Local config takes priority over global."
3
+ ---
4
+
5
+ ## thatopen login
6
+
7
+ Validates an access token against the platform API and saves the credentials. Run this once globally before using any other command, or per-project with `--local`.
8
+
9
+ To get a token:
10
+ 1. Go to [https://platform.thatopen.com](https://platform.thatopen.com)
11
+ 2. In the header, click **Data**
12
+ 3. Find the **Tokens** card and create a new token
13
+ 4. Enable the permissions: **Apps**, **Components**, and **Storage**
14
+ 5. Copy the token
15
+
16
+ **Usage:**
17
+ ```bash
18
+ thatopen login --token <token> [flags]
19
+ ```
20
+
21
+ **Flags:**
22
+
23
+ - `--token <token>` — Access token from the dashboard. Required.
24
+ - `--api-url <url>` — Platform API URL. Default: `https://platform.thatopen.com` (production). Pass `https://dev.platform.thatopen.com` to target the dev environment.
25
+ - `--local` — Save credentials to `.thatopen` in the current directory instead of the global config. Use this inside a project to override the global token for that project only.
26
+
27
+ **Examples:**
28
+ ```bash
29
+ thatopen login --token my-token
30
+ thatopen login --token my-token --local
31
+ npm run login -- --token my-token # from inside a scaffolded project
32
+ ```
package/docs/cli/mcp.md CHANGED
@@ -1,46 +1,46 @@
1
- ---
2
- description: "Start an MCP server over stdio that lets an LLM on the desktop (Claude Desktop, Claude Code, any MCP client) drive a running That Open app through the platform channel: send it commands and read the replies."
3
- ---
4
-
5
- ## thatopen mcp
6
-
7
- Runs an MCP (Model Context Protocol) server on stdio. Register it in an MCP
8
- client's config and the LLM can command a running That Open app through the
9
- platform channel — the same relay the app's `src/setups/channel.ts` listens
10
- to, as one external channel of kind `mcp`.
11
-
12
- **Usage (in the MCP client's config, not a terminal):**
13
-
14
- ```json
15
- {
16
- "mcpServers": {
17
- "thatopen-platform": {
18
- "command": "npx",
19
- "args": ["-y", "@thatopen/services", "mcp"]
20
- }
21
- }
22
- }
23
- ```
24
-
25
- **Credentials:** resolved like every other CLI command — the project's
26
- `.thatopen`, then `~/.thatopen/config.json` from `thatopen login`. Or inject
27
- `THATOPEN_TOKEN` and `THATOPEN_API_URL` through the MCP server's `env`.
28
-
29
- **Tools exposed:**
30
-
31
- - `platform-status` — which API the server points at, whether credentials were
32
- found, and whether the channel subscription works. The first call to make
33
- when another tool fails.
34
- - `send-app-command` — publish a command (`ping`, `get-loaded-models`, or
35
- whatever the app declares in `AppCommands`) to a running app and return its
36
- reply. Takes the project per call (id or dashboard URL); `app_id` is omitted
37
- while the app runs under `thatopen serve` and passed once it is published.
38
- A URL with `/apps/<id>` (the user's app tab) gives the `app_id` too.
39
-
40
- **Using an app, not building one:** send `help` first. Every app answers it
41
- with its own commands and how it wants to be used, and that reply is the
42
- manual the LLM follows.
43
-
44
- **The app must be open.** `delivered: 0` means no tab of that app has the
45
- channel joined — the LLM is told to ask the user to open or reload the app
46
- tab, the same rule as the raw socket in the quickstart's section 5b.
1
+ ---
2
+ description: "Start an MCP server over stdio that lets an LLM on the desktop (Claude Desktop, Claude Code, any MCP client) drive a running That Open app through the platform channel: send it commands and read the replies."
3
+ ---
4
+
5
+ ## thatopen mcp
6
+
7
+ Runs an MCP (Model Context Protocol) server on stdio. Register it in an MCP
8
+ client's config and the LLM can command a running That Open app through the
9
+ platform channel — the same relay the app's `src/setups/channel.ts` listens
10
+ to, as one external channel of kind `mcp`.
11
+
12
+ **Usage (in the MCP client's config, not a terminal):**
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "thatopen-platform": {
18
+ "command": "npx",
19
+ "args": ["-y", "@thatopen/services", "mcp"]
20
+ }
21
+ }
22
+ }
23
+ ```
24
+
25
+ **Credentials:** resolved like every other CLI command — the project's
26
+ `.thatopen`, then `~/.thatopen/config.json` from `thatopen login`. Or inject
27
+ `THATOPEN_TOKEN` and `THATOPEN_API_URL` through the MCP server's `env`.
28
+
29
+ **Tools exposed:**
30
+
31
+ - `platform-status` — which API the server points at, whether credentials were
32
+ found, and whether the channel subscription works. The first call to make
33
+ when another tool fails.
34
+ - `send-app-command` — publish a command (`ping`, `get-loaded-models`, or
35
+ whatever the app declares in `AppCommands`) to a running app and return its
36
+ reply. Takes the project per call (id or dashboard URL); `app_id` is omitted
37
+ while the app runs under `thatopen serve` and passed once it is published.
38
+ A URL with `/apps/<id>` (the user's app tab) gives the `app_id` too.
39
+
40
+ **Using an app, not building one:** send `help` first. Every app answers it
41
+ with its own commands and how it wants to be used, and that reply is the
42
+ manual the LLM follows.
43
+
44
+ **The app must be open.** `delivered: 0` means no tab of that app has the
45
+ channel joined — the LLM is told to ask the user to open or reload the app
46
+ tab, the same rule as the raw socket in the quickstart's section 5b.