@fps-games/editor 0.1.5-beta.5 → 0.1.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-bridge/capabilities/assets.d.ts +8 -0
- package/dist/agent-bridge/capabilities/assets.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/assets.js +226 -0
- package/dist/agent-bridge/capabilities/assets.js.map +1 -0
- package/dist/agent-bridge/capabilities/editor-state.d.ts +5 -0
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/editor-state.js +72 -0
- package/dist/agent-bridge/capabilities/editor-state.js.map +1 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts +4 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.js +87 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.js.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts +5 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.js +735 -0
- package/dist/agent-bridge/capabilities/prefabs.js.map +1 -0
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +9 -0
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/scene-objects.js +394 -0
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -0
- package/dist/agent-bridge/capabilities/selection.d.ts +5 -0
- package/dist/agent-bridge/capabilities/selection.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/selection.js +57 -0
- package/dist/agent-bridge/capabilities/selection.js.map +1 -0
- package/dist/agent-bridge/capabilities/shadows.d.ts +5 -0
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/shadows.js +1876 -0
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -0
- package/dist/agent-bridge/capabilities/transform.d.ts +5 -0
- package/dist/agent-bridge/capabilities/transform.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/transform.js +162 -0
- package/dist/agent-bridge/capabilities/transform.js.map +1 -0
- package/dist/agent-bridge/capabilities/ui-regions.d.ts +4 -0
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/ui-regions.js +168 -0
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -0
- package/dist/agent-bridge/capabilities/viewport.d.ts +5 -0
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/viewport.js +407 -0
- package/dist/agent-bridge/capabilities/viewport.js.map +1 -0
- package/dist/agent-bridge/capability-sources.d.ts +6 -0
- package/dist/agent-bridge/capability-sources.d.ts.map +1 -0
- package/dist/agent-bridge/capability-sources.js +26 -0
- package/dist/agent-bridge/capability-sources.js.map +1 -0
- package/dist/agent-bridge/diagnostics.d.ts +12 -0
- package/dist/agent-bridge/diagnostics.d.ts.map +1 -0
- package/dist/agent-bridge/diagnostics.js +45 -0
- package/dist/agent-bridge/diagnostics.js.map +1 -0
- package/dist/agent-bridge/index.d.ts +5 -0
- package/dist/agent-bridge/index.d.ts.map +1 -0
- package/dist/agent-bridge/index.js +5 -0
- package/dist/agent-bridge/index.js.map +1 -0
- package/dist/agent-bridge/register.d.ts +4 -0
- package/dist/agent-bridge/register.d.ts.map +1 -0
- package/dist/agent-bridge/register.js +908 -0
- package/dist/agent-bridge/register.js.map +1 -0
- package/dist/agent-bridge/shared.d.ts +189 -0
- package/dist/agent-bridge/shared.d.ts.map +1 -0
- package/dist/agent-bridge/shared.js +39 -0
- package/dist/agent-bridge/shared.js.map +1 -0
- package/dist/agent-bridge/source-types.d.ts +90 -0
- package/dist/agent-bridge/source-types.d.ts.map +1 -0
- package/dist/agent-bridge/source-types.js +2 -0
- package/dist/agent-bridge/source-types.js.map +1 -0
- package/dist/build-info.json +17 -17
- package/dist/local-editor-agent-actions.d.ts +8 -1
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +171 -12
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-bridge-transport.d.ts +95 -0
- package/dist/local-editor-agent-bridge-transport.d.ts.map +1 -0
- package/dist/local-editor-agent-bridge-transport.js +340 -0
- package/dist/local-editor-agent-bridge-transport.js.map +1 -0
- package/dist/local-editor-agent-bridge.d.ts +2 -0
- package/dist/local-editor-agent-bridge.d.ts.map +1 -0
- package/dist/local-editor-agent-bridge.js +2 -0
- package/dist/local-editor-agent-bridge.js.map +1 -0
- package/dist/local-editor-agent-context.d.ts +29 -1
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +403 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +128 -6
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +2730 -151
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +92 -0
- package/dist/local-editor-marker-graph.d.ts.map +1 -0
- package/dist/local-editor-marker-graph.js +1432 -0
- package/dist/local-editor-marker-graph.js.map +1 -0
- package/dist/local-editor-performance-stats.js +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/playable-babylon-facade.d.ts +2 -2
- package/dist/playable-babylon-facade.d.ts.map +1 -1
- package/dist/playable-babylon-facade.js +1 -1
- package/dist/playable-babylon-facade.js.map +1 -1
- package/dist/playable-babylon-rendering.js +20 -0
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +57 -7
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +25 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-sdk.d.ts +4 -2
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +2 -1
- package/dist/playable-sdk.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.js +6 -4
- 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/planar-shadow-shaders.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.js +103 -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.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.js +330 -27
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js +159 -0
- 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-baker.js +8 -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/types.d.ts +53 -2
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +11 -0
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts +3 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js +114 -18
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.d.ts +52 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js +1395 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js +4 -65
- 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.d.ts +28 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +235 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +37 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +451 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +14 -3
- 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.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js +20 -4
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.d.ts +3 -6
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.js +4 -37
- 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.d.ts +74 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +641 -52
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +11 -0
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +113 -29
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +13 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +543 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.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 +8 -2
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +4 -0
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +23 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +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-hierarchy-actions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +76 -9
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +3 -2
- 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-command-adapter.d.ts +21 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +75 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +2 -0
- 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 +326 -72
- 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-scope.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +92 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +4 -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 +22 -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.d.ts +4 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +24 -11
- 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 +7 -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-panel-registry.js +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.d.ts +4 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +1471 -29
- 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-prefab-stage.d.ts +70 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +171 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +2 -2
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +9 -2
- 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-types.d.ts +301 -3
- 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-workbench.d.ts +12 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +13 -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 +6 -4
- 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 +1501 -122
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +3 -3
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts +18 -0
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js +102 -0
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts +3 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +1 -0
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js +89 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.d.ts +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.js +121 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +782 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +80 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +600 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.d.ts +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +17 -3
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +2 -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/types.d.ts +3 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +48 -20
- 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/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js +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/placement.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +2 -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/types.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +97 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +1143 -8
- 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/types.d.ts +145 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js +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/schema.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +24 -9
- 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/validators.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js +31 -0
- 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.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts +82 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +396 -22
- 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/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js +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/validation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js +0 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts +29 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js +143 -0
- 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/local-harness/lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +3 -7
- 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/material-binding/binding.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +6 -0
- 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/types.d.ts +2 -10
- 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/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +107 -11
- 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/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +4 -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/transform.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js +19 -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/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +19 -3
- 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/runtime-preview/assets.d.ts +1 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js +0 -14
- 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.d.ts +1 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js +3 -32
- 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/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +82 -63
- 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.d.ts +7 -23
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +996 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +152 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +44 -2
- 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/serialized-property/descriptors.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +244 -12
- 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/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +216 -67
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +7 -4
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js +45 -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/session/hierarchy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js +2 -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/shadow-system/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.d.ts +21 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.js +158 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.js +83 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.d.ts +35 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.js +363 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.d.ts +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js +44 -0
- 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/vite/asset-authoring.d.ts +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +3 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +1127 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +2180 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts +68 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js +23 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +57 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.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.d.ts +21 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.d.ts +128 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import { EDITOR_AGENT_BRIDGE_CAPABILITY_ID, } from '@fps-games/editor-protocol';
|
|
2
|
+
import { cloneVec3, createLocalEditorAgentBridgeFailure, isLocalEditorAgentBridgeVec3, } from '../diagnostics.js';
|
|
3
|
+
import { cloneAgentBridgeSelection, EMPTY_EDITOR_SELECTION, isAgentBridgeObjectSelectable, normalizeAgentBridgeIdList, normalizeAgentBridgeString, } from '../shared.js';
|
|
4
|
+
export function createLocalEditorAgentBridgeViewportSource(state, options, renderUi, operations) {
|
|
5
|
+
return {
|
|
6
|
+
focusObject(input) {
|
|
7
|
+
const objectId = typeof input?.objectId === 'string' ? input.objectId.trim() : '';
|
|
8
|
+
if (!objectId) {
|
|
9
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_FOCUS_OBJECT, 'viewport.focusObject requires objectId.', { code: 'viewport.invalidInput' });
|
|
10
|
+
}
|
|
11
|
+
const focused = operations.focusProjectionNode(objectId);
|
|
12
|
+
renderUi();
|
|
13
|
+
return { objectId, focused };
|
|
14
|
+
},
|
|
15
|
+
frameSelection() {
|
|
16
|
+
const focused = operations.focusSelectedProjection();
|
|
17
|
+
renderUi();
|
|
18
|
+
return {
|
|
19
|
+
focused,
|
|
20
|
+
selection: cloneAgentBridgeSelection(state.session?.getState({ cloneDocuments: false }).selection ?? EMPTY_EDITOR_SELECTION),
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
getCamera() {
|
|
24
|
+
return createAgentBridgeViewportCameraState(state);
|
|
25
|
+
},
|
|
26
|
+
setCameraPreset(input) {
|
|
27
|
+
return setAgentBridgeViewportCameraPreset(state, options, input, renderUi, operations);
|
|
28
|
+
},
|
|
29
|
+
orbitCamera(input) {
|
|
30
|
+
return orbitAgentBridgeViewportCamera(state, options, input, renderUi, operations);
|
|
31
|
+
},
|
|
32
|
+
getVisibilitySnapshot() {
|
|
33
|
+
return createAgentBridgeViewportVisibilitySnapshot(state);
|
|
34
|
+
},
|
|
35
|
+
setVisibility(input) {
|
|
36
|
+
const result = setAgentBridgeViewportVisibility(state, input);
|
|
37
|
+
if ('ok' in result && result.ok === false)
|
|
38
|
+
return result;
|
|
39
|
+
operations.requestSceneFrame('agent-viewport-visibility-set');
|
|
40
|
+
renderUi();
|
|
41
|
+
return result;
|
|
42
|
+
},
|
|
43
|
+
clearVisibility() {
|
|
44
|
+
const previousCount = Object.keys(state.previewVisibility.overrides).length;
|
|
45
|
+
const wasIsolated = state.previewVisibility.isolatedObjectIds.length > 0;
|
|
46
|
+
state.previewVisibility.overrides = {};
|
|
47
|
+
state.previewVisibility.isolatedObjectIds = [];
|
|
48
|
+
delete state.previewVisibility.protectedObjectIds;
|
|
49
|
+
delete state.previewVisibility.protectedReceiverIds;
|
|
50
|
+
delete state.previewVisibility.reason;
|
|
51
|
+
state.projection?.clearPreviewVisibilityOverrides?.();
|
|
52
|
+
operations.requestSceneFrame('agent-viewport-visibility-clear');
|
|
53
|
+
renderUi();
|
|
54
|
+
return {
|
|
55
|
+
changed: previousCount > 0 || wasIsolated,
|
|
56
|
+
snapshot: createAgentBridgeViewportVisibilitySnapshot(state),
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
enterIsolation(input) {
|
|
60
|
+
const result = enterAgentBridgeViewportIsolation(state, input);
|
|
61
|
+
if ('ok' in result && result.ok === false)
|
|
62
|
+
return result;
|
|
63
|
+
operations.requestSceneFrame('agent-viewport-isolation-enter');
|
|
64
|
+
renderUi();
|
|
65
|
+
return result;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function setAgentBridgeViewportVisibility(state, input) {
|
|
70
|
+
const ids = normalizeAgentBridgeIdList(Array.isArray(input.objectIds) ? input.objectIds : []);
|
|
71
|
+
if (ids.length === 0) {
|
|
72
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_VISIBILITY_SET, 'viewport.visibility.set requires at least one objectId.', { code: 'viewport.visibility.invalidInput' });
|
|
73
|
+
}
|
|
74
|
+
if (typeof input.visible !== 'boolean') {
|
|
75
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_VISIBILITY_SET, 'viewport.visibility.set requires visible to be boolean.', { code: 'viewport.visibility.invalidInput' });
|
|
76
|
+
}
|
|
77
|
+
const previous = JSON.stringify(state.previewVisibility.overrides);
|
|
78
|
+
const nextOverrides = { ...state.previewVisibility.overrides };
|
|
79
|
+
const protectedIds = new Set([
|
|
80
|
+
...(state.previewVisibility.protectedObjectIds ?? []),
|
|
81
|
+
...(state.previewVisibility.protectedReceiverIds ?? []),
|
|
82
|
+
]);
|
|
83
|
+
const blockedIds = [];
|
|
84
|
+
for (const id of ids) {
|
|
85
|
+
if (input.visible === false && protectedIds.has(id)) {
|
|
86
|
+
nextOverrides[id] = true;
|
|
87
|
+
blockedIds.push(id);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
nextOverrides[id] = input.visible;
|
|
91
|
+
}
|
|
92
|
+
state.previewVisibility.overrides = nextOverrides;
|
|
93
|
+
if (blockedIds.length === 0) {
|
|
94
|
+
state.previewVisibility.isolatedObjectIds = [];
|
|
95
|
+
}
|
|
96
|
+
state.previewVisibility.reason = normalizeAgentBridgeString(input.reason) || undefined;
|
|
97
|
+
const appliedOverrides = Object.fromEntries(ids.map(id => [id, nextOverrides[id] ?? input.visible]));
|
|
98
|
+
const entries = state.projection?.setPreviewVisibilityOverrides?.(appliedOverrides) ?? [];
|
|
99
|
+
const diagnostics = blockedIds.length > 0
|
|
100
|
+
? [{
|
|
101
|
+
code: 'shadow.receiverProtectedInDebugContext',
|
|
102
|
+
message: 'One or more objects are protected by the active Shadow Debug Context and were kept visible. Clear shadow.debug.context before hiding protected receivers.',
|
|
103
|
+
source: 'editor',
|
|
104
|
+
severity: 'warning',
|
|
105
|
+
details: { objectIds: blockedIds },
|
|
106
|
+
}]
|
|
107
|
+
: undefined;
|
|
108
|
+
return {
|
|
109
|
+
changed: previous !== JSON.stringify(state.previewVisibility.overrides),
|
|
110
|
+
snapshot: createAgentBridgeViewportVisibilitySnapshot(state, entries, diagnostics),
|
|
111
|
+
...(diagnostics ? { diagnostics } : {}),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function enterAgentBridgeViewportIsolation(state, input) {
|
|
115
|
+
const targetIds = normalizeAgentBridgeIdList(Array.isArray(input.objectIds) ? input.objectIds : []);
|
|
116
|
+
if (targetIds.length === 0) {
|
|
117
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_ISOLATION_ENTER, 'viewport.isolation.enter requires at least one objectId.', { code: 'viewport.isolation.invalidInput' });
|
|
118
|
+
}
|
|
119
|
+
const objectIds = createAgentBridgeViewportObjectIds(state);
|
|
120
|
+
if (objectIds.length === 0) {
|
|
121
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_ISOLATION_ENTER, 'Viewport projection is unavailable or has no visible objects to isolate.', { code: 'viewport.projectionUnavailable' });
|
|
122
|
+
}
|
|
123
|
+
const keep = new Set(targetIds);
|
|
124
|
+
for (const targetId of targetIds) {
|
|
125
|
+
for (const parentId of state.projection?.getProjectionParentIds?.(targetId) ?? []) {
|
|
126
|
+
keep.add(parentId);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const nextOverrides = {};
|
|
130
|
+
for (const id of objectIds)
|
|
131
|
+
nextOverrides[id] = keep.has(id);
|
|
132
|
+
const previous = JSON.stringify(state.previewVisibility);
|
|
133
|
+
state.previewVisibility.overrides = nextOverrides;
|
|
134
|
+
state.previewVisibility.isolatedObjectIds = [...keep];
|
|
135
|
+
delete state.previewVisibility.protectedObjectIds;
|
|
136
|
+
delete state.previewVisibility.protectedReceiverIds;
|
|
137
|
+
state.previewVisibility.reason = normalizeAgentBridgeString(input.reason) || undefined;
|
|
138
|
+
state.projection?.clearPreviewVisibilityOverrides?.();
|
|
139
|
+
const entries = state.projection?.setPreviewVisibilityOverrides?.(nextOverrides) ?? [];
|
|
140
|
+
const diagnostics = input.includeShadowDependencies
|
|
141
|
+
? [{
|
|
142
|
+
code: 'viewport.isolation.shadowDependenciesPending',
|
|
143
|
+
message: 'Shadow dependency expansion will be resolved by shadow debug capabilities; this isolation kept the requested objectIds and required transform ancestors.',
|
|
144
|
+
source: 'editor',
|
|
145
|
+
severity: 'info',
|
|
146
|
+
}]
|
|
147
|
+
: undefined;
|
|
148
|
+
return {
|
|
149
|
+
changed: previous !== JSON.stringify(state.previewVisibility),
|
|
150
|
+
snapshot: createAgentBridgeViewportVisibilitySnapshot(state, entries, diagnostics),
|
|
151
|
+
...(diagnostics ? { diagnostics } : {}),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function createAgentBridgeViewportVisibilitySnapshot(state, entries, diagnostics) {
|
|
155
|
+
const projectionEntries = entries ?? state.projection?.getPreviewVisibilityOverrides?.() ?? [];
|
|
156
|
+
const entryById = new Map(projectionEntries.map(entry => [entry.nodeId, entry]));
|
|
157
|
+
const objectIds = new Set([
|
|
158
|
+
...Object.keys(state.previewVisibility.overrides),
|
|
159
|
+
...projectionEntries.map(entry => entry.nodeId),
|
|
160
|
+
...state.previewVisibility.isolatedObjectIds,
|
|
161
|
+
]);
|
|
162
|
+
const isolatedIds = new Set(state.previewVisibility.isolatedObjectIds);
|
|
163
|
+
const normalizedEntries = [...objectIds].sort().map((objectId) => {
|
|
164
|
+
const projectionEntry = entryById.get(objectId);
|
|
165
|
+
const overrideVisible = state.previewVisibility.overrides[objectId];
|
|
166
|
+
const authoredVisible = projectionEntry?.authoredActive ?? true;
|
|
167
|
+
return {
|
|
168
|
+
objectId,
|
|
169
|
+
authoredVisible,
|
|
170
|
+
previewVisible: projectionEntry?.effectiveVisible ?? (authoredVisible && overrideVisible !== false),
|
|
171
|
+
...(typeof overrideVisible === 'boolean' ? { overrideVisible } : {}),
|
|
172
|
+
isolated: isolatedIds.has(objectId),
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
return {
|
|
176
|
+
isolated: isolatedIds.size > 0,
|
|
177
|
+
isolatedObjectIds: [...isolatedIds],
|
|
178
|
+
entries: normalizedEntries,
|
|
179
|
+
...(state.previewVisibility.reason ? { reason: state.previewVisibility.reason } : {}),
|
|
180
|
+
...(diagnostics?.length ? { diagnostics } : {}),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function createAgentBridgeViewportObjectIds(state) {
|
|
184
|
+
const fromOverrides = Object.keys(state.previewVisibility.overrides);
|
|
185
|
+
const fromProjectedNodes = state.projection?.getProjectedNodeIds?.() ?? [];
|
|
186
|
+
const fromProjection = state.projection?.getPreviewVisibilityOverrides?.().map(entry => entry.nodeId) ?? [];
|
|
187
|
+
const sessionIds = state.session?.getState({ cloneDocuments: false }).selection.selectedIds ?? [];
|
|
188
|
+
const ids = new Set([...fromProjectedNodes, ...fromOverrides, ...fromProjection, ...sessionIds]);
|
|
189
|
+
if (ids.size > 0)
|
|
190
|
+
return [...ids];
|
|
191
|
+
return [];
|
|
192
|
+
}
|
|
193
|
+
function createAgentBridgeViewportCameraState(state) {
|
|
194
|
+
const cameraState = state.sceneViewCamera?.getState();
|
|
195
|
+
const selection = state.session?.getState({ cloneDocuments: false }).selection ?? EMPTY_EDITOR_SELECTION;
|
|
196
|
+
const alpha = cameraState?.alpha;
|
|
197
|
+
const beta = cameraState?.beta;
|
|
198
|
+
const radius = cameraState?.radius;
|
|
199
|
+
return {
|
|
200
|
+
viewPreset: (cameraState?.viewPreset ?? state.viewportTools.viewPreset),
|
|
201
|
+
projectionMode: cameraState?.projectionMode ?? state.viewportTools.projectionMode,
|
|
202
|
+
...(cameraState?.target ? { target: cloneVec3(cameraState.target) } : {}),
|
|
203
|
+
...(cameraState?.position ? { position: cloneVec3(cameraState.position) } : {}),
|
|
204
|
+
...(typeof alpha === 'number' && Number.isFinite(alpha) ? { alpha } : {}),
|
|
205
|
+
...(typeof beta === 'number' && Number.isFinite(beta) ? { beta } : {}),
|
|
206
|
+
...(typeof radius === 'number' && Number.isFinite(radius) ? { radius } : {}),
|
|
207
|
+
selection: cloneAgentBridgeSelection(selection),
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function setAgentBridgeViewportCameraPreset(state, options, input, renderUi, operations) {
|
|
211
|
+
if (state.mode !== 'editor' || !state.session) {
|
|
212
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_SET_PRESET, 'Editor is not in edit mode.', { code: 'editor.notReady' });
|
|
213
|
+
}
|
|
214
|
+
if (state.sceneCameraPreviewEnabled) {
|
|
215
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_SET_PRESET, 'Viewport camera presets are unavailable during Scene Camera preview.', { code: 'viewport.camera.previewActive' });
|
|
216
|
+
}
|
|
217
|
+
if (!state.sceneViewCamera) {
|
|
218
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_SET_PRESET, 'Viewport camera is unavailable.', { code: 'viewport.camera.unavailable' });
|
|
219
|
+
}
|
|
220
|
+
const target = resolveAgentBridgeViewportCameraTarget(state, options, input.target, EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_SET_PRESET);
|
|
221
|
+
if (!target.ok)
|
|
222
|
+
return target.result;
|
|
223
|
+
const preset = normalizeAgentBridgeViewportCameraPreset(input.preset);
|
|
224
|
+
if (!preset) {
|
|
225
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_SET_PRESET, 'viewport.camera.setPreset requires a supported preset.', { code: 'viewport.camera.invalidPreset' });
|
|
226
|
+
}
|
|
227
|
+
const radius = normalizeAgentBridgePositiveNumber(input.radius, null);
|
|
228
|
+
const distanceScale = normalizeAgentBridgePositiveNumber(input.distanceScale, 1);
|
|
229
|
+
const baseRadius = target.radius ?? createAgentBridgeViewportCameraState(state).radius ?? undefined;
|
|
230
|
+
const scaledRadius = baseRadius && distanceScale ? baseRadius * distanceScale : baseRadius;
|
|
231
|
+
const changed = state.sceneViewCamera.setViewPreset(preset, {
|
|
232
|
+
target: target.target,
|
|
233
|
+
radius: radius ?? scaledRadius,
|
|
234
|
+
});
|
|
235
|
+
operations.syncViewportCameraState();
|
|
236
|
+
state.status = `Viewport camera: ${preset}`;
|
|
237
|
+
state.statusTone = 'default';
|
|
238
|
+
state.statusToneStatus = state.status;
|
|
239
|
+
state.statusDetails = '';
|
|
240
|
+
if (changed)
|
|
241
|
+
operations.requestSceneFrame('agent-viewport-camera-set-preset');
|
|
242
|
+
renderUi();
|
|
243
|
+
return createAgentBridgeViewportCameraMutationOutput(state, changed);
|
|
244
|
+
}
|
|
245
|
+
function orbitAgentBridgeViewportCamera(state, options, input, renderUi, operations) {
|
|
246
|
+
if (state.mode !== 'editor' || !state.session) {
|
|
247
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_ORBIT, 'Editor is not in edit mode.', { code: 'editor.notReady' });
|
|
248
|
+
}
|
|
249
|
+
if (state.sceneCameraPreviewEnabled) {
|
|
250
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_ORBIT, 'Viewport camera orbit is unavailable during Scene Camera preview.', { code: 'viewport.camera.previewActive' });
|
|
251
|
+
}
|
|
252
|
+
if (!state.sceneViewCamera) {
|
|
253
|
+
return createLocalEditorAgentBridgeFailure(EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_ORBIT, 'Viewport camera is unavailable.', { code: 'viewport.camera.unavailable' });
|
|
254
|
+
}
|
|
255
|
+
const target = resolveAgentBridgeViewportCameraTarget(state, options, input.target, EDITOR_AGENT_BRIDGE_CAPABILITY_ID.VIEWPORT_CAMERA_ORBIT);
|
|
256
|
+
if (!target.ok)
|
|
257
|
+
return target.result;
|
|
258
|
+
const changed = state.sceneViewCamera.orbit({
|
|
259
|
+
target: target.target ?? undefined,
|
|
260
|
+
yawDeltaDeg: normalizeAgentBridgeFiniteNumber(input.yawDeltaDeg, 0),
|
|
261
|
+
pitchDeltaDeg: normalizeAgentBridgeFiniteNumber(input.pitchDeltaDeg, 0),
|
|
262
|
+
distanceScale: normalizeAgentBridgePositiveNumber(input.distanceScale, 1) ?? undefined,
|
|
263
|
+
});
|
|
264
|
+
operations.syncViewportCameraState();
|
|
265
|
+
state.status = 'Viewport camera: orbit';
|
|
266
|
+
state.statusTone = 'default';
|
|
267
|
+
state.statusToneStatus = state.status;
|
|
268
|
+
state.statusDetails = '';
|
|
269
|
+
if (changed)
|
|
270
|
+
operations.requestSceneFrame('agent-viewport-camera-orbit');
|
|
271
|
+
renderUi();
|
|
272
|
+
return createAgentBridgeViewportCameraMutationOutput(state, changed);
|
|
273
|
+
}
|
|
274
|
+
function createAgentBridgeViewportCameraMutationOutput(state, changed) {
|
|
275
|
+
const cameraState = createAgentBridgeViewportCameraState(state);
|
|
276
|
+
return {
|
|
277
|
+
changed,
|
|
278
|
+
viewPreset: cameraState.viewPreset,
|
|
279
|
+
projectionMode: cameraState.projectionMode,
|
|
280
|
+
...(cameraState.target ? { target: cameraState.target } : {}),
|
|
281
|
+
...(cameraState.radius !== undefined ? { radius: cameraState.radius } : {}),
|
|
282
|
+
selection: cameraState.selection,
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
function resolveAgentBridgeViewportCameraTarget(state, options, input, capabilityId) {
|
|
286
|
+
const target = input ?? createDefaultAgentBridgeViewportCameraTarget(state);
|
|
287
|
+
if (target.kind === 'point') {
|
|
288
|
+
if (!isLocalEditorAgentBridgeVec3(target.point)) {
|
|
289
|
+
return {
|
|
290
|
+
ok: false,
|
|
291
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, 'Camera point target requires a finite Vec3 point.', { code: 'viewport.camera.invalidTarget' }),
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
return { ok: true, target: cloneVec3(target.point) };
|
|
295
|
+
}
|
|
296
|
+
if (target.kind === 'scene')
|
|
297
|
+
return resolveAgentBridgeSceneCameraTarget(state, options);
|
|
298
|
+
if (target.kind === 'selection')
|
|
299
|
+
return resolveAgentBridgeSelectionCameraTarget(state, capabilityId);
|
|
300
|
+
if (target.kind === 'object') {
|
|
301
|
+
const objectId = normalizeAgentBridgeString(target.objectId);
|
|
302
|
+
if (!objectId) {
|
|
303
|
+
return {
|
|
304
|
+
ok: false,
|
|
305
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, 'Camera object target requires objectId.', { code: 'viewport.camera.invalidTarget' }),
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;
|
|
309
|
+
if (!document || !isAgentBridgeObjectSelectable(options, document, objectId, options.documentAdapter.getHierarchyItems(document))) {
|
|
310
|
+
return {
|
|
311
|
+
ok: false,
|
|
312
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, `Camera target object was not found: ${objectId}`, { code: 'viewport.camera.targetNotFound', objectId }),
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
return resolveAgentBridgeObjectCameraTarget(state, objectId, capabilityId);
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
ok: false,
|
|
319
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, 'Unsupported camera target.', { code: 'viewport.camera.invalidTarget' }),
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
function createDefaultAgentBridgeViewportCameraTarget(state) {
|
|
323
|
+
const selection = state.session?.getState({ cloneDocuments: false }).selection ?? EMPTY_EDITOR_SELECTION;
|
|
324
|
+
return selection.activeId ? { kind: 'selection' } : { kind: 'scene' };
|
|
325
|
+
}
|
|
326
|
+
function resolveAgentBridgeSelectionCameraTarget(state, capabilityId) {
|
|
327
|
+
const selection = state.session?.getState({ cloneDocuments: false }).selection ?? EMPTY_EDITOR_SELECTION;
|
|
328
|
+
const selectedIds = selection.selectedIds.length > 0
|
|
329
|
+
? selection.selectedIds
|
|
330
|
+
: selection.activeId ? [selection.activeId] : [];
|
|
331
|
+
if (selectedIds.length === 0) {
|
|
332
|
+
return {
|
|
333
|
+
ok: false,
|
|
334
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, 'Camera target selection is empty.', { code: 'viewport.camera.emptySelection' }),
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
const bounds = state.projection?.getSelectionBounds(selectedIds) ?? null;
|
|
338
|
+
if (!bounds) {
|
|
339
|
+
return {
|
|
340
|
+
ok: false,
|
|
341
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, 'Camera target selection has no projection bounds.', { code: 'viewport.camera.missingBounds', objectId: selection.activeId ?? undefined }),
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
return {
|
|
345
|
+
ok: true,
|
|
346
|
+
target: cloneVec3(bounds.center),
|
|
347
|
+
radius: createAgentBridgeCameraRadiusFromBounds(bounds),
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function resolveAgentBridgeSceneCameraTarget(state, options) {
|
|
351
|
+
const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;
|
|
352
|
+
if (!document)
|
|
353
|
+
return { ok: true, target: null };
|
|
354
|
+
const hierarchy = options.documentAdapter.getHierarchyItems(document);
|
|
355
|
+
const objectIds = hierarchy
|
|
356
|
+
.map(item => item.id)
|
|
357
|
+
.filter(objectId => isAgentBridgeObjectSelectable(options, document, objectId, hierarchy));
|
|
358
|
+
if (objectIds.length === 0)
|
|
359
|
+
return { ok: true, target: null };
|
|
360
|
+
const bounds = state.projection?.getSelectionBounds(objectIds) ?? null;
|
|
361
|
+
if (!bounds)
|
|
362
|
+
return { ok: true, target: null };
|
|
363
|
+
return {
|
|
364
|
+
ok: true,
|
|
365
|
+
target: cloneVec3(bounds.center),
|
|
366
|
+
radius: createAgentBridgeCameraRadiusFromBounds(bounds),
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function resolveAgentBridgeObjectCameraTarget(state, objectId, capabilityId) {
|
|
370
|
+
const bounds = state.projection?.getSelectionBounds([objectId]) ?? null;
|
|
371
|
+
if (!bounds) {
|
|
372
|
+
return {
|
|
373
|
+
ok: false,
|
|
374
|
+
result: createLocalEditorAgentBridgeFailure(capabilityId, `Camera target object has no projection bounds: ${objectId}`, { code: 'viewport.camera.missingBounds', objectId }),
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
ok: true,
|
|
379
|
+
target: cloneVec3(bounds.center),
|
|
380
|
+
radius: createAgentBridgeCameraRadiusFromBounds(bounds),
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
function createAgentBridgeCameraRadiusFromBounds(bounds) {
|
|
384
|
+
const radius = Math.hypot(bounds.size.x, bounds.size.y, bounds.size.z);
|
|
385
|
+
return Number.isFinite(radius) && radius > 0 ? Math.max(radius * 1.5, 2) : undefined;
|
|
386
|
+
}
|
|
387
|
+
function normalizeAgentBridgeViewportCameraPreset(value) {
|
|
388
|
+
const preset = value === 'perspective'
|
|
389
|
+
|| value === 'top'
|
|
390
|
+
|| value === 'bottom'
|
|
391
|
+
|| value === 'front'
|
|
392
|
+
|| value === 'back'
|
|
393
|
+
|| value === 'left'
|
|
394
|
+
|| value === 'right'
|
|
395
|
+
|| value === 'iso'
|
|
396
|
+
|| value === 'threeQuarterTop'
|
|
397
|
+
? value
|
|
398
|
+
: null;
|
|
399
|
+
return preset;
|
|
400
|
+
}
|
|
401
|
+
function normalizeAgentBridgeFiniteNumber(value, fallback) {
|
|
402
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
|
|
403
|
+
}
|
|
404
|
+
function normalizeAgentBridgePositiveNumber(value, fallback) {
|
|
405
|
+
return typeof value === 'number' && Number.isFinite(value) && value > 0 ? value : fallback;
|
|
406
|
+
}
|
|
407
|
+
//# sourceMappingURL=viewport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/viewport.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iCAAiC,GAclC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,SAAS,EACT,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,GAI3B,MAAM,WAAW,CAAC;AAGnB,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;IACjF,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC7F,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LocalEditorHarnessOptions } from '../local-editor-harness';
|
|
2
|
+
import type { LocalEditorAgentBridgeCapabilitySources } from './source-types';
|
|
3
|
+
import type { LocalEditorAgentBridgeCapabilitySourceOperations, LocalEditorAgentBridgeHarnessState } from './shared';
|
|
4
|
+
export * from './shared';
|
|
5
|
+
export declare function createLocalEditorAgentBridgeCapabilitySources<TDocument, TPatch, TAsset>(state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>, options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>, renderUi: () => void, enterEditor: () => Promise<void>, operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>): LocalEditorAgentBridgeCapabilitySources;
|
|
6
|
+
//# sourceMappingURL=capability-sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-sources.d.ts","sourceRoot":"","sources":["../../src/agent-bridge/capability-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAWzE,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EACV,gDAAgD,EAChD,kCAAkC,EACnC,MAAM,UAAU,CAAC;AAElB,cAAc,UAAU,CAAC;AAEzB,wBAAgB,6CAA6C,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EACrF,KAAK,EAAE,kCAAkC,CAAC,SAAS,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7D,QAAQ,EAAE,MAAM,IAAI,EACpB,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAChC,UAAU,EAAE,gDAAgD,CAAC,SAAS,CAAC,GACtE,uCAAuC,CAazC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createLocalEditorAgentBridgeAssetSource } from './capabilities/assets.js';
|
|
2
|
+
import { createLocalEditorAgentBridgeStateSource } from './capabilities/editor-state.js';
|
|
3
|
+
import { createLocalEditorAgentBridgeHostSource } from './capabilities/host-lifecycle.js';
|
|
4
|
+
import { createLocalEditorAgentBridgePrefabSource } from './capabilities/prefabs.js';
|
|
5
|
+
import { createLocalEditorAgentBridgeObjectSource } from './capabilities/scene-objects.js';
|
|
6
|
+
import { createLocalEditorAgentBridgeSelectionSource } from './capabilities/selection.js';
|
|
7
|
+
import { createLocalEditorAgentBridgeShadowSource } from './capabilities/shadows.js';
|
|
8
|
+
import { createLocalEditorAgentBridgeTransformSource } from './capabilities/transform.js';
|
|
9
|
+
import { createLocalEditorAgentBridgeUiSource } from './capabilities/ui-regions.js';
|
|
10
|
+
import { createLocalEditorAgentBridgeViewportSource } from './capabilities/viewport.js';
|
|
11
|
+
export * from './shared.js';
|
|
12
|
+
export function createLocalEditorAgentBridgeCapabilitySources(state, options, renderUi, enterEditor, operations) {
|
|
13
|
+
return {
|
|
14
|
+
assets: createLocalEditorAgentBridgeAssetSource(state, options),
|
|
15
|
+
host: createLocalEditorAgentBridgeHostSource(state, enterEditor),
|
|
16
|
+
objects: createLocalEditorAgentBridgeObjectSource(state, options, renderUi, operations),
|
|
17
|
+
prefabs: createLocalEditorAgentBridgePrefabSource(state, options, renderUi, operations),
|
|
18
|
+
selection: createLocalEditorAgentBridgeSelectionSource(state, options, operations),
|
|
19
|
+
shadows: createLocalEditorAgentBridgeShadowSource(state, options, renderUi, operations),
|
|
20
|
+
transform: createLocalEditorAgentBridgeTransformSource(state, options, renderUi, operations),
|
|
21
|
+
viewport: createLocalEditorAgentBridgeViewportSource(state, options, renderUi, operations),
|
|
22
|
+
state: createLocalEditorAgentBridgeStateSource(state, options, operations),
|
|
23
|
+
ui: createLocalEditorAgentBridgeUiSource(state),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=capability-sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-sources.js","sourceRoot":"","sources":["../../src/agent-bridge/capability-sources.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uCAAuC,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,uCAAuC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,wCAAwC,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,wCAAwC,EAAE,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAE,2CAA2C,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAE,wCAAwC,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,2CAA2C,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,0CAA0C,EAAE,MAAM,yBAAyB,CAAC;AAOrF,cAAc,UAAU,CAAC;AAEzB,MAAM,UAAU,6CAA6C,CAC3D,KAA4D,EAC5D,OAA6D,EAC7D,QAAoB,EACpB,WAAgC,EAChC,UAAuE;IAEvE,OAAO;QACL,MAAM,EAAE,uCAAuC,CAAC,KAAK,EAAE,OAAO,CAAC;QAC/D,IAAI,EAAE,sCAAsC,CAAC,KAAK,EAAE,WAAW,CAAC;QAChE,OAAO,EAAE,wCAAwC,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QACvF,OAAO,EAAE,wCAAwC,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QACvF,SAAS,EAAE,2CAA2C,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC;QAClF,OAAO,EAAE,wCAAwC,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QACvF,SAAS,EAAE,2CAA2C,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QAC5F,QAAQ,EAAE,0CAA0C,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QAC1F,KAAK,EAAE,uCAAuC,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC;QAC1E,EAAE,EAAE,oCAAoC,CAAC,KAAK,CAAC;KAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EditorAgentBridgeCallResult, EditorAgentBridgeDiagnostic, EditorAgentBridgeTransform, EditorAgentBridgeVec3 } from '@fps-games/editor-protocol';
|
|
2
|
+
import type { EditorTransformSnapshot } from '@fps-games/editor-core';
|
|
3
|
+
export declare function createLocalEditorAgentBridgeFailure(capabilityId: string, message: string, options?: {
|
|
4
|
+
code?: string;
|
|
5
|
+
source?: EditorAgentBridgeDiagnostic['source'];
|
|
6
|
+
objectId?: string;
|
|
7
|
+
details?: EditorAgentBridgeDiagnostic['details'];
|
|
8
|
+
}): EditorAgentBridgeCallResult<never>;
|
|
9
|
+
export declare function isLocalEditorAgentBridgeVec3(value: unknown): value is EditorAgentBridgeVec3;
|
|
10
|
+
export declare function editorTransformSnapshotToAgentTransform(transform: EditorTransformSnapshot | null | undefined): EditorAgentBridgeTransform | undefined;
|
|
11
|
+
export declare function cloneVec3(vec3: EditorAgentBridgeVec3): EditorAgentBridgeVec3;
|
|
12
|
+
//# sourceMappingURL=diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/agent-bridge/diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,wBAAgB,mCAAmC,CACjD,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;CAC7C,GACL,2BAA2B,CAAC,KAAK,CAAC,CAapC;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAI3F;AAED,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,uBAAuB,GAAG,IAAI,GAAG,SAAS,GACpD,0BAA0B,GAAG,SAAS,CAgBxC;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,CAE5E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export function createLocalEditorAgentBridgeFailure(capabilityId, message, options = {}) {
|
|
2
|
+
return {
|
|
3
|
+
ok: false,
|
|
4
|
+
capabilityId,
|
|
5
|
+
diagnostics: [{
|
|
6
|
+
severity: 'error',
|
|
7
|
+
source: options.source ?? 'editor',
|
|
8
|
+
code: options.code,
|
|
9
|
+
message,
|
|
10
|
+
objectId: options.objectId,
|
|
11
|
+
...(options.details ? { details: options.details } : {}),
|
|
12
|
+
}],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function isLocalEditorAgentBridgeVec3(value) {
|
|
16
|
+
if (!value || typeof value !== 'object')
|
|
17
|
+
return false;
|
|
18
|
+
const record = value;
|
|
19
|
+
return isFiniteNumber(record.x) && isFiniteNumber(record.y) && isFiniteNumber(record.z);
|
|
20
|
+
}
|
|
21
|
+
export function editorTransformSnapshotToAgentTransform(transform) {
|
|
22
|
+
if (!transform)
|
|
23
|
+
return undefined;
|
|
24
|
+
if ('matrix' in transform) {
|
|
25
|
+
return {
|
|
26
|
+
position: {
|
|
27
|
+
x: transform.matrix[12],
|
|
28
|
+
y: transform.matrix[13],
|
|
29
|
+
z: transform.matrix[14],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
position: cloneVec3(transform.position),
|
|
35
|
+
rotation: cloneVec3(transform.rotation),
|
|
36
|
+
scale: cloneVec3(transform.scale),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function cloneVec3(vec3) {
|
|
40
|
+
return { x: vec3.x, y: vec3.y, z: vec3.z };
|
|
41
|
+
}
|
|
42
|
+
function isFiniteNumber(value) {
|
|
43
|
+
return typeof value === 'number' && Number.isFinite(value);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=diagnostics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../src/agent-bridge/diagnostics.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,mCAAmC,CACjD,YAAoB,EACpB,OAAe,EACf,UAKI,EAAE;IAEN,OAAO;QACL,EAAE,EAAE,KAAK;QACT,YAAY;QACZ,WAAW,EAAE,CAAC;gBACZ,QAAQ,EAAE,OAAO;gBACjB,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,QAAQ;gBAClC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,OAAO;gBACP,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACzD,CAAC;KACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,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ge/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-bridge/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorAgentBridge } from '@fps-games/editor-core';
|
|
2
|
+
import type { LocalEditorAgentBridgeCapabilitySources } from './source-types';
|
|
3
|
+
export declare function registerLocalEditorAgentBridgeCapabilities(bridge: EditorAgentBridge, sources: LocalEditorAgentBridgeCapabilitySources): () => void;
|
|
4
|
+
//# sourceMappingURL=register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/agent-bridge/register.ts"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,gBAAgB,CAAC;AAK9E,wBAAgB,0CAA0C,CACxD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,uCAAuC,GAC/C,MAAM,IAAI,CAwgCZ"}
|