@mountaya/studio 0.0.0-stage → 0.2.0
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.
- package/CHANGELOG.md +69 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +917 -2
- package/dist/agent/index.cjs +2600 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +1237 -0
- package/dist/agent/index.d.ts +1237 -0
- package/dist/agent/index.js +2581 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/chunk-3Oi_Zrtm.js +9 -0
- package/dist/chunk-3Oi_Zrtm.js.map +1 -0
- package/dist/chunk-B18OPIu_.js +6 -0
- package/dist/chunk-B18OPIu_.js.map +1 -0
- package/dist/chunk-B5Uz3Qct.cjs +15 -0
- package/dist/chunk-B5Uz3Qct.cjs.map +1 -0
- package/dist/chunk-BBEJwkd3.d.cts +839 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BKMFOe-N.js +171 -0
- package/dist/chunk-BKMFOe-N.js.map +1 -0
- package/dist/chunk-BP4uy7E1.d.ts +11583 -0
- package/dist/chunk-BSHTsFiB.js +1403 -0
- package/dist/chunk-BSHTsFiB.js.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BaPiaz5X.cjs +115 -0
- package/dist/chunk-BaPiaz5X.cjs.map +1 -0
- package/dist/chunk-BeCVpkYr.cjs +542 -0
- package/dist/chunk-BeCVpkYr.cjs.map +1 -0
- package/dist/chunk-BgngsvK8.cjs +6202 -0
- package/dist/chunk-BgngsvK8.cjs.map +1 -0
- package/dist/chunk-BhInd7CJ.d.cts +253 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-By9ZnkVI.js +60 -0
- package/dist/chunk-By9ZnkVI.js.map +1 -0
- package/dist/chunk-BzqPhxsz.cjs +367 -0
- package/dist/chunk-BzqPhxsz.cjs.map +1 -0
- package/dist/chunk-C2mMX81q.d.ts +443 -0
- package/dist/chunk-C2rr9Q0V.cjs +1402 -0
- package/dist/chunk-C2rr9Q0V.cjs.map +1 -0
- package/dist/chunk-CDJCbwIQ.d.cts +78 -0
- package/dist/chunk-CLGvBOVH.d.cts +1654 -0
- package/dist/chunk-COdw1dc6.d.ts +525 -0
- package/dist/chunk-CQCJnT2i.d.ts +511 -0
- package/dist/chunk-CSyHY67q.cjs +353 -0
- package/dist/chunk-CSyHY67q.cjs.map +1 -0
- package/dist/chunk-CiK1Iqrv.js +950 -0
- package/dist/chunk-CiK1Iqrv.js.map +1 -0
- package/dist/chunk-CmJBgSwZ.cjs +24 -0
- package/dist/chunk-CmJBgSwZ.cjs.map +1 -0
- package/dist/chunk-CnrsRK2u.cjs +83 -0
- package/dist/chunk-CnrsRK2u.cjs.map +1 -0
- package/dist/chunk-Co782_9r.js +326 -0
- package/dist/chunk-Co782_9r.js.map +1 -0
- package/dist/chunk-Csr3KDpZ.cjs +32 -0
- package/dist/chunk-Csr3KDpZ.cjs.map +1 -0
- package/dist/chunk-CwkmccXv.js +89 -0
- package/dist/chunk-CwkmccXv.js.map +1 -0
- package/dist/chunk-D0Q4iL9B.cjs +255 -0
- package/dist/chunk-D0Q4iL9B.cjs.map +1 -0
- package/dist/chunk-DFwiSzUS.cjs +72 -0
- package/dist/chunk-DFwiSzUS.cjs.map +1 -0
- package/dist/chunk-DIFayl2P.d.cts +443 -0
- package/dist/chunk-DIGF58ux.d.cts +525 -0
- package/dist/chunk-DKuuuld5.js +101 -0
- package/dist/chunk-DKuuuld5.js.map +1 -0
- package/dist/chunk-DMePkFEo.js +5054 -0
- package/dist/chunk-DMePkFEo.js.map +1 -0
- package/dist/chunk-DO5SIBgu.js +305 -0
- package/dist/chunk-DO5SIBgu.js.map +1 -0
- package/dist/chunk-DOQ_7eE5.d.ts +6662 -0
- package/dist/chunk-DThaaNeb.d.cts +15 -0
- package/dist/chunk-DThaaNeb.d.ts +15 -0
- package/dist/chunk-DUQzjUJy.d.ts +78 -0
- package/dist/chunk-DX37IPhV.cjs +1903 -0
- package/dist/chunk-DX37IPhV.cjs.map +1 -0
- package/dist/chunk-Damps5Tk.cjs +155 -0
- package/dist/chunk-Damps5Tk.cjs.map +1 -0
- package/dist/chunk-DbK5PhpJ.d.ts +1654 -0
- package/dist/chunk-De0vAASv.d.ts +253 -0
- package/dist/chunk-DhSZ7YZt.d.cts +6662 -0
- package/dist/chunk-DjEvqvPA.cjs +43 -0
- package/dist/chunk-DjEvqvPA.cjs.map +1 -0
- package/dist/chunk-DkwDzwvu.d.cts +121 -0
- package/dist/chunk-DkwDzwvu.d.ts +121 -0
- package/dist/chunk-Dmszv9If.js +71 -0
- package/dist/chunk-Dmszv9If.js.map +1 -0
- package/dist/chunk-Dp_ftNWY.d.cts +511 -0
- package/dist/chunk-DsHQySz0.js +31 -0
- package/dist/chunk-DsHQySz0.js.map +1 -0
- package/dist/chunk-DwoUyHHh.js +281 -0
- package/dist/chunk-DwoUyHHh.js.map +1 -0
- package/dist/chunk-IaIDQflj.d.cts +2315 -0
- package/dist/chunk-IaIDQflj.d.ts +2315 -0
- package/dist/chunk-cVXLsZfL.d.ts +839 -0
- package/dist/chunk-mIaCX9EJ.d.cts +11583 -0
- package/dist/chunk-nJQxbOwQ.cjs +8962 -0
- package/dist/chunk-nJQxbOwQ.cjs.map +1 -0
- package/dist/chunk-o9jaxhCO.js +8852 -0
- package/dist/chunk-o9jaxhCO.js.map +1 -0
- package/dist/chunk-p-Tt_Lwz.js +14 -0
- package/dist/chunk-p-Tt_Lwz.js.map +1 -0
- package/dist/engines/index.cjs +2091 -0
- package/dist/engines/index.cjs.map +1 -0
- package/dist/engines/index.d.cts +2176 -0
- package/dist/engines/index.d.ts +2176 -0
- package/dist/engines/index.js +2075 -0
- package/dist/engines/index.js.map +1 -0
- package/dist/handlers/index.cjs +53 -0
- package/dist/handlers/index.cjs.map +1 -0
- package/dist/handlers/index.d.cts +403 -0
- package/dist/handlers/index.d.ts +403 -0
- package/dist/handlers/index.js +33 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/index.cjs +3511 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +3033 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/index.cjs +510 -0
- package/dist/plugins/index.cjs.map +1 -0
- package/dist/plugins/index.d.cts +296 -0
- package/dist/plugins/index.d.ts +296 -0
- package/dist/plugins/index.js +489 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/seams/index.cjs +89 -0
- package/dist/seams/index.cjs.map +1 -0
- package/dist/seams/index.d.cts +452 -0
- package/dist/seams/index.d.ts +452 -0
- package/dist/seams/index.js +49 -0
- package/dist/seams/index.js.map +1 -0
- package/dist/strings/fr/index.cjs +2135 -0
- package/dist/strings/fr/index.cjs.map +1 -0
- package/dist/strings/fr/index.d.cts +17 -0
- package/dist/strings/fr/index.d.ts +17 -0
- package/dist/strings/fr/index.js +2130 -0
- package/dist/strings/fr/index.js.map +1 -0
- package/dist/strings/index.cjs +2384 -0
- package/dist/strings/index.cjs.map +1 -0
- package/dist/strings/index.d.cts +3 -0
- package/dist/strings/index.d.ts +3 -0
- package/dist/strings/index.js +2353 -0
- package/dist/strings/index.js.map +1 -0
- package/dist/testing/index.cjs +230 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +246 -0
- package/dist/testing/index.d.ts +246 -0
- package/dist/testing/index.js +219 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/time/index.cjs +28 -0
- package/dist/time/index.cjs.map +1 -0
- package/dist/time/index.d.cts +41 -0
- package/dist/time/index.d.ts +41 -0
- package/dist/time/index.js +23 -0
- package/dist/time/index.js.map +1 -0
- package/package.json +224 -4
- package/src/agent/engines/agentThreads.ts +1601 -0
- package/src/agent/engines/directorChat.ts +500 -0
- package/src/agent/index.ts +67 -0
- package/src/agent/rules/agentEditLock.ts +115 -0
- package/src/agent/rules/agentErrorCopy.ts +44 -0
- package/src/agent/rules/copilotOrganization.ts +36 -0
- package/src/agent/rules/playbook.gen.ts +444 -0
- package/src/agent/rules/router.ts +518 -0
- package/src/agent/rules/stateDelta.ts +29 -0
- package/src/agent/rules/studioRouter.ts +123 -0
- package/src/agent/rules/surfaces.gen.ts +633 -0
- package/src/agent/rules/threadsUrl.ts +48 -0
- package/src/agent/rules/transcriptObserver.ts +90 -0
- package/src/agent/stores/agentThreads.ts +451 -0
- package/src/bus/contracts/noData.ts +18 -0
- package/src/bus/contracts/shared.ts +172 -0
- package/src/bus/contracts/studioTools.ts +224 -0
- package/src/bus/rules/bus.ts +857 -0
- package/src/bus/rules/confirmation.ts +22 -0
- package/src/bus/rules/defineRegistry.ts +24 -0
- package/src/bus/rules/errors.ts +401 -0
- package/src/bus/rules/handlerErrors.ts +103 -0
- package/src/bus/rules/handlerRegistry.ts +627 -0
- package/src/bus/rules/inputSchema.ts +232 -0
- package/src/bus/rules/invalidInput.ts +441 -0
- package/src/bus/rules/lateBoundTools.ts +100 -0
- package/src/bus/rules/studioRegistry.ts +324 -0
- package/src/bus/rules/studioToolBus.ts +73 -0
- package/src/bus/rules/types.ts +804 -0
- package/src/chrome/contracts/alert.ts +42 -0
- package/src/chrome/contracts/itinerary.ts +26 -0
- package/src/chrome/contracts/map.ts +23 -0
- package/src/chrome/contracts/overlay.ts +46 -0
- package/src/chrome/contracts/panel.ts +29 -0
- package/src/chrome/contracts/question.ts +52 -0
- package/src/chrome/contracts/selection.ts +26 -0
- package/src/chrome/contracts/sidenav.ts +23 -0
- package/src/chrome/contracts/snapshot.ts +319 -0
- package/src/chrome/contracts/state.ts +22 -0
- package/src/chrome/contracts/tabs.ts +56 -0
- package/src/chrome/handlers/alert.ts +91 -0
- package/src/chrome/handlers/introspection.ts +180 -0
- package/src/chrome/handlers/panels.ts +42 -0
- package/src/chrome/handlers/question.ts +24 -0
- package/src/chrome/handlers/sidenav.ts +116 -0
- package/src/chrome/handlers/snapshot.ts +451 -0
- package/src/chrome/handlers/stateDelta.ts +125 -0
- package/src/chrome/handlers/tabs.ts +143 -0
- package/src/chrome/handlers/timestamp.ts +19 -0
- package/src/chrome/rules/agentSelectors.ts +210 -0
- package/src/chrome/rules/mapAlert.ts +13 -0
- package/src/chrome/rules/question.ts +25 -0
- package/src/chrome/rules/tabs.ts +13 -0
- package/src/chrome/stores/activeDraftSession.ts +134 -0
- package/src/chrome/stores/chrome.ts +527 -0
- package/src/chrome/stores/uiStore.ts +575 -0
- package/src/collab/contracts/collab.ts +261 -0
- package/src/collab/handlers/collab.ts +468 -0
- package/src/collab/rules/toolNames.ts +33 -0
- package/src/collab/stores/collab.ts +899 -0
- package/src/collections/contracts/collection.ts +182 -0
- package/src/collections/handlers/collectionAttach.ts +141 -0
- package/src/collections/handlers/collections.ts +499 -0
- package/src/collections/handlers/heldCollection.ts +42 -0
- package/src/collections/handlers/restCollections.ts +386 -0
- package/src/collections/rules/collections.ts +138 -0
- package/src/collections/rules/entityCollections.ts +53 -0
- package/src/collections/stores/collections.ts +133 -0
- package/src/data/contracts/data.ts +233 -0
- package/src/data/contracts/itinerary.ts +71 -0
- package/src/data/handlers/activityResolve.ts +76 -0
- package/src/data/handlers/data.ts +200 -0
- package/src/data/handlers/graphql.ts +26 -0
- package/src/data/handlers/mutationSink.ts +1577 -0
- package/src/data/handlers/profile.ts +83 -0
- package/src/data/handlers/writeThrough.ts +417 -0
- package/src/data/rules/cache.ts +181 -0
- package/src/data/rules/dataTypes.ts +40 -0
- package/src/data/rules/keys.ts +106 -0
- package/src/data/rules/persistence.ts +1058 -0
- package/src/data/rules/requestBody.ts +43 -0
- package/src/data/rules/restErrors.ts +354 -0
- package/src/data/rules/sessionSurface.ts +156 -0
- package/src/data/rules/toolResultData.ts +73 -0
- package/src/data/rules/uuid.ts +24 -0
- package/src/edit/contracts/edit.ts +37 -0
- package/src/edit/contracts/itinerary.ts +57 -0
- package/src/edit/handlers/draftCommit.ts +257 -0
- package/src/edit/handlers/editDiscard.ts +34 -0
- package/src/edit/handlers/editLock.ts +949 -0
- package/src/edit/handlers/editor.ts +203 -0
- package/src/edit/handlers/formUnsaved.ts +24 -0
- package/src/edit/rules/draftMetadata.ts +117 -0
- package/src/edit/rules/editKeyboard.ts +222 -0
- package/src/edit/rules/editShortcuts.ts +102 -0
- package/src/edit/rules/editTooltip.ts +174 -0
- package/src/edit/rules/editorTaken.ts +49 -0
- package/src/edit/rules/history.ts +26 -0
- package/src/edit/rules/unsavedWork.ts +60 -0
- package/src/edit/stores/editorReservation.ts +70 -0
- package/src/edit/stores/formsUnsaved.ts +54 -0
- package/src/embed/contracts/embed.ts +48 -0
- package/src/embed/engines/embedFraming.ts +1329 -0
- package/src/embed/engines/embedReady.ts +353 -0
- package/src/embed/engines/framingPageSession.ts +169 -0
- package/src/embed/handlers/embed.ts +130 -0
- package/src/embed/rules/allowedDomains.ts +71 -0
- package/src/embed/rules/bridgeMessages.ts +224 -0
- package/src/embed/rules/defaults.ts +173 -0
- package/src/embed/rules/displaySeed.ts +115 -0
- package/src/embed/rules/embedAllowlist.ts +146 -0
- package/src/embed/rules/embedConstraints.ts +215 -0
- package/src/embed/rules/embedElements.ts +277 -0
- package/src/embed/rules/embedSectionFields.ts +126 -0
- package/src/embed/rules/embedSecurity.ts +116 -0
- package/src/embed/rules/fieldDependencies.ts +89 -0
- package/src/embed/rules/fieldOptions.ts +138 -0
- package/src/embed/rules/layerOptions.ts +161 -0
- package/src/embed/rules/readyProtocol.ts +66 -0
- package/src/embed/rules/safetyRules.ts +215 -0
- package/src/embed/rules/snippet.ts +531 -0
- package/src/embed/rules/tableCode.ts +270 -0
- package/src/embed/stores/embed.ts +60 -0
- package/src/embed/stores/embedContent.ts +77 -0
- package/src/engines/index.ts +81 -0
- package/src/handlers/index.ts +66 -0
- package/src/index.ts +1065 -0
- package/src/itinerary/contracts/itinerary.ts +705 -0
- package/src/itinerary/engines/itineraryPace.ts +612 -0
- package/src/itinerary/engines/profileMarker.ts +238 -0
- package/src/itinerary/handlers/importStaging.ts +352 -0
- package/src/itinerary/handlers/itinerary.ts +572 -0
- package/src/itinerary/handlers/itineraryDuplicate.ts +177 -0
- package/src/itinerary/handlers/itineraryExport.ts +117 -0
- package/src/itinerary/handlers/itineraryImport.ts +783 -0
- package/src/itinerary/handlers/itineraryPublish.ts +118 -0
- package/src/itinerary/handlers/itinerarySelection.ts +354 -0
- package/src/itinerary/handlers/itinerarySuggest.ts +1186 -0
- package/src/itinerary/handlers/itineraryUnpublish.ts +101 -0
- package/src/itinerary/handlers/publicationScope.ts +118 -0
- package/src/itinerary/handlers/restItineraries.ts +752 -0
- package/src/itinerary/handlers/restItineraryExport.ts +70 -0
- package/src/itinerary/handlers/restItineraryImport.ts +311 -0
- package/src/itinerary/handlers/restItineraryPace.ts +87 -0
- package/src/itinerary/handlers/restItineraryRecord.ts +36 -0
- package/src/itinerary/handlers/suggestParams.ts +379 -0
- package/src/itinerary/handlers/suggestStaging.ts +363 -0
- package/src/itinerary/handlers/surfaceOpen.ts +389 -0
- package/src/itinerary/rules/activity.ts +139 -0
- package/src/itinerary/rules/analysis.ts +42 -0
- package/src/itinerary/rules/ceiling.ts +49 -0
- package/src/itinerary/rules/createFlow.ts +107 -0
- package/src/itinerary/rules/densify.ts +440 -0
- package/src/itinerary/rules/draftSurface.ts +219 -0
- package/src/itinerary/rules/editorView.ts +83 -0
- package/src/itinerary/rules/export.ts +159 -0
- package/src/itinerary/rules/friendlyName.ts +77 -0
- package/src/itinerary/rules/import.ts +1050 -0
- package/src/itinerary/rules/importFiles.ts +140 -0
- package/src/itinerary/rules/importTotals.ts +77 -0
- package/src/itinerary/rules/liveSegment.ts +712 -0
- package/src/itinerary/rules/lngLat.ts +17 -0
- package/src/itinerary/rules/mapSync.ts +100 -0
- package/src/itinerary/rules/previewRender.ts +416 -0
- package/src/itinerary/rules/profileReadout.ts +216 -0
- package/src/itinerary/rules/routing.ts +707 -0
- package/src/itinerary/rules/suggest.ts +522 -0
- package/src/itinerary/rules/suggestionPreview.ts +119 -0
- package/src/itinerary/rules/view.ts +61 -0
- package/src/itinerary/stores/importSession.ts +319 -0
- package/src/itinerary/stores/itinerary.ts +331 -0
- package/src/itinerary/stores/itineraryDuplicate.ts +76 -0
- package/src/itinerary/stores/sessionIdentity.ts +43 -0
- package/src/itinerary/stores/suggestSession.ts +418 -0
- package/src/layers/contracts/itinerary.ts +46 -0
- package/src/layers/contracts/overlay.ts +132 -0
- package/src/layers/handlers/enrichment.ts +36 -0
- package/src/layers/handlers/overlay.ts +406 -0
- package/src/layers/handlers/restLayers.ts +94 -0
- package/src/layers/handlers/tiles.ts +25 -0
- package/src/layers/rules/layers.ts +212 -0
- package/src/layers/rules/overlayInstant.ts +12 -0
- package/src/layers/rules/reachabilityIcon.ts +18 -0
- package/src/layers/rules/readout.ts +102 -0
- package/src/layers/stores/layers.ts +262 -0
- package/src/map/contracts/contextmenu.ts +33 -0
- package/src/map/contracts/geolocate.ts +37 -0
- package/src/map/contracts/map.ts +146 -0
- package/src/map/contracts/streetview.ts +53 -0
- package/src/map/contracts/terrain.ts +152 -0
- package/src/map/handlers/contextMenu.ts +135 -0
- package/src/map/handlers/geolocate.ts +52 -0
- package/src/map/handlers/map.ts +391 -0
- package/src/map/handlers/streetview.ts +94 -0
- package/src/map/handlers/terrain.ts +663 -0
- package/src/map/rules/baseTerrain.ts +75 -0
- package/src/map/rules/clickTargets.ts +464 -0
- package/src/map/rules/constraints.ts +32 -0
- package/src/map/rules/contextMenuReadout.ts +67 -0
- package/src/map/rules/coordinates.ts +71 -0
- package/src/map/rules/itineraryFit.ts +8 -0
- package/src/map/rules/mapEvents.ts +64 -0
- package/src/map/rules/mapProjection.ts +476 -0
- package/src/map/rules/terrainReading.ts +62 -0
- package/src/plugins/contracts/ids.ts +66 -0
- package/src/plugins/contracts/plugin.ts +202 -0
- package/src/plugins/contracts/slots.ts +137 -0
- package/src/plugins/engines/studioPlugin.ts +1365 -0
- package/src/plugins/index.ts +111 -0
- package/src/plugins/rules/contributions.ts +152 -0
- package/src/plugins/rules/errors.ts +60 -0
- package/src/plugins/rules/ids.ts +42 -0
- package/src/plugins/rules/validation.ts +249 -0
- package/src/rules/listeners.ts +57 -0
- package/src/rules/origin.ts +13 -0
- package/src/rules/storeWrite.ts +37 -0
- package/src/rules/types.ts +136 -0
- package/src/seams/index.ts +79 -0
- package/src/seams/rules/clock.ts +28 -0
- package/src/seams/rules/formatters.ts +211 -0
- package/src/seams/rules/ids.ts +102 -0
- package/src/seams/rules/links.ts +66 -0
- package/src/seams/rules/navigation.ts +222 -0
- package/src/seams/rules/notify.ts +49 -0
- package/src/seams/rules/persistenceDrawer.ts +220 -0
- package/src/seams/rules/saveFile.ts +101 -0
- package/src/seams/rules/seams.ts +156 -0
- package/src/seams/rules/storage.ts +116 -0
- package/src/search/contracts/overlay.ts +74 -0
- package/src/search/contracts/search.ts +197 -0
- package/src/search/handlers/pois.ts +57 -0
- package/src/search/handlers/search.ts +280 -0
- package/src/search/rules/params.ts +925 -0
- package/src/search/rules/poiGroups.ts +138 -0
- package/src/search/rules/searchFetch.ts +139 -0
- package/src/search/rules/timeWindow.ts +30 -0
- package/src/search/stores/search.ts +51 -0
- package/src/segments/contracts/itinerary.ts +433 -0
- package/src/segments/contracts/segment.ts +35 -0
- package/src/segments/engines/segmentDraft.ts +926 -0
- package/src/segments/handlers/chainGuards.ts +67 -0
- package/src/segments/handlers/directions.ts +44 -0
- package/src/segments/handlers/itineraryEcho.ts +45 -0
- package/src/segments/handlers/roadAccessDialog.ts +34 -0
- package/src/segments/handlers/segment.ts +111 -0
- package/src/segments/handlers/segmentEdit.ts +1341 -0
- package/src/segments/handlers/segmentGroups.ts +347 -0
- package/src/segments/handlers/segmentStructure.ts +1144 -0
- package/src/segments/rules/chain.ts +196 -0
- package/src/segments/rules/chainModel.ts +217 -0
- package/src/segments/rules/colors.ts +11 -0
- package/src/segments/rules/commit.ts +76 -0
- package/src/segments/rules/draft.ts +90 -0
- package/src/segments/rules/draftDisposition.ts +43 -0
- package/src/segments/rules/draftSegmentEdit.ts +129 -0
- package/src/segments/rules/engine.ts +222 -0
- package/src/segments/rules/groupSave.ts +234 -0
- package/src/segments/rules/hazardPrompt.ts +60 -0
- package/src/segments/rules/itineraryEcho.ts +40 -0
- package/src/segments/rules/liveSegmentProjection.ts +55 -0
- package/src/segments/rules/merge.ts +51 -0
- package/src/segments/rules/metrics.ts +456 -0
- package/src/segments/rules/naming.ts +168 -0
- package/src/segments/rules/segmentArming.ts +144 -0
- package/src/segments/rules/splitPick.ts +84 -0
- package/src/segments/rules/viaSimplify.ts +230 -0
- package/src/segments/stores/directions.ts +77 -0
- package/src/segments/stores/roadAccessDialog.ts +58 -0
- package/src/segments/stores/segmentEdit.ts +922 -0
- package/src/segments/stores/segmentGroupEdit.ts +84 -0
- package/src/segments/stores/segmentSplit.ts +77 -0
- package/src/share/contracts/share.ts +39 -0
- package/src/share/contracts/shareLink.ts +63 -0
- package/src/share/engines/shareLink.ts +1053 -0
- package/src/share/handlers/share.ts +47 -0
- package/src/share/handlers/shareLink.ts +231 -0
- package/src/share/handlers/shareScope.ts +54 -0
- package/src/share/rules/link.ts +89 -0
- package/src/share/rules/shareLink.ts +218 -0
- package/src/share/rules/targets.ts +92 -0
- package/src/share/rules/viewConfig.ts +95 -0
- package/src/share/stores/share.ts +58 -0
- package/src/strings/fr/index.ts +18 -0
- package/src/strings/fr/rules/fr.ts +2368 -0
- package/src/strings/index.ts +98 -0
- package/src/strings/rules/confirmCopy.ts +156 -0
- package/src/strings/rules/draftToolNames.ts +94 -0
- package/src/strings/rules/en.ts +2519 -0
- package/src/strings/rules/failureAlert.ts +115 -0
- package/src/strings/rules/formError.ts +400 -0
- package/src/strings/rules/maneuvers.ts +107 -0
- package/src/strings/rules/outputOptions.ts +126 -0
- package/src/strings/rules/publicationState.ts +100 -0
- package/src/strings/rules/routeHazardCopy.ts +62 -0
- package/src/strings/rules/searchLabels.ts +50 -0
- package/src/strings/rules/segmentChainVerbs.ts +62 -0
- package/src/strings/rules/studioCopy.ts +130 -0
- package/src/strings/rules/unitOptions.ts +119 -0
- package/src/testing/checkedBus.ts +226 -0
- package/src/testing/index.ts +30 -0
- package/src/testing/plugins.ts +106 -0
- package/src/testing/studio.ts +267 -0
- package/src/testing/urlSeam.ts +153 -0
- package/src/time/index.ts +12 -0
- package/src/time/rules/sun.ts +78 -0
- package/src/video/contracts/cameraSchemas.ts +266 -0
- package/src/video/contracts/profileSchemas.ts +37 -0
- package/src/video/contracts/video.ts +601 -0
- package/src/video/handlers/video.ts +1638 -0
- package/src/video/handlers/videoDirector.ts +114 -0
- package/src/video/rules/previewRefresh.ts +76 -0
- package/src/video/rules/profileSource.ts +51 -0
- package/src/video/rules/routeSpans.ts +79 -0
- package/src/video/rules/shotDefaults.ts +28 -0
- package/src/video/rules/stepOrder.ts +17 -0
- package/src/video/rules/videoSnapshot.ts +136 -0
- package/src/video/stores/directorThreads.ts +167 -0
- package/src/video/stores/videoExport.ts +290 -0
- package/src/viewer/contracts/preferences.ts +40 -0
- package/src/viewer/handlers/preferences.ts +91 -0
- package/src/viewer/rules/capabilities.ts +42 -0
- package/src/viewer/rules/config.ts +266 -0
- package/src/viewer/rules/context.ts +375 -0
- package/src/viewer/rules/ownership.ts +134 -0
- package/src/viewer/rules/platformViewer.ts +199 -0
- package/src/viewer/rules/scope.ts +197 -0
- package/src/viewer/rules/url.ts +145 -0
- package/src/viewer/rules/viewer.ts +307 -0
- package/src/viewer/rules/viewerSeam.ts +49 -0
- package/src/viewer/rules/viewerUnits.ts +34 -0
- package/src/waypoints/contracts/itinerary.ts +417 -0
- package/src/waypoints/handlers/poiWaypointStyle.ts +32 -0
- package/src/waypoints/handlers/waypointDetailsDialog.ts +38 -0
- package/src/waypoints/handlers/waypointEdit.ts +1073 -0
- package/src/waypoints/rules/amenities.ts +30 -0
- package/src/waypoints/rules/defaults.ts +31 -0
- package/src/waypoints/rules/details.ts +213 -0
- package/src/waypoints/rules/detailsDraft.ts +312 -0
- package/src/waypoints/rules/detailsPreview.ts +76 -0
- package/src/waypoints/rules/detailsSave.ts +356 -0
- package/src/waypoints/rules/draftDirty.ts +45 -0
- package/src/waypoints/rules/icons.ts +32 -0
- package/src/waypoints/rules/liveWaypoint.ts +63 -0
- package/src/waypoints/rules/naming.ts +185 -0
- package/src/waypoints/rules/sections.ts +77 -0
- package/src/waypoints/rules/waypointDraft.ts +62 -0
- package/src/waypoints/stores/waypointDetails.ts +62 -0
- package/src/waypoints/stores/waypointEdit.ts +566 -0
- package/src/zones/contracts/collection.ts +37 -0
- package/src/zones/contracts/zone.ts +528 -0
- package/src/zones/engines/zoneForm.ts +1773 -0
- package/src/zones/handlers/restZones.ts +287 -0
- package/src/zones/handlers/zonePublish.ts +206 -0
- package/src/zones/handlers/zoneUnpublish.ts +56 -0
- package/src/zones/handlers/zones.ts +2254 -0
- package/src/zones/rules/geometry.ts +946 -0
- package/src/zones/rules/zoneDefaults.ts +34 -0
- package/src/zones/rules/zoneDraft.ts +54 -0
- package/src/zones/rules/zoneForm.ts +563 -0
- package/src/zones/rules/zoneMetadata.ts +29 -0
- package/src/zones/rules/zoneSource.ts +87 -0
- package/src/zones/rules/zoneSourceRefusal.ts +104 -0
- package/src/zones/stores/zoneEdit.ts +998 -0
package/README.md
CHANGED
|
@@ -1,3 +1,918 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mountaya/studio
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The map studio's logic, with no renderer and no framework attached: the rules a segment chain
|
|
4
|
+
obeys, the contracts a tool call is validated against, the stores a surface reads, and the tool
|
|
5
|
+
bus that runs them. `@mountaya/studio-react` renders it, and everything here runs in a worker, a
|
|
6
|
+
server render, a Node script or a React Native runtime with no DOM at all. The rules ship here
|
|
7
|
+
once, so a host whose list looks nothing like ours calls the same ones the studio does.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @mountaya/studio @mountaya/elements
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`@mountaya/elements` is an exact peer: this package is built on its renderer-free entries, and
|
|
16
|
+
the exact pin is what makes the one-version release train installable. `@mountaya/client` is an
|
|
17
|
+
optional, type-only peer: the wire vocabulary is named here and fetched nowhere. `maplibre-gl` is
|
|
18
|
+
not on that line: it is an optional peer of `@mountaya/elements`, and this package renders
|
|
19
|
+
nothing and imports it nowhere.
|
|
20
|
+
|
|
21
|
+
## A tool bus, with no page
|
|
22
|
+
|
|
23
|
+
Everything a studio does is a tool dispatched on a bus, and neither needs a renderer, a
|
|
24
|
+
framework or a DOM. `createStudioToolBus` builds the bus with every verb of the studio on it, and
|
|
25
|
+
a dispatch answers a result rather than throwing:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { createUiStore, inertViewer, type StudioToolContext } from "@mountaya/studio";
|
|
29
|
+
import { createStudioToolBus } from "@mountaya/studio/handlers";
|
|
30
|
+
import { createInertStudioSeams } from "@mountaya/studio/seams";
|
|
31
|
+
|
|
32
|
+
const bus = createStudioToolBus();
|
|
33
|
+
const context: StudioToolContext = {
|
|
34
|
+
bus: bus.dispatcher,
|
|
35
|
+
capabilities: new Set(["authenticated", "editor"]),
|
|
36
|
+
map: null,
|
|
37
|
+
saveFile: createInertStudioSeams().saveFile,
|
|
38
|
+
ui: createUiStore(),
|
|
39
|
+
viewer: inertViewer,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const result = await bus.dispatch(context, "studio.state.get", {});
|
|
43
|
+
console.log(result.ok ? result.data : result.error);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This is the same, as a whole program run by `node` with no bundler in front of it:
|
|
47
|
+
|
|
48
|
+
<!-- example: examples/studio-node/src/main.ts -->
|
|
49
|
+
```ts
|
|
50
|
+
import {
|
|
51
|
+
createUiStore,
|
|
52
|
+
inertViewer,
|
|
53
|
+
type StudioToolContext,
|
|
54
|
+
type ToolResult,
|
|
55
|
+
} from "@mountaya/studio";
|
|
56
|
+
import { createStudioToolBus } from "@mountaya/studio/handlers";
|
|
57
|
+
import { createInertStudioSeams } from "@mountaya/studio/seams";
|
|
58
|
+
|
|
59
|
+
// The claim this program runs to prove: the studio's rules need no page. Nothing here defines a
|
|
60
|
+
// DOM global, and an entry point that reached for one while loading would have thrown above.
|
|
61
|
+
if ("document" in globalThis || "window" in globalThis) {
|
|
62
|
+
throw new Error("Run this where there is no DOM: it proves the studio needs none.");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The bus, holding the studio's own verbs, each validated against its published contract before
|
|
67
|
+
* its handler runs.
|
|
68
|
+
*/
|
|
69
|
+
const bus = createStudioToolBus();
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* What a handler is invoked with. `bus` is the bus's dispatch surface and nothing else of it, so a
|
|
73
|
+
* handler or a plugin chains into another verb and can take none off. `saveFile` is the one
|
|
74
|
+
* `createInertStudioSeams` ships, with no disk to save to, and a seam the context leaves out (the
|
|
75
|
+
* clock, the ids, the device's position, the camera planner) is answered by the studio's own
|
|
76
|
+
* default. There is no `api` and no `map`, and a tool that needs either answers with a result,
|
|
77
|
+
* never a throw.
|
|
78
|
+
*/
|
|
79
|
+
const context: StudioToolContext = {
|
|
80
|
+
bus: bus.dispatcher,
|
|
81
|
+
capabilities: new Set(["authenticated", "editor", "embedding"]),
|
|
82
|
+
map: null,
|
|
83
|
+
saveFile: createInertStudioSeams().saveFile,
|
|
84
|
+
ui: createUiStore(),
|
|
85
|
+
viewer: inertViewer,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Prints one dispatch. `summary` and `error` are written for a log and for a model, and this is
|
|
90
|
+
* a log: a surface a person reads branches on `code` and words the refusal itself.
|
|
91
|
+
*/
|
|
92
|
+
const report = (name: string, result: ToolResult): void => {
|
|
93
|
+
console.log(
|
|
94
|
+
result.ok
|
|
95
|
+
? `${name}: ${result.summary}`
|
|
96
|
+
: `${name}: refused with ${result.code ?? "no code"} (${result.error})`,
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** A read: the studio's state as a whole, straight from its stores. */
|
|
101
|
+
const state = await bus.dispatch(context, "studio.state.get", {});
|
|
102
|
+
report("studio.state.get", state);
|
|
103
|
+
|
|
104
|
+
/** A refusal: a verb that drives the map, dispatched where no map is mounted. */
|
|
105
|
+
const zoom = await bus.dispatch(context, "studio.map.zoomIn", {});
|
|
106
|
+
report("studio.map.zoomIn", zoom);
|
|
107
|
+
|
|
108
|
+
// Dispatch resolves either way, so the two outcomes are checked and not caught.
|
|
109
|
+
if (!state.ok || zoom.ok || zoom.code !== "no-map") {
|
|
110
|
+
process.exitCode = 1;
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
That block is `examples/studio-node/src/main.ts`, byte for byte, and
|
|
115
|
+
`npm run dev --workspace @mountaya/example-studio-node` runs it. It prints one line per
|
|
116
|
+
dispatch:
|
|
117
|
+
|
|
118
|
+
```text
|
|
119
|
+
studio.state.get: Studio state: no itinerary open.
|
|
120
|
+
studio.map.zoomIn: refused with no-map (no map is currently mounted)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
`createStudioHandlers` returns the studio's own verbs as a plain map and `registerStudioTools`
|
|
124
|
+
puts them on the bus, each behind the contract its name identifies. The context is what makes
|
|
125
|
+
the same verbs do more: a host that draws hands it a `MapClient` as `map`, one that persists
|
|
126
|
+
hands it an `api`, and [The seams](#the-seams) says what each seam on it is for. The refusal
|
|
127
|
+
is the other half of the example. `dispatch` resolves with it, so the program checks `ok` and
|
|
128
|
+
catches nothing, which [Troubleshooting](#troubleshooting) says of every dispatch.
|
|
129
|
+
|
|
130
|
+
`studio.video.open` opens the video wizard with no route, so a host that drives it through the
|
|
131
|
+
bus follows with `studio.video.route.set`: the route built with `itineraryToRouteGeometry` of
|
|
132
|
+
`@mountaya/elements/camera`, and the profile with `videoProfileSource`, whose docblock has the
|
|
133
|
+
example.
|
|
134
|
+
|
|
135
|
+
## The entry points
|
|
136
|
+
|
|
137
|
+
| Entry | Take it when |
|
|
138
|
+
| --- | --- |
|
|
139
|
+
| `@mountaya/studio` | you want the rules, the contracts, the stores and the tool bus |
|
|
140
|
+
| `@mountaya/studio/handlers` | you are registering the default tool surface on a bus |
|
|
141
|
+
| `@mountaya/studio/engines` | you are binding a surface of your own to one of the studio's machines |
|
|
142
|
+
| `@mountaya/studio/seams` | you are wiring what the studio takes from the world around it |
|
|
143
|
+
| `@mountaya/studio/strings` | you are rendering the studio's own copy, or overriding it |
|
|
144
|
+
| `@mountaya/studio/strings/fr` | your page reads in French: the studio's copy in French |
|
|
145
|
+
| `@mountaya/studio/agent` | you are routing an assistant through the studio's tools, or running its conversations |
|
|
146
|
+
| `@mountaya/studio/plugins` | you are adding something of your own to a studio's surfaces |
|
|
147
|
+
| `@mountaya/studio/time` | you need the sun's position for a point and an instant |
|
|
148
|
+
| `@mountaya/studio/testing` | you are writing a test against a studio surface |
|
|
149
|
+
|
|
150
|
+
Each subpath is opt-in: the root barrel does not mirror them, so a consumer who wants the rules
|
|
151
|
+
a segment chain obeys never resolves the studio's whole copy, a routing table, or `suncalc`.
|
|
152
|
+
|
|
153
|
+
## What it never does
|
|
154
|
+
|
|
155
|
+
- **It never calls `fetch`.** A handler is handed a client and calls it; the transport is
|
|
156
|
+
`@mountaya/client`'s and the decision to make a request is the caller's.
|
|
157
|
+
- **It never names React, MapLibre or a design system.** `boundary.test.ts` asserts it against
|
|
158
|
+
the source tree and against the built artifact, so the promise is a property of what ships.
|
|
159
|
+
- **It never reaches a renderer-bound entry.** `@mountaya/elements` itself and its `./editor`,
|
|
160
|
+
`./testing`, `./video` and `./view` entries are named nowhere, types included: the map client's
|
|
161
|
+
shapes come from `@mountaya/elements/map-client` and the label languages from
|
|
162
|
+
`@mountaya/elements/i18n`, so the declarations type-check with no `maplibre-gl` installed, and
|
|
163
|
+
`src/boundary.test.ts` fails a built entry that reaches `maplibre-gl`.
|
|
164
|
+
|
|
165
|
+
## A typed answer for every verb
|
|
166
|
+
|
|
167
|
+
What a dispatch takes and what it answers are both read off the verb's contract. A contract
|
|
168
|
+
states `input` and, beside it, `output`: the Zod schema of the `data` its tool answers. The
|
|
169
|
+
handler's return is typed by that schema, `StudioToolOutputs` maps each tool name to the data it
|
|
170
|
+
infers, and a `dispatch` by name answers it.
|
|
171
|
+
|
|
172
|
+
A host binds the studio's names to its own program by merging them into the registries, in a
|
|
173
|
+
module of its own tree:
|
|
174
|
+
|
|
175
|
+
```ts
|
|
176
|
+
import {
|
|
177
|
+
type StudioToolContext,
|
|
178
|
+
type StudioToolInputs,
|
|
179
|
+
type StudioToolOutputs,
|
|
180
|
+
ToolBus,
|
|
181
|
+
} from "@mountaya/studio";
|
|
182
|
+
|
|
183
|
+
declare module "@mountaya/studio" {
|
|
184
|
+
interface ToolDispatchRegistry extends StudioToolInputs {}
|
|
185
|
+
interface ToolOutputRegistry extends StudioToolOutputs {}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** Typed by both registries: the context is the only type argument left to name. */
|
|
189
|
+
export const bus = new ToolBus<StudioToolContext>();
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
`ToolDispatchRegistry` is what `dispatch` checks a name and its payload against, and
|
|
193
|
+
`ToolOutputRegistry` is what it answers. With both merged, a bus and a dispatch slice that name
|
|
194
|
+
no maps of their own are the studio's:
|
|
195
|
+
|
|
196
|
+
```ts
|
|
197
|
+
const view = await bus.dispatch(ctx, "studio.map.getView", {});
|
|
198
|
+
|
|
199
|
+
if (view.ok) {
|
|
200
|
+
// `view.data` is the data the contract of `studio.map.getView` states, as its handler
|
|
201
|
+
// returned it: no cast, and no narrowing beyond `ok`.
|
|
202
|
+
console.log(view.summary, view.data.zoom);
|
|
203
|
+
} else {
|
|
204
|
+
console.log(view.code, view.error);
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Where a verb's data is an object, `data` is a required member of the `ok` answer and a reader
|
|
209
|
+
takes a member of it directly. A verb that answers no data states `toolNoDataSchema`, and its
|
|
210
|
+
`data` is `undefined`. A contract that states no `output` answers `data` as `unknown`, and so
|
|
211
|
+
does a name built at run time, which is what `dispatchUnsafe` is for.
|
|
212
|
+
|
|
213
|
+
The outputs line is the host's to add. A host that merges the inputs alone compiles as it is
|
|
214
|
+
and reads every `data` as `unknown`. A host that names its maps as type arguments names both,
|
|
215
|
+
`new ToolBus<StudioToolContext, StudioToolInputs, StudioToolOutputs>()`: a bus instance that
|
|
216
|
+
names no outputs is no `bus` for a context whose verbs state them, though its `dispatcher` is,
|
|
217
|
+
since the slice is the same object under either map.
|
|
218
|
+
|
|
219
|
+
**The bus parses no answer.** What a handler returns is what a reader reads, so `output` is
|
|
220
|
+
transform-free, and a handler whose data misses a member of it, or types one otherwise, does not
|
|
221
|
+
compile. A member more than it states is one the compiler takes, and a value whose type lies is
|
|
222
|
+
another: both are caught where a suite runs. `studioToolBus()` and `emptyStudioToolBus()`, from
|
|
223
|
+
`@mountaya/studio/testing`, hold every `ok` answer to the `output` its tool states, and a
|
|
224
|
+
dispatch whose answer is outside it rejects with an error naming the tool. So write an object
|
|
225
|
+
output as `z.strictObject`, where a member more is an answer outside it.
|
|
226
|
+
|
|
227
|
+
A tool of your own states `output` the same way. `Tool` takes the schema as a type argument
|
|
228
|
+
after its capability and types the handler by it, and a bare `Tool<Ctx>` answers `data` as
|
|
229
|
+
`unknown` with or without one. A function of your own that forwards a name it has not resolved
|
|
230
|
+
returns `ToolResultOf<StudioToolOutputs, TName>`, the type `dispatch` itself answers.
|
|
231
|
+
|
|
232
|
+
**A double of a dispatch is held to the same answers.** A refusal is the answer of every verb,
|
|
233
|
+
so a dispatch written by hand that only refuses fits a typed slot as it stands, and a wrapper
|
|
234
|
+
generic in the name returns a refusal of its own. One that answers the same `ok` under every
|
|
235
|
+
name does not fit where a verb of the slot states data, since it would hand a reader an answer
|
|
236
|
+
with nothing to read. A suite dispatches through `studioToolBus()`, which runs the studio's
|
|
237
|
+
handlers and holds each answer to its `output`, or types its double by the names it answers.
|
|
238
|
+
The slots are a bus slice (`ToolBusDispatch`), a context's `bus`, and an engine's `dispatch`,
|
|
239
|
+
`ZoneFormDispatch` among them.
|
|
240
|
+
|
|
241
|
+
## A refusal ahead of the confirmation
|
|
242
|
+
|
|
243
|
+
A tool marked `requiresConfirmation` asks its reader before its handler runs. A tool that can
|
|
244
|
+
already tell it refuses a call states a `precondition`, and the bus runs it after the input
|
|
245
|
+
parses and before it asks. A refusal it answers is the dispatch's answer: no prompt is raised and
|
|
246
|
+
the handler does not run, so nobody is asked to approve what the tool then refuses.
|
|
247
|
+
|
|
248
|
+
```ts
|
|
249
|
+
import { registerStudioTools } from "@mountaya/studio";
|
|
250
|
+
|
|
251
|
+
registerStudioTools(bus, {
|
|
252
|
+
"studio.itinerary.segment.rename": {
|
|
253
|
+
handler: (_ctx, { name, segmentId }) => ({
|
|
254
|
+
ok: true,
|
|
255
|
+
summary: `Renamed ${segmentId} to ${name}.`,
|
|
256
|
+
}),
|
|
257
|
+
precondition: (ctx, { segmentId }) =>
|
|
258
|
+
ctx.ui.getState().activeItinerary?.segments.some((segment) => segment.id === segmentId)
|
|
259
|
+
? null
|
|
260
|
+
: { code: "not-found", error: `no segment ${segmentId} is open`, ok: false },
|
|
261
|
+
requiresConfirmation: true,
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
It takes the context and the parsed input the handler takes, and answers at once: `null` to
|
|
267
|
+
carry on, or the refusal. It reads state and writes nothing. The handler keeps every refusal its
|
|
268
|
+
precondition states, because what the precondition read can change while the reader is asked.
|
|
269
|
+
One that throws is answered as a handler that throws is, and a tool that asks nothing is held to
|
|
270
|
+
its precondition as well. A tool of your own states it the same way, as a member of the `Tool`
|
|
271
|
+
it registers.
|
|
272
|
+
|
|
273
|
+
## Plugins
|
|
274
|
+
|
|
275
|
+
The seams above are how a host REPLACES what the studio does. `@mountaya/studio/plugins` is how
|
|
276
|
+
one ADDS to it: a declaration (an id, what it contributes to named slots, and optionally tools
|
|
277
|
+
for the bus) that a studio installs.
|
|
278
|
+
|
|
279
|
+
```ts
|
|
280
|
+
import * as z from "zod";
|
|
281
|
+
|
|
282
|
+
import { StudioPluginEngine, type StudioPlugin } from "@mountaya/studio/plugins";
|
|
283
|
+
|
|
284
|
+
const strava: StudioPlugin = {
|
|
285
|
+
contributions: [
|
|
286
|
+
{
|
|
287
|
+
gate: { capabilities: ["editor"] },
|
|
288
|
+
id: "send",
|
|
289
|
+
label: "Send to Strava",
|
|
290
|
+
// `dispatchUnsafe` rather than `dispatch`: the typed one is keyed on the STUDIO's own
|
|
291
|
+
// tool names, and a plugin's verb is not one of them. The bus still parses the input
|
|
292
|
+
// against the tool's own Zod schema.
|
|
293
|
+
run: (ctx, target) => void ctx.bus?.dispatchUnsafe(ctx, "acme.strava.send", target),
|
|
294
|
+
slot: "segment.menu",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
id: "acme.strava",
|
|
298
|
+
// The verb the contribution dispatches, declared so the bus holds it while the plugin is
|
|
299
|
+
// installed and a co-pilot can reach it too.
|
|
300
|
+
tools: {
|
|
301
|
+
"acme.strava.send": {
|
|
302
|
+
capability: "editor",
|
|
303
|
+
description: "Send a segment to Strava.",
|
|
304
|
+
handler: () => ({ ok: true, summary: "Sent the segment to Strava." }),
|
|
305
|
+
input: z.object({ itineraryId: z.string().nullable(), segmentId: z.string() }),
|
|
306
|
+
name: "acme.strava.send",
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
const engine = new StudioPluginEngine({ install: [strava] });
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**A contribution is data, with a component escape hatch.** Most slots are uniformly
|
|
315
|
+
action-shaped (a label, a glyph, something to run), which is what lets a studio draw a
|
|
316
|
+
native-looking, correctly-gated, correctly-disabled item from an author who never installed its
|
|
317
|
+
design system. `view` is the other half, and it is what makes a layer over the elevation curve or
|
|
318
|
+
a control with its own popover possible.
|
|
319
|
+
|
|
320
|
+
**The slots are a closed vocabulary of `@mountaya/studio`.** `itinerary.menu`, `map.contextMenu`,
|
|
321
|
+
`map.controls`, `profile.header`, `profile.plot`, `segment.menu`, `waypoint.menu`, `zone.menu`.
|
|
322
|
+
They are a Zod enum rather than a union alias because a manifest can arrive off a wire. The studio
|
|
323
|
+
is TypeScript-only: no other language SDK implements it.
|
|
324
|
+
|
|
325
|
+
**The names are a rule, not a list.** A plugin id is vendor-namespaced (`acme.strava`), `mountaya`
|
|
326
|
+
and `studio` are reserved as vendor segments, and every tool a plugin registers is prefixed with
|
|
327
|
+
its own id and goes on past it (`acme.strava.send`: a name that ends at the dot names no tool and
|
|
328
|
+
is refused). Those three together are what protect the studio's own `studio.*` verbs, where a
|
|
329
|
+
list of reserved names would go stale with the next studio tool.
|
|
330
|
+
|
|
331
|
+
**A plugin cannot remove a verb, and that is reachability rather than naming.** `ctx.bus` carries
|
|
332
|
+
`ToolBus.dispatcher` (`dispatch` and `dispatchUnsafe`, and nothing else on the object), so a
|
|
333
|
+
plugin's `run` cannot reach `unregister`, in TypeScript or out of it, and a reach for one throws
|
|
334
|
+
where the mistake is. Behind that, the bus takes the same two reserved segments as `reserved` and
|
|
335
|
+
will not give back a name under one, which covers whoever holds a concrete bus. A plugin's own
|
|
336
|
+
verbs are never under a reserved segment, so its uninstall is untouched.
|
|
337
|
+
|
|
338
|
+
Neither is a sandbox, and neither is trying to be: a plugin runs in your realm and can dispatch
|
|
339
|
+
every verb and write every store whatever its name is. What they buy is that an accident fails
|
|
340
|
+
loudly instead of leaving the studio quietly unable to save for the rest of the session.
|
|
341
|
+
|
|
342
|
+
`StudioPlugin`'s view type defaults to `never`, which makes a bare declaration exactly the
|
|
343
|
+
TOOLS-ONLY plugin: no renderer, no framework, and the first milestone a port ships.
|
|
344
|
+
`@mountaya/studio-react` binds it to `ReactNode` and mounts the renderers.
|
|
345
|
+
|
|
346
|
+
## The seams
|
|
347
|
+
|
|
348
|
+
What the studio cannot do for itself and a host can do differently: where a device fix comes
|
|
349
|
+
from, what time it is, where an id comes from, where a preference is kept, where a produced
|
|
350
|
+
file goes, and whether there is anywhere outside the product to send someone.
|
|
351
|
+
|
|
352
|
+
```ts
|
|
353
|
+
import { createDefaultStudioSeams, memoryStudioStorage } from "@mountaya/studio/seams";
|
|
354
|
+
|
|
355
|
+
const seams = { ...createDefaultStudioSeams("fr-CH"), storage: memoryStudioStorage() };
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
Three properties hold for every one of them, and they are what make this a seam rather than a
|
|
359
|
+
bag of options. **Framework-free**: nothing here names React, a hook or the DOM. **A defined
|
|
360
|
+
absence**: each has a shipped implementation that does nothing, and doing nothing is a state
|
|
361
|
+
every surface already renders, so turning one off needs no new branch anywhere. **Total**: no
|
|
362
|
+
method throws, because a private-mode browser refusing storage and a blocked permissions
|
|
363
|
+
descriptor are answers rather than exceptions a surface has to wrap.
|
|
364
|
+
|
|
365
|
+
`createInertStudioSeams()` turns every one off at once, which is the shape of a studio rendered
|
|
366
|
+
somewhere with no browser to ask. Its clock still moves: a studio whose timers never fire is a
|
|
367
|
+
studio whose alerts never clear.
|
|
368
|
+
|
|
369
|
+
A `StudioToolContext` you build yourself names its `saveFile`, which the context requires: the
|
|
370
|
+
export and video download tools write through it and never reach for a page's document on their
|
|
371
|
+
own. Pass `browserSaveFile` in a page, `inertStudioSaveFile` where nothing may be written, or a
|
|
372
|
+
save of your own. `MountayaStudioHost` and `fakeStudioToolContext` name one already.
|
|
373
|
+
|
|
374
|
+
A context may leave out its clock, its ids, its geolocation and its camera planner. Each is then
|
|
375
|
+
answered as `createInertStudioSeams` answers it: the system clock, the platform's UUID, a
|
|
376
|
+
geolocation that reports no device, and a planner on the calling thread.
|
|
377
|
+
|
|
378
|
+
## The session a studio runs on
|
|
379
|
+
|
|
380
|
+
A studio runs on a session token minted for `studio-embedded`, the editor and a read-only viewer
|
|
381
|
+
alike: your server mints it with `postSession`'s `surface` set to `"studio-embedded"`. It is the
|
|
382
|
+
only token a `studio-embedded` operation accepts, and what the studio draws and asks under it is
|
|
383
|
+
recorded apart and never counted toward the organization's limits, allowances or invoice. A studio
|
|
384
|
+
host is the one place an SDK reads a token, and it refuses any other before it sends a request.
|
|
385
|
+
`isStudioSessionToken` is that rule, and `sessionTokenSurface` names the surface a token was
|
|
386
|
+
minted for, which a refusal can quote:
|
|
387
|
+
|
|
388
|
+
```ts
|
|
389
|
+
import { isStudioSessionToken, sessionTokenSurface } from "@mountaya/studio";
|
|
390
|
+
|
|
391
|
+
declare const token: string;
|
|
392
|
+
|
|
393
|
+
if (!isStudioSessionToken(token)) {
|
|
394
|
+
throw new Error(`Mint the studio's token for studio-embedded, not ${sessionTokenSurface(token)}.`);
|
|
395
|
+
}
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
Both read the token's payload, `sess_` then unpadded base64url JSON before the `.`, and never its
|
|
399
|
+
signature, which is the API's to check. A payload naming no surface was minted for `api`.
|
|
400
|
+
`MountayaStudioHost` of `@mountaya/studio-react` applies the rule to the client it is given.
|
|
401
|
+
|
|
402
|
+
## The viewer
|
|
403
|
+
|
|
404
|
+
The context's `viewer` answers who reads the studio and what they may use of it:
|
|
405
|
+
`hasEntitlement` for each feature the studio gates (`studioEntitlementSchema`) and
|
|
406
|
+
`getItineraryLimit` for the ceiling of a scope. Mountaya resolves the features from the
|
|
407
|
+
organization's agreement and the person's role, and answers them on every membership
|
|
408
|
+
`getMyOrganizations` of `@mountaya/client` returns, as `studio_entitlements`. A key carrying the
|
|
409
|
+
`studio-embedded` scope reads the one membership the session's user holds, and the organization's
|
|
410
|
+
safety rules narrow that answer, as they narrow what the key is served: `profile-insights` only
|
|
411
|
+
where `with_profile_analysis` is set, `map-pois` only where the overlay allowlist (`with_overlays`)
|
|
412
|
+
admits the points of interest, and `map-overlays` only where it admits another overlay. Where a
|
|
413
|
+
studio under your key draws no overlays, check those rules, not your agreement.
|
|
414
|
+
`createPlatformViewer` builds the viewer from that answer and decides none of it:
|
|
415
|
+
|
|
416
|
+
```ts
|
|
417
|
+
import type { Membership } from "@mountaya/client/admin";
|
|
418
|
+
import {
|
|
419
|
+
createMemoryViewer,
|
|
420
|
+
createPlatformViewer,
|
|
421
|
+
type PlatformAnswerReader,
|
|
422
|
+
} from "@mountaya/studio";
|
|
423
|
+
|
|
424
|
+
// Your session's own reads: the memberships `getMyOrganizations` answered for the signed-in
|
|
425
|
+
// person (undefined until the read lands), and the organization the studio is showing.
|
|
426
|
+
declare const memberships: PlatformAnswerReader<readonly Membership[] | undefined>;
|
|
427
|
+
declare const organizationInView: PlatformAnswerReader<string | null>;
|
|
428
|
+
|
|
429
|
+
const viewer = createPlatformViewer({
|
|
430
|
+
memberships,
|
|
431
|
+
scope: organizationInView,
|
|
432
|
+
viewer: createMemoryViewer({}, { getUserId: () => "user_…" }),
|
|
433
|
+
});
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
A feature is held exactly where the membership of the scope in view lists it. A membership states
|
|
437
|
+
no itinerary ceiling: an organization's is met by the platform's own `limit-reached` refusal, and
|
|
438
|
+
the personal space's answer (below) states its `itinerary_limit`, null for none. A scope with no
|
|
439
|
+
answer holds nothing and states no ceiling: memberships not landed yet, an organization the person
|
|
440
|
+
is no member of. `viewer` answers
|
|
441
|
+
the rest (who the person is, their units, where a preference is kept), and `subscribe` tells a
|
|
442
|
+
surface when the memberships, the scope or that rest change. A scope reader that fires without the
|
|
443
|
+
scope moving, as a URL does at every camera move, tells nobody.
|
|
444
|
+
|
|
445
|
+
The personal space is answered by no operation of the public contract, and a publishable key never
|
|
446
|
+
reaches it, so left out it holds nothing. A host that holds an answer for it hands a reader of it as
|
|
447
|
+
`personalSpace`, and one that spells it with an organization id states `isPersonalScope`, whose
|
|
448
|
+
answer for an id holds for the life of the viewer: nothing subscribes to it, so a predicate that
|
|
449
|
+
comes to answer otherwise is a new viewer.
|
|
450
|
+
|
|
451
|
+
A published surface keeps its own rule: an embed and a share link draw the overlays and the points
|
|
452
|
+
of interest of the organization that published them, whoever reads them, so their viewer states
|
|
453
|
+
that grant through `createStaticViewer`. In React, `usePlatformViewer` of `@mountaya/studio-react`
|
|
454
|
+
reads the memberships through the client and returns this viewer, with whether the read is pending,
|
|
455
|
+
failed or landed.
|
|
456
|
+
|
|
457
|
+
## Who may edit an itinerary
|
|
458
|
+
|
|
459
|
+
An itinerary is edited by a write role (an owner, an admin or a contributor) of the organization
|
|
460
|
+
that owns it, or by its author when it is personal, and only in a scope that takes an itinerary
|
|
461
|
+
write: an organization whose agreement does not include Map Studio keeps its itineraries readable.
|
|
462
|
+
`canEditItinerary` answers both for a surface deciding what to offer, and `canEditOwnedResource`
|
|
463
|
+
the first alone, which is what deleting an itinerary and withdrawing its publication ask.
|
|
464
|
+
|
|
465
|
+
```ts
|
|
466
|
+
import { canEditItinerary, type Itinerary, type StudioScopeSeam } from "@mountaya/studio";
|
|
467
|
+
|
|
468
|
+
declare const itinerary: Itinerary;
|
|
469
|
+
declare const scope: StudioScopeSeam;
|
|
470
|
+
declare const userId: string;
|
|
471
|
+
|
|
472
|
+
const editable = canEditItinerary(
|
|
473
|
+
{ createdById: itinerary.created_by.id, organizationId: itinerary.organization_id },
|
|
474
|
+
userId,
|
|
475
|
+
scope.writable?.writableOrgIds ?? new Set<string>(),
|
|
476
|
+
scope.writeRefusal,
|
|
477
|
+
);
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
The verbs that change the open itinerary ask the same of their context before they send
|
|
481
|
+
anything. A reader for whom the `scope` seam's `writable` names no write role in the owning
|
|
482
|
+
organization, or who is not the author of a personal itinerary, is refused with `forbidden`, and a
|
|
483
|
+
begin verb refuses before it arms an edit or asks for a lock. A scope that states no `writable`
|
|
484
|
+
asks no role, and the API decides.
|
|
485
|
+
|
|
486
|
+
## Engines
|
|
487
|
+
|
|
488
|
+
`@mountaya/studio/engines` publishes the studio's stateful machines, with their option and
|
|
489
|
+
configuration types. Each is `getSnapshot` and `subscribe` over one object, `configure` for the
|
|
490
|
+
inputs that change on every render, and `dispose()` for an owner that is not a component. Take it
|
|
491
|
+
when you bind a surface of your own: the studio's components already bind theirs.
|
|
492
|
+
|
|
493
|
+
```ts
|
|
494
|
+
import { ItineraryPaceEngine } from "@mountaya/studio/engines";
|
|
495
|
+
|
|
496
|
+
const client = ctx.api?.client;
|
|
497
|
+
const pace = new ItineraryPaceEngine({ client, itineraryId: "itin-1", speedKmh: 4.5 });
|
|
498
|
+
const release = pace.subscribe(() => {
|
|
499
|
+
console.log(pace.getSnapshot()?.durationSeconds);
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
pace.configure({ client, itineraryId: "itin-1", speedKmh: 5 });
|
|
503
|
+
release();
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
Constructing an engine does nothing. The first subscriber starts it and the last unsubscribe
|
|
507
|
+
parks it, which is what keeps a framework's mount, unmount and mount again down to one request.
|
|
508
|
+
A debounce or a throttle is an option of the engine (`debounceMs`, `throttleMs`) rather than a
|
|
509
|
+
read of the `clock` seam: each keeps a rate a machine can keep up with, and a host that froze its
|
|
510
|
+
clock would freeze every engine with it.
|
|
511
|
+
|
|
512
|
+
`dispose()` ends an engine for good, and every later call does nothing. `ItineraryPaceEngine`,
|
|
513
|
+
`EmbedFramingEngine`, `EmbedReadyEngine` and `ShareLinkEngine` change nothing a reader holds as
|
|
514
|
+
they are disposed: `getSnapshot()` goes on returning the snapshot the engine showed. A listener
|
|
515
|
+
of theirs that throws stops neither the engine nor the listeners after it, and its fault reaches
|
|
516
|
+
the program as an uncaught error, never as the outcome of the call that told it.
|
|
517
|
+
|
|
518
|
+
`ItineraryPaceEngine` keeps an answer per itinerary, revision, rate and surface, up to a fixed
|
|
519
|
+
number of them, the least recently read leaving first. Hand it a
|
|
520
|
+
`revision` that differs whenever the itinerary changed under the id it keeps (its last-update
|
|
521
|
+
instant, or a counter stepped on each edit), so a draft edited since is re-timed and never served
|
|
522
|
+
the figures of the route it was.
|
|
523
|
+
|
|
524
|
+
`SegmentDraftEngine` is the machine behind a segment edit's drafts: it arms the map's segment
|
|
525
|
+
editor for the session open in the store, records one undo step per gesture, paces the routed
|
|
526
|
+
profile onto the live segment and asks once about a route's hazards. A begin the map's editor
|
|
527
|
+
refuses leaves no session open: `studio.itinerary.segment.editBegin` refuses a directions edit
|
|
528
|
+
that names no activity (`invalid-input`) or runs in a context with no API client (`no-api`)
|
|
529
|
+
before it opens one, and for a session opened some other way the engine ends it through
|
|
530
|
+
`studio.itinerary.segment.editCancel` and the refusal reaches your program as an uncaught error.
|
|
531
|
+
The reader is told as well: the engine raises `studio.alert.show` with the sentence its strings
|
|
532
|
+
state under `editing.segmentEditBeginFailed`.
|
|
533
|
+
The zone and waypoint edits
|
|
534
|
+
hold no timer and no state of their own, so they are rules on the root instead,
|
|
535
|
+
`recordZoneDraftChange` and `recordWaypointDraftChange`, beside the `draftChangeDisposition` all
|
|
536
|
+
three share.
|
|
537
|
+
|
|
538
|
+
`EmbedFramingEngine` and `EmbedReadyEngine` are the machines behind an embed's cold load. The
|
|
539
|
+
framing engine frames the active itinerary once, or a collection's extent when no itinerary
|
|
540
|
+
frames the embed, locks the camera to the view it frames, and reports when that view has painted; the zoom range and the pan lock are `embedConstraintsFor` on
|
|
541
|
+
the root, a rule a surface of your own can apply without the engine. The ready engine holds the
|
|
542
|
+
loading cover until the view has painted and posts the ready event to the page hosting the embed,
|
|
543
|
+
lifting the cover anyway after a deadline (`EMBED_COVER_MAX_MS` unless you pass `timeoutMs`). That
|
|
544
|
+
deadline is a duration the product chose rather than a rate, so it is the one wait here that takes
|
|
545
|
+
the `clock` seam: a host rendering an embed frame by frame, or testing one, moves it by hand.
|
|
546
|
+
|
|
547
|
+
`ZoneFormEngine` is the machine behind the zone form. It holds the form's fields, seeds them from
|
|
548
|
+
the zone the store binds and keeps what the reader typed when that zone is written again, keeps a
|
|
549
|
+
create's name following its parameters until the reader types one, asks for a reachability zone's
|
|
550
|
+
preview once its parameters hold still (`debounceMs`), and saves through the one tool the form's
|
|
551
|
+
state calls for. The `dispatch` you hand it is typed by the studio's outputs (`ZoneFormDispatch`),
|
|
552
|
+
so the form reads a create's answer with no parse of its own. The id of a zone about to be drawn
|
|
553
|
+
comes from the `ids` seam you hand it. Its
|
|
554
|
+
snapshot names the zone it answers for, and the failures it carries (`saveFailure`,
|
|
555
|
+
`sourceFailure`, `previewFailure`, `drawFailure`) never outlive that zone, or the query or the
|
|
556
|
+
draw they were about. A save the API refuses for the reachability query the fields state is
|
|
557
|
+
`sourceFailure`, to show beside those fields, and any other refused save is `saveFailure`. What
|
|
558
|
+
it decides with are rules on the root, `zoneAutoName`, `isZoneMetadataDirty` and
|
|
559
|
+
`zoneSaveRequest`, so a form of your own over your own state reads the same answers without the
|
|
560
|
+
engine. Its commands (`edit`, `save` and the ones beside them) do nothing while nobody
|
|
561
|
+
subscribes, as the conversation engines' do not.
|
|
562
|
+
|
|
563
|
+
`ShareLinkEngine` is the machine behind a resource's share link. The first subscriber reads the
|
|
564
|
+
link of a resource an organization owns through the `read` you hand it (`readShareLink` of
|
|
565
|
+
`@mountaya/studio/handlers` is the studio's own), which sets nothing: opening a share surface hands
|
|
566
|
+
no link out, and a mount, an unmount and a mount again join the one read in flight. A read that
|
|
567
|
+
finds none leaves the snapshot `known` with no token, and `mint` creates the link through
|
|
568
|
+
`studio.shareLink.mint` when the reader asks. It keeps the token, or the reason a read or a create
|
|
569
|
+
gave none with whether a retry is worth offering, and its `rotate` and `disable` run Reset and
|
|
570
|
+
Disable through the tool bus and resolve with what each came to: a withheld confirmation is
|
|
571
|
+
`"withheld"` and carries no failure to show, and a disable that finds no link on a personal
|
|
572
|
+
resource settles as done. Each write's answer is the link as it then stands, so nothing is read
|
|
573
|
+
again after one. A reset or a disable outranks a read or a create sent before it settled: that
|
|
574
|
+
answer is dropped, so it brings back neither the token a reset retired nor a link its reader
|
|
575
|
+
disabled. Its snapshot names the target it answers for. What it decides with are rules on the root,
|
|
576
|
+
`isRetryableShareLinkFailure`, `isShareLinkDisableSettled` and `shareLinkActions`, so a surface of
|
|
577
|
+
your own over your own state reads the same answers without the engine.
|
|
578
|
+
|
|
579
|
+
The machines behind the studio's conversations are published from `@mountaya/studio/agent`
|
|
580
|
+
instead, beside the routing tables they drive: `AgentThreadsEngine` runs the co-pilot's
|
|
581
|
+
concurrent conversations and `DirectorChatEngine` the video wizard's director. They take the same
|
|
582
|
+
shape, and a command sent to one that nobody subscribes to does nothing, since a run opened with
|
|
583
|
+
nobody watching could be neither seen nor stopped.
|
|
584
|
+
|
|
585
|
+
## The map
|
|
586
|
+
|
|
587
|
+
What a studio's state puts on its map is decided here, by rules that take the store's values and
|
|
588
|
+
the layers manifest and answer what a map client should hold. None of them touches a map.
|
|
589
|
+
`@mountaya/studio-react/map` applies each in one effect, and a surface of your own calls the same
|
|
590
|
+
functions and writes its own:
|
|
591
|
+
|
|
592
|
+
```ts
|
|
593
|
+
import type { Layers } from "@mountaya/client";
|
|
594
|
+
import {
|
|
595
|
+
permittedClassicOverlay,
|
|
596
|
+
permittedEnrichmentOverlays,
|
|
597
|
+
resolveBaseTerrain,
|
|
598
|
+
resolveDemUrl,
|
|
599
|
+
zoneTimeReferenceSeconds,
|
|
600
|
+
} from "@mountaya/studio";
|
|
601
|
+
|
|
602
|
+
const paint = (layers: Layers, nowMs: number): void => {
|
|
603
|
+
const { activeEnrichments, activeOverlay, overlayTimestamp, terrain, terrainVariant } =
|
|
604
|
+
store.getState();
|
|
605
|
+
// Held where Mountaya's answer for the scope in view lists them (see "The viewer").
|
|
606
|
+
const overlaysEntitled = ctx.viewer.hasEntitlement("map-overlays");
|
|
607
|
+
const poisEntitled = ctx.viewer.hasEntitlement("map-pois");
|
|
608
|
+
|
|
609
|
+
const demUrl = resolveDemUrl(layers, undefined);
|
|
610
|
+
const base = resolveBaseTerrain(layers.terrains, terrain, terrainVariant, demUrl);
|
|
611
|
+
if (base) {
|
|
612
|
+
ctx.map?.setBaseTerrain(base);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
ctx.map?.setCategoryOverlay(permittedClassicOverlay(layers, activeOverlay, overlaysEntitled));
|
|
616
|
+
|
|
617
|
+
for (const overlay of permittedEnrichmentOverlays(
|
|
618
|
+
layers,
|
|
619
|
+
activeEnrichments,
|
|
620
|
+
overlaysEntitled,
|
|
621
|
+
poisEntitled,
|
|
622
|
+
)) {
|
|
623
|
+
ctx.map?.addEnrichmentOverlay(overlay);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
ctx.map?.setZoneTimeReference(zoneTimeReferenceSeconds(overlayTimestamp, nowMs));
|
|
627
|
+
};
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
| Rule | What it answers |
|
|
631
|
+
| --- | --- |
|
|
632
|
+
| `resolveBaseTerrain`, `resolveDemUrl` | the base map for a terrain slug and a tint, and the elevation raster its relief is baked from |
|
|
633
|
+
| `previewProjection` | which source owns the one preview overlay (a zone's reachability bands, a draft, a suggested route, an itinerary no tile holds), and what it paints |
|
|
634
|
+
| `peerDraftGhosts` | the ghosts of collaborators' in-flight edits, and none for the entity you are editing |
|
|
635
|
+
| `permittedClassicOverlay` | the active classic overlay this viewer's map draws, or none |
|
|
636
|
+
| `permittedEnrichmentOverlays` | the active enrichments the map draws: the points of interest under `map-pois`, every other one under `map-overlays` |
|
|
637
|
+
| `poiLayerVisibility` | which points-of-interest layers show for the active groups |
|
|
638
|
+
| `timestampedSources` | the tile sources to fetch again for an instant, with the urls that ask for it |
|
|
639
|
+
| `zoneTimeReferenceSeconds` | the instant a zone's time window is read against: a pinned one, or the clock's minute |
|
|
640
|
+
| `activeSegmentLines` | the lines a waypoint being placed snaps to |
|
|
641
|
+
|
|
642
|
+
Each answer is the whole of what the map should hold for its inputs, so a binding applies it
|
|
643
|
+
again whenever an input changes and writes only what differs from what it wrote last. That is
|
|
644
|
+
what keeps a pan cheap: `zoneTimeReferenceSeconds` moves once a minute, however many camera frames
|
|
645
|
+
ask.
|
|
646
|
+
|
|
647
|
+
`resolveBaseTerrain` falls back to the manifest's first terrain for a slug it does not hold,
|
|
648
|
+
where `MountayaMap.setTerrain` in `@mountaya/elements` throws for one. The slug a studio holds is
|
|
649
|
+
a stored preference, read from a link or a past session against a manifest that can change
|
|
650
|
+
from one visit to the next, and a studio that opened on no base map would punish a reader for a
|
|
651
|
+
link they did not write. A slug passed to `setTerrain` is an argument a developer wrote, and a
|
|
652
|
+
typo there is worth failing on.
|
|
653
|
+
|
|
654
|
+
## The studio's words
|
|
655
|
+
|
|
656
|
+
`@mountaya/studio/strings` holds the studio's copy in English, built in. Every other language
|
|
657
|
+
Mountaya translates the studio into is an entry of its own, `@mountaya/studio/strings/fr` for
|
|
658
|
+
French, so a page that reads in English loads no other language.
|
|
659
|
+
`resolveStudioStrings(language, overrides, translations)` picks a language and folds an override
|
|
660
|
+
onto it: a flat partial overrides the selected language, and a record keyed by language overrides
|
|
661
|
+
each language it names. A language asked for and not handed over reads in English and says so
|
|
662
|
+
once in development, and `studioLanguageOptions(translations)` is what a language picker offers.
|
|
663
|
+
|
|
664
|
+
```ts
|
|
665
|
+
import { resolveStudioStrings } from "@mountaya/studio/strings";
|
|
666
|
+
import { frStudioStrings } from "@mountaya/studio/strings/fr";
|
|
667
|
+
|
|
668
|
+
const words = resolveStudioStrings(
|
|
669
|
+
"fr",
|
|
670
|
+
{ fr: { share: { copy: "Copier" } } },
|
|
671
|
+
{ fr: frStudioStrings },
|
|
672
|
+
);
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
## Collaboration
|
|
676
|
+
|
|
677
|
+
A host hands `studioCollabTools` to the elements' `CollabEngine` as `tools`, with the dispatch of
|
|
678
|
+
its studio bus as `bus` and its tool context as `ctx`, so every frame the stream delivers is
|
|
679
|
+
applied through a studio verb, under the same contracts a reader's own edit meets.
|
|
680
|
+
|
|
681
|
+
## Testing against the studio
|
|
682
|
+
|
|
683
|
+
`@mountaya/studio/testing` names no test runner. `studioToolBus()` is a bus with every default
|
|
684
|
+
handler that rejects a dispatch whose answer is outside its tool's `output`,
|
|
685
|
+
`fakeStudioToolContext()` is a context with the smallest honest value for each member, and
|
|
686
|
+
`fakeViewer()` is a viewer whose entitlements a suite moves. `fakeStudioCache()` records what a
|
|
687
|
+
dispatch made stale (`cache.invalidated`) once it is handed to the context's `api`.
|
|
688
|
+
|
|
689
|
+
```ts
|
|
690
|
+
import { fakeStudioToolContext, fakeViewer, studioToolBus } from "@mountaya/studio/testing";
|
|
691
|
+
|
|
692
|
+
const bus = studioToolBus();
|
|
693
|
+
const context = fakeStudioToolContext({ viewer: fakeViewer() });
|
|
694
|
+
|
|
695
|
+
const result = await bus.dispatch(context, "studio.state.get", {});
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
## Troubleshooting
|
|
699
|
+
|
|
700
|
+
### A `try`/`catch` around a dispatch catches nothing
|
|
701
|
+
|
|
702
|
+
`dispatch`, `dispatchUnsafe` and `dispatchFromModel` always resolve. A refusal is a result and
|
|
703
|
+
not a throw: `{ ok: false, code, error }`, where `code` is the reason a surface branches on and
|
|
704
|
+
`error` is a sentence for a log or an agent. A handler that throws, a schema that throws while
|
|
705
|
+
parsing and a confirm that throws all arrive the same way. Branch on `ok`.
|
|
706
|
+
|
|
707
|
+
### Every dispatch answers `unknown-tool`
|
|
708
|
+
|
|
709
|
+
The bus holds no handler under that name. `new ToolBus()` builds an empty bus, and the studio's
|
|
710
|
+
own verbs join it when `registerStudioTools` is handed the map `createStudioHandlers` returns,
|
|
711
|
+
from `@mountaya/studio/handlers`. `createStudioToolBus` of `@mountaya/studio/handlers` builds a
|
|
712
|
+
bus that holds them already. A plugin's verb is registered under the plugin's own id as a
|
|
713
|
+
prefix, so a name without that prefix is not on the bus either.
|
|
714
|
+
|
|
715
|
+
### A destructive tool answers `confirmation-denied`, and nobody was asked
|
|
716
|
+
|
|
717
|
+
The context names no `confirm`. The bus owns the confirmation gate for a click and for an
|
|
718
|
+
agent's call alike, and it denies a tool marked `requiresConfirmation` where there is nobody to
|
|
719
|
+
ask, since a question nobody answered is not consent. Hand the context a `confirm` that asks
|
|
720
|
+
your reader. `isConfirmationWithheld` tells that refusal from a failure, for a surface that shows
|
|
721
|
+
nothing for it.
|
|
722
|
+
|
|
723
|
+
### An uncaught error is raised after a dispatch that answered
|
|
724
|
+
|
|
725
|
+
A callback of yours throws: an observer handed to `bus.observe`, or a listener of an engine. It
|
|
726
|
+
changes no answer and stops no callback after it. Its fault leaves the studio's flow and reaches
|
|
727
|
+
your program as an uncaught error on a microtask, since a fault thrown through the bus would
|
|
728
|
+
read as the tool failing and one dropped would hide a defect of the sink. Where more than one
|
|
729
|
+
callback throws in a round, the first fault is the one raised. Catch inside the callback what it
|
|
730
|
+
can recover from.
|
|
731
|
+
|
|
732
|
+
### A tool answers `no-api`, `no-map` or `no-session`
|
|
733
|
+
|
|
734
|
+
These describe the studio and not the request. `no-api` is a handler that needs a data seam the
|
|
735
|
+
context does not carry (`ctx.api`, with its `client`), or a verb only a backend answers
|
|
736
|
+
(publishing, sharing, a merge) asked of a session kept by `localStudioPersistence`, on a bus built
|
|
737
|
+
with `STUDIO_HANDLER_RECOGNIZERS`. `no-map` is a verb that drives the map
|
|
738
|
+
while none is mounted. A canvas still loading answers it too, so a surface says to try again.
|
|
739
|
+
`no-session` is a verb aimed at a draft, a wizard or a pick that is not open.
|
|
740
|
+
|
|
741
|
+
### A tool answers `canceled` or `unavailable`
|
|
742
|
+
|
|
743
|
+
Neither is a fault of the studio, so a surface words each apart from `internal`. `canceled` is a
|
|
744
|
+
run its caller ended before it produced its answer: a recording that a cancel, a close or a newer
|
|
745
|
+
recording stopped. `unavailable` is a device or a page that does not give what the verb needs: a
|
|
746
|
+
position the device cannot determine, or a page with no geolocation. A permission the reader or
|
|
747
|
+
the device refused answers `forbidden`. The agent's wire carries both, so a model reads each as
|
|
748
|
+
it is.
|
|
749
|
+
|
|
750
|
+
### A verb answers `upgrade-required`
|
|
751
|
+
|
|
752
|
+
The viewer seam answered false for the entitlement the verb needs: `video-export` for the video
|
|
753
|
+
wizard, `video-organization-modes` for director mode, the shot verbs, an orbit and a custom output,
|
|
754
|
+
`embed` and `publish` for the embed wizard, `publish` for publishing an itinerary or a zone,
|
|
755
|
+
`copilot` for a co-pilot tab. The refusal's `error` names it. The
|
|
756
|
+
studio states the fact and links nowhere: add your own remedy to what the agent reads after the
|
|
757
|
+
refusal through a `RecoveryAddendum` of `@mountaya/studio/agent`. For what your agreement covers,
|
|
758
|
+
[talk to us](https://mountaya.com/en/contact/).
|
|
759
|
+
|
|
760
|
+
`map-overlays` gates the overlay verbs (`studio.overlay.set` naming an overlay,
|
|
761
|
+
`studio.overlay.enrichment.set` turning one on, `studio.overlay.sampleAlongSegment`,
|
|
762
|
+
`studio.overlay.sampleAt`), and `map-pois` the points of interest: their enrichment, a show of a
|
|
763
|
+
POI group (`studio.overlay.pois.group.set`, `studio.overlay.pois.display.set`) and a POI pick of
|
|
764
|
+
`studio.itinerary.waypoint.editBegin`.
|
|
765
|
+
|
|
766
|
+
None of these is yours to work out. Mountaya answers every one of them for each scope, and a
|
|
767
|
+
viewer built with `createPlatformViewer` holds exactly what the answer for the scope in view lists
|
|
768
|
+
([The viewer](#the-viewer)). It answers false until the memberships land, in an organization the
|
|
769
|
+
person is no member of, under an invitation not answered yet, and in the personal space unless you
|
|
770
|
+
hand it an answer for it. An embed's or a share link's viewer states its grant itself, since those
|
|
771
|
+
surfaces draw the overlays and the points of interest of the organization that published them,
|
|
772
|
+
whoever reads them.
|
|
773
|
+
|
|
774
|
+
### A write answers `forbidden` or `upgrade-required` for its organization
|
|
775
|
+
|
|
776
|
+
The `scope` seam's `writeRefusal` refused the organization the write lands in. `personal` answers
|
|
777
|
+
`forbidden`: the personal space keeps no zone. `agreement` answers `upgrade-required`: the
|
|
778
|
+
organization's agreement does not include Map Studio, so its itineraries, collections and zones
|
|
779
|
+
are read and deleted there, never created or edited. A host that states no `writeRefusal`
|
|
780
|
+
refuses nothing.
|
|
781
|
+
|
|
782
|
+
### An edit of the open itinerary answers `forbidden`
|
|
783
|
+
|
|
784
|
+
The `scope` seam's `writable` names no write role for the reader in the organization that owns the
|
|
785
|
+
open itinerary, or the itinerary is personal and the reader is not its author. The editing verbs
|
|
786
|
+
refuse that write before they send it, as the API refuses it. After a role changes, read the
|
|
787
|
+
memberships again and state the new set ([Who may edit an itinerary](#who-may-edit-an-itinerary)).
|
|
788
|
+
|
|
789
|
+
### A video, embed or share verb answers `forbidden` for an itinerary
|
|
790
|
+
|
|
791
|
+
The itinerary or the collection is personal: its record names no organization, or the `scope`
|
|
792
|
+
seam calls its organization personal. A video, an embed and a share link belong to an
|
|
793
|
+
organization, so the studio refuses them before asking the server, which refuses them too. A
|
|
794
|
+
resource whose owner the session has not read yet is let through.
|
|
795
|
+
|
|
796
|
+
### An engine's snapshot never changes, or its command does nothing
|
|
797
|
+
|
|
798
|
+
Nothing subscribes to it. Constructing an engine does nothing: the first subscriber starts it
|
|
799
|
+
and the last unsubscribe parks it, and an engine that takes commands ignores them while nobody
|
|
800
|
+
subscribes. Subscribe before you command it, and keep the subscription for as long as the
|
|
801
|
+
surface shows what the engine answers.
|
|
802
|
+
|
|
803
|
+
### A Node type-check reports `Cannot find name 'HTMLElement'`
|
|
804
|
+
|
|
805
|
+
The studio's declarations reach `MarkerOptions` of `@mountaya/elements`, whose `render` returns an
|
|
806
|
+
`HTMLElement`. A Node program that checks declarations with `skipLibCheck: false` adds `"DOM"` to
|
|
807
|
+
its `lib`, as the elements' README says of its own entry.
|
|
808
|
+
|
|
809
|
+
### A build asks for `maplibre-gl` in an application that draws no map
|
|
810
|
+
|
|
811
|
+
The application's own code imports the root of `@mountaya/elements`, or its `./editor`,
|
|
812
|
+
`./testing`, `./video` or `./view` entry, each of which names the renderer at the top of its
|
|
813
|
+
bundle. This
|
|
814
|
+
package reaches none of them. Import the name from the renderer-free entry that publishes it
|
|
815
|
+
(`@mountaya/elements/geo`, `./profile`, `./units`, `./map-client` for the map client's types),
|
|
816
|
+
and `maplibre-gl` stays off the install.
|
|
817
|
+
|
|
818
|
+
## Exports
|
|
819
|
+
|
|
820
|
+
Every name in a table is imported from the entry point its heading names; the first column says
|
|
821
|
+
where the package declares it (the kind of module, or the package it is republished from), not
|
|
822
|
+
what it is and not a second import path.
|
|
823
|
+
|
|
824
|
+
<!-- exports:start -->
|
|
825
|
+
|
|
826
|
+
<!-- Generated by scripts/generate-readme-exports.mjs. Run `npm run generate:readme`. -->
|
|
827
|
+
|
|
828
|
+
#### `@mountaya/studio`
|
|
829
|
+
|
|
830
|
+
| Declared under | Values | Types |
|
|
831
|
+
| --- | --- | --- |
|
|
832
|
+
| contracts | `cameraBearingModeSchema`, `cameraFpsSchema`, `cameraModeSchema`, `cameraOutputBaseSchema`, `cameraOutputFormatSchema`, `cameraOutputSchema`, `cameraPlanSchema`, `cameraResolutionSchema`, `cameraShotBaseSchema`, `cameraShotSchema`, `climbCategorySchema`, `DUPLICATE_SEGMENT_IDS_MAX`, `DUPLICATE_WAYPOINT_IDS_MAX`, `poiGroupIdSchema`, `profileDesignSchema`, `profileSourceSchema`, `qualitySchema`, `routeGeometrySchema`, `routeProfilePointSchema`, `segmentSpanSchema`, `studioToolContracts`, `toolNoDataSchema`, `videoPresetSchema` | `SetPoiDisplayInput`, `SetPoiGroupInput`, `StudioToolInputs`, `StudioToolName`, `StudioToolOutputs`, `StudioVideoDurationSetInput`, `StudioVideoModeSetInput`, `StudioVideoOpenInput`, `StudioVideoOrbitInput`, `StudioVideoOutputSetInput`, `StudioVideoPresetSetInput`, `StudioVideoPreviewSeekInput`, `StudioVideoProfileDesignSetInput`, `StudioVideoProfileLanguageSetInput`, `StudioVideoProfileToggleInput`, `StudioVideoProfileUnitsSetInput`, `StudioVideoRouteSetInput`, `StudioVideoShotAddHoldInput`, `StudioVideoShotAddInput`, `StudioVideoShotRemoveInput`, `StudioVideoShotSetInput`, `StudioVideoStepSetInput`, `ZoneRangeType` |
|
|
833
|
+
| rules | `activeSegmentLines`, `activeStudioScope`, `activityForId`, `AGENT_PANEL_SEARCH_KEYS`, `agentHandoffTarget`, `allowlistForMode`, `allowlistMode`, `allowlistUnrestricted`, `applyEmbedOverrides`, `availableEnginesForActivity`, `beginDraftSegmentEdit`, `buildEmbedIframe`, `buildEmbedSearch`, `buildEmbedSessionScript`, `buildEmbedSrc`, `buildEmbedTableCode`, `buildEmbedViewHash`, `buildExportFilename`, `buildReadyPayload`, `buildSegmentChainMerges`, `buildSegmentEditCommitInput`, `buildSegmentEditOptions`, `buildSegmentGroupRuns`, `buildShareSearch`, `buildShareSrc`, `buildShareText`, `buildShareViewConfig`, `buildVideoSnapshot`, `CAMERA_MESSAGE`, `cameraMessageSchema`, `canDeleteCollection`, `canEditCollection`, `canEditCollectionMetadata`, `canEditItinerary`, `canEditOwnedResource`, `clampConfigToAllowlists`, `clampConfigToFieldDependencies`, `clampConfigToSafetyRules`, `clampEmbedConfigToSecurity`, `clampSeedPoint`, `clampStudioConfigToSafetyRules`, `classicOverlays`, `codeForThrown`, `collectAttributions`, `collectionCreateScope`, `collectionFormSchema`, `confirmationToneSchema`, `contextMenuReadout`, `contiguousRunBounds`, `createFormChanged`, `createMemoryViewer`, `createPlatformViewer`, `createSearchFetch`, `createStaticViewer`, `DEFAULT_ENABLED_POI_GROUP_IDS`, `DEFAULT_HOLD_MS`, `DEFAULT_SHOT_PITCH_DEG`, `DEFAULT_SHOT_ZOOM`, `DEFAULT_TERRAIN`, `DEFAULT_ZONE_CREATE_METHOD`, `DEFAULT_ZONE_LEVEL`, `DEFAULT_ZONE_MODE`, `defaultEmbedTableOptions`, `defaultEngineForActivity`, `defaultSegmentGroupName`, `defaultSegmentName`, `defaultSpeedForActivity`, `defaultStudioConfig`, `defaultStudioScope`, `defaultWaypointName`, `defineRegistry`, `describeInvalidInput`, `DESCRIPTION_MAX_LENGTH`, `descriptionSchema`, `destinationPoint`, `detectFileProvider`, `DISPLAY_NAME_MAX_LENGTH`, `DISPLAY_NAME_MIN_LENGTH`, `displayNameSchema`, `displaySeedDispatches`, `draftActivityInput`, `draftChangeDisposition`, `draftCollectionsInput`, `draftFromWaypoint`, `draftGeometries`, `draftNameInput`, `draftOrganizationInput`, `draftPositionCount`, `draftPrivateInput`, `drawnByItinerary`, `editHijacksNativeShortcut`, `editKeyIntent`, `editorItineraryView`, `editShortcuts`, `editToolName`, `EMBED_CONFIG_FIELDS`, `EMBED_COVER_MAX_MS`, `EMBED_ELEMENTS`, `EMBED_IFRAME_RADIUS_PX`, `EMBED_SECTION_ORDER`, `EMBED_SEGMENT_TABLE_COLUMNS`, `EMBED_SESSION_ENDPOINT`, `EMBED_TABLE_INSTALL_COMMAND`, `EMBED_WAYPOINT_TABLE_COLUMNS`, `embedAuthSearchSchema`, `embedConfigSchema`, `embedConfigSearchSchema`, `embedConfigToStudioConfig`, `embedConstraintsFor`, `embedElementSectionFields`, `embedElementSections`, `embedElementSupportsField`, `embedFieldDependencies`, `embedLayerOptions`, `embedSearchSchema`, `embedSectionChanges`, `embedSectionFieldKeys`, `embedTableChanges`, `embedTableColumns`, `embedThemeSchema`, `EMPTY_SEGMENTS`, `enrichmentOverlays`, `enumFieldOptions`, `exceedsMergeViaCeiling`, `EXPORT_FORMATS`, `EXPORT_VARIANTS`, `exportExtension`, `exportFileStem`, `exportFormatVariants`, `extractOverlayBand`, `failureFromThrown`, `featureHitSchema`, `fieldDependenciesUnmet`, `filterEnrichmentOverlays`, `filterOverlayCategories`, `filterTerrains`, `findHillshadeOverlay`, `firstActivityId`, `firstSegmentEditInput`, `fitDisplayName`, `generateFriendlyName`, `hexColorSchema`, `HILLSHADE_OVERLAY_SLUG`, `IMPORT_FILE_FORMATS`, `IMPORT_FILE_MAX_SIZE`, `importDropzoneAccept`, `importReasonSentence`, `importSegmentCounts`, `importWarningSentence`, `inboundBridgeMessageSchema`, `inertStudioUrlSeam`, `inertViewer`, `isConfirmationWithheld`, `isContiguousRun`, `isDefaultSegmentName`, `isEmbedTableElement`, `isFieldRestricted`, `isLoopbackDomain`, `isPublishableScope`, `isRetryableShareLinkFailure`, `isShareLinkDisableSettled`, `isStudioSessionToken`, `isWaypointEmail`, `isWaypointPhone`, `isWaypointPropertyKey`, `isWaypointWebUrl`, `isZoneMetadataDirty`, `isZoneWorkUnsaved`, `ITINERARY_FIT_MAX_ZOOM`, `itineraryCeiling`, `itineraryClickTarget`, `itineraryEmphasisFor`, `itineraryLayerIdsOf`, `itinerarySpriteIcons`, `itineraryTileFeature`, `languageSchema`, `lateBoundTools`, `layersControlOffered`, `layerToolContext`, `localStudioPersistence`, `makeWaypointId`, `MAP_STATE_SEARCH_KEYS`, `mapBoundsSchema`, `mapInteractionScope`, `mapStateShape`, `memoryStudioPersistence`, `mintRowId`, `nextPropertyKey`, `nextWaypointDefaultName`, `normalizeDefaultProps`, `overlayFeatureSchema`, `overlayReadoutFor`, `overlaySampleResultSchema`, `overlaysOffered`, `patchFromDraft`, `peerDraftGhosts`, `permittedClassicOverlay`, `permittedEnrichmentOverlays`, `persistedItineraryView`, `POI_GROUP_COUNT`, `POI_GROUP_IDS`, `POI_GROUPS`, `poiGroupSchema`, `poiInfoSchema`, `poiLayerVisibility`, `pointAtFraction`, `PREVIEW_PLAN_REFRESH_DEBOUNCE_MS`, `previewProjection`, `previewRefreshDisposition`, `previewWaypoint`, `profileCursorReadout`, `profileMarkerIcon`, `projectEntityCollections`, `projectOnSegment`, `REACHABILITY_GLYPH`, `READY_MESSAGE`, `readyErrorSchema`, `readyMessageSchema`, `recordWaypointDraftChange`, `recordZoneDraftChange`, `registerStudioTools`, `renumberDefaultSegments`, `REQUEST_CAMERA_MESSAGE`, `REQUEST_SESSION_TOKEN_MESSAGE`, `requestCameraMessageSchema`, `requestSessionTokenMessageSchema`, `requireWritableScope`, `resolveActivity`, `resolveBaseTerrain`, `resolveDemUrl`, `resolveEmbedConfig`, `resolveEmbedDefaults`, `resolveFramedError`, `resolveOrgEmbedDefaults`, `resolveViewerUnits`, `resolveWaypointName`, `restStatusCodes`, `restStudioPersistence`, `routeHazardConfirmation`, `sameViewerValues`, `sectionDefaultPropsFields`, `sectionFields`, `seedFromCoordinates`, `seedFromPersistedSegment`, `segmentChainEnds`, `segmentEditTooltipContent`, `segmentGroupDissolvesOnLeave`, `segmentGroupForm`, `segmentGroupSavePlan`, `segmentLengthMeters`, `segmentsColorSchema`, `selectActiveEditEngine`, `selectedCandidate`, `selectEditorTakenBy`, `selectSuggestionSession`, `selectUnsavedWork`, `sessionTokenSurface`, `SET_ITINERARY_MESSAGE`, `SET_SESSION_TOKEN_MESSAGE`, `setSessionTokenMessageSchema`, `shareLinkActions`, `shareLinkScope`, `shareLinkTargetSchema`, `shareSearchSchema`, `simplifyToVias`, `SOCIAL_SHARE_TARGETS`, `SPLIT_MIN_END_DISTANCE_METERS`, `SPLIT_PICK_TOLERANCE_PX`, `splitPickVerdict`, `splitSegmentNames`, `studioCapabilitySchema`, `studioCollabTools`, `studioConfigSchema`, `studioEntitlementSchema`, `studioMapStateSearchSchema`, `StudioPersistenceRefusedError`, `studioRegistry`, `substituteLiveSegment`, `substituteLiveWaypoint`, `SUGGESTION_MAX_KEPT`, `SUGGESTION_TARGET_COUNT`, `suggestRouteTypeSchema`, `switchOverridesSchema`, `terrainVariantOptions`, `terrainVariantSchema`, `themeSchema`, `TIME_OFFSET_MAX_MINUTES`, `TIME_OFFSET_MIN_MINUTES`, `toggleableSegmentIds`, `toggleEmbedTableColumn`, `ToolBus`, `toolCapabilitySchema`, `toolConfirmationSchema`, `toolErrorCodeSchema`, `truncateKey`, `unitLengthSchema`, `unitPaceSchema`, `unitSlopeSchema`, `unitTemperatureSchema`, `urlBoolean`, `userWaypointIconSchema`, `VIDEO_STEP_ORDER`, `videoProfileSource`, `videoRouteSpans`, `videoSnapshotSchema`, `WAYPOINT_SECTIONS`, `waypointAmenitySchema`, `waypointDefaultName`, `waypointDefaultNames`, `waypointDetailLimits`, `waypointDetailsForm`, `waypointEditTooltipText`, `waypointIconLabel`, `waypointIconOccurrence`, `waypointIconSchema`, `waypointPropertyFormatSchema`, `waypointPropertyValueMatchesFormat`, `waypointSavePlan`, `waypointSectionLabel`, `withItineraryAnalysis`, `wrapZoneGeometryPastRange`, `ZONE_PREVIEW_DEBOUNCE_MS`, `ZONE_TIME_REFERENCE_INTERVAL_MS`, `zoneAutoName`, `zoneCircleGeometry`, `zoneCircleParamsSchema`, `zoneClickTarget`, `zoneDescriptionSchema`, `zoneEditTooltipText`, `zoneNameSchema`, `zoneReachPole`, `zoneSaveRequest`, `zoneSectorGeometry`, `zoneSectorParamsSchema`, `zoneSensorGeometry`, `zoneSensorParamsSchema`, `zoneTimeReferenceSeconds` | `ActiveEditEngine`, `Activity`, `ActivityCapabilities`, `AgentHandoffTarget`, `AllowlistMode`, `AllowlistVariant`, `BuildEmbedIframeInput`, `BuildEmbedSearchInput`, `BuildEmbedSessionScriptInput`, `BuildEmbedTableCodeInput`, `BuildSegmentEditCommitParams`, `CameraMessage`, `CatalogOption`, `CategoryActivities`, `ChainRunBounds`, `ChainSegment`, `CollabEntityKind`, `CollabEntityRef`, `CollabSeam`, `Collection`, `CollectionFormValues`, `ConfirmationRequest`, `ConfirmationTone`, `ConfirmationValues`, `ContextMenuReadoutKey`, `ContextMenuReadoutRow`, `CreateFormState`, `DependentFieldKey`, `DisplaySeedDispatch`, `DraftChangeDisposition`, `DraftSegmentEditAnchor`, `EditFamily`, `EditKeyIntent`, `EditKeyIntentOptions`, `EditKeyStroke`, `EditorItineraryViewSources`, `EditorTakenBy`, `EditShortcut`, `EditShortcutAction`, `EditShortcutKey`, `EditShortcutsInput`, `EditTooltipTone`, `EmbedAuthSearch`, `EmbedCanvasSize`, `EmbedConfig`, `EmbedConfigField`, `EmbedConfigFieldKey`, `EmbedConfigFieldKind`, `EmbedConfigSearch`, `EmbedConstraintsInput`, `EmbeddedStudioDefaultProps`, `EmbeddedStudioSafetyRules`, `EmbedDisplaySeed`, `EmbedElement`, `EmbedElementSection`, `EmbedLayerOptions`, `EmbedOptionGroup`, `EmbedSafetyRules`, `EmbedSearch`, `EmbedSectionId`, `EmbedTableElement`, `EmbedTableOptions`, `EmbedTheme`, `EmbedViewAnchor`, `EmbedZoomRange`, `EntityCollection`, `ExportFormat`, `ExportVariant`, `FriendlyNameCopy`, `GatedBooleanKey`, `ImportCandidate`, `ImportProviderId`, `ImportRecommendationReason`, `ImportSegmentCounts`, `ImportSession`, `ImportSubmissionStatus`, `ImportWarning`, `InboundBridgeMessage`, `Itinerary`, `ItineraryCeiling`, `ItineraryClickTarget`, `ItineraryDraft`, `ItineraryDraftSegment`, `ItineraryDraftWaypoint`, `ItinerarySpriteIcon`, `ItinerarySpriteSource`, `ItinerarySurface`, `ItineraryTileFeature`, `ItineraryView`, `ItineraryViewMode`, `ItineraryViewSource`, `JsonSchema`, `KnownToolInput`, `KnownToolOutput`, `LinkDraft`, `LiveSegmentRoute`, `LiveSegmentRouteAnalysis`, `LiveSegmentRouteElevation`, `Locales`, `LocalPersistenceOptions`, `ManeuverType`, `MapInteractionScope`, `MapStateSearchKey`, `MergeCandidate`, `MirroredSearch`, `OrganizationRole`, `OverlayReadout`, `OverlaySampleResult`, `PeerDraftGhost`, `PeerDraftGhostsInput`, `PhotoDraft`, `PickTarget`, `PlatformAnswerReader`, `PlatformMembership`, `PlatformScopeAnswer`, `PlatformViewerOptions`, `PoiGroup`, `PoiGroupId`, `PoiLayerVisibility`, `PreviewGlyphs`, `PreviewProjection`, `PreviewProjectionInput`, `PreviewRefreshDisposition`, `ProfileCursorBands`, `ProfileCursorReadout`, `ProfileMarkerBadge`, `PropertyDraft`, `PublishableKeySeam`, `ReadyMessage`, `RequestCameraMessage`, `RequestSessionTokenMessage`, `RestActivitySlug`, `RestLanguage`, `RouteAdvisory`, `RouteHazardMemo`, `RouteHazardPromptTexts`, `SearchDispatch`, `SegmentArmingSeams`, `SegmentChainEnds`, `SegmentChainMerge`, `SegmentChainMerges`, `SegmentEditCommitInput`, `SegmentEditSeed`, `SegmentEditTooltipContent`, `SegmentEditTooltipTexts`, `SegmentGroupForm`, `SegmentGroupOpened`, `SegmentGroupRefusal`, `SegmentGroupRun`, `SegmentGroupSavePlan`, `SegmentGroupSaveStep`, `SegmentLike`, `SegmentMergeRefusal`, `SegmentPoint`, `SegmentProjection`, `SetSessionTokenMessage`, `ShareLinkActionAvailability`, `ShareLinkActions`, `ShareLinkActionsInput`, `ShareLinkInput`, `ShareLinkScope`, `ShareLinkScopeInput`, `ShareLinkTarget`, `ShareSearch`, `SocialShareTarget`, `SocialShareTargetId`, `SplitPickVerdict`, `StoredEmbedDefaults`, `StudioApi`, `StudioCache`, `StudioCacheRef`, `StudioCacheValues`, `StudioCameraConstraints`, `StudioCapability`, `StudioConfig`, `StudioConstraintResolver`, `StudioEntitlement`, `StudioHandlers`, `StudioMapStateSearch`, `StudioPersistence`, `StudioPublishableKey`, `StudioRegistry`, `StudioScopeSeam`, `StudioTool`, `StudioToolContext`, `StudioToolHandler`, `StudioToolManifestEntry`, `StudioToolSink`, `StudioUrlSeam`, `StudioViewer`, `StudioWriteRefusal`, `StudioWriteResource`, `SuggestionCandidate`, `SuggestionPreviewInputs`, `SuggestionSession`, `SuggestionStatus`, `SuggestRouteType`, `SurfaceType`, `SwitchOverrides`, `TabSurface`, `TerrainVariant`, `ThrownRecognizer`, `Tool`, `ToolBusContext`, `ToolBusDispatch`, `ToolBusObserve`, `ToolBusObserveOverrides`, `ToolBusOptions`, `ToolCapability`, `ToolConfirmation`, `ToolDispatchEvent`, `ToolDispatchObserver`, `ToolDispatchRegistry`, `ToolErrorCode`, `ToolFailure`, `ToolOutputRegistry`, `ToolResult`, `ToolResultOf`, `TrailDifficultyType`, `UnitPace`, `UnitTemperature`, `UnsavedWorkState`, `VideoSnapshot`, `VideoStep`, `ViewerPreferences`, `ViewerSeam`, `WaypointAmenity`, `WaypointDetailsDraft`, `WaypointDetailsForm`, `WaypointDetailsRefusal`, `WaypointEditorSection`, `WaypointEditTooltipTexts`, `WaypointIcon`, `WaypointIconLike`, `WaypointIconNames`, `WaypointPreviewFields`, `WaypointPropertyFormat`, `WaypointSavePlan`, `WaypointSaveStep`, `WaypointTiming`, `WayType`, `Zone`, `ZoneAutoNameInput`, `ZoneCircleParams`, `ZoneClickTarget`, `ZoneEditTooltipTexts`, `ZoneFormFields`, `ZonePole`, `ZoneSaveInput`, `ZoneSaveRequest`, `ZoneSectorParams`, `ZoneSensorParams` |
|
|
834
|
+
| stores | `COLLAB_PEER_COLORS`, `collabLockEntrySchema`, `collabLockKey`, `collabLockKindSchema`, `collabPeerColor`, `collabPeerColorIndex`, `collabPresencePeerSchema`, `collabResourceKey`, `collabResourceKindSchema`, `collabResourceSchema`, `collectionsTargetSchema`, `contextMenuSchema`, `contextMenuZoneSchema`, `createUiStore`, `createVideoDirectorStore`, `defaultVideoExportProfile`, `directionsTargetSchema`, `editingCollectionSchema`, `embedUiBaseline`, `exportTargetSchema`, `mapAlertSchema`, `peerSegmentDraftsOf`, `profileSheetSnapSchema`, `renumber`, `segmentEditModeSchema`, `segmentGroupEditTargetSchema`, `segmentInsertAnchorSchema`, `segmentSplitPickSchema`, `selectActiveDraft`, `selectActiveDraftSession`, `selectAgentEntityLocked`, `selectAgentHandoffArmed`, `selectBaseMapLocked`, `selectCollabLockHolder`, `selectCollabLockHolderIds`, `selectCollabPeerDrafts`, `selectCollabPeers`, `selectDirecting`, `selectDirections`, `selectEditDirtyTick`, `selectEmbed`, `selectEmbedContent`, `selectImportSession`, `selectProfilePaceKmh`, `selectProfileSheetSnap`, `selectSegmentGroupEdit`, `selectSegmentSplitPick`, `selectSegmentViaPrompt`, `selectSelectedSuggestionCandidate`, `selectShare`, `selectVideoExport`, `selectVideoExportPlan`, `selectVideoExportRoute`, `selectVideoExportStatus`, `selectWaypointDetails`, `selectZoneCreateSetup`, `selectZoneEditDirty`, `streetviewPositionSchema`, `studioAlertCodeSchema`, `studioContentSchema`, `studioModalSchema`, `studioPanelSchema`, `synthesizeDraftSegment`, `synthesizeDraftWaypoint`, `videoExportProfileSchema`, `videoExportSchema`, `videoExportStatusSchema`, `waypointDraftSchema`, `waypointEditIntentSchema`, `waypointEditModeSchema`, `waypointPoiSeedSchema`, `zoneCreateMethodSchema`, `zoneEditBeginSchema`, `zoneEditLevelSchema`, `zoneEditModeSchema`, `zonePreviewQueryKey` | `ActiveDraftSliceActions`, `AgentHandoff`, `ChromeSliceActions`, `ChromeSliceState`, `CollabLockEntry`, `CollabLockKind`, `CollabPeer`, `CollabPeerDraft`, `CollabPeerSegmentDraft`, `CollabPeerZoneDraft`, `CollabPresencePeer`, `CollabResource`, `CollabResourceKind`, `CollabResourceState`, `CollabSliceActions`, `CollabSliceState`, `CollectionsSliceActions`, `CollectionsSliceState`, `CollectionsTarget`, `ContextMenu`, `DirectionsSliceActions`, `DirectionsSliceState`, `DirectionsTarget`, `DraftSegmentParams`, `DraftWaypointParams`, `EditingCollection`, `EditorReservation`, `EditorReservationSliceActions`, `EditorReservationSliceState`, `EmbedContent`, `EmbedContentSliceActions`, `EmbedContentSliceState`, `EmbedSliceActions`, `EmbedSliceState`, `ExportTarget`, `ImportSessionSliceActions`, `ImportSessionSliceState`, `ItineraryDuplicateSliceActions`, `ItineraryDuplicateSliceState`, `ItineraryDuplicateTarget`, `ItinerarySelection`, `ItinerarySliceActions`, `ItinerarySliceState`, `LayersSliceActions`, `LayersSliceState`, `MapAlert`, `ProfilePaceOverride`, `ProfileSheetSnap`, `RoadAccessDialogSliceActions`, `RoadAccessDialogSliceState`, `RoadAccessDialogTarget`, `SearchSliceActions`, `SearchSliceState`, `SegmentDraftSnapshot`, `SegmentEditBegin`, `SegmentEditSession`, `SegmentEditSliceActions`, `SegmentEditSliceState`, `SegmentGroupEditSliceActions`, `SegmentGroupEditSliceState`, `SegmentGroupEditTarget`, `SegmentInsertAnchor`, `SegmentSplitPick`, `SegmentSplitSliceActions`, `SegmentSplitSliceState`, `SegmentViaPrompt`, `ShareSliceActions`, `ShareSliceState`, `StreetviewPosition`, `StudioAlertCode`, `StudioContent`, `StudioModal`, `StudioPanel`, `SuggestSessionSliceActions`, `SuggestSessionSliceState`, `UiActions`, `UiState`, `UiStore`, `UiStoreApi`, `VideoDirectorActions`, `VideoDirectorState`, `VideoDirectorStore`, `VideoDirectorStoreApi`, `VideoExport`, `VideoExportProfile`, `VideoExportSliceActions`, `VideoExportSliceState`, `VideoExportStatus`, `WaypointDetailsPatch`, `WaypointDetailsSliceActions`, `WaypointDetailsSliceState`, `WaypointDetailsTarget`, `WaypointDraft`, `WaypointEditBegin`, `WaypointEditIntent`, `WaypointEditSession`, `WaypointEditSliceActions`, `WaypointEditSliceState`, `WaypointPoiSeed`, `ZoneCreateMethod`, `ZoneCreateSeed`, `ZoneDraftSnapshot`, `ZoneEditBegin`, `ZoneEditLevel`, `ZoneEditMode`, `ZoneEditSession`, `ZoneEditSliceActions`, `ZoneEditSliceState`, `ZonePreview`, `ZonePreviewBand` |
|
|
835
|
+
| `@mountaya/elements/data` | none | `ItinerarySegmentGroup` |
|
|
836
|
+
| `@mountaya/elements/layers` | `overlayInstant`, `POIS_OVERLAY_SLUG`, `TIME_WINDOW_FUTURE_HOURS`, `TIME_WINDOW_PAST_HOURS`, `timeSliderWindow`, `timestampedSources` | `TimeSliderWindow`, `TimestampedSource` |
|
|
837
|
+
|
|
838
|
+
#### `@mountaya/studio/agent`
|
|
839
|
+
|
|
840
|
+
| Declared under | Values | Types |
|
|
841
|
+
| --- | --- | --- |
|
|
842
|
+
| engines | `AgentThreadsEngine`, `DirectorChatEngine` | `AgentThreadsConfig`, `AgentThreadsEngineOptions`, `AgentThreadsTabsSeam`, `DirectorChatConfig`, `DirectorChatEngineOptions` |
|
|
843
|
+
| rules | `agentErrorCopy`, `copilotOrganizationId`, `PLAYBOOK`, `recoveryFor`, `SEARCH_TAB_ID`, `selectSurfaces`, `SURFACES`, `surfaceTools` | `AgentThreadMirror`, `AgentThreadsUrlSeam`, `GeneratedPlaybookEntry`, `GeneratedRecovery`, `GeneratedSurface`, `RecoveryAddendum`, `RouterDecision`, `RouterState` |
|
|
844
|
+
| stores | `createAgentThreadsStore`, `selectAgentDriving`, `WITHHELD_TAB_ID` | `AgentThreadsActions`, `AgentThreadsState`, `AgentThreadsStore`, `AgentThreadsStoreApi`, `ThreadState` |
|
|
845
|
+
|
|
846
|
+
#### `@mountaya/studio/engines`
|
|
847
|
+
|
|
848
|
+
| Declared under | Values | Types |
|
|
849
|
+
| --- | --- | --- |
|
|
850
|
+
| engines | `askFramingPageForSession`, `EmbedFramingEngine`, `EmbedReadyEngine`, `FRAMING_PAGE_SESSION_TIMEOUT_MS`, `ItineraryPaceEngine`, `ProfileMarkerEngine`, `SegmentDraftEngine`, `ShareLinkEngine`, `ZoneFormEngine` | `AskFramingPageForSessionOptions`, `EmbedFramingCollection`, `EmbedFramingConfig`, `EmbedFramingSnapshot`, `EmbedReadyConfig`, `EmbedReadyEngineOptions`, `EmbedReadySnapshot`, `FramingPageMessage`, `FramingPageWindow`, `ItineraryPaceConfig`, `ItineraryPaceEngineOptions`, `ProfileMarkerEngineOptions`, `SegmentDraftConfig`, `SegmentDraftContext`, `SegmentDraftEngineOptions`, `SegmentDraftEngineSnapshot`, `ShareLinkActionOutcome`, `ShareLinkConfig`, `ShareLinkDispatch`, `ShareLinkEngineOptions`, `ShareLinkFailure`, `ShareLinkRead`, `ShareLinkReadResult`, `ShareLinkSnapshot`, `ZoneFormConfig`, `ZoneFormDispatch`, `ZoneFormEngineOptions`, `ZoneFormSnapshot` |
|
|
851
|
+
| handlers | none | `ItineraryPaceResult` |
|
|
852
|
+
|
|
853
|
+
#### `@mountaya/studio/handlers`
|
|
854
|
+
|
|
855
|
+
| Declared under | Values | Types |
|
|
856
|
+
| --- | --- | --- |
|
|
857
|
+
| handlers | `acquireCollabLock`, `COLLAB_LOCKED_PREFIX`, `createVideoDirectorBus`, `isEditInProgressError`, `MAX_OPEN_COPILOT_TABS`, `maybeResetCopilotOnSwitch`, `poiCategoryWaypointStyle`, `readShareLink`, `releaseCollabEntity`, `teardownActiveEditSession` | `VideoDirectorToolBus`, `VideoDirectorToolInputs`, `VideoDirectorToolOutputs`, `WaypointSeedStyle` |
|
|
858
|
+
| rules | `createStudioHandlers`, `createStudioToolBus`, `hasErrorCode`, `overrideStudioHandler`, `SEARCH_TAB_ID`, `STUDIO_HANDLER_RECOGNIZERS` | `StudioToolBusOptions`, `StudioToolDefaults` |
|
|
859
|
+
|
|
860
|
+
#### `@mountaya/studio/plugins`
|
|
861
|
+
|
|
862
|
+
| Declared under | Values | Types |
|
|
863
|
+
| --- | --- | --- |
|
|
864
|
+
| contracts | `RESERVED_PLUGIN_NAMESPACES`, `studioContributionIdPattern`, `studioPluginIdPattern`, `studioPluginSlotSchema` | `StudioPlugin`, `StudioPluginContribution`, `StudioPluginEntry`, `StudioPluginGate`, `StudioPluginItineraryMenuTarget`, `StudioPluginMapContextMenuTarget`, `StudioPluginMapControlsTarget`, `StudioPluginProfileTarget`, `StudioPluginSegmentMenuTarget`, `StudioPluginSlot`, `StudioPluginSlotTargets`, `StudioPluginSubject`, `StudioPluginTarget`, `StudioPluginWaypointMenuTarget`, `StudioPluginZoneMenuTarget`, `StudioSlotContribution`, `StudioSlotEntry` |
|
|
865
|
+
| engines | `StudioPluginEngine` | `StudioPluginEngineOptions`, `StudioPluginObserver`, `StudioPluginRefusalReporter`, `StudioPluginRunEvent`, `StudioPluginRunOutcome`, `StudioPluginToolSink` |
|
|
866
|
+
| rules | `availableStudioContributions`, `isStudioContributionAvailable`, `isStudioPluginError`, `isStudioPluginToolName`, `qualifyStudioContributionId`, `sortStudioContributions`, `studioPluginDefectCodeSchema`, `StudioPluginError`, `studioPluginToolPrefix`, `validateStudioPlugin` | `StudioGatedContribution`, `StudioOrderedContribution`, `StudioPluginDefect`, `StudioPluginDefectCode`, `StudioPluginValidationScope` |
|
|
867
|
+
|
|
868
|
+
#### `@mountaya/studio/seams`
|
|
869
|
+
|
|
870
|
+
| Declared under | Values | Types |
|
|
871
|
+
| --- | --- | --- |
|
|
872
|
+
| rules | `browserSaveFile`, `createDefaultStudioSeams`, `createInertStudioSeams`, `createIntlFormatters`, `googleMapsLinks`, `inertNavigationBlocker`, `inertNavigationHold`, `inertStudioLinks`, `inertStudioNotify`, `inertStudioSaveFile`, `isStudioOwnNavigation`, `localPersistenceDrawer`, `localStudioStorage`, `memoryPersistenceDrawer`, `memoryStudioStorage`, `openStreetMapLinks`, `sequentialStudioIds`, `systemStudioIds` | `StudioFile`, `StudioFormatters`, `StudioIds`, `StudioLinks`, `StudioNavigationAttempt`, `StudioNavigationBlocker`, `StudioNavigationHold`, `StudioNavigationTarget`, `StudioNotify`, `StudioPersistenceDrawer`, `StudioRelativeUnit`, `StudioSaveFile`, `StudioSeams`, `StudioStorage`, `StudioStorageKey` |
|
|
873
|
+
| `@mountaya/elements/seams` | `manualClock`, `repeatEvery`, `systemClock` | `Clock` |
|
|
874
|
+
|
|
875
|
+
#### `@mountaya/studio/strings`
|
|
876
|
+
|
|
877
|
+
| Declared under | Values | Types |
|
|
878
|
+
| --- | --- | --- |
|
|
879
|
+
| rules | `ASPECT_OPTIONS`, `CONFIRM_COPY_LABELS`, `confirmSentence`, `EMPTY_STRINGS`, `failureAlertFor`, `FORMAT_OPTIONS`, `FPS_OPTIONS`, `lengthUnitOptions`, `maneuverIcon`, `maneuverText`, `mapRestError`, `mapToolError`, `mergeDisabledHintKey`, `paceUnitOptions`, `publicationColor`, `publicationLabel`, `publicationStateOf`, `QUALITY_OPTIONS`, `RESOLUTION_OPTIONS`, `resolveStudioStrings`, `searchLabelWord`, `slopeUnitOptions`, `splitDisabledHintKey`, `studioLanguageOptions`, `studioStrings`, `temperatureUnitOptions`, `toolNamesFor` | `ConfirmationValues`, `DraftEditorFlow`, `DraftEditorToolNames`, `FormErrorCopy`, `FormErrorOptions`, `FormErrorResource`, `ManeuverCopy`, `ManeuverGlyph`, `ManeuverType`, `PartialCopy`, `PublicationCopy`, `PublicationState`, `RestFormError`, `SearchLabelCopy`, `SegmentMergeDisabledReason`, `SegmentMergeRefusal`, `SegmentSplitDisabledReason`, `StudioStrings`, `StudioStringsOverrides`, `ToolResult`, `UnitCopy`, `UnitLength`, `UnitOption`, `UnitPace`, `UnitSlope`, `UnitTemperature` |
|
|
880
|
+
|
|
881
|
+
#### `@mountaya/studio/strings/fr`
|
|
882
|
+
|
|
883
|
+
| Declared under | Values | Types |
|
|
884
|
+
| --- | --- | --- |
|
|
885
|
+
| rules | `frStudioStrings` | none |
|
|
886
|
+
|
|
887
|
+
#### `@mountaya/studio/testing`
|
|
888
|
+
|
|
889
|
+
| Declared under | Values | Types |
|
|
890
|
+
| --- | --- | --- |
|
|
891
|
+
| testing | `emptyStudioToolBus`, `fakeStudioCache`, `fakeStudioToolContext`, `fakeStudioToolSink`, `fakeStudioUrlSeam`, `fakeViewer`, `studioToolBus` | `FakeStudioBus`, `FakeStudioCache`, `FakeStudioToolSink`, `FakeStudioUrlSeam`, `FakeViewer` |
|
|
892
|
+
|
|
893
|
+
#### `@mountaya/studio/time`
|
|
894
|
+
|
|
895
|
+
| Declared under | Values | Types |
|
|
896
|
+
| --- | --- | --- |
|
|
897
|
+
| rules | `solarPosition` | `SolarPosition` |
|
|
898
|
+
|
|
899
|
+
<!-- exports:end -->
|
|
900
|
+
|
|
901
|
+
## Contributing
|
|
902
|
+
|
|
903
|
+
Published from
|
|
904
|
+
[`packages/studio`](https://github.com/mountaya/sdk-typescript/tree/main/packages/studio) in
|
|
905
|
+
`mountaya/sdk-typescript`. The assembled editor built on these rules is
|
|
906
|
+
[`packages/studio-react`](https://github.com/mountaya/sdk-typescript/tree/main/packages/studio-react)
|
|
907
|
+
in the same repository, so a change spanning both is one commit. The exports table above is
|
|
908
|
+
generated: run `npm run generate:readme` rather than editing it, and `npm run lint` checks it.
|
|
909
|
+
|
|
910
|
+
[CONTRIBUTING.md](../../CONTRIBUTING.md) covers the setup, the gates `npm run lint` runs, and
|
|
911
|
+
what the guard tests are guarding. [CHANGELOG.md](CHANGELOG.md) is what changed. A security
|
|
912
|
+
issue goes to the address in [SECURITY.md](../../SECURITY.md), not to an issue.
|
|
913
|
+
|
|
914
|
+
## Licence
|
|
915
|
+
|
|
916
|
+
Published under the Mountaya SDK License: source-available, for use with the Mountaya services
|
|
917
|
+
while an agreement with Mountaya is in force. The terms are in [LICENSE.txt](LICENSE.txt), with a
|
|
918
|
+
French translation in [LICENCE.fr.txt](LICENCE.fr.txt).
|