@fps-games/editor 0.2.1-beta.2 → 0.2.1-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/build-info.json +46 -46
- package/dist/editor-commands/capabilities/assets.d.ts +8 -0
- package/dist/editor-commands/capabilities/assets.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/assets.js +41 -41
- package/dist/editor-commands/capabilities/assets.js.map +1 -0
- package/dist/editor-commands/capabilities/editor-state.d.ts +5 -0
- package/dist/editor-commands/capabilities/editor-state.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/editor-state.js +22 -22
- package/dist/editor-commands/capabilities/editor-state.js.map +1 -0
- package/dist/editor-commands/capabilities/hierarchy.d.ts +4 -0
- package/dist/editor-commands/capabilities/hierarchy.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/hierarchy.js +5 -5
- package/dist/editor-commands/capabilities/hierarchy.js.map +1 -0
- package/dist/editor-commands/capabilities/host-lifecycle.d.ts +11 -0
- package/dist/editor-commands/capabilities/host-lifecycle.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/host-lifecycle.js +149 -0
- package/dist/editor-commands/capabilities/host-lifecycle.js.map +1 -0
- package/dist/editor-commands/capabilities/prefabs.d.ts +5 -0
- package/dist/editor-commands/capabilities/prefabs.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/prefabs.js +93 -93
- package/dist/editor-commands/capabilities/prefabs.js.map +1 -0
- package/dist/editor-commands/capabilities/scene-objects.d.ts +8 -0
- package/dist/editor-commands/capabilities/scene-objects.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/scene-objects.js +480 -0
- package/dist/editor-commands/capabilities/scene-objects.js.map +1 -0
- package/dist/editor-commands/capabilities/selection.d.ts +5 -0
- package/dist/editor-commands/capabilities/selection.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/selection.js +60 -0
- package/dist/editor-commands/capabilities/selection.js.map +1 -0
- package/dist/editor-commands/capabilities/shadows.d.ts +5 -0
- package/dist/editor-commands/capabilities/shadows.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/shadows.js +74 -74
- package/dist/editor-commands/capabilities/shadows.js.map +1 -0
- package/dist/editor-commands/capabilities/transform.d.ts +5 -0
- package/dist/editor-commands/capabilities/transform.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/transform.js +164 -0
- package/dist/editor-commands/capabilities/transform.js.map +1 -0
- package/dist/editor-commands/capabilities/ui-regions.d.ts +4 -0
- package/dist/editor-commands/capabilities/ui-regions.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/ui-regions.js +55 -57
- package/dist/editor-commands/capabilities/ui-regions.js.map +1 -0
- package/dist/editor-commands/capabilities/viewport.d.ts +5 -0
- package/dist/editor-commands/capabilities/viewport.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/viewport.js +100 -100
- package/dist/editor-commands/capabilities/viewport.js.map +1 -0
- package/dist/editor-commands/command-sources.d.ts +7 -0
- package/dist/editor-commands/command-sources.d.ts.map +1 -0
- package/dist/editor-commands/command-sources.js +34 -0
- package/dist/editor-commands/command-sources.js.map +1 -0
- package/dist/editor-commands/diagnostics.d.ts +12 -0
- package/dist/editor-commands/diagnostics.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/diagnostics.js +4 -4
- package/dist/editor-commands/diagnostics.js.map +1 -0
- package/dist/{agent-bridge → editor-commands}/index.d.ts +1 -1
- package/dist/editor-commands/index.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/index.js +1 -1
- package/dist/editor-commands/index.js.map +1 -0
- package/dist/editor-commands/register.d.ts +4 -0
- package/dist/editor-commands/register.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/register.js +323 -286
- package/dist/editor-commands/register.js.map +1 -0
- package/dist/{agent-bridge → editor-commands}/shared.d.ts +80 -80
- package/dist/editor-commands/shared.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/shared.js +29 -29
- package/dist/editor-commands/shared.js.map +1 -0
- package/dist/editor-commands/source-types.d.ts +110 -0
- package/dist/editor-commands/source-types.d.ts.map +1 -0
- package/dist/editor-commands/source-types.js.map +1 -0
- package/dist/editor-plugin-commands.d.ts +4 -0
- package/dist/editor-plugin-commands.d.ts.map +1 -0
- package/dist/editor-plugin-commands.js +18 -0
- package/dist/editor-plugin-commands.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/local-editor-commands.d.ts +2 -0
- package/dist/local-editor-commands.d.ts.map +1 -0
- package/dist/local-editor-commands.js +2 -0
- package/dist/local-editor-commands.js.map +1 -0
- package/dist/local-editor-harness.d.ts +35 -21
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +1737 -374
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts +2 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.js +6 -5
- package/dist/local-editor-prefab-stage-transaction.js.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js +2 -5
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/playable-babylon-rendering.d.ts +8 -7
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +77 -32
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-entry.d.ts +10 -0
- package/dist/playable-local-editor-entry.d.ts.map +1 -1
- package/dist/playable-local-editor-entry.js +10 -2
- package/dist/playable-local-editor-entry.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +3 -32
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +6 -70
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.d.ts +1 -2
- package/dist/playable-product-local-editor.d.ts.map +1 -1
- package/dist/playable-product-local-editor.js +0 -1
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.d.ts +2 -0
- package/dist/playable-product-projection-preview.d.ts.map +1 -1
- package/dist/playable-product-projection-preview.js +8 -5
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts +0 -2
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +33 -6
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-runtime-babylon.d.ts +4 -0
- package/dist/playable-runtime-babylon.d.ts.map +1 -1
- package/dist/playable-runtime-babylon.js +4 -0
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-sdk.d.ts +2 -2
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +1 -1
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +0 -3
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +14 -6
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/project-service-projection.d.ts +16 -0
- package/dist/project-service-projection.d.ts.map +1 -0
- package/dist/project-service-projection.js +67 -0
- package/dist/project-service-projection.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts +4 -2
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js +301 -121
- 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/profile.js +5 -4
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts +4 -4
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +12 -1
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +6 -3
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +100 -39
- 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.d.ts +18 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +54 -18
- 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/reference.d.ts +1 -3
- package/node_modules/@fps-games/babylon-renderer/dist/reference.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +11 -8
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +127 -13
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +66 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +6 -6
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts +32 -0
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js +254 -0
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js.map +1 -0
- 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-command-center.d.ts +68 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js +650 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +22 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +8 -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 +117 -6
- 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-view.d.ts +14 -1
- 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 +100 -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-panels.d.ts +8 -1
- 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 +75 -2
- 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-types.d.ts +37 -12
- 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.d.ts +25 -2
- 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 +332 -107
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +7 -7
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts +107 -0
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js +1211 -0
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts +34 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js +260 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts +9 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js +14 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts +18 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js +113 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts +82 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.js +1098 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -7
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +62 -103
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts +30 -0
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js +540 -0
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts +9 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js +61 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +55 -0
- 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 +247 -6
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.d.ts +6 -2
- package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.js +6 -2
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +6 -6
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.js +0 -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-database/generated-module.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js +10 -3
- 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.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js +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/bridge-command/protocol.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts.map +1 -1
- 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 +41 -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/local-harness/forge-play-types.d.ts +27 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.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 +214 -7
- 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.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +11 -3
- 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 +2 -4
- 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 +0 -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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +77 -31
- 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/types.d.ts +8 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.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/material-binding/asset-fields.d.ts +21 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js +90 -4
- 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.d.ts +27 -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 +161 -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/inspector.d.ts +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js +5 -92
- 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/scene-inspector.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js +26 -9
- 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 +9 -0
- 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 +19 -8
- 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/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 +4 -0
- 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/prefab-stage/material-override-inspector.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js +16 -4
- 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/stage-inspector.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +12 -2
- 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/product/ground-decal.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js +10 -5
- 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.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +1 -0
- 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 +17 -82
- 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 +53 -57
- 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.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js +3 -2
- 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/standard-authoring-commands.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js +256 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +7 -5
- 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/panel.js +4 -4
- 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/types.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.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 +1 -5
- 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/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +8 -0
- 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/types.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.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/upgrade-doctor/inspectors.js +187 -12
- 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/types.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts.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/editor-scene-workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +47 -0
- 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/editor-service-vite.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js +592 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +3 -1
- 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 +2 -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/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +61 -6
- 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 +0 -2
- 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 +1 -10
- 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-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +21 -0
- 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/project-authoring-backend.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js +863 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +2 -0
- 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 +6 -6
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts +1626 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/{agent-bridge.js → editor-command-capabilities.js} +766 -620
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts +69 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js +22 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts +136 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts +225 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.js +4 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +6 -3
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +6 -3
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/package.json +1 -1
- package/node_modules/@fps-games/playable-assets/dist/identity.d.ts +1 -0
- package/node_modules/@fps-games/playable-assets/dist/identity.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-assets/dist/identity.js +1 -1
- 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/resource-resolver.d.ts +46 -0
- package/node_modules/@fps-games/playable-assets/dist/resource-resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-assets/dist/resource-resolver.js +109 -0
- package/node_modules/@fps-games/playable-assets/dist/resource-resolver.js.map +1 -0
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/dist/runtime.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/runtime.js +5 -0
- package/node_modules/@fps-games/playable-runtime/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/types.d.ts +2 -0
- package/node_modules/@fps-games/playable-runtime/dist/types.d.ts.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/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/reference.d.ts.map +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/reference.js +11 -4
- package/node_modules/@fps-games/plugin-assets/dist/reference.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/renderer.d.ts +8 -0
- package/node_modules/@fps-games/plugin-assets/dist/renderer.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-assets/dist/renderer.js +13 -0
- package/node_modules/@fps-games/plugin-assets/dist/renderer.js.map +1 -0
- package/node_modules/@fps-games/plugin-assets/dist/resources.d.ts +12 -0
- package/node_modules/@fps-games/plugin-assets/dist/resources.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-assets/dist/resources.js +8 -0
- package/node_modules/@fps-games/plugin-assets/dist/resources.js.map +1 -0
- package/node_modules/@fps-games/plugin-assets/dist/runtime.d.ts +2 -1
- package/node_modules/@fps-games/plugin-assets/dist/runtime.d.ts.map +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/runtime.js +3 -0
- 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 +32 -8
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +78 -4
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/package.json +5 -5
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- 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/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/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/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-shadow-map-experiment/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +5 -5
- 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 +24 -22
- package/dist/agent-bridge/capabilities/assets.d.ts +0 -8
- package/dist/agent-bridge/capabilities/assets.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/assets.js.map +0 -1
- package/dist/agent-bridge/capabilities/editor-state.d.ts +0 -5
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/editor-state.js.map +0 -1
- package/dist/agent-bridge/capabilities/hierarchy.d.ts +0 -4
- package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/hierarchy.js.map +0 -1
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts +0 -11
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/host-lifecycle.js +0 -149
- package/dist/agent-bridge/capabilities/host-lifecycle.js.map +0 -1
- package/dist/agent-bridge/capabilities/prefabs.d.ts +0 -5
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/prefabs.js.map +0 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +0 -8
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/scene-objects.js +0 -480
- package/dist/agent-bridge/capabilities/scene-objects.js.map +0 -1
- package/dist/agent-bridge/capabilities/selection.d.ts +0 -5
- package/dist/agent-bridge/capabilities/selection.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/selection.js +0 -60
- package/dist/agent-bridge/capabilities/selection.js.map +0 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts +0 -5
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/shadows.js.map +0 -1
- package/dist/agent-bridge/capabilities/transform.d.ts +0 -5
- package/dist/agent-bridge/capabilities/transform.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/transform.js +0 -164
- package/dist/agent-bridge/capabilities/transform.js.map +0 -1
- package/dist/agent-bridge/capabilities/ui-regions.d.ts +0 -4
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +0 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts +0 -5
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/viewport.js.map +0 -1
- package/dist/agent-bridge/capability-sources.d.ts +0 -7
- package/dist/agent-bridge/capability-sources.d.ts.map +0 -1
- package/dist/agent-bridge/capability-sources.js +0 -34
- package/dist/agent-bridge/capability-sources.js.map +0 -1
- package/dist/agent-bridge/diagnostics.d.ts +0 -12
- package/dist/agent-bridge/diagnostics.d.ts.map +0 -1
- package/dist/agent-bridge/diagnostics.js.map +0 -1
- package/dist/agent-bridge/index.d.ts.map +0 -1
- package/dist/agent-bridge/index.js.map +0 -1
- package/dist/agent-bridge/register.d.ts +0 -4
- package/dist/agent-bridge/register.d.ts.map +0 -1
- package/dist/agent-bridge/register.js.map +0 -1
- package/dist/agent-bridge/shared.d.ts.map +0 -1
- package/dist/agent-bridge/shared.js.map +0 -1
- package/dist/agent-bridge/source-types.d.ts +0 -110
- package/dist/agent-bridge/source-types.d.ts.map +0 -1
- package/dist/agent-bridge/source-types.js.map +0 -1
- package/dist/editor-plugin-agent-capabilities.d.ts +0 -4
- package/dist/editor-plugin-agent-capabilities.d.ts.map +0 -1
- package/dist/editor-plugin-agent-capabilities.js +0 -64
- package/dist/editor-plugin-agent-capabilities.js.map +0 -1
- package/dist/local-editor-agent-actions.d.ts +0 -43
- package/dist/local-editor-agent-actions.d.ts.map +0 -1
- package/dist/local-editor-agent-actions.js +0 -321
- package/dist/local-editor-agent-actions.js.map +0 -1
- package/dist/local-editor-agent-bridge-transport.d.ts +0 -129
- package/dist/local-editor-agent-bridge-transport.d.ts.map +0 -1
- package/dist/local-editor-agent-bridge-transport.js +0 -403
- package/dist/local-editor-agent-bridge-transport.js.map +0 -1
- package/dist/local-editor-agent-bridge.d.ts +0 -2
- package/dist/local-editor-agent-bridge.d.ts.map +0 -1
- package/dist/local-editor-agent-bridge.js +0 -2
- package/dist/local-editor-agent-bridge.js.map +0 -1
- package/dist/local-editor-agent-context.d.ts +0 -68
- package/dist/local-editor-agent-context.d.ts.map +0 -1
- package/dist/local-editor-agent-context.js +0 -716
- package/dist/local-editor-agent-context.js.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts +0 -22
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js +0 -106
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts +0 -17
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js +0 -14
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts +0 -23
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js +0 -47
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts +0 -112
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js +0 -159
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts +0 -15
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js +0 -76
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +0 -1622
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts +0 -68
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js +0 -23
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +0 -187
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.js +0 -5
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +0 -1
- /package/dist/{agent-bridge → editor-commands}/source-types.js +0 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { validateSceneGraphDelete, } from '@fps-games/editor-core';
|
|
2
|
+
import { EDITOR_COMMAND_ID, } from '@fps-games/editor-protocol';
|
|
3
|
+
import { cloneVec3, createLocalEditorCommandFailure, editorTransformSnapshotToAgentTransform, isLocalEditorCommandVec3, } from '../diagnostics.js';
|
|
4
|
+
import { findEditorCommandVisibleAssetInfo } from './assets.js';
|
|
5
|
+
import { cloneEditorCommandSelection, getEditorCommandSafeSceneHierarchy, getEditorCommandSafeSceneReadModel, getEditorCommandSafeSceneSelection, hasEditorCommandSafeSceneScope, isEditorCommandDocumentNodeLocked, isEditorCommandDocumentNodeSelectable, isEditorCommandHierarchyObjectSelectable, normalizeEditorCommandIdList, normalizeEditorCommandString, } from '../shared.js';
|
|
6
|
+
const OBJECT_CREATE_FROM_ASSET_PROJECTION_WAIT_MS = 3000;
|
|
7
|
+
export function createLocalEditorCommandObjectSource(state, options, renderUi, operations) {
|
|
8
|
+
return {
|
|
9
|
+
listObjects(input) {
|
|
10
|
+
const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;
|
|
11
|
+
if (state.mode !== 'editor' || !document)
|
|
12
|
+
return [];
|
|
13
|
+
return listEditorCommandSceneObjects(state, options, document, input.includeUnselectable === true, operations);
|
|
14
|
+
},
|
|
15
|
+
resolveObject(input) {
|
|
16
|
+
return resolveEditorCommandObject(state, options, input, operations);
|
|
17
|
+
},
|
|
18
|
+
getObject(objectId) {
|
|
19
|
+
const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;
|
|
20
|
+
if (state.mode !== 'editor' || !document)
|
|
21
|
+
return null;
|
|
22
|
+
return createEditorCommandSceneObject(state, options, document, objectId, getEditorCommandSafeSceneHierarchy(operations));
|
|
23
|
+
},
|
|
24
|
+
createPrimitive(input) {
|
|
25
|
+
return createEditorCommandPrimitiveObject(state, options, input, renderUi, operations);
|
|
26
|
+
},
|
|
27
|
+
createFromAsset(input) {
|
|
28
|
+
return createEditorCommandObjectFromAsset(state, options, input, renderUi, operations);
|
|
29
|
+
},
|
|
30
|
+
deleteObjects(input) {
|
|
31
|
+
return deleteEditorCommandObjects(state, options, input, renderUi, operations);
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function listEditorCommandSceneObjects(state, options, document, includeUnselectable, operations) {
|
|
36
|
+
const hierarchy = getEditorCommandSafeSceneHierarchy(operations);
|
|
37
|
+
return hierarchy
|
|
38
|
+
.map(item => createEditorCommandSceneObject(state, options, document, item.id, hierarchy))
|
|
39
|
+
.filter((object) => !!object)
|
|
40
|
+
.filter(object => includeUnselectable || object.selectable !== false);
|
|
41
|
+
}
|
|
42
|
+
export function createEditorCommandSceneObject(state, options, document, objectId, hierarchyItems) {
|
|
43
|
+
const item = hierarchyItems.find(candidate => candidate.id === objectId) ?? null;
|
|
44
|
+
if (!item)
|
|
45
|
+
return null;
|
|
46
|
+
const projectionNode = options.documentAdapter.getProjectionNode(document, objectId);
|
|
47
|
+
const runtimeTransform = state.projection?.readNodeTransform(objectId) ?? null;
|
|
48
|
+
const documentTransform = projectionNode?.transform ?? null;
|
|
49
|
+
const transform = editorTransformSnapshotToAgentTransform(runtimeTransform ?? documentTransform);
|
|
50
|
+
const bounds = createEditorCommandSceneObjectBounds(state.projection?.getSelectionBounds([objectId]) ?? null, transform?.position);
|
|
51
|
+
const locked = isEditorCommandDocumentNodeLocked(options, document, objectId);
|
|
52
|
+
const selectable = isEditorCommandDocumentNodeSelectable(options, document, objectId);
|
|
53
|
+
return {
|
|
54
|
+
id: objectId,
|
|
55
|
+
name: projectionNode?.name,
|
|
56
|
+
label: item?.label ?? projectionNode?.name ?? objectId,
|
|
57
|
+
type: projectionNode?.runtimeKind ?? projectionNode?.helperKind ?? item?.role,
|
|
58
|
+
path: createEditorCommandHierarchyPath(objectId, hierarchyItems),
|
|
59
|
+
parentId: item?.parentId ?? projectionNode?.parentId ?? null,
|
|
60
|
+
selectable,
|
|
61
|
+
locked,
|
|
62
|
+
...(transform ? { transform } : {}),
|
|
63
|
+
...(bounds ? { bounds } : {}),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function createEditorCommandSceneObjectBounds(bounds, fallbackCenter) {
|
|
67
|
+
const record = bounds && typeof bounds === 'object' && !Array.isArray(bounds)
|
|
68
|
+
? bounds
|
|
69
|
+
: null;
|
|
70
|
+
const min = record ? readEditorCommandFiniteVec3(record.min) : null;
|
|
71
|
+
const max = record ? readEditorCommandFiniteVec3(record.max) : null;
|
|
72
|
+
const size = record ? readEditorCommandFiniteVec3(record.size) : null;
|
|
73
|
+
const center = record ? readEditorCommandFiniteVec3(record.center) : null;
|
|
74
|
+
const hasInvertedMinMax = !!min && !!max && (min.x > max.x
|
|
75
|
+
|| min.y > max.y
|
|
76
|
+
|| min.z > max.z);
|
|
77
|
+
if (!hasInvertedMinMax && (min || max || size || center)) {
|
|
78
|
+
return {
|
|
79
|
+
...(min ? { min } : {}),
|
|
80
|
+
...(max ? { max } : {}),
|
|
81
|
+
...(size ? { size } : {}),
|
|
82
|
+
...(center ? { center } : {}),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
if (!fallbackCenter || !isEditorCommandFiniteVec3(fallbackCenter))
|
|
86
|
+
return null;
|
|
87
|
+
const safeCenter = cloneVec3(fallbackCenter);
|
|
88
|
+
return {
|
|
89
|
+
min: cloneVec3(safeCenter),
|
|
90
|
+
max: cloneVec3(safeCenter),
|
|
91
|
+
center: cloneVec3(safeCenter),
|
|
92
|
+
size: { x: 0, y: 0, z: 0 },
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function readEditorCommandFiniteVec3(value) {
|
|
96
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
97
|
+
return null;
|
|
98
|
+
const record = value;
|
|
99
|
+
const vec3 = {
|
|
100
|
+
x: record.x,
|
|
101
|
+
y: record.y,
|
|
102
|
+
z: record.z,
|
|
103
|
+
};
|
|
104
|
+
return isEditorCommandFiniteVec3(vec3) ? {
|
|
105
|
+
x: vec3.x,
|
|
106
|
+
y: vec3.y,
|
|
107
|
+
z: vec3.z,
|
|
108
|
+
} : null;
|
|
109
|
+
}
|
|
110
|
+
function isEditorCommandFiniteVec3(value) {
|
|
111
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
112
|
+
return false;
|
|
113
|
+
const record = value;
|
|
114
|
+
return Number.isFinite(record.x)
|
|
115
|
+
&& Number.isFinite(record.y)
|
|
116
|
+
&& Number.isFinite(record.z);
|
|
117
|
+
}
|
|
118
|
+
function resolveEditorCommandObject(state, options, input, operations) {
|
|
119
|
+
const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;
|
|
120
|
+
if (state.mode !== 'editor' || !document) {
|
|
121
|
+
return { objects: [], resolvedObject: null, ambiguous: false };
|
|
122
|
+
}
|
|
123
|
+
const objects = listEditorCommandSceneObjects(state, options, document, input.includeUnselectable === true, operations);
|
|
124
|
+
const objectId = normalizeEditorCommandString(input.objectId);
|
|
125
|
+
const name = normalizeEditorCommandString(input.name);
|
|
126
|
+
const path = normalizeEditorCommandString(input.path);
|
|
127
|
+
const type = normalizeEditorCommandString(input.type);
|
|
128
|
+
const query = normalizeEditorCommandString(input.query).toLowerCase();
|
|
129
|
+
const matches = objects.filter(object => {
|
|
130
|
+
if (objectId && object.id !== objectId)
|
|
131
|
+
return false;
|
|
132
|
+
if (name && object.name !== name && object.label !== name)
|
|
133
|
+
return false;
|
|
134
|
+
if (path && object.path !== path)
|
|
135
|
+
return false;
|
|
136
|
+
if (type && object.type !== type)
|
|
137
|
+
return false;
|
|
138
|
+
if (query && !commandServiceObjectMatchesQuery(object, query))
|
|
139
|
+
return false;
|
|
140
|
+
return true;
|
|
141
|
+
});
|
|
142
|
+
return {
|
|
143
|
+
objects: matches,
|
|
144
|
+
resolvedObject: matches.length === 1 ? matches[0] : null,
|
|
145
|
+
ambiguous: matches.length > 1,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function createEditorCommandPrimitiveObject(state, options, input, renderUi, operations) {
|
|
149
|
+
const shape = normalizeEditorCommandString(input.shape);
|
|
150
|
+
if (!isEditorCommandPrimitiveShape(shape)) {
|
|
151
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, 'object.createPrimitive requires shape to be cube, sphere, plane, or capsule.', { code: 'object.create.invalidInput' });
|
|
152
|
+
}
|
|
153
|
+
if (state.mode !== 'editor' || !state.session) {
|
|
154
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, 'Editor is not in edit mode.', { code: 'editor.notReady' });
|
|
155
|
+
}
|
|
156
|
+
if (!hasEditorCommandSafeSceneScope(operations)) {
|
|
157
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, 'Scene object creation is unavailable outside the Scene Hierarchy scope.', { code: 'object.sceneScopeRequired' });
|
|
158
|
+
}
|
|
159
|
+
const sessionState = state.session.getState({ cloneDocuments: false });
|
|
160
|
+
const document = sessionState.workingDocument;
|
|
161
|
+
const hierarchy = getEditorCommandSafeSceneHierarchy(operations);
|
|
162
|
+
const requestedParentId = input.parentId === null ? null : normalizeEditorCommandString(input.parentId) || null;
|
|
163
|
+
const requestedActiveId = input.activeId === null
|
|
164
|
+
? null
|
|
165
|
+
: normalizeEditorCommandString(input.activeId) || getEditorCommandSafeSceneSelection(operations).activeId;
|
|
166
|
+
const invalidTargetId = [requestedParentId, requestedActiveId]
|
|
167
|
+
.find(id => id && !hierarchy.some(item => item.id === id));
|
|
168
|
+
if (invalidTargetId) {
|
|
169
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, `Create target is unavailable in the safe Hierarchy projection: ${invalidTargetId}`, { code: 'object.create.invalidTarget', objectId: invalidTargetId });
|
|
170
|
+
}
|
|
171
|
+
const intent = {
|
|
172
|
+
shape,
|
|
173
|
+
name: normalizeEditorCommandString(input.name) || undefined,
|
|
174
|
+
parentId: requestedParentId,
|
|
175
|
+
activeId: requestedActiveId,
|
|
176
|
+
};
|
|
177
|
+
operations.cancelActiveOperation();
|
|
178
|
+
const patch = options.documentAdapter.createSceneGraphCreatePrimitivePatch?.(document, intent);
|
|
179
|
+
if (!patch) {
|
|
180
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, `Primitive patch was not created for shape: ${shape}`, { code: 'object.create.patchUnavailable' });
|
|
181
|
+
}
|
|
182
|
+
const result = state.session.dispatch({
|
|
183
|
+
type: 'document.patch',
|
|
184
|
+
label: patch.label ?? `Create ${shape}`,
|
|
185
|
+
patch: patch.patch,
|
|
186
|
+
targetId: patch.createdId ?? undefined,
|
|
187
|
+
...operations.withProjectionImpact(operations.resolveProjectionImpact(patch, operations.createKnownCreatedReprojectProjectionImpact({
|
|
188
|
+
createdNodeIds: [patch.createdId],
|
|
189
|
+
reprojectIds: patch.reprojectIds,
|
|
190
|
+
}))),
|
|
191
|
+
});
|
|
192
|
+
if (!result.documentChanged) {
|
|
193
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, `Create ${shape} did not change the document.`, { code: 'object.create.unchanged' });
|
|
194
|
+
}
|
|
195
|
+
const createdId = patch.createdId ?? null;
|
|
196
|
+
if (!createdId) {
|
|
197
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, `Create ${shape} did not return a created id.`, { code: 'object.create.missingCreatedId' });
|
|
198
|
+
}
|
|
199
|
+
let selection = result.selection;
|
|
200
|
+
const updatedHierarchy = getEditorCommandSafeSceneHierarchy(operations);
|
|
201
|
+
if (isEditorCommandHierarchyObjectSelectable(options, result.workingDocument, createdId, updatedHierarchy)) {
|
|
202
|
+
selection = state.session.dispatch({
|
|
203
|
+
type: 'selection.replace',
|
|
204
|
+
selectedIds: [createdId],
|
|
205
|
+
activeId: createdId,
|
|
206
|
+
label: 'Agent Select Created Primitive',
|
|
207
|
+
}).selection;
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
selection = operations.sanitizeSelection(result.workingDocument, selection) ?? selection;
|
|
211
|
+
}
|
|
212
|
+
selection = reconcileEditorCommandSafeSceneSelection(state, operations, selection);
|
|
213
|
+
operations.rebuildProjectionFromDocument(result.workingDocument, selection);
|
|
214
|
+
state.summary = operations.summarizeDocument(result.workingDocument, state.session.getSource());
|
|
215
|
+
state.status = patch.label ?? `Agent created ${shape} ${createdId}`;
|
|
216
|
+
renderUi();
|
|
217
|
+
const object = createEditorCommandSceneObject(state, options, result.workingDocument, createdId, getEditorCommandSafeSceneHierarchy(operations));
|
|
218
|
+
if (!object) {
|
|
219
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE, 'Created object is unavailable in the safe Scene Hierarchy projection.', { code: 'object.create.projectionIntegrity' });
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
createdId,
|
|
223
|
+
object,
|
|
224
|
+
selection: cloneEditorCommandSelection(getEditorCommandSafeSceneSelection(operations)),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
async function createEditorCommandObjectFromAsset(state, options, input, renderUi, operations) {
|
|
228
|
+
const assetId = normalizeEditorCommandString(input.assetId);
|
|
229
|
+
if (!assetId) {
|
|
230
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'object.createFromAsset requires assetId.', { code: 'object.createFromAsset.invalidInput' });
|
|
231
|
+
}
|
|
232
|
+
if (state.mode !== 'editor' || !state.session) {
|
|
233
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'Editor is not in edit mode.', { code: 'editor.notReady' });
|
|
234
|
+
}
|
|
235
|
+
if (!hasEditorCommandSafeSceneScope(operations)) {
|
|
236
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'Scene asset placement is unavailable outside the Scene Hierarchy scope. Use prefab.node.createFromAsset in Prefab Stage.', { code: 'object.sceneScopeRequired' });
|
|
237
|
+
}
|
|
238
|
+
const asset = findEditorCommandVisibleAssetInfo(state, options, assetId);
|
|
239
|
+
if (!asset) {
|
|
240
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, `Asset not found: ${assetId}`, { code: 'asset.notFound' });
|
|
241
|
+
}
|
|
242
|
+
if (asset.placeable === false) {
|
|
243
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, `Asset is not placeable: ${assetId}`, { code: 'asset.unplaceable' });
|
|
244
|
+
}
|
|
245
|
+
const placement = createEditorCommandAssetPlacement(input);
|
|
246
|
+
if (placement === false) {
|
|
247
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'object.createFromAsset position, rotation, and scale must be finite vec3 values when supplied.', { code: 'object.createFromAsset.invalidTransform' });
|
|
248
|
+
}
|
|
249
|
+
const result = operations.createAssetFromAssetId(assetId, {
|
|
250
|
+
name: normalizeEditorCommandString(input.name) || undefined,
|
|
251
|
+
placement,
|
|
252
|
+
select: input.select !== false,
|
|
253
|
+
});
|
|
254
|
+
if (!result.ok) {
|
|
255
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, result.status || `Create from asset failed: ${assetId}`, { code: result.error ?? 'object.createFromAsset.failed' });
|
|
256
|
+
}
|
|
257
|
+
const createdId = normalizeEditorCommandString(result.createdId);
|
|
258
|
+
if (!createdId) {
|
|
259
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, `Create from asset did not return a created id: ${assetId}`, { code: 'object.createFromAsset.missingCreatedId' });
|
|
260
|
+
}
|
|
261
|
+
const hierarchyToken = captureEditorCommandSceneHierarchyToken(operations);
|
|
262
|
+
if (!hierarchyToken) {
|
|
263
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'Asset placement completed without a current Scene Hierarchy scope.', { code: 'object.createFromAsset.hierarchyUnavailable' });
|
|
264
|
+
}
|
|
265
|
+
await waitForEditorCommandProjectionIdle(state);
|
|
266
|
+
if (!isEditorCommandSceneHierarchyTokenCurrent(operations, hierarchyToken)) {
|
|
267
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'Scene Hierarchy authority or revision changed while asset placement was pending.', {
|
|
268
|
+
code: 'object.createFromAsset.staleHierarchy',
|
|
269
|
+
details: {
|
|
270
|
+
expectedAuthorityToken: hierarchyToken.authorityToken,
|
|
271
|
+
expectedScopeKey: hierarchyToken.scopeKey,
|
|
272
|
+
expectedRevision: hierarchyToken.revision,
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
const document = state.session.getState({ cloneDocuments: false }).workingDocument;
|
|
277
|
+
const safeScene = getEditorCommandSafeSceneReadModel(operations);
|
|
278
|
+
const hierarchy = safeScene.hierarchy;
|
|
279
|
+
const selection = safeScene.selection;
|
|
280
|
+
const object = createEditorCommandSceneObject(state, options, document, createdId, hierarchy);
|
|
281
|
+
if (!object) {
|
|
282
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET, 'Placed asset object is unavailable in the safe Scene Hierarchy projection.', { code: 'object.createFromAsset.projectionIntegrity' });
|
|
283
|
+
}
|
|
284
|
+
let focused = false;
|
|
285
|
+
if (input.focus === true && hierarchy.some(item => item.id === createdId)) {
|
|
286
|
+
focused = operations.focusProjectionNode(createdId);
|
|
287
|
+
if (focused)
|
|
288
|
+
renderUi();
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
assetId,
|
|
292
|
+
createdId,
|
|
293
|
+
object,
|
|
294
|
+
selection: cloneEditorCommandSelection(selection),
|
|
295
|
+
focused,
|
|
296
|
+
status: result.status,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
async function waitForEditorCommandProjectionIdle(state) {
|
|
300
|
+
const waitForIdle = state.projection?.waitForIdle;
|
|
301
|
+
if (!waitForIdle)
|
|
302
|
+
return;
|
|
303
|
+
await Promise.race([
|
|
304
|
+
waitForIdle.call(state.projection),
|
|
305
|
+
new Promise(resolve => setTimeout(resolve, OBJECT_CREATE_FROM_ASSET_PROJECTION_WAIT_MS)),
|
|
306
|
+
]);
|
|
307
|
+
}
|
|
308
|
+
function captureEditorCommandSceneHierarchyToken(operations) {
|
|
309
|
+
const model = operations.getHierarchyReadModel();
|
|
310
|
+
return model.snapshot.scopeType === 'scene'
|
|
311
|
+
? {
|
|
312
|
+
authorityToken: model.authorityToken,
|
|
313
|
+
scopeKey: model.snapshot.scopeKey,
|
|
314
|
+
revision: model.snapshot.revision,
|
|
315
|
+
}
|
|
316
|
+
: null;
|
|
317
|
+
}
|
|
318
|
+
function isEditorCommandSceneHierarchyTokenCurrent(operations, expected) {
|
|
319
|
+
const current = captureEditorCommandSceneHierarchyToken(operations);
|
|
320
|
+
return current?.authorityToken === expected.authorityToken
|
|
321
|
+
&& current.scopeKey === expected.scopeKey
|
|
322
|
+
&& current.revision === expected.revision;
|
|
323
|
+
}
|
|
324
|
+
function createEditorCommandAssetPlacement(input) {
|
|
325
|
+
const hasPosition = input.position !== undefined;
|
|
326
|
+
const hasRotation = input.rotation !== undefined;
|
|
327
|
+
const hasScale = input.scale !== undefined;
|
|
328
|
+
if (!hasPosition && !hasRotation && !hasScale)
|
|
329
|
+
return undefined;
|
|
330
|
+
if ((hasPosition && !isLocalEditorCommandVec3(input.position))
|
|
331
|
+
|| (hasRotation && !isLocalEditorCommandVec3(input.rotation))
|
|
332
|
+
|| (hasScale && !isLocalEditorCommandVec3(input.scale))) {
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
335
|
+
return {
|
|
336
|
+
position: hasPosition && input.position ? cloneVec3(input.position) : { x: 0, y: 0, z: 0 },
|
|
337
|
+
rotation: hasRotation && input.rotation ? cloneVec3(input.rotation) : { x: 0, y: 0, z: 0 },
|
|
338
|
+
scale: hasScale && input.scale ? cloneVec3(input.scale) : { x: 1, y: 1, z: 1 },
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function deleteEditorCommandObjects(state, options, input, renderUi, operations) {
|
|
342
|
+
const normalized = normalizeEditorCommandDeleteInput(input);
|
|
343
|
+
if (!normalized.ok)
|
|
344
|
+
return normalized.result;
|
|
345
|
+
if (state.mode !== 'editor' || !state.session) {
|
|
346
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, 'Editor is not in edit mode.', { code: 'editor.notReady' });
|
|
347
|
+
}
|
|
348
|
+
if (!hasEditorCommandSafeSceneScope(operations)) {
|
|
349
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, 'Scene object deletion is unavailable outside the Scene Hierarchy scope.', { code: 'object.sceneScopeRequired' });
|
|
350
|
+
}
|
|
351
|
+
const document = state.session.getState({ cloneDocuments: false }).workingDocument;
|
|
352
|
+
const intent = {
|
|
353
|
+
ids: normalized.ids,
|
|
354
|
+
activeId: normalized.activeId,
|
|
355
|
+
};
|
|
356
|
+
operations.cancelActiveOperation();
|
|
357
|
+
const hierarchy = getEditorCommandSafeSceneHierarchy(operations);
|
|
358
|
+
const invalidTargetId = [...intent.ids, intent.activeId]
|
|
359
|
+
.find(id => id && !hierarchy.some(item => item.id === id));
|
|
360
|
+
if (invalidTargetId) {
|
|
361
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, `Delete target is unavailable in the safe Hierarchy projection: ${invalidTargetId}`, { code: 'object.delete.invalidTarget', objectId: invalidTargetId });
|
|
362
|
+
}
|
|
363
|
+
const validation = validateSceneGraphDelete(hierarchy, intent);
|
|
364
|
+
if (!validation.ok) {
|
|
365
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, `Delete rejected: ${validation.reason ?? 'invalid scene graph delete'}.`, { code: 'object.delete.rejected', objectId: normalized.ids[0] });
|
|
366
|
+
}
|
|
367
|
+
const patch = options.documentAdapter.createSceneGraphDeletePatch?.(document, intent);
|
|
368
|
+
if (!patch) {
|
|
369
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, 'Delete patch was not created.', { code: 'object.delete.patchUnavailable', objectId: normalized.ids[0] });
|
|
370
|
+
}
|
|
371
|
+
const result = state.session.dispatch({
|
|
372
|
+
type: 'document.patch',
|
|
373
|
+
label: patch.label ?? `Delete ${intent.ids.length} node(s)`,
|
|
374
|
+
patch: patch.patch,
|
|
375
|
+
targetId: intent.activeId ?? undefined,
|
|
376
|
+
...operations.withProjectionImpact(operations.resolveProjectionImpact(patch, patch.deletedIds
|
|
377
|
+
? operations.createDeletedNodeProjectionImpact(patch.deletedIds)
|
|
378
|
+
: undefined)),
|
|
379
|
+
});
|
|
380
|
+
if (!result.documentChanged) {
|
|
381
|
+
return createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, 'Delete did not change the document.', { code: 'object.delete.unchanged', objectId: normalized.ids[0] });
|
|
382
|
+
}
|
|
383
|
+
const deletedIds = (patch.deletedIds ?? normalized.ids)
|
|
384
|
+
.filter(id => hierarchy.some(item => item.id === id));
|
|
385
|
+
const rawFallbackSelectionId = patch.fallbackSelectionId ?? null;
|
|
386
|
+
let selection = result.selection;
|
|
387
|
+
const updatedHierarchy = getEditorCommandSafeSceneHierarchy(operations);
|
|
388
|
+
const fallbackSelectionId = rawFallbackSelectionId
|
|
389
|
+
&& updatedHierarchy.some(item => item.id === rawFallbackSelectionId)
|
|
390
|
+
? rawFallbackSelectionId
|
|
391
|
+
: null;
|
|
392
|
+
if (fallbackSelectionId && isEditorCommandHierarchyObjectSelectable(options, result.workingDocument, fallbackSelectionId, updatedHierarchy)) {
|
|
393
|
+
selection = state.session.dispatch({
|
|
394
|
+
type: 'selection.replace',
|
|
395
|
+
selectedIds: [fallbackSelectionId],
|
|
396
|
+
activeId: fallbackSelectionId,
|
|
397
|
+
label: 'Agent Select Delete Fallback',
|
|
398
|
+
}).selection;
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
selection = operations.sanitizeSelection(result.workingDocument, selection) ?? selection;
|
|
402
|
+
}
|
|
403
|
+
selection = reconcileEditorCommandSafeSceneSelection(state, operations, selection);
|
|
404
|
+
operations.rebuildProjectionFromDocument(result.workingDocument, selection);
|
|
405
|
+
state.summary = operations.summarizeDocument(result.workingDocument, state.session.getSource());
|
|
406
|
+
state.status = patch.label ?? `Agent deleted ${deletedIds.length} node(s)`;
|
|
407
|
+
renderUi();
|
|
408
|
+
return {
|
|
409
|
+
deletedIds,
|
|
410
|
+
fallbackSelectionId,
|
|
411
|
+
selection: cloneEditorCommandSelection(getEditorCommandSafeSceneSelection(operations)),
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function reconcileEditorCommandSafeSceneSelection(state, operations, currentSelection) {
|
|
415
|
+
const safeSelection = getEditorCommandSafeSceneSelection(operations);
|
|
416
|
+
if (safeSelection.activeId === currentSelection.activeId
|
|
417
|
+
&& safeSelection.selectedIds.length === currentSelection.selectedIds.length
|
|
418
|
+
&& safeSelection.selectedIds.every((id, index) => id === currentSelection.selectedIds[index])) {
|
|
419
|
+
return safeSelection;
|
|
420
|
+
}
|
|
421
|
+
return state.session?.dispatch({
|
|
422
|
+
type: 'selection.replace',
|
|
423
|
+
selectedIds: safeSelection.selectedIds,
|
|
424
|
+
activeId: safeSelection.activeId,
|
|
425
|
+
label: 'Agent Reconcile Safe Hierarchy Selection',
|
|
426
|
+
}).selection ?? safeSelection;
|
|
427
|
+
}
|
|
428
|
+
function commandServiceObjectMatchesQuery(object, query) {
|
|
429
|
+
return [
|
|
430
|
+
object.id,
|
|
431
|
+
object.name,
|
|
432
|
+
object.label,
|
|
433
|
+
object.type,
|
|
434
|
+
object.path,
|
|
435
|
+
].some(value => typeof value === 'string' && value.toLowerCase().includes(query));
|
|
436
|
+
}
|
|
437
|
+
function createEditorCommandHierarchyPath(objectId, hierarchyItems) {
|
|
438
|
+
const byId = new Map(hierarchyItems.map(item => [item.id, item]));
|
|
439
|
+
const path = [];
|
|
440
|
+
const seen = new Set();
|
|
441
|
+
let cursor = byId.get(objectId) ?? null;
|
|
442
|
+
while (cursor && !seen.has(cursor.id)) {
|
|
443
|
+
seen.add(cursor.id);
|
|
444
|
+
path.unshift(cursor.label || cursor.id);
|
|
445
|
+
cursor = cursor.parentId ? byId.get(cursor.parentId) ?? null : null;
|
|
446
|
+
}
|
|
447
|
+
return path.length > 0 ? path.join(' / ') : undefined;
|
|
448
|
+
}
|
|
449
|
+
function isEditorCommandPrimitiveShape(value) {
|
|
450
|
+
return value === 'cube' || value === 'sphere' || value === 'plane' || value === 'capsule';
|
|
451
|
+
}
|
|
452
|
+
function normalizeEditorCommandDeleteInput(input) {
|
|
453
|
+
const objectId = normalizeEditorCommandString(input.objectId);
|
|
454
|
+
const hasObjectId = objectId.length > 0;
|
|
455
|
+
const hasObjectIds = Array.isArray(input.objectIds);
|
|
456
|
+
if (hasObjectId === hasObjectIds) {
|
|
457
|
+
return {
|
|
458
|
+
ok: false,
|
|
459
|
+
result: createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, 'object.delete requires exactly one of objectId or objectIds.', { code: 'object.delete.invalidInput', objectId: objectId || undefined }),
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
const ids = hasObjectId
|
|
463
|
+
? [objectId]
|
|
464
|
+
: normalizeEditorCommandIdList(input.objectIds);
|
|
465
|
+
if (ids.length === 0) {
|
|
466
|
+
return {
|
|
467
|
+
ok: false,
|
|
468
|
+
result: createLocalEditorCommandFailure(EDITOR_COMMAND_ID.OBJECT_DELETE, 'object.delete requires at least one object id.', { code: 'object.delete.invalidInput' }),
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
const requestedActiveId = normalizeEditorCommandString(input.activeId);
|
|
472
|
+
return {
|
|
473
|
+
ok: true,
|
|
474
|
+
ids,
|
|
475
|
+
activeId: requestedActiveId && ids.includes(requestedActiveId)
|
|
476
|
+
? requestedActiveId
|
|
477
|
+
: ids[ids.length - 1] ?? null,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
//# sourceMappingURL=scene-objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene-objects.js","sourceRoot":"","sources":["../../../src/editor-commands/capabilities/scene-objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,GAWlB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,SAAS,EACT,+BAA+B,EAC/B,uCAAuC,EACvC,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,EAClC,kCAAkC,EAClC,kCAAkC,EAClC,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,EACrC,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,GAI7B,MAAM,cAAc,CAAC;AAGtB,MAAM,2CAA2C,GAAG,IAAI,CAAC;AAEzD,MAAM,UAAU,oCAAoC,CAClD,KAAwD,EACxD,OAA6D,EAC7D,QAAoB,EACpB,UAAmE;IAEnE,OAAO;QACL,WAAW,CAAC,KAAK;YACf,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC,eAAe,IAAI,IAAI,CAAC;YAC5F,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,QAAQ;gBAAE,OAAO,EAAE,CAAC;YACpD,OAAO,6BAA6B,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,KAAK,IAAI,EAAE,UAAU,CAAC,CAAC;QACjH,CAAC;QACD,aAAa,CAAC,KAAK;YACjB,OAAO,0BAA0B,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;QACvE,CAAC;QACD,SAAS,CAAC,QAAQ;YAChB,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,Q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AC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvE,OAAO;QACL,EAAE,EAAE,IAAI;QACR,GAAG;QACH,QAAQ,EAAE,iBAAiB,IAAI,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YAC5D,CAAC,CAAC,iBAAiB;YACnB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,IAAI;KAChC,CAAC;AACJ,CAAC","sourcesContent":["import {\n type EditorTransformSnapshot,\n type EditorSelectionState,\n type SceneGraphCreatePrimitiveIntent,\n type SceneGraphDeleteIntent,\n validateSceneGraphDelete,\n} from '@fps-games/editor-core';\nimport {\n EDITOR_COMMAND_ID,\n type EditorCommandObjectCreateFromAssetInput,\n type EditorCommandObjectCreateFromAssetOutput,\n type EditorCommandObjectCreatePrimitiveOutput,\n type EditorCommandObjectDeleteOutput,\n type EditorCommandObjectResolveInput,\n type EditorCommandObjectResolveOutput,\n type EditorCommandPrimitiveShape,\n type EditorCommandBounds,\n type EditorCommandSceneObject,\n type EditorCommandVec3,\n} from '@fps-games/editor-protocol';\nimport {\n cloneVec3,\n createLocalEditorCommandFailure,\n editorTransformSnapshotToAgentTransform,\n isLocalEditorCommandVec3,\n} from '../diagnostics.js';\nimport { findEditorCommandVisibleAssetInfo } from './assets.js';\nimport type { LocalEditorCommandObjectSource } from '../source-types.js';\nimport {\n cloneEditorCommandSelection,\n getEditorCommandSafeSceneHierarchy,\n getEditorCommandSafeSceneReadModel,\n getEditorCommandSafeSceneSelection,\n hasEditorCommandSafeSceneScope,\n isEditorCommandDocumentNodeLocked,\n isEditorCommandDocumentNodeSelectable,\n isEditorCommandHierarchyObjectSelectable,\n normalizeEditorCommandIdList,\n normalizeEditorCommandString,\n type LocalEditorCommandHierarchyItem,\n type LocalEditorCommandCapabilitySourceOperations,\n type LocalEditorCommandHarnessState,\n} from '../shared.js';\nimport type { LocalEditorHarnessOptions } from '../../local-editor-harness.js';\n\nconst OBJECT_CREATE_FROM_ASSET_PROJECTION_WAIT_MS = 3000;\n\nexport function createLocalEditorCommandObjectSource<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n renderUi: () => void,\n operations: LocalEditorCommandCapabilitySourceOperations<TDocument>,\n): LocalEditorCommandObjectSource {\n return {\n listObjects(input) {\n const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;\n if (state.mode !== 'editor' || !document) return [];\n return listEditorCommandSceneObjects(state, options, document, input.includeUnselectable === true, operations);\n },\n resolveObject(input) {\n return resolveEditorCommandObject(state, options, input, operations);\n },\n getObject(objectId) {\n const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;\n if (state.mode !== 'editor' || !document) return null;\n return createEditorCommandSceneObject(\n state,\n options,\n document,\n objectId,\n getEditorCommandSafeSceneHierarchy(operations),\n );\n },\n createPrimitive(input) {\n return createEditorCommandPrimitiveObject(state, options, input, renderUi, operations);\n },\n createFromAsset(input) {\n return createEditorCommandObjectFromAsset(state, options, input, renderUi, operations);\n },\n deleteObjects(input) {\n return deleteEditorCommandObjects(state, options, input, renderUi, operations);\n },\n };\n}\n\nexport function listEditorCommandSceneObjects<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n document: TDocument,\n includeUnselectable: boolean,\n operations: Pick<LocalEditorCommandCapabilitySourceOperations<TDocument>, 'getHierarchyReadModel'>,\n): EditorCommandSceneObject[] {\n const hierarchy = getEditorCommandSafeSceneHierarchy(operations);\n return hierarchy\n .map(item => createEditorCommandSceneObject(state, options, document, item.id, hierarchy))\n .filter((object): object is EditorCommandSceneObject => !!object)\n .filter(object => includeUnselectable || object.selectable !== false);\n}\n\nexport function createEditorCommandSceneObject<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n document: TDocument,\n objectId: string,\n hierarchyItems: readonly LocalEditorCommandHierarchyItem[],\n): EditorCommandSceneObject | null {\n const item = hierarchyItems.find(candidate => candidate.id === objectId) ?? null;\n if (!item) return null;\n const projectionNode = options.documentAdapter.getProjectionNode(document, objectId);\n const runtimeTransform = state.projection?.readNodeTransform(objectId) ?? null;\n const documentTransform = projectionNode?.transform ?? null;\n const transform = editorTransformSnapshotToAgentTransform(runtimeTransform ?? documentTransform);\n const bounds = createEditorCommandSceneObjectBounds(state.projection?.getSelectionBounds([objectId]) ?? null, transform?.position);\n const locked = isEditorCommandDocumentNodeLocked(options, document, objectId);\n const selectable = isEditorCommandDocumentNodeSelectable(options, document, objectId);\n return {\n id: objectId,\n name: projectionNode?.name,\n label: item?.label ?? projectionNode?.name ?? objectId,\n type: projectionNode?.runtimeKind ?? projectionNode?.helperKind ?? item?.role,\n path: createEditorCommandHierarchyPath(objectId, hierarchyItems),\n parentId: item?.parentId ?? projectionNode?.parentId ?? null,\n selectable,\n locked,\n ...(transform ? { transform } : {}),\n ...(bounds ? { bounds } : {}),\n };\n}\n\nfunction createEditorCommandSceneObjectBounds(\n bounds: unknown,\n fallbackCenter?: EditorCommandVec3,\n): EditorCommandBounds | null {\n const record = bounds && typeof bounds === 'object' && !Array.isArray(bounds)\n ? bounds as Record<string, unknown>\n : null;\n const min = record ? readEditorCommandFiniteVec3(record.min) : null;\n const max = record ? readEditorCommandFiniteVec3(record.max) : null;\n const size = record ? readEditorCommandFiniteVec3(record.size) : null;\n const center = record ? readEditorCommandFiniteVec3(record.center) : null;\n const hasInvertedMinMax = !!min && !!max && (\n min.x > max.x\n || min.y > max.y\n || min.z > max.z\n );\n if (!hasInvertedMinMax && (min || max || size || center)) {\n return {\n ...(min ? { min } : {}),\n ...(max ? { max } : {}),\n ...(size ? { size } : {}),\n ...(center ? { center } : {}),\n };\n }\n if (!fallbackCenter || !isEditorCommandFiniteVec3(fallbackCenter)) return null;\n const safeCenter = cloneVec3(fallbackCenter);\n return {\n min: cloneVec3(safeCenter),\n max: cloneVec3(safeCenter),\n center: cloneVec3(safeCenter),\n size: { x: 0, y: 0, z: 0 },\n };\n}\n\nfunction readEditorCommandFiniteVec3(value: unknown): EditorCommandVec3 | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n const record = value as Record<string, unknown>;\n const vec3 = {\n x: record.x,\n y: record.y,\n z: record.z,\n };\n return isEditorCommandFiniteVec3(vec3) ? {\n x: vec3.x,\n y: vec3.y,\n z: vec3.z,\n } : null;\n}\n\nfunction isEditorCommandFiniteVec3(value: unknown): value is EditorCommandVec3 {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n const record = value as Record<string, unknown>;\n return Number.isFinite(record.x)\n && Number.isFinite(record.y)\n && Number.isFinite(record.z);\n}\n\nfunction resolveEditorCommandObject<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n input: EditorCommandObjectResolveInput,\n operations: Pick<LocalEditorCommandCapabilitySourceOperations<TDocument>, 'getHierarchyReadModel'>,\n): EditorCommandObjectResolveOutput {\n const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;\n if (state.mode !== 'editor' || !document) {\n return { objects: [], resolvedObject: null, ambiguous: false };\n }\n const objects = listEditorCommandSceneObjects(\n state,\n options,\n document,\n input.includeUnselectable === true,\n operations,\n );\n const objectId = normalizeEditorCommandString(input.objectId);\n const name = normalizeEditorCommandString(input.name);\n const path = normalizeEditorCommandString(input.path);\n const type = normalizeEditorCommandString(input.type);\n const query = normalizeEditorCommandString(input.query).toLowerCase();\n const matches = objects.filter(object => {\n if (objectId && object.id !== objectId) return false;\n if (name && object.name !== name && object.label !== name) return false;\n if (path && object.path !== path) return false;\n if (type && object.type !== type) return false;\n if (query && !commandServiceObjectMatchesQuery(object, query)) return false;\n return true;\n });\n return {\n objects: matches,\n resolvedObject: matches.length === 1 ? matches[0] : null,\n ambiguous: matches.length > 1,\n };\n}\n\nfunction createEditorCommandPrimitiveObject<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n input: { shape?: unknown; name?: unknown; parentId?: unknown; activeId?: unknown },\n renderUi: () => void,\n operations: LocalEditorCommandCapabilitySourceOperations<TDocument>,\n): EditorCommandObjectCreatePrimitiveOutput | ReturnType<typeof createLocalEditorCommandFailure> {\n const shape = normalizeEditorCommandString(input.shape);\n if (!isEditorCommandPrimitiveShape(shape)) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n 'object.createPrimitive requires shape to be cube, sphere, plane, or capsule.',\n { code: 'object.create.invalidInput' },\n );\n }\n if (state.mode !== 'editor' || !state.session) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n 'Editor is not in edit mode.',\n { code: 'editor.notReady' },\n );\n }\n if (!hasEditorCommandSafeSceneScope(operations)) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n 'Scene object creation is unavailable outside the Scene Hierarchy scope.',\n { code: 'object.sceneScopeRequired' },\n );\n }\n const sessionState = state.session.getState({ cloneDocuments: false });\n const document = sessionState.workingDocument;\n const hierarchy = getEditorCommandSafeSceneHierarchy(operations);\n const requestedParentId = input.parentId === null ? null : normalizeEditorCommandString(input.parentId) || null;\n const requestedActiveId = input.activeId === null\n ? null\n : normalizeEditorCommandString(input.activeId) || getEditorCommandSafeSceneSelection(operations).activeId;\n const invalidTargetId = [requestedParentId, requestedActiveId]\n .find(id => id && !hierarchy.some(item => item.id === id));\n if (invalidTargetId) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n `Create target is unavailable in the safe Hierarchy projection: ${invalidTargetId}`,\n { code: 'object.create.invalidTarget', objectId: invalidTargetId },\n );\n }\n const intent: SceneGraphCreatePrimitiveIntent = {\n shape,\n name: normalizeEditorCommandString(input.name) || undefined,\n parentId: requestedParentId,\n activeId: requestedActiveId,\n };\n operations.cancelActiveOperation();\n const patch = options.documentAdapter.createSceneGraphCreatePrimitivePatch?.(document, intent);\n if (!patch) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n `Primitive patch was not created for shape: ${shape}`,\n { code: 'object.create.patchUnavailable' },\n );\n }\n const result = state.session.dispatch({\n type: 'document.patch',\n label: patch.label ?? `Create ${shape}`,\n patch: patch.patch,\n targetId: patch.createdId ?? undefined,\n ...operations.withProjectionImpact(operations.resolveProjectionImpact(\n patch,\n operations.createKnownCreatedReprojectProjectionImpact({\n createdNodeIds: [patch.createdId],\n reprojectIds: patch.reprojectIds,\n }),\n )),\n });\n if (!result.documentChanged) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n `Create ${shape} did not change the document.`,\n { code: 'object.create.unchanged' },\n );\n }\n const createdId = patch.createdId ?? null;\n if (!createdId) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n `Create ${shape} did not return a created id.`,\n { code: 'object.create.missingCreatedId' },\n );\n }\n let selection: EditorSelectionState = result.selection;\n const updatedHierarchy = getEditorCommandSafeSceneHierarchy(operations);\n if (isEditorCommandHierarchyObjectSelectable(options, result.workingDocument, createdId, updatedHierarchy)) {\n selection = state.session.dispatch({\n type: 'selection.replace',\n selectedIds: [createdId],\n activeId: createdId,\n label: 'Agent Select Created Primitive',\n }).selection;\n } else {\n selection = operations.sanitizeSelection(result.workingDocument, selection) ?? selection;\n }\n selection = reconcileEditorCommandSafeSceneSelection(state, operations, selection);\n operations.rebuildProjectionFromDocument(result.workingDocument, selection);\n state.summary = operations.summarizeDocument(result.workingDocument, state.session.getSource());\n state.status = patch.label ?? `Agent created ${shape} ${createdId}`;\n renderUi();\n const object = createEditorCommandSceneObject(\n state,\n options,\n result.workingDocument,\n createdId,\n getEditorCommandSafeSceneHierarchy(operations),\n );\n if (!object) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE,\n 'Created object is unavailable in the safe Scene Hierarchy projection.',\n { code: 'object.create.projectionIntegrity' },\n );\n }\n return {\n createdId,\n object,\n selection: cloneEditorCommandSelection(getEditorCommandSafeSceneSelection(operations)),\n };\n}\n\nasync function createEditorCommandObjectFromAsset<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n input: EditorCommandObjectCreateFromAssetInput,\n renderUi: () => void,\n operations: LocalEditorCommandCapabilitySourceOperations<TDocument>,\n): Promise<EditorCommandObjectCreateFromAssetOutput | ReturnType<typeof createLocalEditorCommandFailure>> {\n const assetId = normalizeEditorCommandString(input.assetId);\n if (!assetId) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'object.createFromAsset requires assetId.',\n { code: 'object.createFromAsset.invalidInput' },\n );\n }\n if (state.mode !== 'editor' || !state.session) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'Editor is not in edit mode.',\n { code: 'editor.notReady' },\n );\n }\n if (!hasEditorCommandSafeSceneScope(operations)) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'Scene asset placement is unavailable outside the Scene Hierarchy scope. Use prefab.node.createFromAsset in Prefab Stage.',\n { code: 'object.sceneScopeRequired' },\n );\n }\n const asset = findEditorCommandVisibleAssetInfo(state, options, assetId);\n if (!asset) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n `Asset not found: ${assetId}`,\n { code: 'asset.notFound' },\n );\n }\n if (asset.placeable === false) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n `Asset is not placeable: ${assetId}`,\n { code: 'asset.unplaceable' },\n );\n }\n const placement = createEditorCommandAssetPlacement(input);\n if (placement === false) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'object.createFromAsset position, rotation, and scale must be finite vec3 values when supplied.',\n { code: 'object.createFromAsset.invalidTransform' },\n );\n }\n const result = operations.createAssetFromAssetId(assetId, {\n name: normalizeEditorCommandString(input.name) || undefined,\n placement,\n select: input.select !== false,\n });\n if (!result.ok) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n result.status || `Create from asset failed: ${assetId}`,\n { code: result.error ?? 'object.createFromAsset.failed' },\n );\n }\n const createdId = normalizeEditorCommandString(result.createdId);\n if (!createdId) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n `Create from asset did not return a created id: ${assetId}`,\n { code: 'object.createFromAsset.missingCreatedId' },\n );\n }\n const hierarchyToken = captureEditorCommandSceneHierarchyToken(operations);\n if (!hierarchyToken) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'Asset placement completed without a current Scene Hierarchy scope.',\n { code: 'object.createFromAsset.hierarchyUnavailable' },\n );\n }\n await waitForEditorCommandProjectionIdle(state);\n if (!isEditorCommandSceneHierarchyTokenCurrent(operations, hierarchyToken)) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'Scene Hierarchy authority or revision changed while asset placement was pending.',\n {\n code: 'object.createFromAsset.staleHierarchy',\n details: {\n expectedAuthorityToken: hierarchyToken.authorityToken,\n expectedScopeKey: hierarchyToken.scopeKey,\n expectedRevision: hierarchyToken.revision,\n },\n },\n );\n }\n const document = state.session.getState({ cloneDocuments: false }).workingDocument;\n const safeScene = getEditorCommandSafeSceneReadModel(operations);\n const hierarchy = safeScene.hierarchy;\n const selection = safeScene.selection;\n const object = createEditorCommandSceneObject(state, options, document, createdId, hierarchy);\n if (!object) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET,\n 'Placed asset object is unavailable in the safe Scene Hierarchy projection.',\n { code: 'object.createFromAsset.projectionIntegrity' },\n );\n }\n let focused = false;\n if (input.focus === true && hierarchy.some(item => item.id === createdId)) {\n focused = operations.focusProjectionNode(createdId);\n if (focused) renderUi();\n }\n return {\n assetId,\n createdId,\n object,\n selection: cloneEditorCommandSelection(selection),\n focused,\n status: result.status,\n };\n}\n\nasync function waitForEditorCommandProjectionIdle<TDocument, TPatch>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n): Promise<void> {\n const waitForIdle = state.projection?.waitForIdle;\n if (!waitForIdle) return;\n await Promise.race([\n waitForIdle.call(state.projection),\n new Promise(resolve => setTimeout(resolve, OBJECT_CREATE_FROM_ASSET_PROJECTION_WAIT_MS)),\n ]);\n}\n\ninterface EditorCommandSceneHierarchyToken {\n authorityToken: number;\n scopeKey: string;\n revision: number;\n}\n\nfunction captureEditorCommandSceneHierarchyToken<TDocument>(\n operations: Pick<LocalEditorCommandCapabilitySourceOperations<TDocument>, 'getHierarchyReadModel'>,\n): EditorCommandSceneHierarchyToken | null {\n const model = operations.getHierarchyReadModel();\n return model.snapshot.scopeType === 'scene'\n ? {\n authorityToken: model.authorityToken,\n scopeKey: model.snapshot.scopeKey,\n revision: model.snapshot.revision,\n }\n : null;\n}\n\nfunction isEditorCommandSceneHierarchyTokenCurrent<TDocument>(\n operations: Pick<LocalEditorCommandCapabilitySourceOperations<TDocument>, 'getHierarchyReadModel'>,\n expected: EditorCommandSceneHierarchyToken,\n): boolean {\n const current = captureEditorCommandSceneHierarchyToken(operations);\n return current?.authorityToken === expected.authorityToken\n && current.scopeKey === expected.scopeKey\n && current.revision === expected.revision;\n}\n\nfunction createEditorCommandAssetPlacement(input: EditorCommandObjectCreateFromAssetInput): EditorTransformSnapshot | undefined | false {\n const hasPosition = input.position !== undefined;\n const hasRotation = input.rotation !== undefined;\n const hasScale = input.scale !== undefined;\n if (!hasPosition && !hasRotation && !hasScale) return undefined;\n if (\n (hasPosition && !isLocalEditorCommandVec3(input.position))\n || (hasRotation && !isLocalEditorCommandVec3(input.rotation))\n || (hasScale && !isLocalEditorCommandVec3(input.scale))\n ) {\n return false;\n }\n return {\n position: hasPosition && input.position ? cloneVec3(input.position) : { x: 0, y: 0, z: 0 },\n rotation: hasRotation && input.rotation ? cloneVec3(input.rotation) : { x: 0, y: 0, z: 0 },\n scale: hasScale && input.scale ? cloneVec3(input.scale) : { x: 1, y: 1, z: 1 },\n };\n}\n\nfunction deleteEditorCommandObjects<TDocument, TPatch, TAsset>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n input: { objectId?: unknown; objectIds?: unknown; activeId?: unknown },\n renderUi: () => void,\n operations: LocalEditorCommandCapabilitySourceOperations<TDocument>,\n): EditorCommandObjectDeleteOutput | ReturnType<typeof createLocalEditorCommandFailure> {\n const normalized = normalizeEditorCommandDeleteInput(input);\n if (!normalized.ok) return normalized.result;\n if (state.mode !== 'editor' || !state.session) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n 'Editor is not in edit mode.',\n { code: 'editor.notReady' },\n );\n }\n if (!hasEditorCommandSafeSceneScope(operations)) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n 'Scene object deletion is unavailable outside the Scene Hierarchy scope.',\n { code: 'object.sceneScopeRequired' },\n );\n }\n const document = state.session.getState({ cloneDocuments: false }).workingDocument;\n const intent: SceneGraphDeleteIntent = {\n ids: normalized.ids,\n activeId: normalized.activeId,\n };\n operations.cancelActiveOperation();\n const hierarchy = getEditorCommandSafeSceneHierarchy(operations);\n const invalidTargetId = [...intent.ids, intent.activeId]\n .find(id => id && !hierarchy.some(item => item.id === id));\n if (invalidTargetId) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n `Delete target is unavailable in the safe Hierarchy projection: ${invalidTargetId}`,\n { code: 'object.delete.invalidTarget', objectId: invalidTargetId },\n );\n }\n const validation = validateSceneGraphDelete(hierarchy, intent);\n if (!validation.ok) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n `Delete rejected: ${validation.reason ?? 'invalid scene graph delete'}.`,\n { code: 'object.delete.rejected', objectId: normalized.ids[0] },\n );\n }\n const patch = options.documentAdapter.createSceneGraphDeletePatch?.(document, intent);\n if (!patch) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n 'Delete patch was not created.',\n { code: 'object.delete.patchUnavailable', objectId: normalized.ids[0] },\n );\n }\n const result = state.session.dispatch({\n type: 'document.patch',\n label: patch.label ?? `Delete ${intent.ids.length} node(s)`,\n patch: patch.patch,\n targetId: intent.activeId ?? undefined,\n ...operations.withProjectionImpact(operations.resolveProjectionImpact(\n patch,\n patch.deletedIds\n ? operations.createDeletedNodeProjectionImpact(patch.deletedIds)\n : undefined,\n )),\n });\n if (!result.documentChanged) {\n return createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n 'Delete did not change the document.',\n { code: 'object.delete.unchanged', objectId: normalized.ids[0] },\n );\n }\n const deletedIds = (patch.deletedIds ?? normalized.ids)\n .filter(id => hierarchy.some(item => item.id === id));\n const rawFallbackSelectionId = patch.fallbackSelectionId ?? null;\n let selection: EditorSelectionState = result.selection;\n const updatedHierarchy = getEditorCommandSafeSceneHierarchy(operations);\n const fallbackSelectionId = rawFallbackSelectionId\n && updatedHierarchy.some(item => item.id === rawFallbackSelectionId)\n ? rawFallbackSelectionId\n : null;\n if (fallbackSelectionId && isEditorCommandHierarchyObjectSelectable(options, result.workingDocument, fallbackSelectionId, updatedHierarchy)) {\n selection = state.session.dispatch({\n type: 'selection.replace',\n selectedIds: [fallbackSelectionId],\n activeId: fallbackSelectionId,\n label: 'Agent Select Delete Fallback',\n }).selection;\n } else {\n selection = operations.sanitizeSelection(result.workingDocument, selection) ?? selection;\n }\n selection = reconcileEditorCommandSafeSceneSelection(state, operations, selection);\n operations.rebuildProjectionFromDocument(result.workingDocument, selection);\n state.summary = operations.summarizeDocument(result.workingDocument, state.session.getSource());\n state.status = patch.label ?? `Agent deleted ${deletedIds.length} node(s)`;\n renderUi();\n return {\n deletedIds,\n fallbackSelectionId,\n selection: cloneEditorCommandSelection(getEditorCommandSafeSceneSelection(operations)),\n };\n}\n\nfunction reconcileEditorCommandSafeSceneSelection<TDocument, TPatch>(\n state: LocalEditorCommandHarnessState<TDocument, TPatch>,\n operations: Pick<LocalEditorCommandCapabilitySourceOperations<TDocument>, 'getHierarchyReadModel'>,\n currentSelection: EditorSelectionState,\n): EditorSelectionState {\n const safeSelection = getEditorCommandSafeSceneSelection(operations);\n if (safeSelection.activeId === currentSelection.activeId\n && safeSelection.selectedIds.length === currentSelection.selectedIds.length\n && safeSelection.selectedIds.every((id, index) => id === currentSelection.selectedIds[index])) {\n return safeSelection;\n }\n return state.session?.dispatch({\n type: 'selection.replace',\n selectedIds: safeSelection.selectedIds,\n activeId: safeSelection.activeId,\n label: 'Agent Reconcile Safe Hierarchy Selection',\n }).selection ?? safeSelection;\n}\n\nfunction commandServiceObjectMatchesQuery(object: EditorCommandSceneObject, query: string): boolean {\n return [\n object.id,\n object.name,\n object.label,\n object.type,\n object.path,\n ].some(value => typeof value === 'string' && value.toLowerCase().includes(query));\n}\n\nfunction createEditorCommandHierarchyPath(\n objectId: string,\n hierarchyItems: readonly LocalEditorCommandHierarchyItem[],\n): string | undefined {\n const byId = new Map(hierarchyItems.map(item => [item.id, item]));\n const path: string[] = [];\n const seen = new Set<string>();\n let cursor = byId.get(objectId) ?? null;\n while (cursor && !seen.has(cursor.id)) {\n seen.add(cursor.id);\n path.unshift(cursor.label || cursor.id);\n cursor = cursor.parentId ? byId.get(cursor.parentId) ?? null : null;\n }\n return path.length > 0 ? path.join(' / ') : undefined;\n}\n\nfunction isEditorCommandPrimitiveShape(value: string): value is EditorCommandPrimitiveShape {\n return value === 'cube' || value === 'sphere' || value === 'plane' || value === 'capsule';\n}\n\nfunction normalizeEditorCommandDeleteInput(\n input: { objectId?: unknown; objectIds?: unknown; activeId?: unknown },\n): { ok: true; ids: string[]; activeId: string | null } | { ok: false; result: ReturnType<typeof createLocalEditorCommandFailure> } {\n const objectId = normalizeEditorCommandString(input.objectId);\n const hasObjectId = objectId.length > 0;\n const hasObjectIds = Array.isArray(input.objectIds);\n if (hasObjectId === hasObjectIds) {\n return {\n ok: false,\n result: createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n 'object.delete requires exactly one of objectId or objectIds.',\n { code: 'object.delete.invalidInput', objectId: objectId || undefined },\n ),\n };\n }\n const ids = hasObjectId\n ? [objectId]\n : normalizeEditorCommandIdList(input.objectIds as unknown[]);\n if (ids.length === 0) {\n return {\n ok: false,\n result: createLocalEditorCommandFailure(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n 'object.delete requires at least one object id.',\n { code: 'object.delete.invalidInput' },\n ),\n };\n }\n const requestedActiveId = normalizeEditorCommandString(input.activeId);\n return {\n ok: true,\n ids,\n activeId: requestedActiveId && ids.includes(requestedActiveId)\n ? requestedActiveId\n : ids[ids.length - 1] ?? null,\n };\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LocalEditorCommandSelectionSource } from '../source-types.js';
|
|
2
|
+
import { type LocalEditorCommandCapabilitySourceOperations, type LocalEditorCommandHarnessState } from '../shared.js';
|
|
3
|
+
import type { LocalEditorHarnessOptions } from '../../local-editor-harness.js';
|
|
4
|
+
export declare function createLocalEditorCommandSelectionSource<TDocument, TPatch, TAsset>(state: LocalEditorCommandHarnessState<TDocument, TPatch>, options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>, operations: LocalEditorCommandCapabilitySourceOperations<TDocument>): LocalEditorCommandSelectionSource;
|
|
5
|
+
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/editor-commands/capabilities/selection.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAML,KAAK,4CAA4C,EACjD,KAAK,8BAA8B,EACpC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,wBAAgB,uCAAuC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAC/E,KAAK,EAAE,8BAA8B,CAAC,SAAS,EAAE,MAAM,CAAC,EACxD,OAAO,EAAE,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7D,UAAU,EAAE,4CAA4C,CAAC,SAAS,CAAC,GAClE,iCAAiC,CAoDnC"}
|