@nodetool-ai/agents 0.7.0-rc.23 → 0.8.2
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 +35 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/analysis/audio-dsp.d.ts +224 -0
- package/dist/analysis/audio-dsp.d.ts.map +1 -0
- package/dist/analysis/audio-dsp.js +645 -0
- package/dist/analysis/audio-dsp.js.map +1 -0
- package/dist/analysis/media-decode.d.ts +98 -0
- package/dist/analysis/media-decode.d.ts.map +1 -0
- package/dist/analysis/media-decode.js +226 -0
- package/dist/analysis/media-decode.js.map +1 -0
- package/dist/analysis/mediabunny-runtime.d.ts +15 -0
- package/dist/analysis/mediabunny-runtime.d.ts.map +1 -0
- package/dist/analysis/mediabunny-runtime.js +30 -0
- package/dist/analysis/mediabunny-runtime.js.map +1 -0
- package/dist/analysis/video-frames.d.ts +120 -0
- package/dist/analysis/video-frames.d.ts.map +1 -0
- package/dist/analysis/video-frames.js +288 -0
- package/dist/analysis/video-frames.js.map +1 -0
- package/dist/apify/assets.d.ts +80 -0
- package/dist/apify/assets.d.ts.map +1 -0
- package/dist/apify/assets.js +192 -0
- package/dist/apify/assets.js.map +1 -0
- package/dist/apify/catalog.d.ts +44 -0
- package/dist/apify/catalog.d.ts.map +1 -0
- package/dist/apify/catalog.js +108 -0
- package/dist/apify/catalog.js.map +1 -0
- package/dist/apify/client.d.ts +137 -0
- package/dist/apify/client.d.ts.map +1 -0
- package/dist/apify/client.js +346 -0
- package/dist/apify/client.js.map +1 -0
- package/dist/apify/errors.d.ts +85 -0
- package/dist/apify/errors.d.ts.map +1 -0
- package/dist/apify/errors.js +90 -0
- package/dist/apify/errors.js.map +1 -0
- package/dist/apify/normalize.d.ts +131 -0
- package/dist/apify/normalize.d.ts.map +1 -0
- package/dist/apify/normalize.js +202 -0
- package/dist/apify/normalize.js.map +1 -0
- package/dist/apify/policy.d.ts +136 -0
- package/dist/apify/policy.d.ts.map +1 -0
- package/dist/apify/policy.js +223 -0
- package/dist/apify/policy.js.map +1 -0
- package/dist/apify/run.d.ts +86 -0
- package/dist/apify/run.d.ts.map +1 -0
- package/dist/apify/run.js +158 -0
- package/dist/apify/run.js.map +1 -0
- package/dist/app-build/author.d.ts +67 -0
- package/dist/app-build/author.d.ts.map +1 -0
- package/dist/app-build/author.js +231 -0
- package/dist/app-build/author.js.map +1 -0
- package/dist/app-build/bridge.d.ts +130 -0
- package/dist/app-build/bridge.d.ts.map +1 -0
- package/dist/app-build/bridge.js +647 -0
- package/dist/app-build/bridge.js.map +1 -0
- package/dist/app-build/build-service.d.ts +66 -0
- package/dist/app-build/build-service.d.ts.map +1 -0
- package/dist/app-build/build-service.js +249 -0
- package/dist/app-build/build-service.js.map +1 -0
- package/dist/app-build/build.d.ts +115 -0
- package/dist/app-build/build.d.ts.map +1 -0
- package/dist/app-build/build.js +901 -0
- package/dist/app-build/build.js.map +1 -0
- package/dist/app-build/interactions.d.ts +20 -0
- package/dist/app-build/interactions.d.ts.map +1 -0
- package/dist/app-build/interactions.js +121 -0
- package/dist/app-build/interactions.js.map +1 -0
- package/dist/app-build/judge.d.ts +113 -0
- package/dist/app-build/judge.d.ts.map +1 -0
- package/dist/app-build/judge.js +318 -0
- package/dist/app-build/judge.js.map +1 -0
- package/dist/app-build/markdown.d.ts +10 -0
- package/dist/app-build/markdown.d.ts.map +1 -0
- package/dist/app-build/markdown.js +65 -0
- package/dist/app-build/markdown.js.map +1 -0
- package/dist/app-build/spec.d.ts +228 -0
- package/dist/app-build/spec.d.ts.map +1 -0
- package/dist/app-build/spec.js +651 -0
- package/dist/app-build/spec.js.map +1 -0
- package/dist/app-build/tool-loop.d.ts +84 -0
- package/dist/app-build/tool-loop.d.ts.map +1 -0
- package/dist/app-build/tool-loop.js +113 -0
- package/dist/app-build/tool-loop.js.map +1 -0
- package/dist/app-build/types.d.ts +215 -0
- package/dist/app-build/types.d.ts.map +1 -0
- package/dist/app-build/types.js +28 -0
- package/dist/app-build/types.js.map +1 -0
- package/dist/author-graph.d.ts +90 -0
- package/dist/author-graph.d.ts.map +1 -0
- package/dist/author-graph.js +317 -0
- package/dist/author-graph.js.map +1 -0
- package/dist/background-subtasks.d.ts +79 -0
- package/dist/background-subtasks.d.ts.map +1 -0
- package/dist/background-subtasks.js +139 -0
- package/dist/background-subtasks.js.map +1 -0
- package/dist/blender-gate.d.ts +21 -0
- package/dist/blender-gate.d.ts.map +1 -0
- package/dist/blender-gate.js +27 -0
- package/dist/blender-gate.js.map +1 -0
- package/dist/browser-gate.d.ts +28 -0
- package/dist/browser-gate.d.ts.map +1 -0
- package/dist/browser-gate.js +34 -0
- package/dist/browser-gate.js.map +1 -0
- package/dist/capabilities/GamePublishRequest.d.ts +14 -0
- package/dist/capabilities/GamePublishRequest.d.ts.map +1 -0
- package/dist/capabilities/GamePublishRequest.js +2 -0
- package/dist/capabilities/GamePublishRequest.js.map +1 -0
- package/dist/capabilities/adapters.d.ts +27 -0
- package/dist/capabilities/adapters.d.ts.map +1 -0
- package/dist/capabilities/adapters.js +39 -0
- package/dist/capabilities/adapters.js.map +1 -0
- package/dist/capabilities/agent-activity.d.ts +27 -0
- package/dist/capabilities/agent-activity.d.ts.map +1 -0
- package/dist/capabilities/agent-activity.js +103 -0
- package/dist/capabilities/agent-activity.js.map +1 -0
- package/dist/capabilities/agentic-storyboard-finish.d.ts +67 -0
- package/dist/capabilities/agentic-storyboard-finish.d.ts.map +1 -0
- package/dist/capabilities/agentic-storyboard-finish.js +1321 -0
- package/dist/capabilities/agentic-storyboard-finish.js.map +1 -0
- package/dist/capabilities/agents.d.ts +81 -0
- package/dist/capabilities/agents.d.ts.map +1 -0
- package/dist/capabilities/agents.js +376 -0
- package/dist/capabilities/agents.js.map +1 -0
- package/dist/capabilities/agents.specs.d.ts +30 -0
- package/dist/capabilities/agents.specs.d.ts.map +1 -0
- package/dist/capabilities/agents.specs.js +313 -0
- package/dist/capabilities/agents.specs.js.map +1 -0
- package/dist/capabilities/analysis.d.ts +93 -0
- package/dist/capabilities/analysis.d.ts.map +1 -0
- package/dist/capabilities/analysis.js +823 -0
- package/dist/capabilities/analysis.js.map +1 -0
- package/dist/capabilities/analysis.specs.d.ts +39 -0
- package/dist/capabilities/analysis.specs.d.ts.map +1 -0
- package/dist/capabilities/analysis.specs.js +217 -0
- package/dist/capabilities/analysis.specs.js.map +1 -0
- package/dist/capabilities/apify.d.ts +34 -0
- package/dist/capabilities/apify.d.ts.map +1 -0
- package/dist/capabilities/apify.js +449 -0
- package/dist/capabilities/apify.js.map +1 -0
- package/dist/capabilities/apify.specs.d.ts +28 -0
- package/dist/capabilities/apify.specs.d.ts.map +1 -0
- package/dist/capabilities/apify.specs.js +232 -0
- package/dist/capabilities/apify.specs.js.map +1 -0
- package/dist/capabilities/apps.d.ts +40 -0
- package/dist/capabilities/apps.d.ts.map +1 -0
- package/dist/capabilities/apps.js +415 -0
- package/dist/capabilities/apps.js.map +1 -0
- package/dist/capabilities/apps.specs.d.ts +23 -0
- package/dist/capabilities/apps.specs.d.ts.map +1 -0
- package/dist/capabilities/apps.specs.js +236 -0
- package/dist/capabilities/apps.specs.js.map +1 -0
- package/dist/capabilities/args.d.ts +62 -0
- package/dist/capabilities/args.d.ts.map +1 -0
- package/dist/capabilities/args.js +215 -0
- package/dist/capabilities/args.js.map +1 -0
- package/dist/capabilities/assets.d.ts +45 -0
- package/dist/capabilities/assets.d.ts.map +1 -0
- package/dist/capabilities/assets.js +952 -0
- package/dist/capabilities/assets.js.map +1 -0
- package/dist/capabilities/assets.specs.d.ts +54 -0
- package/dist/capabilities/assets.specs.d.ts.map +1 -0
- package/dist/capabilities/assets.specs.js +291 -0
- package/dist/capabilities/assets.specs.js.map +1 -0
- package/dist/capabilities/background-generation.d.ts +14 -0
- package/dist/capabilities/background-generation.d.ts.map +1 -0
- package/dist/capabilities/background-generation.js +29 -0
- package/dist/capabilities/background-generation.js.map +1 -0
- package/dist/capabilities/browser.d.ts +30 -0
- package/dist/capabilities/browser.d.ts.map +1 -0
- package/dist/capabilities/browser.js +250 -0
- package/dist/capabilities/browser.js.map +1 -0
- package/dist/capabilities/browser.specs.d.ts +37 -0
- package/dist/capabilities/browser.specs.d.ts.map +1 -0
- package/dist/capabilities/browser.specs.js +173 -0
- package/dist/capabilities/browser.specs.js.map +1 -0
- package/dist/capabilities/code-grading.d.ts +68 -0
- package/dist/capabilities/code-grading.d.ts.map +1 -0
- package/dist/capabilities/code-grading.js +75 -0
- package/dist/capabilities/code-grading.js.map +1 -0
- package/dist/capabilities/code.d.ts +61 -0
- package/dist/capabilities/code.d.ts.map +1 -0
- package/dist/capabilities/code.js +366 -0
- package/dist/capabilities/code.js.map +1 -0
- package/dist/capabilities/code.specs.d.ts +22 -0
- package/dist/capabilities/code.specs.d.ts.map +1 -0
- package/dist/capabilities/code.specs.js +175 -0
- package/dist/capabilities/code.specs.js.map +1 -0
- package/dist/capabilities/collections.d.ts +44 -0
- package/dist/capabilities/collections.d.ts.map +1 -0
- package/dist/capabilities/collections.js +432 -0
- package/dist/capabilities/collections.js.map +1 -0
- package/dist/capabilities/collections.specs.d.ts +25 -0
- package/dist/capabilities/collections.specs.d.ts.map +1 -0
- package/dist/capabilities/collections.specs.js +299 -0
- package/dist/capabilities/collections.specs.js.map +1 -0
- package/dist/capabilities/compositions.d.ts +57 -0
- package/dist/capabilities/compositions.d.ts.map +1 -0
- package/dist/capabilities/compositions.js +384 -0
- package/dist/capabilities/compositions.js.map +1 -0
- package/dist/capabilities/compositions.specs.d.ts +22 -0
- package/dist/capabilities/compositions.specs.d.ts.map +1 -0
- package/dist/capabilities/compositions.specs.js +126 -0
- package/dist/capabilities/compositions.specs.js.map +1 -0
- package/dist/capabilities/concurrency.d.ts +12 -0
- package/dist/capabilities/concurrency.d.ts.map +1 -0
- package/dist/capabilities/concurrency.js +30 -0
- package/dist/capabilities/concurrency.js.map +1 -0
- package/dist/capabilities/costs.d.ts +20 -0
- package/dist/capabilities/costs.d.ts.map +1 -0
- package/dist/capabilities/costs.js +40 -0
- package/dist/capabilities/costs.js.map +1 -0
- package/dist/capabilities/costs.specs.d.ts +12 -0
- package/dist/capabilities/costs.specs.d.ts.map +1 -0
- package/dist/capabilities/costs.specs.js +35 -0
- package/dist/capabilities/costs.specs.js.map +1 -0
- package/dist/capabilities/dispatcher.d.ts +57 -0
- package/dist/capabilities/dispatcher.d.ts.map +1 -0
- package/dist/capabilities/dispatcher.js +117 -0
- package/dist/capabilities/dispatcher.js.map +1 -0
- package/dist/capabilities/documents.d.ts +25 -0
- package/dist/capabilities/documents.d.ts.map +1 -0
- package/dist/capabilities/documents.js +278 -0
- package/dist/capabilities/documents.js.map +1 -0
- package/dist/capabilities/documents.specs.d.ts +18 -0
- package/dist/capabilities/documents.specs.d.ts.map +1 -0
- package/dist/capabilities/documents.specs.js +201 -0
- package/dist/capabilities/documents.specs.js.map +1 -0
- package/dist/capabilities/email.d.ts +23 -0
- package/dist/capabilities/email.d.ts.map +1 -0
- package/dist/capabilities/email.js +226 -0
- package/dist/capabilities/email.js.map +1 -0
- package/dist/capabilities/email.specs.d.ts +16 -0
- package/dist/capabilities/email.specs.d.ts.map +1 -0
- package/dist/capabilities/email.specs.js +102 -0
- package/dist/capabilities/email.specs.js.map +1 -0
- package/dist/capabilities/entities.d.ts +52 -0
- package/dist/capabilities/entities.d.ts.map +1 -0
- package/dist/capabilities/entities.js +478 -0
- package/dist/capabilities/entities.js.map +1 -0
- package/dist/capabilities/entities.specs.d.ts +25 -0
- package/dist/capabilities/entities.specs.d.ts.map +1 -0
- package/dist/capabilities/entities.specs.js +247 -0
- package/dist/capabilities/entities.specs.js.map +1 -0
- package/dist/capabilities/errors.d.ts +19 -0
- package/dist/capabilities/errors.d.ts.map +1 -0
- package/dist/capabilities/errors.js +109 -0
- package/dist/capabilities/errors.js.map +1 -0
- package/dist/capabilities/errors.specs.d.ts +11 -0
- package/dist/capabilities/errors.specs.d.ts.map +1 -0
- package/dist/capabilities/errors.specs.js +100 -0
- package/dist/capabilities/errors.specs.js.map +1 -0
- package/dist/capabilities/example-timelines.d.ts +3 -0
- package/dist/capabilities/example-timelines.d.ts.map +1 -0
- package/dist/capabilities/example-timelines.js +233 -0
- package/dist/capabilities/example-timelines.js.map +1 -0
- package/dist/capabilities/example-timelines.specs.d.ts +6 -0
- package/dist/capabilities/example-timelines.specs.d.ts.map +1 -0
- package/dist/capabilities/example-timelines.specs.js +71 -0
- package/dist/capabilities/example-timelines.specs.js.map +1 -0
- package/dist/capabilities/files.d.ts +53 -0
- package/dist/capabilities/files.d.ts.map +1 -0
- package/dist/capabilities/files.js +1172 -0
- package/dist/capabilities/files.js.map +1 -0
- package/dist/capabilities/files.specs.d.ts +28 -0
- package/dist/capabilities/files.specs.d.ts.map +1 -0
- package/dist/capabilities/files.specs.js +259 -0
- package/dist/capabilities/files.specs.js.map +1 -0
- package/dist/capabilities/finish-storyboard.d.ts +5 -0
- package/dist/capabilities/finish-storyboard.d.ts.map +1 -0
- package/dist/capabilities/finish-storyboard.js +278 -0
- package/dist/capabilities/finish-storyboard.js.map +1 -0
- package/dist/capabilities/flow.d.ts +93 -0
- package/dist/capabilities/flow.d.ts.map +1 -0
- package/dist/capabilities/flow.js +285 -0
- package/dist/capabilities/flow.js.map +1 -0
- package/dist/capabilities/flow.specs.d.ts +25 -0
- package/dist/capabilities/flow.specs.d.ts.map +1 -0
- package/dist/capabilities/flow.specs.js +114 -0
- package/dist/capabilities/flow.specs.js.map +1 -0
- package/dist/capabilities/game-asset-source.d.ts +31 -0
- package/dist/capabilities/game-asset-source.d.ts.map +1 -0
- package/dist/capabilities/game-asset-source.js +81 -0
- package/dist/capabilities/game-asset-source.js.map +1 -0
- package/dist/capabilities/game.d.ts +24 -0
- package/dist/capabilities/game.d.ts.map +1 -0
- package/dist/capabilities/game.js +1432 -0
- package/dist/capabilities/game.js.map +1 -0
- package/dist/capabilities/game.specs.d.ts +5 -0
- package/dist/capabilities/game.specs.d.ts.map +1 -0
- package/dist/capabilities/game.specs.js +110 -0
- package/dist/capabilities/game.specs.js.map +1 -0
- package/dist/capabilities/game3d.d.ts +17 -0
- package/dist/capabilities/game3d.d.ts.map +1 -0
- package/dist/capabilities/game3d.js +433 -0
- package/dist/capabilities/game3d.js.map +1 -0
- package/dist/capabilities/gate-from-context.d.ts +39 -0
- package/dist/capabilities/gate-from-context.d.ts.map +1 -0
- package/dist/capabilities/gate-from-context.js +97 -0
- package/dist/capabilities/gate-from-context.js.map +1 -0
- package/dist/capabilities/generations.d.ts +81 -0
- package/dist/capabilities/generations.d.ts.map +1 -0
- package/dist/capabilities/generations.js +387 -0
- package/dist/capabilities/generations.js.map +1 -0
- package/dist/capabilities/generations.specs.d.ts +62 -0
- package/dist/capabilities/generations.specs.d.ts.map +1 -0
- package/dist/capabilities/generations.specs.js +230 -0
- package/dist/capabilities/generations.specs.js.map +1 -0
- package/dist/capabilities/google.d.ts +50 -0
- package/dist/capabilities/google.d.ts.map +1 -0
- package/dist/capabilities/google.js +246 -0
- package/dist/capabilities/google.js.map +1 -0
- package/dist/capabilities/google.specs.d.ts +52 -0
- package/dist/capabilities/google.specs.d.ts.map +1 -0
- package/dist/capabilities/google.specs.js +391 -0
- package/dist/capabilities/google.specs.js.map +1 -0
- package/dist/capabilities/html-text.d.ts +28 -0
- package/dist/capabilities/html-text.d.ts.map +1 -0
- package/dist/capabilities/html-text.js +76 -0
- package/dist/capabilities/html-text.js.map +1 -0
- package/dist/capabilities/index.d.ts +19 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +14 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/invoke.d.ts +78 -0
- package/dist/capabilities/invoke.d.ts.map +1 -0
- package/dist/capabilities/invoke.js +251 -0
- package/dist/capabilities/invoke.js.map +1 -0
- package/dist/capabilities/jobs.d.ts +32 -0
- package/dist/capabilities/jobs.d.ts.map +1 -0
- package/dist/capabilities/jobs.js +167 -0
- package/dist/capabilities/jobs.js.map +1 -0
- package/dist/capabilities/jobs.specs.d.ts +20 -0
- package/dist/capabilities/jobs.specs.d.ts.map +1 -0
- package/dist/capabilities/jobs.specs.js +105 -0
- package/dist/capabilities/jobs.specs.js.map +1 -0
- package/dist/capabilities/js-scripts.d.ts +108 -0
- package/dist/capabilities/js-scripts.d.ts.map +1 -0
- package/dist/capabilities/js-scripts.js +807 -0
- package/dist/capabilities/js-scripts.js.map +1 -0
- package/dist/capabilities/js-scripts.specs.d.ts +52 -0
- package/dist/capabilities/js-scripts.specs.d.ts.map +1 -0
- package/dist/capabilities/js-scripts.specs.js +394 -0
- package/dist/capabilities/js-scripts.specs.js.map +1 -0
- package/dist/capabilities/lazy-tool.d.ts +41 -0
- package/dist/capabilities/lazy-tool.d.ts.map +1 -0
- package/dist/capabilities/lazy-tool.js +82 -0
- package/dist/capabilities/lazy-tool.js.map +1 -0
- package/dist/capabilities/legacy-tools.d.ts +15 -0
- package/dist/capabilities/legacy-tools.d.ts.map +1 -0
- package/dist/capabilities/legacy-tools.js +98 -0
- package/dist/capabilities/legacy-tools.js.map +1 -0
- package/dist/capabilities/local-browser.d.ts +24 -0
- package/dist/capabilities/local-browser.d.ts.map +1 -0
- package/dist/capabilities/local-browser.js +105 -0
- package/dist/capabilities/local-browser.js.map +1 -0
- package/dist/capabilities/media.d.ts +112 -0
- package/dist/capabilities/media.d.ts.map +1 -0
- package/dist/capabilities/media.js +2258 -0
- package/dist/capabilities/media.js.map +1 -0
- package/dist/capabilities/media.specs.d.ts +65 -0
- package/dist/capabilities/media.specs.d.ts.map +1 -0
- package/dist/capabilities/media.specs.js +779 -0
- package/dist/capabilities/media.specs.js.map +1 -0
- package/dist/capabilities/memory.d.ts +31 -0
- package/dist/capabilities/memory.d.ts.map +1 -0
- package/dist/capabilities/memory.js +403 -0
- package/dist/capabilities/memory.js.map +1 -0
- package/dist/capabilities/memory.specs.d.ts +55 -0
- package/dist/capabilities/memory.specs.d.ts.map +1 -0
- package/dist/capabilities/memory.specs.js +208 -0
- package/dist/capabilities/memory.specs.js.map +1 -0
- package/dist/capabilities/model3d.d.ts +29 -0
- package/dist/capabilities/model3d.d.ts.map +1 -0
- package/dist/capabilities/model3d.js +482 -0
- package/dist/capabilities/model3d.js.map +1 -0
- package/dist/capabilities/model3d.specs.d.ts +28 -0
- package/dist/capabilities/model3d.specs.d.ts.map +1 -0
- package/dist/capabilities/model3d.specs.js +305 -0
- package/dist/capabilities/model3d.specs.js.map +1 -0
- package/dist/capabilities/models.d.ts +138 -0
- package/dist/capabilities/models.d.ts.map +1 -0
- package/dist/capabilities/models.js +805 -0
- package/dist/capabilities/models.js.map +1 -0
- package/dist/capabilities/models.specs.d.ts +21 -0
- package/dist/capabilities/models.specs.d.ts.map +1 -0
- package/dist/capabilities/models.specs.js +141 -0
- package/dist/capabilities/models.specs.js.map +1 -0
- package/dist/capabilities/nodes.d.ts +26 -0
- package/dist/capabilities/nodes.d.ts.map +1 -0
- package/dist/capabilities/nodes.js +266 -0
- package/dist/capabilities/nodes.js.map +1 -0
- package/dist/capabilities/nodes.specs.d.ts +20 -0
- package/dist/capabilities/nodes.specs.d.ts.map +1 -0
- package/dist/capabilities/nodes.specs.js +106 -0
- package/dist/capabilities/nodes.specs.js.map +1 -0
- package/dist/capabilities/packs.d.ts +69 -0
- package/dist/capabilities/packs.d.ts.map +1 -0
- package/dist/capabilities/packs.js +246 -0
- package/dist/capabilities/packs.js.map +1 -0
- package/dist/capabilities/packs.specs.d.ts +27 -0
- package/dist/capabilities/packs.specs.d.ts.map +1 -0
- package/dist/capabilities/packs.specs.js +64 -0
- package/dist/capabilities/packs.specs.js.map +1 -0
- package/dist/capabilities/project-scope.d.ts +12 -0
- package/dist/capabilities/project-scope.d.ts.map +1 -0
- package/dist/capabilities/project-scope.js +19 -0
- package/dist/capabilities/project-scope.js.map +1 -0
- package/dist/capabilities/projects.d.ts +23 -0
- package/dist/capabilities/projects.d.ts.map +1 -0
- package/dist/capabilities/projects.js +206 -0
- package/dist/capabilities/projects.js.map +1 -0
- package/dist/capabilities/projects.specs.d.ts +23 -0
- package/dist/capabilities/projects.specs.d.ts.map +1 -0
- package/dist/capabilities/projects.specs.js +118 -0
- package/dist/capabilities/projects.specs.js.map +1 -0
- package/dist/capabilities/registry.d.ts +111 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +473 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/capabilities/run-agent.d.ts +19 -0
- package/dist/capabilities/run-agent.d.ts.map +1 -0
- package/dist/capabilities/run-agent.js +183 -0
- package/dist/capabilities/run-agent.js.map +1 -0
- package/dist/capabilities/runs.d.ts +9 -0
- package/dist/capabilities/runs.d.ts.map +1 -0
- package/dist/capabilities/runs.js +46 -0
- package/dist/capabilities/runs.js.map +1 -0
- package/dist/capabilities/runs.specs.d.ts +39 -0
- package/dist/capabilities/runs.specs.d.ts.map +1 -0
- package/dist/capabilities/runs.specs.js +52 -0
- package/dist/capabilities/runs.specs.js.map +1 -0
- package/dist/capabilities/script-link.d.ts +22 -0
- package/dist/capabilities/script-link.d.ts.map +1 -0
- package/dist/capabilities/script-link.js +35 -0
- package/dist/capabilities/script-link.js.map +1 -0
- package/dist/capabilities/scripts.d.ts +43 -0
- package/dist/capabilities/scripts.d.ts.map +1 -0
- package/dist/capabilities/scripts.js +1795 -0
- package/dist/capabilities/scripts.js.map +1 -0
- package/dist/capabilities/scripts.specs.d.ts +40 -0
- package/dist/capabilities/scripts.specs.d.ts.map +1 -0
- package/dist/capabilities/scripts.specs.js +319 -0
- package/dist/capabilities/scripts.specs.js.map +1 -0
- package/dist/capabilities/serpapi.d.ts +42 -0
- package/dist/capabilities/serpapi.d.ts.map +1 -0
- package/dist/capabilities/serpapi.js +262 -0
- package/dist/capabilities/serpapi.js.map +1 -0
- package/dist/capabilities/serpapi.specs.d.ts +24 -0
- package/dist/capabilities/serpapi.specs.d.ts.map +1 -0
- package/dist/capabilities/serpapi.specs.js +174 -0
- package/dist/capabilities/serpapi.specs.js.map +1 -0
- package/dist/capabilities/settings.d.ts +48 -0
- package/dist/capabilities/settings.d.ts.map +1 -0
- package/dist/capabilities/settings.js +226 -0
- package/dist/capabilities/settings.js.map +1 -0
- package/dist/capabilities/settings.specs.d.ts +42 -0
- package/dist/capabilities/settings.specs.d.ts.map +1 -0
- package/dist/capabilities/settings.specs.js +126 -0
- package/dist/capabilities/settings.specs.js.map +1 -0
- package/dist/capabilities/shared.d.ts +35 -0
- package/dist/capabilities/shared.d.ts.map +1 -0
- package/dist/capabilities/shared.js +165 -0
- package/dist/capabilities/shared.js.map +1 -0
- package/dist/capabilities/shared.specs.d.ts +19 -0
- package/dist/capabilities/shared.specs.d.ts.map +1 -0
- package/dist/capabilities/shared.specs.js +134 -0
- package/dist/capabilities/shared.specs.js.map +1 -0
- package/dist/capabilities/sketches.d.ts +52 -0
- package/dist/capabilities/sketches.d.ts.map +1 -0
- package/dist/capabilities/sketches.js +1165 -0
- package/dist/capabilities/sketches.js.map +1 -0
- package/dist/capabilities/sketches.specs.d.ts +44 -0
- package/dist/capabilities/sketches.specs.d.ts.map +1 -0
- package/dist/capabilities/sketches.specs.js +392 -0
- package/dist/capabilities/sketches.specs.js.map +1 -0
- package/dist/capabilities/skills.d.ts +28 -0
- package/dist/capabilities/skills.d.ts.map +1 -0
- package/dist/capabilities/skills.js +289 -0
- package/dist/capabilities/skills.js.map +1 -0
- package/dist/capabilities/skills.specs.d.ts +17 -0
- package/dist/capabilities/skills.specs.d.ts.map +1 -0
- package/dist/capabilities/skills.specs.js +108 -0
- package/dist/capabilities/skills.specs.js.map +1 -0
- package/dist/capabilities/storyboard-layout-check.d.ts +33 -0
- package/dist/capabilities/storyboard-layout-check.d.ts.map +1 -0
- package/dist/capabilities/storyboard-layout-check.js +229 -0
- package/dist/capabilities/storyboard-layout-check.js.map +1 -0
- package/dist/capabilities/storyboard-measured-sources.d.ts +10 -0
- package/dist/capabilities/storyboard-measured-sources.d.ts.map +1 -0
- package/dist/capabilities/storyboard-measured-sources.js +67 -0
- package/dist/capabilities/storyboard-measured-sources.js.map +1 -0
- package/dist/capabilities/storyboard-review-times.d.ts +4 -0
- package/dist/capabilities/storyboard-review-times.d.ts.map +1 -0
- package/dist/capabilities/storyboard-review-times.js +39 -0
- package/dist/capabilities/storyboard-review-times.js.map +1 -0
- package/dist/capabilities/storyboards.d.ts +52 -0
- package/dist/capabilities/storyboards.d.ts.map +1 -0
- package/dist/capabilities/storyboards.js +2467 -0
- package/dist/capabilities/storyboards.js.map +1 -0
- package/dist/capabilities/storyboards.specs.d.ts +45 -0
- package/dist/capabilities/storyboards.specs.d.ts.map +1 -0
- package/dist/capabilities/storyboards.specs.js +457 -0
- package/dist/capabilities/storyboards.specs.js.map +1 -0
- package/dist/capabilities/threads.d.ts +25 -0
- package/dist/capabilities/threads.d.ts.map +1 -0
- package/dist/capabilities/threads.js +240 -0
- package/dist/capabilities/threads.js.map +1 -0
- package/dist/capabilities/threads.specs.d.ts +26 -0
- package/dist/capabilities/threads.specs.d.ts.map +1 -0
- package/dist/capabilities/threads.specs.js +108 -0
- package/dist/capabilities/threads.specs.js.map +1 -0
- package/dist/capabilities/timeline-audio-bake.d.ts +114 -0
- package/dist/capabilities/timeline-audio-bake.d.ts.map +1 -0
- package/dist/capabilities/timeline-audio-bake.js +188 -0
- package/dist/capabilities/timeline-audio-bake.js.map +1 -0
- package/dist/capabilities/timeline-bake.d.ts +21 -0
- package/dist/capabilities/timeline-bake.d.ts.map +1 -0
- package/dist/capabilities/timeline-bake.js +118 -0
- package/dist/capabilities/timeline-bake.js.map +1 -0
- package/dist/capabilities/timeline-bridge.d.ts +359 -0
- package/dist/capabilities/timeline-bridge.d.ts.map +1 -0
- package/dist/capabilities/timeline-bridge.js +1016 -0
- package/dist/capabilities/timeline-bridge.js.map +1 -0
- package/dist/capabilities/timeline-clip-frames.d.ts +17 -0
- package/dist/capabilities/timeline-clip-frames.d.ts.map +1 -0
- package/dist/capabilities/timeline-clip-frames.js +84 -0
- package/dist/capabilities/timeline-clip-frames.js.map +1 -0
- package/dist/capabilities/timeline-isolate-subject.d.ts +157 -0
- package/dist/capabilities/timeline-isolate-subject.d.ts.map +1 -0
- package/dist/capabilities/timeline-isolate-subject.js +293 -0
- package/dist/capabilities/timeline-isolate-subject.js.map +1 -0
- package/dist/capabilities/timeline-media-edit.d.ts +8 -0
- package/dist/capabilities/timeline-media-edit.d.ts.map +1 -0
- package/dist/capabilities/timeline-media-edit.js +94 -0
- package/dist/capabilities/timeline-media-edit.js.map +1 -0
- package/dist/capabilities/timeline-native-media.d.ts +4 -0
- package/dist/capabilities/timeline-native-media.d.ts.map +1 -0
- package/dist/capabilities/timeline-native-media.js +960 -0
- package/dist/capabilities/timeline-native-media.js.map +1 -0
- package/dist/capabilities/timeline-track-object.d.ts +83 -0
- package/dist/capabilities/timeline-track-object.d.ts.map +1 -0
- package/dist/capabilities/timeline-track-object.js +195 -0
- package/dist/capabilities/timeline-track-object.js.map +1 -0
- package/dist/capabilities/timelines.d.ts +250 -0
- package/dist/capabilities/timelines.d.ts.map +1 -0
- package/dist/capabilities/timelines.js +2825 -0
- package/dist/capabilities/timelines.js.map +1 -0
- package/dist/capabilities/timelines.specs.d.ts +142 -0
- package/dist/capabilities/timelines.specs.d.ts.map +1 -0
- package/dist/capabilities/timelines.specs.js +1527 -0
- package/dist/capabilities/timelines.specs.js.map +1 -0
- package/dist/capabilities/types.d.ts +199 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/capabilities/types.js +19 -0
- package/dist/capabilities/types.js.map +1 -0
- package/dist/capabilities/ui.d.ts +38 -0
- package/dist/capabilities/ui.d.ts.map +1 -0
- package/dist/capabilities/ui.js +150 -0
- package/dist/capabilities/ui.js.map +1 -0
- package/dist/capabilities/ui.specs.d.ts +22 -0
- package/dist/capabilities/ui.specs.d.ts.map +1 -0
- package/dist/capabilities/ui.specs.js +59 -0
- package/dist/capabilities/ui.specs.js.map +1 -0
- package/dist/capabilities/video-production-acceptance.d.ts +27 -0
- package/dist/capabilities/video-production-acceptance.d.ts.map +1 -0
- package/dist/capabilities/video-production-acceptance.js +41 -0
- package/dist/capabilities/video-production-acceptance.js.map +1 -0
- package/dist/capabilities/video-production.d.ts +179 -0
- package/dist/capabilities/video-production.d.ts.map +1 -0
- package/dist/capabilities/video-production.js +1492 -0
- package/dist/capabilities/video-production.js.map +1 -0
- package/dist/capabilities/video-production.specs.d.ts +13 -0
- package/dist/capabilities/video-production.specs.d.ts.map +1 -0
- package/dist/capabilities/video-production.specs.js +256 -0
- package/dist/capabilities/video-production.specs.js.map +1 -0
- package/dist/capabilities/web.d.ts +86 -0
- package/dist/capabilities/web.d.ts.map +1 -0
- package/dist/capabilities/web.js +850 -0
- package/dist/capabilities/web.js.map +1 -0
- package/dist/capabilities/web.specs.d.ts +33 -0
- package/dist/capabilities/web.specs.d.ts.map +1 -0
- package/dist/capabilities/web.specs.js +286 -0
- package/dist/capabilities/web.specs.js.map +1 -0
- package/dist/capabilities/workflows.d.ts +58 -0
- package/dist/capabilities/workflows.d.ts.map +1 -0
- package/dist/capabilities/workflows.js +1557 -0
- package/dist/capabilities/workflows.js.map +1 -0
- package/dist/capabilities/workflows.specs.d.ts +63 -0
- package/dist/capabilities/workflows.specs.d.ts.map +1 -0
- package/dist/capabilities/workflows.specs.js +858 -0
- package/dist/capabilities/workflows.specs.js.map +1 -0
- package/dist/code-gen/analyze.d.ts +26 -0
- package/dist/code-gen/analyze.d.ts.map +1 -0
- package/dist/code-gen/analyze.js +79 -0
- package/dist/code-gen/analyze.js.map +1 -0
- package/dist/code-gen/port-types.d.ts +58 -0
- package/dist/code-gen/port-types.d.ts.map +1 -0
- package/dist/code-gen/port-types.js +115 -0
- package/dist/code-gen/port-types.js.map +1 -0
- package/dist/code-gen/prompt.d.ts +37 -0
- package/dist/code-gen/prompt.d.ts.map +1 -0
- package/dist/code-gen/prompt.js +129 -0
- package/dist/code-gen/prompt.js.map +1 -0
- package/dist/code-gen/sandbox-manifest.d.ts +120 -0
- package/dist/code-gen/sandbox-manifest.d.ts.map +1 -0
- package/dist/code-gen/sandbox-manifest.js +1023 -0
- package/dist/code-gen/sandbox-manifest.js.map +1 -0
- package/dist/code-gen/sandbox-prompt.d.ts +26 -0
- package/dist/code-gen/sandbox-prompt.d.ts.map +1 -0
- package/dist/code-gen/sandbox-prompt.js +126 -0
- package/dist/code-gen/sandbox-prompt.js.map +1 -0
- package/dist/code-planner.d.ts +72 -0
- package/dist/code-planner.d.ts.map +1 -0
- package/dist/code-planner.js +271 -0
- package/dist/code-planner.js.map +1 -0
- package/dist/codeact/action-diagnostics.d.ts +35 -0
- package/dist/codeact/action-diagnostics.d.ts.map +1 -0
- package/dist/codeact/action-diagnostics.js +197 -0
- package/dist/codeact/action-diagnostics.js.map +1 -0
- package/dist/codeact/capability-modules.d.ts +66 -0
- package/dist/codeact/capability-modules.d.ts.map +1 -0
- package/dist/codeact/capability-modules.js +278 -0
- package/dist/codeact/capability-modules.js.map +1 -0
- package/dist/codeact/chat-codeact.d.ts +104 -0
- package/dist/codeact/chat-codeact.d.ts.map +1 -0
- package/dist/codeact/chat-codeact.js +424 -0
- package/dist/codeact/chat-codeact.js.map +1 -0
- package/dist/codeact/codeact-executor.d.ts +247 -0
- package/dist/codeact/codeact-executor.d.ts.map +1 -0
- package/dist/codeact/codeact-executor.js +1184 -0
- package/dist/codeact/codeact-executor.js.map +1 -0
- package/dist/codeact/compact-ids.d.ts +28 -0
- package/dist/codeact/compact-ids.d.ts.map +1 -0
- package/dist/codeact/compact-ids.js +81 -0
- package/dist/codeact/compact-ids.js.map +1 -0
- package/dist/codeact/execute-code-contract.d.ts +97 -0
- package/dist/codeact/execute-code-contract.d.ts.map +1 -0
- package/dist/codeact/execute-code-contract.js +225 -0
- package/dist/codeact/execute-code-contract.js.map +1 -0
- package/dist/codeact/fabric-package.d.ts +29 -0
- package/dist/codeact/fabric-package.d.ts.map +1 -0
- package/dist/codeact/fabric-package.js +62 -0
- package/dist/codeact/fabric-package.js.map +1 -0
- package/dist/codeact/flow-package.d.ts +31 -0
- package/dist/codeact/flow-package.d.ts.map +1 -0
- package/dist/codeact/flow-package.js +80 -0
- package/dist/codeact/flow-package.js.map +1 -0
- package/dist/codeact/graph-dsl-package.d.ts +42 -0
- package/dist/codeact/graph-dsl-package.d.ts.map +1 -0
- package/dist/codeact/graph-dsl-package.js +100 -0
- package/dist/codeact/graph-dsl-package.js.map +1 -0
- package/dist/codeact/graph-model.d.ts +30 -0
- package/dist/codeact/graph-model.d.ts.map +1 -0
- package/dist/codeact/graph-model.js +407 -0
- package/dist/codeact/graph-model.js.map +1 -0
- package/dist/codeact/mcp-guest-contract.d.ts +66 -0
- package/dist/codeact/mcp-guest-contract.d.ts.map +1 -0
- package/dist/codeact/mcp-guest-contract.js +108 -0
- package/dist/codeact/mcp-guest-contract.js.map +1 -0
- package/dist/codeact/nodetool-api.d.ts +60 -0
- package/dist/codeact/nodetool-api.d.ts.map +1 -0
- package/dist/codeact/nodetool-api.js +1974 -0
- package/dist/codeact/nodetool-api.js.map +1 -0
- package/dist/codeact/prompt.d.ts +88 -0
- package/dist/codeact/prompt.d.ts.map +1 -0
- package/dist/codeact/prompt.js +326 -0
- package/dist/codeact/prompt.js.map +1 -0
- package/dist/codeact/sandbox-package-docs.d.ts +48 -0
- package/dist/codeact/sandbox-package-docs.d.ts.map +1 -0
- package/dist/codeact/sandbox-package-docs.js +55 -0
- package/dist/codeact/sandbox-package-docs.js.map +1 -0
- package/dist/codeact/sandbox-package-listing.d.ts +81 -0
- package/dist/codeact/sandbox-package-listing.d.ts.map +1 -0
- package/dist/codeact/sandbox-package-listing.js +101 -0
- package/dist/codeact/sandbox-package-listing.js.map +1 -0
- package/dist/codeact/sandbox-packages.d.ts +72 -0
- package/dist/codeact/sandbox-packages.d.ts.map +1 -0
- package/dist/codeact/sandbox-packages.js +230 -0
- package/dist/codeact/sandbox-packages.js.map +1 -0
- package/dist/codeact/timeline-package.d.ts +5 -0
- package/dist/codeact/timeline-package.d.ts.map +1 -0
- package/dist/codeact/timeline-package.js +10 -0
- package/dist/codeact/timeline-package.js.map +1 -0
- package/dist/codeact/tool-api.d.ts +200 -0
- package/dist/codeact/tool-api.d.ts.map +1 -0
- package/dist/codeact/tool-api.js +452 -0
- package/dist/codeact/tool-api.js.map +1 -0
- package/dist/codeact/tools-prelude.d.ts +32 -0
- package/dist/codeact/tools-prelude.d.ts.map +1 -0
- package/dist/codeact/tools-prelude.js +65 -0
- package/dist/codeact/tools-prelude.js.map +1 -0
- package/dist/constants.d.ts +47 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +64 -2
- package/dist/constants.js.map +1 -1
- package/dist/custom-animation-bake.d.ts +57 -0
- package/dist/custom-animation-bake.d.ts.map +1 -0
- package/dist/custom-animation-bake.js +88 -0
- package/dist/custom-animation-bake.js.map +1 -0
- package/dist/dynamic-slots.d.ts +72 -0
- package/dist/dynamic-slots.d.ts.map +1 -0
- package/dist/dynamic-slots.js +0 -0
- package/dist/dynamic-slots.js.map +1 -0
- package/dist/evals/app-build-cases.d.ts +35 -0
- package/dist/evals/app-build-cases.d.ts.map +1 -0
- package/dist/evals/app-build-cases.js +722 -0
- package/dist/evals/app-build-cases.js.map +1 -0
- package/dist/evals/app-build-eval.d.ts +208 -0
- package/dist/evals/app-build-eval.d.ts.map +1 -0
- package/dist/evals/app-build-eval.js +518 -0
- package/dist/evals/app-build-eval.js.map +1 -0
- package/dist/evals/app-build-plan.d.ts +76 -0
- package/dist/evals/app-build-plan.d.ts.map +1 -0
- package/dist/evals/app-build-plan.js +140 -0
- package/dist/evals/app-build-plan.js.map +1 -0
- package/dist/evals/code-gen-cases.d.ts +13 -0
- package/dist/evals/code-gen-cases.d.ts.map +1 -0
- package/dist/evals/code-gen-cases.js +124 -0
- package/dist/evals/code-gen-cases.js.map +1 -0
- package/dist/evals/code-gen-eval.d.ts +109 -0
- package/dist/evals/code-gen-eval.d.ts.map +1 -0
- package/dist/evals/code-gen-eval.js +299 -0
- package/dist/evals/code-gen-eval.js.map +1 -0
- package/dist/evals/codeact-api-cases.d.ts +14 -0
- package/dist/evals/codeact-api-cases.d.ts.map +1 -0
- package/dist/evals/codeact-api-cases.js +31 -0
- package/dist/evals/codeact-api-cases.js.map +1 -0
- package/dist/evals/codeact-api-core.d.ts +23 -0
- package/dist/evals/codeact-api-core.d.ts.map +1 -0
- package/dist/evals/codeact-api-core.js +1411 -0
- package/dist/evals/codeact-api-core.js.map +1 -0
- package/dist/evals/codeact-api-runs.d.ts +3 -0
- package/dist/evals/codeact-api-runs.d.ts.map +1 -0
- package/dist/evals/codeact-api-runs.js +33 -0
- package/dist/evals/codeact-api-runs.js.map +1 -0
- package/dist/evals/codeact-api-surfaces.d.ts +25 -0
- package/dist/evals/codeact-api-surfaces.d.ts.map +1 -0
- package/dist/evals/codeact-api-surfaces.js +2191 -0
- package/dist/evals/codeact-api-surfaces.js.map +1 -0
- package/dist/evals/codeact-cases.d.ts +76 -0
- package/dist/evals/codeact-cases.d.ts.map +1 -0
- package/dist/evals/codeact-cases.js +151 -0
- package/dist/evals/codeact-cases.js.map +1 -0
- package/dist/evals/codeact-eval.d.ts +66 -0
- package/dist/evals/codeact-eval.d.ts.map +1 -0
- package/dist/evals/codeact-eval.js +250 -0
- package/dist/evals/codeact-eval.js.map +1 -0
- package/dist/evals/codeact-sandbox-pack-cases.d.ts +31 -0
- package/dist/evals/codeact-sandbox-pack-cases.d.ts.map +1 -0
- package/dist/evals/codeact-sandbox-pack-cases.js +219 -0
- package/dist/evals/codeact-sandbox-pack-cases.js.map +1 -0
- package/dist/evals/escalation-cases.d.ts +22 -0
- package/dist/evals/escalation-cases.d.ts.map +1 -0
- package/dist/evals/escalation-cases.js +343 -0
- package/dist/evals/escalation-cases.js.map +1 -0
- package/dist/evals/escalation.d.ts +92 -0
- package/dist/evals/escalation.d.ts.map +1 -0
- package/dist/evals/escalation.js +152 -0
- package/dist/evals/escalation.js.map +1 -0
- package/dist/evals/goal-judge.d.ts +51 -0
- package/dist/evals/goal-judge.d.ts.map +1 -0
- package/dist/evals/goal-judge.js +152 -0
- package/dist/evals/goal-judge.js.map +1 -0
- package/dist/evals/graph-e2e-cases.d.ts +21 -0
- package/dist/evals/graph-e2e-cases.d.ts.map +1 -0
- package/dist/evals/graph-e2e-cases.js +262 -0
- package/dist/evals/graph-e2e-cases.js.map +1 -0
- package/dist/evals/graph-e2e-eval.d.ts +202 -0
- package/dist/evals/graph-e2e-eval.d.ts.map +1 -0
- package/dist/evals/graph-e2e-eval.js +438 -0
- package/dist/evals/graph-e2e-eval.js.map +1 -0
- package/dist/evals/graph-planner-cases.d.ts +12 -0
- package/dist/evals/graph-planner-cases.d.ts.map +1 -0
- package/dist/evals/graph-planner-cases.js +256 -0
- package/dist/evals/graph-planner-cases.js.map +1 -0
- package/dist/evals/graph-planner-eval.d.ts +178 -0
- package/dist/evals/graph-planner-eval.d.ts.map +1 -0
- package/dist/evals/graph-planner-eval.js +495 -0
- package/dist/evals/graph-planner-eval.js.map +1 -0
- package/dist/evals/planner-tools.d.ts +21 -0
- package/dist/evals/planner-tools.d.ts.map +1 -0
- package/dist/evals/planner-tools.js +66 -0
- package/dist/evals/planner-tools.js.map +1 -0
- package/dist/evals/subtask-cases.d.ts +88 -0
- package/dist/evals/subtask-cases.d.ts.map +1 -0
- package/dist/evals/subtask-cases.js +322 -0
- package/dist/evals/subtask-cases.js.map +1 -0
- package/dist/evals/subtask-eval.d.ts +129 -0
- package/dist/evals/subtask-eval.d.ts.map +1 -0
- package/dist/evals/subtask-eval.js +397 -0
- package/dist/evals/subtask-eval.js.map +1 -0
- package/dist/evals/surfaces/app.d.ts +19 -0
- package/dist/evals/surfaces/app.d.ts.map +1 -0
- package/dist/evals/surfaces/app.js +341 -0
- package/dist/evals/surfaces/app.js.map +1 -0
- package/dist/evals/surfaces/creative-pipeline.d.ts +203 -0
- package/dist/evals/surfaces/creative-pipeline.d.ts.map +1 -0
- package/dist/evals/surfaces/creative-pipeline.js +909 -0
- package/dist/evals/surfaces/creative-pipeline.js.map +1 -0
- package/dist/evals/surfaces/game.d.ts +5 -0
- package/dist/evals/surfaces/game.d.ts.map +1 -0
- package/dist/evals/surfaces/game.js +42 -0
- package/dist/evals/surfaces/game.js.map +1 -0
- package/dist/evals/surfaces/js-script.d.ts +66 -0
- package/dist/evals/surfaces/js-script.d.ts.map +1 -0
- package/dist/evals/surfaces/js-script.js +407 -0
- package/dist/evals/surfaces/js-script.js.map +1 -0
- package/dist/evals/surfaces/memory.d.ts +34 -0
- package/dist/evals/surfaces/memory.d.ts.map +1 -0
- package/dist/evals/surfaces/memory.js +264 -0
- package/dist/evals/surfaces/memory.js.map +1 -0
- package/dist/evals/surfaces/model3d.d.ts +45 -0
- package/dist/evals/surfaces/model3d.d.ts.map +1 -0
- package/dist/evals/surfaces/model3d.js +346 -0
- package/dist/evals/surfaces/model3d.js.map +1 -0
- package/dist/evals/surfaces/script.d.ts +96 -0
- package/dist/evals/surfaces/script.d.ts.map +1 -0
- package/dist/evals/surfaces/script.js +709 -0
- package/dist/evals/surfaces/script.js.map +1 -0
- package/dist/evals/surfaces/sketch.d.ts +126 -0
- package/dist/evals/surfaces/sketch.d.ts.map +1 -0
- package/dist/evals/surfaces/sketch.js +1306 -0
- package/dist/evals/surfaces/sketch.js.map +1 -0
- package/dist/evals/surfaces/storyboard.d.ts +97 -0
- package/dist/evals/surfaces/storyboard.d.ts.map +1 -0
- package/dist/evals/surfaces/storyboard.js +693 -0
- package/dist/evals/surfaces/storyboard.js.map +1 -0
- package/dist/evals/surfaces/timeline.d.ts +63 -0
- package/dist/evals/surfaces/timeline.d.ts.map +1 -0
- package/dist/evals/surfaces/timeline.js +655 -0
- package/dist/evals/surfaces/timeline.js.map +1 -0
- package/dist/evals/task-planner-cases.d.ts +57 -0
- package/dist/evals/task-planner-cases.d.ts.map +1 -0
- package/dist/evals/task-planner-cases.js +117 -0
- package/dist/evals/task-planner-cases.js.map +1 -0
- package/dist/evals/task-planner-eval.d.ts +101 -0
- package/dist/evals/task-planner-eval.d.ts.map +1 -0
- package/dist/evals/task-planner-eval.js +380 -0
- package/dist/evals/task-planner-eval.js.map +1 -0
- package/dist/evals/tool-loop-bridge.d.ts +61 -0
- package/dist/evals/tool-loop-bridge.d.ts.map +1 -0
- package/dist/evals/tool-loop-bridge.js +129 -0
- package/dist/evals/tool-loop-bridge.js.map +1 -0
- package/dist/evals/tool-loop-cases.d.ts +21 -0
- package/dist/evals/tool-loop-cases.d.ts.map +1 -0
- package/dist/evals/tool-loop-cases.js +401 -0
- package/dist/evals/tool-loop-cases.js.map +1 -0
- package/dist/evals/tool-loop-eval.d.ts +236 -0
- package/dist/evals/tool-loop-eval.d.ts.map +1 -0
- package/dist/evals/tool-loop-eval.js +378 -0
- package/dist/evals/tool-loop-eval.js.map +1 -0
- package/dist/evals/tool-loop-permission.d.ts +29 -0
- package/dist/evals/tool-loop-permission.d.ts.map +1 -0
- package/dist/evals/tool-loop-permission.js +58 -0
- package/dist/evals/tool-loop-permission.js.map +1 -0
- package/dist/game-authoring.d.ts +4737 -0
- package/dist/game-authoring.d.ts.map +1 -0
- package/dist/game-authoring.js +146 -0
- package/dist/game-authoring.js.map +1 -0
- package/dist/game-code-bake.d.ts +26 -0
- package/dist/game-code-bake.d.ts.map +1 -0
- package/dist/game-code-bake.js +98 -0
- package/dist/game-code-bake.js.map +1 -0
- package/dist/game-examples.d.ts +1303 -0
- package/dist/game-examples.d.ts.map +1 -0
- package/dist/game-examples.js +188 -0
- package/dist/game-examples.js.map +1 -0
- package/dist/graph-builder.d.ts +55 -3
- package/dist/graph-builder.d.ts.map +1 -1
- package/dist/graph-builder.js +159 -4
- package/dist/graph-builder.js.map +1 -1
- package/dist/graph-dsl-core.d.ts +25 -0
- package/dist/graph-dsl-core.d.ts.map +1 -0
- package/dist/graph-dsl-core.js +312 -0
- package/dist/graph-dsl-core.js.map +1 -0
- package/dist/graph-dsl.d.ts +30 -0
- package/dist/graph-dsl.d.ts.map +1 -0
- package/dist/graph-dsl.js +116 -0
- package/dist/graph-dsl.js.map +1 -0
- package/dist/host-binaries.d.ts +6 -0
- package/dist/host-binaries.d.ts.map +1 -0
- package/dist/host-binaries.js +6 -0
- package/dist/host-binaries.js.map +1 -0
- package/dist/host-binary-guard.d.ts +100 -0
- package/dist/host-binary-guard.d.ts.map +1 -0
- package/dist/host-binary-guard.js +205 -0
- package/dist/host-binary-guard.js.map +1 -0
- package/dist/host-modules/aws.d.ts +57 -0
- package/dist/host-modules/aws.d.ts.map +1 -0
- package/dist/host-modules/aws.js +309 -0
- package/dist/host-modules/aws.js.map +1 -0
- package/dist/host-modules/chrono.d.ts +15 -0
- package/dist/host-modules/chrono.d.ts.map +1 -0
- package/dist/host-modules/chrono.js +35 -0
- package/dist/host-modules/chrono.js.map +1 -0
- package/dist/host-modules/csv.d.ts +17 -0
- package/dist/host-modules/csv.d.ts.map +1 -0
- package/dist/host-modules/csv.js +64 -0
- package/dist/host-modules/csv.js.map +1 -0
- package/dist/host-modules/diff.d.ts +9 -0
- package/dist/host-modules/diff.d.ts.map +1 -0
- package/dist/host-modules/diff.js +26 -0
- package/dist/host-modules/diff.js.map +1 -0
- package/dist/host-modules/dispatcher.d.ts +41 -0
- package/dist/host-modules/dispatcher.d.ts.map +1 -0
- package/dist/host-modules/dispatcher.js +99 -0
- package/dist/host-modules/dispatcher.js.map +1 -0
- package/dist/host-modules/docx.d.ts +19 -0
- package/dist/host-modules/docx.d.ts.map +1 -0
- package/dist/host-modules/docx.js +120 -0
- package/dist/host-modules/docx.js.map +1 -0
- package/dist/host-modules/epub.d.ts +48 -0
- package/dist/host-modules/epub.d.ts.map +1 -0
- package/dist/host-modules/epub.js +100 -0
- package/dist/host-modules/epub.js.map +1 -0
- package/dist/host-modules/exif.d.ts +8 -0
- package/dist/host-modules/exif.d.ts.map +1 -0
- package/dist/host-modules/exif.js +19 -0
- package/dist/host-modules/exif.js.map +1 -0
- package/dist/host-modules/expr.d.ts +16 -0
- package/dist/host-modules/expr.d.ts.map +1 -0
- package/dist/host-modules/expr.js +18 -0
- package/dist/host-modules/expr.js.map +1 -0
- package/dist/host-modules/fabric.d.ts +46 -0
- package/dist/host-modules/fabric.d.ts.map +1 -0
- package/dist/host-modules/fabric.js +178 -0
- package/dist/host-modules/fabric.js.map +1 -0
- package/dist/host-modules/html.d.ts +51 -0
- package/dist/host-modules/html.d.ts.map +1 -0
- package/dist/host-modules/html.js +198 -0
- package/dist/host-modules/html.js.map +1 -0
- package/dist/host-modules/ics.d.ts +9 -0
- package/dist/host-modules/ics.d.ts.map +1 -0
- package/dist/host-modules/ics.js +35 -0
- package/dist/host-modules/ics.js.map +1 -0
- package/dist/host-modules/limits.d.ts +41 -0
- package/dist/host-modules/limits.d.ts.map +1 -0
- package/dist/host-modules/limits.js +76 -0
- package/dist/host-modules/limits.js.map +1 -0
- package/dist/host-modules/mammoth.d.ts +11 -0
- package/dist/host-modules/mammoth.d.ts.map +1 -0
- package/dist/host-modules/mammoth.js +29 -0
- package/dist/host-modules/mammoth.js.map +1 -0
- package/dist/host-modules/notion.d.ts +45 -0
- package/dist/host-modules/notion.d.ts.map +1 -0
- package/dist/host-modules/notion.js +128 -0
- package/dist/host-modules/notion.js.map +1 -0
- package/dist/host-modules/ocr.d.ts +25 -0
- package/dist/host-modules/ocr.d.ts.map +1 -0
- package/dist/host-modules/ocr.js +74 -0
- package/dist/host-modules/ocr.js.map +1 -0
- package/dist/host-modules/pdf.d.ts +21 -0
- package/dist/host-modules/pdf.d.ts.map +1 -0
- package/dist/host-modules/pdf.js +53 -0
- package/dist/host-modules/pdf.js.map +1 -0
- package/dist/host-modules/pdflib.d.ts +17 -0
- package/dist/host-modules/pdflib.d.ts.map +1 -0
- package/dist/host-modules/pdflib.js +138 -0
- package/dist/host-modules/pdflib.js.map +1 -0
- package/dist/host-modules/pptx.d.ts +19 -0
- package/dist/host-modules/pptx.d.ts.map +1 -0
- package/dist/host-modules/pptx.js +67 -0
- package/dist/host-modules/pptx.js.map +1 -0
- package/dist/host-modules/pptxgen.d.ts +13 -0
- package/dist/host-modules/pptxgen.d.ts.map +1 -0
- package/dist/host-modules/pptxgen.js +98 -0
- package/dist/host-modules/pptxgen.js.map +1 -0
- package/dist/host-modules/prepared-request.d.ts +41 -0
- package/dist/host-modules/prepared-request.d.ts.map +1 -0
- package/dist/host-modules/prepared-request.js +104 -0
- package/dist/host-modules/prepared-request.js.map +1 -0
- package/dist/host-modules/registry.d.ts +31 -0
- package/dist/host-modules/registry.d.ts.map +1 -0
- package/dist/host-modules/registry.js +193 -0
- package/dist/host-modules/registry.js.map +1 -0
- package/dist/host-modules/subtitle.d.ts +15 -0
- package/dist/host-modules/subtitle.d.ts.map +1 -0
- package/dist/host-modules/subtitle.js +45 -0
- package/dist/host-modules/subtitle.js.map +1 -0
- package/dist/host-modules/supabase.d.ts +42 -0
- package/dist/host-modules/supabase.d.ts.map +1 -0
- package/dist/host-modules/supabase.js +141 -0
- package/dist/host-modules/supabase.js.map +1 -0
- package/dist/host-modules/tfjs.d.ts +42 -0
- package/dist/host-modules/tfjs.d.ts.map +1 -0
- package/dist/host-modules/tfjs.js +186 -0
- package/dist/host-modules/tfjs.js.map +1 -0
- package/dist/host-modules/tokens.d.ts +17 -0
- package/dist/host-modules/tokens.d.ts.map +1 -0
- package/dist/host-modules/tokens.js +74 -0
- package/dist/host-modules/tokens.js.map +1 -0
- package/dist/host-modules/twilio.d.ts +34 -0
- package/dist/host-modules/twilio.d.ts.map +1 -0
- package/dist/host-modules/twilio.js +67 -0
- package/dist/host-modules/twilio.js.map +1 -0
- package/dist/host-modules/xlsx.d.ts +26 -0
- package/dist/host-modules/xlsx.d.ts.map +1 -0
- package/dist/host-modules/xlsx.js +323 -0
- package/dist/host-modules/xlsx.js.map +1 -0
- package/dist/host-modules/xml.d.ts +23 -0
- package/dist/host-modules/xml.d.ts.map +1 -0
- package/dist/host-modules/xml.js +38 -0
- package/dist/host-modules/xml.js.map +1 -0
- package/dist/host-modules/zip.d.ts +24 -0
- package/dist/host-modules/zip.d.ts.map +1 -0
- package/dist/host-modules/zip.js +70 -0
- package/dist/host-modules/zip.js.map +1 -0
- package/dist/index.d.ts +208 -60
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +163 -60
- package/dist/index.js.map +1 -1
- package/dist/js-sandbox-worker/engine.d.ts +4 -0
- package/dist/js-sandbox-worker/engine.d.ts.map +1 -0
- package/dist/js-sandbox-worker/engine.js +45 -0
- package/dist/js-sandbox-worker/engine.js.map +1 -0
- package/dist/js-sandbox-worker/host.d.ts +136 -0
- package/dist/js-sandbox-worker/host.d.ts.map +1 -0
- package/dist/js-sandbox-worker/host.js +482 -0
- package/dist/js-sandbox-worker/host.js.map +1 -0
- package/dist/js-sandbox-worker/interpreter.d.ts +276 -0
- package/dist/js-sandbox-worker/interpreter.d.ts.map +1 -0
- package/dist/js-sandbox-worker/interpreter.js +1293 -0
- package/dist/js-sandbox-worker/interpreter.js.map +1 -0
- package/dist/js-sandbox-worker/protocol.d.ts +168 -0
- package/dist/js-sandbox-worker/protocol.d.ts.map +1 -0
- package/dist/js-sandbox-worker/protocol.js +217 -0
- package/dist/js-sandbox-worker/protocol.js.map +1 -0
- package/dist/js-sandbox-worker/worker-entry.d.ts +26 -0
- package/dist/js-sandbox-worker/worker-entry.d.ts.map +1 -0
- package/dist/js-sandbox-worker/worker-entry.js +308 -0
- package/dist/js-sandbox-worker/worker-entry.js.map +1 -0
- package/dist/js-sandbox.d.ts +457 -15
- package/dist/js-sandbox.d.ts.map +1 -1
- package/dist/js-sandbox.js +2008 -311
- package/dist/js-sandbox.js.map +1 -1
- package/dist/js-script-app-runner.d.ts +11 -0
- package/dist/js-script-app-runner.d.ts.map +1 -0
- package/dist/js-script-app-runner.js +54 -0
- package/dist/js-script-app-runner.js.map +1 -0
- package/dist/js-script-sandbox.d.ts +27 -0
- package/dist/js-script-sandbox.d.ts.map +1 -0
- package/dist/js-script-sandbox.js +36 -0
- package/dist/js-script-sandbox.js.map +1 -0
- package/dist/jtbd/friction.d.ts +26 -0
- package/dist/jtbd/friction.d.ts.map +1 -0
- package/dist/jtbd/friction.js +169 -0
- package/dist/jtbd/friction.js.map +1 -0
- package/dist/jtbd/index.d.ts +6 -0
- package/dist/jtbd/index.d.ts.map +1 -0
- package/dist/jtbd/index.js +6 -0
- package/dist/jtbd/index.js.map +1 -0
- package/dist/jtbd/optimize.d.ts +71 -0
- package/dist/jtbd/optimize.d.ts.map +1 -0
- package/dist/jtbd/optimize.js +176 -0
- package/dist/jtbd/optimize.js.map +1 -0
- package/dist/jtbd/registry.d.ts +29 -0
- package/dist/jtbd/registry.d.ts.map +1 -0
- package/dist/jtbd/registry.js +451 -0
- package/dist/jtbd/registry.js.map +1 -0
- package/dist/jtbd/run.d.ts +70 -0
- package/dist/jtbd/run.d.ts.map +1 -0
- package/dist/jtbd/run.js +177 -0
- package/dist/jtbd/run.js.map +1 -0
- package/dist/jtbd/types.d.ts +141 -0
- package/dist/jtbd/types.d.ts.map +1 -0
- package/dist/jtbd/types.js +25 -0
- package/dist/jtbd/types.js.map +1 -0
- package/dist/model-prompting-skills.d.ts +45 -0
- package/dist/model-prompting-skills.d.ts.map +1 -0
- package/dist/model-prompting-skills.js +116 -0
- package/dist/model-prompting-skills.js.map +1 -0
- package/dist/network-guard.d.ts +50 -0
- package/dist/network-guard.d.ts.map +1 -0
- package/dist/network-guard.js +106 -0
- package/dist/network-guard.js.map +1 -0
- package/dist/normalize-model-properties.d.ts +26 -0
- package/dist/normalize-model-properties.d.ts.map +1 -0
- package/dist/normalize-model-properties.js +58 -0
- package/dist/normalize-model-properties.js.map +1 -0
- package/dist/output-format.d.ts +5 -1
- package/dist/output-format.d.ts.map +1 -1
- package/dist/output-format.js.map +1 -1
- package/dist/parallel-task-executor.d.ts +68 -37
- package/dist/parallel-task-executor.d.ts.map +1 -1
- package/dist/parallel-task-executor.js +234 -203
- package/dist/parallel-task-executor.js.map +1 -1
- package/dist/prompts/background-subtask-prompt.d.ts +14 -0
- package/dist/prompts/background-subtask-prompt.d.ts.map +1 -0
- package/dist/prompts/background-subtask-prompt.js +64 -0
- package/dist/prompts/background-subtask-prompt.js.map +1 -0
- package/dist/prompts/product-knowledge.d.ts +3 -0
- package/dist/prompts/product-knowledge.d.ts.map +1 -0
- package/dist/prompts/product-knowledge.js +120 -0
- package/dist/prompts/product-knowledge.js.map +1 -0
- package/dist/prompts/read-only-search-prompt.d.ts +33 -0
- package/dist/prompts/read-only-search-prompt.d.ts.map +1 -0
- package/dist/prompts/read-only-search-prompt.js +109 -0
- package/dist/prompts/read-only-search-prompt.js.map +1 -0
- package/dist/prompts/sandbox-pack-catalog.d.ts +23 -0
- package/dist/prompts/sandbox-pack-catalog.d.ts.map +1 -0
- package/dist/prompts/sandbox-pack-catalog.js +40 -0
- package/dist/prompts/sandbox-pack-catalog.js.map +1 -0
- package/dist/prompts/security-monitor-prompt.d.ts +32 -0
- package/dist/prompts/security-monitor-prompt.d.ts.map +1 -0
- package/dist/prompts/security-monitor-prompt.js +99 -0
- package/dist/prompts/security-monitor-prompt.js.map +1 -0
- package/dist/prompts/workflow-authoring-knowledge.d.ts +77 -0
- package/dist/prompts/workflow-authoring-knowledge.d.ts.map +1 -0
- package/dist/prompts/workflow-authoring-knowledge.js +319 -0
- package/dist/prompts/workflow-authoring-knowledge.js.map +1 -0
- package/dist/run-policy.d.ts +25 -0
- package/dist/run-policy.d.ts.map +1 -0
- package/dist/run-policy.js +54 -0
- package/dist/run-policy.js.map +1 -0
- package/dist/sandbox-av-media.d.ts +33 -0
- package/dist/sandbox-av-media.d.ts.map +1 -0
- package/dist/sandbox-av-media.js +666 -0
- package/dist/sandbox-av-media.js.map +1 -0
- package/dist/sandbox-bootstrap-modules.d.ts +54 -0
- package/dist/sandbox-bootstrap-modules.d.ts.map +1 -0
- package/dist/sandbox-bootstrap-modules.js +104 -0
- package/dist/sandbox-bootstrap-modules.js.map +1 -0
- package/dist/sandbox-bytes.d.ts +43 -0
- package/dist/sandbox-bytes.d.ts.map +1 -0
- package/dist/sandbox-bytes.js +61 -0
- package/dist/sandbox-bytes.js.map +1 -0
- package/dist/sandbox-canvas-api.d.ts +30 -0
- package/dist/sandbox-canvas-api.d.ts.map +1 -0
- package/dist/sandbox-canvas-api.js +81 -0
- package/dist/sandbox-canvas-api.js.map +1 -0
- package/dist/sandbox-constants.d.ts +5 -0
- package/dist/sandbox-constants.d.ts.map +1 -0
- package/dist/sandbox-constants.js +13 -0
- package/dist/sandbox-constants.js.map +1 -0
- package/dist/sandbox-json-transport.d.ts +107 -0
- package/dist/sandbox-json-transport.d.ts.map +1 -0
- package/dist/sandbox-json-transport.js +324 -0
- package/dist/sandbox-json-transport.js.map +1 -0
- package/dist/sandbox-media-handle.d.ts +78 -0
- package/dist/sandbox-media-handle.d.ts.map +1 -0
- package/dist/sandbox-media-handle.js +114 -0
- package/dist/sandbox-media-handle.js.map +1 -0
- package/dist/sandbox-media-ref.d.ts +134 -0
- package/dist/sandbox-media-ref.d.ts.map +1 -0
- package/dist/sandbox-media-ref.js +442 -0
- package/dist/sandbox-media-ref.js.map +1 -0
- package/dist/sandbox-media.d.ts +177 -0
- package/dist/sandbox-media.d.ts.map +1 -0
- package/dist/sandbox-media.js +963 -0
- package/dist/sandbox-media.js.map +1 -0
- package/dist/sandbox-module-fixtures.d.ts +445 -0
- package/dist/sandbox-module-fixtures.d.ts.map +1 -0
- package/dist/sandbox-module-fixtures.js +214 -0
- package/dist/sandbox-module-fixtures.js.map +1 -0
- package/dist/sandbox-pack-resolution.d.ts +21 -0
- package/dist/sandbox-pack-resolution.d.ts.map +1 -0
- package/dist/sandbox-pack-resolution.js +42 -0
- package/dist/sandbox-pack-resolution.js.map +1 -0
- package/dist/sandbox-toolbelt.d.ts +15 -0
- package/dist/sandbox-toolbelt.d.ts.map +1 -0
- package/dist/sandbox-toolbelt.js +70 -0
- package/dist/sandbox-toolbelt.js.map +1 -0
- package/dist/security-monitor.d.ts +89 -0
- package/dist/security-monitor.d.ts.map +1 -0
- package/dist/security-monitor.js +307 -0
- package/dist/security-monitor.js.map +1 -0
- package/dist/serpapi/catalog.d.ts +101 -0
- package/dist/serpapi/catalog.d.ts.map +1 -0
- package/dist/serpapi/catalog.js +246 -0
- package/dist/serpapi/catalog.js.map +1 -0
- package/dist/serpapi/client.d.ts +81 -0
- package/dist/serpapi/client.d.ts.map +1 -0
- package/dist/serpapi/client.js +228 -0
- package/dist/serpapi/client.js.map +1 -0
- package/dist/serpapi/errors.d.ts +49 -0
- package/dist/serpapi/errors.d.ts.map +1 -0
- package/dist/serpapi/errors.js +64 -0
- package/dist/serpapi/errors.js.map +1 -0
- package/dist/serpapi/normalize.d.ts +58 -0
- package/dist/serpapi/normalize.d.ts.map +1 -0
- package/dist/serpapi/normalize.js +140 -0
- package/dist/serpapi/normalize.js.map +1 -0
- package/dist/skill-prompt.d.ts +37 -0
- package/dist/skill-prompt.d.ts.map +1 -0
- package/dist/skill-prompt.js +72 -0
- package/dist/skill-prompt.js.map +1 -0
- package/dist/step-executor.d.ts +90 -77
- package/dist/step-executor.d.ts.map +1 -1
- package/dist/step-executor.js +384 -690
- package/dist/step-executor.js.map +1 -1
- package/dist/subagent.d.ts +275 -0
- package/dist/subagent.d.ts.map +1 -0
- package/dist/subagent.js +444 -0
- package/dist/subagent.js.map +1 -0
- package/dist/supervisor/prompt.d.ts +12 -0
- package/dist/supervisor/prompt.d.ts.map +1 -0
- package/dist/supervisor/prompt.js +51 -0
- package/dist/supervisor/prompt.js.map +1 -0
- package/dist/supervisor/supervisor-agent.d.ts +72 -0
- package/dist/supervisor/supervisor-agent.d.ts.map +1 -0
- package/dist/supervisor/supervisor-agent.js +185 -0
- package/dist/supervisor/supervisor-agent.js.map +1 -0
- package/dist/supervisor/tools.d.ts +56 -0
- package/dist/supervisor/tools.d.ts.map +1 -0
- package/dist/supervisor/tools.js +83 -0
- package/dist/supervisor/tools.js.map +1 -0
- package/dist/supervisor/verdict-schema.d.ts +18 -0
- package/dist/supervisor/verdict-schema.d.ts.map +1 -0
- package/dist/supervisor/verdict-schema.js +58 -0
- package/dist/supervisor/verdict-schema.js.map +1 -0
- package/dist/system-skills.d.ts +74 -0
- package/dist/system-skills.d.ts.map +1 -0
- package/dist/system-skills.js +168 -0
- package/dist/system-skills.js.map +1 -0
- package/dist/task-executor.d.ts +90 -40
- package/dist/task-executor.d.ts.map +1 -1
- package/dist/task-executor.js +259 -282
- package/dist/task-executor.js.map +1 -1
- package/dist/task-planner.d.ts +18 -12
- package/dist/task-planner.d.ts.map +1 -1
- package/dist/task-planner.js +342 -328
- package/dist/task-planner.js.map +1 -1
- package/dist/timeline-capture.d.ts +21 -0
- package/dist/timeline-capture.d.ts.map +1 -0
- package/dist/timeline-capture.js +564 -0
- package/dist/timeline-capture.js.map +1 -0
- package/dist/timeline-code-bake.d.ts +75 -0
- package/dist/timeline-code-bake.d.ts.map +1 -0
- package/dist/timeline-code-bake.js +327 -0
- package/dist/timeline-code-bake.js.map +1 -0
- package/dist/timeline-preview/compare.d.ts +27 -0
- package/dist/timeline-preview/compare.d.ts.map +1 -0
- package/dist/timeline-preview/compare.js +71 -0
- package/dist/timeline-preview/compare.js.map +1 -0
- package/dist/timeline-preview/frames.d.ts +193 -0
- package/dist/timeline-preview/frames.d.ts.map +1 -0
- package/dist/timeline-preview/frames.js +731 -0
- package/dist/timeline-preview/frames.js.map +1 -0
- package/dist/timeline-preview/model3d.d.ts +67 -0
- package/dist/timeline-preview/model3d.d.ts.map +1 -0
- package/dist/timeline-preview/model3d.js +165 -0
- package/dist/timeline-preview/model3d.js.map +1 -0
- package/dist/timeline-preview/rasterize.d.ts +33 -0
- package/dist/timeline-preview/rasterize.d.ts.map +1 -0
- package/dist/timeline-preview/rasterize.js +83 -0
- package/dist/timeline-preview/rasterize.js.map +1 -0
- package/dist/timeline-preview/sheet.d.ts +38 -0
- package/dist/timeline-preview/sheet.d.ts.map +1 -0
- package/dist/timeline-preview/sheet.js +72 -0
- package/dist/timeline-preview/sheet.js.map +1 -0
- package/dist/tools/asset-persist.d.ts +29 -0
- package/dist/tools/asset-persist.d.ts.map +1 -0
- package/dist/tools/asset-persist.js +78 -0
- package/dist/tools/asset-persist.js.map +1 -0
- package/dist/tools/base-tool.d.ts +53 -5
- package/dist/tools/base-tool.d.ts.map +1 -1
- package/dist/tools/base-tool.js +180 -3
- package/dist/tools/base-tool.js.map +1 -1
- package/dist/tools/binary-output.d.ts +54 -0
- package/dist/tools/binary-output.d.ts.map +1 -0
- package/dist/tools/binary-output.js +127 -0
- package/dist/tools/binary-output.js.map +1 -0
- package/dist/tools/browser-tools.d.ts +5 -29
- package/dist/tools/browser-tools.d.ts.map +1 -1
- package/dist/tools/browser-tools.js +5 -205
- package/dist/tools/browser-tools.js.map +1 -1
- package/dist/tools/builtin-tools.d.ts +52 -0
- package/dist/tools/builtin-tools.d.ts.map +1 -0
- package/dist/tools/builtin-tools.js +289 -0
- package/dist/tools/builtin-tools.js.map +1 -0
- package/dist/tools/control-tool.d.ts +2 -5
- package/dist/tools/control-tool.d.ts.map +1 -1
- package/dist/tools/control-tool.js +18 -15
- package/dist/tools/control-tool.js.map +1 -1
- package/dist/tools/dataseo-tools.d.ts +34 -32
- package/dist/tools/dataseo-tools.d.ts.map +1 -1
- package/dist/tools/dataseo-tools.js +148 -233
- package/dist/tools/dataseo-tools.js.map +1 -1
- package/dist/tools/external-capability-tools.d.ts +36 -0
- package/dist/tools/external-capability-tools.d.ts.map +1 -0
- package/dist/tools/external-capability-tools.js +41 -0
- package/dist/tools/external-capability-tools.js.map +1 -0
- package/dist/tools/external-mcp-tools.d.ts +139 -0
- package/dist/tools/external-mcp-tools.d.ts.map +1 -0
- package/dist/tools/external-mcp-tools.js +552 -0
- package/dist/tools/external-mcp-tools.js.map +1 -0
- package/dist/tools/finish-step-tool.d.ts +1 -1
- package/dist/tools/finish-step-tool.d.ts.map +1 -1
- package/dist/tools/finish-step-tool.js +3 -3
- package/dist/tools/finish-step-tool.js.map +1 -1
- package/dist/tools/google-tools.d.ts +28 -39
- package/dist/tools/google-tools.d.ts.map +1 -1
- package/dist/tools/google-tools.js +51 -164
- package/dist/tools/google-tools.js.map +1 -1
- package/dist/tools/google-workspace-tools.d.ts +23 -0
- package/dist/tools/google-workspace-tools.d.ts.map +1 -0
- package/dist/tools/google-workspace-tools.js +26 -0
- package/dist/tools/google-workspace-tools.js.map +1 -0
- package/dist/tools/graph-validation-registry.d.ts +33 -0
- package/dist/tools/graph-validation-registry.d.ts.map +1 -0
- package/dist/tools/graph-validation-registry.js +54 -0
- package/dist/tools/graph-validation-registry.js.map +1 -0
- package/dist/tools/http-tools.d.ts +5 -53
- package/dist/tools/http-tools.d.ts.map +1 -1
- package/dist/tools/http-tools.js +5 -177
- package/dist/tools/http-tools.js.map +1 -1
- package/dist/tools/image-injection.d.ts +51 -0
- package/dist/tools/image-injection.d.ts.map +1 -0
- package/dist/tools/image-injection.js +85 -0
- package/dist/tools/image-injection.js.map +1 -0
- package/dist/tools/mcp-tool-support.d.ts +204 -0
- package/dist/tools/mcp-tool-support.d.ts.map +1 -0
- package/dist/tools/mcp-tool-support.js +537 -0
- package/dist/tools/mcp-tool-support.js.map +1 -0
- package/dist/tools/mcp-tools.d.ts +106 -390
- package/dist/tools/mcp-tools.d.ts.map +1 -1
- package/dist/tools/mcp-tools.js +132 -601
- package/dist/tools/mcp-tools.js.map +1 -1
- package/dist/tools/media-tools.d.ts +9 -272
- package/dist/tools/media-tools.d.ts.map +1 -1
- package/dist/tools/media-tools.js +11 -676
- package/dist/tools/media-tools.js.map +1 -1
- package/dist/tools/memory-tools.d.ts +36 -0
- package/dist/tools/memory-tools.d.ts.map +1 -0
- package/dist/tools/memory-tools.js +52 -0
- package/dist/tools/memory-tools.js.map +1 -0
- package/dist/tools/openai-tools.d.ts +28 -68
- package/dist/tools/openai-tools.d.ts.map +1 -1
- package/dist/tools/openai-tools.js +51 -181
- package/dist/tools/openai-tools.js.map +1 -1
- package/dist/tools/plan-builder-tools.d.ts +141 -7
- package/dist/tools/plan-builder-tools.d.ts.map +1 -1
- package/dist/tools/plan-builder-tools.js +159 -86
- package/dist/tools/plan-builder-tools.js.map +1 -1
- package/dist/tools/run-search-tool.d.ts +82 -0
- package/dist/tools/run-search-tool.d.ts.map +1 -0
- package/dist/tools/run-search-tool.js +121 -0
- package/dist/tools/run-search-tool.js.map +1 -0
- package/dist/tools/run-subtask-tool.d.ts +49 -0
- package/dist/tools/run-subtask-tool.d.ts.map +1 -0
- package/dist/tools/run-subtask-tool.js +88 -0
- package/dist/tools/run-subtask-tool.js.map +1 -0
- package/dist/tools/search-tools.d.ts +5 -36
- package/dist/tools/search-tools.d.ts.map +1 -1
- package/dist/tools/search-tools.js +5 -215
- package/dist/tools/search-tools.js.map +1 -1
- package/dist/tools/serp-providers/apify-provider.d.ts +18 -0
- package/dist/tools/serp-providers/apify-provider.d.ts.map +1 -0
- package/dist/tools/serp-providers/apify-provider.js +93 -0
- package/dist/tools/serp-providers/apify-provider.js.map +1 -0
- package/dist/tools/serp-providers/brave-provider.d.ts +34 -0
- package/dist/tools/serp-providers/brave-provider.d.ts.map +1 -0
- package/dist/tools/serp-providers/brave-provider.js +86 -0
- package/dist/tools/serp-providers/brave-provider.js.map +1 -0
- package/dist/tools/serp-providers/dataforseo-provider.d.ts +14 -1
- package/dist/tools/serp-providers/dataforseo-provider.d.ts.map +1 -1
- package/dist/tools/serp-providers/dataforseo-provider.js +0 -9
- package/dist/tools/serp-providers/dataforseo-provider.js.map +1 -1
- package/dist/tools/serp-providers/gemini-provider.d.ts +45 -0
- package/dist/tools/serp-providers/gemini-provider.d.ts.map +1 -0
- package/dist/tools/serp-providers/gemini-provider.js +148 -0
- package/dist/tools/serp-providers/gemini-provider.js.map +1 -0
- package/dist/tools/serp-providers/index.d.ts +61 -0
- package/dist/tools/serp-providers/index.d.ts.map +1 -1
- package/dist/tools/serp-providers/index.js +119 -3
- package/dist/tools/serp-providers/index.js.map +1 -1
- package/dist/tools/serp-providers/openai-provider.d.ts +58 -0
- package/dist/tools/serp-providers/openai-provider.d.ts.map +1 -0
- package/dist/tools/serp-providers/openai-provider.js +113 -0
- package/dist/tools/serp-providers/openai-provider.js.map +1 -0
- package/dist/tools/serp-providers/serpapi-provider.d.ts +9 -5
- package/dist/tools/serp-providers/serpapi-provider.d.ts.map +1 -1
- package/dist/tools/serp-providers/serpapi-provider.js +26 -44
- package/dist/tools/serp-providers/serpapi-provider.js.map +1 -1
- package/dist/tools/serp-tool-factory.d.ts +27 -0
- package/dist/tools/serp-tool-factory.d.ts.map +1 -0
- package/dist/tools/serp-tool-factory.js +56 -0
- package/dist/tools/serp-tool-factory.js.map +1 -0
- package/dist/tools/shared-tools.d.ts +33 -0
- package/dist/tools/shared-tools.d.ts.map +1 -0
- package/dist/tools/shared-tools.js +39 -0
- package/dist/tools/shared-tools.js.map +1 -0
- package/dist/tools/start-subtask-tool.d.ts +51 -0
- package/dist/tools/start-subtask-tool.d.ts.map +1 -0
- package/dist/tools/start-subtask-tool.js +189 -0
- package/dist/tools/start-subtask-tool.js.map +1 -0
- package/dist/tools/submit-code-tool.d.ts +159 -0
- package/dist/tools/submit-code-tool.d.ts.map +1 -0
- package/dist/tools/submit-code-tool.js +209 -0
- package/dist/tools/submit-code-tool.js.map +1 -0
- package/dist/tools/subtask-fields.d.ts +11 -0
- package/dist/tools/subtask-fields.d.ts.map +1 -0
- package/dist/tools/subtask-fields.js +11 -0
- package/dist/tools/subtask-fields.js.map +1 -0
- package/dist/tools/todo-tools.d.ts +15 -0
- package/dist/tools/todo-tools.d.ts.map +1 -0
- package/dist/tools/todo-tools.js +15 -0
- package/dist/tools/todo-tools.js.map +1 -0
- package/dist/tools/tool-permissions.d.ts +40 -0
- package/dist/tools/tool-permissions.d.ts.map +1 -0
- package/dist/tools/tool-permissions.js +52 -0
- package/dist/tools/tool-permissions.js.map +1 -0
- package/dist/tools/tool-search.d.ts +39 -0
- package/dist/tools/tool-search.d.ts.map +1 -0
- package/dist/tools/tool-search.js +108 -0
- package/dist/tools/tool-search.js.map +1 -0
- package/dist/tools/vector-tool-support.d.ts +15 -0
- package/dist/tools/vector-tool-support.d.ts.map +1 -0
- package/dist/tools/vector-tool-support.js +133 -0
- package/dist/tools/vector-tool-support.js.map +1 -0
- package/dist/tools/vector-tools.d.ts +13 -220
- package/dist/tools/vector-tools.d.ts.map +1 -1
- package/dist/tools/vector-tools.js +7 -578
- package/dist/tools/vector-tools.js.map +1 -1
- package/dist/tools/wait-subtasks-tool.d.ts +27 -0
- package/dist/tools/wait-subtasks-tool.d.ts.map +1 -0
- package/dist/tools/wait-subtasks-tool.js +66 -0
- package/dist/tools/wait-subtasks-tool.js.map +1 -0
- package/dist/types.d.ts +16 -31
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +8 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/dag-scheduler.d.ts +85 -0
- package/dist/utils/dag-scheduler.d.ts.map +1 -0
- package/dist/utils/dag-scheduler.js +180 -0
- package/dist/utils/dag-scheduler.js.map +1 -0
- package/dist/utils/json-parser.d.ts +32 -1
- package/dist/utils/json-parser.d.ts.map +1 -1
- package/dist/utils/json-parser.js +145 -10
- package/dist/utils/json-parser.js.map +1 -1
- package/dist/utils/json-schema-validate.d.ts +29 -0
- package/dist/utils/json-schema-validate.d.ts.map +1 -0
- package/dist/utils/json-schema-validate.js +228 -0
- package/dist/utils/json-schema-validate.js.map +1 -0
- package/dist/utils/link-abort.d.ts +13 -0
- package/dist/utils/link-abort.d.ts.map +1 -0
- package/dist/utils/link-abort.js +23 -0
- package/dist/utils/link-abort.js.map +1 -0
- package/dist/utils/merge-generators.d.ts +58 -0
- package/dist/utils/merge-generators.d.ts.map +1 -0
- package/dist/utils/merge-generators.js +148 -0
- package/dist/utils/merge-generators.js.map +1 -0
- package/dist/utils/remove-base64-images.d.ts +0 -5
- package/dist/utils/remove-base64-images.d.ts.map +1 -1
- package/dist/utils/remove-base64-images.js.map +1 -1
- package/dist/utils/step-failure.d.ts +20 -0
- package/dist/utils/step-failure.d.ts.map +1 -0
- package/dist/utils/step-failure.js +43 -0
- package/dist/utils/step-failure.js.map +1 -0
- package/dist/utils/think-tags.d.ts +16 -0
- package/dist/utils/think-tags.d.ts.map +1 -0
- package/dist/utils/think-tags.js +23 -0
- package/dist/utils/think-tags.js.map +1 -0
- package/dist/utils/type-guards.d.ts +26 -0
- package/dist/utils/type-guards.d.ts.map +1 -0
- package/dist/utils/type-guards.js +44 -0
- package/dist/utils/type-guards.js.map +1 -0
- package/dist/utils/ui-event-buffer.d.ts +18 -0
- package/dist/utils/ui-event-buffer.d.ts.map +1 -0
- package/dist/utils/ui-event-buffer.js +18 -0
- package/dist/utils/ui-event-buffer.js.map +1 -0
- package/dist/utils/wrap-generators-parallel.d.ts +0 -5
- package/dist/utils/wrap-generators-parallel.d.ts.map +1 -1
- package/dist/utils/wrap-generators-parallel.js +3 -6
- package/dist/utils/wrap-generators-parallel.js.map +1 -1
- package/dist/wasm-sandbox/host.d.ts +106 -0
- package/dist/wasm-sandbox/host.d.ts.map +1 -0
- package/dist/wasm-sandbox/host.js +409 -0
- package/dist/wasm-sandbox/host.js.map +1 -0
- package/dist/wasm-sandbox/workers.d.ts +43 -0
- package/dist/wasm-sandbox/workers.d.ts.map +1 -0
- package/dist/wasm-sandbox/workers.js +150 -0
- package/dist/wasm-sandbox/workers.js.map +1 -0
- package/dist/workspace-paths.d.ts +40 -0
- package/dist/workspace-paths.d.ts.map +1 -0
- package/dist/workspace-paths.js +102 -0
- package/dist/workspace-paths.js.map +1 -0
- package/dist/yt-dlp-gate.d.ts +19 -0
- package/dist/yt-dlp-gate.d.ts.map +1 -0
- package/dist/yt-dlp-gate.js +22 -0
- package/dist/yt-dlp-gate.js.map +1 -0
- package/package.json +114 -14
- package/dist/agent-executor.d.ts +0 -62
- package/dist/agent-executor.d.ts.map +0 -1
- package/dist/agent-executor.js +0 -324
- package/dist/agent-executor.js.map +0 -1
- package/dist/agent-step-executor.d.ts +0 -28
- package/dist/agent-step-executor.d.ts.map +0 -1
- package/dist/agent-step-executor.js +0 -99
- package/dist/agent-step-executor.js.map +0 -1
- package/dist/agent-workflow-runner.d.ts +0 -31
- package/dist/agent-workflow-runner.d.ts.map +0 -1
- package/dist/agent-workflow-runner.js +0 -124
- package/dist/agent-workflow-runner.js.map +0 -1
- package/dist/agent.d.ts +0 -115
- package/dist/agent.d.ts.map +0 -1
- package/dist/agent.js +0 -587
- package/dist/agent.js.map +0 -1
- package/dist/base-agent.d.ts +0 -42
- package/dist/base-agent.d.ts.map +0 -1
- package/dist/base-agent.js +0 -29
- package/dist/base-agent.js.map +0 -1
- package/dist/graph-planner.d.ts +0 -56
- package/dist/graph-planner.d.ts.map +0 -1
- package/dist/graph-planner.js +0 -311
- package/dist/graph-planner.js.map +0 -1
- package/dist/multi-mode-agent.d.ts +0 -86
- package/dist/multi-mode-agent.d.ts.map +0 -1
- package/dist/multi-mode-agent.js +0 -476
- package/dist/multi-mode-agent.js.map +0 -1
- package/dist/prompts/graph-planner-prompt.d.ts +0 -48
- package/dist/prompts/graph-planner-prompt.d.ts.map +0 -1
- package/dist/prompts/graph-planner-prompt.js +0 -180
- package/dist/prompts/graph-planner-prompt.js.map +0 -1
- package/dist/reject-agentic-provider.d.ts +0 -21
- package/dist/reject-agentic-provider.d.ts.map +0 -1
- package/dist/reject-agentic-provider.js +0 -32
- package/dist/reject-agentic-provider.js.map +0 -1
- package/dist/simple-agent.d.ts +0 -29
- package/dist/simple-agent.d.ts.map +0 -1
- package/dist/simple-agent.js +0 -54
- package/dist/simple-agent.js.map +0 -1
- package/dist/sub-agent-planner.d.ts +0 -33
- package/dist/sub-agent-planner.d.ts.map +0 -1
- package/dist/sub-agent-planner.js +0 -203
- package/dist/sub-agent-planner.js.map +0 -1
- package/dist/team/db-task-board.d.ts +0 -54
- package/dist/team/db-task-board.d.ts.map +0 -1
- package/dist/team/db-task-board.js +0 -361
- package/dist/team/db-task-board.js.map +0 -1
- package/dist/team/edge-message-bus.d.ts +0 -51
- package/dist/team/edge-message-bus.d.ts.map +0 -1
- package/dist/team/edge-message-bus.js +0 -169
- package/dist/team/edge-message-bus.js.map +0 -1
- package/dist/team/edge-task-board.d.ts +0 -77
- package/dist/team/edge-task-board.d.ts.map +0 -1
- package/dist/team/edge-task-board.js +0 -140
- package/dist/team/edge-task-board.js.map +0 -1
- package/dist/team/index.d.ts +0 -16
- package/dist/team/index.d.ts.map +0 -1
- package/dist/team/index.js +0 -17
- package/dist/team/index.js.map +0 -1
- package/dist/team/message-bus.d.ts +0 -58
- package/dist/team/message-bus.d.ts.map +0 -1
- package/dist/team/message-bus.js +0 -151
- package/dist/team/message-bus.js.map +0 -1
- package/dist/team/task-board.d.ts +0 -106
- package/dist/team/task-board.d.ts.map +0 -1
- package/dist/team/task-board.js +0 -370
- package/dist/team/task-board.js.map +0 -1
- package/dist/team/team-executor.d.ts +0 -72
- package/dist/team/team-executor.d.ts.map +0 -1
- package/dist/team/team-executor.js +0 -466
- package/dist/team/team-executor.js.map +0 -1
- package/dist/team/team-tools.d.ts +0 -252
- package/dist/team/team-tools.d.ts.map +0 -1
- package/dist/team/team-tools.js +0 -412
- package/dist/team/team-tools.js.map +0 -1
- package/dist/team/types.d.ts +0 -198
- package/dist/team/types.d.ts.map +0 -1
- package/dist/team/types.js +0 -8
- package/dist/team/types.js.map +0 -1
- package/dist/tools/add-edge-tool.d.ts +0 -18
- package/dist/tools/add-edge-tool.d.ts.map +0 -1
- package/dist/tools/add-edge-tool.js +0 -92
- package/dist/tools/add-edge-tool.js.map +0 -1
- package/dist/tools/add-node-tool.d.ts +0 -22
- package/dist/tools/add-node-tool.d.ts.map +0 -1
- package/dist/tools/add-node-tool.js +0 -128
- package/dist/tools/add-node-tool.js.map +0 -1
- package/dist/tools/asset-tools.d.ts +0 -58
- package/dist/tools/asset-tools.d.ts.map +0 -1
- package/dist/tools/asset-tools.js +0 -191
- package/dist/tools/asset-tools.js.map +0 -1
- package/dist/tools/calculator-tool.d.ts +0 -24
- package/dist/tools/calculator-tool.d.ts.map +0 -1
- package/dist/tools/calculator-tool.js +0 -64
- package/dist/tools/calculator-tool.js.map +0 -1
- package/dist/tools/claude-code-tools.d.ts +0 -96
- package/dist/tools/claude-code-tools.d.ts.map +0 -1
- package/dist/tools/claude-code-tools.js +0 -463
- package/dist/tools/claude-code-tools.js.map +0 -1
- package/dist/tools/code-tools.d.ts +0 -26
- package/dist/tools/code-tools.d.ts.map +0 -1
- package/dist/tools/code-tools.js +0 -82
- package/dist/tools/code-tools.js.map +0 -1
- package/dist/tools/create-plan-tool.d.ts +0 -29
- package/dist/tools/create-plan-tool.d.ts.map +0 -1
- package/dist/tools/create-plan-tool.js +0 -355
- package/dist/tools/create-plan-tool.js.map +0 -1
- package/dist/tools/create-task-tool.d.ts +0 -28
- package/dist/tools/create-task-tool.d.ts.map +0 -1
- package/dist/tools/create-task-tool.js +0 -254
- package/dist/tools/create-task-tool.js.map +0 -1
- package/dist/tools/email-tools.d.ts +0 -76
- package/dist/tools/email-tools.d.ts.map +0 -1
- package/dist/tools/email-tools.js +0 -259
- package/dist/tools/email-tools.js.map +0 -1
- package/dist/tools/filesystem-tools.d.ts +0 -77
- package/dist/tools/filesystem-tools.d.ts.map +0 -1
- package/dist/tools/filesystem-tools.js +0 -334
- package/dist/tools/filesystem-tools.js.map +0 -1
- package/dist/tools/find-model-tool.d.ts +0 -25
- package/dist/tools/find-model-tool.d.ts.map +0 -1
- package/dist/tools/find-model-tool.js +0 -236
- package/dist/tools/find-model-tool.js.map +0 -1
- package/dist/tools/finish-graph-tool.d.ts +0 -23
- package/dist/tools/finish-graph-tool.d.ts.map +0 -1
- package/dist/tools/finish-graph-tool.js +0 -46
- package/dist/tools/finish-graph-tool.js.map +0 -1
- package/dist/tools/js-code-tool.d.ts +0 -30
- package/dist/tools/js-code-tool.d.ts.map +0 -1
- package/dist/tools/js-code-tool.js +0 -98
- package/dist/tools/js-code-tool.js.map +0 -1
- package/dist/tools/local-get-node-info-tool.d.ts +0 -19
- package/dist/tools/local-get-node-info-tool.d.ts.map +0 -1
- package/dist/tools/local-get-node-info-tool.js +0 -75
- package/dist/tools/local-get-node-info-tool.js.map +0 -1
- package/dist/tools/local-list-nodes-tool.d.ts +0 -19
- package/dist/tools/local-list-nodes-tool.d.ts.map +0 -1
- package/dist/tools/local-list-nodes-tool.js +0 -69
- package/dist/tools/local-list-nodes-tool.js.map +0 -1
- package/dist/tools/local-search-nodes-tool.d.ts +0 -21
- package/dist/tools/local-search-nodes-tool.d.ts.map +0 -1
- package/dist/tools/local-search-nodes-tool.js +0 -111
- package/dist/tools/local-search-nodes-tool.js.map +0 -1
- package/dist/tools/math-tools.d.ts +0 -156
- package/dist/tools/math-tools.d.ts.map +0 -1
- package/dist/tools/math-tools.js +0 -422
- package/dist/tools/math-tools.js.map +0 -1
- package/dist/tools/model-tools.d.ts +0 -25
- package/dist/tools/model-tools.d.ts.map +0 -1
- package/dist/tools/model-tools.js +0 -48
- package/dist/tools/model-tools.js.map +0 -1
- package/dist/tools/pdf-tools.d.ts +0 -152
- package/dist/tools/pdf-tools.d.ts.map +0 -1
- package/dist/tools/pdf-tools.js +0 -339
- package/dist/tools/pdf-tools.js.map +0 -1
- package/dist/tools/tool-registry.d.ts +0 -9
- package/dist/tools/tool-registry.d.ts.map +0 -1
- package/dist/tools/tool-registry.js +0 -17
- package/dist/tools/tool-registry.js.map +0 -1
- package/dist/tools/workspace-tools.d.ts +0 -58
- package/dist/tools/workspace-tools.d.ts.map +0 -1
- package/dist/tools/workspace-tools.js +0 -152
- package/dist/tools/workspace-tools.js.map +0 -1
|
@@ -0,0 +1,1411 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeAct eval cases for the CORE `nodetool.*` namespaces — workflows, nodes,
|
|
3
|
+
* models, media, jobs, assets, agents (plus `batch`).
|
|
4
|
+
*
|
|
5
|
+
* The two graph-authoring cases build with `@nodetool-ai/sandbox-dsl`, so the
|
|
6
|
+
* world's node types are the ones that pack really exports. The exception is
|
|
7
|
+
* `nodetool.text.Uppercase`, which only ever appears inside pre-built
|
|
8
|
+
* workflows a case runs by id.
|
|
9
|
+
*
|
|
10
|
+
* The belt below is a set of fakes named exactly like the real tools, so the
|
|
11
|
+
* executor lights up the object model, its prompt section, and the guest
|
|
12
|
+
* prelude. Behind them sits one deterministic in-memory world: a node catalog
|
|
13
|
+
* a three-type interpreter can actually execute, workflows saved through
|
|
14
|
+
* `create_workflow` and runnable by the id it hands back, a background job
|
|
15
|
+
* that settles on its second poll, an interactive run that escalates once, a
|
|
16
|
+
* ranked model catalog the media tools validate against, and an asset store.
|
|
17
|
+
* No DB, no network, no clock beyond the sandbox's own `sleep`.
|
|
18
|
+
*/
|
|
19
|
+
import { GRAPH_DSL_PACKAGE } from "../codeact/graph-dsl-package.js";
|
|
20
|
+
import { RecordingTool } from "./codeact-cases.js";
|
|
21
|
+
import { isNumber, isObjectLike, isRecord, isString } from "../utils/type-guards.js";
|
|
22
|
+
const str = (value) => value === undefined || value === null ? "" : String(value);
|
|
23
|
+
const record = (value) => isRecord(value)
|
|
24
|
+
? value
|
|
25
|
+
: {};
|
|
26
|
+
/** Words a critique judges a brief by — short ones carry no signal. */
|
|
27
|
+
const briefTerms = (brief) => Array.from(new Set(brief.toLowerCase().match(/[a-z0-9]{4,}/g) ?? []));
|
|
28
|
+
const prop = (name, type, required, description) => ({ name, type, required, description });
|
|
29
|
+
const OUT_STR = [{ name: "output", type: "str" }];
|
|
30
|
+
const NODE_CATALOG = [
|
|
31
|
+
{
|
|
32
|
+
type: "nodetool.input.StringInput",
|
|
33
|
+
description: "A string workflow input, addressed by name at run time.",
|
|
34
|
+
keywords: ["input", "string", "text", "parameter", "entry"],
|
|
35
|
+
properties: [
|
|
36
|
+
prop("name", "str", true, "Run parameter this input reads."),
|
|
37
|
+
prop("value", "str", false, "Default when the run passes nothing.")
|
|
38
|
+
],
|
|
39
|
+
outputs: OUT_STR,
|
|
40
|
+
evaluate: (props) => str(props["value"])
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "nodetool.text.Concat",
|
|
44
|
+
description: "Join two strings, a followed by b.",
|
|
45
|
+
keywords: ["concat", "join", "append", "combine", "text"],
|
|
46
|
+
properties: [
|
|
47
|
+
prop("a", "str", true, "First string."),
|
|
48
|
+
prop("b", "str", true, "Second string.")
|
|
49
|
+
],
|
|
50
|
+
outputs: OUT_STR,
|
|
51
|
+
evaluate: (props) => str(props["a"]) + str(props["b"])
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
// The one type here that NodeTool does not really ship. It is the middle
|
|
55
|
+
// node of the world's pre-built workflows, which cases run by id; nothing
|
|
56
|
+
// authors it, so the DSL pack never needs a wrapper for it.
|
|
57
|
+
type: "nodetool.text.Uppercase",
|
|
58
|
+
description: "Uppercase a string.",
|
|
59
|
+
keywords: ["uppercase", "shout", "case", "text"],
|
|
60
|
+
properties: [prop("text", "str", true, "String to uppercase.")],
|
|
61
|
+
outputs: OUT_STR,
|
|
62
|
+
evaluate: (props) => str(props["text"]).toUpperCase()
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "nodetool.text.Template",
|
|
66
|
+
// Every other spec here takes fixed properties. This one takes a template
|
|
67
|
+
// plus whatever slots the template names, so a case that wires it has to
|
|
68
|
+
// read what the node reports rather than assume a signature.
|
|
69
|
+
description: "Render a template, substituting {{slot}} from its inputs.",
|
|
70
|
+
keywords: ["template", "render", "substitute", "format", "text"],
|
|
71
|
+
properties: [prop("string", "str", true, "Template text.")],
|
|
72
|
+
dynamicInputs: true,
|
|
73
|
+
outputs: OUT_STR,
|
|
74
|
+
evaluate: (props) => str(props["string"]).replace(/\{\{\s*([A-Za-z0-9_]+)\s*\}\}/g, (_, slot) => str(props[String(slot)]))
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "nodetool.output.Output",
|
|
78
|
+
description: "A named output of the workflow.",
|
|
79
|
+
keywords: ["output", "result", "string", "return"],
|
|
80
|
+
properties: [
|
|
81
|
+
prop("name", "str", true, "Name this output is reported under."),
|
|
82
|
+
prop("value", "str", true, "Value to report.")
|
|
83
|
+
],
|
|
84
|
+
outputs: OUT_STR,
|
|
85
|
+
evaluate: (props) => str(props["value"])
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
const nodeSpec = (type) => NODE_CATALOG.find((spec) => spec.type === type);
|
|
89
|
+
const cloneGraph = (graph) => JSON.parse(JSON.stringify(graph));
|
|
90
|
+
/** Ranked: `find_model` answers in this order, so `pick` is deterministic. */
|
|
91
|
+
const MODEL_CATALOG = [
|
|
92
|
+
{
|
|
93
|
+
provider: "fal_ai",
|
|
94
|
+
model_id: "fal-ai/flux/schnell",
|
|
95
|
+
type: "image",
|
|
96
|
+
capabilities: ["text_to_image", "image_to_image"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
provider: "fal_ai",
|
|
100
|
+
model_id: "fal-ai/flux/dev",
|
|
101
|
+
type: "image",
|
|
102
|
+
capabilities: ["text_to_image"]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
provider: "openai",
|
|
106
|
+
model_id: "gpt-image-2",
|
|
107
|
+
type: "image",
|
|
108
|
+
capabilities: ["text_to_image", "image_to_image"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
provider: "openai",
|
|
112
|
+
model_id: "gpt-5.4-mini",
|
|
113
|
+
type: "language",
|
|
114
|
+
capabilities: ["generate_message", "vision"]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
provider: "anthropic",
|
|
118
|
+
model_id: "claude-sonnet-5",
|
|
119
|
+
type: "language",
|
|
120
|
+
capabilities: ["generate_message", "vision"]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
provider: "fal_ai",
|
|
124
|
+
model_id: "fal-ai/ltx-video",
|
|
125
|
+
type: "video",
|
|
126
|
+
capabilities: ["text_to_video", "image_to_video", "reference_to_video"]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
provider: "openai",
|
|
130
|
+
model_id: "tts-1",
|
|
131
|
+
type: "tts",
|
|
132
|
+
capabilities: ["text_to_speech"]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
provider: "openai",
|
|
136
|
+
model_id: "whisper-1",
|
|
137
|
+
type: "asr",
|
|
138
|
+
capabilities: ["transcribe_audio"]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
provider: "openai",
|
|
142
|
+
model_id: "text-embedding-3-small",
|
|
143
|
+
type: "embedding",
|
|
144
|
+
capabilities: ["embed_text"]
|
|
145
|
+
}
|
|
146
|
+
];
|
|
147
|
+
const stringInputGraph = (inputName, middleType, middleProps, outputName) => ({
|
|
148
|
+
nodes: [
|
|
149
|
+
{
|
|
150
|
+
id: "in_1",
|
|
151
|
+
type: "nodetool.input.StringInput",
|
|
152
|
+
properties: { name: inputName }
|
|
153
|
+
},
|
|
154
|
+
{ id: "mid_1", type: middleType, properties: middleProps },
|
|
155
|
+
{
|
|
156
|
+
id: "out_1",
|
|
157
|
+
type: "nodetool.output.Output",
|
|
158
|
+
properties: { name: outputName }
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
edges: [
|
|
162
|
+
{
|
|
163
|
+
source: "in_1",
|
|
164
|
+
sourceHandle: "output",
|
|
165
|
+
target: "mid_1",
|
|
166
|
+
targetHandle: middleType === "nodetool.text.Concat" ? "a" : "text"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
source: "mid_1",
|
|
170
|
+
sourceHandle: "output",
|
|
171
|
+
target: "out_1",
|
|
172
|
+
targetHandle: "value"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
});
|
|
176
|
+
class CoreWorld {
|
|
177
|
+
workflows = new Map();
|
|
178
|
+
versions = new Map();
|
|
179
|
+
assets = new Map();
|
|
180
|
+
jobs = new Map();
|
|
181
|
+
sessions = new Map();
|
|
182
|
+
seq = 0;
|
|
183
|
+
constructor() {
|
|
184
|
+
this.workflows.set("wf_greet", {
|
|
185
|
+
id: "wf_greet",
|
|
186
|
+
name: "Greeting Builder",
|
|
187
|
+
description: "Greets whoever the run names.",
|
|
188
|
+
tags: ["demo"],
|
|
189
|
+
graph: stringInputGraph("name", "nodetool.text.Concat", { b: ", welcome aboard!" }, "greeting")
|
|
190
|
+
});
|
|
191
|
+
this.workflows.set("wf_shout", {
|
|
192
|
+
id: "wf_shout",
|
|
193
|
+
name: "Shout Line",
|
|
194
|
+
description: "Uppercases one line.",
|
|
195
|
+
tags: ["demo"],
|
|
196
|
+
graph: stringInputGraph("line", "nodetool.text.Uppercase", {}, "shout")
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
id(prefix) {
|
|
200
|
+
this.seq += 1;
|
|
201
|
+
return `${prefix}_${this.seq}`;
|
|
202
|
+
}
|
|
203
|
+
workflow(id) {
|
|
204
|
+
const found = this.workflows.get(str(id));
|
|
205
|
+
if (!found) {
|
|
206
|
+
throw new Error(`No workflow "${str(id)}". list_workflows reports what exists.`);
|
|
207
|
+
}
|
|
208
|
+
return found;
|
|
209
|
+
}
|
|
210
|
+
model(provider, model, capability) {
|
|
211
|
+
const entry = MODEL_CATALOG.find((m) => m.provider === str(provider) && m.model_id === str(model));
|
|
212
|
+
if (!entry) {
|
|
213
|
+
throw new Error(`No model "${str(provider)}/${str(model)}" in the catalog — ` +
|
|
214
|
+
`resolve one with find_model(${capability}).`);
|
|
215
|
+
}
|
|
216
|
+
if (!entry.capabilities.includes(capability)) {
|
|
217
|
+
throw new Error(`Model "${entry.provider}/${entry.model_id}" does not offer ` +
|
|
218
|
+
`"${capability}" (it offers ${entry.capabilities.join(", ")}).`);
|
|
219
|
+
}
|
|
220
|
+
return entry;
|
|
221
|
+
}
|
|
222
|
+
asset(ref) {
|
|
223
|
+
const key = str(ref);
|
|
224
|
+
const direct = this.assets.get(key) ?? this.assets.get(key.replace(/^asset:\/\//, ""));
|
|
225
|
+
if (direct)
|
|
226
|
+
return direct;
|
|
227
|
+
for (const asset of this.assets.values()) {
|
|
228
|
+
if (asset.name === key || asset.uri === key)
|
|
229
|
+
return asset;
|
|
230
|
+
}
|
|
231
|
+
throw new Error(`No asset "${key}" — list_assets or asset_search finds one.`);
|
|
232
|
+
}
|
|
233
|
+
saveAsset(name, content, contentType, prompt) {
|
|
234
|
+
const id = this.id("asset");
|
|
235
|
+
const asset = {
|
|
236
|
+
id,
|
|
237
|
+
name,
|
|
238
|
+
content,
|
|
239
|
+
content_type: contentType,
|
|
240
|
+
uri: `asset://${id}`
|
|
241
|
+
};
|
|
242
|
+
if (prompt !== undefined)
|
|
243
|
+
asset.prompt = prompt;
|
|
244
|
+
this.assets.set(id, asset);
|
|
245
|
+
return asset;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
function validateGraph(graph) {
|
|
249
|
+
const errors = [];
|
|
250
|
+
const warnings = [];
|
|
251
|
+
const byId = new Map(graph.nodes.map((n) => [n.id, n]));
|
|
252
|
+
const fed = new Map();
|
|
253
|
+
for (const edge of graph.edges) {
|
|
254
|
+
const source = byId.get(edge.source);
|
|
255
|
+
const target = byId.get(edge.target);
|
|
256
|
+
if (!source)
|
|
257
|
+
errors.push(`Edge from unknown node "${edge.source}"`);
|
|
258
|
+
if (!target) {
|
|
259
|
+
errors.push(`Edge to unknown node "${edge.target}"`);
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
const spec = nodeSpec(target.type);
|
|
263
|
+
const handle = str(edge.targetHandle);
|
|
264
|
+
if (spec &&
|
|
265
|
+
spec.dynamicInputs !== true &&
|
|
266
|
+
!spec.properties.some((p) => p.name === handle)) {
|
|
267
|
+
errors.push(`Node "${target.id}" (${target.type}) has no input "${handle}"`);
|
|
268
|
+
}
|
|
269
|
+
const set = fed.get(target.id) ?? new Set();
|
|
270
|
+
set.add(handle);
|
|
271
|
+
fed.set(target.id, set);
|
|
272
|
+
}
|
|
273
|
+
for (const node of graph.nodes) {
|
|
274
|
+
const spec = nodeSpec(node.type);
|
|
275
|
+
if (!spec) {
|
|
276
|
+
errors.push(`Unknown node type "${node.type}" on node "${node.id}"`);
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
for (const p of spec.properties) {
|
|
280
|
+
if (!p.required)
|
|
281
|
+
continue;
|
|
282
|
+
const wired = fed.get(node.id)?.has(p.name) === true;
|
|
283
|
+
const set = str(node.properties[p.name]).length > 0;
|
|
284
|
+
if (!wired && !set) {
|
|
285
|
+
errors.push(`Node "${node.id}" (${node.type}) is missing "${p.name}"`);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (!graph.nodes.some((n) => n.type === "nodetool.output.Output")) {
|
|
290
|
+
warnings.push("Graph has no output node, so a run reports nothing.");
|
|
291
|
+
}
|
|
292
|
+
const issues = [
|
|
293
|
+
...errors.map((message) => ({ severity: "error", message })),
|
|
294
|
+
...warnings.map((message) => ({ severity: "warning", message }))
|
|
295
|
+
];
|
|
296
|
+
return {
|
|
297
|
+
ok: errors.length === 0,
|
|
298
|
+
counts: { errors: errors.length, warnings: warnings.length, info: 0 },
|
|
299
|
+
issues
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
/** Evaluate the graph. `skipNodeId` yields "" for that node (escalation skip). */
|
|
303
|
+
function runGraph(graph, params, skipNodeId) {
|
|
304
|
+
const values = new Map();
|
|
305
|
+
const remaining = [...graph.nodes];
|
|
306
|
+
const outputs = {};
|
|
307
|
+
while (remaining.length > 0) {
|
|
308
|
+
const ready = remaining.filter((node) => graph.edges
|
|
309
|
+
.filter((e) => e.target === node.id)
|
|
310
|
+
.every((e) => values.has(e.source)));
|
|
311
|
+
if (ready.length === 0) {
|
|
312
|
+
throw new Error("Graph has a cycle or an edge from a missing node.");
|
|
313
|
+
}
|
|
314
|
+
for (const node of ready) {
|
|
315
|
+
const spec = nodeSpec(node.type);
|
|
316
|
+
if (!spec)
|
|
317
|
+
throw new Error(`Unknown node type "${node.type}"`);
|
|
318
|
+
const props = { ...node.properties };
|
|
319
|
+
for (const edge of graph.edges.filter((e) => e.target === node.id)) {
|
|
320
|
+
props[str(edge.targetHandle)] = values.get(edge.source) ?? "";
|
|
321
|
+
}
|
|
322
|
+
if (node.type === "nodetool.input.StringInput") {
|
|
323
|
+
const key = str(props["name"]);
|
|
324
|
+
if (params[key] !== undefined)
|
|
325
|
+
props["value"] = params[key];
|
|
326
|
+
}
|
|
327
|
+
const value = node.id === skipNodeId ? "" : spec.evaluate(props);
|
|
328
|
+
values.set(node.id, value);
|
|
329
|
+
if (node.type === "nodetool.output.Output") {
|
|
330
|
+
outputs[str(props["name"])] = value;
|
|
331
|
+
}
|
|
332
|
+
remaining.splice(remaining.indexOf(node), 1);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return outputs;
|
|
336
|
+
}
|
|
337
|
+
/** The node an interactive run parks on: the first non-input node. */
|
|
338
|
+
function escalationNode(graph) {
|
|
339
|
+
const node = graph.nodes.find((n) => n.type !== "nodetool.input.StringInput") ??
|
|
340
|
+
graph.nodes[0];
|
|
341
|
+
if (!node)
|
|
342
|
+
throw new Error("Graph has no nodes to run.");
|
|
343
|
+
return node;
|
|
344
|
+
}
|
|
345
|
+
function toGraph(value) {
|
|
346
|
+
const raw = record(value);
|
|
347
|
+
const nodes = Array.isArray(raw["nodes"]) ? raw["nodes"] : [];
|
|
348
|
+
const edges = Array.isArray(raw["edges"]) ? raw["edges"] : [];
|
|
349
|
+
return {
|
|
350
|
+
nodes: nodes.map((n) => {
|
|
351
|
+
const node = record(n);
|
|
352
|
+
return {
|
|
353
|
+
id: str(node["id"]),
|
|
354
|
+
type: str(node["type"]),
|
|
355
|
+
properties: record(node["properties"])
|
|
356
|
+
};
|
|
357
|
+
}),
|
|
358
|
+
edges: edges.map((e) => {
|
|
359
|
+
const edge = record(e);
|
|
360
|
+
return {
|
|
361
|
+
source: str(edge["source"]),
|
|
362
|
+
sourceHandle: str(edge["sourceHandle"] ?? "output"),
|
|
363
|
+
target: str(edge["target"]),
|
|
364
|
+
targetHandle: str(edge["targetHandle"])
|
|
365
|
+
};
|
|
366
|
+
})
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
const summarize = (workflow) => ({
|
|
370
|
+
id: workflow.id,
|
|
371
|
+
name: workflow.name,
|
|
372
|
+
description: workflow.description,
|
|
373
|
+
tags: workflow.tags
|
|
374
|
+
});
|
|
375
|
+
const EXAMPLE_WORKFLOWS = [
|
|
376
|
+
{
|
|
377
|
+
id: "example_shout",
|
|
378
|
+
name: "shout-line",
|
|
379
|
+
description: "Uppercase one line — the smallest useful graph.",
|
|
380
|
+
tags: ["example"],
|
|
381
|
+
graph: stringInputGraph("line", "nodetool.text.Uppercase", {}, "shout")
|
|
382
|
+
}
|
|
383
|
+
];
|
|
384
|
+
/**
|
|
385
|
+
* The core-namespace toolbelt. Every call builds a fresh world, so cases never
|
|
386
|
+
* see each other's workflows, assets, or jobs.
|
|
387
|
+
*/
|
|
388
|
+
/** Two ledger rows: one settled render with a price, one still at the provider. */
|
|
389
|
+
const FAKE_GENERATIONS = [
|
|
390
|
+
{
|
|
391
|
+
generation_id: "gen-1",
|
|
392
|
+
status: "completed",
|
|
393
|
+
provider: "fal",
|
|
394
|
+
model: "fal-ai/flux/schnell",
|
|
395
|
+
capability: "text_to_image",
|
|
396
|
+
cost: 0.04,
|
|
397
|
+
currency: "USD",
|
|
398
|
+
price_source: "model-catalog",
|
|
399
|
+
asset_ids: ["asset-gen-1"],
|
|
400
|
+
asset_uris: ["asset://asset-gen-1"],
|
|
401
|
+
parameters: { prompt: "a fox in snow" }
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
generation_id: "gen-2",
|
|
405
|
+
status: "running",
|
|
406
|
+
provider: "fal",
|
|
407
|
+
model: "fal-ai/veo",
|
|
408
|
+
capability: "text_to_video",
|
|
409
|
+
cost: null,
|
|
410
|
+
currency: null,
|
|
411
|
+
price_source: null,
|
|
412
|
+
asset_ids: [],
|
|
413
|
+
asset_uris: [],
|
|
414
|
+
parameters: { prompt: "a fox running" }
|
|
415
|
+
}
|
|
416
|
+
];
|
|
417
|
+
export function createCoreApiTools(recorder) {
|
|
418
|
+
const world = new CoreWorld();
|
|
419
|
+
const pendingBg = new Map();
|
|
420
|
+
const tool = (name, description, properties, impl) => new RecordingTool(name, description, { type: "object", properties }, recorder, impl);
|
|
421
|
+
const s = { type: "string" };
|
|
422
|
+
const o = { type: "object" };
|
|
423
|
+
const runSaved = (params) => {
|
|
424
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
425
|
+
return {
|
|
426
|
+
workflow,
|
|
427
|
+
outputs: runGraph(workflow.graph, record(params["params"]))
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
const generate = (params, capability, contentType, prefix) => {
|
|
431
|
+
const model = world.model(params["provider"], params["model"], capability);
|
|
432
|
+
const prompt = str(params["prompt"]);
|
|
433
|
+
const asset = world.saveAsset(`${prefix}-${str(world.assets.size + 1)}`, prompt, contentType, prompt);
|
|
434
|
+
return {
|
|
435
|
+
asset_uri: asset.uri,
|
|
436
|
+
asset_id: asset.id,
|
|
437
|
+
provider: model.provider,
|
|
438
|
+
model: model.model_id,
|
|
439
|
+
prompt
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
const adherence = (image, brief) => {
|
|
443
|
+
const asset = world.asset(image);
|
|
444
|
+
const prompt = (asset.prompt ?? asset.content).toLowerCase();
|
|
445
|
+
const terms = briefTerms(str(brief));
|
|
446
|
+
const missing = terms.filter((term) => !prompt.includes(term));
|
|
447
|
+
const score = terms.length === 0
|
|
448
|
+
? 1
|
|
449
|
+
: Math.round(((terms.length - missing.length) / terms.length) * 100) /
|
|
450
|
+
100;
|
|
451
|
+
return { asset, score, missing };
|
|
452
|
+
};
|
|
453
|
+
return [
|
|
454
|
+
tool("list_workflows", "List saved workflows.", { limit: { type: "number" }, workflow_type: s }, (params) => {
|
|
455
|
+
if (str(params["workflow_type"]) === "example") {
|
|
456
|
+
return { workflows: EXAMPLE_WORKFLOWS.map(summarize) };
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
workflows: [...world.workflows.values()].map(summarize)
|
|
460
|
+
};
|
|
461
|
+
}),
|
|
462
|
+
tool("get_workflow", "Get one workflow with its graph.", { workflow_id: s }, (params) => {
|
|
463
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
464
|
+
return { ...summarize(workflow), graph: workflow.graph };
|
|
465
|
+
}),
|
|
466
|
+
tool("create_workflow", "Save a graph as a workflow.", { name: s, graph: o, tags: { type: "array" }, description: s }, (params) => {
|
|
467
|
+
const graph = toGraph(params["graph"]);
|
|
468
|
+
const check = validateGraph(graph);
|
|
469
|
+
if (!check.ok) {
|
|
470
|
+
throw new Error(`Refusing to save an invalid graph: ${check.issues
|
|
471
|
+
.map((i) => i.message)
|
|
472
|
+
.join("; ")}`);
|
|
473
|
+
}
|
|
474
|
+
const id = world.id("wf");
|
|
475
|
+
const workflow = {
|
|
476
|
+
id,
|
|
477
|
+
name: str(params["name"]) || id,
|
|
478
|
+
description: str(params["description"]),
|
|
479
|
+
tags: Array.isArray(params["tags"])
|
|
480
|
+
? params["tags"]
|
|
481
|
+
: [],
|
|
482
|
+
graph
|
|
483
|
+
};
|
|
484
|
+
world.workflows.set(id, workflow);
|
|
485
|
+
return summarize(workflow);
|
|
486
|
+
}),
|
|
487
|
+
tool("list_workflow_versions", "List a workflow's snapshots, newest first.", { workflow_id: s, limit: { type: "number" } }, (params) => {
|
|
488
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
489
|
+
const versions = [...(world.versions.get(workflow.id) ?? [])].reverse();
|
|
490
|
+
const limit = Number(params["limit"]) || versions.length;
|
|
491
|
+
return {
|
|
492
|
+
workflow_id: workflow.id,
|
|
493
|
+
versions: versions.slice(0, limit).map((v) => ({
|
|
494
|
+
version: v.version,
|
|
495
|
+
name: v.name,
|
|
496
|
+
save_type: v.save_type
|
|
497
|
+
}))
|
|
498
|
+
};
|
|
499
|
+
}),
|
|
500
|
+
tool("get_workflow_version", "Read one snapshot without restoring it.", { workflow_id: s, version: { type: "number" } }, (params) => {
|
|
501
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
502
|
+
const version = Number(params["version"]);
|
|
503
|
+
const found = (world.versions.get(workflow.id) ?? []).find((v) => v.version === version);
|
|
504
|
+
if (!found) {
|
|
505
|
+
throw new Error(`Workflow ${workflow.id} has no version ${version}.`);
|
|
506
|
+
}
|
|
507
|
+
return {
|
|
508
|
+
workflow_id: workflow.id,
|
|
509
|
+
version: found.version,
|
|
510
|
+
name: found.name,
|
|
511
|
+
save_type: found.save_type,
|
|
512
|
+
graph: cloneGraph(found.graph)
|
|
513
|
+
};
|
|
514
|
+
}),
|
|
515
|
+
tool("create_workflow_version", "Snapshot a workflow's current graph.", { workflow_id: s, name: s, description: s }, (params) => {
|
|
516
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
517
|
+
const list = world.versions.get(workflow.id) ?? [];
|
|
518
|
+
const entry = {
|
|
519
|
+
version: list.length + 1,
|
|
520
|
+
name: str(params["name"]) || null,
|
|
521
|
+
save_type: "manual",
|
|
522
|
+
graph: cloneGraph(workflow.graph)
|
|
523
|
+
};
|
|
524
|
+
list.push(entry);
|
|
525
|
+
world.versions.set(workflow.id, list);
|
|
526
|
+
return {
|
|
527
|
+
ok: true,
|
|
528
|
+
workflow_id: workflow.id,
|
|
529
|
+
version: entry.version,
|
|
530
|
+
name: entry.name,
|
|
531
|
+
save_type: entry.save_type
|
|
532
|
+
};
|
|
533
|
+
}),
|
|
534
|
+
tool("restore_workflow_version", "Restore a snapshot, snapshotting the current graph first.", { workflow_id: s, version: { type: "number" } }, (params) => {
|
|
535
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
536
|
+
const version = Number(params["version"]);
|
|
537
|
+
const found = (world.versions.get(workflow.id) ?? []).find((v) => v.version === version);
|
|
538
|
+
if (!found) {
|
|
539
|
+
throw new Error(`Workflow ${workflow.id} has no version ${version}.`);
|
|
540
|
+
}
|
|
541
|
+
const list = world.versions.get(workflow.id) ?? [];
|
|
542
|
+
const undo = {
|
|
543
|
+
version: list.length + 1,
|
|
544
|
+
name: `Before restore to v${version}`,
|
|
545
|
+
save_type: "restore",
|
|
546
|
+
graph: cloneGraph(workflow.graph)
|
|
547
|
+
};
|
|
548
|
+
list.push(undo);
|
|
549
|
+
world.versions.set(workflow.id, list);
|
|
550
|
+
workflow.graph = cloneGraph(found.graph);
|
|
551
|
+
return {
|
|
552
|
+
ok: true,
|
|
553
|
+
workflow_id: workflow.id,
|
|
554
|
+
restored_version: version,
|
|
555
|
+
undo_version: undo.version
|
|
556
|
+
};
|
|
557
|
+
}),
|
|
558
|
+
tool("delete_workflow_version", "Delete one snapshot. The live graph is not changed.", { workflow_id: s, version: { type: "number" } }, (params) => {
|
|
559
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
560
|
+
const version = Number(params["version"]);
|
|
561
|
+
const list = world.versions.get(workflow.id) ?? [];
|
|
562
|
+
const idx = list.findIndex((v) => v.version === version);
|
|
563
|
+
if (idx < 0) {
|
|
564
|
+
throw new Error(`Workflow ${workflow.id} has no version ${version}.`);
|
|
565
|
+
}
|
|
566
|
+
list.splice(idx, 1);
|
|
567
|
+
world.versions.set(workflow.id, list);
|
|
568
|
+
return { ok: true, workflow_id: workflow.id, deleted_version: version };
|
|
569
|
+
}),
|
|
570
|
+
tool("run_workflow", "Run a saved workflow. With interactive:true a failing node escalates.", { workflow_id: s, params: o, interactive: { type: "boolean" } }, (params) => {
|
|
571
|
+
const workflow = world.workflow(params["workflow_id"]);
|
|
572
|
+
if (params["interactive"] === true) {
|
|
573
|
+
const node = escalationNode(workflow.graph);
|
|
574
|
+
const session = {
|
|
575
|
+
id: world.id("session"),
|
|
576
|
+
workflow_id: workflow.id,
|
|
577
|
+
params: record(params["params"]),
|
|
578
|
+
escalation_id: world.id("esc"),
|
|
579
|
+
node_id: node.id
|
|
580
|
+
};
|
|
581
|
+
world.sessions.set(session.id, session);
|
|
582
|
+
return {
|
|
583
|
+
status: "escalated",
|
|
584
|
+
session_id: session.id,
|
|
585
|
+
escalation: {
|
|
586
|
+
id: session.escalation_id,
|
|
587
|
+
node_id: node.id,
|
|
588
|
+
node_type: node.type,
|
|
589
|
+
error: "Transient failure while processing the node.",
|
|
590
|
+
allowedActions: ["retry", "substitute", "skip", "fail"]
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
return {
|
|
595
|
+
status: "completed",
|
|
596
|
+
workflow_id: workflow.id,
|
|
597
|
+
outputs: runGraph(workflow.graph, record(params["params"]))
|
|
598
|
+
};
|
|
599
|
+
}),
|
|
600
|
+
tool("start_background_job", "Start a workflow as a background job and return its id.", { workflow_id: s, params: o }, (params) => {
|
|
601
|
+
const { workflow, outputs } = runSaved(params);
|
|
602
|
+
const id = world.id("job");
|
|
603
|
+
world.jobs.set(id, {
|
|
604
|
+
id,
|
|
605
|
+
workflow_id: workflow.id,
|
|
606
|
+
params: record(params["params"]),
|
|
607
|
+
polls: 0,
|
|
608
|
+
outputs
|
|
609
|
+
});
|
|
610
|
+
return { id, job_id: id, status: "running", workflow_id: workflow.id };
|
|
611
|
+
}),
|
|
612
|
+
tool("debug_workflow", "Run a workflow and report a per-node verdict.", { workflow_id: s, params: o }, (params) => {
|
|
613
|
+
const { workflow, outputs } = runSaved(params);
|
|
614
|
+
return {
|
|
615
|
+
verdict: { ok: true, issues: [] },
|
|
616
|
+
outputs,
|
|
617
|
+
nodes: workflow.graph.nodes.map((n) => ({
|
|
618
|
+
id: n.id,
|
|
619
|
+
type: n.type,
|
|
620
|
+
status: "completed"
|
|
621
|
+
}))
|
|
622
|
+
};
|
|
623
|
+
}),
|
|
624
|
+
tool("validate_workflow", "Statically check a graph or a saved workflow.", { graph: o, workflow_id: s }, (params) => {
|
|
625
|
+
const graph = params["graph"] === undefined
|
|
626
|
+
? world.workflow(params["workflow_id"]).graph
|
|
627
|
+
: toGraph(params["graph"]);
|
|
628
|
+
return validateGraph(graph);
|
|
629
|
+
}),
|
|
630
|
+
tool("resolve_workflow_escalation", "Answer an escalation from an interactive run.", { session_id: s, escalation_id: s, action: s, outputs: o, reason: s }, (params) => {
|
|
631
|
+
const session = world.sessions.get(str(params["session_id"]));
|
|
632
|
+
if (!session)
|
|
633
|
+
throw new Error(`No debug session "${str(params["session_id"])}"`);
|
|
634
|
+
if (str(params["escalation_id"]) !== session.escalation_id) {
|
|
635
|
+
throw new Error(`Escalation "${str(params["escalation_id"])}" is not open on this session.`);
|
|
636
|
+
}
|
|
637
|
+
const action = str(params["action"]);
|
|
638
|
+
const workflow = world.workflow(session.workflow_id);
|
|
639
|
+
const intervention = { escalation_id: session.escalation_id, action };
|
|
640
|
+
world.sessions.delete(session.id);
|
|
641
|
+
if (action === "fail") {
|
|
642
|
+
return {
|
|
643
|
+
status: "failed",
|
|
644
|
+
error: str(params["reason"]) || "Run failed by supervisor verdict.",
|
|
645
|
+
interventions: [intervention]
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
if (action === "substitute") {
|
|
649
|
+
return {
|
|
650
|
+
status: "completed",
|
|
651
|
+
outputs: record(params["outputs"]),
|
|
652
|
+
interventions: [intervention]
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
const outputs = runGraph(workflow.graph, session.params, action === "skip" ? session.node_id : undefined);
|
|
656
|
+
return { status: "completed", outputs, interventions: [intervention] };
|
|
657
|
+
}),
|
|
658
|
+
tool("get_example_workflow", "Load one shipped example workflow with its graph.", { package_name: s, example_name: s }, (params) => {
|
|
659
|
+
const name = str(params["example_name"]);
|
|
660
|
+
const example = EXAMPLE_WORKFLOWS.find((e) => e.name === name);
|
|
661
|
+
if (!example) {
|
|
662
|
+
throw new Error(`No example "${name}" in package "${str(params["package_name"])}".`);
|
|
663
|
+
}
|
|
664
|
+
return { ...summarize(example), graph: example.graph };
|
|
665
|
+
}),
|
|
666
|
+
tool("search_nodes", "Search the node catalog by keyword.", { query: { type: "array" }, n_results: { type: "number" } }, (params) => {
|
|
667
|
+
const queries = (Array.isArray(params["query"]) ? params["query"] : [params["query"]]).map((q) => str(q).toLowerCase());
|
|
668
|
+
const hits = NODE_CATALOG.filter((spec) => queries.some((query) => query
|
|
669
|
+
.split(/\s+/)
|
|
670
|
+
.filter((word) => word.length > 2)
|
|
671
|
+
.some((word) => spec.type.toLowerCase().includes(word) ||
|
|
672
|
+
spec.keywords.some((k) => k.includes(word) || word.includes(k)))));
|
|
673
|
+
const results = (hits.length > 0 ? hits : NODE_CATALOG).slice(0, Number(params["n_results"] ?? 10));
|
|
674
|
+
return {
|
|
675
|
+
results: results.map((spec) => ({
|
|
676
|
+
node_type: spec.type,
|
|
677
|
+
description: spec.description
|
|
678
|
+
}))
|
|
679
|
+
};
|
|
680
|
+
}),
|
|
681
|
+
tool("get_node_info", "Full metadata for one node type.", { node_type: s }, (params) => {
|
|
682
|
+
const spec = nodeSpec(str(params["node_type"]));
|
|
683
|
+
if (!spec) {
|
|
684
|
+
throw new Error(`Unknown node type "${str(params["node_type"])}" — search_nodes lists them.`);
|
|
685
|
+
}
|
|
686
|
+
return {
|
|
687
|
+
node_type: spec.type,
|
|
688
|
+
description: spec.description,
|
|
689
|
+
properties: spec.properties,
|
|
690
|
+
dynamic_inputs: spec.dynamicInputs === true,
|
|
691
|
+
outputs: spec.outputs
|
|
692
|
+
};
|
|
693
|
+
}),
|
|
694
|
+
tool("list_nodes", "Browse the node catalog, optionally by namespace.", { namespace: s, limit: { type: "number" } }, (params) => {
|
|
695
|
+
const namespace = str(params["namespace"]);
|
|
696
|
+
const nodes = NODE_CATALOG.filter((spec) => namespace === "" || spec.type.startsWith(namespace));
|
|
697
|
+
return {
|
|
698
|
+
nodes: nodes.map((spec) => ({
|
|
699
|
+
node_type: spec.type,
|
|
700
|
+
description: spec.description
|
|
701
|
+
}))
|
|
702
|
+
};
|
|
703
|
+
}),
|
|
704
|
+
tool("run_node", "Run ONE node with a property bag — the single-node harness.", { node_type: s, inputs: o }, (params) => {
|
|
705
|
+
const spec = nodeSpec(str(params["node_type"]));
|
|
706
|
+
if (!spec)
|
|
707
|
+
throw new Error(`Unknown node type "${str(params["node_type"])}"`);
|
|
708
|
+
const inputs = record(params["inputs"]);
|
|
709
|
+
const missing = spec.properties
|
|
710
|
+
.filter((p) => p.required && str(inputs[p.name]).length === 0)
|
|
711
|
+
.map((p) => p.name);
|
|
712
|
+
if (missing.length > 0) {
|
|
713
|
+
throw new Error(`${spec.type} needs ${missing.join(", ")} — get_node_info lists its properties.`);
|
|
714
|
+
}
|
|
715
|
+
return { node_type: spec.type, output: spec.evaluate(inputs) };
|
|
716
|
+
}),
|
|
717
|
+
tool("find_model", "Rank the configured models offering a capability.", { capability: s, limit: { type: "number" }, provider_hint: s }, (params) => {
|
|
718
|
+
const capability = str(params["capability"]);
|
|
719
|
+
const hint = str(params["provider_hint"]);
|
|
720
|
+
const matches = MODEL_CATALOG.filter((m) => m.capabilities.includes(capability) &&
|
|
721
|
+
(hint === "" || m.provider === hint));
|
|
722
|
+
const limit = Number(params["limit"] ?? 5);
|
|
723
|
+
return {
|
|
724
|
+
capability,
|
|
725
|
+
results: matches.slice(0, limit).map((m) => ({
|
|
726
|
+
provider: m.provider,
|
|
727
|
+
model_id: m.model_id,
|
|
728
|
+
type: m.type,
|
|
729
|
+
capabilities: m.capabilities
|
|
730
|
+
})),
|
|
731
|
+
note: matches.length === 0
|
|
732
|
+
? `No configured model offers "${capability}".`
|
|
733
|
+
: undefined
|
|
734
|
+
};
|
|
735
|
+
}),
|
|
736
|
+
tool("list_models", "Browse the model catalog.", { provider: s, model_type: s, limit: { type: "number" } }, (params) => {
|
|
737
|
+
const provider = str(params["provider"]);
|
|
738
|
+
const type = str(params["model_type"]);
|
|
739
|
+
return {
|
|
740
|
+
results: MODEL_CATALOG.filter((m) => (provider === "" || m.provider === provider) &&
|
|
741
|
+
(type === "" || m.type === type)).map((m) => ({
|
|
742
|
+
provider: m.provider,
|
|
743
|
+
model_id: m.model_id,
|
|
744
|
+
id: m.model_id,
|
|
745
|
+
type: m.type
|
|
746
|
+
}))
|
|
747
|
+
};
|
|
748
|
+
}),
|
|
749
|
+
tool("list_provider_models", "One provider's catalog.", { provider: s }, (params) => {
|
|
750
|
+
const provider = str(params["provider"]);
|
|
751
|
+
return {
|
|
752
|
+
provider,
|
|
753
|
+
results: MODEL_CATALOG.filter((m) => m.provider === provider).map((m) => ({
|
|
754
|
+
provider: m.provider,
|
|
755
|
+
model_id: m.model_id,
|
|
756
|
+
type: m.type
|
|
757
|
+
}))
|
|
758
|
+
};
|
|
759
|
+
}),
|
|
760
|
+
tool("generate_text", "Run one language-model roundtrip.", {
|
|
761
|
+
provider: s,
|
|
762
|
+
model: s,
|
|
763
|
+
prompt: s,
|
|
764
|
+
system: s,
|
|
765
|
+
images: { type: "array", items: s },
|
|
766
|
+
max_tokens: { type: "number" },
|
|
767
|
+
temperature: { type: "number" }
|
|
768
|
+
}, (params) => {
|
|
769
|
+
const model = world.model(params["provider"], params["model"], "generate_message");
|
|
770
|
+
return {
|
|
771
|
+
type: "text",
|
|
772
|
+
provider: model.provider,
|
|
773
|
+
model: model.model_id,
|
|
774
|
+
text: `Draft: ${str(params["prompt"])}`
|
|
775
|
+
};
|
|
776
|
+
}),
|
|
777
|
+
tool("generate_image", "Generate an image and save it as an asset.", {
|
|
778
|
+
provider: s,
|
|
779
|
+
model: s,
|
|
780
|
+
prompt: s,
|
|
781
|
+
width: { type: "number" },
|
|
782
|
+
height: { type: "number" }
|
|
783
|
+
}, (params) => generate(params, "text_to_image", "image/png", "image")),
|
|
784
|
+
tool("read_media_bytes", "Read the bytes behind a media reference (asset:// URI or asset id).", { uri: s }, (params) => {
|
|
785
|
+
const asset = world.asset(params["uri"]);
|
|
786
|
+
const content_base64 = Buffer.from(asset.content, "utf8").toString("base64");
|
|
787
|
+
return {
|
|
788
|
+
uri: asset.uri,
|
|
789
|
+
size: content_base64.length,
|
|
790
|
+
mime_type: asset.content_type,
|
|
791
|
+
content_base64
|
|
792
|
+
};
|
|
793
|
+
}),
|
|
794
|
+
tool("edit_image", "Edit an existing image asset.", { provider: s, model: s, prompt: s, input_file: s }, (params) => {
|
|
795
|
+
const model = world.model(params["provider"], params["model"], "image_to_image");
|
|
796
|
+
const source = world.asset(params["input_file"]);
|
|
797
|
+
const prompt = `${source.prompt ?? source.content} | ${str(params["prompt"])}`;
|
|
798
|
+
const asset = world.saveAsset(`edit-${source.name}`, prompt, "image/png", prompt);
|
|
799
|
+
return {
|
|
800
|
+
asset_uri: asset.uri,
|
|
801
|
+
asset_id: asset.id,
|
|
802
|
+
provider: model.provider,
|
|
803
|
+
model: model.model_id
|
|
804
|
+
};
|
|
805
|
+
}),
|
|
806
|
+
tool("generate_video", "Generate a video and save it as an asset.", { provider: s, model: s, prompt: s }, (params) => generate(params, "text_to_video", "video/mp4", "video")),
|
|
807
|
+
tool("animate_image", "Animate an image asset into a video.", { provider: s, model: s, input_file: s }, (params) => {
|
|
808
|
+
const model = world.model(params["provider"], params["model"], "image_to_video");
|
|
809
|
+
const source = world.asset(params["input_file"]);
|
|
810
|
+
const asset = world.saveAsset(`clip-${source.name}`, source.prompt ?? source.content, "video/mp4", source.prompt ?? source.content);
|
|
811
|
+
return {
|
|
812
|
+
asset_uri: asset.uri,
|
|
813
|
+
provider: model.provider,
|
|
814
|
+
model: model.model_id
|
|
815
|
+
};
|
|
816
|
+
}),
|
|
817
|
+
tool("generate_video_from_references", "Generate a video conditioned on a set of image/video references.", { provider: s, model: s, reference_files: { type: "array" }, prompt: s }, (params) => {
|
|
818
|
+
const model = world.model(params["provider"], params["model"], "reference_to_video");
|
|
819
|
+
const files = Array.isArray(params["reference_files"])
|
|
820
|
+
? params["reference_files"]
|
|
821
|
+
: [];
|
|
822
|
+
if (files.length === 0) {
|
|
823
|
+
throw new Error("reference_files must name at least one image or video reference.");
|
|
824
|
+
}
|
|
825
|
+
// Every reference contributes to the clip, so the saved content carries
|
|
826
|
+
// all of them plus the prompt — that is what the adherence checks read.
|
|
827
|
+
const sources = files.map((file) => world.asset(file));
|
|
828
|
+
const prompt = str(params["prompt"]);
|
|
829
|
+
const content = [
|
|
830
|
+
...sources.map((a) => a.prompt ?? a.content),
|
|
831
|
+
prompt
|
|
832
|
+
]
|
|
833
|
+
.filter((part) => part.length > 0)
|
|
834
|
+
.join(" ");
|
|
835
|
+
const asset = world.saveAsset(`reference-clip-${str(world.assets.size + 1)}`, content, "video/mp4", content);
|
|
836
|
+
return {
|
|
837
|
+
asset_uri: asset.uri,
|
|
838
|
+
asset_id: asset.id,
|
|
839
|
+
provider: model.provider,
|
|
840
|
+
model: model.model_id
|
|
841
|
+
};
|
|
842
|
+
}),
|
|
843
|
+
tool("generate_speech", "Synthesize speech and save it as an asset.", { provider: s, model: s, text: s, voice: s }, (params) => {
|
|
844
|
+
world.model(params["provider"], params["model"], "text_to_speech");
|
|
845
|
+
const text = str(params["text"]);
|
|
846
|
+
const asset = world.saveAsset(`speech-${str(world.assets.size + 1)}`, text, "audio/mpeg");
|
|
847
|
+
return {
|
|
848
|
+
asset_uri: asset.uri,
|
|
849
|
+
duration_seconds: Math.round((text.length / 15) * 10) / 10
|
|
850
|
+
};
|
|
851
|
+
}),
|
|
852
|
+
tool("generate_music", "Generate music from a prompt and save it as an asset.", { provider: s, model: s, prompt: s, duration_seconds: { type: "number" } }, (params) => {
|
|
853
|
+
world.model(params["provider"], params["model"], "text_to_music");
|
|
854
|
+
const asset = world.saveAsset(`music-${str(world.assets.size + 1)}`, str(params["prompt"]), "audio/mpeg");
|
|
855
|
+
return {
|
|
856
|
+
asset_uri: asset.uri,
|
|
857
|
+
duration_seconds: Number(params["duration_seconds"]) || 30
|
|
858
|
+
};
|
|
859
|
+
}),
|
|
860
|
+
tool("transcribe_audio", "Transcribe an audio asset.", { provider: s, model: s, input_file: s }, (params) => {
|
|
861
|
+
world.model(params["provider"], params["model"], "transcribe_audio");
|
|
862
|
+
const asset = world.asset(params["input_file"]);
|
|
863
|
+
return { text: asset.content };
|
|
864
|
+
}),
|
|
865
|
+
tool("embed_text", "Embed text as a vector.", { provider: s, model: s, text: s }, (params) => {
|
|
866
|
+
world.model(params["provider"], params["model"], "embed_text");
|
|
867
|
+
const text = str(params["text"]);
|
|
868
|
+
const embedding = [0, 1, 2, 3].map((slot) => {
|
|
869
|
+
let sum = 0;
|
|
870
|
+
for (let i = slot; i < text.length; i += 4)
|
|
871
|
+
sum += text.charCodeAt(i);
|
|
872
|
+
return Math.round((sum % 1000) / 10) / 100;
|
|
873
|
+
});
|
|
874
|
+
return { embedding, dimensions: embedding.length };
|
|
875
|
+
}),
|
|
876
|
+
tool("critique_image", "Judge one image against a brief with a vision model.", { provider: s, model: s, image: s, brief: s, taste_profile: s }, (params) => {
|
|
877
|
+
world.model(params["provider"], params["model"], "vision");
|
|
878
|
+
const { score, missing } = adherence(params["image"], params["brief"]);
|
|
879
|
+
return {
|
|
880
|
+
verdict: score >= 0.75 ? "pass" : "revise",
|
|
881
|
+
score,
|
|
882
|
+
defects: missing.map((term) => `the brief asks for "${term}"; the image does not show it`)
|
|
883
|
+
};
|
|
884
|
+
}),
|
|
885
|
+
tool("compare_images", "Rank 2-8 candidates against a brief.", {
|
|
886
|
+
provider: s,
|
|
887
|
+
model: s,
|
|
888
|
+
images: { type: "array" },
|
|
889
|
+
brief: s,
|
|
890
|
+
taste_profile: s
|
|
891
|
+
}, (params) => {
|
|
892
|
+
world.model(params["provider"], params["model"], "vision");
|
|
893
|
+
const images = Array.isArray(params["images"]) ? params["images"] : [];
|
|
894
|
+
const ranked = images
|
|
895
|
+
.map((image, index) => ({
|
|
896
|
+
image: str(image),
|
|
897
|
+
index,
|
|
898
|
+
score: adherence(image, params["brief"]).score
|
|
899
|
+
}))
|
|
900
|
+
.sort((a, b) => b.score - a.score || a.index - b.index);
|
|
901
|
+
return { winner: ranked[0]?.image, ranking: ranked };
|
|
902
|
+
}),
|
|
903
|
+
tool("score_image_adherence", "Score an image against the brief as yes/no checks.", { provider: s, model: s, image: s, brief: s }, (params) => {
|
|
904
|
+
world.model(params["provider"], params["model"], "vision");
|
|
905
|
+
const { score, missing } = adherence(params["image"], params["brief"]);
|
|
906
|
+
return {
|
|
907
|
+
score,
|
|
908
|
+
checks: briefTerms(str(params["brief"])).map((term) => ({
|
|
909
|
+
question: `Does the image show "${term}"?`,
|
|
910
|
+
pass: !missing.includes(term)
|
|
911
|
+
}))
|
|
912
|
+
};
|
|
913
|
+
}),
|
|
914
|
+
tool("understand_video", "Read a video with a multimodal chat model.", { provider: s, model: s, video: s, prompt: s }, (params) => {
|
|
915
|
+
world.model(params["provider"], params["model"], "vision");
|
|
916
|
+
const asset = world.asset(params["video"]);
|
|
917
|
+
const prompt = str(params["prompt"]) || "Describe this video in detail.";
|
|
918
|
+
return {
|
|
919
|
+
text: `${prompt} — ${asset.name} shows ${asset.prompt ?? asset.content}`,
|
|
920
|
+
provider: str(params["provider"]),
|
|
921
|
+
model: str(params["model"])
|
|
922
|
+
};
|
|
923
|
+
}),
|
|
924
|
+
tool("ffmpeg", "Run ffmpeg on workspace files.", {
|
|
925
|
+
args: { type: "array" },
|
|
926
|
+
output_file: s,
|
|
927
|
+
timeout_seconds: { type: "number" }
|
|
928
|
+
}, (params) => {
|
|
929
|
+
const output = isString(params["output_file"]) && params["output_file"]
|
|
930
|
+
? params["output_file"]
|
|
931
|
+
: "out.mp4";
|
|
932
|
+
const asset = world.saveAsset(output, "ffmpeg", "video/mp4");
|
|
933
|
+
return { success: true, output_file: output, asset_uri: asset.uri };
|
|
934
|
+
}),
|
|
935
|
+
tool("ffprobe", "Read a media file's format and streams with ffprobe.", { path: s, timeout_seconds: { type: "number" } }, (params) => {
|
|
936
|
+
const target = str(params["path"]);
|
|
937
|
+
return {
|
|
938
|
+
path: target,
|
|
939
|
+
format: {
|
|
940
|
+
filename: target,
|
|
941
|
+
format_name: "mov,mp4,m4a",
|
|
942
|
+
duration: "12.500000",
|
|
943
|
+
size: "1048576"
|
|
944
|
+
},
|
|
945
|
+
streams: [
|
|
946
|
+
{
|
|
947
|
+
codec_type: "video",
|
|
948
|
+
codec_name: "h264",
|
|
949
|
+
width: 1920,
|
|
950
|
+
height: 1080,
|
|
951
|
+
r_frame_rate: "30/1"
|
|
952
|
+
},
|
|
953
|
+
{ codec_type: "audio", codec_name: "aac", channels: 2 }
|
|
954
|
+
]
|
|
955
|
+
};
|
|
956
|
+
}),
|
|
957
|
+
tool("yt_dlp", "Download a video with yt-dlp.", {
|
|
958
|
+
url: s,
|
|
959
|
+
output_file: s,
|
|
960
|
+
format: s,
|
|
961
|
+
timeout_seconds: { type: "number" }
|
|
962
|
+
}, (params) => {
|
|
963
|
+
const url = str(params["url"]);
|
|
964
|
+
const output = isString(params["output_file"]) && params["output_file"]
|
|
965
|
+
? params["output_file"]
|
|
966
|
+
: "download.mp4";
|
|
967
|
+
const asset = world.saveAsset(output, url, "video/mp4");
|
|
968
|
+
return {
|
|
969
|
+
success: true,
|
|
970
|
+
url,
|
|
971
|
+
output_file: output,
|
|
972
|
+
asset_uri: asset.uri
|
|
973
|
+
};
|
|
974
|
+
}),
|
|
975
|
+
tool("list_generations", "List this account's media generations, newest first, with status, cost and assets.", { status: s, limit: { type: "number" } }, (params) => {
|
|
976
|
+
const status = str(params["status"]);
|
|
977
|
+
return {
|
|
978
|
+
generations: FAKE_GENERATIONS.filter((g) => status === "" || g.status === status).map(({ parameters: _p, ...summary }) => summary),
|
|
979
|
+
next: null
|
|
980
|
+
};
|
|
981
|
+
}),
|
|
982
|
+
tool("get_generation", "Read one generation in full: cost, how it was priced, assets, parameters.", { generation_id: s }, (params) => {
|
|
983
|
+
const id = str(params["generation_id"]);
|
|
984
|
+
const found = FAKE_GENERATIONS.find((g) => g.generation_id === id);
|
|
985
|
+
if (!found)
|
|
986
|
+
return { error: `Generation ${id} was not found.` };
|
|
987
|
+
return found;
|
|
988
|
+
}),
|
|
989
|
+
tool("list_jobs", "List background jobs.", { workflow_id: s, limit: { type: "number" } }, (params) => {
|
|
990
|
+
const workflowId = str(params["workflow_id"]);
|
|
991
|
+
return {
|
|
992
|
+
jobs: [...world.jobs.values()]
|
|
993
|
+
.filter((job) => workflowId === "" || job.workflow_id === workflowId)
|
|
994
|
+
.map((job) => ({
|
|
995
|
+
id: job.id,
|
|
996
|
+
workflow_id: job.workflow_id,
|
|
997
|
+
status: job.polls > 1 ? "completed" : "running"
|
|
998
|
+
}))
|
|
999
|
+
};
|
|
1000
|
+
}),
|
|
1001
|
+
tool("get_job", "Get one job. It reports running on the first poll, completed after.", { job_id: s }, (params) => {
|
|
1002
|
+
const job = world.jobs.get(str(params["job_id"]));
|
|
1003
|
+
if (!job)
|
|
1004
|
+
throw new Error(`No job "${str(params["job_id"])}"`);
|
|
1005
|
+
job.polls += 1;
|
|
1006
|
+
const done = job.polls > 1;
|
|
1007
|
+
// Same shape `jobRecord` reports: outputs on the settled job, null
|
|
1008
|
+
// while it runs. The fake carried them under `result` and the real
|
|
1009
|
+
// tool carried them nowhere, so an agent taught here found neither.
|
|
1010
|
+
return {
|
|
1011
|
+
id: job.id,
|
|
1012
|
+
workflow_id: job.workflow_id,
|
|
1013
|
+
status: done ? "completed" : "running",
|
|
1014
|
+
polls: job.polls,
|
|
1015
|
+
outputs: done ? job.outputs : null
|
|
1016
|
+
};
|
|
1017
|
+
}),
|
|
1018
|
+
tool("get_job_logs", "Read a job's logs.", { job_id: s }, (params) => {
|
|
1019
|
+
const job = world.jobs.get(str(params["job_id"]));
|
|
1020
|
+
if (!job)
|
|
1021
|
+
throw new Error(`No job "${str(params["job_id"])}"`);
|
|
1022
|
+
return {
|
|
1023
|
+
job_id: job.id,
|
|
1024
|
+
logs: [`job ${job.id} started`, `workflow ${job.workflow_id} scheduled`]
|
|
1025
|
+
};
|
|
1026
|
+
}),
|
|
1027
|
+
tool("list_assets", "List assets.", { content_type: s, query: s, limit: { type: "number" } }, (params) => {
|
|
1028
|
+
const contentType = str(params["content_type"]);
|
|
1029
|
+
const query = str(params["query"]).toLowerCase();
|
|
1030
|
+
return {
|
|
1031
|
+
assets: [...world.assets.values()]
|
|
1032
|
+
.filter((a) => (contentType === "" ||
|
|
1033
|
+
a.content_type.startsWith(contentType)) &&
|
|
1034
|
+
(query === "" || a.name.toLowerCase().includes(query)))
|
|
1035
|
+
.map((a) => ({
|
|
1036
|
+
id: a.id,
|
|
1037
|
+
name: a.name,
|
|
1038
|
+
uri: a.uri,
|
|
1039
|
+
content_type: a.content_type
|
|
1040
|
+
}))
|
|
1041
|
+
};
|
|
1042
|
+
}),
|
|
1043
|
+
tool("get_asset", "Get one asset record.", { asset_id: s }, (params) => {
|
|
1044
|
+
const asset = world.asset(params["asset_id"]);
|
|
1045
|
+
return {
|
|
1046
|
+
id: asset.id,
|
|
1047
|
+
name: asset.name,
|
|
1048
|
+
uri: asset.uri,
|
|
1049
|
+
content_type: asset.content_type
|
|
1050
|
+
};
|
|
1051
|
+
}),
|
|
1052
|
+
tool("asset_search", "Search assets by name or content.", { query: s, limit: { type: "number" } }, (params) => {
|
|
1053
|
+
const query = str(params["query"]).toLowerCase();
|
|
1054
|
+
return {
|
|
1055
|
+
results: [...world.assets.values()]
|
|
1056
|
+
.filter((a) => a.name.toLowerCase().includes(query) ||
|
|
1057
|
+
a.content.toLowerCase().includes(query))
|
|
1058
|
+
.map((a) => ({
|
|
1059
|
+
id: a.id,
|
|
1060
|
+
name: a.name,
|
|
1061
|
+
uri: a.uri,
|
|
1062
|
+
content_type: a.content_type
|
|
1063
|
+
}))
|
|
1064
|
+
};
|
|
1065
|
+
}),
|
|
1066
|
+
tool("save_asset", "Save content as a named asset.", { name: s, content: s, content_type: s }, (params) => {
|
|
1067
|
+
const asset = world.saveAsset(str(params["name"]), str(params["content"]), str(params["content_type"]) || "text/plain");
|
|
1068
|
+
return { id: asset.id, name: asset.name, uri: asset.uri };
|
|
1069
|
+
}),
|
|
1070
|
+
tool("read_asset", "Read a saved asset's content.", { name: s }, (params) => {
|
|
1071
|
+
const asset = world.asset(params["name"]);
|
|
1072
|
+
return {
|
|
1073
|
+
id: asset.id,
|
|
1074
|
+
name: asset.name,
|
|
1075
|
+
content: asset.content,
|
|
1076
|
+
content_type: asset.content_type
|
|
1077
|
+
};
|
|
1078
|
+
}),
|
|
1079
|
+
tool("list_images", "List image assets as handles.", { query: s, limit: { type: "number" } }, () => ({
|
|
1080
|
+
images: [...world.assets.values()]
|
|
1081
|
+
.filter((a) => a.content_type.startsWith("image/"))
|
|
1082
|
+
.map((a) => ({ id: a.id, name: a.name, uri: a.uri }))
|
|
1083
|
+
})),
|
|
1084
|
+
tool("run_subtask", "Run a sub-agent on a self-contained prompt.", { description: s, prompt: s }, (params) => {
|
|
1085
|
+
const prompt = str(params["prompt"]);
|
|
1086
|
+
const numbers = (prompt.match(/\d+(?:\.\d+)?/g) ?? []).map(Number);
|
|
1087
|
+
return {
|
|
1088
|
+
description: str(params["description"]),
|
|
1089
|
+
result: {
|
|
1090
|
+
sum: numbers.reduce((total, n) => total + n, 0),
|
|
1091
|
+
numbers,
|
|
1092
|
+
words: prompt.split(/\s+/).filter((w) => w.length > 0).length
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
}),
|
|
1096
|
+
tool("start_subtask", "Start a background sub-agent and return a receipt immediately.", { description: s, prompt: s }, (params) => {
|
|
1097
|
+
const prompt = str(params["prompt"]);
|
|
1098
|
+
const numbers = (prompt.match(/\d+(?:\.\d+)?/g) ?? []).map(Number);
|
|
1099
|
+
const id = `bg-${world.assets.size + 1}`;
|
|
1100
|
+
const result = {
|
|
1101
|
+
sum: numbers.reduce((total, n) => total + n, 0),
|
|
1102
|
+
numbers,
|
|
1103
|
+
words: prompt.split(/\s+/).filter((w) => w.length > 0).length
|
|
1104
|
+
};
|
|
1105
|
+
pendingBg.set(id, { description: str(params["description"]), result });
|
|
1106
|
+
return { subtask_id: id, description: str(params["description"]), status: "running" };
|
|
1107
|
+
}),
|
|
1108
|
+
tool("wait_subtasks", "Collect background sub-agent results.", {
|
|
1109
|
+
ids: { type: "array", items: s },
|
|
1110
|
+
timeout_ms: { type: "number" }
|
|
1111
|
+
}, (params) => {
|
|
1112
|
+
const ids = Array.isArray(params["ids"])
|
|
1113
|
+
? params["ids"].map(String)
|
|
1114
|
+
: [...pendingBg.keys()];
|
|
1115
|
+
const subtasks = ids.map((id) => {
|
|
1116
|
+
const entry = pendingBg.get(id);
|
|
1117
|
+
return entry
|
|
1118
|
+
? {
|
|
1119
|
+
subtask_id: id,
|
|
1120
|
+
description: entry.description,
|
|
1121
|
+
status: "completed",
|
|
1122
|
+
result: entry.result
|
|
1123
|
+
}
|
|
1124
|
+
: { subtask_id: id, status: "unknown" };
|
|
1125
|
+
});
|
|
1126
|
+
return { subtasks, all_settled: true };
|
|
1127
|
+
})
|
|
1128
|
+
];
|
|
1129
|
+
}
|
|
1130
|
+
const asObject = (value) => isObjectLike(value) ? value : {};
|
|
1131
|
+
const isAssetUri = (value) => isString(value) && value.startsWith("asset://");
|
|
1132
|
+
export const CODEACT_API_CORE_CASES = [
|
|
1133
|
+
{
|
|
1134
|
+
id: "api-graph-build-and-run",
|
|
1135
|
+
description: "Discover node types, then build, validate and run a graph",
|
|
1136
|
+
objective: "Build a workflow that takes a string input named `name` and reports an " +
|
|
1137
|
+
"output named `greeting` reading `<name>, welcome aboard!`. " +
|
|
1138
|
+
"Discover the node types from the catalog — never guess a type. " +
|
|
1139
|
+
'Validate the graph before running it, then run it with name = "Ada" ' +
|
|
1140
|
+
"and finish with {greeting: <the run's greeting output>}.",
|
|
1141
|
+
outputSchema: {
|
|
1142
|
+
type: "object",
|
|
1143
|
+
properties: { greeting: { type: "string" } },
|
|
1144
|
+
required: ["greeting"]
|
|
1145
|
+
},
|
|
1146
|
+
createTools: createCoreApiTools,
|
|
1147
|
+
sandboxPackages: [GRAPH_DSL_PACKAGE],
|
|
1148
|
+
namespaces: ["nodes", "workflows"],
|
|
1149
|
+
expect: {
|
|
1150
|
+
requiredTools: ["search_nodes", "validate_workflow", "run_workflow"],
|
|
1151
|
+
maxActions: 5,
|
|
1152
|
+
resultCheck: (r) => asObject(r)["greeting"] === "Ada, welcome aboard!",
|
|
1153
|
+
resultCheckLabel: 'greeting="Ada, welcome aboard!"'
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
id: "api-probe-node-then-wire",
|
|
1158
|
+
description: "Probe a node with the single-node harness before wiring it",
|
|
1159
|
+
objective: "Find the node that renders a text template. Probe it on its own with " +
|
|
1160
|
+
'the template "{{title}} — a field report" and title "Hello World" so ' +
|
|
1161
|
+
"you know exactly what it emits, then build and run a workflow that " +
|
|
1162
|
+
"renders that same template from a `title` input, using " +
|
|
1163
|
+
'"Fox In Snow" as the title. Report the rendered line as an output ' +
|
|
1164
|
+
"named `line`. Finish with {probe: <the probe output>, " +
|
|
1165
|
+
"line: <the run's line output>}.",
|
|
1166
|
+
outputSchema: {
|
|
1167
|
+
type: "object",
|
|
1168
|
+
properties: { probe: { type: "string" }, line: { type: "string" } },
|
|
1169
|
+
required: ["probe", "line"]
|
|
1170
|
+
},
|
|
1171
|
+
createTools: createCoreApiTools,
|
|
1172
|
+
sandboxPackages: [GRAPH_DSL_PACKAGE],
|
|
1173
|
+
namespaces: ["nodes", "workflows"],
|
|
1174
|
+
expect: {
|
|
1175
|
+
requiredTools: ["run_node", "run_workflow"],
|
|
1176
|
+
maxActions: 5,
|
|
1177
|
+
resultCheck: (r) => asObject(r)["probe"] === "Hello World — a field report" &&
|
|
1178
|
+
asObject(r)["line"] === "Fox In Snow — a field report",
|
|
1179
|
+
resultCheckLabel: 'probe="Hello World — a field report", line="Fox In Snow — a field report"'
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
id: "api-pick-model-and-batch-images",
|
|
1184
|
+
description: "Survey providers, pick a model, batch-generate images",
|
|
1185
|
+
objective: 'Three shots need rendering: "a red fox in snow", "a fox by a river", ' +
|
|
1186
|
+
'and "a fox on a rooftop". Report which providers this workspace has ' +
|
|
1187
|
+
"models from, resolve one text-to-image model from the ranked catalog " +
|
|
1188
|
+
"(never guess an id), generate all three images, and finish with " +
|
|
1189
|
+
"{provider, model, uris} where uris holds the three asset URIs in the " +
|
|
1190
|
+
"order the shots were listed.",
|
|
1191
|
+
outputSchema: {
|
|
1192
|
+
type: "object",
|
|
1193
|
+
properties: {
|
|
1194
|
+
provider: { type: "string" },
|
|
1195
|
+
model: { type: "string" },
|
|
1196
|
+
uris: { type: "array", items: { type: "string" } }
|
|
1197
|
+
},
|
|
1198
|
+
required: ["provider", "model", "uris"]
|
|
1199
|
+
},
|
|
1200
|
+
createTools: createCoreApiTools,
|
|
1201
|
+
namespaces: ["models", "media"],
|
|
1202
|
+
expect: {
|
|
1203
|
+
requiredTools: ["list_models", "find_model", "generate_image"],
|
|
1204
|
+
maxActions: 5,
|
|
1205
|
+
minToolCalls: 5,
|
|
1206
|
+
resultCheck: (r) => {
|
|
1207
|
+
const result = asObject(r);
|
|
1208
|
+
const uris = result["uris"];
|
|
1209
|
+
return (result["provider"] === "fal_ai" &&
|
|
1210
|
+
result["model"] === "fal-ai/flux/schnell" &&
|
|
1211
|
+
Array.isArray(uris) &&
|
|
1212
|
+
uris.length === 3 &&
|
|
1213
|
+
new Set(uris).size === 3 &&
|
|
1214
|
+
uris.every(isAssetUri));
|
|
1215
|
+
},
|
|
1216
|
+
resultCheckLabel: "fal_ai/fal-ai/flux/schnell + 3 distinct asset URIs"
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
id: "api-generate-then-critique",
|
|
1221
|
+
description: "Generate an image, then judge it against the brief",
|
|
1222
|
+
objective: 'Render the brief "a red fox in deep snow" with a text-to-image model, ' +
|
|
1223
|
+
"then have a vision chat model critique the result against that same " +
|
|
1224
|
+
"brief using the critique judge (not the adherence scorer). Finish " +
|
|
1225
|
+
"with {asset_uri, verdict, score} — verdict is the critique's own " +
|
|
1226
|
+
"verdict string, not a serialized report.",
|
|
1227
|
+
outputSchema: {
|
|
1228
|
+
type: "object",
|
|
1229
|
+
properties: {
|
|
1230
|
+
asset_uri: { type: "string" },
|
|
1231
|
+
verdict: { type: "string" },
|
|
1232
|
+
score: { type: "number" }
|
|
1233
|
+
},
|
|
1234
|
+
required: ["asset_uri", "verdict", "score"]
|
|
1235
|
+
},
|
|
1236
|
+
createTools: createCoreApiTools,
|
|
1237
|
+
namespaces: ["models", "media"],
|
|
1238
|
+
expect: {
|
|
1239
|
+
requiredTools: ["find_model", "generate_image", "critique_image"],
|
|
1240
|
+
maxActions: 5,
|
|
1241
|
+
resultCheck: (r) => {
|
|
1242
|
+
const result = asObject(r);
|
|
1243
|
+
return (isAssetUri(result["asset_uri"]) &&
|
|
1244
|
+
result["verdict"] === "pass" &&
|
|
1245
|
+
isNumber(result["score"]) &&
|
|
1246
|
+
result["score"] >= 0.75);
|
|
1247
|
+
},
|
|
1248
|
+
resultCheckLabel: "verdict=pass, score>=0.75, asset:// uri"
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
id: "api-background-job-wait",
|
|
1253
|
+
description: "Start a workflow as a background job and wait for it",
|
|
1254
|
+
objective: 'Find the saved workflow called "Shout Line", start it as a background ' +
|
|
1255
|
+
'job with line = "ship it", and wait for the job to settle rather than ' +
|
|
1256
|
+
"polling by hand. Finish with {status: <the settled job's status>, " +
|
|
1257
|
+
"shout: <the shout output's plain string value — the uppercased line " +
|
|
1258
|
+
"itself, not JSON and not a status>}.",
|
|
1259
|
+
outputSchema: {
|
|
1260
|
+
type: "object",
|
|
1261
|
+
properties: { status: { type: "string" }, shout: { type: "string" } },
|
|
1262
|
+
required: ["status", "shout"]
|
|
1263
|
+
},
|
|
1264
|
+
createTools: createCoreApiTools,
|
|
1265
|
+
namespaces: ["workflows", "jobs"],
|
|
1266
|
+
expect: {
|
|
1267
|
+
requiredTools: ["list_workflows", "start_background_job", "get_job"],
|
|
1268
|
+
maxActions: 4,
|
|
1269
|
+
resultCheck: (r) => {
|
|
1270
|
+
const result = asObject(r);
|
|
1271
|
+
return (result["status"] === "completed" && result["shout"] === "SHIP IT");
|
|
1272
|
+
},
|
|
1273
|
+
resultCheckLabel: 'status=completed, shout="SHIP IT"'
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
id: "api-generation-cost",
|
|
1278
|
+
description: "Read what a finished media generation cost and where its asset is",
|
|
1279
|
+
objective: "Find the most recent completed image generation in this account's " +
|
|
1280
|
+
"generation record and report what it cost. Finish with " +
|
|
1281
|
+
"{generation_id: <its id>, cost: <its cost in USD as a number>, " +
|
|
1282
|
+
"asset_id: <the id of the asset it produced>}.",
|
|
1283
|
+
outputSchema: {
|
|
1284
|
+
type: "object",
|
|
1285
|
+
properties: {
|
|
1286
|
+
generation_id: { type: "string" },
|
|
1287
|
+
cost: { type: "number" },
|
|
1288
|
+
asset_id: { type: "string" }
|
|
1289
|
+
},
|
|
1290
|
+
required: ["generation_id", "cost", "asset_id"]
|
|
1291
|
+
},
|
|
1292
|
+
createTools: createCoreApiTools,
|
|
1293
|
+
namespaces: ["generations"],
|
|
1294
|
+
expect: {
|
|
1295
|
+
requiredTools: ["list_generations"],
|
|
1296
|
+
maxActions: 3,
|
|
1297
|
+
resultCheck: (r) => {
|
|
1298
|
+
const result = asObject(r);
|
|
1299
|
+
return (result["generation_id"] === "gen-1" &&
|
|
1300
|
+
result["cost"] === 0.04 &&
|
|
1301
|
+
result["asset_id"] === "asset-gen-1");
|
|
1302
|
+
},
|
|
1303
|
+
resultCheckLabel: "generation_id=gen-1, cost=0.04, asset_id=asset-gen-1"
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
id: "api-batch-existing-workflow",
|
|
1308
|
+
description: "Run one saved workflow over several inputs with bounded fan-out",
|
|
1309
|
+
objective: 'Find the saved workflow called "Shout Line" and run it once per line ' +
|
|
1310
|
+
'for "alpha", "beta" and "gamma", with bounded concurrency rather than ' +
|
|
1311
|
+
"one action per line. Finish with {shouts: [...]} holding each run's " +
|
|
1312
|
+
"shout output value — the uppercased lines themselves, not run " +
|
|
1313
|
+
"statuses — in the order the lines were listed.",
|
|
1314
|
+
outputSchema: {
|
|
1315
|
+
type: "object",
|
|
1316
|
+
properties: { shouts: { type: "array", items: { type: "string" } } },
|
|
1317
|
+
required: ["shouts"]
|
|
1318
|
+
},
|
|
1319
|
+
createTools: createCoreApiTools,
|
|
1320
|
+
namespaces: ["workflows"],
|
|
1321
|
+
expect: {
|
|
1322
|
+
requiredTools: ["list_workflows", "run_workflow"],
|
|
1323
|
+
maxActions: 4,
|
|
1324
|
+
minToolCalls: 4,
|
|
1325
|
+
resultCheck: (r) => {
|
|
1326
|
+
const shouts = asObject(r)["shouts"];
|
|
1327
|
+
return (Array.isArray(shouts) &&
|
|
1328
|
+
shouts.length === 3 &&
|
|
1329
|
+
shouts[0] === "ALPHA" &&
|
|
1330
|
+
shouts[1] === "BETA" &&
|
|
1331
|
+
shouts[2] === "GAMMA");
|
|
1332
|
+
},
|
|
1333
|
+
resultCheckLabel: "shouts=[ALPHA, BETA, GAMMA]"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
id: "api-interactive-escalation",
|
|
1338
|
+
description: "Answer an escalation from an interactive run",
|
|
1339
|
+
objective: 'Run the saved workflow called "Greeting Builder" interactively with ' +
|
|
1340
|
+
'name = "Ada". It parks on a node that failed transiently and hands ' +
|
|
1341
|
+
"you an escalation: have that node tried again so the run finishes " +
|
|
1342
|
+
"with its real output. Finish with {greeting: <the run's greeting " +
|
|
1343
|
+
"output>, action: <the action you answered with>}.",
|
|
1344
|
+
outputSchema: {
|
|
1345
|
+
type: "object",
|
|
1346
|
+
properties: { greeting: { type: "string" }, action: { type: "string" } },
|
|
1347
|
+
required: ["greeting", "action"]
|
|
1348
|
+
},
|
|
1349
|
+
createTools: createCoreApiTools,
|
|
1350
|
+
namespaces: ["workflows"],
|
|
1351
|
+
expect: {
|
|
1352
|
+
requiredTools: ["run_workflow", "resolve_workflow_escalation"],
|
|
1353
|
+
maxActions: 4,
|
|
1354
|
+
resultCheck: (r) => {
|
|
1355
|
+
const result = asObject(r);
|
|
1356
|
+
return (result["greeting"] === "Ada, welcome aboard!" &&
|
|
1357
|
+
result["action"] === "retry");
|
|
1358
|
+
},
|
|
1359
|
+
resultCheckLabel: 'greeting="Ada, welcome aboard!", action=retry'
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
id: "api-delegate-subtask",
|
|
1364
|
+
description: "Delegate a self-contained subtask to a sub-agent",
|
|
1365
|
+
objective: "You cannot do arithmetic yourself here: delegate it. Spawn a " +
|
|
1366
|
+
"sub-agent with a self-contained prompt asking for the sum of the " +
|
|
1367
|
+
"numbers 12, 30 and 5 (it sees none of this conversation), and finish " +
|
|
1368
|
+
"with {sum: <the number it comes back with>}.",
|
|
1369
|
+
outputSchema: {
|
|
1370
|
+
type: "object",
|
|
1371
|
+
properties: { sum: { type: "number" } },
|
|
1372
|
+
required: ["sum"]
|
|
1373
|
+
},
|
|
1374
|
+
createTools: createCoreApiTools,
|
|
1375
|
+
namespaces: ["agents"],
|
|
1376
|
+
expect: {
|
|
1377
|
+
requiredTools: ["run_subtask"],
|
|
1378
|
+
maxActions: 4,
|
|
1379
|
+
resultCheck: (r) => asObject(r)["sum"] === 47,
|
|
1380
|
+
resultCheckLabel: "sum=47"
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
id: "api-asset-round-trip",
|
|
1385
|
+
description: "Save an asset, find it again, read it back",
|
|
1386
|
+
objective: 'Save a note asset named "run-notes.txt" whose content is exactly ' +
|
|
1387
|
+
'"fox: ok". Then find that asset again by searching for "run-notes" ' +
|
|
1388
|
+
"and read its content back. Finish with {asset_id: <the saved " +
|
|
1389
|
+
"asset's id>, content: <the text stored in the asset — the file body " +
|
|
1390
|
+
"you read back, not the asset record>}.",
|
|
1391
|
+
outputSchema: {
|
|
1392
|
+
type: "object",
|
|
1393
|
+
properties: { asset_id: { type: "string" }, content: { type: "string" } },
|
|
1394
|
+
required: ["asset_id", "content"]
|
|
1395
|
+
},
|
|
1396
|
+
createTools: createCoreApiTools,
|
|
1397
|
+
namespaces: ["assets"],
|
|
1398
|
+
expect: {
|
|
1399
|
+
requiredTools: ["save_asset", "read_asset"],
|
|
1400
|
+
maxActions: 4,
|
|
1401
|
+
resultCheck: (r) => {
|
|
1402
|
+
const result = asObject(r);
|
|
1403
|
+
return (result["content"] === "fox: ok" &&
|
|
1404
|
+
isString(result["asset_id"]) &&
|
|
1405
|
+
result["asset_id"].startsWith("asset_"));
|
|
1406
|
+
},
|
|
1407
|
+
resultCheckLabel: 'content="fox: ok", asset_id=asset_*'
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
];
|
|
1411
|
+
//# sourceMappingURL=codeact-api-core.js.map
|