@fps-games/editor 0.2.0-beta.2 → 0.2.0-beta.4
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/dist/agent-bridge/capabilities/assets.js.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.js +26 -17
- package/dist/agent-bridge/capabilities/editor-state.js.map +1 -1
- package/dist/agent-bridge/capabilities/host-lifecycle.js.map +1 -1
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/prefabs.js +61 -13
- package/dist/agent-bridge/capabilities/prefabs.js.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.js +110 -25
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
- package/dist/agent-bridge/capabilities/selection.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/selection.js +8 -5
- package/dist/agent-bridge/capabilities/selection.js.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.js +11 -2
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -1
- package/dist/agent-bridge/capabilities/transform.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/transform.js +6 -4
- package/dist/agent-bridge/capabilities/transform.js.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.js +79 -47
- package/dist/agent-bridge/capabilities/viewport.js.map +1 -1
- package/dist/agent-bridge/capability-sources.js.map +1 -1
- package/dist/agent-bridge/diagnostics.js.map +1 -1
- package/dist/agent-bridge/index.js.map +1 -1
- package/dist/agent-bridge/register.js.map +1 -1
- package/dist/agent-bridge/shared.d.ts +8 -3
- package/dist/agent-bridge/shared.d.ts.map +1 -1
- package/dist/agent-bridge/shared.js +32 -0
- package/dist/agent-bridge/shared.js.map +1 -1
- package/dist/agent-bridge/source-types.js.map +1 -1
- package/dist/authoring-apply.js.map +1 -1
- package/dist/build-info.json +48 -48
- package/dist/editor-plugin-agent-capabilities.js.map +1 -1
- package/dist/editor-plugin-hierarchy-command.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/local-editor-lifecycle-operations.js.map +1 -1
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +9 -5
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-bridge-transport.js.map +1 -1
- package/dist/local-editor-agent-bridge.js.map +1 -1
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +57 -1
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +393 -41
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.js.map +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/local-editor-plugin-inspector.js.map +1 -1
- package/dist/local-editor-plugin-panel.js.map +1 -1
- package/dist/local-editor-scene-render-scheduler.js.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/local-editor-viewport-render-coordinator.js.map +1 -1
- package/dist/playable-babylon-facade.js.map +1 -1
- package/dist/playable-babylon-outline-inspector.js.map +1 -1
- package/dist/playable-babylon-outline-runtime.js.map +1 -1
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +36 -0
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-rendering.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +49 -2
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-runtime.js.map +1 -1
- package/dist/playable-sdk-upgrade-doctor.js.map +1 -1
- package/dist/playable-sdk-vite.js.map +1 -1
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/static-shadow-cpu-worker.js.map +1 -1
- package/dist/vite.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/lighting/directional-light-angles.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/placement/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/placement/runtime-drop-position.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/rendering/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/rendering/node-rendering.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-shaders.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-options.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/edit-session.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/event-guard.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/input-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/inspector-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/inspector-host.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/monitor.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/primitive-projection-instancing.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/runtime-globals.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-camera-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-input-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-measurement-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/tool-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-solver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +5 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +3 -1
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +2 -0
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-root-ownership.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +2 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +260 -94
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js +186 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts +2 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +14 -8
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +23 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts +3 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +60 -13
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panel-registry.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-plugin-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +24 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +69 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +58 -14
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +196 -11
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +4 -4
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/authoring-source.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/document-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +9 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +18 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/events.d.ts +1 -1
- package/node_modules/@fps-games/editor-core/dist/events.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/events.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/field-schema/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/field-schema/resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/field-schema/schema.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/field-schema/types.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/field-schema/validators.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/host-services.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/marker-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-view-input.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/selection-strategy.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/transform-command.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/transform-gizmo.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/transform-operations.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +6 -6
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.js +28 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/managed-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/manager-core.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/manager-core.js +13 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/manager-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +58 -23
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/managed-runtime-instance.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/runtime-scene.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.js +7 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/runtime-transform-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/adapter-dispatcher.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/project-asset-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/camera-section.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/light-fields.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/light-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/marker-section.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/object-assembly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/internal/local-harness.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +60 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/marker-scene/facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/marker-scene/game-objects.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/marker-scene/geometry.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/marker-scene/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/default-assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/document-assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/document-assets.js +28 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/document-assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.js +26 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js +0 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/text.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts +8 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/shadow-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/source-structure-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/structure.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/asset-manager.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal-scene-feature.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-asset-actions.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +13 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/object-command-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/property-patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/system-defaults.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/host.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/authoring-http.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/authoring-http.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/authoring-http.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/authoring-http.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-node.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts +6 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/module-invalidation.d.ts +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/module-invalidation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/module-invalidation.js +37 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/module-invalidation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/path-write-coordinator.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts +4 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +14 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +5 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts +3 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +2 -11
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts +8 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +84 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-rendering-authoring.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-rendering-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-rendering-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts +4 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +1 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +0 -33
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +9 -6
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/dist/contributions.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/data-object.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/migration.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/playable-assets/dist/identity.js.map +1 -1
- package/node_modules/@fps-games/playable-assets/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/playable-assets/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-assets/dist/index.js +1 -0
- package/node_modules/@fps-games/playable-assets/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-assets/dist/portable-path.d.ts +2 -0
- package/node_modules/@fps-games/playable-assets/dist/portable-path.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-assets/dist/portable-path.js +25 -0
- package/node_modules/@fps-games/playable-assets/dist/portable-path.js.map +1 -0
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/marker-graph-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/marker-graph.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-authoring.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-types.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-values.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-quality.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-settings.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-types.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/value.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/runtime-data.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/standard-plugins.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/tokens.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/types.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/package.json +12 -12
- package/node_modules/@fps-games/playable-runtime-data/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-scene/dist/transform-math.js.map +1 -1
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/dist/index.js.map +1 -1
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/package.json +5 -5
- package/node_modules/@fps-games/plugin-host/dist/index.js.map +1 -1
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- package/node_modules/@fps-games/plugin-markers/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/package.json +5 -5
- package/node_modules/@fps-games/plugin-materials/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/package.json +5 -5
- package/node_modules/@fps-games/plugin-rendering/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
- package/node_modules/@fps-games/plugin-scene/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadows/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
- package/package.json +27 -19
|
@@ -36,4 +36,36 @@ export function isAgentBridgeObjectSelectable(options, document, objectId, hiera
|
|
|
36
36
|
return false;
|
|
37
37
|
return isAgentBridgeDocumentNodeSelectable(options, document, objectId);
|
|
38
38
|
}
|
|
39
|
+
export function isAgentBridgeHierarchyObjectSelectable(options, document, objectId, hierarchyItems) {
|
|
40
|
+
return hierarchyItems.some(item => item.id === objectId)
|
|
41
|
+
&& isAgentBridgeDocumentNodeSelectable(options, document, objectId);
|
|
42
|
+
}
|
|
43
|
+
export function getAgentBridgeSafeSceneHierarchy(operations) {
|
|
44
|
+
const projection = operations.getHierarchyProjection();
|
|
45
|
+
if (!projection || projection.scopeKind !== 'scene')
|
|
46
|
+
return [];
|
|
47
|
+
const commandableRows = new Set(projection.targets
|
|
48
|
+
.filter(target => target.rowId === target.targetId)
|
|
49
|
+
.map(target => target.rowId));
|
|
50
|
+
return projection.nodes.filter(node => commandableRows.has(node.id));
|
|
51
|
+
}
|
|
52
|
+
export function hasAgentBridgeSafeSceneScope(operations) {
|
|
53
|
+
return operations.getHierarchyProjection()?.scopeKind === 'scene';
|
|
54
|
+
}
|
|
55
|
+
export function getAgentBridgeSafeSceneSelection(operations) {
|
|
56
|
+
const projection = operations.getHierarchyProjection();
|
|
57
|
+
if (!projection || projection.scopeKind !== 'scene')
|
|
58
|
+
return EMPTY_EDITOR_SELECTION;
|
|
59
|
+
const safeIds = new Set(projection.targets
|
|
60
|
+
.filter(target => target.rowId === target.targetId)
|
|
61
|
+
.map(target => target.rowId));
|
|
62
|
+
const selectedIds = projection.selectedIds.filter(id => safeIds.has(id));
|
|
63
|
+
const activeId = projection.activeId && selectedIds.includes(projection.activeId)
|
|
64
|
+
? projection.activeId
|
|
65
|
+
: selectedIds[selectedIds.length - 1] ?? null;
|
|
66
|
+
return { selectedIds, activeId };
|
|
67
|
+
}
|
|
68
|
+
export function isAgentBridgeSafeSceneObjectId(operations, objectId) {
|
|
69
|
+
return getAgentBridgeSafeSceneHierarchy(operations).some(item => item.id === objectId);
|
|
70
|
+
}
|
|
39
71
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/agent-bridge/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAWN,MAAM,wBAAwB,CAAC;AAqBhC,MAAM,CAAC,MAAM,sBAAsB,GAAyB,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AA8LhG,MAAM,UAAU,yBAAyB,CAAC,SAA+B;IACvE,OAAO;QACL,WAAW,EAAE,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC;QACvC,QAAQ,EAAE,SAAS,CAAC,QAAQ;KAC7B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAc;IACvD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAA0B;IACnE,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,EAAE,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,SAAS;QAClC,IAAI,CAAC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,\n type EditorSelectionState,\n type EditorSession,\n type EditorTransformSnapshot,\n type EditorViewportProjectionMode,\n type EditorViewportToolState,\n type EditorViewportViewPreset,\n type InspectorObject,\n type SelectionCommand,\n} from '@fps-games/editor-core';\nimport type { FpsEditorLifecycleService } from '@fps-games/editor-core/lifecycle';\nimport type {\n EditorAgentBridgePrefabStageExitOutput,\n EditorAgentBridgePrefabStageOpenOutput,\n EditorAgentBridgePrefabStageState,\n EditorAgentBridgeSelectionState,\n EditorAgentBridgeVec3,\n} from '@fps-games/editor-protocol';\nimport type {\n LocalEditorBrowserAssetActionInput,\n LocalEditorBrowserPrefabStageStructureItem,\n LocalEditorBrowserHierarchyProjectionState,\n LocalEditorBrowserStatusDiagnostic,\n LocalEditorBrowserUiHierarchyItem,\n} from '@fps-games/editor-browser';\nimport type {\n LocalEditorHarnessAssetCreationOptions,\n LocalEditorHarnessAssetCreationResult,\n LocalEditorHarnessMode,\n LocalEditorHarnessOptions,\n} from '../local-editor-harness.js';\n\nexport const EMPTY_EDITOR_SELECTION: EditorSelectionState = { selectedIds: [], activeId: null };\n\nexport interface LocalEditorAgentBridgeProjection {\n readNodeTransform(objectId: string): EditorTransformSnapshot | null;\n getSelectionBounds(objectIds: readonly string[]): { center: EditorAgentBridgeVec3; size: EditorAgentBridgeVec3 } | null;\n getPreviewVisibilityOverrides?(): Array<{\n nodeId: string;\n visible: boolean;\n authoredActive: boolean;\n effectiveVisible: boolean;\n }>;\n setPreviewVisibilityOverrides?(overrides: Record<string, boolean>): Array<{\n nodeId: string;\n visible: boolean;\n authoredActive: boolean;\n effectiveVisible: boolean;\n }>;\n clearPreviewVisibilityOverrides?(): Array<{\n nodeId: string;\n visible: boolean;\n authoredActive: boolean;\n effectiveVisible: boolean;\n }>;\n getProjectedNodeIds?(): string[];\n getProjectionParentIds?(nodeId: string): string[];\n setShadowDebugOverlay?(items: LocalEditorAgentBridgeShadowDebugOverlayItem[]): string[];\n clearShadowDebugOverlay?(): boolean;\n waitForIdle?(): Promise<unknown>;\n}\n\nexport interface LocalEditorAgentBridgePreviewVisibilityEntry {\n nodeId: string;\n visible: boolean;\n authoredActive: boolean;\n effectiveVisible: boolean;\n}\n\nexport interface LocalEditorAgentBridgePreviewVisibilityState {\n overrides: Record<string, boolean>;\n isolatedObjectIds: string[];\n reason?: string;\n protectedObjectIds?: string[];\n protectedReceiverIds?: string[];\n}\n\nexport interface LocalEditorAgentBridgeShadowDebugBounds {\n min: EditorAgentBridgeVec3;\n max: EditorAgentBridgeVec3;\n size: EditorAgentBridgeVec3;\n center: EditorAgentBridgeVec3;\n}\n\nexport interface LocalEditorAgentBridgeShadowDebugOverlayItem {\n id: string;\n kind: 'caster-bounds' | 'receiver-bounds' | 'receiver-surface' | 'light-direction' | 'footprint' | 'artifact-bounds';\n bounds?: LocalEditorAgentBridgeShadowDebugBounds;\n center?: EditorAgentBridgeVec3;\n size?: EditorAgentBridgeVec3;\n direction?: EditorAgentBridgeVec3;\n}\n\nexport interface LocalEditorAgentBridgePlanarShadowCasterDebugInfo {\n sourceName: string;\n sourceMeshNames?: string[];\n sourceNodeId?: string;\n sourceNodeIds?: string[];\n shadowName: string;\n strategy: 'auto' | 'projected-mesh' | 'convex-hull';\n hasSkeleton: boolean;\n projectedMeshCount: number;\n convexHullMeshCount: number;\n alphaCutoutMeshCount: number;\n instancedCasterCount?: number;\n batchMeshCount?: number;\n instancedBatchIds?: string[];\n instancedBatchNames?: string[];\n independentProjectedMeshCount?: number;\n visibleInstanceCount?: number;\n alphaCutoutChannels?: Array<'alpha' | 'luminance' | 'red'>;\n alphaCutoutUvSets?: number[];\n alphaCutoutLevels?: number[];\n fallbackReasons?: string[];\n instancingFallbackReasons?: string[];\n}\n\nexport interface LocalEditorAgentBridgeShadowPreviewDebugInfo {\n planar?: {\n enabled: boolean;\n casterCount: number;\n casters: LocalEditorAgentBridgePlanarShadowCasterDebugInfo[];\n };\n}\n\nexport interface LocalEditorAgentBridgeSceneViewCameraState {\n viewPreset: EditorViewportViewPreset;\n projectionMode: EditorViewportProjectionMode;\n target?: EditorAgentBridgeVec3;\n position?: EditorAgentBridgeVec3;\n alpha?: number;\n beta?: number;\n radius?: number;\n}\n\nexport interface LocalEditorAgentBridgeSceneViewCamera {\n getState(): LocalEditorAgentBridgeSceneViewCameraState;\n setViewPreset(preset: EditorViewportViewPreset, options?: { target?: EditorAgentBridgeVec3 | null; radius?: number }): boolean;\n orbit(options?: {\n target?: EditorAgentBridgeVec3;\n yawDeltaDeg?: number;\n pitchDeltaDeg?: number;\n distanceScale?: number;\n }): boolean;\n}\n\nexport interface LocalEditorAgentBridgePrefabStageDetails<TDocument = unknown> {\n stage: EditorAgentBridgePrefabStageState;\n structureItems: readonly LocalEditorBrowserPrefabStageStructureItem[];\n inspectorObject?: InspectorObject<TDocument> | null;\n}\n\nexport interface LocalEditorAgentBridgeHarnessState<TDocument, TPatch> {\n mode: LocalEditorHarnessMode;\n lifecycle: FpsEditorLifecycleService | null;\n busy: boolean;\n session: EditorSession<TDocument, TPatch> | null;\n assets: readonly unknown[];\n projection: LocalEditorAgentBridgeProjection | null;\n previewVisibility: LocalEditorAgentBridgePreviewVisibilityState;\n sceneCameraPreviewEnabled: boolean;\n sceneViewCamera: LocalEditorAgentBridgeSceneViewCamera | null | any;\n viewportTools: EditorViewportToolState;\n status: string;\n statusTone: 'default' | 'success' | 'warning' | 'error';\n statusToneStatus: string;\n statusDetails: string;\n summary: string;\n}\n\nexport interface LocalEditorAgentBridgeCapabilitySourceOperations<TDocument> {\n createAssetFromAssetId(assetId: string, options?: LocalEditorHarnessAssetCreationOptions): LocalEditorHarnessAssetCreationResult;\n getPrefabStage(): EditorAgentBridgePrefabStageState | null;\n getPrefabStageDetails(): LocalEditorAgentBridgePrefabStageDetails<TDocument> | null;\n openPrefabStage(input: {\n assetId: string;\n browserAssetId?: string;\n }): Promise<EditorAgentBridgePrefabStageOpenOutput | null>;\n exitPrefabStage(): Promise<EditorAgentBridgePrefabStageExitOutput>;\n selectPrefabStageItem(itemId: string): boolean;\n runPrefabStageAssetAction(input: LocalEditorBrowserAssetActionInput): boolean;\n getHierarchyProjection(): LocalEditorBrowserHierarchyProjectionState | null;\n getStatusDiagnostics(): LocalEditorBrowserStatusDiagnostic[];\n dispatchSelectionCommand(command: SelectionCommand, renderUi?: boolean): boolean;\n focusProjectionNode(objectId: string): boolean;\n syncViewportCameraState(): void;\n requestSceneFrame(reason: string): void;\n cloneTransformSnapshot(transform: EditorTransformSnapshot): EditorTransformSnapshot;\n cancelActiveOperation(): void;\n withProjectionImpact(impact: EditorProjectionImpact | undefined): { projectionImpact?: EditorProjectionImpact };\n resolveProjectionImpact(source: { projectionImpact?: EditorProjectionImpact }, fallback: EditorProjectionImpact | undefined): EditorProjectionImpact | undefined;\n createReprojectProjectionImpact(ids: readonly (string | null | undefined)[]): EditorProjectionImpact | undefined;\n createTransformProjectionImpact(ids: readonly (string | null | undefined)[]): EditorProjectionImpact | undefined;\n createKnownCreatedReprojectProjectionImpact(input: {\n createdNodeIds: readonly (string | null | undefined)[];\n reprojectIds?: readonly (string | null | undefined)[];\n }): EditorProjectionImpact | undefined;\n createDeletedNodeProjectionImpact(ids: readonly (string | null | undefined)[]): EditorProjectionImpact | undefined;\n reprojectProjectionForChangedIds(document: TDocument, changedIds: string[]): void;\n syncProjectionForChangedIds(document: TDocument, changedIds: string[]): void;\n rebuildProjectionFromDocument(document: TDocument, selection: EditorSelectionState): void;\n sanitizeSelection(document: TDocument, selection: EditorSelectionState): EditorSelectionState | null;\n summarizeDocument(document: TDocument, source?: AuthoringSourceDescriptor | null): string;\n runRenderingAction?(actionId: string): Promise<LocalEditorAgentBridgeRenderingActionResult>;\n invalidateStaticShadowArtifact?(): boolean;\n getShadowPreviewDebugInfo?(): LocalEditorAgentBridgeShadowPreviewDebugInfo | null;\n setShadowDebugOverlay?(items: LocalEditorAgentBridgeShadowDebugOverlayItem[]): string[];\n clearShadowDebugOverlay?(): boolean;\n resolvePrefabStageProjectionNodeId?(nodeId: string): string | null;\n}\n\nexport interface LocalEditorAgentBridgeRenderingActionResult {\n ok: boolean;\n changed: boolean;\n rendered: boolean;\n status?: string;\n statusTone?: 'default' | 'success' | 'warning' | 'error';\n statusDetails?: string;\n details?: Record<string, unknown>;\n error?: string;\n}\n\nexport function cloneAgentBridgeSelection(selection: EditorSelectionState): EditorAgentBridgeSelectionState {\n return {\n selectedIds: [...selection.selectedIds],\n activeId: selection.activeId,\n };\n}\n\nexport function normalizeAgentBridgeString(value: unknown): string {\n return typeof value === 'string' ? value.trim() : '';\n}\n\nexport function normalizeAgentBridgeIdList(values: readonly unknown[]): string[] {\n const ids: string[] = [];\n const seen = new Set<string>();\n for (const value of values) {\n const id = normalizeAgentBridgeString(value);\n if (!id || seen.has(id)) continue;\n seen.add(id);\n ids.push(id);\n }\n return ids;\n}\n\nexport function isAgentBridgeDocumentNodeLocked<TDocument, TPatch, TAsset>(\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n document: TDocument,\n id: string,\n): boolean {\n return options.documentAdapter.isLocked?.(document, id) ?? false;\n}\n\nexport function isAgentBridgeDocumentNodeSelectable<TDocument, TPatch, TAsset>(\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n document: TDocument,\n id: string,\n): boolean {\n if (isAgentBridgeDocumentNodeLocked(options, document, id)) return false;\n return options.documentAdapter.isSelectable?.(document, id) ?? true;\n}\n\nexport function isAgentBridgeObjectSelectable<TDocument, TPatch, TAsset>(\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n document: TDocument,\n objectId: string,\n hierarchyItems: readonly LocalEditorBrowserUiHierarchyItem[],\n): boolean {\n const inHierarchy = hierarchyItems.some(item => item.id === objectId);\n const hasProjectionNode = !!options.documentAdapter.getProjectionNode(document, objectId);\n if (!inHierarchy && !hasProjectionNode) return false;\n return isAgentBridgeDocumentNodeSelectable(options, document, objectId);\n}\n\nexport function isAgentBridgeHierarchyObjectSelectable<TDocument, TPatch, TAsset>(\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n document: TDocument,\n objectId: string,\n hierarchyItems: readonly LocalEditorBrowserUiHierarchyItem[],\n): boolean {\n return hierarchyItems.some(item => item.id === objectId)\n && isAgentBridgeDocumentNodeSelectable(options, document, objectId);\n}\n\nexport function getAgentBridgeSafeSceneHierarchy<TDocument>(\n operations: Pick<LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>, 'getHierarchyProjection'>,\n): LocalEditorBrowserUiHierarchyItem[] {\n const projection = operations.getHierarchyProjection();\n if (!projection || projection.scopeKind !== 'scene') return [];\n const commandableRows = new Set(\n projection.targets\n .filter(target => target.rowId === target.targetId)\n .map(target => target.rowId),\n );\n return projection.nodes.filter(node => commandableRows.has(node.id));\n}\n\nexport function hasAgentBridgeSafeSceneScope<TDocument>(\n operations: Pick<LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>, 'getHierarchyProjection'>,\n): boolean {\n return operations.getHierarchyProjection()?.scopeKind === 'scene';\n}\n\nexport function getAgentBridgeSafeSceneSelection<TDocument>(\n operations: Pick<LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>, 'getHierarchyProjection'>,\n): EditorSelectionState {\n const projection = operations.getHierarchyProjection();\n if (!projection || projection.scopeKind !== 'scene') return EMPTY_EDITOR_SELECTION;\n const safeIds = new Set(\n projection.targets\n .filter(target => target.rowId === target.targetId)\n .map(target => target.rowId),\n );\n const selectedIds = projection.selectedIds.filter(id => safeIds.has(id));\n const activeId = projection.activeId && selectedIds.includes(projection.activeId)\n ? projection.activeId\n : selectedIds[selectedIds.length - 1] ?? null;\n return { selectedIds, activeId };\n}\n\nexport function isAgentBridgeSafeSceneObjectId<TDocument>(\n operations: Pick<LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>, 'getHierarchyProjection'>,\n objectId: string,\n): boolean {\n return getAgentBridgeSafeSceneHierarchy(operations).some(item => item.id === objectId);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-types.js","sourceRoot":"","sources":["../../src/agent-bridge/source-types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"source-types.js","sourceRoot":"","sources":["../../src/agent-bridge/source-types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n EditorAgentBridgeCallResult,\n EditorAgentBridgeAssetAnalysisGetInput,\n EditorAgentBridgeAssetAnalysisGetOutput,\n EditorAgentBridgeAssetInfoGetInput,\n EditorAgentBridgeAssetInfoGetOutput,\n EditorAgentBridgeAssetLibraryListInput,\n EditorAgentBridgeAssetLibraryListOutput,\n EditorAgentBridgeEditorSnapshot,\n EditorAgentBridgeEditorSnapshotGetInput,\n EditorAgentBridgeEditorState,\n EditorAgentBridgeEditorStateGetInput,\n EditorAgentBridgeUiRegionsGetInput,\n EditorAgentBridgeUiRegionsGetOutput,\n EditorAgentBridgeHostEditorEnterInput,\n EditorAgentBridgeHostEditorEnterOutput,\n EditorAgentBridgeHostEditorSaveAndRunInput,\n EditorAgentBridgeHostEditorSaveAndRunOutput,\n EditorAgentBridgeHostEditorDiscardAndRunInput,\n EditorAgentBridgeHostEditorDiscardAndRunOutput,\n EditorAgentBridgeHostEditorWaitReadyInput,\n EditorAgentBridgeHostEditorWaitReadyOutput,\n EditorAgentBridgeHostModeGetInput,\n EditorAgentBridgeHostModeGetOutput,\n EditorAgentBridgeObjectCreatePrimitiveInput,\n EditorAgentBridgeObjectCreatePrimitiveOutput,\n EditorAgentBridgeObjectCreateFromAssetInput,\n EditorAgentBridgeObjectCreateFromAssetOutput,\n EditorAgentBridgeObjectDeleteInput,\n EditorAgentBridgeObjectDeleteOutput,\n EditorAgentBridgeObjectResolveInput,\n EditorAgentBridgeObjectResolveOutput,\n EditorAgentBridgePrefabMaterialSlotsListInput,\n EditorAgentBridgePrefabMaterialSlotsListOutput,\n EditorAgentBridgePrefabAssetRenameInput,\n EditorAgentBridgePrefabAssetRenameOutput,\n EditorAgentBridgePrefabNodeCreateFromAssetInput,\n EditorAgentBridgePrefabNodeCreateGroupInput,\n EditorAgentBridgePrefabNodeCreatePrimitiveInput,\n EditorAgentBridgePrefabNodeDeleteInput,\n EditorAgentBridgePrefabNodeMutationOutput,\n EditorAgentBridgePrefabNodeReparentInput,\n EditorAgentBridgePrefabNodeRenameInput,\n EditorAgentBridgePrefabNodeRenameOutput,\n EditorAgentBridgePrefabNodeSelectInput,\n EditorAgentBridgePrefabNodeSelectOutput,\n EditorAgentBridgePrefabNodeSetTransformInput,\n EditorAgentBridgePrefabResolveInput,\n EditorAgentBridgePrefabResolveOutput,\n EditorAgentBridgePrefabSceneGetInput,\n EditorAgentBridgePrefabSceneGetOutput,\n EditorAgentBridgePrefabSourceStructureGetInput,\n EditorAgentBridgePrefabSourceStructureGetOutput,\n EditorAgentBridgePrefabStageExitInput,\n EditorAgentBridgePrefabStageExitOutput,\n EditorAgentBridgePrefabStageOpenInput,\n EditorAgentBridgePrefabStageOpenOutput,\n EditorAgentBridgeSceneObject,\n EditorAgentBridgeSceneObjectsListInput,\n EditorAgentBridgeSelectionSetInput,\n EditorAgentBridgeSelectionSetOutput,\n EditorAgentBridgeSelectionState,\n EditorAgentBridgeShadowPolicyGetInput,\n EditorAgentBridgeShadowPolicyGetOutput,\n EditorAgentBridgeShadowPolicySetInput,\n EditorAgentBridgeShadowPolicySetOutput,\n EditorAgentBridgeShadowDebugInspectInput,\n EditorAgentBridgeShadowDebugInspectOutput,\n EditorAgentBridgeShadowDebugContextClearInput,\n EditorAgentBridgeShadowDebugContextClearOutput,\n EditorAgentBridgeShadowDebugContextEnterInput,\n EditorAgentBridgeShadowDebugContextEnterOutput,\n EditorAgentBridgeShadowDebugOverlayClearInput,\n EditorAgentBridgeShadowDebugOverlayClearOutput,\n EditorAgentBridgeShadowDebugOverlaySetInput,\n EditorAgentBridgeShadowDebugOverlaySetOutput,\n EditorAgentBridgeShadowDebugVisibilityMeasureInput,\n EditorAgentBridgeShadowDebugVisibilityMeasureOutput,\n EditorAgentBridgeShadowReceiversListInput,\n EditorAgentBridgeShadowReceiversListOutput,\n EditorAgentBridgeShadowResolvePreviewInput,\n EditorAgentBridgeShadowResolvePreviewOutput,\n EditorAgentBridgeShadowStaticBakeInput,\n EditorAgentBridgeShadowStaticBakeOutput,\n EditorAgentBridgeShadowStaticInvalidateInput,\n EditorAgentBridgeShadowStaticInvalidateOutput,\n EditorAgentBridgeTransformMoveInput,\n EditorAgentBridgeTransformMoveOutput,\n EditorAgentBridgeTransformSetInput,\n EditorAgentBridgeTransformSetOutput,\n EditorAgentBridgeViewportCameraGetInput,\n EditorAgentBridgeViewportCameraOrbitInput,\n EditorAgentBridgeViewportCameraOrbitOutput,\n EditorAgentBridgeViewportCameraSetPresetInput,\n EditorAgentBridgeViewportCameraSetPresetOutput,\n EditorAgentBridgeViewportCameraState,\n EditorAgentBridgeViewportFocusObjectInput,\n EditorAgentBridgeViewportFocusObjectOutput,\n EditorAgentBridgeViewportFrameSelectionInput,\n EditorAgentBridgeViewportFrameSelectionOutput,\n EditorAgentBridgeViewportIsolationEnterInput,\n EditorAgentBridgeViewportIsolationEnterOutput,\n EditorAgentBridgeViewportVisibilityClearInput,\n EditorAgentBridgeViewportVisibilityMutationOutput,\n EditorAgentBridgeViewportVisibilitySetInput,\n EditorAgentBridgeViewportVisibilitySnapshotInput,\n EditorAgentBridgeViewportVisibilitySnapshotOutput,\n} from '@fps-games/editor-protocol';\nimport type { EditorAgentBridgeCallContext } from '@fps-games/editor-core';\n\nexport type LocalEditorAgentBridgeSourceResult<TOutput> =\n | TOutput\n | EditorAgentBridgeCallResult<TOutput>\n | Promise<TOutput | EditorAgentBridgeCallResult<TOutput>>;\n\nexport interface LocalEditorAgentBridgeHostSource {\n isBusy(): boolean;\n getMode(input: EditorAgentBridgeHostModeGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeHostModeGetOutput>;\n enterEditor(input: EditorAgentBridgeHostEditorEnterInput, context?: EditorAgentBridgeCallContext): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeHostEditorEnterOutput>;\n saveAndRun(input: EditorAgentBridgeHostEditorSaveAndRunInput, context?: EditorAgentBridgeCallContext): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeHostEditorSaveAndRunOutput>;\n discardAndRun(input: EditorAgentBridgeHostEditorDiscardAndRunInput, context?: EditorAgentBridgeCallContext): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeHostEditorDiscardAndRunOutput>;\n waitReady(input: EditorAgentBridgeHostEditorWaitReadyInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeHostEditorWaitReadyOutput>;\n}\n\nexport interface LocalEditorAgentBridgeAssetSource {\n listAssets(input: EditorAgentBridgeAssetLibraryListInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeAssetLibraryListOutput>;\n getAssetInfo(input: EditorAgentBridgeAssetInfoGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeAssetInfoGetOutput>;\n getAssetAnalysis(input: EditorAgentBridgeAssetAnalysisGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeAssetAnalysisGetOutput>;\n}\n\nexport interface LocalEditorAgentBridgeObjectSource {\n listObjects(input: EditorAgentBridgeSceneObjectsListInput): EditorAgentBridgeSceneObject[];\n resolveObject(input: EditorAgentBridgeObjectResolveInput): EditorAgentBridgeObjectResolveOutput;\n getObject(objectId: string): EditorAgentBridgeSceneObject | null;\n createPrimitive(input: EditorAgentBridgeObjectCreatePrimitiveInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeObjectCreatePrimitiveOutput>;\n createFromAsset(input: EditorAgentBridgeObjectCreateFromAssetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeObjectCreateFromAssetOutput>;\n deleteObjects(input: EditorAgentBridgeObjectDeleteInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeObjectDeleteOutput>;\n}\n\nexport interface LocalEditorAgentBridgePrefabSource {\n resolvePrefab(input: EditorAgentBridgePrefabResolveInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabResolveOutput>;\n openStage(input: EditorAgentBridgePrefabStageOpenInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabStageOpenOutput>;\n exitStage(input: EditorAgentBridgePrefabStageExitInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabStageExitOutput>;\n renameAsset(input: EditorAgentBridgePrefabAssetRenameInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabAssetRenameOutput>;\n getScene(input: EditorAgentBridgePrefabSceneGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabSceneGetOutput>;\n selectNode(input: EditorAgentBridgePrefabNodeSelectInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeSelectOutput>;\n createNodeFromAsset(input: EditorAgentBridgePrefabNodeCreateFromAssetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeMutationOutput>;\n createGroupNode(input: EditorAgentBridgePrefabNodeCreateGroupInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeMutationOutput>;\n createPrimitiveNode(input: EditorAgentBridgePrefabNodeCreatePrimitiveInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeMutationOutput>;\n setNodeTransform(input: EditorAgentBridgePrefabNodeSetTransformInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeMutationOutput>;\n renameNode(input: EditorAgentBridgePrefabNodeRenameInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeRenameOutput>;\n reparentNode(input: EditorAgentBridgePrefabNodeReparentInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeMutationOutput>;\n deleteNode(input: EditorAgentBridgePrefabNodeDeleteInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabNodeMutationOutput>;\n getSourceStructure(input: EditorAgentBridgePrefabSourceStructureGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabSourceStructureGetOutput>;\n listMaterialSlots(input: EditorAgentBridgePrefabMaterialSlotsListInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgePrefabMaterialSlotsListOutput>;\n}\n\nexport interface LocalEditorAgentBridgeSelectionSource {\n getSelection(): EditorAgentBridgeSelectionState;\n setSelection(input: EditorAgentBridgeSelectionSetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeSelectionSetOutput>;\n}\n\nexport interface LocalEditorAgentBridgeShadowSource {\n getPolicy(input: EditorAgentBridgeShadowPolicyGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowPolicyGetOutput>;\n setPolicy(input: EditorAgentBridgeShadowPolicySetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowPolicySetOutput>;\n listReceivers(input: EditorAgentBridgeShadowReceiversListInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowReceiversListOutput>;\n resolvePreview(input: EditorAgentBridgeShadowResolvePreviewInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowResolvePreviewOutput>;\n inspectDebug(input: EditorAgentBridgeShadowDebugInspectInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowDebugInspectOutput>;\n enterDebugContext(input: EditorAgentBridgeShadowDebugContextEnterInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowDebugContextEnterOutput>;\n clearDebugContext(input: EditorAgentBridgeShadowDebugContextClearInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowDebugContextClearOutput>;\n setDebugOverlay(input: EditorAgentBridgeShadowDebugOverlaySetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowDebugOverlaySetOutput>;\n clearDebugOverlay(input: EditorAgentBridgeShadowDebugOverlayClearInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowDebugOverlayClearOutput>;\n measureVisibility(input: EditorAgentBridgeShadowDebugVisibilityMeasureInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowDebugVisibilityMeasureOutput>;\n bakeStatic(input: EditorAgentBridgeShadowStaticBakeInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowStaticBakeOutput>;\n invalidateStatic(input: EditorAgentBridgeShadowStaticInvalidateInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeShadowStaticInvalidateOutput>;\n}\n\nexport interface LocalEditorAgentBridgeTransformSource {\n move(input: EditorAgentBridgeTransformMoveInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeTransformMoveOutput>;\n set(input: EditorAgentBridgeTransformSetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeTransformSetOutput>;\n}\n\nexport interface LocalEditorAgentBridgeViewportSource {\n focusObject(input: EditorAgentBridgeViewportFocusObjectInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportFocusObjectOutput>;\n frameSelection(input: EditorAgentBridgeViewportFrameSelectionInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportFrameSelectionOutput>;\n getCamera(input: EditorAgentBridgeViewportCameraGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportCameraState>;\n setCameraPreset(input: EditorAgentBridgeViewportCameraSetPresetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportCameraSetPresetOutput>;\n orbitCamera(input: EditorAgentBridgeViewportCameraOrbitInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportCameraOrbitOutput>;\n getVisibilitySnapshot(input: EditorAgentBridgeViewportVisibilitySnapshotInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportVisibilitySnapshotOutput>;\n setVisibility(input: EditorAgentBridgeViewportVisibilitySetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportVisibilityMutationOutput>;\n clearVisibility(input: EditorAgentBridgeViewportVisibilityClearInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportVisibilityMutationOutput>;\n enterIsolation(input: EditorAgentBridgeViewportIsolationEnterInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeViewportIsolationEnterOutput>;\n}\n\nexport interface LocalEditorAgentBridgeStateSource {\n getSnapshot(input: EditorAgentBridgeEditorSnapshotGetInput): EditorAgentBridgeEditorSnapshot;\n getState(input: EditorAgentBridgeEditorStateGetInput): EditorAgentBridgeEditorState;\n}\n\nexport interface LocalEditorAgentBridgeUiSource {\n getRegions(input: EditorAgentBridgeUiRegionsGetInput): LocalEditorAgentBridgeSourceResult<EditorAgentBridgeUiRegionsGetOutput>;\n}\n\nexport interface LocalEditorAgentBridgeCapabilitySources {\n assets: LocalEditorAgentBridgeAssetSource;\n host: LocalEditorAgentBridgeHostSource;\n objects: LocalEditorAgentBridgeObjectSource;\n prefabs: LocalEditorAgentBridgePrefabSource;\n selection: LocalEditorAgentBridgeSelectionSource;\n shadows: LocalEditorAgentBridgeShadowSource;\n transform: LocalEditorAgentBridgeTransformSource;\n viewport: LocalEditorAgentBridgeViewportSource;\n state: LocalEditorAgentBridgeStateSource;\n ui: LocalEditorAgentBridgeUiSource;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-apply.js","sourceRoot":"","sources":["../src/authoring-apply.ts"],"names":[],"mappings":"AAuBA,MAAM,UAAU,2BAA2B,CACzC,OAA8D;IAE9D,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5D,MAAM,OAAO,GAAG,YAAY,CAAC,aAAa,CAAC;IAC3C,IAAI,CAAC,YAAY,CAAC,SAAS,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IACrD,IAAI,YAAY,CAAC,WAAW,KAAK,MAAM,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAChE,IAAI,OAAO,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,UAAU,KAAK,MAAM,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAElG,MAAM,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC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Aa,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa;QACrF,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS;KAC7D,CAAC;AACJ,CAAC","sourcesContent":["import type {\n AuthoringApplyCommand,\n AuthoringApplyResult,\n AuthoringSourceRef,\n DocumentCommand,\n RuntimePatch,\n} from '@fps-games/editor-core';\n\nexport interface AuthoringRuntimePatchApplyAdapter<TDocument, TPatch = unknown> {\n createPatchFromRuntimePatch(input: {\n source: AuthoringSourceRef;\n document: TDocument;\n runtimePatch: RuntimePatch;\n }): { patch: TPatch; label?: string } | null;\n}\n\nexport interface CreateAuthoringApplyCommandOptions<TDocument, TPatch = unknown> {\n source: AuthoringSourceRef;\n document: TDocument;\n runtimePatch: RuntimePatch;\n adapter: AuthoringRuntimePatchApplyAdapter<TDocument, TPatch>;\n}\n\nexport function createAuthoringApplyCommand<TDocument, TPatch = unknown>(\n options: CreateAuthoringApplyCommandOptions<TDocument, TPatch>,\n): AuthoringApplyCommand<TPatch> | null {\n const { source, document, runtimePatch, adapter } = options;\n const binding = runtimePatch.sourceBinding;\n if (!runtimePatch.applyable || !binding) return null;\n if (runtimePatch.applyTarget !== source.sourceType) return null;\n if (binding.sourceId !== source.sourceId || binding.sourceType !== source.sourceType) return null;\n\n const result = adapter.createPatchFromRuntimePatch({\n source,\n document,\n runtimePatch,\n });\n if (!result) return null;\n\n return {\n source: { ...source },\n patch: result.patch,\n label: result.label ?? runtimePatch.label ?? `Apply ${runtimePatch.runtimePropertyPath}`,\n runtimePatch: cloneRuntimePatch(runtimePatch),\n };\n}\n\nexport function createDocumentCommandFromAuthoringApply<TDocument, TPatch = unknown>(\n command: AuthoringApplyCommand<TPatch>,\n): DocumentCommand<TDocument, TPatch> {\n return {\n type: 'document.patch',\n patch: command.patch,\n label: command.label,\n };\n}\n\nexport function createAuthoringApplyResult<TDocument>(\n source: AuthoringSourceRef,\n document: TDocument,\n): AuthoringApplyResult<TDocument> {\n return {\n source: { ...source },\n document,\n applied: true,\n };\n}\n\nfunction cloneRuntimePatch(patch: RuntimePatch): RuntimePatch {\n return {\n ...patch,\n sourceBinding: patch.sourceBinding ? { ...patch.sourceBinding } : patch.sourceBinding,\n metadata: patch.metadata ? { ...patch.metadata } : undefined,\n };\n}\n"]}
|
package/dist/build-info.json
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@fps-games/editor",
|
|
4
|
-
"version": "0.2.0-beta.
|
|
5
|
-
"gitSha": "
|
|
6
|
-
"distHash": "
|
|
7
|
-
"cacheKey": "0.2.0-beta.
|
|
4
|
+
"version": "0.2.0-beta.4",
|
|
5
|
+
"gitSha": "3af070a16bb4fe064c9e529dc457f6d62a1b8a83",
|
|
6
|
+
"distHash": "50f72f4635bc01946e0b64c0a95009bcc45b968161c176960362e56c35bd9838",
|
|
7
|
+
"cacheKey": "0.2.0-beta.4-50f72f4635bc",
|
|
8
8
|
"bundledPackages": [
|
|
9
9
|
{
|
|
10
10
|
"name": "@fps-games/babylon-renderer",
|
|
11
|
-
"version": "0.2.0-beta.
|
|
12
|
-
"distHash": "
|
|
11
|
+
"version": "0.2.0-beta.4",
|
|
12
|
+
"distHash": "139d995a8a8639cb8961cb8d17166c15c2ea5c0ef413800fc33b2a61eb6bae9d"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "@fps-games/editor-babylon",
|
|
16
|
-
"version": "0.2.0-beta.
|
|
17
|
-
"distHash": "
|
|
16
|
+
"version": "0.2.0-beta.4",
|
|
17
|
+
"distHash": "2e45131e4abb054c711c6d2cef651d63039fa54bbe06a2f5bdbf20edf4b00928"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"name": "@fps-games/editor-browser",
|
|
21
|
-
"version": "0.2.0-beta.
|
|
22
|
-
"distHash": "
|
|
21
|
+
"version": "0.2.0-beta.4",
|
|
22
|
+
"distHash": "1dc9a78034c6847da69fd8688b6ff784883994d2670c4c75977f677cb3be9595"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "@fps-games/editor-core",
|
|
26
|
-
"version": "0.2.0-beta.
|
|
27
|
-
"distHash": "
|
|
26
|
+
"version": "0.2.0-beta.4",
|
|
27
|
+
"distHash": "5ad33bdf6be07dcc509c1f307c11f151dee75095f5ff55787819979cd57e7e48"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "@fps-games/editor-forge-play",
|
|
31
|
-
"version": "0.2.0-beta.
|
|
32
|
-
"distHash": "
|
|
31
|
+
"version": "0.2.0-beta.4",
|
|
32
|
+
"distHash": "c76fb413ce05bbcae6481366d71aed662bc56c65827b6dddbde5478a2740e079"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "@fps-games/editor-playable-sdk",
|
|
36
|
-
"version": "0.2.0-beta.
|
|
37
|
-
"distHash": "
|
|
36
|
+
"version": "0.2.0-beta.4",
|
|
37
|
+
"distHash": "db085a25a65765db6d18c31b39a57cbf599b16c8d1f6b8f1a90f67479b4ac108"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "@fps-games/editor-protocol",
|
|
41
|
-
"version": "0.2.0-beta.
|
|
42
|
-
"distHash": "
|
|
41
|
+
"version": "0.2.0-beta.4",
|
|
42
|
+
"distHash": "7877cc4b750c9c6d78c885f736f8c17e87a55d611ee4c311e7394c3834c3e241"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "@fps-games/editor-tooling",
|
|
46
|
-
"version": "0.2.0-beta.
|
|
47
|
-
"distHash": "
|
|
46
|
+
"version": "0.2.0-beta.4",
|
|
47
|
+
"distHash": "12978b8fc285b62185ecc723089e489ec8f9c5192d2c20f772f8c5b3c527a951"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "@fps-games/playable-assets",
|
|
51
|
-
"version": "0.2.0-beta.
|
|
52
|
-
"distHash": "
|
|
51
|
+
"version": "0.2.0-beta.4",
|
|
52
|
+
"distHash": "37a544c7fef71429562a181f3e74008b1d40ed8fcb26e19b604ddaa1298cbd18"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"name": "@fps-games/playable-contracts",
|
|
56
|
-
"version": "0.2.0-beta.
|
|
57
|
-
"distHash": "
|
|
56
|
+
"version": "0.2.0-beta.4",
|
|
57
|
+
"distHash": "c82be59868699be97bf3639b6961714877fb3d6c45098dc2366690a7f3976cde"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "@fps-games/playable-rendering",
|
|
61
|
-
"version": "0.2.0-beta.
|
|
62
|
-
"distHash": "
|
|
61
|
+
"version": "0.2.0-beta.4",
|
|
62
|
+
"distHash": "64b91540fbe200093158c2229b431dffc3965b2dde5615c6824c27983be5bd7b"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "@fps-games/playable-runtime",
|
|
66
|
-
"version": "0.2.0-beta.
|
|
67
|
-
"distHash": "
|
|
66
|
+
"version": "0.2.0-beta.4",
|
|
67
|
+
"distHash": "8c8388cd6a9ed3a73a879f90c8bb103a138563c1d6030470beae59b0a87fabeb"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"name": "@fps-games/playable-runtime-data",
|
|
71
|
-
"version": "0.2.0-beta.
|
|
72
|
-
"distHash": "
|
|
71
|
+
"version": "0.2.0-beta.4",
|
|
72
|
+
"distHash": "44bf5edaf873b0888d790a142895d24acae9896b5d38836d6cee1d85a5d9483e"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"name": "@fps-games/playable-scene",
|
|
76
|
-
"version": "0.2.0-beta.
|
|
77
|
-
"distHash": "
|
|
76
|
+
"version": "0.2.0-beta.4",
|
|
77
|
+
"distHash": "c9988e0a517dbda0250812d61c3cca1b149b25ac36231f5f2b57346f3435dd92"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"name": "@fps-games/plugin-api",
|
|
81
|
-
"version": "0.2.0-beta.
|
|
82
|
-
"distHash": "
|
|
81
|
+
"version": "0.2.0-beta.4",
|
|
82
|
+
"distHash": "06c15e6ba76748b069aae75d1ec325ad2842e38bad37f91a25fd878ed1bf73f6"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"name": "@fps-games/plugin-assets",
|
|
86
|
-
"version": "0.2.0-beta.
|
|
87
|
-
"distHash": "
|
|
86
|
+
"version": "0.2.0-beta.4",
|
|
87
|
+
"distHash": "a0c4dadc5ef040e0d3b83e71239490d7f57ffc21ee47fe1cf40e6c33b9db897f"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "@fps-games/plugin-host",
|
|
91
|
-
"version": "0.2.0-beta.
|
|
92
|
-
"distHash": "
|
|
91
|
+
"version": "0.2.0-beta.4",
|
|
92
|
+
"distHash": "f46e8257e5ed78b4dff21a905d3cf7c54933a6ff1ae458ae2d73126dfc0d8f56"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"name": "@fps-games/plugin-markers",
|
|
96
|
-
"version": "0.2.0-beta.
|
|
97
|
-
"distHash": "
|
|
96
|
+
"version": "0.2.0-beta.4",
|
|
97
|
+
"distHash": "c8842db3cb39e90e96273c8e86699c046747b8244fe1bbe55132a3e23e20e37e"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"name": "@fps-games/plugin-materials",
|
|
101
|
-
"version": "0.2.0-beta.
|
|
102
|
-
"distHash": "
|
|
101
|
+
"version": "0.2.0-beta.4",
|
|
102
|
+
"distHash": "82203101b8cf31345e3cf70ffcc521b1ab3de7bdb94ef2750a7268e73511b8c3"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "@fps-games/plugin-rendering",
|
|
106
|
-
"version": "0.2.0-beta.
|
|
107
|
-
"distHash": "
|
|
106
|
+
"version": "0.2.0-beta.4",
|
|
107
|
+
"distHash": "28de2f9c65651328eb1d7e25eddb58cebed8619be94e675868a2ef62103464f8"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"name": "@fps-games/plugin-scene",
|
|
111
|
-
"version": "0.2.0-beta.
|
|
112
|
-
"distHash": "
|
|
111
|
+
"version": "0.2.0-beta.4",
|
|
112
|
+
"distHash": "b075093cfc667c696fc875edf25bc937d058f349e83c8fb751bf635529155ce8"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "@fps-games/plugin-shadows",
|
|
116
|
-
"version": "0.2.0-beta.
|
|
117
|
-
"distHash": "
|
|
116
|
+
"version": "0.2.0-beta.4",
|
|
117
|
+
"distHash": "02b20ab2e06a7454f0fc9ba0e006c08b0532145e2dc9f8f4fb5fd1c5d5f167e3"
|
|
118
118
|
}
|
|
119
119
|
]
|
|
120
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-plugin-agent-capabilities.js","sourceRoot":"","sources":["../src/editor-plugin-agent-capabilities.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,qCAAqC,CACnD,MAAyB,EACzB,UAA2C;IAE3C,IAAI,CAAC,UAAU;QAAE,OAAO,GAAG,EAAE,CAAC,SAAS,CAAC;IACxC,IAAI,UAAU,CAAC,KAAK,KAAK,SAAS,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC3F,CAAC;IACD,MAAM,QAAQ,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5E,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IACxF,MAAM,UAAU,GAAsB,EAAE,CAAC;IACzC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,UAAU,CAAC,CAAC;QAC3C,MAAM,GAAG,KAAK,CAAC;IACjB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,kCAAkC,CACzC,KAAc,EACd,YAAqB,EACrB,SAAiB;IAEjB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,2BAA2B,SAAS,sCAAsC,CAEjG,CAAC;IACF,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,8BAA8B,CAAC,UAAmC;IACzE,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;QAChD,IAAI,CAAC;YAAC,OAAO,EAAE,CAAC;QAAC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;IAC1D,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,yCAAyC,CAAkC,CAAC;QACpG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["import type { FpsEditorPluginHost } from '@fps-games/editor-core/plugin-host';\nimport type { EditorAgentBridge } from '@fps-games/editor-core';\n\nexport function registerEditorPluginAgentCapabilities(\n bridge: EditorAgentBridge,\n pluginHost: FpsEditorPluginHost | undefined,\n): () => void {\n if (!pluginHost) return () => undefined;\n if (pluginHost.state !== 'started' || pluginHost.transitioning) {\n throw new Error('Plugin Agent capabilities require an idle started Editor Plugin Host.');\n }\n const commands = pluginHost.listCommands().filter(command => command.agent);\n const existingIds = new Set(bridge.listCapabilities().map(capability => capability.id));\n const unregister: Array<() => void> = [];\n try {\n for (const command of commands) {\n const manifest = command.agent!;\n if (existingIds.has(manifest.id)) {\n throw new Error(`Plugin Agent capability conflicts with an existing capability: ${manifest.id}`);\n }\n existingIds.add(manifest.id);\n unregister.push(bridge.registerCapability({\n manifest,\n available: () => (\n pluginHost.state === 'started' && !pluginHost.transitioning\n ? true\n : `Editor Plugin Host is not available: ${pluginHost.state}`\n ),\n handler: input => pluginHost.executeCommand(command.command, input),\n }));\n }\n } catch (error) {\n try {\n disposePluginAgentCapabilities(unregister);\n } catch (cleanupError) {\n throw combinePluginAgentCapabilityErrors(error, cleanupError, 'registration');\n }\n throw error;\n }\n let active = true;\n return () => {\n if (!active) return;\n disposePluginAgentCapabilities(unregister);\n active = false;\n };\n}\n\nfunction combinePluginAgentCapabilityErrors(\n cause: unknown,\n cleanupError: unknown,\n operation: string,\n): Error {\n const error = new Error(`Plugin Agent capability ${operation} failed and cleanup reported errors.`) as Error & {\n errors: unknown[];\n };\n error.errors = [cause, cleanupError];\n return error;\n}\n\nfunction disposePluginAgentCapabilities(unregister: readonly (() => void)[]): void {\n const errors: unknown[] = [];\n for (const dispose of [...unregister].reverse()) {\n try { dispose(); } catch (error) { errors.push(error); }\n }\n if (errors.length > 0) {\n const error = new Error('Plugin Agent capability cleanup failed.') as Error & { errors: unknown[] };\n error.errors = errors;\n throw error;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-plugin-hierarchy-command.js","sourceRoot":"","sources":["../src/editor-plugin-hierarchy-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gDAAgD,EAChD,gDAAgD,GAEjD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,GAGzB,MAAM,oCAAoC,CAAC;AA6B5C,MAAM,UAAU,iCAAiC,CAC/C,OAAyB,EACzB,YAAsE,EACtE,OAE+F;IAE/F,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE,KAAK,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QAC/D,MAAM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AAK,CAAC,CAAC;IAC1B,CAAC;AACH,CAAC;AAED,SAAS,4BAA4B,CACnC,KAAc,EACd,SAAiB;IAEjB,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;QAC/F,OAAO,KAA8C,CAAC;IACxD,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,+DAA+D,SAAS,EAAE,CAAC,CAAC;AAC9F,CAAC","sourcesContent":["import {\n registerLocalEditorBrowserHierarchyContextAction,\n resolveLocalEditorBrowserHierarchyContextActions,\n type LocalEditorBrowserHierarchyContextActionRegistration,\n} from '@fps-games/editor-browser';\nimport {\n registerFpsEditorCommand,\n type FpsEditorCommandRegistration,\n type FpsEditorPluginHost,\n} from '@fps-games/editor-core/plugin-host';\nimport type { FpsPluginContext } from '@fps-games/plugin-api';\nimport type { FpsCommand } from '@fps-games/plugin-api';\nimport type { EditorAgentBridgeJsonObject } from '@fps-games/editor-protocol';\nimport type {\n LocalEditorHarnessHierarchyContextActionRegistration,\n LocalEditorHarnessPatchResult,\n} from './local-editor-harness.js';\n\nexport interface FpsEditorHierarchyCommandInput {\n readonly contextNodeId: string | null;\n readonly targetIds: readonly string[];\n readonly activeId: string | null;\n readonly payload?: EditorAgentBridgeJsonObject;\n}\n\nexport type FpsEditorHierarchyCommandResult<TPatch = unknown> =\n | boolean\n | void\n | LocalEditorHarnessPatchResult<TPatch>;\n\nexport interface FpsEditorHierarchyCommandRegistration<TDocument = unknown, TPatch = unknown> {\n readonly command: FpsEditorCommandRegistration<\n FpsEditorHierarchyCommandInput,\n FpsEditorHierarchyCommandResult<TPatch>\n >;\n readonly action: Omit<LocalEditorBrowserHierarchyContextActionRegistration<TDocument>, 'commandId'>;\n}\n\nexport function registerFpsEditorHierarchyCommand<TDocument, TPatch>(\n context: FpsPluginContext,\n registration: FpsEditorHierarchyCommandRegistration<TDocument, TPatch>,\n handler: (\n input: FpsEditorHierarchyCommandInput,\n ) => FpsEditorHierarchyCommandResult<TPatch> | Promise<FpsEditorHierarchyCommandResult<TPatch>>,\n): void {\n if (registration.action.id === registration.command.command.id) {\n throw new Error('Editor Hierarchy action id must differ from its command id.');\n }\n registerFpsEditorCommand(context, registration.command, handler);\n registerLocalEditorBrowserHierarchyContextAction(context, {\n ...registration.action,\n commandId: registration.command.command.id,\n });\n}\n\nexport function createLocalEditorHarnessPluginHierarchyContextActions<\n TDocument,\n TPatch,\n>(\n pluginHost: FpsEditorPluginHost | undefined,\n): readonly LocalEditorHarnessHierarchyContextActionRegistration<TDocument, TPatch>[] {\n if (!pluginHost) return [];\n if (pluginHost.state !== 'started' || pluginHost.transitioning) {\n throw new Error('Plugin Hierarchy actions require an idle started Editor Plugin Host.');\n }\n const commands = new Map(pluginHost.listCommands().map(command => [command.command.id, command.command]));\n return resolveLocalEditorBrowserHierarchyContextActions<TDocument>(pluginHost.contributions).map(action => {\n const commandId = action.commandId;\n if (!commandId) throw new Error(`Plugin Hierarchy action has no command: ${action.id}`);\n const command = commands.get(commandId) as FpsCommand<\n FpsEditorHierarchyCommandInput,\n FpsEditorHierarchyCommandResult<TPatch>\n > | undefined;\n if (!command) throw new Error(`Plugin Hierarchy action references an unknown command: ${action.id} -> ${commandId}`);\n return {\n id: action.id,\n label: action.label,\n shortcut: action.shortcut,\n danger: action.danger,\n placement: action.placement,\n separatorBefore: action.separatorBefore,\n children: action.children\n ? context => {\n const children = typeof action.children === 'function'\n ? action.children(context.browserContext)\n : action.children ?? [];\n return children.map(child => ({\n ...child,\n disabled: child.disabled ? () => child.disabled!(context.browserContext) : undefined,\n payload: child.payload ? () => child.payload!(context.browserContext) : undefined,\n }));\n }\n : undefined,\n visible: action.visible ? context => action.visible!(context.browserContext) : undefined,\n disabled: action.disabled ? context => action.disabled!(context.browserContext) : undefined,\n run: context => pluginHost.executeCommand(\n command,\n Object.freeze({\n contextNodeId: context.contextNodeId,\n targetIds: Object.freeze([...context.targetIds]),\n activeId: context.activeId,\n ...(context.payload ? { payload: cloneHierarchyCommandPayload(context.payload) } : {}),\n }),\n ).then(result => assertHierarchyCommandResult<TPatch>(result, commandId)),\n };\n });\n}\n\nfunction cloneHierarchyCommandPayload(value: Record<string, unknown>): EditorAgentBridgeJsonObject {\n return cloneHierarchyJsonValue(value, '$payload', new WeakSet()) as EditorAgentBridgeJsonObject;\n}\n\nfunction cloneHierarchyJsonValue(value: unknown, path: string, ancestors: WeakSet<object>): unknown {\n if (value === null || typeof value === 'string' || typeof value === 'boolean') return value;\n if (typeof value === 'number' && Number.isFinite(value)) return value;\n if (!value || typeof value !== 'object') {\n throw new Error(`Plugin Hierarchy payload must contain JSON values: ${path}`);\n }\n if (ancestors.has(value)) throw new Error(`Plugin Hierarchy payload must not contain cycles: ${path}`);\n const prototype = Object.getPrototypeOf(value);\n if (prototype !== Object.prototype && prototype !== null && !Array.isArray(value)) {\n throw new Error(`Plugin Hierarchy payload must contain plain objects: ${path}`);\n }\n ancestors.add(value);\n try {\n if (Array.isArray(value)) {\n const result: unknown[] = [];\n for (let index = 0; index < value.length; index += 1) {\n const descriptor = Object.getOwnPropertyDescriptor(value, String(index));\n if (!descriptor?.enumerable || !('value' in descriptor)) {\n throw new Error(`Plugin Hierarchy payload arrays must contain enumerable data fields: ${path}[${index}]`);\n }\n result.push(cloneHierarchyJsonValue(descriptor.value, `${path}[${index}]`, ancestors));\n }\n for (const key of Reflect.ownKeys(value)) {\n if (key === 'length') continue;\n if (typeof key !== 'string' || !/^(0|[1-9][0-9]*)$/.test(key) || Number(key) >= value.length) {\n throw new Error(`Plugin Hierarchy payload arrays contain unsupported properties: ${path}`);\n }\n }\n return Object.freeze(result);\n }\n const result: Record<string, unknown> = {};\n for (const key of Reflect.ownKeys(value)) {\n if (typeof key !== 'string' || key === '__proto__') {\n throw new Error(`Plugin Hierarchy payload contains an unsupported key: ${path}`);\n }\n const descriptor = Object.getOwnPropertyDescriptor(value, key);\n if (!descriptor?.enumerable || !('value' in descriptor)) {\n throw new Error(`Plugin Hierarchy payload must contain enumerable data fields: ${path}.${key}`);\n }\n result[key] = cloneHierarchyJsonValue(descriptor.value, `${path}.${key}`, ancestors);\n }\n return Object.freeze(result);\n } finally {\n ancestors.delete(value);\n }\n}\n\nfunction assertHierarchyCommandResult<TPatch>(\n value: unknown,\n commandId: string,\n): FpsEditorHierarchyCommandResult<TPatch> {\n if (value === undefined || typeof value === 'boolean') return value;\n if (value && typeof value === 'object' && Object.prototype.hasOwnProperty.call(value, 'patch')) {\n return value as LocalEditorHarnessPatchResult<TPatch>;\n }\n throw new Error(`Plugin Hierarchy command returned an invalid action result: ${commandId}`);\n}\n"]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kCAAkC,EAClC,iCAAiC,EACjC,oCAAoC,GACrC,MAAM,2BAA2B,CAAC;AAkBnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AAgCvC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,mCAAmC,EACnC,uCAAuC,EACvC,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAkB/B,OAAO,EACL,mCAAmC,EACnC,wCAAwC,GACzC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,uBAAuB,EACvB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,aAAa,GACd,MAAM,2BAA2B,CAAC;AAInC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,8CAA8C,EAC9C,wBAAwB,EACxB,qCAAqC,EACrC,qCAAqC,GACtC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0CAA0C,GAC3C,MAAM,2BAA2B,CAAC;AAwBnC,OAAO,EACL,kCAAkC,EAClC,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EACL,iCAAiC,GAClC,MAAM,sCAAsC,CAAC;AAO9C,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kCAAkC,EAClC,iCAAiC,EACjC,oCAAoC,GACrC,MAAM,2BAA2B,CAAC;AAkBnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AAgCvC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,mCAAmC,EACnC,uCAAuC,EACvC,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAkB/B,OAAO,EACL,mCAAmC,EACnC,wCAAwC,GACzC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,uBAAuB,EACvB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,aAAa,GACd,MAAM,2BAA2B,CAAC;AAInC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,8CAA8C,EAC9C,wBAAwB,EACxB,qCAAqC,EACrC,qCAAqC,GACtC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0CAA0C,GAC3C,MAAM,2BAA2B,CAAC;AAwBnC,OAAO,EACL,kCAAkC,EAClC,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EACL,iCAAiC,GAClC,MAAM,sCAAsC,CAAC;AAO9C,cAAc,sBAAsB,CAAC","sourcesContent":["export type {\n LocalEditorThemeController,\n LocalEditorThemeName,\n} from '@fps-games/editor-browser';\nexport {\n mountEditorRuntimeCameraDebugPanel,\n mountEditorRuntimeDebugPanelShell,\n mountEditorRuntimeLightingDebugPanel,\n} from '@fps-games/editor-browser';\nexport type {\n EditorRuntimeCameraDebugPanel,\n EditorRuntimeCameraDebugPanelOptions,\n EditorRuntimeCameraDebugPanInput,\n EditorRuntimeCameraDebugScreenPoint,\n EditorRuntimeCameraDebugViewportRect,\n EditorRuntimeDebugPanelLanguage,\n EditorRuntimeDebugPanelMode,\n EditorRuntimeDebugPanelPlacement,\n EditorRuntimeDebugPanelShell,\n EditorRuntimeDebugPanelShellOptions,\n EditorRuntimeDebugPanelStatusOptions,\n EditorRuntimeLightingDebugPanel,\n EditorRuntimeLightingDebugPanelOptions,\n} from '@fps-games/editor-browser';\nexport type { BabylonRuntimeGlobal } from '@fps-games/editor-babylon';\nexport type { DocumentAdapter } from '@fps-games/editor-core/document-adapter';\nexport { FPS_EDITOR_LIFECYCLE_CHANGED } from '@fps-games/editor-core/lifecycle';\nexport {\n FPS_EDITOR_ACTIVE_TOOL_CHANGED,\n FPS_EDITOR_DIAGNOSTIC_REPORTED,\n FPS_EDITOR_DOCUMENT_CHANGED,\n FPS_EDITOR_DOCUMENT_COMMITTED,\n FPS_EDITOR_DOCUMENT_SAVE_FAILED,\n FPS_EDITOR_HISTORY_CHANGED,\n FPS_EDITOR_PREVIEW_CHANGED,\n FPS_EDITOR_SCOPE_CLOSED,\n FPS_EDITOR_SCOPE_OPENED,\n FPS_EDITOR_SELECTION_CHANGED,\n} from '@fps-games/editor-core/events';\nexport type {\n FpsEditorActiveToolChangedEvent,\n FpsEditorDiagnosticReportedEvent,\n FpsEditorDocumentChangedEvent,\n FpsEditorDocumentCommittedEvent,\n FpsEditorDocumentSaveFailedEvent,\n FpsEditorEventContext,\n FpsEditorEventPublisher,\n FpsEditorHistoryChangedEvent,\n FpsEditorPreviewChangedEvent,\n FpsEditorScopeEvent,\n FpsEditorSelectionChangedEvent,\n} from '@fps-games/editor-core/events';\nexport type {\n FpsEditorApplicationLifecycleState,\n FpsEditorDocumentLifecycleState,\n FpsEditorLifecycleChangedEvent,\n FpsEditorLifecycleFailureEvent,\n FpsEditorLifecycleListener,\n FpsEditorLifecycleParticipant,\n FpsEditorLifecycleScopeSnapshot,\n FpsEditorLifecycleService,\n FpsEditorLifecycleSnapshot,\n FpsEditorLifecycleTransition,\n FpsEditorLifecycleTransitionContext,\n FpsEditorLifecycleTransitionEvent,\n FpsEditorLifecycleTransitionType,\n FpsEditorModeLifecycleState,\n FpsEditorPreviewLifecycleState,\n FpsEditorProjectLifecycleState,\n} from '@fps-games/editor-core/lifecycle';\nexport {\n defineFpsCommand,\n defineFpsEvent,\n defineFpsPluginEvent,\n defineFpsPluginEntry,\n defineFpsPluginManifest,\n defineFpsPluginReference,\n defineFpsServiceToken,\n getFpsPluginEventNamespace,\n resolveFpsPluginEnvironmentProvides,\n resolveFpsPluginEnvironmentRequirements,\n resolveFpsPluginEnvironmentScopes,\n} from '@fps-games/plugin-api';\nexport type {\n FpsPluginEnvironmentContract,\n FpsCommand,\n FpsDiagnostic,\n FpsDisposer,\n FpsEvent,\n FpsEventEnvelope,\n FpsPluginContext,\n FpsPluginEntry,\n FpsPluginEnvironment,\n FpsPluginEnvironmentModule,\n FpsPluginEnvironmentModuleEntry,\n FpsPluginManifest,\n FpsPluginReference,\n FpsPluginScope,\n FpsServiceToken,\n} from '@fps-games/plugin-api';\nexport {\n createFpsPluginEnvironmentLifecycle,\n createFpsPluginHostFromEnvironmentModule,\n} from '@fps-games/plugin-host';\nexport {\n babylonRendererPlugin,\n} from '@fps-games/babylon-renderer/config';\nexport {\n FPS_SCENE_PLUGIN_ID,\n scenePlugin,\n} from '@fps-games/plugin-scene';\nexport {\n FPS_ASSETS_PLUGIN_ID,\n assetsPlugin,\n} from '@fps-games/plugin-assets';\nexport {\n FPS_MATERIALS_PLUGIN_ID,\n materialsPlugin,\n} from '@fps-games/plugin-materials';\nexport {\n FPS_MARKERS_PLUGIN_ID,\n markersPlugin,\n} from '@fps-games/plugin-markers';\nexport {\n FPS_RENDERING_PLUGIN_ID,\n renderingPlugin,\n} from '@fps-games/plugin-rendering';\nexport {\n FPS_SHADOWS_PLUGIN_ID,\n shadowsPlugin,\n} from '@fps-games/plugin-shadows';\nexport type {\n FpsBabylonRendererPluginConfig,\n} from '@fps-games/babylon-renderer/config';\nexport {\n FPS_EDITOR_CONTRIBUTIONS,\n createFpsEditorPluginHost,\n createFpsEditorPluginHostFromEnvironmentModule,\n registerFpsEditorCommand,\n registerFpsEditorLifecycleParticipant,\n resolveFpsEditorLifecycleParticipants,\n} from '@fps-games/editor-core/plugin-host';\nexport {\n registerLocalEditorBrowserInspectorControl,\n} from '@fps-games/editor-browser';\nexport type {\n LocalEditorBrowserInspectorControlRegistration,\n LocalEditorBrowserInspectorControlRenderContext,\n LocalEditorBrowserInspectorControlRenderer,\n} from '@fps-games/editor-browser';\nexport type {\n FpsEditorPluginHost,\n FpsEditorPluginHostOptions,\n FpsEditorPluginEnvironmentModuleHostOptions,\n FpsEditorCommandRegistration,\n} from '@fps-games/editor-core/plugin-host';\nexport type {\n FpsPluginHostInspection,\n FpsPluginHostState,\n FpsPluginInspectionDiagnostic,\n FpsPluginInspection,\n FpsPluginLifecycleState,\n} from '@fps-games/plugin-host';\nexport type {\n EditorRuntime,\n EditorRuntimeChange,\n PersistentBinding,\n} from '@fps-games/editor-protocol';\nexport {\n EDITOR_AGENT_BRIDGE_SCHEMA_VERSION,\n EDITOR_COMMAND_NAME,\n EDITOR_EVENT_NAME,\n EDITOR_POST_MESSAGE,\n} from '@fps-games/editor-protocol';\nexport type {\n EditorAgentBridgeCapabilityManifest,\n EditorAgentBridgeJsonObject,\n} from '@fps-games/editor-protocol';\nexport {\n registerFpsEditorHierarchyCommand,\n} from './editor-plugin-hierarchy-command.js';\nexport type {\n FpsEditorHierarchyCommandInput,\n FpsEditorHierarchyCommandRegistration,\n FpsEditorHierarchyCommandResult,\n} from './editor-plugin-hierarchy-command.js';\n\nexport * from './authoring-apply.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-lifecycle-operations.js","sourceRoot":"","sources":["../../src/internal/local-editor-lifecycle-operations.ts"],"names":[],"mappings":"AA4BA,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAAiD,CAAC;AAEzF,MAAM,UAAU,6CAA6C,CAC3D,OAAe,EACf,UAAiD;IAEjD,mBAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,OAAe;IAEf,MAAM,UAAU,GAAG,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpD,IAAI,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACvF,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"local-editor-lifecycle-operations.js","sourceRoot":"","sources":["../../src/internal/local-editor-lifecycle-operations.ts"],"names":[],"mappings":"AA4BA,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAAiD,CAAC;AAEzF,MAAM,UAAU,6CAA6C,CAC3D,OAAe,EACf,UAAiD;IAEjD,mBAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,OAAe;IAEf,MAAM,UAAU,GAAG,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpD,IAAI,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACvF,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["import type {\n PlayableLocalEditorLifecycleController,\n PlayableLocalEditorLifecycleOperations,\n} from '@fps-games/editor-playable-sdk/internal/local-harness';\n\nexport type LocalEditorLifecycleControllerBinding = Pick<\n PlayableLocalEditorLifecycleController,\n | 'enterEditor'\n | 'saveScene'\n | 'saveAndRunGame'\n | 'discardAndRunGame'\n | 'prepareSaveAndRunGame'\n | 'prepareDiscardAndRunGame'\n> & Partial<Pick<\n PlayableLocalEditorLifecycleController,\n | 'lifecycle'\n | 'synchronizeDocumentState'\n | 'registerParticipant'\n | 'openScope'\n | 'addScopeResource'\n | 'closeScope'\n>>;\n\nexport interface LocalEditorHarnessLifecycleOperations\n extends PlayableLocalEditorLifecycleOperations {\n setLifecycleController(controller: LocalEditorLifecycleControllerBinding): void;\n}\n\nconst operationsByHarness = new WeakMap<object, LocalEditorHarnessLifecycleOperations>();\n\nexport function registerLocalEditorHarnessLifecycleOperations(\n harness: object,\n operations: LocalEditorHarnessLifecycleOperations,\n): void {\n operationsByHarness.set(harness, operations);\n}\n\nexport function getLocalEditorHarnessLifecycleOperations(\n harness: object,\n): LocalEditorHarnessLifecycleOperations {\n const operations = operationsByHarness.get(harness);\n if (!operations) throw new Error('Local editor lifecycle operations are unavailable.');\n return operations;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-agent-actions.d.ts","sourceRoot":"","sources":["../src/local-editor-agent-actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,4BAA4B,CAAC;AAiBpC,OAAO,KAAK,EAEV,oDAAoD,EACrD,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AAEnF,MAAM,WAAW,yCAAyC,CAAC,SAAS;IAClE,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,SAAS,OAAO,EAAE,CAAC;IACnC,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,4CAA4C,CAAC,SAAS;IACrE,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OCAL_EDITOR_AGENT_ACTION_ID = {
|
|
|
7
7
|
SEND_MARKER: 'agent.send-marker',
|
|
8
8
|
SEND_MARKER_GRAPH: 'agent.send-marker-graph',
|
|
9
9
|
};
|
|
10
|
+
function getSafeSceneAgentHierarchyItems(context) {
|
|
11
|
+
const projection = context.browserContext.state.hierarchyProjection;
|
|
12
|
+
return projection?.scopeKind === 'scene' ? [...projection.nodes] : [];
|
|
13
|
+
}
|
|
10
14
|
export function createLocalEditorAgentHierarchyContextActions(options) {
|
|
11
15
|
return [
|
|
12
16
|
{
|
|
@@ -22,7 +26,7 @@ export function createLocalEditorAgentHierarchyContextActions(options) {
|
|
|
22
26
|
const objectId = resolvePrimarySceneObjectId(context, options);
|
|
23
27
|
if (!objectId)
|
|
24
28
|
return false;
|
|
25
|
-
const hierarchyItems = context
|
|
29
|
+
const hierarchyItems = getSafeSceneAgentHierarchyItems(context);
|
|
26
30
|
const projectionNode = objectId === context.contextNodeId
|
|
27
31
|
? context.projectionNode
|
|
28
32
|
: options.getProjectionNode(context.document, objectId);
|
|
@@ -62,7 +66,7 @@ export function createLocalEditorAgentHierarchyContextActions(options) {
|
|
|
62
66
|
const targetIds = resolveSceneObjectSelectionIds(context, options);
|
|
63
67
|
if (targetIds.length === 0)
|
|
64
68
|
return false;
|
|
65
|
-
const hierarchyItems = context
|
|
69
|
+
const hierarchyItems = getSafeSceneAgentHierarchyItems(context);
|
|
66
70
|
const projectionNodes = createProjectionNodeMap(context.document, targetIds, options);
|
|
67
71
|
const agentContext = createLocalEditorSceneObjectSetAgentContext({
|
|
68
72
|
document: context.document,
|
|
@@ -95,7 +99,7 @@ export function createLocalEditorAgentHierarchyContextActions(options) {
|
|
|
95
99
|
const targetIds = resolveSceneObjectSelectionIds(context, options);
|
|
96
100
|
if (targetIds.length < 2)
|
|
97
101
|
return false;
|
|
98
|
-
const hierarchyItems = context
|
|
102
|
+
const hierarchyItems = getSafeSceneAgentHierarchyItems(context);
|
|
99
103
|
const projectionNodes = createProjectionNodeMap(context.document, targetIds, options);
|
|
100
104
|
const agentContext = createLocalEditorRegionBindingAgentContext({
|
|
101
105
|
document: context.document,
|
|
@@ -144,7 +148,7 @@ export function createLocalEditorAgentHierarchyContextActions(options) {
|
|
|
144
148
|
directRelations,
|
|
145
149
|
relatedMarkerIds: relatedIds.markerIds,
|
|
146
150
|
relatedObjectIds: relatedIds.objectIds,
|
|
147
|
-
hierarchyItems: context
|
|
151
|
+
hierarchyItems: getSafeSceneAgentHierarchyItems(context),
|
|
148
152
|
markerTypes: options.getMarkerTypeCatalog?.(context.document) ?? [],
|
|
149
153
|
relationTypes: options.getRelationTypeCatalog?.(context.document) ?? [],
|
|
150
154
|
source: options.source,
|
|
@@ -179,7 +183,7 @@ export function createLocalEditorAgentHierarchyContextActions(options) {
|
|
|
179
183
|
graph,
|
|
180
184
|
focusMarkerIds,
|
|
181
185
|
focusObjectIds,
|
|
182
|
-
hierarchyItems: context
|
|
186
|
+
hierarchyItems: getSafeSceneAgentHierarchyItems(context),
|
|
183
187
|
markerTypes: options.getMarkerTypeCatalog?.(context.document) ?? [],
|
|
184
188
|
relationTypes: options.getRelationTypeCatalog?.(context.document) ?? [],
|
|
185
189
|
source: options.source,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-agent-actions.js","sourceRoot":"","sources":["../src/local-editor-agent-actions.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,EACxC,2CAA2C,EAC3C,0CAA0C,EAC1C,iDAAiD,GAClD,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,wCAAwC,EACxC,yCAAyC,EACzC,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AA6CxC,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,WAAW,EAAE,mBAAmB;IAChC,cAAc,EAAE,sBAAsB;IACtC,wBAAwB,E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AAE,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;AACxB,CAAC;AAED,SAAS,kBAAkB,CAAC,MAA8C;IACxE,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtG,CAAC","sourcesContent":["import type {\n EditorAgentContext,\n EditorAgentContextSemantics,\n EditorAgentSource,\n SpatialMarkerGraph,\n SpatialMarkerTypeDefinition,\n SpatialRelationTypeDefinition,\n} from '@fps-games/editor-protocol';\nimport {\n createLocalEditorRegionBindingAgentContext,\n createLocalEditorSceneObjectAgentContext,\n createLocalEditorSceneObjectSetAgentContext,\n createLocalEditorSpatialMarkerAgentContext,\n createLocalEditorSpatialRelationGraphAgentContext,\n} from './local-editor-agent-context.js';\nimport {\n findSpatialMarkerById,\n getSpatialMarkerDirectRelations,\n getSpatialRelationRelatedIds,\n isMarkerGraphHierarchyRootRowId,\n readMarkerGraphHierarchyMarkerIdForGraph,\n readSpatialMarkerIdFromHierarchySelection,\n resolveSpatialMarkerGraph,\n} from './local-editor-marker-graph.js';\nimport type {\n LocalEditorHarnessHierarchyContextActionContext,\n LocalEditorHarnessHierarchyContextActionRegistration,\n} from './local-editor-harness.js';\nimport type { LocalEditorBrowserUiHierarchyItem } from '@fps-games/editor-browser';\n\nexport interface LocalEditorAgentSceneObjectSemanticsInput<TDocument> {\n document: TDocument;\n objectId: string;\n targetIds: string[];\n activeId: string | null;\n contextNodeId: string | null;\n hierarchyItem: unknown | null;\n hierarchyItems: readonly unknown[];\n projectionNode: unknown | null | undefined;\n}\n\nexport interface LocalEditorAgentSceneObjectSetSemanticsInput<TDocument> {\n document: TDocument;\n objectIds: string[];\n activeId: string | null;\n hierarchyItems: readonly unknown[];\n projectionNodes: Record<string, unknown | null | undefined>;\n}\n\nexport interface LocalEditorAgentRegionBindingSemanticsInput<TDocument>\n extends LocalEditorAgentSceneObjectSetSemanticsInput<TDocument> {\n relationshipType: 'selection-region';\n}\n\nexport interface LocalEditorAgentHierarchyActionOptions<TDocument> {\n sendContext(context: EditorAgentContext): void | boolean | Promise<unknown>;\n getHierarchyItems(document: TDocument): LocalEditorBrowserUiHierarchyItem[];\n getProjectionNode(document: TDocument, id: string): unknown | null | undefined;\n getMarkerGraph?(document: TDocument): SpatialMarkerGraph | null;\n getMarkerTypeCatalog?(document: TDocument): SpatialMarkerTypeDefinition[];\n getRelationTypeCatalog?(document: TDocument): SpatialRelationTypeDefinition[];\n describeSceneObject?(input: LocalEditorAgentSceneObjectSemanticsInput<TDocument>): EditorAgentContextSemantics | null | undefined;\n describeSceneObjectSet?(input: LocalEditorAgentSceneObjectSetSemanticsInput<TDocument>): EditorAgentContextSemantics | null | undefined;\n describeRegionBinding?(input: LocalEditorAgentRegionBindingSemanticsInput<TDocument>): EditorAgentContextSemantics | null | undefined;\n source?: Partial<EditorAgentSource>;\n reportError?(error: unknown): void;\n}\n\nexport const LOCAL_EDITOR_AGENT_ACTION_ID = {\n SEND_OBJECT: 'agent.send-object',\n SEND_SELECTION: 'agent.send-selection',\n SEND_SELECTION_AS_REGION: 'agent.send-selection-as-region',\n SEND_MARKER: 'agent.send-marker',\n SEND_MARKER_GRAPH: 'agent.send-marker-graph',\n} as const;\n\nfunction getSafeSceneAgentHierarchyItems<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n): LocalEditorBrowserUiHierarchyItem[] {\n const projection = context.browserContext.state.hierarchyProjection;\n return projection?.scopeKind === 'scene' ? [...projection.nodes] : [];\n}\n\nexport function createLocalEditorAgentHierarchyContextActions<TDocument>(\n options: LocalEditorAgentHierarchyActionOptions<TDocument>,\n): LocalEditorHarnessHierarchyContextActionRegistration<TDocument>[] {\n return [\n {\n id: LOCAL_EDITOR_AGENT_ACTION_ID.SEND_OBJECT,\n label: 'Send to Agent',\n placement: 'after-primary',\n separatorBefore: true,\n visible: context => context.contextNodeId !== null && resolvePrimarySceneObjectId(context, options) !== null,\n disabled(context) {\n return resolvePrimarySceneObjectId(context, options) ? false : 'Select a scene object to send to Agent.';\n },\n run(context) {\n const objectId = resolvePrimarySceneObjectId(context, options);\n if (!objectId) return false;\n const hierarchyItems = getSafeSceneAgentHierarchyItems(context);\n const projectionNode = objectId === context.contextNodeId\n ? context.projectionNode\n : options.getProjectionNode(context.document, objectId);\n const agentContext = createLocalEditorSceneObjectAgentContext({\n document: context.document,\n objectId,\n hierarchyItems,\n projectionNode,\n source: options.source,\n semantics: options.describeSceneObject?.({\n document: context.document,\n objectId,\n targetIds: context.targetIds,\n activeId: context.activeId,\n contextNodeId: context.contextNodeId,\n hierarchyItem: objectId === context.contextNodeId\n ? context.hierarchyItem\n : hierarchyItems.find(item => item.id === objectId) ?? null,\n hierarchyItems,\n projectionNode,\n }),\n });\n return sendAgentContext(agentContext, options);\n },\n },\n {\n id: LOCAL_EDITOR_AGENT_ACTION_ID.SEND_SELECTION,\n label: 'Send Selection to Agent',\n placement: 'after-primary',\n visible: context => resolveSceneObjectSelectionIds(context, options).length > 1,\n disabled(context) {\n return resolveSceneObjectSelectionIds(context, options).length > 1\n ? false\n : 'Select multiple scene objects to send selection to Agent.';\n },\n run(context) {\n const targetIds = resolveSceneObjectSelectionIds(context, options);\n if (targetIds.length === 0) return false;\n const hierarchyItems = getSafeSceneAgentHierarchyItems(context);\n const projectionNodes = createProjectionNodeMap(context.document, targetIds, options);\n const agentContext = createLocalEditorSceneObjectSetAgentContext({\n document: context.document,\n objectIds: targetIds,\n hierarchyItems,\n projectionNodes,\n source: options.source,\n semantics: options.describeSceneObjectSet?.({\n document: context.document,\n objectIds: targetIds,\n activeId: context.activeId,\n hierarchyItems,\n projectionNodes,\n }),\n });\n return sendAgentContext(agentContext, options);\n },\n },\n {\n id: LOCAL_EDITOR_AGENT_ACTION_ID.SEND_SELECTION_AS_REGION,\n label: 'Send Selection as Region',\n placement: 'after-primary',\n visible: context => resolveSceneObjectSelectionIds(context, options).length > 1,\n disabled(context) {\n return resolveSceneObjectSelectionIds(context, options).length > 1\n ? false\n : 'Select multiple scene objects to describe a region to Agent.';\n },\n run(context) {\n const targetIds = resolveSceneObjectSelectionIds(context, options);\n if (targetIds.length < 2) return false;\n const hierarchyItems = getSafeSceneAgentHierarchyItems(context);\n const projectionNodes = createProjectionNodeMap(context.document, targetIds, options);\n const agentContext = createLocalEditorRegionBindingAgentContext({\n document: context.document,\n objectIds: targetIds,\n hierarchyItems,\n projectionNodes,\n source: options.source,\n semantics: options.describeRegionBinding?.({\n document: context.document,\n objectIds: targetIds,\n activeId: context.activeId,\n hierarchyItems,\n projectionNodes,\n relationshipType: 'selection-region',\n }),\n });\n return sendAgentContext(agentContext, options);\n },\n },\n {\n id: LOCAL_EDITOR_AGENT_ACTION_ID.SEND_MARKER,\n label: 'Send Marker to Agent',\n placement: 'after-primary',\n visible: context => resolveContextMarkerId(context, options) !== null,\n disabled(context) {\n const resolved = resolveContextMarker(context, options);\n if (!resolved.marker) return 'Select a spatial marker to send to Agent.';\n if (resolved.marker.spatial.status !== 'resolved') {\n return resolved.marker.spatial.unresolvedReason\n ? `Marker spatial facts unresolved: ${resolved.marker.spatial.unresolvedReason}`\n : 'Marker spatial facts are unresolved.';\n }\n return false;\n },\n run(context) {\n const resolved = resolveContextMarker(context, options);\n if (!resolved.graph || !resolved.marker) return false;\n const directRelations = getSpatialMarkerDirectRelations(resolved.graph, resolved.marker.id);\n const relatedIds = getSpatialRelationRelatedIds(directRelations, resolved.marker.id);\n const agentContext = createLocalEditorSpatialMarkerAgentContext({\n document: context.document,\n marker: resolved.marker,\n graph: resolved.graph,\n directRelations,\n relatedMarkerIds: relatedIds.markerIds,\n relatedObjectIds: relatedIds.objectIds,\n hierarchyItems: getSafeSceneAgentHierarchyItems(context),\n markerTypes: options.getMarkerTypeCatalog?.(context.document) ?? [],\n relationTypes: options.getRelationTypeCatalog?.(context.document) ?? [],\n source: options.source,\n });\n return sendAgentContext(agentContext, options);\n },\n },\n {\n id: LOCAL_EDITOR_AGENT_ACTION_ID.SEND_MARKER_GRAPH,\n label: 'Send Marker Graph to Agent',\n placement: 'after-primary',\n visible: context => isMarkerGraphContext(context, options),\n disabled(context) {\n const graph = resolveContextMarkerGraph(context, options);\n if (!graph || graph.markers.length === 0) return 'No marker graph is available.';\n const unresolved = graph.markers.filter(marker => marker.spatial.status !== 'resolved');\n if (unresolved.length > 0) {\n const labels = unresolved.map(marker => marker.label || marker.id).join(', ');\n return `Marker graph has unresolved spatial facts: ${labels}.`;\n }\n return false;\n },\n run(context) {\n const graph = resolveContextMarkerGraph(context, options);\n if (!graph) return false;\n const focusMarkerIds = collectContextMarkerIds(context, options);\n const focusObjectIds = collectRelatedObjectIdsForMarkers(graph, focusMarkerIds);\n const agentContext = createLocalEditorSpatialRelationGraphAgentContext({\n document: context.document,\n graph,\n focusMarkerIds,\n focusObjectIds,\n hierarchyItems: getSafeSceneAgentHierarchyItems(context),\n markerTypes: options.getMarkerTypeCatalog?.(context.document) ?? [],\n relationTypes: options.getRelationTypeCatalog?.(context.document) ?? [],\n source: options.source,\n });\n return sendAgentContext(agentContext, options);\n },\n },\n ];\n}\n\nfunction resolvePrimarySceneObjectId<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getHierarchyItems' | 'getMarkerGraph'>,\n): string | null {\n const id = context.contextNodeId ?? context.activeId ?? context.targetIds[0] ?? null;\n if (!id) return null;\n const graph = options.getMarkerGraph?.(context.document) ?? null;\n if (!graph) return id;\n const hierarchyItems = options.getHierarchyItems(context.document);\n if (isMarkerGraphHierarchyRootRowId(graph, id, hierarchyItems)) return null;\n return readSpatialMarkerIdFromHierarchySelection(graph, id, hierarchyItems) ? null : id;\n}\n\nfunction resolveSceneObjectSelectionIds<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getHierarchyItems' | 'getMarkerGraph'>,\n): string[] {\n const ids = normalizeActionIds(context.targetIds);\n const graph = options.getMarkerGraph?.(context.document) ?? null;\n if (!graph) return ids;\n const hierarchyItems = options.getHierarchyItems(context.document);\n return ids.filter(id => (\n !isMarkerGraphHierarchyRootRowId(graph, id, hierarchyItems)\n && !readSpatialMarkerIdFromHierarchySelection(graph, id, hierarchyItems)\n ));\n}\n\nfunction createProjectionNodeMap<TDocument>(\n document: TDocument,\n objectIds: readonly string[],\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getProjectionNode'>,\n): Record<string, unknown | null | undefined> {\n const nodes: Record<string, unknown | null | undefined> = {};\n for (const objectId of objectIds) nodes[objectId] = options.getProjectionNode(document, objectId);\n return nodes;\n}\n\nfunction sendAgentContext<TDocument>(\n context: EditorAgentContext | null,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'sendContext' | 'reportError'>,\n): boolean {\n if (!context) return false;\n try {\n void Promise.resolve(options.sendContext(context)).catch(error => options.reportError?.(error));\n return true;\n } catch (error) {\n options.reportError?.(error);\n return false;\n }\n}\n\nfunction resolveContextMarkerId<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getHierarchyItems' | 'getMarkerGraph'>,\n): string | null {\n const graph = options.getMarkerGraph?.(context.document) ?? null;\n if (!graph) return null;\n const hierarchyItems = options.getHierarchyItems(context.document);\n const candidateIds = [\n context.contextNodeId,\n context.activeId,\n ...context.targetIds,\n ];\n for (const candidateId of candidateIds) {\n const markerId = readSpatialMarkerIdFromHierarchySelection(graph, candidateId, hierarchyItems);\n if (markerId) return markerId;\n }\n return null;\n}\n\nfunction resolveContextMarker<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getHierarchyItems' | 'getMarkerGraph'>,\n) {\n const graph = resolveContextMarkerGraph(context, options);\n const markerId = resolveContextMarkerId(context, options);\n return {\n graph,\n marker: graph && markerId ? findSpatialMarkerById(graph, markerId) : null,\n };\n}\n\nfunction resolveContextMarkerGraph<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getMarkerGraph'>,\n) {\n return resolveSpatialMarkerGraph(options.getMarkerGraph?.(context.document) ?? null);\n}\n\nfunction isMarkerGraphContext<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getHierarchyItems' | 'getMarkerGraph'>,\n): boolean {\n const graph = options.getMarkerGraph?.(context.document) ?? null;\n if (!graph || graph.markers.length === 0) return false;\n const hierarchyItems = options.getHierarchyItems(context.document);\n if (isMarkerGraphHierarchyRootRowId(graph, context.contextNodeId, hierarchyItems)) return true;\n return collectContextMarkerIds(context, options).length > 0;\n}\n\nfunction collectContextMarkerIds<TDocument>(\n context: LocalEditorHarnessHierarchyContextActionContext<TDocument>,\n options: Pick<LocalEditorAgentHierarchyActionOptions<TDocument>, 'getHierarchyItems' | 'getMarkerGraph'>,\n): string[] {\n const graph = options.getMarkerGraph?.(context.document) ?? null;\n if (!graph) return [];\n const hierarchyItems = options.getHierarchyItems(context.document);\n const markerIds = new Set<string>();\n for (const candidateId of [context.contextNodeId, context.activeId, ...context.targetIds]) {\n const markerId = readSpatialMarkerIdFromHierarchySelection(graph, candidateId, hierarchyItems);\n if (markerId) markerIds.add(markerId);\n }\n return [...markerIds];\n}\n\nfunction collectRelatedObjectIdsForMarkers(\n graph: { relations: SpatialMarkerGraph['relations'] },\n markerIds: readonly string[],\n): string[] {\n const objectIds = new Set<string>();\n for (const markerId of markerIds) {\n const relatedIds = getSpatialRelationRelatedIds(getSpatialMarkerDirectRelations(graph, markerId), markerId);\n for (const objectId of relatedIds.objectIds) objectIds.add(objectId);\n }\n return [...objectIds];\n}\n\nfunction normalizeActionIds(values: readonly (string | null | undefined)[]): string[] {\n return [...new Set(values.map(value => value?.trim()).filter((value): value is string => !!value))];\n}\n"]}
|