unreal-engine-mcp-server 0.6.0-beta-e → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +185 -0
- package/README.md +41 -58
- package/dist/cli.js +3 -13
- package/dist/constants.js +0 -15
- package/dist/proxy/native-proxy.js +49 -8
- package/package.json +13 -17
- package/server.json +10 -55
- package/dist/automation/bridge-client.d.ts +0 -36
- package/dist/automation/bridge-client.js +0 -194
- package/dist/automation/bridge-config.d.ts +0 -25
- package/dist/automation/bridge-config.js +0 -182
- package/dist/automation/bridge-request-dispatcher.d.ts +0 -28
- package/dist/automation/bridge-request-dispatcher.js +0 -152
- package/dist/automation/bridge-state.d.ts +0 -18
- package/dist/automation/bridge-state.js +0 -2
- package/dist/automation/bridge-status.d.ts +0 -15
- package/dist/automation/bridge-status.js +0 -47
- package/dist/automation/bridge.d.ts +0 -48
- package/dist/automation/bridge.js +0 -152
- package/dist/automation/capability-token-provider.d.ts +0 -11
- package/dist/automation/capability-token-provider.js +0 -62
- package/dist/automation/connection-lifecycle.d.ts +0 -19
- package/dist/automation/connection-lifecycle.js +0 -109
- package/dist/automation/connection-manager.d.ts +0 -40
- package/dist/automation/connection-manager.js +0 -127
- package/dist/automation/diagnostics-snapshot-reader.d.ts +0 -76
- package/dist/automation/diagnostics-snapshot-reader.js +0 -86
- package/dist/automation/dispatcher.test-support.d.ts +0 -9
- package/dist/automation/dispatcher.test-support.js +0 -26
- package/dist/automation/handshake.d.ts +0 -11
- package/dist/automation/handshake.js +0 -132
- package/dist/automation/index.d.ts +0 -6
- package/dist/automation/index.js +0 -4
- package/dist/automation/log-redaction.d.ts +0 -11
- package/dist/automation/log-redaction.js +0 -165
- package/dist/automation/message-handler.d.ts +0 -15
- package/dist/automation/message-handler.js +0 -103
- package/dist/automation/message-schema.d.ts +0 -128
- package/dist/automation/message-schema.js +0 -92
- package/dist/automation/request-cancellation-error.d.ts +0 -7
- package/dist/automation/request-cancellation-error.js +0 -11
- package/dist/automation/request-context.d.ts +0 -8
- package/dist/automation/request-context.js +0 -12
- package/dist/automation/request-correlation.d.ts +0 -22
- package/dist/automation/request-correlation.js +0 -79
- package/dist/automation/request-tracker.d.ts +0 -32
- package/dist/automation/request-tracker.js +0 -139
- package/dist/automation/socket.test-support.d.ts +0 -9
- package/dist/automation/socket.test-support.js +0 -55
- package/dist/automation/types.d.ts +0 -198
- package/dist/automation/types.js +0 -2
- package/dist/cli.d.ts +0 -3
- package/dist/config.d.ts +0 -38
- package/dist/config.js +0 -106
- package/dist/constants.d.ts +0 -20
- package/dist/gateway/gateway-manifest-types.d.ts +0 -36
- package/dist/gateway/gateway-manifest-types.js +0 -16
- package/dist/gateway/gateway-manifest.d.ts +0 -10
- package/dist/gateway/gateway-manifest.generated.json +0 -17865
- package/dist/gateway/gateway-manifest.js +0 -19
- package/dist/handlers/resource-handlers.d.ts +0 -46
- package/dist/handlers/resource-handlers.js +0 -177
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -5
- package/dist/proxy/native-proxy.d.ts +0 -12
- package/dist/resources/actors.d.ts +0 -3
- package/dist/resources/actors.js +0 -20
- package/dist/resources/assets.d.ts +0 -7
- package/dist/resources/assets.js +0 -58
- package/dist/resources/capability-resources.d.ts +0 -37
- package/dist/resources/capability-resources.js +0 -86
- package/dist/resources/editor-state-resources.d.ts +0 -65
- package/dist/resources/editor-state-resources.js +0 -129
- package/dist/resources/knowledge-resources.d.ts +0 -22
- package/dist/resources/knowledge-resources.js +0 -59
- package/dist/resources/resource-catalog.d.ts +0 -15
- package/dist/resources/resource-catalog.js +0 -54
- package/dist/resources/resource-errors.d.ts +0 -17
- package/dist/resources/resource-errors.js +0 -76
- package/dist/resources/resource-read-router.d.ts +0 -19
- package/dist/resources/resource-read-router.js +0 -56
- package/dist/resources/resources.test-support.d.ts +0 -5
- package/dist/resources/resources.test-support.js +0 -7
- package/dist/server/gateway/direct-call-migration.d.ts +0 -26
- package/dist/server/gateway/direct-call-migration.js +0 -46
- package/dist/server/gateway/gateway-availability.d.ts +0 -10
- package/dist/server/gateway/gateway-availability.js +0 -15
- package/dist/server/gateway/gateway-capability-index.d.ts +0 -45
- package/dist/server/gateway/gateway-capability-index.js +0 -148
- package/dist/server/gateway/gateway-capability-view.d.ts +0 -20
- package/dist/server/gateway/gateway-capability-view.js +0 -144
- package/dist/server/gateway/gateway-describe-browse.d.ts +0 -14
- package/dist/server/gateway/gateway-describe-browse.js +0 -110
- package/dist/server/gateway/gateway-describe-capability.d.ts +0 -6
- package/dist/server/gateway/gateway-describe-capability.js +0 -74
- package/dist/server/gateway/gateway-describe.d.ts +0 -2
- package/dist/server/gateway/gateway-describe.js +0 -109
- package/dist/server/gateway/gateway-dispatch-by.d.ts +0 -17
- package/dist/server/gateway/gateway-dispatch-by.js +0 -67
- package/dist/server/gateway/gateway-execute-dispatch.d.ts +0 -24
- package/dist/server/gateway/gateway-execute-dispatch.js +0 -204
- package/dist/server/gateway/gateway-execute-envelope.d.ts +0 -48
- package/dist/server/gateway/gateway-execute-envelope.js +0 -194
- package/dist/server/gateway/gateway-execute-idempotency.d.ts +0 -19
- package/dist/server/gateway/gateway-execute-idempotency.js +0 -64
- package/dist/server/gateway/gateway-execute-lookup.d.ts +0 -11
- package/dist/server/gateway/gateway-execute-lookup.js +0 -122
- package/dist/server/gateway/gateway-execute-policy.d.ts +0 -9
- package/dist/server/gateway/gateway-execute-policy.js +0 -93
- package/dist/server/gateway/gateway-execute-resolve.d.ts +0 -28
- package/dist/server/gateway/gateway-execute-resolve.js +0 -2
- package/dist/server/gateway/gateway-execute-static-check.d.ts +0 -13
- package/dist/server/gateway/gateway-execute-static-check.js +0 -127
- package/dist/server/gateway/gateway-execute.d.ts +0 -6
- package/dist/server/gateway/gateway-execute.js +0 -145
- package/dist/server/gateway/gateway-guidance.d.ts +0 -15
- package/dist/server/gateway/gateway-guidance.js +0 -78
- package/dist/server/gateway/gateway-option-validate.d.ts +0 -10
- package/dist/server/gateway/gateway-option-validate.js +0 -73
- package/dist/server/gateway/gateway-receipt-context.d.ts +0 -21
- package/dist/server/gateway/gateway-receipt-context.js +0 -36
- package/dist/server/gateway/gateway-schema-validate.d.ts +0 -14
- package/dist/server/gateway/gateway-schema-validate.js +0 -316
- package/dist/server/gateway/gateway-search-filters.d.ts +0 -19
- package/dist/server/gateway/gateway-search-filters.js +0 -107
- package/dist/server/gateway/gateway-search.d.ts +0 -2
- package/dist/server/gateway/gateway-search.js +0 -106
- package/dist/server/gateway/gateway-shared.d.ts +0 -20
- package/dist/server/gateway/gateway-shared.js +0 -52
- package/dist/server/gateway/gateway-task-results.d.ts +0 -6
- package/dist/server/gateway/gateway-task-results.js +0 -40
- package/dist/server/gateway/idempotency-ledger.d.ts +0 -42
- package/dist/server/gateway/idempotency-ledger.js +0 -102
- package/dist/server/mcp-primitives/completions.d.ts +0 -11
- package/dist/server/mcp-primitives/completions.js +0 -103
- package/dist/server/mcp-primitives/primitive-wiring.d.ts +0 -12
- package/dist/server/mcp-primitives/primitive-wiring.js +0 -31
- package/dist/server/mcp-primitives/progress/progress-reporter.d.ts +0 -33
- package/dist/server/mcp-primitives/progress/progress-reporter.js +0 -50
- package/dist/server/mcp-primitives/progress/progress-sink-registry.d.ts +0 -17
- package/dist/server/mcp-primitives/progress/progress-sink-registry.js +0 -35
- package/dist/server/mcp-primitives/progress/progress-token.d.ts +0 -3
- package/dist/server/mcp-primitives/progress/progress-token.js +0 -12
- package/dist/server/mcp-primitives/prompts.d.ts +0 -43
- package/dist/server/mcp-primitives/prompts.js +0 -142
- package/dist/server/mcp-primitives/resource-revision.d.ts +0 -15
- package/dist/server/mcp-primitives/resource-revision.js +0 -11
- package/dist/server/server-factory.d.ts +0 -47
- package/dist/server/server-factory.js +0 -84
- package/dist/server/stdio-lifecycle.d.ts +0 -2
- package/dist/server/stdio-lifecycle.js +0 -57
- package/dist/server/tool-registry-gateway.d.ts +0 -4
- package/dist/server/tool-registry-gateway.js +0 -80
- package/dist/server/tool-registry-manage-tools.d.ts +0 -2
- package/dist/server/tool-registry-manage-tools.js +0 -160
- package/dist/server/tool-registry.d.ts +0 -15
- package/dist/server/tool-registry.js +0 -110
- package/dist/server-setup.d.ts +0 -21
- package/dist/server-setup.js +0 -60
- package/dist/services/health-monitor.d.ts +0 -42
- package/dist/services/health-monitor.js +0 -103
- package/dist/services/readiness.d.ts +0 -35
- package/dist/services/readiness.js +0 -77
- package/dist/services/telemetry/prometheus-exposition.d.ts +0 -11
- package/dist/services/telemetry/prometheus-exposition.js +0 -80
- package/dist/services/telemetry-observation.d.ts +0 -4
- package/dist/services/telemetry-observation.js +0 -65
- package/dist/services/telemetry-registry.d.ts +0 -69
- package/dist/services/telemetry-registry.js +0 -128
- package/dist/services/telemetry-schema.d.ts +0 -36
- package/dist/services/telemetry-schema.js +0 -64
- package/dist/tools/catalog/capabilities/capability-record.test-support.d.ts +0 -158
- package/dist/tools/catalog/capabilities/capability-record.test-support.js +0 -94
- package/dist/tools/catalog/capabilities/catalog-schema.d.ts +0 -114
- package/dist/tools/catalog/capabilities/catalog-schema.js +0 -82
- package/dist/tools/catalog/capabilities/constants.d.ts +0 -12
- package/dist/tools/catalog/capabilities/constants.js +0 -12
- package/dist/tools/catalog/capabilities/generated/canonical-registry.generated.d.ts +0 -6
- package/dist/tools/catalog/capabilities/generated/canonical-registry.generated.js +0 -6
- package/dist/tools/catalog/capabilities/generated/canonical-registry.generated.json +0 -96681
- package/dist/tools/catalog/capabilities/generated/capability-cost-index.generated.d.ts +0 -3
- package/dist/tools/catalog/capabilities/generated/capability-cost-index.generated.js +0 -1547
- package/dist/tools/catalog/capabilities/generated/parent-tool-definitions.generated.d.ts +0 -3
- package/dist/tools/catalog/capabilities/generated/parent-tool-definitions.generated.js +0 -23483
- package/dist/tools/catalog/capabilities/hashing.d.ts +0 -14
- package/dist/tools/catalog/capabilities/hashing.js +0 -80
- package/dist/tools/catalog/capabilities/identifiers.d.ts +0 -21
- package/dist/tools/catalog/capabilities/identifiers.js +0 -47
- package/dist/tools/catalog/capabilities/json-schema.d.ts +0 -12
- package/dist/tools/catalog/capabilities/json-schema.js +0 -71
- package/dist/tools/catalog/capabilities/model.d.ts +0 -100
- package/dist/tools/catalog/capabilities/model.js +0 -2
- package/dist/tools/catalog/capabilities/parser.d.ts +0 -5
- package/dist/tools/catalog/capabilities/parser.js +0 -41
- package/dist/tools/catalog/capabilities/record-fields.d.ts +0 -114
- package/dist/tools/catalog/capabilities/record-fields.js +0 -91
- package/dist/tools/catalog/capabilities/record-folding.d.ts +0 -3
- package/dist/tools/catalog/capabilities/record-folding.js +0 -136
- package/dist/tools/catalog/capabilities/record-hashing.d.ts +0 -3
- package/dist/tools/catalog/capabilities/record-hashing.js +0 -33
- package/dist/tools/catalog/capabilities/record-schema.d.ts +0 -221
- package/dist/tools/catalog/capabilities/record-schema.js +0 -22
- package/dist/tools/catalog/capabilities/records/aggregate.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/aggregate.js +0 -60
- package/dist/tools/catalog/capabilities/records/build-environment/atmosphere.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/atmosphere.data.js +0 -124
- package/dist/tools/catalog/capabilities/records/build-environment/foliage.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/foliage.data.js +0 -162
- package/dist/tools/catalog/capabilities/records/build-environment/helpers.d.ts +0 -9
- package/dist/tools/catalog/capabilities/records/build-environment/helpers.js +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/build-environment/index.js +0 -28
- package/dist/tools/catalog/capabilities/records/build-environment/landscape.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/landscape.data.js +0 -166
- package/dist/tools/catalog/capabilities/records/build-environment/lighting.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/lighting.data.js +0 -183
- package/dist/tools/catalog/capabilities/records/build-environment/procedural.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/procedural.data.js +0 -72
- package/dist/tools/catalog/capabilities/records/build-environment/properties.d.ts +0 -166
- package/dist/tools/catalog/capabilities/records/build-environment/properties.js +0 -212
- package/dist/tools/catalog/capabilities/records/build-environment/render-postprocess.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/render-postprocess.data.js +0 -40
- package/dist/tools/catalog/capabilities/records/build-environment/render-raytrace.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/render-raytrace.data.js +0 -39
- package/dist/tools/catalog/capabilities/records/build-environment/render-screen.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/render-screen.data.js +0 -36
- package/dist/tools/catalog/capabilities/records/build-environment/spline.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/spline.data.js +0 -200
- package/dist/tools/catalog/capabilities/records/build-environment/water.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/water.data.js +0 -83
- package/dist/tools/catalog/capabilities/records/build-environment/weather.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/build-environment/weather.data.js +0 -52
- package/dist/tools/catalog/capabilities/records/compensation.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/compensation.js +0 -15
- package/dist/tools/catalog/capabilities/records/control-actor/advanced-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-actor/advanced-records.js +0 -135
- package/dist/tools/catalog/capabilities/records/control-actor/component-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-actor/component-records.js +0 -107
- package/dist/tools/catalog/capabilities/records/control-actor/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/control-actor/index.js +0 -18
- package/dist/tools/catalog/capabilities/records/control-actor/properties.d.ts +0 -103
- package/dist/tools/catalog/capabilities/records/control-actor/properties.js +0 -94
- package/dist/tools/catalog/capabilities/records/control-actor/search-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-actor/search-records.js +0 -322
- package/dist/tools/catalog/capabilities/records/control-actor/spawn-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-actor/spawn-records.js +0 -305
- package/dist/tools/catalog/capabilities/records/control-actor/state-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-actor/state-records.js +0 -129
- package/dist/tools/catalog/capabilities/records/control-actor/transform-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-actor/transform-records.js +0 -280
- package/dist/tools/catalog/capabilities/records/control-editor/asset.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/asset.js +0 -134
- package/dist/tools/catalog/capabilities/records/control-editor/bookmark.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/bookmark.js +0 -27
- package/dist/tools/catalog/capabilities/records/control-editor/camera.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/camera.js +0 -65
- package/dist/tools/catalog/capabilities/records/control-editor/command.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/command.js +0 -251
- package/dist/tools/catalog/capabilities/records/control-editor/history.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/history.js +0 -27
- package/dist/tools/catalog/capabilities/records/control-editor/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/control-editor/index.js +0 -28
- package/dist/tools/catalog/capabilities/records/control-editor/input.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/input.js +0 -50
- package/dist/tools/catalog/capabilities/records/control-editor/properties.d.ts +0 -77
- package/dist/tools/catalog/capabilities/records/control-editor/properties.js +0 -70
- package/dist/tools/catalog/capabilities/records/control-editor/recording.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/recording.js +0 -31
- package/dist/tools/catalog/capabilities/records/control-editor/screenshot.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/screenshot.js +0 -76
- package/dist/tools/catalog/capabilities/records/control-editor/session.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/session.js +0 -137
- package/dist/tools/catalog/capabilities/records/control-editor/timing.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/timing.js +0 -59
- package/dist/tools/catalog/capabilities/records/control-editor/viewport.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/control-editor/viewport.js +0 -91
- package/dist/tools/catalog/capabilities/records/core/builder.d.ts +0 -35
- package/dist/tools/catalog/capabilities/records/core/builder.js +0 -46
- package/dist/tools/catalog/capabilities/records/folds/animation-physics.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/animation-physics.folds.js +0 -113
- package/dist/tools/catalog/capabilities/records/folds/build-environment.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/build-environment.folds.js +0 -165
- package/dist/tools/catalog/capabilities/records/folds/control-actor.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/control-actor.folds.js +0 -61
- package/dist/tools/catalog/capabilities/records/folds/control-editor.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/control-editor.folds.js +0 -52
- package/dist/tools/catalog/capabilities/records/folds/inspect.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/inspect.folds.js +0 -50
- package/dist/tools/catalog/capabilities/records/folds/manage-ai.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-ai.folds.js +0 -96
- package/dist/tools/catalog/capabilities/records/folds/manage-asset.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-asset.folds.js +0 -226
- package/dist/tools/catalog/capabilities/records/folds/manage-audio.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-audio.folds.js +0 -70
- package/dist/tools/catalog/capabilities/records/folds/manage-blueprint.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-blueprint.folds.js +0 -137
- package/dist/tools/catalog/capabilities/records/folds/manage-character.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-character.folds.js +0 -19
- package/dist/tools/catalog/capabilities/records/folds/manage-combat.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-combat.folds.js +0 -37
- package/dist/tools/catalog/capabilities/records/folds/manage-effect.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-effect.folds.js +0 -59
- package/dist/tools/catalog/capabilities/records/folds/manage-gas.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-gas.folds.js +0 -42
- package/dist/tools/catalog/capabilities/records/folds/manage-geometry.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-geometry.folds.js +0 -69
- package/dist/tools/catalog/capabilities/records/folds/manage-interaction.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-interaction.folds.js +0 -17
- package/dist/tools/catalog/capabilities/records/folds/manage-inventory.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-inventory.folds.js +0 -27
- package/dist/tools/catalog/capabilities/records/folds/manage-level-structure.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-level-structure.folds.js +0 -30
- package/dist/tools/catalog/capabilities/records/folds/manage-level.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-level.folds.js +0 -28
- package/dist/tools/catalog/capabilities/records/folds/manage-networking.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-networking.folds.js +0 -86
- package/dist/tools/catalog/capabilities/records/folds/manage-pcg.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-pcg.folds.js +0 -22
- package/dist/tools/catalog/capabilities/records/folds/manage-sequence.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/manage-sequence.folds.js +0 -106
- package/dist/tools/catalog/capabilities/records/folds/system-control.folds.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/folds/system-control.folds.js +0 -62
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/animation-properties.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/animation-properties.js +0 -82
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/authoring-1.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/authoring-1.data.js +0 -224
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/authoring-2.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/authoring-2.data.js +0 -179
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/authoring-3.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/authoring-3.data.js +0 -123
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/index.js +0 -14
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-bone.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-bone.data.js +0 -52
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-physics-morph.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-physics-morph.data.js +0 -97
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-read-alias.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-read-alias.data.js +0 -141
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-socket-weight.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton-socket-weight.data.js +0 -80
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/animation-physics/skeleton.data.js +0 -11
- package/dist/tools/catalog/capabilities/records/gameplay/helpers.d.ts +0 -10
- package/dist/tools/catalog/capabilities/records/gameplay/helpers.js +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/add-actions.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/add-actions.data.js +0 -200
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/builder.d.ts +0 -24
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/builder.js +0 -34
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/configure-actions.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/configure-actions.data.js +0 -203
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/create-read-actions.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/create-read-actions.data.js +0 -233
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/properties-navigation.d.ts +0 -32
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/properties-navigation.js +0 -34
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/properties.d.ts +0 -74
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/properties.js +0 -112
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/records.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/records.js +0 -14
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/set-actions.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-ai/set-actions.data.js +0 -203
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character-1.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character-1.data.js +0 -81
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character-2.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character-2.data.js +0 -46
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character-3.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character-3.data.js +0 -73
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character.props.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/character.props.js +0 -83
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/manage-character/index.js +0 -12
- package/dist/tools/catalog/capabilities/records/gameplay/manage-combat/combat-properties.d.ts +0 -88
- package/dist/tools/catalog/capabilities/records/gameplay/manage-combat/combat-properties.js +0 -70
- package/dist/tools/catalog/capabilities/records/gameplay/manage-combat/combat.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-combat/combat.data.js +0 -92
- package/dist/tools/catalog/capabilities/records/gameplay/manage-combat/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/manage-combat/index.js +0 -8
- package/dist/tools/catalog/capabilities/records/gameplay/manage-effect/effect-properties.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-effect/effect-properties.js +0 -67
- package/dist/tools/catalog/capabilities/records/gameplay/manage-effect/effect.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-effect/effect.data.js +0 -345
- package/dist/tools/catalog/capabilities/records/gameplay/manage-effect/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/manage-effect/index.js +0 -8
- package/dist/tools/catalog/capabilities/records/gameplay/manage-gas/gas.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-gas/gas.data.js +0 -146
- package/dist/tools/catalog/capabilities/records/gameplay/manage-gas/gas.props.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-gas/gas.props.js +0 -62
- package/dist/tools/catalog/capabilities/records/gameplay/manage-gas/index.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-gas/index.js +0 -5
- package/dist/tools/catalog/capabilities/records/gameplay/manage-interaction/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/manage-interaction/index.js +0 -8
- package/dist/tools/catalog/capabilities/records/gameplay/manage-interaction/interaction.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-interaction/interaction.data.js +0 -253
- package/dist/tools/catalog/capabilities/records/gameplay/manage-interaction/schema.d.ts +0 -18
- package/dist/tools/catalog/capabilities/records/gameplay/manage-interaction/schema.js +0 -52
- package/dist/tools/catalog/capabilities/records/gameplay/manage-inventory/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/manage-inventory/index.js +0 -8
- package/dist/tools/catalog/capabilities/records/gameplay/manage-inventory/inventory.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/gameplay/manage-inventory/inventory.data.js +0 -331
- package/dist/tools/catalog/capabilities/records/gameplay/manage-inventory/schema.d.ts +0 -19
- package/dist/tools/catalog/capabilities/records/gameplay/manage-inventory/schema.js +0 -71
- package/dist/tools/catalog/capabilities/records/gameplay/properties.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/gameplay/properties.js +0 -94
- package/dist/tools/catalog/capabilities/records/inspect/component-actor.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/inspect/component-actor.data.js +0 -182
- package/dist/tools/catalog/capabilities/records/inspect/global.data.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/inspect/global.data.js +0 -121
- package/dist/tools/catalog/capabilities/records/inspect/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/inspect/index.js +0 -17
- package/dist/tools/catalog/capabilities/records/inspect/inspect-records.shared.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/inspect/inspect-records.shared.js +0 -9
- package/dist/tools/catalog/capabilities/records/inspect/object-property.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/inspect/object-property.data.js +0 -481
- package/dist/tools/catalog/capabilities/records/inspect/properties.d.ts +0 -31
- package/dist/tools/catalog/capabilities/records/inspect/properties.js +0 -30
- package/dist/tools/catalog/capabilities/records/inspect/runtime.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/inspect/runtime.data.js +0 -37
- package/dist/tools/catalog/capabilities/records/inspect/stats.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/inspect/stats.data.js +0 -91
- package/dist/tools/catalog/capabilities/records/manage-asset/asset-advanced.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/asset-advanced.js +0 -185
- package/dist/tools/catalog/capabilities/records/manage-asset/asset-lifecycle.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/asset-lifecycle.js +0 -136
- package/dist/tools/catalog/capabilities/records/manage-asset/asset-query.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/asset-query.js +0 -95
- package/dist/tools/catalog/capabilities/records/manage-asset/builder.d.ts +0 -54
- package/dist/tools/catalog/capabilities/records/manage-asset/builder.js +0 -91
- package/dist/tools/catalog/capabilities/records/manage-asset/content-sources.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/content-sources.js +0 -314
- package/dist/tools/catalog/capabilities/records/manage-asset/datatable-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/datatable-records.js +0 -51
- package/dist/tools/catalog/capabilities/records/manage-asset/enum-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/enum-records.js +0 -38
- package/dist/tools/catalog/capabilities/records/manage-asset/index.d.ts +0 -6
- package/dist/tools/catalog/capabilities/records/manage-asset/index.js +0 -27
- package/dist/tools/catalog/capabilities/records/manage-asset/material-create.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/material-create.js +0 -57
- package/dist/tools/catalog/capabilities/records/manage-asset/material-graph.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/material-graph.js +0 -152
- package/dist/tools/catalog/capabilities/records/manage-asset/material-nodes.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/material-nodes.js +0 -77
- package/dist/tools/catalog/capabilities/records/manage-asset/material-params.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/material-params.js +0 -88
- package/dist/tools/catalog/capabilities/records/manage-asset/struct-records.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/struct-records.js +0 -82
- package/dist/tools/catalog/capabilities/records/manage-asset/texture-adjust.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/texture-adjust.js +0 -42
- package/dist/tools/catalog/capabilities/records/manage-asset/texture-config.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/texture-config.js +0 -26
- package/dist/tools/catalog/capabilities/records/manage-asset/texture-create.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-asset/texture-create.js +0 -28
- package/dist/tools/catalog/capabilities/records/manage-audio/authoring.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-audio/authoring.data.js +0 -121
- package/dist/tools/catalog/capabilities/records/manage-audio/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/manage-audio/index.js +0 -10
- package/dist/tools/catalog/capabilities/records/manage-audio/runtime.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-audio/runtime.data.js +0 -30
- package/dist/tools/catalog/capabilities/records/manage-blueprint/blueprint-lifecycle.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/blueprint-lifecycle.js +0 -152
- package/dist/tools/catalog/capabilities/records/manage-blueprint/functions-events.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/functions-events.js +0 -103
- package/dist/tools/catalog/capabilities/records/manage-blueprint/graph-batch.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/graph-batch.js +0 -80
- package/dist/tools/catalog/capabilities/records/manage-blueprint/graph-nodes.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/graph-nodes.js +0 -274
- package/dist/tools/catalog/capabilities/records/manage-blueprint/graph-pins.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/graph-pins.js +0 -153
- package/dist/tools/catalog/capabilities/records/manage-blueprint/helpers.d.ts +0 -11
- package/dist/tools/catalog/capabilities/records/manage-blueprint/helpers.js +0 -5
- package/dist/tools/catalog/capabilities/records/manage-blueprint/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/manage-blueprint/index.js +0 -40
- package/dist/tools/catalog/capabilities/records/manage-blueprint/probe.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/probe.js +0 -30
- package/dist/tools/catalog/capabilities/records/manage-blueprint/properties.d.ts +0 -417
- package/dist/tools/catalog/capabilities/records/manage-blueprint/properties.js +0 -237
- package/dist/tools/catalog/capabilities/records/manage-blueprint/scs-components.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/scs-components.js +0 -203
- package/dist/tools/catalog/capabilities/records/manage-blueprint/variables-metadata.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/variables-metadata.js +0 -140
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-animation.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-animation.js +0 -124
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-bindings.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-bindings.js +0 -108
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-content.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-content.js +0 -113
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-game-ui.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-game-ui.js +0 -56
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-info.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-info.js +0 -107
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-layout.d.ts +0 -24
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-layout.js +0 -45
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-lifecycle.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-lifecycle.js +0 -189
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-panels.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-panels.js +0 -153
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-templates.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-blueprint/widget-templates.js +0 -47
- package/dist/tools/catalog/capabilities/records/manage-level/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/manage-level/index.js +0 -7
- package/dist/tools/catalog/capabilities/records/manage-level/lifecycle.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-level/lifecycle.data.js +0 -132
- package/dist/tools/catalog/capabilities/records/manage-level/operations-io.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-level/operations-io.data.js +0 -32
- package/dist/tools/catalog/capabilities/records/manage-level/operations-power.data.d.ts +0 -5
- package/dist/tools/catalog/capabilities/records/manage-level/operations-power.data.js +0 -178
- package/dist/tools/catalog/capabilities/records/manage-level/operations.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-level/operations.data.js +0 -88
- package/dist/tools/catalog/capabilities/records/manage-level/properties.d.ts +0 -45
- package/dist/tools/catalog/capabilities/records/manage-level/properties.js +0 -45
- package/dist/tools/catalog/capabilities/records/manage-networking/framework.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-networking/framework.data.js +0 -45
- package/dist/tools/catalog/capabilities/records/manage-networking/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/manage-networking/index.js +0 -15
- package/dist/tools/catalog/capabilities/records/manage-networking/input.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-networking/input.data.js +0 -24
- package/dist/tools/catalog/capabilities/records/manage-networking/replication.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-networking/replication.data.js +0 -60
- package/dist/tools/catalog/capabilities/records/manage-networking/session.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-networking/session.data.js +0 -26
- package/dist/tools/catalog/capabilities/records/manage-sequence/alias-props.d.ts +0 -49
- package/dist/tools/catalog/capabilities/records/manage-sequence/alias-props.js +0 -78
- package/dist/tools/catalog/capabilities/records/manage-sequence/cinematic.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/cinematic.js +0 -166
- package/dist/tools/catalog/capabilities/records/manage-sequence/helpers.d.ts +0 -119
- package/dist/tools/catalog/capabilities/records/manage-sequence/helpers.js +0 -108
- package/dist/tools/catalog/capabilities/records/manage-sequence/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/manage-sequence/index.js +0 -28
- package/dist/tools/catalog/capabilities/records/manage-sequence/media.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/media.js +0 -119
- package/dist/tools/catalog/capabilities/records/manage-sequence/metadata.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/metadata.js +0 -41
- package/dist/tools/catalog/capabilities/records/manage-sequence/mrq.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/mrq.js +0 -146
- package/dist/tools/catalog/capabilities/records/manage-sequence/replay.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/replay.js +0 -103
- package/dist/tools/catalog/capabilities/records/manage-sequence/take.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/take.js +0 -59
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-bindings.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-bindings.js +0 -88
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-lifecycle.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-lifecycle.js +0 -132
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-playback.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-playback.js +0 -81
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-state-ranges.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-state-ranges.js +0 -95
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-tracks.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-sequence/timeline-tracks.js +0 -147
- package/dist/tools/catalog/capabilities/records/manage-tools/index.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/manage-tools/index.js +0 -276
- package/dist/tools/catalog/capabilities/records/parent-metadata.d.ts +0 -8
- package/dist/tools/catalog/capabilities/records/parent-metadata.js +0 -103
- package/dist/tools/catalog/capabilities/records/shared/fold-build.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/shared/fold-build.js +0 -175
- package/dist/tools/catalog/capabilities/records/shared/fold-members.d.ts +0 -5
- package/dist/tools/catalog/capabilities/records/shared/fold-members.js +0 -63
- package/dist/tools/catalog/capabilities/records/shared/fold-spec.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/shared/fold-spec.js +0 -10
- package/dist/tools/catalog/capabilities/records/shared/fold-support.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/shared/fold-support.js +0 -4
- package/dist/tools/catalog/capabilities/records/shared/fold-types.d.ts +0 -16
- package/dist/tools/catalog/capabilities/records/shared/fold-types.js +0 -2
- package/dist/tools/catalog/capabilities/records/shared/fold-widen.d.ts +0 -5
- package/dist/tools/catalog/capabilities/records/shared/fold-widen.js +0 -104
- package/dist/tools/catalog/capabilities/records/shared/fold.d.ts +0 -6
- package/dist/tools/catalog/capabilities/records/shared/fold.js +0 -37
- package/dist/tools/catalog/capabilities/records/shared/light-text.d.ts +0 -13
- package/dist/tools/catalog/capabilities/records/shared/light-text.js +0 -37
- package/dist/tools/catalog/capabilities/records/shared/record-presets.d.ts +0 -11
- package/dist/tools/catalog/capabilities/records/shared/record-presets.js +0 -41
- package/dist/tools/catalog/capabilities/records/shared/schema-props.d.ts +0 -8
- package/dist/tools/catalog/capabilities/records/shared/schema-props.js +0 -13
- package/dist/tools/catalog/capabilities/records/system-control/console.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/system-control/console.js +0 -149
- package/dist/tools/catalog/capabilities/records/system-control/index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/system-control/index.js +0 -18
- package/dist/tools/catalog/capabilities/records/system-control/insights.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/system-control/insights.js +0 -194
- package/dist/tools/catalog/capabilities/records/system-control/performance.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/system-control/performance.js +0 -336
- package/dist/tools/catalog/capabilities/records/system-control/plugins.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/system-control/plugins.js +0 -101
- package/dist/tools/catalog/capabilities/records/system-control/system-ops.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/system-control/system-ops.js +0 -523
- package/dist/tools/catalog/capabilities/records/system-control/widget-audio-viewport.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/system-control/widget-audio-viewport.js +0 -115
- package/dist/tools/catalog/capabilities/records/unfolded.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/unfolded.js +0 -51
- package/dist/tools/catalog/capabilities/records/utility/example-values.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/utility/example-values.js +0 -195
- package/dist/tools/catalog/capabilities/records/utility/output-glossary.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/utility/output-glossary.js +0 -120
- package/dist/tools/catalog/capabilities/records/utility/utility-output-schema.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/utility/utility-output-schema.js +0 -16
- package/dist/tools/catalog/capabilities/records/utility/utility-record-builders.d.ts +0 -29
- package/dist/tools/catalog/capabilities/records/utility/utility-record-builders.js +0 -61
- package/dist/tools/catalog/capabilities/records/utility/utility-schema-pins.d.ts +0 -9
- package/dist/tools/catalog/capabilities/records/utility/utility-schema-pins.js +0 -294
- package/dist/tools/catalog/capabilities/records/world/builder.d.ts +0 -19
- package/dist/tools/catalog/capabilities/records/world/builder.js +0 -21
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.deform.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.deform.data.js +0 -74
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.dynamicmesh.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.dynamicmesh.data.js +0 -260
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.index.js +0 -16
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.operations.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.operations.data.js +0 -191
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.optimize.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.optimize.data.js +0 -280
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.primitives.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-geometry.primitives.data.js +0 -166
- package/dist/tools/catalog/capabilities/records/world/manage-level-structure.index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/world/manage-level-structure.index.js +0 -10
- package/dist/tools/catalog/capabilities/records/world/manage-level-structure.structure.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-level-structure.structure.data.js +0 -180
- package/dist/tools/catalog/capabilities/records/world/manage-level-structure.volume.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-level-structure.volume.data.js +0 -141
- package/dist/tools/catalog/capabilities/records/world/manage-pcg.async.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-pcg.async.data.js +0 -21
- package/dist/tools/catalog/capabilities/records/world/manage-pcg.graph.data.d.ts +0 -3
- package/dist/tools/catalog/capabilities/records/world/manage-pcg.graph.data.js +0 -196
- package/dist/tools/catalog/capabilities/records/world/manage-pcg.index.d.ts +0 -4
- package/dist/tools/catalog/capabilities/records/world/manage-pcg.index.js +0 -10
- package/dist/tools/catalog/capabilities/records/world/properties.d.ts +0 -200
- package/dist/tools/catalog/capabilities/records/world/properties.js +0 -239
- package/dist/tools/catalog/capabilities/retrieval/alias-fold.d.ts +0 -7
- package/dist/tools/catalog/capabilities/retrieval/alias-fold.js +0 -20
- package/dist/tools/catalog/capabilities/retrieval/constants.d.ts +0 -56
- package/dist/tools/catalog/capabilities/retrieval/constants.js +0 -71
- package/dist/tools/catalog/capabilities/retrieval/scoring.d.ts +0 -52
- package/dist/tools/catalog/capabilities/retrieval/scoring.js +0 -289
- package/dist/tools/catalog/capabilities/retrieval/tokenize.d.ts +0 -4
- package/dist/tools/catalog/capabilities/retrieval/tokenize.js +0 -47
- package/dist/tools/catalog/capabilities/semantic/authorization.d.ts +0 -20
- package/dist/tools/catalog/capabilities/semantic/authorization.js +0 -25
- package/dist/tools/catalog/capabilities/semantic/envelope.d.ts +0 -244
- package/dist/tools/catalog/capabilities/semantic/envelope.js +0 -81
- package/dist/tools/catalog/capabilities/semantic/errors.d.ts +0 -122
- package/dist/tools/catalog/capabilities/semantic/errors.js +0 -163
- package/dist/tools/catalog/capabilities/semantic/execution-options.d.ts +0 -23
- package/dist/tools/catalog/capabilities/semantic/execution-options.js +0 -29
- package/dist/tools/catalog/capabilities/semantic/handles.d.ts +0 -33
- package/dist/tools/catalog/capabilities/semantic/handles.js +0 -28
- package/dist/tools/catalog/capabilities/semantic/ids.d.ts +0 -14
- package/dist/tools/catalog/capabilities/semantic/ids.js +0 -36
- package/dist/tools/catalog/capabilities/semantic/live-state-revisions.d.ts +0 -11
- package/dist/tools/catalog/capabilities/semantic/live-state-revisions.js +0 -18
- package/dist/tools/catalog/capabilities/semantic/paths.d.ts +0 -9
- package/dist/tools/catalog/capabilities/semantic/paths.js +0 -148
- package/dist/tools/catalog/capabilities/semantic/receipt-outcome.d.ts +0 -10
- package/dist/tools/catalog/capabilities/semantic/receipt-outcome.js +0 -114
- package/dist/tools/catalog/capabilities/semantic/receipt-redaction.d.ts +0 -19
- package/dist/tools/catalog/capabilities/semantic/receipt-redaction.js +0 -176
- package/dist/tools/catalog/unreal-gateway-definition.d.ts +0 -5
- package/dist/tools/catalog/unreal-gateway-definition.js +0 -147
- package/dist/tools/definitions/shared/tool-definition.d.ts +0 -9
- package/dist/tools/definitions/shared/tool-definition.js +0 -2
- package/dist/tools/dynamic/dynamic-tool-manager.d.ts +0 -55
- package/dist/tools/dynamic/dynamic-tool-manager.js +0 -171
- package/dist/tools/handlers/foundation/arguments/handler-argument-validation.d.ts +0 -2
- package/dist/tools/handlers/foundation/arguments/handler-argument-validation.js +0 -160
- package/dist/tools/handlers/foundation/dispatch/automation-request-dispatch.d.ts +0 -13
- package/dist/tools/handlers/foundation/dispatch/automation-request-dispatch.js +0 -60
- package/dist/tools/handlers/foundation/dispatch/handler-timeout.d.ts +0 -5
- package/dist/tools/handlers/foundation/dispatch/handler-timeout.js +0 -28
- package/dist/types/automation/automation-responses.d.ts +0 -18
- package/dist/types/automation/automation-responses.js +0 -2
- package/dist/types/tools/tool-interfaces.d.ts +0 -26
- package/dist/types/tools/tool-interfaces.js +0 -2
- package/dist/unreal-bridge.d.ts +0 -27
- package/dist/unreal-bridge.js +0 -59
- package/dist/utils/collections/bounded.d.ts +0 -7
- package/dist/utils/collections/bounded.js +0 -13
- package/dist/utils/commands/command-validator.d.ts +0 -4
- package/dist/utils/commands/command-validator.js +0 -20
- package/dist/utils/commands/console-command-policy-matching.d.ts +0 -6
- package/dist/utils/commands/console-command-policy-matching.js +0 -38
- package/dist/utils/commands/console-command-policy-rules.d.ts +0 -179
- package/dist/utils/commands/console-command-policy-rules.js +0 -173
- package/dist/utils/config/ini-reader.d.ts +0 -3
- package/dist/utils/logging/log-redaction.d.ts +0 -4
- package/dist/utils/logging/log-redaction.js +0 -27
- package/dist/utils/logging/logger.d.ts +0 -13
- package/dist/utils/paths/content-path-policy.d.ts +0 -6
- package/dist/utils/paths/content-path-policy.js +0 -29
- package/dist/utils/paths/path-security.d.ts +0 -10
- package/dist/utils/paths/path-security.js +0 -115
- package/dist/utils/responses/automation-frame-normalization.d.ts +0 -2
- package/dist/utils/responses/automation-frame-normalization.js +0 -51
- package/dist/utils/responses/gateway-reply-compaction.d.ts +0 -6
- package/dist/utils/responses/gateway-reply-compaction.js +0 -264
- package/dist/utils/responses/response-content.d.ts +0 -4
- package/dist/utils/responses/response-content.js +0 -54
- package/dist/utils/responses/response-validator.d.ts +0 -2
- package/dist/utils/responses/response-validator.js +0 -61
- package/dist/utils/serialization/ordering.d.ts +0 -9
- package/dist/utils/serialization/ordering.js +0 -17
- package/dist/utils/serialization/safe-json.d.ts +0 -2
- package/dist/utils/serialization/safe-json.js +0 -44
- package/dist/utils/validation/type-guards.d.ts +0 -4
- package/dist/utils/validation/type-guards.js +0 -23
- package/dist/utils/validation/validation.d.ts +0 -3
- package/dist/utils/validation/validation.js +0 -82
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { legacyPairKey } from './gateway-capability-index.js';
|
|
2
|
-
import { closestMatches, buildNextCall, guideUnknownAction, MAX_SUGGESTIONS } from './gateway-guidance.js';
|
|
3
|
-
export function primaryLegacyPair(record) {
|
|
4
|
-
const first = record.legacyIds[0];
|
|
5
|
-
return first === undefined
|
|
6
|
-
? { tool: record.routing.parentTool, action: record.routing.dispatchAction }
|
|
7
|
-
: { tool: first.tool, action: first.action };
|
|
8
|
-
}
|
|
9
|
-
function foldedPairForAlias(record, alias) {
|
|
10
|
-
if (alias === undefined)
|
|
11
|
-
return undefined;
|
|
12
|
-
const action = alias.slice(alias.lastIndexOf('.') + 1);
|
|
13
|
-
const folded = record.legacyIds.find((legacy) => legacy.folded !== undefined && String(legacy.action) === action);
|
|
14
|
-
return folded === undefined ? undefined : { tool: folded.tool, action: folded.action };
|
|
15
|
-
}
|
|
16
|
-
function fail(failure) {
|
|
17
|
-
return { ok: false, failure };
|
|
18
|
-
}
|
|
19
|
-
function lookupByCapability(capability, index) {
|
|
20
|
-
if (capability === undefined)
|
|
21
|
-
return { kind: 'absent' };
|
|
22
|
-
const canonical = index.byId.get(capability);
|
|
23
|
-
if (canonical !== undefined)
|
|
24
|
-
return { kind: 'found', record: canonical };
|
|
25
|
-
const owned = index.byAlias.get(capability);
|
|
26
|
-
if (owned !== undefined)
|
|
27
|
-
return { kind: 'found', record: owned, alias: capability };
|
|
28
|
-
const suggestions = closestMatches(capability, [...index.byId.keys()], MAX_SUGGESTIONS);
|
|
29
|
-
return {
|
|
30
|
-
kind: 'failed',
|
|
31
|
-
failure: {
|
|
32
|
-
errorCode: 'UNKNOWN_CAPABILITY',
|
|
33
|
-
message: `Unknown capability '${capability}'. Call search before execute.`,
|
|
34
|
-
suggestions,
|
|
35
|
-
nextCall: suggestions[0] === undefined
|
|
36
|
-
? buildNextCall({ operation: 'search' })
|
|
37
|
-
: { operation: 'describe', capability: suggestions[0] }
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function lookupByLegacyPair(requestedTool, action, index) {
|
|
42
|
-
if (requestedTool === undefined && action === undefined)
|
|
43
|
-
return { kind: 'absent' };
|
|
44
|
-
const tool = requestedTool !== undefined && !index.actionsByParentTool.has(requestedTool)
|
|
45
|
-
? index.parentToolByNamespace.get(requestedTool) ?? requestedTool
|
|
46
|
-
: requestedTool;
|
|
47
|
-
if (tool === undefined || !index.actionsByParentTool.has(tool)) {
|
|
48
|
-
const suggestions = closestMatches(tool ?? '', [...index.actionsByParentTool.keys()], MAX_SUGGESTIONS);
|
|
49
|
-
return {
|
|
50
|
-
kind: 'failed',
|
|
51
|
-
failure: {
|
|
52
|
-
errorCode: 'UNKNOWN_TOOL',
|
|
53
|
-
message: 'Unknown tool. Call search before execute.',
|
|
54
|
-
suggestions,
|
|
55
|
-
nextCall: suggestions[0] === undefined
|
|
56
|
-
? buildNextCall({ operation: 'search' })
|
|
57
|
-
: buildNextCall({ operation: 'describe', tool: suggestions[0] })
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const record = action === undefined ? undefined : index.byLegacyPair.get(legacyPairKey(tool, action));
|
|
62
|
-
if (record === undefined) {
|
|
63
|
-
const available = index.actionsByParentTool.get(tool) ?? [];
|
|
64
|
-
const owners = action === undefined
|
|
65
|
-
? []
|
|
66
|
-
: [...index.actionsByParentTool].filter(([, actions]) => actions.includes(action)).map(([owner]) => owner).sort();
|
|
67
|
-
const guide = guideUnknownAction(tool, action ?? '', available, owners);
|
|
68
|
-
return {
|
|
69
|
-
kind: 'failed',
|
|
70
|
-
failure: {
|
|
71
|
-
errorCode: 'UNKNOWN_ACTION',
|
|
72
|
-
message: `Unknown action ${action === undefined ? '' : `'${action}' `}for ${tool}.${guide.hint} Call describe before execute.`,
|
|
73
|
-
availableActions: available,
|
|
74
|
-
suggestions: guide.suggestions,
|
|
75
|
-
nextCall: guide.nextCall
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
return { kind: 'found', record, pair: { tool, action: action ?? '' } };
|
|
80
|
-
}
|
|
81
|
-
export function resolveExecuteTarget(request, index) {
|
|
82
|
-
const fromCapability = lookupByCapability(request.capability, index);
|
|
83
|
-
if (fromCapability.kind === 'failed')
|
|
84
|
-
return fail(fromCapability.failure);
|
|
85
|
-
const fromLegacy = lookupByLegacyPair(request.tool, request.action, index);
|
|
86
|
-
if (fromLegacy.kind === 'failed')
|
|
87
|
-
return fail(fromLegacy.failure);
|
|
88
|
-
if (fromCapability.kind === 'found' && fromLegacy.kind === 'found'
|
|
89
|
-
&& fromCapability.record.id !== fromLegacy.record.id) {
|
|
90
|
-
return fail({
|
|
91
|
-
errorCode: 'FORM_CONFLICT',
|
|
92
|
-
capabilityId: fromCapability.record.id,
|
|
93
|
-
message: `capability '${fromCapability.record.id}' conflicts with tool/action '${fromLegacy.record.id}'. Supply one form.`,
|
|
94
|
-
nextCall: { operation: 'describe', capability: fromCapability.record.id }
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
const resolved = fromCapability.kind === 'found' ? fromCapability.record : undefined;
|
|
98
|
-
const migrated = fromLegacy.kind === 'found' ? fromLegacy.record : undefined;
|
|
99
|
-
const record = resolved ?? migrated;
|
|
100
|
-
if (record === undefined) {
|
|
101
|
-
return fail({
|
|
102
|
-
errorCode: 'MISSING_SELECTOR',
|
|
103
|
-
message: 'execute requires either capability or tool + action. Call describe with no arguments to list the parent tools, or search to find a capability.',
|
|
104
|
-
nextCall: buildNextCall({ operation: 'describe' })
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
const legacy = fromLegacy.kind === 'found'
|
|
108
|
-
? fromLegacy.pair
|
|
109
|
-
: (fromCapability.kind === 'found' ? foldedPairForAlias(record, fromCapability.alias) : undefined) ?? primaryLegacyPair(record);
|
|
110
|
-
return {
|
|
111
|
-
ok: true,
|
|
112
|
-
target: {
|
|
113
|
-
record,
|
|
114
|
-
legacy,
|
|
115
|
-
...(fromCapability.kind === 'found' && fromCapability.alias !== undefined
|
|
116
|
-
? { resolvedFromAlias: fromCapability.alias }
|
|
117
|
-
: {}),
|
|
118
|
-
...(fromLegacy.kind === 'found' ? { migratedFrom: fromLegacy.pair } : {})
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=gateway-execute-lookup.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ResolvedFailure } from './gateway-execute-envelope.js';
|
|
2
|
-
import type { ExecuteTarget } from './gateway-execute-resolve.js';
|
|
3
|
-
import { type ConsentGrant } from '../../tools/catalog/capabilities/semantic/authorization.js';
|
|
4
|
-
import type { BridgeAuthority } from '../../automation/message-schema.js';
|
|
5
|
-
export declare function checkExpectedCatalogRevision(options: Record<string, unknown> | undefined): ResolvedFailure | undefined;
|
|
6
|
-
export declare function checkScopeAuthorization(target: ExecuteTarget, authority: BridgeAuthority | undefined): ResolvedFailure | undefined;
|
|
7
|
-
export declare function matchedFoldedGrant(name: string, target: ExecuteTarget): ExecuteTarget['record']['legacyIds'][number] | undefined;
|
|
8
|
-
export declare function checkConsentAuthorization(target: ExecuteTarget, authority: BridgeAuthority | undefined, consent: ConsentGrant | undefined): ResolvedFailure | undefined;
|
|
9
|
-
//# sourceMappingURL=gateway-execute-policy.d.ts.map
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { catalogRevision } from './gateway-capability-index.js';
|
|
2
|
-
import { buildNextCall } from './gateway-guidance.js';
|
|
3
|
-
import { CatalogRevisionSchema } from '../../tools/catalog/capabilities/semantic/ids.js';
|
|
4
|
-
import { isConsentSatisfied, isScopeAuthorized } from '../../tools/catalog/capabilities/semantic/authorization.js';
|
|
5
|
-
import { POLICY_SCOPES } from '../../tools/catalog/capabilities/constants.js';
|
|
6
|
-
function knownScopes(advertised) {
|
|
7
|
-
const known = POLICY_SCOPES;
|
|
8
|
-
return advertised.filter((scope) => known.includes(scope));
|
|
9
|
-
}
|
|
10
|
-
export function checkExpectedCatalogRevision(options) {
|
|
11
|
-
const expected = options?.expectedCatalogRevision;
|
|
12
|
-
if (expected === undefined)
|
|
13
|
-
return undefined;
|
|
14
|
-
const parsed = CatalogRevisionSchema.safeParse(expected);
|
|
15
|
-
if (!parsed.success) {
|
|
16
|
-
return {
|
|
17
|
-
errorCode: 'INVALID_OPTIONS',
|
|
18
|
-
message: 'options.expectedCatalogRevision must be a lowercase hex catalog-revision digest of 1..64 characters.',
|
|
19
|
-
pointer: '/options/expectedCatalogRevision'
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const current = catalogRevision();
|
|
23
|
-
if (parsed.data === current)
|
|
24
|
-
return undefined;
|
|
25
|
-
return {
|
|
26
|
-
errorCode: 'STALE_STATE',
|
|
27
|
-
message: `The capability catalog revision changed since it was read (expected '${parsed.data}', current '${current}'). Re-run search or describe and retry.`,
|
|
28
|
-
currentRevision: current,
|
|
29
|
-
expectedRevision: parsed.data,
|
|
30
|
-
nextCall: buildNextCall({ operation: 'search' })
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function checkScopeAuthorization(target, authority) {
|
|
34
|
-
const grantedScopes = authority?.scopes;
|
|
35
|
-
if (grantedScopes === undefined)
|
|
36
|
-
return undefined;
|
|
37
|
-
const requiredScope = target.record.policy.requiredScope;
|
|
38
|
-
if (isScopeAuthorized(requiredScope, knownScopes(grantedScopes))) {
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
errorCode: 'SCOPE_NOT_GRANTED',
|
|
43
|
-
message: `This action requires the '${requiredScope}' scope, which the active principal does not hold. Retry with a principal granted '${requiredScope}' (or admin).`,
|
|
44
|
-
requiredScope,
|
|
45
|
-
grantedScopes,
|
|
46
|
-
nextCall: buildNextCall({
|
|
47
|
-
operation: 'describe',
|
|
48
|
-
tool: target.record.routing.parentTool,
|
|
49
|
-
action: target.legacy.action
|
|
50
|
-
})
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function grantNamesCapability(name, target) {
|
|
54
|
-
const record = target.record;
|
|
55
|
-
if (name === String(record.id))
|
|
56
|
-
return true;
|
|
57
|
-
if ((record.aliases ?? []).some((alias) => String(alias) === name))
|
|
58
|
-
return true;
|
|
59
|
-
return (record.legacyIds ?? []).some((legacy) => `${String(legacy.tool)}.${String(legacy.action)}` === name);
|
|
60
|
-
}
|
|
61
|
-
export function matchedFoldedGrant(name, target) {
|
|
62
|
-
const record = target.record;
|
|
63
|
-
for (const legacy of record.legacyIds) {
|
|
64
|
-
if (legacy.folded !== undefined && `${String(legacy.tool)}.${String(legacy.action)}` === name) {
|
|
65
|
-
return legacy;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return undefined;
|
|
69
|
-
}
|
|
70
|
-
export function checkConsentAuthorization(target, authority, consent) {
|
|
71
|
-
if (authority?.scopes === undefined)
|
|
72
|
-
return undefined;
|
|
73
|
-
const policy = target.record.policy.consent;
|
|
74
|
-
if (policy === 'none')
|
|
75
|
-
return undefined;
|
|
76
|
-
const acknowledgement = consent !== undefined && grantNamesCapability(consent.capability, target)
|
|
77
|
-
? consent.acknowledge
|
|
78
|
-
: undefined;
|
|
79
|
-
if (isConsentSatisfied(policy, acknowledgement))
|
|
80
|
-
return undefined;
|
|
81
|
-
const acknowledge = policy === 'elevated' ? 'elevated' : 'explicit';
|
|
82
|
-
return {
|
|
83
|
-
errorCode: 'CONSENT_REQUIRED',
|
|
84
|
-
message: `This action requires ${policy} consent. Re-run with consent: { capability: '${target.record.id}', acknowledge: '${acknowledge}' }.`,
|
|
85
|
-
requiredScope: target.record.policy.requiredScope,
|
|
86
|
-
nextCall: buildNextCall({
|
|
87
|
-
operation: 'describe',
|
|
88
|
-
tool: target.record.routing.parentTool,
|
|
89
|
-
action: target.legacy.action
|
|
90
|
-
})
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=gateway-execute-policy.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { CapabilityRecord } from '../../tools/catalog/capabilities/model.js';
|
|
2
|
-
export type LegacyPair = {
|
|
3
|
-
readonly tool: string;
|
|
4
|
-
readonly action: string;
|
|
5
|
-
};
|
|
6
|
-
export type ExecuteTarget = {
|
|
7
|
-
readonly record: CapabilityRecord;
|
|
8
|
-
readonly legacy: LegacyPair;
|
|
9
|
-
readonly resolvedFromAlias?: string;
|
|
10
|
-
readonly migratedFrom?: LegacyPair;
|
|
11
|
-
};
|
|
12
|
-
export type ExecuteResolutionFailure = {
|
|
13
|
-
readonly errorCode: string;
|
|
14
|
-
readonly message: string;
|
|
15
|
-
readonly capabilityId?: string;
|
|
16
|
-
readonly suggestions?: readonly string[];
|
|
17
|
-
readonly nextCall?: Record<string, unknown>;
|
|
18
|
-
readonly availableActions?: readonly string[];
|
|
19
|
-
};
|
|
20
|
-
export type ExecuteResolution = {
|
|
21
|
-
readonly ok: true;
|
|
22
|
-
readonly target: ExecuteTarget;
|
|
23
|
-
} | {
|
|
24
|
-
readonly ok: false;
|
|
25
|
-
readonly failure: ExecuteResolutionFailure;
|
|
26
|
-
};
|
|
27
|
-
export { resolveExecuteTarget } from './gateway-execute-lookup.js';
|
|
28
|
-
//# sourceMappingURL=gateway-execute-resolve.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ExecuteTarget } from './gateway-execute-resolve.js';
|
|
2
|
-
import type { ResolvedFailure } from './gateway-execute-envelope.js';
|
|
3
|
-
import { type ExpectedRevisions } from '../../tools/catalog/capabilities/semantic/execution-options.js';
|
|
4
|
-
export type StaticCheck = {
|
|
5
|
-
readonly failure: ResolvedFailure;
|
|
6
|
-
} | {
|
|
7
|
-
readonly params: Record<string, unknown>;
|
|
8
|
-
readonly expectedRevisions?: ExpectedRevisions;
|
|
9
|
-
readonly timeoutMs?: number;
|
|
10
|
-
readonly unread: readonly string[];
|
|
11
|
-
};
|
|
12
|
-
export declare function checkStaticRequest(target: ExecuteTarget, args: Record<string, unknown>): StaticCheck;
|
|
13
|
-
//# sourceMappingURL=gateway-execute-static-check.d.ts.map
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { isRecord } from '../../utils/validation/type-guards.js';
|
|
2
|
-
import { dynamicToolManager } from '../../tools/dynamic/dynamic-tool-manager.js';
|
|
3
|
-
import { buildNextCall, closestMatches, MAX_SUGGESTIONS } from './gateway-guidance.js';
|
|
4
|
-
import { capabilityIndex } from './gateway-capability-index.js';
|
|
5
|
-
import { primaryLegacyPair } from './gateway-execute-lookup.js';
|
|
6
|
-
import { applyFoldedPins, inferSelector, requestedAction, unreadVariantParams } from './gateway-dispatch-by.js';
|
|
7
|
-
import { applyDeclaredDefaults, coerceVectorShapes, validateAgainstCapabilitySchema, VIOLATION_GATEWAY_CODES } from './gateway-schema-validate.js';
|
|
8
|
-
import { findControlKeyInParams, validateExecutionOptions } from './gateway-option-validate.js';
|
|
9
|
-
import { ExpectedRevisionsSchema } from '../../tools/catalog/capabilities/semantic/execution-options.js';
|
|
10
|
-
function declaredParameterNames(schema) {
|
|
11
|
-
return isRecord(schema.properties)
|
|
12
|
-
? Object.keys(schema.properties).filter((name) => name !== 'action').sort()
|
|
13
|
-
: [];
|
|
14
|
-
}
|
|
15
|
-
function validateInput(target, params) {
|
|
16
|
-
const record = target.record;
|
|
17
|
-
const declaresAction = isRecord(record.schemas.input.properties)
|
|
18
|
-
&& 'action' in record.schemas.input.properties;
|
|
19
|
-
const candidate = declaresAction
|
|
20
|
-
? { ...params, action: record.routing.dispatchAction }
|
|
21
|
-
: params;
|
|
22
|
-
const violation = validateAgainstCapabilitySchema(candidate, record.schemas.input);
|
|
23
|
-
if (violation === undefined)
|
|
24
|
-
return undefined;
|
|
25
|
-
const declared = declaredParameterNames(record.schemas.input);
|
|
26
|
-
const offending = violation.pointer.split('/').filter((part) => part.length > 0).pop() ?? '';
|
|
27
|
-
const suggestions = closestMatches(offending, declared, MAX_SUGGESTIONS);
|
|
28
|
-
return {
|
|
29
|
-
errorCode: VIOLATION_GATEWAY_CODES[violation.reason],
|
|
30
|
-
message: `${violation.message} for ${record.id}. Call describe before execution.`,
|
|
31
|
-
pointer: violation.pointer,
|
|
32
|
-
...(violation.reason === 'range' ? { field: violation.pointer } : {}),
|
|
33
|
-
suggestions,
|
|
34
|
-
allowedParameters: declared,
|
|
35
|
-
nextCall: buildNextCall({
|
|
36
|
-
operation: 'describe',
|
|
37
|
-
tool: record.routing.parentTool,
|
|
38
|
-
action: target.legacy.action,
|
|
39
|
-
param: suggestions[0]
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export function checkStaticRequest(target, args) {
|
|
44
|
-
const record = target.record;
|
|
45
|
-
const refuse = (failure) => ({ failure });
|
|
46
|
-
if (!dynamicToolManager.isToolEnabled(record.routing.parentTool)) {
|
|
47
|
-
return refuse({
|
|
48
|
-
errorCode: 'TOOL_DISABLED',
|
|
49
|
-
message: `Tool '${record.routing.parentTool}' is disabled or unavailable.`,
|
|
50
|
-
suggestions: closestMatches(record.routing.parentTool, [...capabilityIndex().actionsByParentTool.keys()], MAX_SUGGESTIONS),
|
|
51
|
-
nextCall: buildNextCall({ operation: 'configure', tool: record.routing.parentTool })
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
if (args.params !== undefined && !isRecord(args.params)) {
|
|
55
|
-
return refuse({
|
|
56
|
-
errorCode: 'INVALID_PARAMS',
|
|
57
|
-
message: 'params must be an object.',
|
|
58
|
-
suggestions: declaredParameterNames(record.schemas.input).slice(0, MAX_SUGGESTIONS),
|
|
59
|
-
nextCall: buildNextCall({
|
|
60
|
-
operation: 'describe',
|
|
61
|
-
tool: record.routing.parentTool,
|
|
62
|
-
action: target.legacy.action
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
const rawParams = isRecord(args.params) ? args.params : {};
|
|
67
|
-
const paramsAction = Object.hasOwn(rawParams, 'action') ? rawParams.action : undefined;
|
|
68
|
-
const scrubbed = typeof paramsAction === 'string' && paramsAction === target.legacy.action
|
|
69
|
-
? (({ action: _droppedAction, ...rest }) => rest)(rawParams)
|
|
70
|
-
: rawParams;
|
|
71
|
-
if (Object.hasOwn(scrubbed, 'action') || Object.hasOwn(scrubbed, 'subAction')) {
|
|
72
|
-
return refuse({
|
|
73
|
-
errorCode: 'INVALID_PARAMS',
|
|
74
|
-
message: 'params must not override action or subAction. Supply the selected action at the gateway level.'
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
const control = findControlKeyInParams(scrubbed);
|
|
78
|
-
if (control !== undefined) {
|
|
79
|
-
return refuse({
|
|
80
|
-
errorCode: 'UNSUPPORTED_OPTION',
|
|
81
|
-
option: control,
|
|
82
|
-
message: `Gateway control '${control}' must not appear in action params. Supply it in options.`
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
const optionViolation = validateExecutionOptions(args.options);
|
|
86
|
-
if (optionViolation !== undefined) {
|
|
87
|
-
return refuse({
|
|
88
|
-
errorCode: optionViolation.errorCode,
|
|
89
|
-
message: optionViolation.message,
|
|
90
|
-
...(optionViolation.option === undefined
|
|
91
|
-
? {}
|
|
92
|
-
: { option: optionViolation.option, field: optionViolation.option }),
|
|
93
|
-
...(optionViolation.pointer === undefined ? {} : { pointer: optionViolation.pointer })
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
const expectedRevisions = !isRecord(args.options) || args.options.expectedRevisions === undefined
|
|
97
|
-
? undefined
|
|
98
|
-
: ExpectedRevisionsSchema.parse(args.options.expectedRevisions);
|
|
99
|
-
const timeoutMs = isRecord(args.options) && typeof args.options.timeoutMs === 'number'
|
|
100
|
-
? args.options.timeoutMs
|
|
101
|
-
: undefined;
|
|
102
|
-
const pins = applyFoldedPins(target, scrubbed);
|
|
103
|
-
if ('conflict' in pins) {
|
|
104
|
-
const { conflict } = pins;
|
|
105
|
-
const primary = primaryLegacyPair(record).action;
|
|
106
|
-
return refuse({
|
|
107
|
-
errorCode: 'INVALID_PARAMETER_VALUE',
|
|
108
|
-
message: `'${requestedAction(target) ?? primary}' always runs with ${conflict.name} ${JSON.stringify(conflict.pinned)}, but the call sent ${conflict.name} ${JSON.stringify(conflict.sent)}. '${primary}' takes any ${conflict.name}: nextCall runs it with these params.`,
|
|
109
|
-
pointer: `/${conflict.name}`,
|
|
110
|
-
nextCall: {
|
|
111
|
-
...buildNextCall({ operation: 'execute', tool: record.routing.parentTool, action: primary }),
|
|
112
|
-
params: scrubbed
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
const withDefaults = coerceVectorShapes(applyDeclaredDefaults(inferSelector(record, pins.params), record.schemas.input), record.schemas.input);
|
|
117
|
-
const inputFailure = validateInput(target, withDefaults);
|
|
118
|
-
return inputFailure === undefined
|
|
119
|
-
? {
|
|
120
|
-
params: withDefaults,
|
|
121
|
-
unread: unreadVariantParams(record, Object.keys(pins.params), withDefaults),
|
|
122
|
-
...(expectedRevisions === undefined ? {} : { expectedRevisions }),
|
|
123
|
-
...(timeoutMs === undefined ? {} : { timeoutMs })
|
|
124
|
-
}
|
|
125
|
-
: { failure: inputFailure };
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=gateway-execute-static-check.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type GatewayContext } from './gateway-execute-dispatch.js';
|
|
2
|
-
import type { CorrelationId } from '../../tools/catalog/capabilities/semantic/ids.js';
|
|
3
|
-
export type { GatewayContext };
|
|
4
|
-
export declare function executeGatewayCall(args: Record<string, unknown>, context: GatewayContext, correlationId: CorrelationId): Promise<Record<string, unknown>>;
|
|
5
|
-
export declare const STILL_RUNNING_AFTER_MS = 27000;
|
|
6
|
-
//# sourceMappingURL=gateway-execute.d.ts.map
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { isRecord } from '../../utils/validation/type-guards.js';
|
|
2
|
-
import { getString } from './gateway-shared.js';
|
|
3
|
-
import { buildNextCall } from './gateway-guidance.js';
|
|
4
|
-
import { resolveExecuteTarget } from './gateway-execute-resolve.js';
|
|
5
|
-
import { capabilityIndex } from './gateway-capability-index.js';
|
|
6
|
-
import { resolveDispatchAction } from './gateway-dispatch-by.js';
|
|
7
|
-
import { checkStaticRequest } from './gateway-execute-static-check.js';
|
|
8
|
-
import { executeErrorEnvelope, executeSuccessEnvelope, refuseWithTarget } from './gateway-execute-envelope.js';
|
|
9
|
-
import { dispatchAndValidate } from './gateway-execute-dispatch.js';
|
|
10
|
-
import { checkConsentAuthorization, checkExpectedCatalogRevision, checkScopeAuthorization, matchedFoldedGrant } from './gateway-execute-policy.js';
|
|
11
|
-
import { ConsentGrantSchema } from '../../tools/catalog/capabilities/semantic/authorization.js';
|
|
12
|
-
import { buildReceiptContext } from './gateway-receipt-context.js';
|
|
13
|
-
import { noteTaskDone, noteTaskRunning } from './gateway-task-results.js';
|
|
14
|
-
import { conflictMessage, IDEMPOTENCY_CONFLICT_CODE, LOCAL_PRINCIPAL, markReplayed, runWithIdempotency, sharedExecuteLedger } from './gateway-execute-idempotency.js';
|
|
15
|
-
export async function executeGatewayCall(args, context, correlationId) {
|
|
16
|
-
const options = isRecord(args.options) ? args.options : undefined;
|
|
17
|
-
const receiptContext = buildReceiptContext(correlationId, options);
|
|
18
|
-
const index = capabilityIndex();
|
|
19
|
-
const resolution = resolveExecuteTarget({
|
|
20
|
-
capability: getString(args, 'capability'),
|
|
21
|
-
tool: getString(args, 'tool'),
|
|
22
|
-
action: getString(args, 'action'),
|
|
23
|
-
params: isRecord(args.params) ? args.params : {}
|
|
24
|
-
}, index);
|
|
25
|
-
if (!resolution.ok) {
|
|
26
|
-
const { capabilityId, ...failure } = resolution.failure;
|
|
27
|
-
return executeErrorEnvelope({
|
|
28
|
-
...failure,
|
|
29
|
-
record: capabilityId === undefined ? undefined : index.byId.get(capabilityId),
|
|
30
|
-
requestedTool: getString(args, 'tool'),
|
|
31
|
-
requestedAction: getString(args, 'action')
|
|
32
|
-
}, receiptContext);
|
|
33
|
-
}
|
|
34
|
-
const target = resolution.target;
|
|
35
|
-
const checked = checkStaticRequest(target, args);
|
|
36
|
-
if ('failure' in checked)
|
|
37
|
-
return refuseWithTarget(target, checked.failure, receiptContext);
|
|
38
|
-
const policyFailure = checkExpectedCatalogRevision(options);
|
|
39
|
-
if (policyFailure !== undefined)
|
|
40
|
-
return refuseWithTarget(target, policyFailure, receiptContext);
|
|
41
|
-
if (!await context.ensureConnected()) {
|
|
42
|
-
const bridgeTarget = context.tools.automationBridge?.getClientUrl?.();
|
|
43
|
-
return refuseWithTarget(target, {
|
|
44
|
-
errorCode: 'NOT_CONNECTED',
|
|
45
|
-
message: bridgeTarget
|
|
46
|
-
? `Unreal Engine is not connected: no bridge listener responded at ${bridgeTarget}.`
|
|
47
|
-
: 'Unreal Engine is not connected.',
|
|
48
|
-
nextCall: buildNextCall({ operation: 'search' })
|
|
49
|
-
}, receiptContext);
|
|
50
|
-
}
|
|
51
|
-
const authority = context.tools.automationBridge?.getAuthority?.();
|
|
52
|
-
const scopeFailure = checkScopeAuthorization(target, authority);
|
|
53
|
-
if (scopeFailure !== undefined)
|
|
54
|
-
return refuseWithTarget(target, scopeFailure, receiptContext);
|
|
55
|
-
let consentGrant;
|
|
56
|
-
if (args.consent !== undefined) {
|
|
57
|
-
const parsedConsent = ConsentGrantSchema.safeParse(args.consent);
|
|
58
|
-
if (!parsedConsent.success) {
|
|
59
|
-
return refuseWithTarget(target, {
|
|
60
|
-
errorCode: 'INVALID_CONSENT',
|
|
61
|
-
message: 'consent must be { capability: <exact capability id>, acknowledge: "explicit" | "elevated" }.',
|
|
62
|
-
nextCall: buildNextCall({ operation: 'describe', tool: target.record.routing.parentTool, action: target.legacy.action })
|
|
63
|
-
}, receiptContext);
|
|
64
|
-
}
|
|
65
|
-
consentGrant = parsedConsent.data;
|
|
66
|
-
}
|
|
67
|
-
const consentFailure = checkConsentAuthorization(target, authority, consentGrant);
|
|
68
|
-
if (consentFailure !== undefined)
|
|
69
|
-
return refuseWithTarget(target, consentFailure, receiptContext);
|
|
70
|
-
if (consentGrant !== undefined && target.record.policy.consent !== 'none') {
|
|
71
|
-
const granted = matchedFoldedGrant(consentGrant.capability, target);
|
|
72
|
-
const dispatchAction = resolveDispatchAction(target, checked.params);
|
|
73
|
-
if (granted !== undefined && dispatchAction !== undefined && String(granted.action) !== dispatchAction) {
|
|
74
|
-
return refuseWithTarget(target, {
|
|
75
|
-
errorCode: 'CONSENT_REQUIRED',
|
|
76
|
-
message: `The consent grant names '${String(granted.tool)}.${String(granted.action)}', which authorizes that operation only; this call dispatches '${dispatchAction}'. Re-run with consent naming the capability id '${target.record.id}' to authorize the family.`,
|
|
77
|
-
requiredScope: target.record.policy.requiredScope,
|
|
78
|
-
nextCall: buildNextCall({
|
|
79
|
-
operation: 'describe',
|
|
80
|
-
tool: target.record.routing.parentTool,
|
|
81
|
-
action: target.legacy.action
|
|
82
|
-
})
|
|
83
|
-
}, receiptContext);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const dispatch = async () => {
|
|
87
|
-
const receipt = await dispatchAndValidate(target, checked.params, options, context, receiptContext, {
|
|
88
|
-
correlationId,
|
|
89
|
-
consent: consentGrant,
|
|
90
|
-
expectedRevisions: checked.expectedRevisions,
|
|
91
|
-
timeoutMs: checked.timeoutMs
|
|
92
|
-
}, checked.unread);
|
|
93
|
-
const versionMismatch = receipt.success === true ? undefined : context.tools.automationBridge?.getVersionMismatch?.();
|
|
94
|
-
return versionMismatch === undefined ? receipt : { ...receipt, versionMismatch };
|
|
95
|
-
};
|
|
96
|
-
const settled = runWithIdempotency({
|
|
97
|
-
capabilityId: target.record.id,
|
|
98
|
-
principal: authority?.profile ?? LOCAL_PRINCIPAL,
|
|
99
|
-
params: checked.params,
|
|
100
|
-
idempotencyKey: receiptContext.idempotencyId
|
|
101
|
-
}, sharedExecuteLedger(), dispatch, (receipt) => receipt.success === true, (reason) => refuseWithTarget(target, {
|
|
102
|
-
errorCode: IDEMPOTENCY_CONFLICT_CODE,
|
|
103
|
-
message: conflictMessage(reason),
|
|
104
|
-
nextCall: buildNextCall({
|
|
105
|
-
operation: 'describe',
|
|
106
|
-
tool: target.record.routing.parentTool,
|
|
107
|
-
action: target.legacy.action
|
|
108
|
-
})
|
|
109
|
-
}, receiptContext), (recorded) => markReplayed(recorded, receiptContext.correlationId));
|
|
110
|
-
if (checked.timeoutMs !== undefined)
|
|
111
|
-
return await settled;
|
|
112
|
-
return await answerWhileRunning(settled, target.record, receiptContext, context);
|
|
113
|
-
}
|
|
114
|
-
export const STILL_RUNNING_AFTER_MS = 27_000;
|
|
115
|
-
async function answerWhileRunning(settled, record, receiptContext, context) {
|
|
116
|
-
let timer;
|
|
117
|
-
const running = new Promise((resolve) => {
|
|
118
|
-
timer = setTimeout(resolve, STILL_RUNNING_AFTER_MS, undefined);
|
|
119
|
-
});
|
|
120
|
-
const first = await Promise.race([settled, running]).finally(() => clearTimeout(timer));
|
|
121
|
-
if (first !== undefined)
|
|
122
|
-
return first;
|
|
123
|
-
const taskId = receiptContext.correlationId;
|
|
124
|
-
noteTaskRunning(taskId);
|
|
125
|
-
settled.then((receipt) => {
|
|
126
|
-
noteTaskDone(taskId, receipt);
|
|
127
|
-
context.logger.info(`${record.id} finished after its still-running answer (success=${String(receipt.success)}).`);
|
|
128
|
-
}, (error) => {
|
|
129
|
-
const text = error instanceof Error ? error.message : String(error);
|
|
130
|
-
noteTaskDone(taskId, { success: false, errorCode: 'EXECUTION_ERROR', message: text });
|
|
131
|
-
context.logger.warn(`${record.id} failed after its still-running answer: ${text}`);
|
|
132
|
-
});
|
|
133
|
-
const again = receiptContext.idempotencyId === undefined
|
|
134
|
-
? 'do not send this call again: it would run twice.'
|
|
135
|
-
: 'the same call with the same idempotencyKey also answers with it instead of running again.';
|
|
136
|
-
const message = `Still running after ${STILL_RUNNING_AFTER_MS / 1000} s. Unreal keeps going; this answer does not stop it. `
|
|
137
|
-
+ `Read its result with manage_tools get_task_result taskId ${taskId} once it is done; ${again}`;
|
|
138
|
-
return executeSuccessEnvelope({
|
|
139
|
-
record,
|
|
140
|
-
result: { success: true, message, task: { taskId, state: 'running' } },
|
|
141
|
-
canonicalOutput: { message },
|
|
142
|
-
warnings: []
|
|
143
|
-
}, receiptContext);
|
|
144
|
-
}
|
|
145
|
-
//# sourceMappingURL=gateway-execute.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const MAX_SUGGESTIONS = 3;
|
|
2
|
-
export declare function closestMatches(target: string, candidates: string[], limit?: number): string[];
|
|
3
|
-
export interface UnknownActionGuide {
|
|
4
|
-
readonly suggestions: string[];
|
|
5
|
-
readonly nextCall: Record<string, unknown>;
|
|
6
|
-
readonly hint: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function guideUnknownAction(tool: string, action: string, actions: readonly string[], owningTools: readonly string[]): UnknownActionGuide;
|
|
9
|
-
export declare function buildNextCall(parts: {
|
|
10
|
-
operation: string;
|
|
11
|
-
tool?: string;
|
|
12
|
-
action?: string;
|
|
13
|
-
param?: string;
|
|
14
|
-
}): Record<string, unknown>;
|
|
15
|
-
//# sourceMappingURL=gateway-guidance.d.ts.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export const MAX_SUGGESTIONS = 3;
|
|
2
|
-
function levenshtein(a, b) {
|
|
3
|
-
const m = a.length;
|
|
4
|
-
const n = b.length;
|
|
5
|
-
if (m === 0)
|
|
6
|
-
return n;
|
|
7
|
-
if (n === 0)
|
|
8
|
-
return m;
|
|
9
|
-
let previous = Array.from({ length: n + 1 }, (_, index) => index);
|
|
10
|
-
let current = new Array(n + 1).fill(0);
|
|
11
|
-
for (let i = 1; i <= m; i++) {
|
|
12
|
-
current[0] = i;
|
|
13
|
-
for (let j = 1; j <= n; j++) {
|
|
14
|
-
const cost = a[i - 1] === b[j - 1] ? 0 : 1;
|
|
15
|
-
current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, previous[j - 1] + cost);
|
|
16
|
-
}
|
|
17
|
-
[previous, current] = [current, previous];
|
|
18
|
-
}
|
|
19
|
-
return previous[n];
|
|
20
|
-
}
|
|
21
|
-
function commonPrefixLength(left, right) {
|
|
22
|
-
const limit = Math.min(left.length, right.length);
|
|
23
|
-
let shared = 0;
|
|
24
|
-
while (shared < limit && left[shared] === right[shared])
|
|
25
|
-
shared += 1;
|
|
26
|
-
return shared;
|
|
27
|
-
}
|
|
28
|
-
export function closestMatches(target, candidates, limit = MAX_SUGGESTIONS) {
|
|
29
|
-
if (limit <= 0)
|
|
30
|
-
return [];
|
|
31
|
-
const normalized = target.trim().toLowerCase();
|
|
32
|
-
if (normalized.length === 0)
|
|
33
|
-
return candidates.slice(0, limit);
|
|
34
|
-
return candidates
|
|
35
|
-
.map((candidate) => {
|
|
36
|
-
const lower = candidate.toLowerCase();
|
|
37
|
-
let score = levenshtein(lower, normalized);
|
|
38
|
-
if (lower.includes(normalized) || normalized.includes(lower))
|
|
39
|
-
score -= 4;
|
|
40
|
-
return { candidate, score, prefix: commonPrefixLength(lower, normalized) };
|
|
41
|
-
})
|
|
42
|
-
.sort((left, right) => left.score - right.score
|
|
43
|
-
|| right.prefix - left.prefix
|
|
44
|
-
|| (left.candidate < right.candidate ? -1 : left.candidate > right.candidate ? 1 : 0))
|
|
45
|
-
.slice(0, limit)
|
|
46
|
-
.map((entry) => entry.candidate);
|
|
47
|
-
}
|
|
48
|
-
function actionVerb(action) {
|
|
49
|
-
return (action.split('_', 1)[0] ?? '').toLowerCase();
|
|
50
|
-
}
|
|
51
|
-
export function guideUnknownAction(tool, action, actions, owningTools) {
|
|
52
|
-
const suggestions = closestMatches(action, [...actions], MAX_SUGGESTIONS);
|
|
53
|
-
const others = owningTools.filter((owner) => owner !== tool);
|
|
54
|
-
if (others.length === 1) {
|
|
55
|
-
return {
|
|
56
|
-
suggestions,
|
|
57
|
-
hint: ` '${action}' is a ${others[0]} action.`,
|
|
58
|
-
nextCall: buildNextCall({ operation: 'describe', tool: others[0], action })
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const trimmed = action.trim();
|
|
62
|
-
const verb = actionVerb(trimmed);
|
|
63
|
-
if (verb !== '' && !suggestions.some((suggestion) => levenshtein(actionVerb(suggestion), verb) <= 1)) {
|
|
64
|
-
return { suggestions, hint: '', nextCall: { operation: 'search', query: trimmed.replaceAll('_', ' ') } };
|
|
65
|
-
}
|
|
66
|
-
return { suggestions, hint: '', nextCall: buildNextCall({ operation: 'describe', tool, action: suggestions[0] }) };
|
|
67
|
-
}
|
|
68
|
-
export function buildNextCall(parts) {
|
|
69
|
-
const call = { operation: parts.operation };
|
|
70
|
-
if (parts.tool !== undefined)
|
|
71
|
-
call.tool = parts.tool;
|
|
72
|
-
if (parts.action !== undefined)
|
|
73
|
-
call.action = parts.action;
|
|
74
|
-
if (parts.param !== undefined)
|
|
75
|
-
call.param = parts.param;
|
|
76
|
-
return call;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=gateway-guidance.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const MAX_TIMEOUT_MS = 600000;
|
|
2
|
-
export type OptionViolation = {
|
|
3
|
-
readonly errorCode: 'UNSUPPORTED_OPTION' | 'INVALID_OPTIONS' | 'OUT_OF_RANGE';
|
|
4
|
-
readonly message: string;
|
|
5
|
-
readonly option?: string;
|
|
6
|
-
readonly pointer?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function validateExecutionOptions(raw: unknown): OptionViolation | undefined;
|
|
9
|
-
export declare function findControlKeyInParams(params: Record<string, unknown>): string | undefined;
|
|
10
|
-
//# sourceMappingURL=gateway-option-validate.d.ts.map
|