@nodetool-ai/protocol 0.7.0-rc.22 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/ai-video-production.d.ts +249 -0
- package/dist/ai-video-production.d.ts.map +1 -0
- package/dist/ai-video-production.js +131 -0
- package/dist/ai-video-production.js.map +1 -0
- package/dist/api-schemas/agent-access.d.ts +134 -0
- package/dist/api-schemas/agent-access.d.ts.map +1 -0
- package/dist/api-schemas/agent-access.js +93 -0
- package/dist/api-schemas/agent-access.js.map +1 -0
- package/dist/api-schemas/api-error-code.d.ts +11 -1
- package/dist/api-schemas/api-error-code.d.ts.map +1 -1
- package/dist/api-schemas/api-error-code.js +10 -0
- package/dist/api-schemas/api-error-code.js.map +1 -1
- package/dist/api-schemas/applications.d.ts +1411 -0
- package/dist/api-schemas/applications.d.ts.map +1 -0
- package/dist/api-schemas/applications.js +333 -0
- package/dist/api-schemas/applications.js.map +1 -0
- package/dist/api-schemas/assets.d.ts +230 -0
- package/dist/api-schemas/assets.d.ts.map +1 -1
- package/dist/api-schemas/assets.js +131 -5
- package/dist/api-schemas/assets.js.map +1 -1
- package/dist/api-schemas/code-gen.d.ts +176 -0
- package/dist/api-schemas/code-gen.d.ts.map +1 -0
- package/dist/api-schemas/code-gen.js +205 -0
- package/dist/api-schemas/code-gen.js.map +1 -0
- package/dist/api-schemas/collections.d.ts.map +1 -1
- package/dist/api-schemas/collections.js +3 -4
- package/dist/api-schemas/collections.js.map +1 -1
- package/dist/api-schemas/costs.d.ts +179 -0
- package/dist/api-schemas/costs.d.ts.map +1 -1
- package/dist/api-schemas/costs.js +100 -4
- package/dist/api-schemas/costs.js.map +1 -1
- package/dist/api-schemas/credits.d.ts +42 -0
- package/dist/api-schemas/credits.d.ts.map +1 -0
- package/dist/api-schemas/credits.js +43 -0
- package/dist/api-schemas/credits.js.map +1 -0
- package/dist/api-schemas/documents.d.ts +163 -0
- package/dist/api-schemas/documents.d.ts.map +1 -0
- package/dist/api-schemas/documents.js +75 -0
- package/dist/api-schemas/documents.js.map +1 -0
- package/dist/api-schemas/files.d.ts +13 -0
- package/dist/api-schemas/files.d.ts.map +1 -1
- package/dist/api-schemas/files.js +8 -0
- package/dist/api-schemas/files.js.map +1 -1
- package/dist/api-schemas/fonts.d.ts +17 -1
- package/dist/api-schemas/fonts.d.ts.map +1 -1
- package/dist/api-schemas/fonts.js +19 -3
- package/dist/api-schemas/fonts.js.map +1 -1
- package/dist/api-schemas/index.d.ts +23 -1
- package/dist/api-schemas/index.d.ts.map +1 -1
- package/dist/api-schemas/index.js +23 -1
- package/dist/api-schemas/index.js.map +1 -1
- package/dist/api-schemas/jobs.d.ts +12 -0
- package/dist/api-schemas/jobs.d.ts.map +1 -1
- package/dist/api-schemas/jobs.js +12 -2
- package/dist/api-schemas/jobs.js.map +1 -1
- package/dist/api-schemas/js-scripts.d.ts +364 -0
- package/dist/api-schemas/js-scripts.d.ts.map +1 -0
- package/dist/api-schemas/js-scripts.js +333 -0
- package/dist/api-schemas/js-scripts.js.map +1 -0
- package/dist/api-schemas/mcp-config.d.ts.map +1 -1
- package/dist/api-schemas/mcp-config.js +3 -1
- package/dist/api-schemas/mcp-config.js.map +1 -1
- package/dist/api-schemas/memories.d.ts +84 -0
- package/dist/api-schemas/memories.d.ts.map +1 -0
- package/dist/api-schemas/memories.js +54 -0
- package/dist/api-schemas/memories.js.map +1 -0
- package/dist/api-schemas/messages.d.ts +1 -0
- package/dist/api-schemas/messages.d.ts.map +1 -1
- package/dist/api-schemas/messages.js +4 -4
- package/dist/api-schemas/messages.js.map +1 -1
- package/dist/api-schemas/models.d.ts +156 -0
- package/dist/api-schemas/models.d.ts.map +1 -1
- package/dist/api-schemas/models.js +51 -6
- package/dist/api-schemas/models.js.map +1 -1
- package/dist/api-schemas/nodes.d.ts +97 -0
- package/dist/api-schemas/nodes.d.ts.map +1 -1
- package/dist/api-schemas/nodes.js +89 -0
- package/dist/api-schemas/nodes.js.map +1 -1
- package/dist/api-schemas/projects.d.ts +427 -0
- package/dist/api-schemas/projects.d.ts.map +1 -0
- package/dist/api-schemas/projects.js +224 -0
- package/dist/api-schemas/projects.js.map +1 -0
- package/dist/api-schemas/recipes.d.ts +172 -0
- package/dist/api-schemas/recipes.d.ts.map +1 -0
- package/dist/api-schemas/recipes.js +144 -0
- package/dist/api-schemas/recipes.js.map +1 -0
- package/dist/api-schemas/resources.d.ts +112 -0
- package/dist/api-schemas/resources.d.ts.map +1 -0
- package/dist/api-schemas/resources.js +44 -0
- package/dist/api-schemas/resources.js.map +1 -0
- package/dist/api-schemas/scripts.d.ts +1571 -0
- package/dist/api-schemas/scripts.d.ts.map +1 -0
- package/dist/api-schemas/scripts.js +153 -0
- package/dist/api-schemas/scripts.js.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts +467 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.js +115 -0
- package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
- package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
- package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
- package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
- package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
- package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-models-v1.js +108 -0
- package/dist/api-schemas/sdk-models-v1.js.map +1 -0
- package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
- package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
- package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
- package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-operations.js +97 -0
- package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1.d.ts +15 -0
- package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1.js +22 -0
- package/dist/api-schemas/sdk-v1.js.map +1 -0
- package/dist/api-schemas/segmentation.d.ts +75 -0
- package/dist/api-schemas/segmentation.d.ts.map +1 -0
- package/dist/api-schemas/segmentation.js +54 -0
- package/dist/api-schemas/segmentation.js.map +1 -0
- package/dist/api-schemas/settings.d.ts +159 -0
- package/dist/api-schemas/settings.d.ts.map +1 -1
- package/dist/api-schemas/settings.js +70 -0
- package/dist/api-schemas/settings.js.map +1 -1
- package/dist/api-schemas/sketch.d.ts +847 -0
- package/dist/api-schemas/sketch.d.ts.map +1 -0
- package/dist/api-schemas/sketch.js +544 -0
- package/dist/api-schemas/sketch.js.map +1 -0
- package/dist/api-schemas/skills.d.ts +27 -14
- package/dist/api-schemas/skills.d.ts.map +1 -1
- package/dist/api-schemas/skills.js +64 -11
- package/dist/api-schemas/skills.js.map +1 -1
- package/dist/api-schemas/storage.d.ts +8 -0
- package/dist/api-schemas/storage.d.ts.map +1 -1
- package/dist/api-schemas/storage.js +7 -0
- package/dist/api-schemas/storage.js.map +1 -1
- package/dist/api-schemas/storyboards.d.ts +7026 -0
- package/dist/api-schemas/storyboards.d.ts.map +1 -0
- package/dist/api-schemas/storyboards.js +393 -0
- package/dist/api-schemas/storyboards.js.map +1 -0
- package/dist/api-schemas/threads.d.ts +12 -4
- package/dist/api-schemas/threads.d.ts.map +1 -1
- package/dist/api-schemas/threads.js +12 -4
- package/dist/api-schemas/threads.js.map +1 -1
- package/dist/api-schemas/timeline-tool-contracts.d.ts +1650 -0
- package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-contracts.js +725 -0
- package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
- package/dist/api-schemas/timeline-tool-params.d.ts +1237 -0
- package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-params.js +1518 -0
- package/dist/api-schemas/timeline-tool-params.js.map +1 -0
- package/dist/api-schemas/timeline.d.ts +12803 -0
- package/dist/api-schemas/timeline.d.ts.map +1 -0
- package/dist/api-schemas/timeline.js +1838 -0
- package/dist/api-schemas/timeline.js.map +1 -0
- package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
- package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
- package/dist/api-schemas/ui-tool-contract.js +31 -0
- package/dist/api-schemas/ui-tool-contract.js.map +1 -0
- package/dist/api-schemas/workflows.d.ts +852 -18
- package/dist/api-schemas/workflows.d.ts.map +1 -1
- package/dist/api-schemas/workflows.js +484 -6
- package/dist/api-schemas/workflows.js.map +1 -1
- package/dist/api-schemas/workspace.d.ts +45 -0
- package/dist/api-schemas/workspace.d.ts.map +1 -1
- package/dist/api-schemas/workspace.js +47 -1
- package/dist/api-schemas/workspace.js.map +1 -1
- package/dist/api-types.d.ts +621 -27
- package/dist/api-types.d.ts.map +1 -1
- package/dist/api-types.js +246 -1
- package/dist/api-types.js.map +1 -1
- package/dist/app-deployment.d.ts +37 -0
- package/dist/app-deployment.d.ts.map +1 -0
- package/dist/app-deployment.js +42 -0
- package/dist/app-deployment.js.map +1 -0
- package/dist/asset-generation.d.ts +58 -0
- package/dist/asset-generation.d.ts.map +1 -0
- package/dist/asset-generation.js +147 -0
- package/dist/asset-generation.js.map +1 -0
- package/dist/blend-modes.d.ts +20 -0
- package/dist/blend-modes.d.ts.map +1 -0
- package/dist/blend-modes.js +33 -0
- package/dist/blend-modes.js.map +1 -0
- package/dist/bridge-frames.d.ts +654 -0
- package/dist/bridge-frames.d.ts.map +1 -0
- package/dist/bridge-frames.js +448 -0
- package/dist/bridge-frames.js.map +1 -0
- package/dist/bridge-frames.schema.json +862 -0
- package/dist/bridge-protocol.d.ts +57 -20
- package/dist/bridge-protocol.d.ts.map +1 -1
- package/dist/bridge-protocol.js +57 -20
- package/dist/bridge-protocol.js.map +1 -1
- package/dist/builtin-packs.d.ts +45 -0
- package/dist/builtin-packs.d.ts.map +1 -0
- package/dist/builtin-packs.js +115 -0
- package/dist/builtin-packs.js.map +1 -0
- package/dist/caption-word.d.ts +15 -0
- package/dist/caption-word.d.ts.map +1 -0
- package/dist/caption-word.js +10 -0
- package/dist/caption-word.js.map +1 -0
- package/dist/cloud-profile.d.ts +187 -0
- package/dist/cloud-profile.d.ts.map +1 -0
- package/dist/cloud-profile.js +281 -0
- package/dist/cloud-profile.js.map +1 -0
- package/dist/creative.d.ts +486 -0
- package/dist/creative.d.ts.map +1 -0
- package/dist/creative.js +269 -0
- package/dist/creative.js.map +1 -0
- package/dist/custom-providers.d.ts +70 -0
- package/dist/custom-providers.d.ts.map +1 -0
- package/dist/custom-providers.js +125 -0
- package/dist/custom-providers.js.map +1 -0
- package/dist/document-ops.d.ts +15 -0
- package/dist/document-ops.d.ts.map +1 -0
- package/dist/document-ops.js +2 -0
- package/dist/document-ops.js.map +1 -0
- package/dist/game-assets.d.ts +344 -0
- package/dist/game-assets.d.ts.map +1 -0
- package/dist/game-assets.js +297 -0
- package/dist/game-assets.js.map +1 -0
- package/dist/game-design.d.ts +90 -0
- package/dist/game-design.d.ts.map +1 -0
- package/dist/game-design.js +417 -0
- package/dist/game-design.js.map +1 -0
- package/dist/game-flow-prompt.d.ts +68 -0
- package/dist/game-flow-prompt.d.ts.map +1 -0
- package/dist/game-flow-prompt.js +121 -0
- package/dist/game-flow-prompt.js.map +1 -0
- package/dist/game-graph.d.ts +96 -0
- package/dist/game-graph.d.ts.map +1 -0
- package/dist/game-graph.js +481 -0
- package/dist/game-graph.js.map +1 -0
- package/dist/game-migration.d.ts +4 -0
- package/dist/game-migration.d.ts.map +1 -0
- package/dist/game-migration.js +6 -0
- package/dist/game-migration.js.map +1 -0
- package/dist/game-slot-prompt.d.ts +90 -0
- package/dist/game-slot-prompt.d.ts.map +1 -0
- package/dist/game-slot-prompt.js +237 -0
- package/dist/game-slot-prompt.js.map +1 -0
- package/dist/game.d.ts +1663 -0
- package/dist/game.d.ts.map +1 -0
- package/dist/game.js +228 -0
- package/dist/game.js.map +1 -0
- package/dist/graph.d.ts +191 -5
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +497 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +47 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -2
- package/dist/index.js.map +1 -1
- package/dist/loop.d.ts +38 -0
- package/dist/loop.d.ts.map +1 -0
- package/dist/loop.js +69 -0
- package/dist/loop.js.map +1 -0
- package/dist/mcp-server-config.d.ts +113 -0
- package/dist/mcp-server-config.d.ts.map +1 -0
- package/dist/mcp-server-config.js +147 -0
- package/dist/mcp-server-config.js.map +1 -0
- package/dist/messages.d.ts +1565 -243
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +709 -22
- package/dist/messages.js.map +1 -1
- package/dist/model-selection.d.ts +20 -0
- package/dist/model-selection.d.ts.map +1 -0
- package/dist/model-selection.js +27 -0
- package/dist/model-selection.js.map +1 -0
- package/dist/nodetool-models.d.ts +71 -0
- package/dist/nodetool-models.d.ts.map +1 -0
- package/dist/nodetool-models.js +138 -0
- package/dist/nodetool-models.js.map +1 -0
- package/dist/package-assets.d.ts +39 -0
- package/dist/package-assets.d.ts.map +1 -0
- package/dist/package-assets.js +63 -0
- package/dist/package-assets.js.map +1 -0
- package/dist/platform.d.ts +66 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +68 -0
- package/dist/platform.js.map +1 -0
- package/dist/predicates.d.ts +43 -0
- package/dist/predicates.d.ts.map +1 -0
- package/dist/predicates.js +65 -0
- package/dist/predicates.js.map +1 -0
- package/dist/processing-messages.schema.json +2525 -0
- package/dist/production-authoring.d.ts +757 -0
- package/dist/production-authoring.d.ts.map +1 -0
- package/dist/production-authoring.js +736 -0
- package/dist/production-authoring.js.map +1 -0
- package/dist/render-record.d.ts +86 -0
- package/dist/render-record.d.ts.map +1 -0
- package/dist/render-record.js +133 -0
- package/dist/render-record.js.map +1 -0
- package/dist/resource-id.d.ts +22 -0
- package/dist/resource-id.d.ts.map +1 -0
- package/dist/resource-id.js +32 -0
- package/dist/resource-id.js.map +1 -0
- package/dist/resource-uri.d.ts +15 -0
- package/dist/resource-uri.d.ts.map +1 -0
- package/dist/resource-uri.js +88 -0
- package/dist/resource-uri.js.map +1 -0
- package/dist/sandbox-capability.d.ts +86 -0
- package/dist/sandbox-capability.d.ts.map +1 -0
- package/dist/sandbox-capability.js +106 -0
- package/dist/sandbox-capability.js.map +1 -0
- package/dist/sandbox-host.d.ts +98 -0
- package/dist/sandbox-host.d.ts.map +1 -0
- package/dist/sandbox-host.js +311 -0
- package/dist/sandbox-host.js.map +1 -0
- package/dist/sandbox-package.d.ts +674 -0
- package/dist/sandbox-package.d.ts.map +1 -0
- package/dist/sandbox-package.js +622 -0
- package/dist/sandbox-package.js.map +1 -0
- package/dist/sandbox-wasm.d.ts +84 -0
- package/dist/sandbox-wasm.d.ts.map +1 -0
- package/dist/sandbox-wasm.js +139 -0
- package/dist/sandbox-wasm.js.map +1 -0
- package/dist/screenplay-authoring.d.ts +69 -0
- package/dist/screenplay-authoring.d.ts.map +1 -0
- package/dist/screenplay-authoring.js +351 -0
- package/dist/screenplay-authoring.js.map +1 -0
- package/dist/script-authoring.d.ts +161 -0
- package/dist/script-authoring.d.ts.map +1 -0
- package/dist/script-authoring.js +503 -0
- package/dist/script-authoring.js.map +1 -0
- package/dist/script-fill.d.ts +39 -0
- package/dist/script-fill.d.ts.map +1 -0
- package/dist/script-fill.js +67 -0
- package/dist/script-fill.js.map +1 -0
- package/dist/script-link.d.ts +110 -0
- package/dist/script-link.d.ts.map +1 -0
- package/dist/script-link.js +252 -0
- package/dist/script-link.js.map +1 -0
- package/dist/sha256.d.ts +11 -0
- package/dist/sha256.d.ts.map +1 -0
- package/dist/sha256.js +110 -0
- package/dist/sha256.js.map +1 -0
- package/dist/shot-prompt.d.ts +78 -0
- package/dist/shot-prompt.d.ts.map +1 -0
- package/dist/shot-prompt.js +120 -0
- package/dist/shot-prompt.js.map +1 -0
- package/dist/skill-document.d.ts +36 -0
- package/dist/skill-document.d.ts.map +1 -0
- package/dist/skill-document.js +137 -0
- package/dist/skill-document.js.map +1 -0
- package/dist/style-presets.d.ts +73 -0
- package/dist/style-presets.d.ts.map +1 -0
- package/dist/style-presets.js +147 -0
- package/dist/style-presets.js.map +1 -0
- package/dist/supervisor.d.ts +227 -0
- package/dist/supervisor.d.ts.map +1 -0
- package/dist/supervisor.js +116 -0
- package/dist/supervisor.js.map +1 -0
- package/dist/token-providers.d.ts +31 -0
- package/dist/token-providers.d.ts.map +1 -0
- package/dist/token-providers.js +52 -0
- package/dist/token-providers.js.map +1 -0
- package/dist/toolSchemas.d.ts +10 -14
- package/dist/toolSchemas.d.ts.map +1 -1
- package/dist/toolSchemas.js +13 -23
- package/dist/toolSchemas.js.map +1 -1
- package/dist/triggers.d.ts +41 -0
- package/dist/triggers.d.ts.map +1 -0
- package/dist/triggers.js +50 -0
- package/dist/triggers.js.map +1 -0
- package/dist/trpc-policy.d.ts +3 -0
- package/dist/trpc-policy.d.ts.map +1 -0
- package/dist/trpc-policy.js +3 -0
- package/dist/trpc-policy.js.map +1 -0
- package/dist/type-metadata.d.ts +5 -0
- package/dist/type-metadata.d.ts.map +1 -1
- package/dist/type-metadata.js +17 -8
- package/dist/type-metadata.js.map +1 -1
- package/dist/typecheck.d.ts.map +1 -1
- package/dist/typecheck.js +5 -4
- package/dist/typecheck.js.map +1 -1
- package/dist/wasm-binary.d.ts +61 -0
- package/dist/wasm-binary.d.ts.map +1 -0
- package/dist/wasm-binary.js +215 -0
- package/dist/wasm-binary.js.map +1 -0
- package/dist/workflow-plan.d.ts +197 -0
- package/dist/workflow-plan.d.ts.map +1 -0
- package/dist/workflow-plan.js +438 -0
- package/dist/workflow-plan.js.map +1 -0
- package/dist/wrap-primitives.d.ts +0 -11
- package/dist/wrap-primitives.d.ts.map +1 -1
- package/dist/wrap-primitives.js +3 -9
- package/dist/wrap-primitives.js.map +1 -1
- package/dist/ws-commands.d.ts +665 -0
- package/dist/ws-commands.d.ts.map +1 -0
- package/dist/ws-commands.js +610 -0
- package/dist/ws-commands.js.map +1 -0
- package/dist/zod-schema.d.ts +20 -0
- package/dist/zod-schema.d.ts.map +1 -0
- package/dist/zod-schema.js +298 -0
- package/dist/zod-schema.js.map +1 -0
- package/package.json +84 -7
- package/schema/sdk-v1.asyncapi.implemented.json +65 -0
- package/schema/sdk-v1.asyncapi.json +65 -0
- package/schema/sdk-v1.discovery.schema.json +1218 -0
- package/schema/sdk-v1.execution.schema.json +2792 -0
- package/schema/sdk-v1.lifecycle.schema.json +1031 -0
- package/schema/sdk-v1.manifest.json +71 -0
- package/schema/sdk-v1.openapi.implemented.json +730 -0
- package/schema/sdk-v1.openapi.json +730 -0
- package/schema/sdk-v1.operations.json +732 -0
- package/dist/agent-protocol.d.ts +0 -217
- package/dist/agent-protocol.d.ts.map +0 -1
- package/dist/agent-protocol.js +0 -85
- package/dist/agent-protocol.js.map +0 -1
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `ui_timeline_*` tool contracts — one declaration of each tool's name,
|
|
3
|
+
* description and argument shape, read by both hosts that register them:
|
|
4
|
+
* the browser registry (`web/src/lib/tools/builtin/timeline.ts`) and the
|
|
5
|
+
* headless eval bridge (`packages/agents/src/evals/surfaces/timeline.ts`).
|
|
6
|
+
*
|
|
7
|
+
* They lived twice before, copied "verbatim" and then drifted: seven
|
|
8
|
+
* descriptions had diverged, and `ui_timeline_set_clip_params` accepted
|
|
9
|
+
* `startMs` headlessly while the browser copy stripped it silently — the same
|
|
10
|
+
* agent call reported success and moved nothing. Nothing could catch it,
|
|
11
|
+
* because `packages/agents` cannot import from `web/`.
|
|
12
|
+
*
|
|
13
|
+
* `ui_timeline_animate_clip` names the engine's stagger units, animatable
|
|
14
|
+
* properties and beat tolerance, which live in `@nodetool-ai/timeline` — a
|
|
15
|
+
* package that depends on this one. So the record is built by
|
|
16
|
+
* {@link buildTimelineToolContracts} from a vocabulary each host passes in from
|
|
17
|
+
* there, rather than duplicating those lists here where they would drift.
|
|
18
|
+
*
|
|
19
|
+
* A tool only one host can implement stays out of the record and goes in
|
|
20
|
+
* {@link BROWSER_ONLY_TIMELINE_TOOL_NAMES} or
|
|
21
|
+
* {@link HEADLESS_ONLY_TIMELINE_TOOL_NAMES}; each host's parity test refuses a
|
|
22
|
+
* `ui_timeline_*` tool that is in neither.
|
|
23
|
+
*/
|
|
24
|
+
import { z } from "zod";
|
|
25
|
+
import { clipFadeShapeEnum } from "./timeline.js";
|
|
26
|
+
import { ADD_MODEL3D_CLIP_DESCRIPTION, ADD_SHAPE_CLIP_DESCRIPTION, ADD_TEXT_CLIP_DESCRIPTION, ADD_TRACK_DESCRIPTION, DELETE_TRACK_DESCRIPTION, MOVE_TRACK_DESCRIPTION, QUANTIZE_NOTES_DESCRIPTION, SCALE_VELOCITY_DESCRIPTION, SET_TEMPO_DESCRIPTION, SET_TRACK_INSTRUMENT_DESCRIPTION, TRANSPOSE_CLIP_DESCRIPTION, addGroupParams, addMidiClipParams, captionStyleParams, clipOpacityParam, clipTransformPatchParam, deleteTrackShape, effectParams, maskParams, matteParams, model3dStyleParams, moveTrackShape, partialTextStyleParams, quantizeNotesParams, scaleVelocityParams, setNotesParams, setParentParams, setTempoParams, setTimeRemapParams, setTrackInstrumentParams, SET_MODEL3D_STYLE_DESCRIPTION, BAKE_MODEL3D_CLIP_DESCRIPTION, shapeStyleParams, transposeClipParams, targetParam, textStyleParams, transitionParams, retargetFormatParams, setReframeSubjectParams, addReframeKeyframeParams, clearReframeParams, generativelyEditClipParams, strictGenerativelyEditClipParams, applyTakeParams, withTextClipRemedies } from "./timeline-tool-params.js";
|
|
27
|
+
import { strictParams } from "./ui-tool-contract.js";
|
|
28
|
+
const animationRole = z.enum(["in", "out", "emphasis", "loop"]);
|
|
29
|
+
const customCurvesParam = (animatedProperties) => z
|
|
30
|
+
.array(z.object({
|
|
31
|
+
property: z
|
|
32
|
+
.string()
|
|
33
|
+
.describe(`One of: ${animatedProperties.join(", ")}.`),
|
|
34
|
+
keyframes: z
|
|
35
|
+
.array(z.object({
|
|
36
|
+
t: z.number().describe("0..1 across the animation's window."),
|
|
37
|
+
value: z.number(),
|
|
38
|
+
easing: z.string().optional()
|
|
39
|
+
}))
|
|
40
|
+
.min(1)
|
|
41
|
+
}))
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('Keyframes for `preset: "custom"`. Exactly one of `curves` and `code`.');
|
|
44
|
+
const customCodeParam = z
|
|
45
|
+
.string()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('JS body for `preset: "custom"`, baked into curves once, host-side. ' +
|
|
48
|
+
"It returns `{curves}` or `{samples}` and reads its clip context off " +
|
|
49
|
+
"`inputs`. Exactly one of `curves` and `code`.");
|
|
50
|
+
const customMaskParam = z
|
|
51
|
+
.object({
|
|
52
|
+
direction: z.enum(["left", "right", "up", "down"]),
|
|
53
|
+
softness: z.number().min(0).max(1)
|
|
54
|
+
})
|
|
55
|
+
.optional()
|
|
56
|
+
.describe("Required when a curve drives wipeProgress, ignored otherwise.");
|
|
57
|
+
const animationInput = (vocab) => {
|
|
58
|
+
const curves = customCurvesParam(vocab.animatedProperties);
|
|
59
|
+
return z.object({
|
|
60
|
+
role: animationRole,
|
|
61
|
+
preset: z
|
|
62
|
+
.string()
|
|
63
|
+
.describe('Preset id, e.g. fade, slide, wipe, pop, kenBurns, float — or "custom" with `curves` or `code`.'),
|
|
64
|
+
durationMs: z.number().positive().optional(),
|
|
65
|
+
delayMs: z.number().nonnegative().optional(),
|
|
66
|
+
easing: z.string().optional(),
|
|
67
|
+
params: z
|
|
68
|
+
.record(z.string(), z.union([z.number(), z.string(), z.boolean()]))
|
|
69
|
+
.optional(),
|
|
70
|
+
curves,
|
|
71
|
+
code: customCodeParam,
|
|
72
|
+
mask: customMaskParam,
|
|
73
|
+
custom: z
|
|
74
|
+
.object({ curves, code: customCodeParam, mask: customMaskParam })
|
|
75
|
+
.optional()
|
|
76
|
+
.describe('Same as `curves`/`code`/`mask` one level down: {preset: "custom", custom: {curves: [...]}} is accepted and lifted.'),
|
|
77
|
+
stagger: z
|
|
78
|
+
.object({
|
|
79
|
+
unit: z.enum(vocab.staggerUnits).default("character"),
|
|
80
|
+
offsetMs: z
|
|
81
|
+
.number()
|
|
82
|
+
.positive()
|
|
83
|
+
.describe("Delay between successive units in ms."),
|
|
84
|
+
from: z.enum(["start", "end", "center"]).optional()
|
|
85
|
+
})
|
|
86
|
+
.optional()
|
|
87
|
+
.describe("Per-unit stagger — text clips only. The animation runs once per word, grapheme cluster or wrapped line, each unit offset from the previous. Unit defaults to character."),
|
|
88
|
+
caret: z.object({
|
|
89
|
+
color: z.string(),
|
|
90
|
+
widthPx: z.number().positive(),
|
|
91
|
+
blinkPeriodMs: z.number().positive()
|
|
92
|
+
}).optional().describe("Optional typewriter caret, drawn after the last visible character.")
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Lift a nested `custom: {curves|code|mask}` onto the animation itself. The
|
|
97
|
+
* flat form is the contract, but the nested one is the obvious guess from
|
|
98
|
+
* `preset: "custom"`, and it used to be stripped by the schema and then
|
|
99
|
+
* rejected as an animation with neither curves nor code.
|
|
100
|
+
*/
|
|
101
|
+
export function liftCustomAnimation(input) {
|
|
102
|
+
if (!input.custom)
|
|
103
|
+
return input;
|
|
104
|
+
const { custom, ...rest } = input;
|
|
105
|
+
return {
|
|
106
|
+
...rest,
|
|
107
|
+
curves: input.curves ?? custom.curves,
|
|
108
|
+
code: input.code ?? custom.code,
|
|
109
|
+
mask: input.mask ?? custom.mask
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/** Params `set_clip_params` reads. A key outside this list is refused by name. */
|
|
113
|
+
export const CLIP_PARAM_KEYS = [
|
|
114
|
+
"name",
|
|
115
|
+
"startMs",
|
|
116
|
+
"trackId",
|
|
117
|
+
"durationMs",
|
|
118
|
+
"inPointMs",
|
|
119
|
+
"outPointMs",
|
|
120
|
+
"opacity",
|
|
121
|
+
"transform",
|
|
122
|
+
"speedMultiplier",
|
|
123
|
+
"volumeDb",
|
|
124
|
+
"fadeInMs",
|
|
125
|
+
"fadeOutMs",
|
|
126
|
+
"fadeInShape",
|
|
127
|
+
"fadeOutShape",
|
|
128
|
+
"blendMode",
|
|
129
|
+
"borderRadius",
|
|
130
|
+
"crop",
|
|
131
|
+
"hidden",
|
|
132
|
+
"muted",
|
|
133
|
+
"locked",
|
|
134
|
+
"fontSizePx",
|
|
135
|
+
"textStyle",
|
|
136
|
+
"shapeStyle",
|
|
137
|
+
"captionStyle"
|
|
138
|
+
];
|
|
139
|
+
/** Keys that belong to another op, named so the caller can go there. */
|
|
140
|
+
const CLIP_PARAM_ELSEWHERE = {
|
|
141
|
+
animations: "animate_clip",
|
|
142
|
+
transition: "set_transition",
|
|
143
|
+
parentId: "set_parent",
|
|
144
|
+
mask: "set_mask",
|
|
145
|
+
effects: "set_effects",
|
|
146
|
+
timeRemap: "set_time_remap"
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Timing and geometry are their own ops, and a key this tool does not read used
|
|
150
|
+
* to be stripped by the schema — a call that reported success and changed
|
|
151
|
+
* nothing. Name the op that does the job instead.
|
|
152
|
+
*/
|
|
153
|
+
export function rejectUnknownClipParams(patch) {
|
|
154
|
+
for (const key of Object.keys(patch)) {
|
|
155
|
+
if (CLIP_PARAM_KEYS.includes(key))
|
|
156
|
+
continue;
|
|
157
|
+
const elsewhere = CLIP_PARAM_ELSEWHERE[key];
|
|
158
|
+
if (elsewhere) {
|
|
159
|
+
throw new Error(`set_clip_params does not change \`${key}\`; use ${elsewhere}.`);
|
|
160
|
+
}
|
|
161
|
+
throw new Error(`set_clip_params has no \`${key}\` param. It takes: ${CLIP_PARAM_KEYS.join(", ")}.`);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function makeTimelineToolContracts(vocab) {
|
|
165
|
+
return {
|
|
166
|
+
ui_timeline_get_state: {
|
|
167
|
+
description: "Read the specified timeline sequence: resolution + fps + duration, the playhead position, the current selection, every track, and every clip with its timing, media type, generation binding (prompt/provider/model/status) and render params. Call this first to discover what's on the timeline and to get the ids/names other timeline tools need.",
|
|
168
|
+
shape: {}
|
|
169
|
+
},
|
|
170
|
+
ui_timeline_add_track: {
|
|
171
|
+
description: ADD_TRACK_DESCRIPTION,
|
|
172
|
+
shape: {
|
|
173
|
+
type: z.enum(["video", "audio", "overlay", "subtitle", "midi"]),
|
|
174
|
+
name: z.string().optional()
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
ui_timeline_move_track: {
|
|
178
|
+
description: MOVE_TRACK_DESCRIPTION,
|
|
179
|
+
shape: moveTrackShape,
|
|
180
|
+
finalize: strictParams
|
|
181
|
+
},
|
|
182
|
+
ui_timeline_delete_track: {
|
|
183
|
+
description: DELETE_TRACK_DESCRIPTION,
|
|
184
|
+
shape: deleteTrackShape,
|
|
185
|
+
finalize: strictParams
|
|
186
|
+
},
|
|
187
|
+
ui_timeline_add_media_clip: {
|
|
188
|
+
description: "Place an existing asset — a video, image, or audio file already in the library — on the specified timeline sequence. `asset` is an asset id or `asset://<id>.<ext>` URI (list_assets returns both). Without a track the clip lands on a track matching its media kind, creating one when needed; without `startMs` it is appended after that track's existing content, so calling this once per asset lays them end to end. Duration comes from the asset unless `durationMs` overrides it.",
|
|
189
|
+
shape: {
|
|
190
|
+
asset: z.string().trim().min(1),
|
|
191
|
+
trackId: z.string().optional(),
|
|
192
|
+
startMs: z.number().optional(),
|
|
193
|
+
durationMs: z.number().optional(),
|
|
194
|
+
name: z.string().optional(),
|
|
195
|
+
transform: clipTransformPatchParam
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
ui_timeline_add_text_clip: {
|
|
199
|
+
description: ADD_TEXT_CLIP_DESCRIPTION,
|
|
200
|
+
shape: {
|
|
201
|
+
text: z.string().trim().min(1),
|
|
202
|
+
trackId: z.string().optional(),
|
|
203
|
+
startMs: z.number().optional(),
|
|
204
|
+
durationMs: z.number().optional(),
|
|
205
|
+
opacity: clipOpacityParam,
|
|
206
|
+
name: z.string().optional(),
|
|
207
|
+
transform: clipTransformPatchParam,
|
|
208
|
+
style: partialTextStyleParams.optional(),
|
|
209
|
+
...partialTextStyleParams.shape
|
|
210
|
+
},
|
|
211
|
+
// The remedies attach to the schema the host validates against, so they
|
|
212
|
+
// are registered after the host has added its own fields.
|
|
213
|
+
finalize: (schema) => withTextClipRemedies(schema.strict())
|
|
214
|
+
},
|
|
215
|
+
ui_timeline_add_shape_clip: {
|
|
216
|
+
description: ADD_SHAPE_CLIP_DESCRIPTION,
|
|
217
|
+
shape: {
|
|
218
|
+
shape: shapeStyleParams.optional(),
|
|
219
|
+
shapeStyle: shapeStyleParams.optional(),
|
|
220
|
+
trackId: z.string().optional(),
|
|
221
|
+
startMs: z.number().optional(),
|
|
222
|
+
durationMs: z.number().optional(),
|
|
223
|
+
opacity: clipOpacityParam,
|
|
224
|
+
name: z.string().optional(),
|
|
225
|
+
transform: clipTransformPatchParam,
|
|
226
|
+
...shapeStyleParams.partial().shape
|
|
227
|
+
},
|
|
228
|
+
finalize: strictParams
|
|
229
|
+
},
|
|
230
|
+
ui_timeline_add_model3d_clip: {
|
|
231
|
+
description: ADD_MODEL3D_CLIP_DESCRIPTION,
|
|
232
|
+
shape: {
|
|
233
|
+
assetId: z
|
|
234
|
+
.string()
|
|
235
|
+
.trim()
|
|
236
|
+
.min(1)
|
|
237
|
+
.describe("Asset id of the .glb/.gltf model (from list_assets)."),
|
|
238
|
+
trackId: z.string().optional(),
|
|
239
|
+
startMs: z.number().optional(),
|
|
240
|
+
durationMs: z.number().optional(),
|
|
241
|
+
transform: clipTransformPatchParam,
|
|
242
|
+
style: model3dStyleParams.optional()
|
|
243
|
+
},
|
|
244
|
+
finalize: strictParams
|
|
245
|
+
},
|
|
246
|
+
ui_timeline_set_model3d_style: {
|
|
247
|
+
description: SET_MODEL3D_STYLE_DESCRIPTION,
|
|
248
|
+
shape: {
|
|
249
|
+
target: targetParam,
|
|
250
|
+
patch: model3dStyleParams
|
|
251
|
+
},
|
|
252
|
+
finalize: strictParams
|
|
253
|
+
},
|
|
254
|
+
ui_timeline_bake_model3d_clip: {
|
|
255
|
+
description: BAKE_MODEL3D_CLIP_DESCRIPTION,
|
|
256
|
+
shape: {
|
|
257
|
+
target: targetParam
|
|
258
|
+
},
|
|
259
|
+
finalize: strictParams
|
|
260
|
+
},
|
|
261
|
+
ui_timeline_generate_clip: {
|
|
262
|
+
description: 'Generate a new media clip from a text prompt and place it on the specified timeline sequence. `kind` is text-to-video, text-to-image, or text-to-audio (TTS). Provide `provider` and `model` (discover valid ones with the model-search tool); when omitted the last-used model for that media kind is reused. `voice` is required for text-to-audio. Without a track the clip lands on a sensible track for its media kind; without `startMs` it is appended after the track\'s existing content. Generation starts immediately unless `autoGenerate` is false. For text-to-video, `aspectRatio` (e.g. "16:9") and `resolution` (e.g. "720p") and `durationMs` are honoured by video models.',
|
|
263
|
+
shape: {
|
|
264
|
+
kind: z.enum(["text-to-video", "text-to-image", "text-to-audio"]),
|
|
265
|
+
prompt: z.string(),
|
|
266
|
+
trackId: z.string().optional(),
|
|
267
|
+
startMs: z.number().optional(),
|
|
268
|
+
durationMs: z.number().optional(),
|
|
269
|
+
provider: z.string().optional(),
|
|
270
|
+
model: z.string().optional(),
|
|
271
|
+
voice: z.string().optional(),
|
|
272
|
+
width: z.number().optional(),
|
|
273
|
+
height: z.number().optional(),
|
|
274
|
+
aspectRatio: z.string().optional(),
|
|
275
|
+
resolution: z.string().optional(),
|
|
276
|
+
autoGenerate: z.boolean().optional()
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
ui_timeline_generatively_edit_clip: {
|
|
280
|
+
description: "Start a nondestructive video edit for an existing clip. `clip_id` is explicit and `instruction` describes the change. The request uses the clip's submitted playable source window and returns a candidate take when generation completes; it never applies the candidate. Provide `provider` and `model` together for a known video-to-video model, or omit both to use the last-used video-edit model. The clip's generic model is never used as an edit model.",
|
|
281
|
+
shape: generativelyEditClipParams.shape,
|
|
282
|
+
finalize: strictGenerativelyEditClipParams
|
|
283
|
+
},
|
|
284
|
+
ui_timeline_apply_take: {
|
|
285
|
+
description: "Apply one completed candidate take to an existing clip. This is the explicit acceptance step for ui_timeline_generatively_edit_clip and is one undoable editorial operation. `clip_id` and `take_id` must identify a successful take on the same clip.",
|
|
286
|
+
shape: applyTakeParams.shape,
|
|
287
|
+
finalize: strictParams
|
|
288
|
+
},
|
|
289
|
+
ui_timeline_split_clip: {
|
|
290
|
+
description: "Cut a clip in two at the given time (the razor tool). `atMs` is an absolute time on the timeline and must fall inside the clip; omit it to split at the current playhead. Returns the two resulting halves.",
|
|
291
|
+
shape: {
|
|
292
|
+
target: targetParam,
|
|
293
|
+
atMs: z.number().optional()
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
ui_timeline_trim_clip: {
|
|
297
|
+
description: "Trim a clip's length or its source in/out points. `durationMs` sets the on-timeline length; `inPointMs`/`outPointMs` set the trimmed source window (ms into the source media). Omit a field to leave it unchanged.",
|
|
298
|
+
shape: {
|
|
299
|
+
target: targetParam,
|
|
300
|
+
durationMs: z.number().optional(),
|
|
301
|
+
inPointMs: z.number().optional(),
|
|
302
|
+
outPointMs: z.number().optional()
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
ui_timeline_move_clip: {
|
|
306
|
+
description: "Move a clip to a new absolute start time and/or onto a different track. `startMs` is the new start on the timeline (ms, clamped to >= 0); `trackId` reassigns the track. Omit a field to leave it unchanged.",
|
|
307
|
+
shape: {
|
|
308
|
+
target: targetParam,
|
|
309
|
+
startMs: z.number().optional(),
|
|
310
|
+
trackId: z.string().optional()
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
ui_timeline_delete_clip: {
|
|
314
|
+
description: "Remove a clip from the specified timeline sequence.",
|
|
315
|
+
shape: { target: targetParam }
|
|
316
|
+
},
|
|
317
|
+
ui_timeline_duplicate_clip: {
|
|
318
|
+
description: "Duplicate a clip. The copy is placed immediately after the source (add `gapMs` for a gap) and keeps its generation binding so you can tweak the copy for a variation.",
|
|
319
|
+
shape: {
|
|
320
|
+
target: targetParam,
|
|
321
|
+
gapMs: z.number().optional()
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
ui_timeline_set_clip_params: {
|
|
325
|
+
description: "Change a clip's render/audio params: `name`, `opacity` (0..1), `speedMultiplier` (0.1..8), `volumeDb`, `fadeInMs`, `fadeOutMs`, `fadeInShape`/`fadeOutShape` (`linear`, `sCurve`, `plus3dB`, `minus3dB`), `blendMode`, `borderRadius`, `hidden`, `muted`, `locked`, a text clip's `textStyle`, a shape clip's `shapeStyle`, or a caption clip's `captionStyle`. `fontSizePx` is shorthand for `textStyle.fontSizePx`. Timing is accepted too and applied as trim_clip/move_clip would: `durationMs`, `inPointMs`, `outPointMs`, `startMs`, `trackId`. A key this tool does not know is refused by name rather than ignored. Omit a field to leave it unchanged.",
|
|
326
|
+
shape: {
|
|
327
|
+
target: targetParam,
|
|
328
|
+
startMs: z.number().optional(),
|
|
329
|
+
trackId: z.string().optional(),
|
|
330
|
+
durationMs: z.number().optional(),
|
|
331
|
+
inPointMs: z.number().optional(),
|
|
332
|
+
outPointMs: z.number().optional(),
|
|
333
|
+
fontSizePx: z.number().optional(),
|
|
334
|
+
name: z.string().optional(),
|
|
335
|
+
opacity: z.number().optional(),
|
|
336
|
+
transform: clipTransformPatchParam,
|
|
337
|
+
speedMultiplier: z.number().optional(),
|
|
338
|
+
volumeDb: z.number().optional(),
|
|
339
|
+
fadeInMs: z.number().optional(),
|
|
340
|
+
fadeOutMs: z.number().optional(),
|
|
341
|
+
fadeInShape: clipFadeShapeEnum.optional(),
|
|
342
|
+
fadeOutShape: clipFadeShapeEnum.optional(),
|
|
343
|
+
blendMode: z.string().optional(),
|
|
344
|
+
borderRadius: z.number().optional(),
|
|
345
|
+
hidden: z.boolean().optional(),
|
|
346
|
+
muted: z.boolean().optional(),
|
|
347
|
+
locked: z.boolean().optional(),
|
|
348
|
+
textStyle: textStyleParams.optional(),
|
|
349
|
+
shapeStyle: shapeStyleParams.optional(),
|
|
350
|
+
captionStyle: captionStyleParams.optional()
|
|
351
|
+
},
|
|
352
|
+
// A key the schema does not list is kept rather than stripped, so
|
|
353
|
+
// `rejectUnknownClipParams` can refuse it by name: silently dropping
|
|
354
|
+
// `startMs` looked like a successful call that changed nothing.
|
|
355
|
+
finalize: (schema) => schema.catchall(z.unknown())
|
|
356
|
+
},
|
|
357
|
+
ui_timeline_add_group: {
|
|
358
|
+
description: "Create a group clip: a clip with no media of its own whose transform, opacity and window every clip naming it inherits. Move the group and its children move with it; fade the group and they fade together; a child outside the group's window is not drawn. Children keep their own tracks, so what covers what is unchanged. Pass `children` to parent clips as the group is created, or use ui_timeline_set_parent afterwards.",
|
|
359
|
+
shape: addGroupParams.shape
|
|
360
|
+
},
|
|
361
|
+
ui_timeline_set_parent: {
|
|
362
|
+
description: "Parent a clip to a group so it inherits the group's transform, opacity and window, or release it with `parentId: null`. The parent must be a clip created with ui_timeline_add_group; a clip cannot parent itself or any group beneath it.",
|
|
363
|
+
shape: setParentParams.shape
|
|
364
|
+
},
|
|
365
|
+
ui_timeline_set_transition: {
|
|
366
|
+
description: "Set the transition a clip opens with, or clear it with `transition: null`. A transition is between two clips: it plays over the head of `target` against whatever sits beneath it on the same track, so overlap the two clips by at least `durationMs` for both to be seen. Types: crossfade (dissolve), dipToColor (through a solid), wipe (feathered reveal), push (both clips travel), slide (only the incoming moves), zoom. With no transition set, overlapping clips still auto-dissolve across the overlap.",
|
|
367
|
+
shape: {
|
|
368
|
+
target: targetParam,
|
|
369
|
+
transition: transitionParams.nullable()
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
ui_timeline_set_mask: {
|
|
373
|
+
description: "Mask a clip to a rectangle, an ellipse or an SVG path, or clear it with `mask: null`. Coordinates are 0..1 in the clip's own space, so the mask turns and scales with the clip. `featherPx` softens the edge; `invert` keeps what the shape excludes instead.",
|
|
374
|
+
shape: {
|
|
375
|
+
target: targetParam,
|
|
376
|
+
mask: maskParams.nullable()
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
ui_timeline_set_matte: {
|
|
380
|
+
description: 'Drive a clip\'s transparency from another clip — a track matte — or clear it with `matte: null`. The source clip stops drawing itself: its alpha (`mode: "alpha"`) or its brightness (`mode: "luma"`) becomes the target\'s transparency, so a white shape over black shows the target only where the shape is. Both clips are placed by their own transforms, so where the source sits on the frame is where the target shows through.',
|
|
381
|
+
shape: {
|
|
382
|
+
target: targetParam,
|
|
383
|
+
matte: matteParams.nullable()
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
ui_timeline_set_time_remap: {
|
|
387
|
+
description: "Retime a clip from a curve — ramps, freezes, speed changes — or clear it with `timeRemap: null` so it plays at its own rate. Each keyframe says where in the source media (`sourceMs`) the clip sits at position `t`, normalized 0..1 over the clip's own window — so the list must start at 0, end at 1, ascend in `t`, and hold at least two keyframes. A `sourceMs` that descends is reverse playback, a flat pair is a freeze, and a steeper segment plays faster. A remap replaces the clip's rate entirely, and split and trim refuse a remapped clip: clear the curve first.",
|
|
388
|
+
shape: setTimeRemapParams.shape
|
|
389
|
+
},
|
|
390
|
+
ui_timeline_set_effects: {
|
|
391
|
+
description: "Replace a clip's effect chain, or clear it with `effects: []`. The list runs in order on the clip's own pixels, before it is placed on the frame. Types: color (brightness/contrast/saturation/hue/temperature/tint/shadows/highlights), blur, glow, dropShadow, vignette, sharpen, chromaKey, curves (control points, 0..1 on both axes), levels (in/out black and white plus gamma), liftGammaGain (a three-way grade, one number per channel). This replaces the whole chain — send every effect the clip should keep.",
|
|
392
|
+
shape: {
|
|
393
|
+
target: targetParam,
|
|
394
|
+
effects: z
|
|
395
|
+
.array(effectParams)
|
|
396
|
+
.describe("The chain, in order. An empty list clears it.")
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
ui_timeline_set_clip_binding: {
|
|
400
|
+
description: "Edit a generated clip's generation binding — its `prompt`, `negativePrompt`, `provider`/`model`, TTS `voice`, dimensions, `aspectRatio`/`resolution`, `strength`, or `numInferenceSteps`. Set `regenerate` true to immediately re-run generation with the new settings. Only applies to generated clips.",
|
|
401
|
+
shape: {
|
|
402
|
+
target: targetParam,
|
|
403
|
+
prompt: z.string().optional(),
|
|
404
|
+
negativePrompt: z.string().optional(),
|
|
405
|
+
provider: z.string().optional(),
|
|
406
|
+
model: z.string().optional(),
|
|
407
|
+
voice: z.string().optional(),
|
|
408
|
+
width: z.number().optional(),
|
|
409
|
+
height: z.number().optional(),
|
|
410
|
+
aspectRatio: z.string().optional(),
|
|
411
|
+
resolution: z.string().optional(),
|
|
412
|
+
strength: z.number().optional(),
|
|
413
|
+
numInferenceSteps: z.number().optional(),
|
|
414
|
+
regenerate: z.boolean().optional()
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
ui_timeline_animate_clip: {
|
|
418
|
+
description: 'Attach motion-design animations to a clip with named presets or custom curves. Roles: `in`, `out`, `emphasis`, `loop`. For `typewriter` on text, `durationMs` is the time to reveal the entire line; without it, characters type 65ms apart. `stagger: {offsetMs: 55}` customizes the speed and defaults to character units. Optional `caret: {color, widthPx, blinkPeriodMs}` follows the visible text. Other text animations can stagger by word, character, or wrapped line. Use `preset: "custom"` with `curves` to animate properties including rotationX and rotationY; set perspective on the clip transform. `mode` "replace" (default) swaps animations; "add" appends. Call ui_timeline_list_animation_presets for the full contract.',
|
|
419
|
+
shape: {
|
|
420
|
+
target: targetParam,
|
|
421
|
+
mode: z.enum(["add", "replace"]).optional(),
|
|
422
|
+
animations: z.array(animationInput(vocab)).min(1)
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
ui_timeline_stagger_animations: {
|
|
426
|
+
description: "Offset existing animations across clips in the order listed. clip_ids are ordered clip IDs, not names. Each clip's animation delay increases by its zero-based index times offset_ms; media timing stays fixed. Every clip must have an animation.",
|
|
427
|
+
shape: {
|
|
428
|
+
clip_ids: z.array(z.string().min(1)).min(2),
|
|
429
|
+
offset_ms: z.number().finite().min(0)
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
ui_timeline_clear_animations: {
|
|
433
|
+
description: "Remove motion-design animations from a clip. Pass `role` to clear only that role (in/out/emphasis/loop); omit it to clear all.",
|
|
434
|
+
shape: {
|
|
435
|
+
target: targetParam,
|
|
436
|
+
role: animationRole.optional()
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
ui_timeline_list_animation_presets: {
|
|
440
|
+
description: "List the motion-design animation presets: id, allowed roles, params (with defaults and ranges), default duration/easing, and a one-line description. Also returns the `custom` preset's contract and every animatable property with its fold, identity and range, for keyframed motion no preset covers. Use this to discover the exact preset names and params for ui_timeline_animate_clip.",
|
|
441
|
+
shape: {}
|
|
442
|
+
},
|
|
443
|
+
ui_timeline_select_clip: {
|
|
444
|
+
description: "Select a clip in the specified timeline sequence (driving the inspector). Pass null/empty to clear the selection.",
|
|
445
|
+
shape: { target: targetParam.nullable().optional() }
|
|
446
|
+
},
|
|
447
|
+
ui_timeline_seek: {
|
|
448
|
+
description: "Move the playhead to an absolute time (ms) in the specified timeline sequence. Useful before splitting at the playhead.",
|
|
449
|
+
shape: { timeMs: z.number() }
|
|
450
|
+
},
|
|
451
|
+
ui_timeline_add_marker: {
|
|
452
|
+
description: "Drop a marker at an absolute time on the specified timeline sequence, to flag a moment — a beat, a scene boundary, a note for the user. Markers do not render; they are annotations on the ruler.",
|
|
453
|
+
shape: {
|
|
454
|
+
timeMs: z
|
|
455
|
+
.number()
|
|
456
|
+
.describe("Absolute position on the timeline in ms. Must be >= 0."),
|
|
457
|
+
label: z
|
|
458
|
+
.string()
|
|
459
|
+
.optional()
|
|
460
|
+
.describe("Short label shown on the ruler."),
|
|
461
|
+
color: z.string().optional().describe("CSS colour for the marker dot."),
|
|
462
|
+
note: z
|
|
463
|
+
.string()
|
|
464
|
+
.optional()
|
|
465
|
+
.describe("Longer note attached to the marker.")
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
ui_timeline_delete_marker: {
|
|
469
|
+
description: "Remove a marker from the specified timeline sequence by id or by its label (case-insensitive). Call ui_timeline_get_state to see the markers it carries.",
|
|
470
|
+
shape: {
|
|
471
|
+
target: z.string().describe("Marker id or label (case-insensitive).")
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
ui_timeline_set_markers_from_beats: {
|
|
475
|
+
description: "Lay a marker on every beat of a grid, so the cut has something to work against. The grid is either `onsets_ms` — detect_audio_events reports `onsets.times` in SECONDS, so multiply by 1000 — or `bpm` with `count` and an optional `offset_ms` for where beat one sits. Markers already on the sequence are kept, and a beat that already carries one is skipped, so re-running the same grid changes nothing.",
|
|
476
|
+
shape: {
|
|
477
|
+
onsets_ms: z
|
|
478
|
+
.array(z.number())
|
|
479
|
+
.optional()
|
|
480
|
+
.describe("Absolute beat times in ms. Exactly one of this and `bpm`."),
|
|
481
|
+
bpm: z.number().optional().describe("Tempo. Needs `count`."),
|
|
482
|
+
offset_ms: z
|
|
483
|
+
.number()
|
|
484
|
+
.optional()
|
|
485
|
+
.describe("Where beat one sits, in ms. Default 0."),
|
|
486
|
+
count: z.number().optional().describe("Beats to lay down, with `bpm`."),
|
|
487
|
+
label: z
|
|
488
|
+
.string()
|
|
489
|
+
.optional()
|
|
490
|
+
.describe('Label stem; each marker is numbered from 1 ("Beat 1", "Beat 2", …). Default "Beat".')
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
ui_timeline_snap_to_beats: {
|
|
494
|
+
description: "Put clip boundaries on a beat grid. The grid is either `onsets_ms` — detect_audio_events reports `onsets.times` in SECONDS, so multiply by 1000 — or `bpm` with an optional `offset_ms`. `mode` picks the boundary, `action` picks how it gets there: `move` slides the whole clip and keeps its length, `trim` holds the opposite boundary and changes the length. A boundary further than `tolerance_ms` from every beat is left where it is and reported with the reason, so read the per-clip result rather than assuming everything moved.",
|
|
495
|
+
shape: {
|
|
496
|
+
targets: z
|
|
497
|
+
.union([z.array(z.string()), z.literal("all")])
|
|
498
|
+
.optional()
|
|
499
|
+
.describe('Clip ids or names, or "all". Default: every clip on the sequence.'),
|
|
500
|
+
onsets_ms: z
|
|
501
|
+
.array(z.number())
|
|
502
|
+
.optional()
|
|
503
|
+
.describe("Absolute beat times in ms. Exactly one of this and `bpm`."),
|
|
504
|
+
bpm: z
|
|
505
|
+
.number()
|
|
506
|
+
.optional()
|
|
507
|
+
.describe("Tempo. The grid is generated far enough to reach every target."),
|
|
508
|
+
offset_ms: z
|
|
509
|
+
.number()
|
|
510
|
+
.optional()
|
|
511
|
+
.describe("Where beat one sits, in ms. Default 0."),
|
|
512
|
+
tolerance_ms: z
|
|
513
|
+
.number()
|
|
514
|
+
.optional()
|
|
515
|
+
.describe(`How far a boundary may travel to reach a beat. Default ${vocab.beatToleranceMs}ms.`),
|
|
516
|
+
mode: z
|
|
517
|
+
.enum(["start", "end", "both"])
|
|
518
|
+
.optional()
|
|
519
|
+
.describe('Which boundary lands on a beat. Default "start".'),
|
|
520
|
+
action: z
|
|
521
|
+
.enum(["move", "trim"])
|
|
522
|
+
.optional()
|
|
523
|
+
.describe('"move" slides the clip, "trim" changes its length. Default "move".')
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
// ── Guided video flow (PRD § 8.6) ────────────────────────────────────
|
|
527
|
+
ui_timeline_set_setup: {
|
|
528
|
+
description: "Write the guided video flow's state onto a sequence: the brief it is being built from, the format card it follows, whether the cut is voiced, and the step it sits on. Stages are idea, format, review, look, done — a surface showing the flow resumes at whichever one is stored, and `done` hands the sequence back to the editor. Nothing here generates or places anything.",
|
|
529
|
+
shape: {
|
|
530
|
+
stage: z
|
|
531
|
+
.enum(["idea", "format", "review", "look", "done"])
|
|
532
|
+
.optional()
|
|
533
|
+
.describe("The step the flow resumes at. Omit to leave it alone."),
|
|
534
|
+
brief: z
|
|
535
|
+
.string()
|
|
536
|
+
.optional()
|
|
537
|
+
.describe("What the video is, in the creator's own words."),
|
|
538
|
+
format: z
|
|
539
|
+
.string()
|
|
540
|
+
.optional()
|
|
541
|
+
.describe('Format card id: "ad-15", "spot-30", "explainer-60", "social-9x16", "trailer", "music-video", "slideshow".'),
|
|
542
|
+
voiceover: z
|
|
543
|
+
.boolean()
|
|
544
|
+
.optional()
|
|
545
|
+
.describe("Whether the cut is voiced. Omit and each beat's own line decides; false is a deliberate silence that leaves the lines on the beats, so nothing the creator wrote is thrown away.")
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
ui_timeline_plan_beats: {
|
|
549
|
+
description: "Write the beat plan a video is cut from — one row per shot, each with its prompt, its length in milliseconds, an optional transition into it, and an optional voiceover line. Pass `beats` to set the plan yourself; omit it in the editor and the Director drafts one from the sequence's brief and format. This is the cheap step: it creates no clip and starts no job, and the plan stays editable until generate_from_beats runs. Sets the stage to review.",
|
|
550
|
+
shape: {
|
|
551
|
+
beats: z
|
|
552
|
+
.array(z.object({
|
|
553
|
+
prompt: z.string().trim().min(1),
|
|
554
|
+
durationMs: z.number().positive(),
|
|
555
|
+
transition: z.string().optional(),
|
|
556
|
+
voiceover: z.string().optional(),
|
|
557
|
+
music: z.boolean().optional()
|
|
558
|
+
}))
|
|
559
|
+
.optional()
|
|
560
|
+
.describe("The plan, in cut order. Replaces any existing beats."),
|
|
561
|
+
replan: z
|
|
562
|
+
.boolean()
|
|
563
|
+
.optional()
|
|
564
|
+
.describe("Re-run the Director over the beats already stored, using them as context, rather than starting fresh.")
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
ui_timeline_update_beat: {
|
|
568
|
+
description: "Change one beat of the plan, by its id or its 1-based position. Only the fields you pass are touched; pass an empty `voiceover` to drop the line and `transition: null` to make the beat a straight cut. Editing a beat never touches a clip that was already generated from it.",
|
|
569
|
+
shape: {
|
|
570
|
+
beat: z
|
|
571
|
+
.string()
|
|
572
|
+
.trim()
|
|
573
|
+
.min(1)
|
|
574
|
+
.describe('A beat id, or its 1-based position as a string ("3").'),
|
|
575
|
+
prompt: z.string().optional(),
|
|
576
|
+
durationMs: z.number().positive().optional(),
|
|
577
|
+
transition: z.string().nullable().optional(),
|
|
578
|
+
voiceover: z.string().optional(),
|
|
579
|
+
music: z.boolean().optional()
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
ui_timeline_remove_beat: {
|
|
583
|
+
description: "Drop one beat from the plan, by its id or its 1-based position. The beats around it keep their order and their ids, and their positions close up. This edits text only: a clip already generated from the beat stays on the timeline, so delete that separately if you no longer want it.",
|
|
584
|
+
shape: {
|
|
585
|
+
beat: z
|
|
586
|
+
.string()
|
|
587
|
+
.trim()
|
|
588
|
+
.min(1)
|
|
589
|
+
.describe('A beat id, or its 1-based position as a string ("3").')
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
ui_timeline_generate_from_beats: {
|
|
593
|
+
description: "Turn the reviewed plan into a cut: one text-to-video clip per beat on the video track, one text-to-audio clip per beat that carries a voiceover, one music clip when any beat asks for music, and each beat's transition applied to its clip. In the editor every clip's generation is enqueued and the clips appear as placeholders that fill in; headlessly the clips are authored and nothing renders. Sets the stage to done.",
|
|
594
|
+
shape: {
|
|
595
|
+
model: z
|
|
596
|
+
.string()
|
|
597
|
+
.optional()
|
|
598
|
+
.describe("Video model id for the beat clips."),
|
|
599
|
+
provider: z.string().optional(),
|
|
600
|
+
voice: z
|
|
601
|
+
.string()
|
|
602
|
+
.optional()
|
|
603
|
+
.describe("Voice id for the voiceover clips. Omit for no voiceover."),
|
|
604
|
+
music: z
|
|
605
|
+
.boolean()
|
|
606
|
+
.optional()
|
|
607
|
+
.describe("Add the music clip. Default: whether any beat asks for it.")
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
ui_timeline_add_midi_clip: {
|
|
611
|
+
description: "Place a midi clip — a phrase played by the track's synth — on a midi track. The notes ride inside the clip in ticks from its content start (960 ticks = one quarter note, read against the document tempo), so trimming the clip hides notes rather than deleting them. `duration_ms` is the window: a note running past its end is gated there. Set the voice with ui_timeline_set_track_instrument and the tempo with ui_timeline_set_tempo.",
|
|
612
|
+
shape: addMidiClipParams.shape
|
|
613
|
+
},
|
|
614
|
+
ui_timeline_set_notes: {
|
|
615
|
+
description: "Replace a midi clip's notes. This is the whole list, not a merge — send every note the clip should keep, each with `pitch`, `start_tick` and `duration_tick` (960 ticks = one quarter note, counted from the clip's content start). Pass a note's `id` to keep the one it already has.",
|
|
616
|
+
shape: setNotesParams.shape
|
|
617
|
+
},
|
|
618
|
+
ui_timeline_set_tempo: {
|
|
619
|
+
description: SET_TEMPO_DESCRIPTION,
|
|
620
|
+
shape: setTempoParams.shape
|
|
621
|
+
},
|
|
622
|
+
ui_timeline_set_track_instrument: {
|
|
623
|
+
description: SET_TRACK_INSTRUMENT_DESCRIPTION,
|
|
624
|
+
shape: setTrackInstrumentParams.shape
|
|
625
|
+
},
|
|
626
|
+
ui_timeline_transpose_clip: {
|
|
627
|
+
description: TRANSPOSE_CLIP_DESCRIPTION,
|
|
628
|
+
shape: transposeClipParams.shape
|
|
629
|
+
},
|
|
630
|
+
ui_timeline_quantize_notes: {
|
|
631
|
+
description: QUANTIZE_NOTES_DESCRIPTION,
|
|
632
|
+
shape: quantizeNotesParams.shape
|
|
633
|
+
},
|
|
634
|
+
ui_timeline_scale_velocity: {
|
|
635
|
+
description: SCALE_VELOCITY_DESCRIPTION,
|
|
636
|
+
shape: scaleVelocityParams.shape
|
|
637
|
+
},
|
|
638
|
+
ui_timeline_retarget_format: {
|
|
639
|
+
description: "Create a new sequence adapted to another aspect ratio without changing the source sequence. Center uses a static centered crop. Smart derives source-time framing paths from current subject tracks or authored framing and refuses clips with neither signal. Track follows the per-clip MediaTrack ids in `track_ids`. Timing, audio, cuts, effects, takes, captions, markers and tracking are preserved.",
|
|
640
|
+
shape: retargetFormatParams.shape,
|
|
641
|
+
finalize: strictParams
|
|
642
|
+
},
|
|
643
|
+
ui_timeline_set_reframe_subject: {
|
|
644
|
+
description: "Set the subject track that drives one clip's source-time Smart Reframe crop. The clip and MediaTrack must belong to the current sequence. This changes editorial framing only and does not alter or regenerate the source asset.",
|
|
645
|
+
shape: setReframeSubjectParams.shape,
|
|
646
|
+
finalize: strictParams
|
|
647
|
+
},
|
|
648
|
+
ui_timeline_add_reframe_keyframe: {
|
|
649
|
+
description: "Add or replace a manual Smart Reframe correction on one clip. `source_ms` is absolute time on the clip's source clock, x and y are normalized source-frame coordinates, and optional zoom is 1 or greater. Corrections interpolate around the automatic path and do not overwrite its analysis.",
|
|
650
|
+
shape: addReframeKeyframeParams.shape,
|
|
651
|
+
finalize: strictParams
|
|
652
|
+
},
|
|
653
|
+
ui_timeline_clear_reframe: {
|
|
654
|
+
description: "Remove Smart Reframe state from one clip while leaving its source asset, timing, static crop, transform and every other editorial property unchanged.",
|
|
655
|
+
shape: clearReframeParams.shape,
|
|
656
|
+
finalize: strictParams
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
const built = new Map();
|
|
661
|
+
/**
|
|
662
|
+
* The shared contracts, built once per vocabulary. Both hosts pass the same
|
|
663
|
+
* lists straight out of `@nodetool-ai/timeline`, so both get the same record.
|
|
664
|
+
*/
|
|
665
|
+
export function buildTimelineToolContracts(vocab) {
|
|
666
|
+
const key = [
|
|
667
|
+
vocab.staggerUnits.join(","),
|
|
668
|
+
vocab.animatedProperties.join(","),
|
|
669
|
+
vocab.beatToleranceMs
|
|
670
|
+
].join("|");
|
|
671
|
+
const cached = built.get(key);
|
|
672
|
+
if (cached)
|
|
673
|
+
return cached;
|
|
674
|
+
const contracts = makeTimelineToolContracts(vocab);
|
|
675
|
+
built.set(key, contracts);
|
|
676
|
+
return contracts;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Tools only the browser registers.
|
|
680
|
+
*
|
|
681
|
+
* `ui_timeline_get_clip_frames` samples pixels out of a rendered video clip,
|
|
682
|
+
* which the headless surface has no rasterizer for. `ui_timeline_edit` batches
|
|
683
|
+
* calls to the other tools through the browser registry, and the headless
|
|
684
|
+
* bridge's `edit_timeline` already does that job by walking its own tool list.
|
|
685
|
+
*/
|
|
686
|
+
export const BROWSER_ONLY_TIMELINE_TOOL_NAMES = [
|
|
687
|
+
"ui_timeline_get_clip_frames",
|
|
688
|
+
"ui_timeline_edit"
|
|
689
|
+
];
|
|
690
|
+
/**
|
|
691
|
+
* Tools only the headless bridge registers. `ui_timeline_insert_composition`
|
|
692
|
+
* reads a stored composition library the browser editor does not expose to the
|
|
693
|
+
* agent. `ui_timeline_set_baked_animation` writes the curve a server-side bake
|
|
694
|
+
* measured (`bake_audio_animation`); the editor writes curves through the
|
|
695
|
+
* inspector, not through an agent call. `ui_timeline_set_generated_matte` is
|
|
696
|
+
* the same story for the matte `isolate_subject` cuts: the inspector's own
|
|
697
|
+
* controls write the invert, strength and feather straight into the store.
|
|
698
|
+
* The take ops (`ui_timeline_list_takes`/`select_take`/`rename_take`/
|
|
699
|
+
* `delete_take`, P0 AI Video PRD § 8.10) are the same again: the editor's
|
|
700
|
+
* `ClipVersionHistory` panel writes straight into `TimelineStore` via
|
|
701
|
+
* `restoreVersion`/`renameTake`/`deleteTake`. So are the track ops
|
|
702
|
+
* (`ui_timeline_list_tracks`/`delete_track_object`/`bind_to_track`/
|
|
703
|
+
* `unbind_track`, P0 AI Video Phase 2), whose editor half is the Inspector's
|
|
704
|
+
* `ClipTracking` panel writing through `TimelineStore.bindToTrack`/
|
|
705
|
+
* `unbindTrack`.
|
|
706
|
+
* The generated cut transition tools are headless-only because the browser
|
|
707
|
+
* editor does not expose the agent's candidate lifecycle.
|
|
708
|
+
*/
|
|
709
|
+
export const HEADLESS_ONLY_TIMELINE_TOOL_NAMES = [
|
|
710
|
+
"ui_timeline_insert_composition",
|
|
711
|
+
"ui_timeline_set_baked_animation",
|
|
712
|
+
"ui_timeline_set_generated_matte",
|
|
713
|
+
"ui_timeline_list_takes",
|
|
714
|
+
"ui_timeline_select_take",
|
|
715
|
+
"ui_timeline_rename_take",
|
|
716
|
+
"ui_timeline_delete_take",
|
|
717
|
+
"ui_timeline_list_tracks",
|
|
718
|
+
"ui_timeline_delete_track_object",
|
|
719
|
+
"ui_timeline_bind_to_track",
|
|
720
|
+
"ui_timeline_unbind_track",
|
|
721
|
+
"ui_timeline_generate_transition_at_cut",
|
|
722
|
+
"ui_timeline_preview_transition_candidate",
|
|
723
|
+
"ui_timeline_apply_transition_at_cut"
|
|
724
|
+
];
|
|
725
|
+
//# sourceMappingURL=timeline-tool-contracts.js.map
|