@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,901 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `buildApp` — the orchestrator behind `nodetool app build`.
|
|
3
|
+
*
|
|
4
|
+
* A plain loop, not an agent: spec → plan → author → check → run → judge, with
|
|
5
|
+
* everything wrong at the end of a pass collected into one
|
|
6
|
+
* {@link BuildComplaint} and handed back to the stage that can fix it. The
|
|
7
|
+
* stages themselves are the existing machinery — `authorGraph` plans, the
|
|
8
|
+
* `ui_app_*` bridge authors, the `@nodetool-ai/execution` simulator checks and
|
|
9
|
+
* runs — so this module owns exactly three things: the order, the complaints,
|
|
10
|
+
* and the bounds.
|
|
11
|
+
*
|
|
12
|
+
* Failure is closed, everywhere (docs/mini-app-build-harness-design.md §7).
|
|
13
|
+
* A budget that runs out, an issue that comes back after being fixed, a
|
|
14
|
+
* cancelled signal — each ends the build as `failed` with the reason named and
|
|
15
|
+
* the best attempt's evidence attached. There is no partial success and no
|
|
16
|
+
* bundle behind a failed verdict.
|
|
17
|
+
*
|
|
18
|
+
* Nothing here writes to a database: planned graphs live in the bundle, and the
|
|
19
|
+
* simulator runs them from memory. That is what makes a build runnable in CI.
|
|
20
|
+
*/
|
|
21
|
+
import { randomUUID } from "node:crypto";
|
|
22
|
+
import { CostCappedTurnBudget, withSpan } from "@nodetool-ai/runtime";
|
|
23
|
+
import { createLogger } from "@nodetool-ai/config";
|
|
24
|
+
import { validateGraph } from "@nodetool-ai/node-sdk";
|
|
25
|
+
import { collectInterventionWarnings, summarizeInterventions } from "@nodetool-ai/execution/debug";
|
|
26
|
+
import { APPLICATION_BUNDLE_SCHEMA_VERSION, APP_SCHEMA_VERSION, parseBinding } from "@nodetool-ai/app-runtime";
|
|
27
|
+
import { bundleTarget, extractAppIO, simulateApp } from "@nodetool-ai/execution/app-debug";
|
|
28
|
+
import { authorGraph } from "../author-graph.js";
|
|
29
|
+
import { runAuthorStage, DEFAULT_AUTHOR_TURNS } from "./author.js";
|
|
30
|
+
import { completeInteractions } from "./interactions.js";
|
|
31
|
+
import { runJudgeStage } from "./judge.js";
|
|
32
|
+
import { resolveSpecWidget, runSpecStage, specFromFile } from "./spec.js";
|
|
33
|
+
import { issueFingerprint } from "./types.js";
|
|
34
|
+
const log = createLogger("nodetool.agents.app-build");
|
|
35
|
+
/** Repair rounds allowed after the first pass. */
|
|
36
|
+
export const DEFAULT_MAX_REPAIRS = 3;
|
|
37
|
+
/** Wall clock a build may take. */
|
|
38
|
+
export const DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1000;
|
|
39
|
+
/** Ceiling on what one build may spend, in USD. */
|
|
40
|
+
export const DEFAULT_BUILD_COST_CAP_USD = 2;
|
|
41
|
+
/** Output-token bound assumed per turn when reserving against the cap. */
|
|
42
|
+
const BUILD_MAX_OUTPUT_TOKENS = 4096;
|
|
43
|
+
/**
|
|
44
|
+
* Complaint codes Plan owns: the app binds to a graph node the workflow does
|
|
45
|
+
* not have, which authoring cannot fix by itself.
|
|
46
|
+
*/
|
|
47
|
+
const PLAN_ROUTED_CODES = new Set(["binding_node_missing"]);
|
|
48
|
+
const issue = (stage, code, message, ref = {}, severity = "error") => {
|
|
49
|
+
const built = { stage, code, severity, message };
|
|
50
|
+
if (ref.widget !== undefined)
|
|
51
|
+
built.widget = ref.widget;
|
|
52
|
+
if (ref.operation !== undefined)
|
|
53
|
+
built.operation = ref.operation;
|
|
54
|
+
if (ref.interaction !== undefined)
|
|
55
|
+
built.interaction = ref.interaction;
|
|
56
|
+
if (ref.step !== undefined)
|
|
57
|
+
built.step = ref.step;
|
|
58
|
+
return built;
|
|
59
|
+
};
|
|
60
|
+
const errorsOf = (issues) => issues.filter((i) => i.severity === "error");
|
|
61
|
+
/** The provider failure an authoring round reported, when it reported one. */
|
|
62
|
+
const providerErrorOf = (issues) => issues.find((i) => i.code === "author_provider_error")?.message ?? null;
|
|
63
|
+
/** What the build spent, in total and per stage. */
|
|
64
|
+
const costOf = (stages) => {
|
|
65
|
+
const byStage = {};
|
|
66
|
+
let usd = 0;
|
|
67
|
+
for (const stage of stages) {
|
|
68
|
+
byStage[stage.stage] = (byStage[stage.stage] ?? 0) + stage.costUsd;
|
|
69
|
+
usd += stage.costUsd;
|
|
70
|
+
}
|
|
71
|
+
return { usd, byStage };
|
|
72
|
+
};
|
|
73
|
+
/** The simulator's dependencies: the caller's runner and workflow loader. */
|
|
74
|
+
const simulationDeps = (opts) => ({
|
|
75
|
+
loadFromDb: async (id) => {
|
|
76
|
+
const loaded = await opts.loadWorkflow?.(id);
|
|
77
|
+
return loaded ? { graph: loaded.graph } : null;
|
|
78
|
+
},
|
|
79
|
+
runOnServer: opts.runOnServer
|
|
80
|
+
});
|
|
81
|
+
const record = (stage, round, startedAt, issues, detail, costUsd = 0) => ({
|
|
82
|
+
stage,
|
|
83
|
+
round,
|
|
84
|
+
status: errorsOf(issues).length > 0 ? "failed" : "ok",
|
|
85
|
+
startedAt: new Date(startedAt).toISOString(),
|
|
86
|
+
durationMs: Date.now() - startedAt,
|
|
87
|
+
issues,
|
|
88
|
+
costUsd,
|
|
89
|
+
detail
|
|
90
|
+
});
|
|
91
|
+
const documentOf = (spec, doc) => ({
|
|
92
|
+
schemaVersion: APP_SCHEMA_VERSION,
|
|
93
|
+
ui: {
|
|
94
|
+
root: { props: { title: doc.title ?? spec.title } },
|
|
95
|
+
content: doc.content,
|
|
96
|
+
zones: {}
|
|
97
|
+
},
|
|
98
|
+
operations: doc.meta.operations,
|
|
99
|
+
resources: doc.meta.resources,
|
|
100
|
+
variables: doc.meta.variables
|
|
101
|
+
});
|
|
102
|
+
const assembleBundle = (spec, doc, workflows, description) => ({
|
|
103
|
+
schemaVersion: APPLICATION_BUNDLE_SCHEMA_VERSION,
|
|
104
|
+
name: spec.title,
|
|
105
|
+
description,
|
|
106
|
+
app: documentOf(spec, doc),
|
|
107
|
+
workflows: workflows.map((workflow) => ({
|
|
108
|
+
key: workflow.key,
|
|
109
|
+
name: workflow.name,
|
|
110
|
+
graph: { nodes: workflow.graph.nodes, edges: workflow.graph.edges }
|
|
111
|
+
})),
|
|
112
|
+
// The builder plans workflows, never scripts: authoring a script operation
|
|
113
|
+
// is not a stage it has.
|
|
114
|
+
scripts: []
|
|
115
|
+
});
|
|
116
|
+
// ---------------------------------------------------------------------------
|
|
117
|
+
// Widget resolution
|
|
118
|
+
// ---------------------------------------------------------------------------
|
|
119
|
+
/**
|
|
120
|
+
* The placed widget a spec role names. The author places widgets with
|
|
121
|
+
* generated ids, so the link back to the spec is the label it was told to use
|
|
122
|
+
* verbatim; the type is the last resort, and only when it is unambiguous.
|
|
123
|
+
*/
|
|
124
|
+
function placedWidget(appSpec, widget) {
|
|
125
|
+
if (!appSpec)
|
|
126
|
+
return null;
|
|
127
|
+
const byId = appSpec.widgets.find((w) => w.id === widget.role);
|
|
128
|
+
if (byId)
|
|
129
|
+
return byId;
|
|
130
|
+
const byLabel = appSpec.widgets.filter((w) => w.label === widget.label);
|
|
131
|
+
if (byLabel.length === 1)
|
|
132
|
+
return byLabel[0] ?? null;
|
|
133
|
+
const byType = appSpec.widgets.filter((w) => w.type === widget.type);
|
|
134
|
+
return byType.length === 1 ? (byType[0] ?? null) : null;
|
|
135
|
+
}
|
|
136
|
+
/** Rewrite a script's widget references from spec roles to placed ids. */
|
|
137
|
+
function bindSteps(steps, spec, appSpec) {
|
|
138
|
+
const issues = [];
|
|
139
|
+
// A script may name a widget by role, label, or unique type — the same three
|
|
140
|
+
// ways the Spec stage resolved it. Resolving by role alone here would turn a
|
|
141
|
+
// spec the Spec gate accepted into a complaint the Author cannot satisfy.
|
|
142
|
+
const resolve = (ref) => {
|
|
143
|
+
const declared = resolveSpecWidget(spec, ref);
|
|
144
|
+
const placed = declared ? placedWidget(appSpec, declared) : null;
|
|
145
|
+
if (placed)
|
|
146
|
+
return placed.id;
|
|
147
|
+
issues.push(issue("check", "widget_missing", `the script addresses widget "${ref}", which is not in the app — place a ${declared?.type ?? "widget"} labelled "${declared?.label ?? ref}"`, { widget: declared?.role ?? ref }));
|
|
148
|
+
return ref;
|
|
149
|
+
};
|
|
150
|
+
const bound = steps.map((step) => {
|
|
151
|
+
if ("click" in step)
|
|
152
|
+
return { click: resolve(step.click) };
|
|
153
|
+
if ("change" in step) {
|
|
154
|
+
return { change: resolve(step.change), value: step.value };
|
|
155
|
+
}
|
|
156
|
+
return step;
|
|
157
|
+
});
|
|
158
|
+
return { steps: bound, issues };
|
|
159
|
+
}
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
// Stages
|
|
162
|
+
// ---------------------------------------------------------------------------
|
|
163
|
+
/** Names the spec declared that the graph does not carry. */
|
|
164
|
+
function ioGap(spec, io) {
|
|
165
|
+
const inputs = new Set(io.inputs.map((i) => i.name));
|
|
166
|
+
const outputs = new Set(io.outputs.map((o) => o.name));
|
|
167
|
+
return {
|
|
168
|
+
inputs: spec.inputs.filter((i) => !inputs.has(i.name)).map((i) => i.name),
|
|
169
|
+
outputs: spec.outputs.filter((o) => !outputs.has(o.name)).map((o) => o.name)
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
const gapText = (gap) => [
|
|
173
|
+
gap.inputs.length > 0
|
|
174
|
+
? `input node(s) named ${gap.inputs.map((n) => `"${n}"`).join(", ")}`
|
|
175
|
+
: "",
|
|
176
|
+
gap.outputs.length > 0
|
|
177
|
+
? `output node(s) named ${gap.outputs.map((n) => `"${n}"`).join(", ")}`
|
|
178
|
+
: ""
|
|
179
|
+
]
|
|
180
|
+
.filter(Boolean)
|
|
181
|
+
.join(" and ");
|
|
182
|
+
/** `validateGraph` errors, as build issues. */
|
|
183
|
+
function graphIssues(graph, registry, stage, operationId) {
|
|
184
|
+
const report = validateGraph(graph, registry);
|
|
185
|
+
return report.issues
|
|
186
|
+
.filter((i) => i.severity === "error")
|
|
187
|
+
.map((i) => issue(stage, "invalid_graph", `operation "${operationId}": ${i.code} — ${i.message}`, { operation: operationId }));
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Plan (or bind) one workflow per operation.
|
|
191
|
+
*
|
|
192
|
+
* A `workflowId` binds: the graph is loaded and checked, and a declared surface
|
|
193
|
+
* the workflow does not have is a *spec* complaint — the spec named a workflow
|
|
194
|
+
* it does not fit, which no amount of planning fixes. Everything else goes to
|
|
195
|
+
* `authorGraph`, whose graph must cover the declared surface; one replan names
|
|
196
|
+
* the delta, and a second miss fails the build.
|
|
197
|
+
*/
|
|
198
|
+
async function runPlanStage(opts, planOpts) {
|
|
199
|
+
const startedAt = Date.now();
|
|
200
|
+
const costBefore = opts.provider.getTotalCost();
|
|
201
|
+
const issues = [];
|
|
202
|
+
const workflows = [];
|
|
203
|
+
const pinned = opts.pinnedWorkflowIds ?? [];
|
|
204
|
+
for (const [index, operation] of planOpts.spec.operations.entries()) {
|
|
205
|
+
if (planOpts.only && !planOpts.only.has(operation.id))
|
|
206
|
+
continue;
|
|
207
|
+
const key = `wf-${operation.id}`;
|
|
208
|
+
const workflowId = operation.workflowId ?? pinned[index];
|
|
209
|
+
if (workflowId) {
|
|
210
|
+
const loaded = await opts.loadWorkflow?.(workflowId);
|
|
211
|
+
if (!loaded) {
|
|
212
|
+
issues.push(issue("plan", "workflow_not_found", `operation "${operation.id}" binds workflow "${workflowId}", which could not be loaded`, { operation: operation.id }));
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
issues.push(...graphIssues(loaded.graph, opts.registry, "plan", operation.id));
|
|
216
|
+
const io = extractAppIO(loaded.graph);
|
|
217
|
+
const gap = ioGap(operation, io);
|
|
218
|
+
if (gap.inputs.length > 0 || gap.outputs.length > 0) {
|
|
219
|
+
issues.push(issue("spec", "declared_io_mismatch", `operation "${operation.id}" declares ${gapText(gap)}, which workflow "${workflowId}" does not have — the spec named a workflow it does not fit`, { operation: operation.id }));
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
workflows.push({
|
|
223
|
+
operationId: operation.id,
|
|
224
|
+
key,
|
|
225
|
+
name: loaded.name ?? operation.id,
|
|
226
|
+
graph: loaded.graph,
|
|
227
|
+
io
|
|
228
|
+
});
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
const delta = planOpts.deltas?.get(operation.id);
|
|
232
|
+
let objective = operation.objective;
|
|
233
|
+
if (delta)
|
|
234
|
+
objective = `${objective}\n\n${delta}`;
|
|
235
|
+
let planned = null;
|
|
236
|
+
let gap = { inputs: [], outputs: [] };
|
|
237
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
238
|
+
if (opts.signal?.aborted)
|
|
239
|
+
break;
|
|
240
|
+
const graph = await planGraph(opts, operation, objective);
|
|
241
|
+
if (!graph)
|
|
242
|
+
break;
|
|
243
|
+
planned = graph;
|
|
244
|
+
gap = ioGap(operation, extractAppIO(graph));
|
|
245
|
+
if (gap.inputs.length === 0 && gap.outputs.length === 0)
|
|
246
|
+
break;
|
|
247
|
+
// One replan, with the delta named in the objective: the app cannot bind
|
|
248
|
+
// to an input the planner renamed.
|
|
249
|
+
objective = `${operation.objective}\n\nThe previous graph was missing ${gapText(gap)}. Every declared input must be an Input node whose \`name\` property is exactly that name, and every declared output an Output node named exactly that.`;
|
|
250
|
+
planned = null;
|
|
251
|
+
}
|
|
252
|
+
if (!planned) {
|
|
253
|
+
issues.push(gap.inputs.length > 0 || gap.outputs.length > 0
|
|
254
|
+
? issue("plan", "graph_io_missing", `the planned graph for operation "${operation.id}" is still missing ${gapText(gap)} after a replan`, { operation: operation.id })
|
|
255
|
+
: issue("plan", "planner_failed", `no graph could be planned for operation "${operation.id}"`, { operation: operation.id }));
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
issues.push(...graphIssues(planned, opts.registry, "plan", operation.id));
|
|
259
|
+
workflows.push({
|
|
260
|
+
operationId: operation.id,
|
|
261
|
+
key,
|
|
262
|
+
name: operation.id,
|
|
263
|
+
graph: planned,
|
|
264
|
+
io: extractAppIO(planned)
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
workflows,
|
|
269
|
+
record: record("plan", planOpts.round, startedAt, issues, `${workflows.length} workflow(s)`, opts.provider.getTotalCost() - costBefore)
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
/** One {@link authorGraph} pass. Returns null when it produced no graph. */
|
|
273
|
+
async function planGraph(opts, operation, objective) {
|
|
274
|
+
const authorOptions = {
|
|
275
|
+
context: opts.context,
|
|
276
|
+
provider: opts.provider,
|
|
277
|
+
model: opts.model,
|
|
278
|
+
registry: opts.registry,
|
|
279
|
+
inputs: Object.fromEntries(operation.inputs.map((input) => [input.name, input.example])),
|
|
280
|
+
outputSchema: {
|
|
281
|
+
type: "object",
|
|
282
|
+
properties: Object.fromEntries(operation.outputs.map((output) => [output.name, { type: "string" }]))
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
if (opts.providers)
|
|
286
|
+
authorOptions.providers = opts.providers;
|
|
287
|
+
if (opts.turnBudget)
|
|
288
|
+
authorOptions.turnBudget = opts.turnBudget;
|
|
289
|
+
if (opts.gate)
|
|
290
|
+
authorOptions.gate = opts.gate;
|
|
291
|
+
if (opts.signal)
|
|
292
|
+
authorOptions.signal = opts.signal;
|
|
293
|
+
const generator = authorGraph(objective, authorOptions);
|
|
294
|
+
let next = await generator.next();
|
|
295
|
+
while (!next.done)
|
|
296
|
+
next = await generator.next();
|
|
297
|
+
const graph = next.value;
|
|
298
|
+
return graph
|
|
299
|
+
? {
|
|
300
|
+
nodes: graph.nodes.map((n) => ({ ...n })),
|
|
301
|
+
edges: graph.edges.map((e) => ({ ...e }))
|
|
302
|
+
}
|
|
303
|
+
: null;
|
|
304
|
+
}
|
|
305
|
+
/** The widget id a validation message names, for a stable fingerprint. */
|
|
306
|
+
const widgetOf = (message) => /^[A-Za-z0-9_]+ "([^"]+)"/.exec(message)?.[1];
|
|
307
|
+
/**
|
|
308
|
+
* Check: the static half of the oracle over the in-memory bundle, plus a
|
|
309
|
+
* per-workflow graph check. No LLM ever judges a statically invalid app.
|
|
310
|
+
*/
|
|
311
|
+
async function runCheckStage(opts, spec, bundle, workflows, round) {
|
|
312
|
+
const startedAt = Date.now();
|
|
313
|
+
const report = await simulateApp(bundleTarget(bundle, opts.buildId ?? "app-build"), { run: false }, simulationDeps(opts));
|
|
314
|
+
const issues = [
|
|
315
|
+
...report.validation.errors.map((message) => issue("check", "wiring_error", message, { widget: widgetOf(message) })),
|
|
316
|
+
...report.validation.warnings.map((message) => issue("check", "wiring_warning", message, { widget: widgetOf(message) }, "warning"))
|
|
317
|
+
];
|
|
318
|
+
for (const workflow of workflows) {
|
|
319
|
+
issues.push(...graphIssues(workflow.graph, opts.registry, "check", workflow.operationId));
|
|
320
|
+
}
|
|
321
|
+
issues.push(...bindingIssues(report.spec, workflows));
|
|
322
|
+
// Every role the interaction scripts and expectations address must exist.
|
|
323
|
+
for (const widget of spec.widgets) {
|
|
324
|
+
if (placedWidget(report.spec, widget))
|
|
325
|
+
continue;
|
|
326
|
+
issues.push(issue("check", "widget_missing", `the spec asks for widget "${widget.role}" (${widget.type}, label "${widget.label}"), which the app does not have`, { widget: widget.role }));
|
|
327
|
+
}
|
|
328
|
+
return {
|
|
329
|
+
report,
|
|
330
|
+
issues,
|
|
331
|
+
record: record("check", round, startedAt, issues, `${report.spec?.widgets.length ?? 0} widget(s), ${errorsOf(issues).length} error(s)`)
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Bindings that name a node the workflow does not have. `validateApp` accepts
|
|
336
|
+
* an explicit `op:<id>/in:<nodeId>` token on its syntax alone, so a guessed
|
|
337
|
+
* node id would otherwise reach Run as a widget that silently never fills.
|
|
338
|
+
*/
|
|
339
|
+
function bindingIssues(appSpec, workflows) {
|
|
340
|
+
if (!appSpec)
|
|
341
|
+
return [];
|
|
342
|
+
const ioByOperation = new Map(workflows.map((workflow) => [workflow.operationId, workflow.io]));
|
|
343
|
+
const issues = [];
|
|
344
|
+
for (const widget of appSpec.widgets) {
|
|
345
|
+
const ref = parseBinding(widget.binding);
|
|
346
|
+
if (!ref || (ref.kind !== "input" && ref.kind !== "output"))
|
|
347
|
+
continue;
|
|
348
|
+
const io = ioByOperation.get(ref.operationId);
|
|
349
|
+
if (!io)
|
|
350
|
+
continue;
|
|
351
|
+
const nodes = ref.kind === "input" ? io.inputs : io.outputs;
|
|
352
|
+
if (nodes.some((node) => node.nodeId === ref.nodeId))
|
|
353
|
+
continue;
|
|
354
|
+
issues.push(issue("check", "binding_node_missing", `${widget.type} "${widget.id}" binds "${widget.binding}", but operation "${ref.operationId}" has no ${ref.kind} node "${ref.nodeId}" (it has: ${nodes.map((n) => `${n.nodeId} (${n.name})`).join(", ") || "none"})`, { widget: widget.id, operation: ref.operationId }));
|
|
355
|
+
}
|
|
356
|
+
return issues;
|
|
357
|
+
}
|
|
358
|
+
/** What one expectation asserts, checked against what the widget ended up showing. */
|
|
359
|
+
function checkExpectation(expectation, state, interaction) {
|
|
360
|
+
if (!state) {
|
|
361
|
+
return issue("run", "expect_widget_missing", `interaction "${interaction}" expects widget "${expectation.widget}", which the app does not have`, { widget: expectation.widget, interaction });
|
|
362
|
+
}
|
|
363
|
+
// The check sees what the user would see: the rendered `format` template
|
|
364
|
+
// when the widget has one, else the bound value.
|
|
365
|
+
const shown = state.display ?? state.value;
|
|
366
|
+
const fail = (why) => issue("run", "expect_failed", `interaction "${interaction}": ${why}`, {
|
|
367
|
+
widget: expectation.widget,
|
|
368
|
+
interaction
|
|
369
|
+
});
|
|
370
|
+
if (expectation.check === "nonEmpty") {
|
|
371
|
+
return state.hasValue
|
|
372
|
+
? null
|
|
373
|
+
: fail(`widget "${expectation.widget}" received no value`);
|
|
374
|
+
}
|
|
375
|
+
if (expectation.check === "equals") {
|
|
376
|
+
return JSON.stringify(shown) === JSON.stringify(expectation.value)
|
|
377
|
+
? null
|
|
378
|
+
: fail(`widget "${expectation.widget}" shows ${JSON.stringify(shown)}, expected ${JSON.stringify(expectation.value)}`);
|
|
379
|
+
}
|
|
380
|
+
const pattern = String(expectation.value ?? "");
|
|
381
|
+
try {
|
|
382
|
+
return new RegExp(pattern).test(String(shown ?? ""))
|
|
383
|
+
? null
|
|
384
|
+
: fail(`widget "${expectation.widget}" shows ${JSON.stringify(shown)}, which does not match /${pattern}/`);
|
|
385
|
+
}
|
|
386
|
+
catch (error) {
|
|
387
|
+
return fail(`expectation pattern /${pattern}/ is not a regular expression: ${error instanceof Error ? error.message : String(error)}`);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* What each widget was left showing, in the spec's vocabulary — the evidence
|
|
392
|
+
* the Judge reads. The value is what the user would see: the rendered `format`
|
|
393
|
+
* template when the widget has one, else the bound value.
|
|
394
|
+
*/
|
|
395
|
+
function judgeWidgetStates(spec, report) {
|
|
396
|
+
return report.widgets.map((widget) => {
|
|
397
|
+
const declared = spec.widgets.find((candidate) => placedWidget(report.spec, candidate)?.id === widget.id);
|
|
398
|
+
const state = {
|
|
399
|
+
widget: declared?.role ?? widget.id,
|
|
400
|
+
type: widget.type,
|
|
401
|
+
value: widget.display ?? widget.value
|
|
402
|
+
};
|
|
403
|
+
if (declared?.label)
|
|
404
|
+
state.label = declared.label;
|
|
405
|
+
return state;
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* The supervision rollup for a Run stage, or null when nothing was decided.
|
|
410
|
+
*
|
|
411
|
+
* A build never configures a supervisor itself: the handle rides on
|
|
412
|
+
* `ExecutionSessionOptions.supervisor` inside whatever `runOnServer` the host
|
|
413
|
+
* injected (`--supervise` on the CLI), so the Run stage learns what was decided
|
|
414
|
+
* the same way every other surface does — by reading the run reports back.
|
|
415
|
+
*/
|
|
416
|
+
const supervisionOf = (byInteraction) => {
|
|
417
|
+
if (byInteraction.length === 0)
|
|
418
|
+
return null;
|
|
419
|
+
const all = byInteraction.flatMap((entry) => entry.interventions);
|
|
420
|
+
return { summary: summarizeInterventions(all), byInteraction };
|
|
421
|
+
};
|
|
422
|
+
/** Run: one simulator pass per interaction, then that interaction's expectations. */
|
|
423
|
+
async function runRunStage(opts, spec, bundle, interactions, appSpec, round) {
|
|
424
|
+
const startedAt = Date.now();
|
|
425
|
+
const issues = [];
|
|
426
|
+
const judged = [];
|
|
427
|
+
const supervised = [];
|
|
428
|
+
let last = null;
|
|
429
|
+
for (const interaction of interactions) {
|
|
430
|
+
if (opts.signal?.aborted)
|
|
431
|
+
break;
|
|
432
|
+
const bound = bindSteps(interaction.steps, spec, appSpec);
|
|
433
|
+
issues.push(...bound.issues);
|
|
434
|
+
if (errorsOf(bound.issues).length > 0)
|
|
435
|
+
continue;
|
|
436
|
+
const simulateOptions = {
|
|
437
|
+
interact: bound.steps,
|
|
438
|
+
run: true
|
|
439
|
+
};
|
|
440
|
+
if (opts.runTimeoutMs !== undefined) {
|
|
441
|
+
simulateOptions.timeoutMs = opts.runTimeoutMs;
|
|
442
|
+
}
|
|
443
|
+
const deps = simulationDeps(opts);
|
|
444
|
+
if (opts.onLog)
|
|
445
|
+
deps.onLog = opts.onLog;
|
|
446
|
+
const onRunMessages = opts.onRunMessages;
|
|
447
|
+
if (onRunMessages) {
|
|
448
|
+
deps.onRunMessages = (index, messages) => onRunMessages(interaction.name, index, messages);
|
|
449
|
+
}
|
|
450
|
+
const report = await simulateApp(bundleTarget(bundle, opts.buildId ?? "app-build"), simulateOptions, deps);
|
|
451
|
+
last = report;
|
|
452
|
+
judged.push({ interaction, widgets: judgeWidgetStates(spec, report) });
|
|
453
|
+
const interventions = report.runs.flatMap((run) => run.summary.interventions);
|
|
454
|
+
if (interventions.length > 0) {
|
|
455
|
+
supervised.push({ interaction: interaction.name, interventions });
|
|
456
|
+
}
|
|
457
|
+
for (const run of report.runs) {
|
|
458
|
+
for (const line of collectInterventionWarnings(`interaction "${interaction.name}"`, run.summary)) {
|
|
459
|
+
issues.push(issue("run", "supervised", line, { interaction: interaction.name }, "warning"));
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
for (const [index, step] of report.interactions.entries()) {
|
|
463
|
+
if (!step.error)
|
|
464
|
+
continue;
|
|
465
|
+
issues.push(issue("run", "step_failed", `interaction "${interaction.name}" step ${step.step}: ${step.error}`, { interaction: interaction.name, step: index }));
|
|
466
|
+
}
|
|
467
|
+
// A supervised run's shape is a decision, not a defect: once the supervisor
|
|
468
|
+
// has skipped or repaired something, what the run then produced less of is
|
|
469
|
+
// what was asked for, and no repair round can author it away. The
|
|
470
|
+
// simulator's run issues are recorded as warnings on such a run — the
|
|
471
|
+
// interaction's expectations below stay errors, because they are the
|
|
472
|
+
// contract the spec pinned and supervision does not excuse them.
|
|
473
|
+
const runIssueSeverity = interventions.length > 0 ? "warning" : "error";
|
|
474
|
+
for (const problem of report.verdict.issues) {
|
|
475
|
+
issues.push(issue("run", "run_issue", `interaction "${interaction.name}": ${problem}`, { widget: widgetOf(problem), interaction: interaction.name }, runIssueSeverity));
|
|
476
|
+
}
|
|
477
|
+
for (const expectation of interaction.expect) {
|
|
478
|
+
const declared = resolveSpecWidget(spec, expectation.widget);
|
|
479
|
+
const placed = declared ? placedWidget(report.spec, declared) : null;
|
|
480
|
+
const state = report.widgets.find((w) => w.id === placed?.id);
|
|
481
|
+
const failure = checkExpectation(expectation, state, interaction.name);
|
|
482
|
+
if (failure)
|
|
483
|
+
issues.push(failure);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
return {
|
|
487
|
+
report: last,
|
|
488
|
+
issues,
|
|
489
|
+
judged,
|
|
490
|
+
supervision: supervisionOf(supervised),
|
|
491
|
+
record: record("run", round, startedAt, issues, `${interactions.length} interaction(s), ${errorsOf(issues).length} failure(s)`)
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* What a build whose Judge never ran cannot claim. Kept out of the verdict once
|
|
496
|
+
* a judge scores the interactions, so `notSimulated` stays accurate either way.
|
|
497
|
+
*/
|
|
498
|
+
const JUDGE_SKIPPED_NOTE = "Whether each interaction achieves the spec's intent — the judge stage did not run for this build, so no model scored the app against what was asked.";
|
|
499
|
+
/** The `notSimulated` list, with the judge note only when nothing judged. */
|
|
500
|
+
const notSimulated = (appDebug, judge) => [
|
|
501
|
+
...(appDebug?.notSimulated ?? []),
|
|
502
|
+
...(judge ? [] : [JUDGE_SKIPPED_NOTE])
|
|
503
|
+
];
|
|
504
|
+
// ---------------------------------------------------------------------------
|
|
505
|
+
// The orchestrator
|
|
506
|
+
// ---------------------------------------------------------------------------
|
|
507
|
+
/** A build that ended before it produced a bundle. */
|
|
508
|
+
function failedReport(target, spec, interactions, stages, repairs, appDebug, reason, judge = null, supervision = null) {
|
|
509
|
+
return {
|
|
510
|
+
target,
|
|
511
|
+
spec: spec ?? {
|
|
512
|
+
title: "",
|
|
513
|
+
operations: [],
|
|
514
|
+
variables: [],
|
|
515
|
+
widgets: [],
|
|
516
|
+
interactions: []
|
|
517
|
+
},
|
|
518
|
+
interactions,
|
|
519
|
+
stages,
|
|
520
|
+
repairs,
|
|
521
|
+
appDebug,
|
|
522
|
+
judge,
|
|
523
|
+
supervision,
|
|
524
|
+
verdict: {
|
|
525
|
+
ok: false,
|
|
526
|
+
reason,
|
|
527
|
+
notSimulated: notSimulated(appDebug, judge)
|
|
528
|
+
},
|
|
529
|
+
cost: costOf(stages),
|
|
530
|
+
bundle: null
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Build a mini app from a prompt or a spec file.
|
|
535
|
+
*
|
|
536
|
+
* Resolves to a {@link BuildReport} in every case — a build that fails says why
|
|
537
|
+
* and carries its evidence; it never throws for a failure the report can
|
|
538
|
+
* describe.
|
|
539
|
+
*/
|
|
540
|
+
export async function buildApp(opts) {
|
|
541
|
+
const buildId = opts.buildId ?? `app-build-${randomUUID()}`;
|
|
542
|
+
return withSpan("app.build", {
|
|
543
|
+
"app.build.id": buildId,
|
|
544
|
+
"app.build.model": opts.model,
|
|
545
|
+
"app.build.provider": opts.provider.provider
|
|
546
|
+
}, async () => {
|
|
547
|
+
const report = await buildAppImpl({ ...opts, buildId });
|
|
548
|
+
await recordBuildCost(report, opts, buildId);
|
|
549
|
+
return report;
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
async function buildAppImpl(opts) {
|
|
553
|
+
const startedAt = Date.now();
|
|
554
|
+
const log_ = opts.onLog ?? (() => { });
|
|
555
|
+
const maxRepairs = opts.maxRepairs ?? DEFAULT_MAX_REPAIRS;
|
|
556
|
+
const timeoutMs = opts.timeoutMs ?? DEFAULT_BUILD_TIMEOUT_MS;
|
|
557
|
+
const costCapUsd = opts.costCapUsd ?? DEFAULT_BUILD_COST_CAP_USD;
|
|
558
|
+
const budget = opts.turnBudget ??
|
|
559
|
+
new CostCappedTurnBudget({
|
|
560
|
+
capUsd: costCapUsd,
|
|
561
|
+
maxOutputTokens: BUILD_MAX_OUTPUT_TOKENS
|
|
562
|
+
});
|
|
563
|
+
const options = { ...opts, turnBudget: budget };
|
|
564
|
+
const costAtStart = opts.provider.getTotalCost();
|
|
565
|
+
/** What the Judge spent, when it runs on a provider of its own. */
|
|
566
|
+
let judgeSpentUsd = 0;
|
|
567
|
+
/**
|
|
568
|
+
* What the build has spent. The budget's own number is authoritative where a
|
|
569
|
+
* provider reserves against it; a provider that does not is still held to the
|
|
570
|
+
* cap by its own running cost, so the ceiling never becomes advisory.
|
|
571
|
+
*/
|
|
572
|
+
const spentUsd = () => Math.max(budget.spentUsd, opts.provider.getTotalCost() - costAtStart) +
|
|
573
|
+
judgeSpentUsd;
|
|
574
|
+
const judgeEnabled = opts.judge?.enabled !== false;
|
|
575
|
+
const judgeProvider = opts.judge?.provider ?? opts.provider;
|
|
576
|
+
const judgeModel = opts.judge?.model ?? opts.model;
|
|
577
|
+
const target = { prompt: opts.prompt ?? "" };
|
|
578
|
+
if (opts.specPath)
|
|
579
|
+
target.specPath = opts.specPath;
|
|
580
|
+
const stages = [];
|
|
581
|
+
const repairs = [];
|
|
582
|
+
/** Why the build must stop before the next stage, or null to continue. */
|
|
583
|
+
const budgetStop = () => {
|
|
584
|
+
if (opts.signal?.aborted)
|
|
585
|
+
return "cancelled";
|
|
586
|
+
if (Date.now() - startedAt > timeoutMs) {
|
|
587
|
+
return `wall-clock budget exhausted (${timeoutMs}ms)`;
|
|
588
|
+
}
|
|
589
|
+
if (spentUsd() >= costCapUsd) {
|
|
590
|
+
return `cost budget exhausted ($${costCapUsd.toFixed(2)})`;
|
|
591
|
+
}
|
|
592
|
+
return null;
|
|
593
|
+
};
|
|
594
|
+
// ---- Spec ---------------------------------------------------------------
|
|
595
|
+
const specResult = await withSpan("app.build.spec", {}, async () => {
|
|
596
|
+
if (opts.spec) {
|
|
597
|
+
return {
|
|
598
|
+
spec: opts.spec,
|
|
599
|
+
record: record("spec", 0, Date.now(), [], "supplied by the caller")
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
if (opts.specPath)
|
|
603
|
+
return specFromFile(opts.specPath);
|
|
604
|
+
if (!opts.prompt) {
|
|
605
|
+
throw new Error("buildApp needs one of: prompt, specPath, spec");
|
|
606
|
+
}
|
|
607
|
+
const specOptions = {
|
|
608
|
+
prompt: opts.prompt,
|
|
609
|
+
provider: options.provider,
|
|
610
|
+
model: options.model,
|
|
611
|
+
context: options.context,
|
|
612
|
+
turnBudget: budget
|
|
613
|
+
};
|
|
614
|
+
if (opts.signal)
|
|
615
|
+
specOptions.signal = opts.signal;
|
|
616
|
+
return runSpecStage(specOptions);
|
|
617
|
+
});
|
|
618
|
+
stages.push(specResult.record);
|
|
619
|
+
const spec = specResult.spec;
|
|
620
|
+
if (!spec) {
|
|
621
|
+
return failedReport(target, null, [], stages, repairs, null, specResult.record.issues[0]?.message ??
|
|
622
|
+
"the prompt could not be specified");
|
|
623
|
+
}
|
|
624
|
+
log_(`spec: ${spec.title} — ${spec.operations.length} operation(s)`);
|
|
625
|
+
const interactions = completeInteractions(spec);
|
|
626
|
+
// ---- Plan ---------------------------------------------------------------
|
|
627
|
+
const stopAfterSpec = budgetStop();
|
|
628
|
+
if (stopAfterSpec) {
|
|
629
|
+
return failedReport(target, spec, interactions, stages, repairs, null, stopAfterSpec);
|
|
630
|
+
}
|
|
631
|
+
const planned = await withSpan("app.build.plan", {}, () => runPlanStage(options, { spec, round: 0 }));
|
|
632
|
+
stages.push(planned.record);
|
|
633
|
+
if (errorsOf(planned.record.issues).length > 0) {
|
|
634
|
+
return failedReport(target, spec, interactions, stages, repairs, null, `planning failed: ${errorsOf(planned.record.issues)[0]?.message ?? ""}`);
|
|
635
|
+
}
|
|
636
|
+
const workflows = planned.workflows;
|
|
637
|
+
log_(`plan: ${workflows.length} workflow(s)`);
|
|
638
|
+
// ---- Author → Check → Run → Judge, with repairs --------------------------
|
|
639
|
+
let document;
|
|
640
|
+
let complaint;
|
|
641
|
+
let appDebug = null;
|
|
642
|
+
let bundle = null;
|
|
643
|
+
let judge = null;
|
|
644
|
+
/** What supervision decided in the latest Run stage, alongside `appDebug`. */
|
|
645
|
+
let supervision = null;
|
|
646
|
+
/** Fingerprints per round, newest last — the oscillation guard's memory. */
|
|
647
|
+
const seen = [];
|
|
648
|
+
for (let round = 0; round <= maxRepairs; round++) {
|
|
649
|
+
const stop = budgetStop();
|
|
650
|
+
if (stop) {
|
|
651
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, stop, judge, supervision);
|
|
652
|
+
}
|
|
653
|
+
const authorWorkflows = workflows.map((workflow) => ({
|
|
654
|
+
operationId: workflow.operationId,
|
|
655
|
+
key: workflow.key,
|
|
656
|
+
io: workflow.io
|
|
657
|
+
}));
|
|
658
|
+
const author = () => withSpan("app.build.author", { "app.build.round": round }, () => {
|
|
659
|
+
const authorOptions = {
|
|
660
|
+
spec,
|
|
661
|
+
workflows: authorWorkflows,
|
|
662
|
+
provider: options.provider,
|
|
663
|
+
model: options.model,
|
|
664
|
+
round,
|
|
665
|
+
maxTurns: opts.maxAuthorTurns ?? DEFAULT_AUTHOR_TURNS,
|
|
666
|
+
turnBudget: budget
|
|
667
|
+
};
|
|
668
|
+
if (document)
|
|
669
|
+
authorOptions.resumeFrom = document;
|
|
670
|
+
if (complaint)
|
|
671
|
+
authorOptions.complaint = complaint;
|
|
672
|
+
if (opts.signal)
|
|
673
|
+
authorOptions.signal = opts.signal;
|
|
674
|
+
if (opts.onLog)
|
|
675
|
+
authorOptions.onLog = opts.onLog;
|
|
676
|
+
return runAuthorStage(authorOptions);
|
|
677
|
+
});
|
|
678
|
+
let authored = await author();
|
|
679
|
+
stages.push(authored.record);
|
|
680
|
+
// A provider that errored is infrastructure, not a defect the Author can
|
|
681
|
+
// repair: it gets one retry, and a second failure ends the build. Routing
|
|
682
|
+
// it through the complaint loop would ask the model to "fix: connection
|
|
683
|
+
// reset" and, since its fingerprint never varies, read as oscillation.
|
|
684
|
+
let providerError = providerErrorOf(authored.record.issues);
|
|
685
|
+
if (providerError && !budgetStop()) {
|
|
686
|
+
log_(`author: provider error (${providerError}) — retrying once`);
|
|
687
|
+
authored = await author();
|
|
688
|
+
stages.push(authored.record);
|
|
689
|
+
providerError = providerErrorOf(authored.record.issues);
|
|
690
|
+
}
|
|
691
|
+
if (providerError) {
|
|
692
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, `authoring failed: ${providerError}`, judge, supervision);
|
|
693
|
+
}
|
|
694
|
+
document = authored.document;
|
|
695
|
+
if (opts.signal?.aborted) {
|
|
696
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, "cancelled", judge, supervision);
|
|
697
|
+
}
|
|
698
|
+
bundle = assembleBundle(spec, authored.document, workflows, opts.prompt ?? spec.title);
|
|
699
|
+
const checked = await withSpan("app.build.check", { "app.build.round": round }, () => runCheckStage(options, spec, bundle, workflows, round));
|
|
700
|
+
stages.push(checked.record);
|
|
701
|
+
appDebug = checked.report;
|
|
702
|
+
const roundIssues = [
|
|
703
|
+
...authored.record.issues,
|
|
704
|
+
...checked.issues
|
|
705
|
+
];
|
|
706
|
+
if (errorsOf(checked.issues).length === 0) {
|
|
707
|
+
const ran = await withSpan("app.build.run", { "app.build.round": round }, () => runRunStage(options, spec, bundle, interactions, checked.report.spec, round));
|
|
708
|
+
stages.push(ran.record);
|
|
709
|
+
if (ran.report)
|
|
710
|
+
appDebug = ran.report;
|
|
711
|
+
supervision = ran.supervision;
|
|
712
|
+
roundIssues.push(...ran.issues);
|
|
713
|
+
if (errorsOf(ran.issues).length === 0) {
|
|
714
|
+
// The judge only ever sees a Check+Run-green app: nothing is scored for
|
|
715
|
+
// intent until it demonstrably works.
|
|
716
|
+
const judged = judgeEnabled
|
|
717
|
+
? await withSpan("app.build.judge", { "app.build.round": round, "app.build.judge.model": judgeModel }, () => {
|
|
718
|
+
const judgeOptions = {
|
|
719
|
+
spec,
|
|
720
|
+
interactions: ran.judged,
|
|
721
|
+
provider: judgeProvider,
|
|
722
|
+
model: judgeModel,
|
|
723
|
+
round
|
|
724
|
+
};
|
|
725
|
+
if (opts.prompt !== undefined)
|
|
726
|
+
judgeOptions.prompt = opts.prompt;
|
|
727
|
+
if (opts.judge?.timeoutMs !== undefined) {
|
|
728
|
+
judgeOptions.timeoutMs = opts.judge.timeoutMs;
|
|
729
|
+
}
|
|
730
|
+
if (opts.signal)
|
|
731
|
+
judgeOptions.signal = opts.signal;
|
|
732
|
+
if (opts.onLog)
|
|
733
|
+
judgeOptions.onLog = opts.onLog;
|
|
734
|
+
return runJudgeStage(judgeOptions);
|
|
735
|
+
})
|
|
736
|
+
: null;
|
|
737
|
+
if (judged) {
|
|
738
|
+
stages.push(judged.record);
|
|
739
|
+
judge = judged.judge;
|
|
740
|
+
// Only a judge on its own provider adds spend the builder's running
|
|
741
|
+
// cost does not already carry.
|
|
742
|
+
if (judgeProvider !== opts.provider) {
|
|
743
|
+
judgeSpentUsd += judged.record.costUsd;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
else {
|
|
747
|
+
stages.push({
|
|
748
|
+
stage: "judge",
|
|
749
|
+
round,
|
|
750
|
+
status: "skipped",
|
|
751
|
+
startedAt: new Date().toISOString(),
|
|
752
|
+
durationMs: 0,
|
|
753
|
+
issues: [],
|
|
754
|
+
costUsd: 0,
|
|
755
|
+
detail: "skipped (--no-judge)"
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
const judgeIssues = judged?.record.issues ?? [];
|
|
759
|
+
if (judgeIssues.length === 0) {
|
|
760
|
+
// A build that overran its dollar cap is not a green build, however
|
|
761
|
+
// good the app is: the money is spent, and the report says so
|
|
762
|
+
// rather than handing back a bundle that cost more than allowed.
|
|
763
|
+
if (spentUsd() >= costCapUsd) {
|
|
764
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, `cost budget exhausted ($${costCapUsd.toFixed(2)}) — the app was built but overran its cap`, judge, supervision);
|
|
765
|
+
}
|
|
766
|
+
if (opts.signal?.aborted) {
|
|
767
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, "cancelled", judge, supervision);
|
|
768
|
+
}
|
|
769
|
+
return okReport(target, spec, interactions, stages, repairs, appDebug, judge, supervision, bundle, round);
|
|
770
|
+
}
|
|
771
|
+
roundIssues.push(...judgeIssues);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
// ---- The round failed: complain, or stop ------------------------------
|
|
775
|
+
const errors = errorsOf(roundIssues);
|
|
776
|
+
const fingerprints = errors.map(issueFingerprint);
|
|
777
|
+
const current = new Set(fingerprints);
|
|
778
|
+
const previous = seen[seen.length - 1];
|
|
779
|
+
const before = seen[seen.length - 2];
|
|
780
|
+
if (previous && before) {
|
|
781
|
+
const reappeared = [...current].filter((fp) => !previous.has(fp) && before.has(fp));
|
|
782
|
+
if (reappeared.length > 0) {
|
|
783
|
+
seen.push(current);
|
|
784
|
+
repairs.push({ round, issues: errors, fingerprints });
|
|
785
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, `oscillating: ${reappeared.join(", ")} was fixed in round ${round - 1} and is back in round ${round}`, judge, supervision);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
seen.push(current);
|
|
789
|
+
if (round === maxRepairs) {
|
|
790
|
+
repairs.push({ round, issues: errors, fingerprints });
|
|
791
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, `repair budget exhausted (${maxRepairs} repair round(s)); ${errors.length} issue(s) remain: ${errors[0]?.message ?? ""}`, judge, supervision);
|
|
792
|
+
}
|
|
793
|
+
complaint = { round: round + 1, issues: errors, fingerprints };
|
|
794
|
+
repairs.push(complaint);
|
|
795
|
+
log_(`round ${round}: ${errors.length} issue(s) — repairing`);
|
|
796
|
+
// A complaint that names a graph node the workflow lacks is Plan's, so that
|
|
797
|
+
// one operation is replanned before Author sees the complaint again.
|
|
798
|
+
const replan = new Set(errors
|
|
799
|
+
.filter((i) => PLAN_ROUTED_CODES.has(i.code) && i.operation)
|
|
800
|
+
.map((i) => i.operation));
|
|
801
|
+
if (replan.size > 0) {
|
|
802
|
+
const deltas = new Map([...replan].map((operationId) => [
|
|
803
|
+
operationId,
|
|
804
|
+
`The app needs these bindings to resolve: ${errors
|
|
805
|
+
.filter((i) => i.operation === operationId)
|
|
806
|
+
.map((i) => i.message)
|
|
807
|
+
.join(" ")}`
|
|
808
|
+
]));
|
|
809
|
+
const replanned = await withSpan("app.build.plan", { "app.build.round": round + 1 }, () => runPlanStage(options, {
|
|
810
|
+
spec,
|
|
811
|
+
round: round + 1,
|
|
812
|
+
only: replan,
|
|
813
|
+
deltas
|
|
814
|
+
}));
|
|
815
|
+
stages.push(replanned.record);
|
|
816
|
+
// A replan that failed leaves the stale graph in place, so the next round
|
|
817
|
+
// would author against the same missing node and burn every remaining
|
|
818
|
+
// round on a complaint nothing can satisfy. Plan errors are terminal on
|
|
819
|
+
// the first pass; they are terminal here too.
|
|
820
|
+
const replanErrors = errorsOf(replanned.record.issues);
|
|
821
|
+
if (replanErrors.length > 0) {
|
|
822
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, `replanning failed: ${replanErrors[0]?.message ?? ""}`, judge, supervision);
|
|
823
|
+
}
|
|
824
|
+
for (const workflow of replanned.workflows) {
|
|
825
|
+
const index = workflows.findIndex((w) => w.operationId === workflow.operationId);
|
|
826
|
+
if (index >= 0)
|
|
827
|
+
workflows[index] = workflow;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
// Unreachable: the loop returns on its last round.
|
|
832
|
+
return failedReport(target, spec, interactions, stages, repairs, appDebug, "the build loop ended without a verdict", judge, supervision);
|
|
833
|
+
}
|
|
834
|
+
function okReport(target, spec, interactions, stages, repairs, appDebug, judge, supervision, bundle, round) {
|
|
835
|
+
return {
|
|
836
|
+
target,
|
|
837
|
+
spec,
|
|
838
|
+
interactions,
|
|
839
|
+
stages,
|
|
840
|
+
repairs,
|
|
841
|
+
appDebug,
|
|
842
|
+
judge,
|
|
843
|
+
supervision,
|
|
844
|
+
verdict: {
|
|
845
|
+
ok: true,
|
|
846
|
+
reason: round === 0
|
|
847
|
+
? "green on the first pass"
|
|
848
|
+
: `green after ${round} repair round(s)`,
|
|
849
|
+
notSimulated: notSimulated(appDebug, judge)
|
|
850
|
+
},
|
|
851
|
+
cost: costOf(stages),
|
|
852
|
+
bundle
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Write the build's provider spend to the prediction ledger `nodetool costs`
|
|
857
|
+
* reads: one row per billable stage execution, attributed to the build id and
|
|
858
|
+
* tagged `app-build` in `node_type`. Best-effort — a ledger failure never
|
|
859
|
+
* changes a build's verdict.
|
|
860
|
+
*/
|
|
861
|
+
async function recordBuildCost(report, opts, buildId) {
|
|
862
|
+
if (!opts.ledger)
|
|
863
|
+
return 0;
|
|
864
|
+
const billable = report.stages.filter((stage) => stage.costUsd > 0);
|
|
865
|
+
if (billable.length === 0)
|
|
866
|
+
return 0;
|
|
867
|
+
const { Prediction } = await import("@nodetool-ai/models");
|
|
868
|
+
let written = 0;
|
|
869
|
+
for (const stage of billable) {
|
|
870
|
+
try {
|
|
871
|
+
await Prediction.create({
|
|
872
|
+
user_id: opts.ledger.userId,
|
|
873
|
+
// A stage that ran somewhere else — the Judge, on its own model — bills
|
|
874
|
+
// where it ran, not where the builder did.
|
|
875
|
+
provider: stage.provider ?? opts.provider.provider,
|
|
876
|
+
model: stage.model ?? opts.model,
|
|
877
|
+
node_id: buildId,
|
|
878
|
+
node_type: "app-build",
|
|
879
|
+
workflow_id: opts.ledger.workflowId ?? null,
|
|
880
|
+
cost: stage.costUsd,
|
|
881
|
+
status: "completed",
|
|
882
|
+
metadata: {
|
|
883
|
+
kind: "app-build",
|
|
884
|
+
build_id: buildId,
|
|
885
|
+
stage: stage.stage,
|
|
886
|
+
round: stage.round
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
written += 1;
|
|
890
|
+
}
|
|
891
|
+
catch (error) {
|
|
892
|
+
log.warn("Failed to record app-build cost", {
|
|
893
|
+
buildId,
|
|
894
|
+
stage: stage.stage,
|
|
895
|
+
error: error instanceof Error ? error.message : String(error)
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
return written;
|
|
900
|
+
}
|
|
901
|
+
//# sourceMappingURL=build.js.map
|