@fps-games/editor 0.2.1-beta.3 → 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 +44 -44
- 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 +1721 -367
- 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-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.map +1 -1
- package/dist/playable-product-projection-preview.js +1 -1
- 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 +1 -1
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +0 -2
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +1 -2
- 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/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/package.json +9 -9
- 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/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/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/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 +134 -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/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/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/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/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 +6 -6
- 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 +23 -23
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-hierarchy",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "First-party scoped Hierarchy Editor Plugin and headless interaction kernel.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"fpsGamePlugin": {
|
|
29
29
|
"id": "fps.plugin.hierarchy",
|
|
30
|
-
"version": "0.2.1-beta.
|
|
30
|
+
"version": "0.2.1-beta.4",
|
|
31
31
|
"apiVersion": 1,
|
|
32
32
|
"requires": {},
|
|
33
33
|
"provides": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@fps-games/editor-core": "0.2.1-beta.
|
|
54
|
-
"@fps-games/editor-protocol": "0.2.1-beta.
|
|
55
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
53
|
+
"@fps-games/editor-core": "0.2.1-beta.4",
|
|
54
|
+
"@fps-games/editor-protocol": "0.2.1-beta.4",
|
|
55
|
+
"@fps-games/plugin-api": "0.2.1-beta.4"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-host",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Lifecycle, dependency, scope, and registry runtime for fps-games plugins.",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
17
|
+
"@fps-games/plugin-api": "0.2.1-beta.4",
|
|
18
18
|
"semver": "^7.8.5"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-markers",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "First-party Markers Plugin for fps-games runtime and editor hosts.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"fpsGamePlugin": {
|
|
21
21
|
"id": "fps.plugin.markers",
|
|
22
|
-
"version": "0.2.1-beta.
|
|
22
|
+
"version": "0.2.1-beta.4",
|
|
23
23
|
"apiVersion": 1,
|
|
24
24
|
"requires": {},
|
|
25
25
|
"provides": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fps-games/playable-contracts": "0.2.1-beta.
|
|
50
|
-
"@fps-games/playable-runtime-data": "0.2.1-beta.
|
|
51
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
49
|
+
"@fps-games/playable-contracts": "0.2.1-beta.4",
|
|
50
|
+
"@fps-games/playable-runtime-data": "0.2.1-beta.4",
|
|
51
|
+
"@fps-games/plugin-api": "0.2.1-beta.4"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-materials",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "First-party Materials Plugin for fps-games runtime and editor hosts.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"fpsGamePlugin": {
|
|
21
21
|
"id": "fps.plugin.materials",
|
|
22
|
-
"version": "0.2.1-beta.
|
|
22
|
+
"version": "0.2.1-beta.4",
|
|
23
23
|
"apiVersion": 1,
|
|
24
24
|
"requires": {},
|
|
25
25
|
"provides": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fps-games/playable-contracts": "0.2.1-beta.
|
|
50
|
-
"@fps-games/playable-runtime-data": "0.2.1-beta.
|
|
51
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
49
|
+
"@fps-games/playable-contracts": "0.2.1-beta.4",
|
|
50
|
+
"@fps-games/playable-runtime-data": "0.2.1-beta.4",
|
|
51
|
+
"@fps-games/plugin-api": "0.2.1-beta.4"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-rendering",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "First-party Rendering Plugin for fps-games runtime and editor hosts.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"fpsGamePlugin": {
|
|
21
21
|
"id": "fps.plugin.rendering",
|
|
22
|
-
"version": "0.2.1-beta.
|
|
22
|
+
"version": "0.2.1-beta.4",
|
|
23
23
|
"apiVersion": 1,
|
|
24
24
|
"requires": {},
|
|
25
25
|
"provides": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fps-games/playable-rendering": "0.2.1-beta.
|
|
50
|
-
"@fps-games/playable-runtime-data": "0.2.1-beta.
|
|
51
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
49
|
+
"@fps-games/playable-rendering": "0.2.1-beta.4",
|
|
50
|
+
"@fps-games/playable-runtime-data": "0.2.1-beta.4",
|
|
51
|
+
"@fps-games/plugin-api": "0.2.1-beta.4"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-scene",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "First-party Scene Plugin for fps-games runtime and editor hosts.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"fpsGamePlugin": {
|
|
21
21
|
"id": "fps.plugin.scene",
|
|
22
|
-
"version": "0.2.1-beta.
|
|
22
|
+
"version": "0.2.1-beta.4",
|
|
23
23
|
"apiVersion": 1,
|
|
24
24
|
"requires": {},
|
|
25
25
|
"provides": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fps-games/playable-contracts": "0.2.1-beta.
|
|
50
|
-
"@fps-games/playable-runtime-data": "0.2.1-beta.
|
|
51
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
49
|
+
"@fps-games/playable-contracts": "0.2.1-beta.4",
|
|
50
|
+
"@fps-games/playable-runtime-data": "0.2.1-beta.4",
|
|
51
|
+
"@fps-games/plugin-api": "0.2.1-beta.4"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-shadow-map-experiment",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Independent Babylon Shadow Map experiment Runtime Plugin.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"fpsGamePlugin": {
|
|
21
21
|
"id": "fps.shadow-map-experiment",
|
|
22
|
-
"version": "0.2.1-beta.
|
|
22
|
+
"version": "0.2.1-beta.4",
|
|
23
23
|
"apiVersion": 1,
|
|
24
24
|
"requires": {},
|
|
25
25
|
"provides": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fps-games/playable-rendering": "0.2.1-beta.
|
|
50
|
-
"@fps-games/playable-runtime-data": "0.2.1-beta.
|
|
51
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
49
|
+
"@fps-games/playable-rendering": "0.2.1-beta.4",
|
|
50
|
+
"@fps-games/playable-runtime-data": "0.2.1-beta.4",
|
|
51
|
+
"@fps-games/plugin-api": "0.2.1-beta.4"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.
|
|
1
|
+
export declare const FPS_PLUGIN_VERSION: "0.2.1-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
export const FPS_PLUGIN_VERSION = '0.2.1-beta.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAuB,CAAC","sourcesContent":["export const FPS_PLUGIN_VERSION = '0.2.1-beta.4' as const;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/plugin-shadows",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "First-party Shadows Plugin for fps-games runtime and editor hosts.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"fpsGamePlugin": {
|
|
21
21
|
"id": "fps.plugin.shadows",
|
|
22
|
-
"version": "0.2.1-beta.
|
|
22
|
+
"version": "0.2.1-beta.4",
|
|
23
23
|
"apiVersion": 1,
|
|
24
24
|
"requires": {},
|
|
25
25
|
"provides": {
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fps-games/playable-contracts": "0.2.1-beta.
|
|
51
|
-
"@fps-games/playable-rendering": "0.2.1-beta.
|
|
52
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
53
|
-
"@fps-games/plugin-rendering": "0.2.1-beta.
|
|
54
|
-
"@fps-games/plugin-scene": "0.2.1-beta.
|
|
50
|
+
"@fps-games/playable-contracts": "0.2.1-beta.4",
|
|
51
|
+
"@fps-games/playable-rendering": "0.2.1-beta.4",
|
|
52
|
+
"@fps-games/plugin-api": "0.2.1-beta.4",
|
|
53
|
+
"@fps-games/plugin-rendering": "0.2.1-beta.4",
|
|
54
|
+
"@fps-games/plugin-scene": "0.2.1-beta.4"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/editor",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Aggregate public entrypoint for fps-game-editor.",
|
|
6
6
|
"repository": {
|
|
@@ -56,28 +56,28 @@
|
|
|
56
56
|
"@babel/parser": "^7.28.5",
|
|
57
57
|
"@babylonjs/loaders": "^8.0.0",
|
|
58
58
|
"babylonjs-gltf2interface": "^8.0.0",
|
|
59
|
-
"@fps-games/babylon-renderer": "0.2.1-beta.
|
|
60
|
-
"@fps-games/editor-babylon": "0.2.1-beta.
|
|
61
|
-
"@fps-games/editor-browser": "0.2.1-beta.
|
|
62
|
-
"@fps-games/editor-core": "0.2.1-beta.
|
|
63
|
-
"@fps-games/editor-forge-play": "0.2.1-beta.
|
|
64
|
-
"@fps-games/editor-playable-sdk": "0.2.1-beta.
|
|
65
|
-
"@fps-games/editor-tooling": "0.2.1-beta.
|
|
66
|
-
"@fps-games/playable-contracts": "0.2.1-beta.
|
|
67
|
-
"@fps-games/playable-assets": "0.2.1-beta.
|
|
68
|
-
"@fps-games/playable-runtime": "0.2.1-beta.
|
|
69
|
-
"@fps-games/playable-rendering": "0.2.1-beta.
|
|
70
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
71
|
-
"@fps-games/plugin-assets": "0.2.1-beta.
|
|
72
|
-
"@fps-games/plugin-hierarchy": "0.2.1-beta.
|
|
73
|
-
"@fps-games/plugin-materials": "0.2.1-beta.
|
|
74
|
-
"@fps-games/plugin-markers": "0.2.1-beta.
|
|
75
|
-
"@fps-games/plugin-rendering": "0.2.1-beta.
|
|
76
|
-
"@fps-games/plugin-shadow-map-experiment": "0.2.1-beta.
|
|
77
|
-
"@fps-games/plugin-shadows": "0.2.1-beta.
|
|
78
|
-
"@fps-games/plugin-host": "0.2.1-beta.
|
|
79
|
-
"@fps-games/plugin-scene": "0.2.1-beta.
|
|
80
|
-
"@fps-games/editor-protocol": "0.2.1-beta.
|
|
59
|
+
"@fps-games/babylon-renderer": "0.2.1-beta.4",
|
|
60
|
+
"@fps-games/editor-babylon": "0.2.1-beta.4",
|
|
61
|
+
"@fps-games/editor-browser": "0.2.1-beta.4",
|
|
62
|
+
"@fps-games/editor-core": "0.2.1-beta.4",
|
|
63
|
+
"@fps-games/editor-forge-play": "0.2.1-beta.4",
|
|
64
|
+
"@fps-games/editor-playable-sdk": "0.2.1-beta.4",
|
|
65
|
+
"@fps-games/editor-tooling": "0.2.1-beta.4",
|
|
66
|
+
"@fps-games/playable-contracts": "0.2.1-beta.4",
|
|
67
|
+
"@fps-games/playable-assets": "0.2.1-beta.4",
|
|
68
|
+
"@fps-games/playable-runtime": "0.2.1-beta.4",
|
|
69
|
+
"@fps-games/playable-rendering": "0.2.1-beta.4",
|
|
70
|
+
"@fps-games/plugin-api": "0.2.1-beta.4",
|
|
71
|
+
"@fps-games/plugin-assets": "0.2.1-beta.4",
|
|
72
|
+
"@fps-games/plugin-hierarchy": "0.2.1-beta.4",
|
|
73
|
+
"@fps-games/plugin-materials": "0.2.1-beta.4",
|
|
74
|
+
"@fps-games/plugin-markers": "0.2.1-beta.4",
|
|
75
|
+
"@fps-games/plugin-rendering": "0.2.1-beta.4",
|
|
76
|
+
"@fps-games/plugin-shadow-map-experiment": "0.2.1-beta.4",
|
|
77
|
+
"@fps-games/plugin-shadows": "0.2.1-beta.4",
|
|
78
|
+
"@fps-games/plugin-host": "0.2.1-beta.4",
|
|
79
|
+
"@fps-games/plugin-scene": "0.2.1-beta.4",
|
|
80
|
+
"@fps-games/editor-protocol": "0.2.1-beta.4",
|
|
81
81
|
"@playcanvas/pcui": "6.1.4",
|
|
82
82
|
"semver": "^7.8.5"
|
|
83
83
|
},
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type EditorAgentBridgeAssetInfo } from '@fps-games/editor-protocol';
|
|
2
|
-
import type { LocalEditorHarnessOptions } from '../../local-editor-harness.js';
|
|
3
|
-
import type { LocalEditorAgentBridgeAssetSource } from '../source-types.js';
|
|
4
|
-
import { type LocalEditorAgentBridgeHarnessState } from '../shared.js';
|
|
5
|
-
export declare function createLocalEditorAgentBridgeAssetSource<TDocument, TPatch, TAsset>(state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>, options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>): LocalEditorAgentBridgeAssetSource;
|
|
6
|
-
export declare function listAgentBridgeVisibleAssetInfos<TDocument, TPatch, TAsset>(state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>, options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>): EditorAgentBridgeAssetInfo[];
|
|
7
|
-
export declare function findAgentBridgeVisibleAssetInfo<TDocument, TPatch, TAsset>(state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>, options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>, assetId: string): EditorAgentBridgeAssetInfo | null;
|
|
8
|
-
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,0BAA0B,EAGhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,cAAc,CAAC;AAKtB,wBAAgB,uCAAuC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAC/E,KAAK,EAAE,kCAAkC,CAAC,SAAS,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,GAC5D,iCAAiC,CAyDnC;AAgCD,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EACxE,KAAK,EAAE,kCAAkC,CAAC,SAAS,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,GAC5D,0BAA0B,EAAE,CAc9B;AAkBD,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EACvE,KAAK,EAAE,kCAAkC,CAAC,SAAS,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7D,OAAO,EAAE,MAAM,GACd,0BAA0B,GAAG,IAAI,CAInC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-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,\n type EditorAgentBridgeAssetAnalysisGetOutput,\n type EditorAgentBridgeAssetInfo,\n type EditorAgentBridgeAssetLibraryListOutput,\n type EditorAgentBridgeAssetSummary,\n} from '@fps-games/editor-protocol';\nimport type { LocalEditorHarnessOptions } from '../../local-editor-harness.js';\nimport { createLocalEditorAgentBridgeFailure } from '../diagnostics.js';\nimport type { LocalEditorAgentBridgeAssetSource } from '../source-types.js';\nimport {\n normalizeAgentBridgeString,\n type LocalEditorAgentBridgeHarnessState,\n} from '../shared.js';\n\nconst AGENT_BRIDGE_ASSET_LIST_DEFAULT_LIMIT = 100;\nconst AGENT_BRIDGE_ASSET_LIST_MAX_LIMIT = 500;\n\nexport function createLocalEditorAgentBridgeAssetSource<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n): LocalEditorAgentBridgeAssetSource {\n return {\n async listAssets(input): Promise<EditorAgentBridgeAssetLibraryListOutput> {\n await refreshAgentBridgeAssets(state, options);\n const allAssets = listAgentBridgeAssets(state, options);\n const query = normalizeAgentBridgeString(input.query).toLowerCase();\n const kind = normalizeAgentBridgeString(input.kind).toLowerCase();\n const includeUnplaceable = input.includeUnplaceable === true;\n const limit = normalizeAssetListLimit(input.limit);\n const filtered = allAssets\n .filter(asset => includeUnplaceable || asset.placeable !== false)\n .filter(asset => !kind || String(asset.kind).toLowerCase() === kind)\n .filter(asset => !query || agentBridgeAssetMatchesQuery(asset, query));\n return {\n assets: filtered.slice(0, limit),\n assetCount: filtered.length,\n };\n },\n async getAssetInfo(input) {\n await refreshAgentBridgeAssets(state, options);\n const assetId = normalizeAgentBridgeString(input.assetId);\n const asset = listAgentBridgeVisibleAssetInfos(state, options).find(candidate => candidate.assetId === assetId) ?? null;\n if (!asset) {\n return createLocalEditorAgentBridgeFailure(\n EDITOR_AGENT_BRIDGE_CAPABILITY_ID.ASSET_INFO_GET,\n `Asset not found: ${assetId || '(empty)'}`,\n { code: 'asset.notFound' },\n );\n }\n return { asset };\n },\n async getAssetAnalysis(input): Promise<EditorAgentBridgeAssetAnalysisGetOutput | ReturnType<typeof createLocalEditorAgentBridgeFailure>> {\n await refreshAgentBridgeAssets(state, options);\n const assetId = normalizeAgentBridgeString(input.assetId);\n const asset = listAgentBridgeVisibleAssetInfos(state, options).find(candidate => candidate.assetId === assetId) ?? null;\n if (!asset) {\n return createLocalEditorAgentBridgeFailure(\n EDITOR_AGENT_BRIDGE_CAPABILITY_ID.ASSET_ANALYSIS_GET,\n `Asset not found: ${assetId || '(empty)'}`,\n { code: 'asset.notFound' },\n );\n }\n const analysis = readAssetAnalysis(asset.metadata);\n if (!analysis) {\n return createLocalEditorAgentBridgeFailure(\n EDITOR_AGENT_BRIDGE_CAPABILITY_ID.ASSET_ANALYSIS_GET,\n `Asset analysis is not available: ${asset.assetId}`,\n { code: 'asset.analysisUnavailable' },\n );\n }\n return {\n assetId: asset.assetId,\n kind: asset.kind,\n analysis,\n };\n },\n };\n}\n\nasync function refreshAgentBridgeAssets<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n): Promise<void> {\n state.assets = await options.persistenceAdapter.loadAssets();\n}\n\nfunction listAgentBridgeAssets<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n): EditorAgentBridgeAssetSummary[] {\n return listAgentBridgeVisibleAssetInfos(state, options).map(asset => {\n const summary: EditorAgentBridgeAssetSummary = {\n assetId: asset.assetId,\n ...(asset.guid ? { guid: asset.guid } : {}),\n displayName: asset.displayName,\n kind: asset.kind,\n type: asset.type,\n ...(asset.category ? { category: asset.category } : {}),\n placeable: asset.placeable,\n ...(asset.byteSize != null ? { byteSize: asset.byteSize } : {}),\n ...(asset.contentHash ? { contentHash: asset.contentHash } : {}),\n ...(asset.relativePath ? { relativePath: asset.relativePath } : {}),\n ...(asset.metadataSummary ? { metadataSummary: asset.metadataSummary } : {}),\n ...(asset.analysisSummary ? { analysisSummary: asset.analysisSummary } : {}),\n };\n return summary;\n });\n}\n\nexport function listAgentBridgeVisibleAssetInfos<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n): EditorAgentBridgeAssetInfo[] {\n const document = state.session?.getState({ cloneDocuments: false }).workingDocument ?? null;\n const documentAssets = document\n ? options.documentAdapter.getBrowserAssetItems?.(document) ?? []\n : [];\n const byKey = new Map<string, EditorAgentBridgeAssetInfo>();\n for (const asset of listAgentBridgeAssetInfos(documentAssets)) {\n byKey.set(createAgentBridgeAssetInfoKey(asset), asset);\n }\n for (const asset of listAgentBridgeAssetInfos(state.assets)) {\n const key = createAgentBridgeAssetInfoKey(asset);\n byKey.set(key, asset);\n }\n return sortAgentBridgeAssetInfos([...byKey.values()]);\n}\n\nfunction listAgentBridgeAssetInfos(assets: readonly unknown[]): EditorAgentBridgeAssetInfo[] {\n return assets\n .map(createAgentBridgeAssetInfo)\n .filter((asset): asset is EditorAgentBridgeAssetInfo => !!asset)\n .map(asset => ({ ...asset }));\n}\n\nfunction sortAgentBridgeAssetInfos(assets: EditorAgentBridgeAssetInfo[]): EditorAgentBridgeAssetInfo[] {\n return assets\n .sort((left, right) => (\n String(left.category ?? '').localeCompare(String(right.category ?? ''))\n || left.displayName.localeCompare(right.displayName)\n || left.assetId.localeCompare(right.assetId)\n ));\n}\n\nexport function findAgentBridgeVisibleAssetInfo<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n assetId: string,\n): EditorAgentBridgeAssetInfo | null {\n const normalizedAssetId = normalizeAgentBridgeString(assetId);\n if (!normalizedAssetId) return null;\n return listAgentBridgeVisibleAssetInfos(state, options).find(candidate => candidate.assetId === normalizedAssetId) ?? null;\n}\n\nfunction createAgentBridgeAssetInfo(asset: unknown): EditorAgentBridgeAssetInfo | null {\n const record = readRecord(asset);\n const assetId = readString(record.assetId) || readString(record.id);\n const displayName = readString(record.displayName) || readString(record.label) || assetId;\n if (!assetId || !displayName) return null;\n const metadata = readRecord(record.metadata);\n const metadataSummary = createAssetMetadataSummary(metadata);\n const analysis = readAssetAnalysis(metadata);\n return {\n assetId,\n ...(readString(record.guid) ? { guid: readString(record.guid) } : {}),\n displayName,\n kind: readString(record.kind) || inferAssetKind(record),\n type: readString(record.type) || inferAssetType(record),\n ...(readString(record.category) ? { category: readString(record.category) } : {}),\n placeable: record.placeable !== false && record.disabled !== true,\n ...(readNumber(metadata.byteSize) != null ? { byteSize: readNumber(metadata.byteSize)! } : {}),\n ...(readString(metadata.contentHash) ? { contentHash: readString(metadata.contentHash) } : {}),\n ...(readString(metadata.relativePath) ? { relativePath: readString(metadata.relativePath) } : {}),\n ...(metadataSummary ? { metadataSummary } : {}),\n ...(analysis ? { analysisSummary: createAssetAnalysisSummary(analysis) } : {}),\n ...(readString(record.origin) ? { origin: readString(record.origin) } : {}),\n ...(readString(record.dedupeKey) ? { dedupeKey: readString(record.dedupeKey) } : {}),\n ...(readString(record.materialMode) ? { materialMode: readString(record.materialMode) } : {}),\n ...(Object.keys(metadata).length > 0 ? { metadata: structuredClone(metadata) } : {}),\n ...(Object.keys(readRecord(record.external)).length > 0 ? { external: structuredClone(readRecord(record.external)) } : {}),\n ...(Object.keys(readRecord(record.defaults)).length > 0 ? { defaults: structuredClone(readRecord(record.defaults)) } : {}),\n ...(Object.keys(readRecord(record.prefab)).length > 0 ? { prefab: structuredClone(readRecord(record.prefab)) } : {}),\n };\n}\n\nfunction createAssetMetadataSummary(metadata: Record<string, unknown>): Record<string, unknown> | undefined {\n const summary = {\n ...(readString(metadata.originalFileName) ? { originalFileName: readString(metadata.originalFileName) } : {}),\n ...(Array.isArray(metadata.materialSlots) ? { materialSlotCount: metadata.materialSlots.length } : {}),\n ...(readString(metadata.textureUsage) ? { textureUsage: readString(metadata.textureUsage) } : {}),\n ...(Object.keys(readRecord(metadata.capabilities)).length > 0 ? { capabilities: structuredClone(readRecord(metadata.capabilities)) } : {}),\n };\n return Object.keys(summary).length > 0 ? summary : undefined;\n}\n\nfunction createAssetAnalysisSummary(analysis: EditorAgentBridgeAssetAnalysis): EditorAgentBridgeAssetSummary['analysisSummary'] {\n return {\n ...(readString(analysis.kind) ? { kind: readString(analysis.kind) } : {}),\n ...(readString(analysis.summary) ? { summary: readString(analysis.summary) } : {}),\n ...(readString(analysis.complexity) ? { complexity: readString(analysis.complexity) } : {}),\n ...(readNumber(analysis.nodeCount) != null ? { nodeCount: readNumber(analysis.nodeCount)! } : {}),\n ...(readNumber(analysis.meshCount) != null ? { meshCount: readNumber(analysis.meshCount)! } : {}),\n ...(readNumber(analysis.primitiveCount) != null ? { primitiveCount: readNumber(analysis.primitiveCount)! } : {}),\n ...(readNumber(analysis.materialCount) != null ? { materialCount: readNumber(analysis.materialCount)! } : {}),\n ...(readNumber(analysis.textureCount) != null ? { textureCount: readNumber(analysis.textureCount)! } : {}),\n ...(readNumber(analysis.imageCount) != null ? { imageCount: readNumber(analysis.imageCount)! } : {}),\n ...(readNumber(analysis.animationCount) != null ? { animationCount: readNumber(analysis.animationCount)! } : {}),\n ...(readNumber(analysis.skinCount) != null ? { skinCount: readNumber(analysis.skinCount)! } : {}),\n ...(readNumber(analysis.width) != null ? { width: readNumber(analysis.width)! } : {}),\n ...(readNumber(analysis.height) != null ? { height: readNumber(analysis.height)! } : {}),\n ...(readString(analysis.mime) ? { mime: readString(analysis.mime) } : {}),\n ...(typeof analysis.hasAlpha === 'boolean' ? { hasAlpha: analysis.hasAlpha } : {}),\n ...(Array.isArray(analysis.diagnostics) ? { diagnostics: structuredClone(analysis.diagnostics) } : {}),\n };\n}\n\nfunction readAssetAnalysis(metadata: unknown): EditorAgentBridgeAssetAnalysis | null {\n const analysis = readRecord(readRecord(metadata).assetAnalysis);\n return Object.keys(analysis).length > 0 ? structuredClone(analysis) as EditorAgentBridgeAssetAnalysis : null;\n}\n\nfunction normalizeAssetListLimit(value: unknown): number {\n if (value === undefined) return AGENT_BRIDGE_ASSET_LIST_DEFAULT_LIMIT;\n if (typeof value !== 'number' || !Number.isFinite(value)) return AGENT_BRIDGE_ASSET_LIST_DEFAULT_LIMIT;\n return Math.max(0, Math.min(AGENT_BRIDGE_ASSET_LIST_MAX_LIMIT, Math.floor(value)));\n}\n\nfunction agentBridgeAssetMatchesQuery(asset: EditorAgentBridgeAssetSummary, query: string): boolean {\n return [\n asset.assetId,\n asset.guid,\n asset.displayName,\n asset.kind,\n asset.type,\n asset.category,\n asset.relativePath,\n asset.contentHash,\n ].some(value => String(value ?? '').toLowerCase().includes(query));\n}\n\nfunction inferAssetKind(record: Record<string, unknown>): string {\n const type = readString(record.type);\n if (type === 'glb') return 'model';\n if (type === 'prefab') return 'prefab';\n if (type === 'texture') return 'texture';\n return 'model';\n}\n\nfunction inferAssetType(record: Record<string, unknown>): string {\n const type = readString(record.type);\n if (type) return type;\n const kind = readString(record.kind);\n if (kind === 'texture') return 'texture';\n if (kind === 'prefab') return 'prefab';\n return 'glb';\n}\n\nfunction createAgentBridgeAssetInfoKey(asset: EditorAgentBridgeAssetInfo): string {\n if (asset.guid) return `guid:${asset.guid}`;\n const external = readRecord(asset.external);\n const platformAssetId = readString(external.platformAssetId);\n if (platformAssetId) return `external:${platformAssetId}`;\n if (asset.dedupeKey) return `dedupe:${asset.dedupeKey}`;\n return `asset:${asset.assetId}`;\n}\n\nfunction readRecord(value: unknown): Record<string, any> {\n return value && typeof value === 'object' && !Array.isArray(value) ? value as Record<string, any> : {};\n}\n\nfunction readString(value: unknown): string {\n return typeof value === 'string' && value.trim() ? value.trim() : '';\n}\n\nfunction readNumber(value: unknown): number | null {\n return typeof value === 'number' && Number.isFinite(value) ? value : null;\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { LocalEditorAgentBridgeStateSource } from '../source-types.js';
|
|
2
|
-
import { type LocalEditorAgentBridgeCapabilitySourceOperations, type LocalEditorAgentBridgeHarnessState } from '../shared.js';
|
|
3
|
-
import type { LocalEditorHarnessOptions } from '../../local-editor-harness.js';
|
|
4
|
-
export declare function createLocalEditorAgentBridgeStateSource<TDocument, TPatch, TAsset>(state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>, options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>, operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>): LocalEditorAgentBridgeStateSource;
|
|
5
|
-
//# sourceMappingURL=editor-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-state.d.ts","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/editor-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAGL,KAAK,gDAAgD,EACrD,KAAK,kCAAkC,EACxC,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAK/E,wBAAgB,uCAAuC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAC/E,KAAK,EAAE,kCAAkC,CAAC,SAAS,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7D,UAAU,EAAE,gDAAgD,CAAC,SAAS,CAAC,GACtE,iCAAiC,CAYnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-state.js","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/editor-state.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GAGjC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,4BAA4B,EAC5B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AAU,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvG,GAAG,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;SAC9B;KACF,CAAC,CAAC,CAAC;AACN,CAAC;AAED,SAAS,uCAAuC,CAAC,KAAc;IAC7D,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,0CAA0C,CAAC;IAC3E,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,0CAA0C,CAAC;IAC5G,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,sCAAsC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["import type {\n EditorAgentBridgeEditorSnapshot,\n EditorAgentBridgeEditorSnapshotGetInput,\n EditorAgentBridgeEditorState,\n} from '@fps-games/editor-protocol';\nimport type { LocalEditorAgentBridgeStateSource } from '../source-types.js';\nimport {\n cloneAgentBridgeSelection,\n getAgentBridgeSafeSceneReadModel,\n type LocalEditorAgentBridgeCapabilitySourceOperations,\n type LocalEditorAgentBridgeHarnessState,\n} from '../shared.js';\nimport {\n createAgentBridgeSceneObject,\n listAgentBridgeSceneObjects,\n} from './scene-objects.js';\nimport type { LocalEditorHarnessOptions } from '../../local-editor-harness.js';\n\nconst AGENT_BRIDGE_SNAPSHOT_DEFAULT_OBJECT_LIMIT = 100;\nconst AGENT_BRIDGE_SNAPSHOT_MAX_OBJECT_LIMIT = 500;\n\nexport function createLocalEditorAgentBridgeStateSource<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>,\n): LocalEditorAgentBridgeStateSource {\n return {\n getSnapshot(input) {\n return createAgentBridgeEditorSnapshot(state, options, input, operations);\n },\n getState(input) {\n return createAgentBridgeEditorState(state, options, input.objectId, operations);\n },\n listDiagnostics(input) {\n return operations.getDiagnostics(input);\n },\n };\n}\n\nfunction createAgentBridgeEditorState<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n objectId: string | undefined,\n operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>,\n): EditorAgentBridgeEditorState {\n const sessionState = state.session?.getState({ cloneDocuments: false }) ?? null;\n const document = sessionState?.workingDocument ?? null;\n const safeScene = getAgentBridgeSafeSceneReadModel(operations);\n const safeSelection = safeScene.selection;\n const requestedObjectId = typeof objectId === 'string' && objectId.trim()\n ? objectId.trim()\n : safeSelection.activeId ?? undefined;\n const object = document && requestedObjectId\n ? createAgentBridgeSceneObject(\n state,\n options,\n document,\n requestedObjectId,\n safeScene.hierarchy,\n )\n : null;\n return {\n mode: state.mode,\n status: state.status,\n statusTone: state.statusTone,\n statusDetails: state.statusDetails,\n dirty: sessionState?.dirty,\n busy: state.busy,\n selection: cloneAgentBridgeSelection(safeSelection),\n object,\n diagnostics: createAgentBridgeStateDiagnostics(state, operations),\n };\n}\n\nfunction createAgentBridgeEditorSnapshot<TDocument, TPatch, TAsset>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n options: LocalEditorHarnessOptions<TDocument, TPatch, TAsset>,\n input: EditorAgentBridgeEditorSnapshotGetInput,\n operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>,\n): EditorAgentBridgeEditorSnapshot {\n const sessionState = state.session?.getState({ cloneDocuments: false }) ?? null;\n const document = sessionState?.workingDocument ?? null;\n const safeSelection = getAgentBridgeSafeSceneReadModel(operations).selection;\n const objects = state.mode === 'editor' && document\n ? listAgentBridgeSceneObjects(state, options, document, input.includeUnselectable === true, operations)\n : [];\n const snapshot: EditorAgentBridgeEditorSnapshot = {\n mode: state.mode,\n busy: state.busy,\n dirty: sessionState?.dirty ?? false,\n status: state.status,\n statusTone: state.statusTone,\n selection: cloneAgentBridgeSelection(safeSelection),\n objectCount: objects.length,\n };\n if (input.includeObjects === true) {\n snapshot.objects = objects.slice(0, normalizeAgentBridgeSnapshotObjectLimit(input.objectLimit));\n }\n return snapshot;\n}\n\nfunction createAgentBridgeStateDiagnostics<TDocument, TPatch>(\n state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>,\n operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>,\n): EditorAgentBridgeEditorState['diagnostics'] {\n return operations.getStatusDiagnostics().map(diagnostic => ({\n severity: diagnostic.severity,\n source: diagnostic.source,\n code: diagnostic.code,\n message: diagnostic.message,\n ...(diagnostic.locator?.objectId || diagnostic.locator?.rowId\n ? { objectId: diagnostic.locator.objectId ?? diagnostic.locator.rowId }\n : {}),\n details: {\n ...(diagnostic.scopeId ? { scopeId: diagnostic.scopeId } : {}),\n ...(diagnostic.locator?.objectId ? { targetId: diagnostic.locator.objectId } : {}),\n ...(diagnostic.documentRevision != null ? { documentRevision: diagnostic.documentRevision } : {}),\n ...(diagnostic.projectionRevision != null ? { projectionRevision: diagnostic.projectionRevision } : {}),\n ...(diagnostic.details ?? {}),\n },\n }));\n}\n\nfunction normalizeAgentBridgeSnapshotObjectLimit(value: unknown): number {\n if (value === undefined) return AGENT_BRIDGE_SNAPSHOT_DEFAULT_OBJECT_LIMIT;\n if (typeof value !== 'number' || !Number.isFinite(value)) return AGENT_BRIDGE_SNAPSHOT_DEFAULT_OBJECT_LIMIT;\n return Math.max(0, Math.min(AGENT_BRIDGE_SNAPSHOT_MAX_OBJECT_LIMIT, Math.floor(value)));\n}\n"]}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { LocalEditorAgentBridgeHierarchySource } from '../source-types.js';
|
|
2
|
-
import type { LocalEditorAgentBridgeCapabilitySourceOperations } from '../shared.js';
|
|
3
|
-
export declare function createLocalEditorAgentBridgeHierarchySource<TDocument>(operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>): LocalEditorAgentBridgeHierarchySource;
|
|
4
|
-
//# sourceMappingURL=hierarchy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/hierarchy.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAE,gDAAgD,EAAE,MAAM,cAAc,CAAC;AAiBrF,wBAAgB,2CAA2C,CAAC,SAAS,EACnE,UAAU,EAAE,gDAAgD,CAAC,SAAS,CAAC,GACtE,qCAAqC,CAOvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchy.js","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/hierarchy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,GAIlC,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,mCAAmC,EAAE,MAAM,mBAAmB,CAAC;AAExE,MAAM,kCAAkC,GAAG,GAAG,CAAC;AAC/C,MAAM,8BAA8B,GAAG,IAAI,CAAC;AAa5C,MAAM,UAAU,2CAA2C,CACzD,UAAuE;IAEvE,MAAM,SAAS,GAAG,wBAAwB,EAAE,CAAC;IAC7C,OAAO;QACL,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC;QACxF,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC;QAClE,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,yBAAyB,CAAC,KAAK,CAAC;KACvE,CAA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5E,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,0BAA0B,CAAC,IAAY,EAAE,OAAe;IAC/D,OAAO,mCAAmC,CACxC,iCAAiC,CAAC,mBAAmB,EACrD,OAAO,EACP,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,CAC9B,CAAC;AACJ,CAAC","sourcesContent":["import {\n EDITOR_AGENT_BRIDGE_CAPABILITY_ID,\n type EditorAgentBridgeHierarchyNode,\n type EditorAgentBridgeHierarchyScopeGetInput,\n type EditorAgentBridgeHierarchyScopeGetOutput,\n} from '@fps-games/editor-protocol';\nimport type { LocalEditorAgentBridgeHierarchySource } from '../source-types.js';\nimport type { LocalEditorAgentBridgeCapabilitySourceOperations } from '../shared.js';\nimport { createLocalEditorAgentBridgeFailure } from '../diagnostics.js';\n\nconst DEFAULT_HIERARCHY_SCOPE_PAGE_LIMIT = 200;\nconst MAX_HIERARCHY_SCOPE_PAGE_LIMIT = 1000;\n\ninterface HierarchyScopeCursorPayload {\n v: 1;\n scopeKey: string;\n revision: number;\n rootId: string | null;\n maxDepth: number | null;\n text: string;\n limit: number;\n offset: number;\n}\n\nexport function createLocalEditorAgentBridgeHierarchySource<TDocument>(\n operations: LocalEditorAgentBridgeCapabilitySourceOperations<TDocument>,\n): LocalEditorAgentBridgeHierarchySource {\n const cursorKey = createHierarchyCursorKey();\n return {\n getScope: input => queryHierarchyScope(operations.getHierarchyScope(), input, cursorKey),\n listOperations: input => operations.listHierarchyOperations(input),\n executeOperation: input => operations.executeHierarchyOperation(input),\n };\n}\n\nasync function queryHierarchyScope(\n scope: EditorAgentBridgeHierarchyScopeGetOutput,\n input: EditorAgentBridgeHierarchyScopeGetInput,\n cursorKey: Promise<CryptoKey>,\n): Promise<EditorAgentBridgeHierarchyScopeGetOutput | ReturnType<typeof createLocalEditorAgentBridgeFailure>> {\n const invalidInput = validateHierarchyScopeQueryInput(input);\n if (invalidInput) return invalidInput;\n const hasQuery = Object.keys(input).length > 0;\n if (!hasQuery) {\n return {\n ...scope,\n totalCount: scope.nodes.length,\n returnedCount: scope.nodes.length,\n };\n }\n const decodedCursor = input.cursor ? await decodeHierarchyScopeCursor(input.cursor, cursorKey) : null;\n if (input.cursor && !decodedCursor) {\n return hierarchyScopeQueryFailure('hierarchy.scope.cursorStale', 'Hierarchy cursor is invalid or expired.');\n }\n if (decodedCursor && (decodedCursor.scopeKey !== scope.scopeKey || decodedCursor.revision !== scope.revision)) {\n return hierarchyScopeQueryFailure('hierarchy.scope.cursorStale', 'Hierarchy cursor no longer matches the active scope revision.');\n }\n if (input.expectedRevision !== undefined && input.expectedRevision !== scope.revision) {\n return hierarchyScopeQueryFailure('hierarchy.scope.stale', 'Hierarchy scope revision changed before the query was read.');\n }\n\n const explicitRootId = normalizeOptionalHierarchyString(input.rootId);\n const explicitText = normalizeHierarchySearchText(input.text);\n const explicitMaxDepth = normalizeHierarchyMaxDepth(input.maxDepth);\n const explicitLimit = normalizeHierarchyLimit(input.limit);\n if (decodedCursor && (\n (input.rootId !== undefined && explicitRootId !== decodedCursor.rootId)\n || (input.text !== undefined && explicitText !== decodedCursor.text)\n || (input.maxDepth !== undefined && explicitMaxDepth !== decodedCursor.maxDepth)\n || (input.limit !== undefined && explicitLimit !== decodedCursor.limit)\n )) {\n return hierarchyScopeQueryFailure('hierarchy.scope.cursorStale', 'Hierarchy cursor does not match the supplied query.');\n }\n const rootId = decodedCursor?.rootId ?? explicitRootId;\n const text = decodedCursor?.text ?? explicitText;\n const maxDepth = decodedCursor?.maxDepth ?? explicitMaxDepth;\n const limit = decodedCursor?.limit ?? explicitLimit;\n const offset = decodedCursor?.offset ?? 0;\n const nodeById = new Map(scope.nodes.map(node => [node.id, node] as const));\n if (rootId && !nodeById.has(rootId)) {\n return hierarchyScopeQueryFailure('hierarchy.scope.rootNotFound', `Hierarchy query root was not found: ${rootId}`);\n }\n const ordered = collectHierarchyScopeNodes(scope.nodes, rootId, maxDepth);\n const filtered = text\n ? ordered.filter(node => node.id.toLocaleLowerCase().includes(text) || node.label.toLocaleLowerCase().includes(text))\n : ordered;\n if (decodedCursor && offset >= filtered.length) {\n return hierarchyScopeQueryFailure('hierarchy.scope.cursorStale', 'Hierarchy cursor offset no longer matches the query result.');\n }\n const nodes = filtered.slice(offset, offset + limit);\n const nextOffset = offset + nodes.length;\n const nextCursor = nextOffset < filtered.length\n ? await encodeHierarchyScopeCursor({\n v: 1,\n scopeKey: scope.scopeKey,\n revision: scope.revision,\n rootId,\n maxDepth,\n text,\n limit,\n offset: nextOffset,\n }, cursorKey)\n : undefined;\n return {\n ...scope,\n nodes,\n totalCount: filtered.length,\n returnedCount: nodes.length,\n ...(nextCursor ? { nextCursor } : {}),\n };\n}\n\nfunction collectHierarchyScopeNodes(\n nodes: readonly EditorAgentBridgeHierarchyNode[],\n rootId: string | null,\n maxDepth: number | null,\n): EditorAgentBridgeHierarchyNode[] {\n const nodeById = new Map(nodes.map(node => [node.id, node] as const));\n const childrenByParentId = new Map<string | null, EditorAgentBridgeHierarchyNode[]>();\n for (const node of nodes) {\n const parentId = node.parentId && nodeById.has(node.parentId) ? node.parentId : null;\n const children = childrenByParentId.get(parentId) ?? [];\n children.push(node);\n childrenByParentId.set(parentId, children);\n }\n const result: EditorAgentBridgeHierarchyNode[] = [];\n const roots = rootId ? [nodeById.get(rootId)!] : childrenByParentId.get(null) ?? [];\n const stack = [...roots].reverse().map(node => ({ node, depth: 0 }));\n const visited = new Set<string>();\n while (stack.length > 0) {\n const current = stack.pop()!;\n if (visited.has(current.node.id)) continue;\n visited.add(current.node.id);\n result.push(current.node);\n if (maxDepth !== null && current.depth >= maxDepth) continue;\n const children = childrenByParentId.get(current.node.id) ?? [];\n for (let index = children.length - 1; index >= 0; index -= 1) {\n stack.push({ node: children[index]!, depth: current.depth + 1 });\n }\n }\n return result;\n}\n\nfunction normalizeOptionalHierarchyString(value: string | undefined): string | null {\n const normalized = value?.trim() ?? '';\n return normalized || null;\n}\n\nfunction normalizeHierarchySearchText(value: string | undefined): string {\n return value?.trim().toLocaleLowerCase() ?? '';\n}\n\nfunction normalizeHierarchyMaxDepth(value: number | undefined): number | null {\n return value === undefined ? null : value;\n}\n\nfunction normalizeHierarchyLimit(value: number | undefined): number {\n return value ?? DEFAULT_HIERARCHY_SCOPE_PAGE_LIMIT;\n}\n\nasync function encodeHierarchyScopeCursor(\n payload: HierarchyScopeCursorPayload,\n cursorKey: Promise<CryptoKey>,\n): Promise<string> {\n const encoded = encodeURIComponent(JSON.stringify(payload));\n const signature = new Uint8Array(await globalThis.crypto.subtle.sign(\n 'HMAC',\n await cursorKey,\n new TextEncoder().encode(encoded),\n ));\n return `h2.${encoded}.${bytesToHex(signature)}`;\n}\n\nasync function decodeHierarchyScopeCursor(\n cursor: string,\n cursorKey: Promise<CryptoKey>,\n): Promise<HierarchyScopeCursorPayload | null> {\n if (!cursor.startsWith('h2.')) return null;\n try {\n const separator = cursor.lastIndexOf('.');\n if (separator <= 3) return null;\n const encoded = cursor.slice(3, separator);\n const signature = hexToBytes(cursor.slice(separator + 1));\n if (!signature || !await globalThis.crypto.subtle.verify(\n 'HMAC',\n await cursorKey,\n signature,\n new TextEncoder().encode(encoded),\n )) return null;\n const payload = JSON.parse(decodeURIComponent(encoded)) as Partial<HierarchyScopeCursorPayload>;\n if (payload.v !== 1\n || typeof payload.scopeKey !== 'string'\n || !Number.isSafeInteger(payload.revision)\n || !(payload.rootId === null || typeof payload.rootId === 'string')\n || !(payload.maxDepth === null || (Number.isSafeInteger(payload.maxDepth) && payload.maxDepth! >= 0))\n || typeof payload.text !== 'string'\n || !Number.isSafeInteger(payload.limit)\n || payload.limit! < 1\n || payload.limit! > MAX_HIERARCHY_SCOPE_PAGE_LIMIT\n || !Number.isSafeInteger(payload.offset)\n || payload.offset! <= 0\n || payload.offset! % payload.limit! !== 0) return null;\n return payload as HierarchyScopeCursorPayload;\n } catch {\n return null;\n }\n}\n\nfunction validateHierarchyScopeQueryInput(\n input: EditorAgentBridgeHierarchyScopeGetInput,\n): ReturnType<typeof createLocalEditorAgentBridgeFailure> | null {\n const record = input as Record<string, unknown>;\n const allowed = new Set(['expectedRevision', 'rootId', 'maxDepth', 'text', 'cursor', 'limit']);\n if (Object.keys(record).some(key => !allowed.has(key))) {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', 'Hierarchy query contains unsupported fields.');\n }\n if (record.expectedRevision !== undefined\n && (!Number.isSafeInteger(record.expectedRevision) || (record.expectedRevision as number) < 0)) {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', 'expectedRevision must be a non-negative integer.');\n }\n if (record.rootId !== undefined && (typeof record.rootId !== 'string' || !record.rootId.trim())) {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', 'rootId must be a non-empty string.');\n }\n if (record.maxDepth !== undefined\n && (!Number.isSafeInteger(record.maxDepth) || (record.maxDepth as number) < 0)) {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', 'maxDepth must be a non-negative integer.');\n }\n if (record.text !== undefined && typeof record.text !== 'string') {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', 'text must be a string.');\n }\n if (record.cursor !== undefined && (typeof record.cursor !== 'string' || !record.cursor)) {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', 'cursor must be a non-empty string.');\n }\n if (record.limit !== undefined && (\n !Number.isSafeInteger(record.limit)\n || (record.limit as number) < 1\n || (record.limit as number) > MAX_HIERARCHY_SCOPE_PAGE_LIMIT\n )) {\n return hierarchyScopeQueryFailure('hierarchy.scope.invalidQuery', `limit must be an integer between 1 and ${MAX_HIERARCHY_SCOPE_PAGE_LIMIT}.`);\n }\n return null;\n}\n\nfunction createHierarchyCursorKey(): Promise<CryptoKey> {\n const keyMaterial = globalThis.crypto.getRandomValues(new Uint8Array(32));\n return globalThis.crypto.subtle.importKey(\n 'raw',\n keyMaterial,\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign', 'verify'],\n );\n}\n\nfunction bytesToHex(value: Uint8Array): string {\n return [...value].map(byte => byte.toString(16).padStart(2, '0')).join('');\n}\n\nfunction hexToBytes(value: string): Uint8Array<ArrayBuffer> | null {\n if (!/^[0-9a-f]{64}$/i.test(value)) return null;\n const bytes = new Uint8Array(value.length / 2);\n for (let index = 0; index < bytes.length; index += 1) {\n bytes[index] = Number.parseInt(value.slice(index * 2, index * 2 + 2), 16);\n }\n return bytes;\n}\n\nfunction hierarchyScopeQueryFailure(code: string, message: string) {\n return createLocalEditorAgentBridgeFailure(\n EDITOR_AGENT_BRIDGE_CAPABILITY_ID.HIERARCHY_SCOPE_GET,\n message,\n { code, source: 'hierarchy' },\n );\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FpsDiagnostic } from '@fps-games/plugin-api';
|
|
2
|
-
import type { EditorAgentBridgeCallContext } from '@fps-games/editor-core';
|
|
3
|
-
import type { FpsEditorLifecycleSnapshot } from '@fps-games/editor-core/lifecycle';
|
|
4
|
-
import type { LocalEditorAgentBridgeHostSource } from '../source-types.js';
|
|
5
|
-
import type { LocalEditorAgentBridgeHarnessState } from '../shared.js';
|
|
6
|
-
export interface LocalEditorAgentBridgeHostObservability {
|
|
7
|
-
getLifecycleSnapshot(): Readonly<FpsEditorLifecycleSnapshot> | null;
|
|
8
|
-
getRecentDiagnostics(): readonly Readonly<FpsDiagnostic>[];
|
|
9
|
-
}
|
|
10
|
-
export declare function createLocalEditorAgentBridgeHostSource<TDocument, TPatch>(state: LocalEditorAgentBridgeHarnessState<TDocument, TPatch>, enterEditor: (context?: EditorAgentBridgeCallContext) => Promise<void>, reloadAssets?: () => Promise<void>, saveAndRun?: (context?: EditorAgentBridgeCallContext) => Promise<boolean>, discardAndRun?: (context?: EditorAgentBridgeCallContext) => Promise<boolean>, observability?: LocalEditorAgentBridgeHostObservability): LocalEditorAgentBridgeHostSource;
|
|
11
|
-
//# sourceMappingURL=host-lifecycle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/agent-bridge/capabilities/host-lifecycle.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAOvE,MAAM,WAAW,uCAAuC;IACtD,oBAAoB,IAAI,QAAQ,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC;IACpE,oBAAoB,IAAI,SAAS,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;CAC5D;AAED,wBAAgB,sCAAsC,CAAC,SAAS,EAAE,MAAM,EACtE,KAAK,EAAE,kCAAkC,CAAC,SAAS,EAAE,MAAM,CAAC,EAC5D,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,EACtE,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAClC,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,OAAO,CAAC,OAAO,CAAC,EACzE,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5E,aAAa,CAAC,EAAE,uCAAuC,GACtD,gCAAgC,CAwIlC"}
|