@nodetool-ai/agents 0.7.0-rc.22 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/analysis/audio-dsp.d.ts +223 -0
- package/dist/analysis/audio-dsp.d.ts.map +1 -0
- package/dist/analysis/audio-dsp.js +642 -0
- package/dist/analysis/audio-dsp.js.map +1 -0
- package/dist/analysis/media-decode.d.ts +85 -0
- package/dist/analysis/media-decode.d.ts.map +1 -0
- package/dist/analysis/media-decode.js +199 -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 +91 -0
- package/dist/author-graph.d.ts.map +1 -0
- package/dist/author-graph.js +319 -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/adapters.d.ts +36 -0
- package/dist/capabilities/adapters.d.ts.map +1 -0
- package/dist/capabilities/adapters.js +44 -0
- package/dist/capabilities/adapters.js.map +1 -0
- package/dist/capabilities/agents.d.ts +78 -0
- package/dist/capabilities/agents.d.ts.map +1 -0
- package/dist/capabilities/agents.js +366 -0
- package/dist/capabilities/agents.js.map +1 -0
- package/dist/capabilities/agents.specs.d.ts +27 -0
- package/dist/capabilities/agents.specs.d.ts.map +1 -0
- package/dist/capabilities/agents.specs.js +243 -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 +812 -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 +413 -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 +65 -0
- package/dist/capabilities/args.d.ts.map +1 -0
- package/dist/capabilities/args.js +218 -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 +56 -0
- package/dist/capabilities/code.d.ts.map +1 -0
- package/dist/capabilities/code.js +327 -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/example-timelines.d.ts +3 -0
- package/dist/capabilities/example-timelines.d.ts.map +1 -0
- package/dist/capabilities/example-timelines.js +191 -0
- package/dist/capabilities/example-timelines.js.map +1 -0
- package/dist/capabilities/example-timelines.specs.d.ts +5 -0
- package/dist/capabilities/example-timelines.specs.d.ts.map +1 -0
- package/dist/capabilities/example-timelines.specs.js +53 -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/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 +12 -0
- package/dist/capabilities/game.d.ts.map +1 -0
- package/dist/capabilities/game.js +1262 -0
- package/dist/capabilities/game.js.map +1 -0
- package/dist/capabilities/game.specs.d.ts +3 -0
- package/dist/capabilities/game.specs.d.ts.map +1 -0
- package/dist/capabilities/game.specs.js +96 -0
- package/dist/capabilities/game.specs.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/gate-tools.d.ts +18 -0
- package/dist/capabilities/gate-tools.d.ts.map +1 -0
- package/dist/capabilities/gate-tools.js +66 -0
- package/dist/capabilities/gate-tools.js.map +1 -0
- package/dist/capabilities/generations.d.ts +79 -0
- package/dist/capabilities/generations.d.ts.map +1 -0
- package/dist/capabilities/generations.js +382 -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 +89 -0
- package/dist/capabilities/invoke.d.ts.map +1 -0
- package/dist/capabilities/invoke.js +214 -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 +123 -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 +103 -0
- package/dist/capabilities/jobs.specs.js.map +1 -0
- package/dist/capabilities/js-scripts.d.ts +90 -0
- package/dist/capabilities/js-scripts.d.ts.map +1 -0
- package/dist/capabilities/js-scripts.js +700 -0
- package/dist/capabilities/js-scripts.js.map +1 -0
- package/dist/capabilities/js-scripts.specs.d.ts +50 -0
- package/dist/capabilities/js-scripts.specs.d.ts.map +1 -0
- package/dist/capabilities/js-scripts.specs.js +344 -0
- package/dist/capabilities/js-scripts.specs.js.map +1 -0
- package/dist/capabilities/lazy-tool.d.ts +42 -0
- package/dist/capabilities/lazy-tool.d.ts.map +1 -0
- package/dist/capabilities/lazy-tool.js +88 -0
- package/dist/capabilities/lazy-tool.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 +121 -0
- package/dist/capabilities/media.d.ts.map +1 -0
- package/dist/capabilities/media.js +2217 -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 +803 -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 +109 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +445 -0
- package/dist/capabilities/registry.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 +1789 -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 +1163 -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 +269 -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/storyboards.d.ts +68 -0
- package/dist/capabilities/storyboards.d.ts.map +1 -0
- package/dist/capabilities/storyboards.js +2246 -0
- package/dist/capabilities/storyboards.js.map +1 -0
- package/dist/capabilities/storyboards.specs.d.ts +42 -0
- package/dist/capabilities/storyboards.specs.d.ts.map +1 -0
- package/dist/capabilities/storyboards.specs.js +418 -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-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-native-media.d.ts +4 -0
- package/dist/capabilities/timeline-native-media.d.ts.map +1 -0
- package/dist/capabilities/timeline-native-media.js +920 -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 +190 -0
- package/dist/capabilities/timelines.d.ts.map +1 -0
- package/dist/capabilities/timelines.js +2326 -0
- package/dist/capabilities/timelines.js.map +1 -0
- package/dist/capabilities/timelines.specs.d.ts +134 -0
- package/dist/capabilities/timelines.specs.d.ts.map +1 -0
- package/dist/capabilities/timelines.specs.js +1362 -0
- package/dist/capabilities/timelines.specs.js.map +1 -0
- package/dist/capabilities/types.d.ts +197 -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 +128 -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 +1530 -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 +852 -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 +147 -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 +1176 -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 +77 -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 +408 -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 +2056 -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 +197 -0
- package/dist/codeact/tool-api.d.ts.map +1 -0
- package/dist/codeact/tool-api.js +445 -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 +29 -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-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 +124 -0
- package/dist/evals/surfaces/sketch.d.ts.map +1 -0
- package/dist/evals/surfaces/sketch.js +1298 -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 +416 -0
- package/dist/evals/surfaces/timeline.d.ts.map +1 -0
- package/dist/evals/surfaces/timeline.js +3267 -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 +57 -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 +234 -0
- package/dist/evals/tool-loop-eval.d.ts.map +1 -0
- package/dist/evals/tool-loop-eval.js +373 -0
- package/dist/evals/tool-loop-eval.js.map +1 -0
- package/dist/evals/tool-loop-permission.d.ts +43 -0
- package/dist/evals/tool-loop-permission.d.ts.map +1 -0
- package/dist/evals/tool-loop-permission.js +76 -0
- package/dist/evals/tool-loop-permission.js.map +1 -0
- package/dist/game-examples.d.ts +447 -0
- package/dist/game-examples.d.ts.map +1 -0
- package/dist/game-examples.js +187 -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 +197 -60
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +153 -60
- package/dist/index.js.map +1 -1
- 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 +1201 -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 +307 -0
- package/dist/js-sandbox-worker/worker-entry.js.map +1 -0
- package/dist/js-sandbox.d.ts +455 -15
- package/dist/js-sandbox.d.ts.map +1 -1
- package/dist/js-sandbox.js +1961 -309
- package/dist/js-sandbox.js.map +1 -1
- package/dist/js-script-app-runner.d.ts +9 -0
- package/dist/js-script-app-runner.d.ts.map +1 -0
- package/dist/js-script-app-runner.js +49 -0
- package/dist/js-script-app-runner.js.map +1 -0
- package/dist/js-script-sandbox.d.ts +33 -0
- package/dist/js-script-sandbox.d.ts.map +1 -0
- package/dist/js-script-sandbox.js +82 -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 +79 -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-toolbelt.d.ts +13 -0
- package/dist/sandbox-toolbelt.d.ts.map +1 -0
- package/dist/sandbox-toolbelt.js +64 -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 +27 -0
- package/dist/skill-prompt.d.ts.map +1 -0
- package/dist/skill-prompt.js +61 -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 +68 -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-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 +167 -0
- package/dist/timeline-preview/frames.d.ts.map +1 -0
- package/dist/timeline-preview/frames.js +646 -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 +52 -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 +276 -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 +203 -0
- package/dist/tools/mcp-tool-support.d.ts.map +1 -0
- package/dist/tools/mcp-tool-support.js +536 -0
- package/dist/tools/mcp-tool-support.js.map +1 -0
- package/dist/tools/mcp-tools.d.ts +104 -390
- package/dist/tools/mcp-tools.d.ts.map +1 -1
- package/dist/tools/mcp-tools.js +128 -600
- 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/tsconfig.tests.tmp.tsbuildinfo +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 +112 -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,1023 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serializable description of the guest surface `nodetool.code.Code` runs on.
|
|
3
|
+
*
|
|
4
|
+
* Every bridge, helper and limit here is read out of `js-sandbox.ts` rather
|
|
5
|
+
* than restated, so a prompt or help text derived from the manifest cannot
|
|
6
|
+
* advertise an API the sandbox does not marshal. Only the human prose
|
|
7
|
+
* (signatures, descriptions) and `GUEST_GLOBALS_SNAPSHOT` — which no
|
|
8
|
+
* synchronous host call can answer — are written here.
|
|
9
|
+
*/
|
|
10
|
+
import { buildSandbox, resolveSandboxLimits, DELETED_GUEST_GLOBALS, EXPOSED_BRIDGE_NAMES, GUEST_HELPER_NAMES, DEFAULT_TIMEOUT_MS, DEFAULT_FORMAT_LOCALE, MAX_LOOP_ITERATIONS, MAX_RANDOM_BYTES, MAX_PROGRESS_CALLS, MAX_PROGRESS_MESSAGE_CHARS } from "../js-sandbox.js";
|
|
11
|
+
import { CODE_INPUTS_GLOBAL } from "@nodetool-ai/node-sdk";
|
|
12
|
+
import { MAX_CANVAS_OPS, MAX_DECODE_PIXELS, MAX_IMAGE_INPUT_BYTES, MAX_IMAGE_PIXELS } from "../sandbox-media.js";
|
|
13
|
+
import { MAX_DATA_URI_BYTES, MAX_MEDIA_REF_BYTES } from "../sandbox-media-ref.js";
|
|
14
|
+
/** The node this manifest describes. */
|
|
15
|
+
export const SANDBOX_MANIFEST_NODE_TYPE = "nodetool.code.Code";
|
|
16
|
+
/**
|
|
17
|
+
* Bridge documentation. The key set is pinned to `EXPOSED_BRIDGE_NAMES`: adding
|
|
18
|
+
* a bridge without documenting it (or documenting one that is not marshaled) is
|
|
19
|
+
* a type error.
|
|
20
|
+
*/
|
|
21
|
+
const BRIDGE_DOCS = {
|
|
22
|
+
console: {
|
|
23
|
+
name: "console",
|
|
24
|
+
kind: "namespace",
|
|
25
|
+
description: "Forwarded as log updates and collected into the run's logs array; not returned to the graph.",
|
|
26
|
+
members: [
|
|
27
|
+
{
|
|
28
|
+
name: "console.log",
|
|
29
|
+
signature: "console.log(...args) -> void",
|
|
30
|
+
description: "Append a log line.",
|
|
31
|
+
async: false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "console.warn",
|
|
35
|
+
signature: "console.warn(...args) -> void",
|
|
36
|
+
description: "Append a log line tagged [warn].",
|
|
37
|
+
async: false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "console.error",
|
|
41
|
+
signature: "console.error(...args) -> void",
|
|
42
|
+
description: "Append a log line tagged [error].",
|
|
43
|
+
async: false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "console.info",
|
|
47
|
+
signature: "console.info(...args) -> void",
|
|
48
|
+
description: "Append a log line tagged [info].",
|
|
49
|
+
async: false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
fetch: {
|
|
54
|
+
name: "fetch",
|
|
55
|
+
kind: "function",
|
|
56
|
+
description: "HTTP client. Loopback, link-local and private addresses are refused.",
|
|
57
|
+
members: [
|
|
58
|
+
{
|
|
59
|
+
name: "fetch",
|
|
60
|
+
signature: "await fetch(url, options?) -> { ok, status, statusText, headers, body, json, text, bytes, arrayBuffer }",
|
|
61
|
+
description: "`body` is the decoded text and `json` the parsed payload when the response is JSON; `text`, `bytes` and `arrayBuffer` are async methods on the response. A Uint8Array request body is sent as raw bytes, anything else non-string as JSON.",
|
|
62
|
+
async: true
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
crypto: {
|
|
67
|
+
name: "crypto",
|
|
68
|
+
kind: "namespace",
|
|
69
|
+
description: "WebCrypto-backed hashing and randomness.",
|
|
70
|
+
members: [
|
|
71
|
+
{
|
|
72
|
+
name: "crypto.randomUUID",
|
|
73
|
+
signature: "crypto.randomUUID() -> string",
|
|
74
|
+
description: "Random UUID v4.",
|
|
75
|
+
async: false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "crypto.getRandomValues",
|
|
79
|
+
signature: "crypto.getRandomValues(length) -> Uint8Array",
|
|
80
|
+
description: "Random bytes. Takes a length, not a target array.",
|
|
81
|
+
async: false
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "crypto.digest",
|
|
85
|
+
signature: "await crypto.digest(algorithm, data) -> Uint8Array // SHA-1 | SHA-256 | SHA-384 | SHA-512",
|
|
86
|
+
description: "Hash a string or Uint8Array.",
|
|
87
|
+
async: true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "crypto.hmac",
|
|
91
|
+
signature: "await crypto.hmac(algorithm, key, data) -> Uint8Array",
|
|
92
|
+
description: "HMAC over a string or Uint8Array key and payload.",
|
|
93
|
+
async: true
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
sleep: {
|
|
98
|
+
name: "sleep",
|
|
99
|
+
kind: "function",
|
|
100
|
+
description: "The only timer. setTimeout and setInterval do not exist.",
|
|
101
|
+
members: [
|
|
102
|
+
{
|
|
103
|
+
name: "sleep",
|
|
104
|
+
signature: "await sleep(ms) -> void",
|
|
105
|
+
description: "Pause, capped at 5000 ms and cut short by cancellation.",
|
|
106
|
+
async: true
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
getSecret: {
|
|
111
|
+
name: "getSecret",
|
|
112
|
+
kind: "function",
|
|
113
|
+
description: "Read a configured secret by name. Prefer nodetool.secrets.get(name), which throws when the secret is unset instead of returning undefined.",
|
|
114
|
+
members: [
|
|
115
|
+
{
|
|
116
|
+
name: "getSecret",
|
|
117
|
+
signature: "await getSecret(name) -> string | undefined",
|
|
118
|
+
description: "Returns undefined when the secret is unset or the node runs without a context. A node that declares a secret scope may read only the names it declared.",
|
|
119
|
+
async: true
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
workspace: {
|
|
124
|
+
name: "workspace",
|
|
125
|
+
kind: "namespace",
|
|
126
|
+
description: "Files under the run's workspace directory. Paths escaping it are refused; every member throws without a context.",
|
|
127
|
+
members: [
|
|
128
|
+
{
|
|
129
|
+
name: "workspace.read",
|
|
130
|
+
signature: "await workspace.read(path) -> string",
|
|
131
|
+
description: "Read a UTF-8 file.",
|
|
132
|
+
async: true,
|
|
133
|
+
requiresContext: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "workspace.write",
|
|
137
|
+
signature: "await workspace.write(path, content) -> void",
|
|
138
|
+
description: "Write a UTF-8 file, creating parent directories.",
|
|
139
|
+
async: true,
|
|
140
|
+
requiresContext: true
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "workspace.list",
|
|
144
|
+
signature: "await workspace.list(path) -> string[]",
|
|
145
|
+
description: "Directory entry names.",
|
|
146
|
+
async: true,
|
|
147
|
+
requiresContext: true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: "workspace.readBytes",
|
|
151
|
+
signature: "await workspace.readBytes(path) -> Uint8Array",
|
|
152
|
+
description: "Read a file as bytes.",
|
|
153
|
+
async: true,
|
|
154
|
+
requiresContext: true
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "workspace.writeBytes",
|
|
158
|
+
signature: "await workspace.writeBytes(path, bytes) -> void",
|
|
159
|
+
description: "Write a Uint8Array, creating parent directories.",
|
|
160
|
+
async: true,
|
|
161
|
+
requiresContext: true
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "workspace.stat",
|
|
165
|
+
signature: "await workspace.stat(path) -> { exists, size, isDirectory, isFile, isSymlink, modifiedMs, createdMs, accessedMs }",
|
|
166
|
+
description: "File metadata. A missing path returns { exists: false } rather than throwing.",
|
|
167
|
+
async: true,
|
|
168
|
+
requiresContext: true
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "workspace.root",
|
|
172
|
+
signature: "await workspace.root() -> string",
|
|
173
|
+
description: "Absolute path of the workspace root.",
|
|
174
|
+
async: true,
|
|
175
|
+
requiresContext: true
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "workspace.copy",
|
|
179
|
+
signature: "await workspace.copy(src, dest) -> void",
|
|
180
|
+
description: "Copy a file, creating parent directories.",
|
|
181
|
+
async: true,
|
|
182
|
+
requiresContext: true
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "workspace.move",
|
|
186
|
+
signature: "await workspace.move(src, dest) -> void",
|
|
187
|
+
description: "Move or rename a file, creating parent directories.",
|
|
188
|
+
async: true,
|
|
189
|
+
requiresContext: true
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: "workspace.mkdir",
|
|
193
|
+
signature: "await workspace.mkdir(path) -> void",
|
|
194
|
+
description: "Create a directory and its parents.",
|
|
195
|
+
async: true,
|
|
196
|
+
requiresContext: true
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "workspace.remove",
|
|
200
|
+
signature: "await workspace.remove(path) -> void",
|
|
201
|
+
description: "Delete one file or one empty directory. Never removes a tree.",
|
|
202
|
+
async: true,
|
|
203
|
+
requiresContext: true
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
assetToSandbox: {
|
|
208
|
+
name: "assetToSandbox",
|
|
209
|
+
kind: "function",
|
|
210
|
+
description: "Materialize a stored asset as a workspace file.",
|
|
211
|
+
members: [
|
|
212
|
+
{
|
|
213
|
+
name: "assetToSandbox",
|
|
214
|
+
signature: "await assetToSandbox(assetId, path) -> string",
|
|
215
|
+
description: "Returns the workspace path the asset was written to.",
|
|
216
|
+
async: true,
|
|
217
|
+
requiresContext: true
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
sandboxToAsset: {
|
|
222
|
+
name: "sandboxToAsset",
|
|
223
|
+
kind: "function",
|
|
224
|
+
description: "Store a workspace file as an asset reference.",
|
|
225
|
+
members: [
|
|
226
|
+
{
|
|
227
|
+
name: "sandboxToAsset",
|
|
228
|
+
signature: "await sandboxToAsset(path) -> AssetRef",
|
|
229
|
+
description: "Returns the reference object to pass downstream. Return media as references; never re-encode them yourself.",
|
|
230
|
+
async: true,
|
|
231
|
+
requiresContext: true
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
progress: {
|
|
236
|
+
name: "progress",
|
|
237
|
+
kind: "function",
|
|
238
|
+
description: "Drive the node's progress bar during a long run.",
|
|
239
|
+
members: [
|
|
240
|
+
{
|
|
241
|
+
name: "progress",
|
|
242
|
+
signature: "progress(percent, message?) -> void",
|
|
243
|
+
description: "Fire-and-forget. Percent is clamped to 0-100; rate-limited and a no-op when nothing listens.",
|
|
244
|
+
async: false,
|
|
245
|
+
requiresProgressSink: true
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
emit: {
|
|
250
|
+
name: "emit",
|
|
251
|
+
kind: "function",
|
|
252
|
+
description: "Stream one value to an output handle while the body keeps running.",
|
|
253
|
+
members: [
|
|
254
|
+
{
|
|
255
|
+
name: "emit",
|
|
256
|
+
signature: "await emit(name, value) -> void",
|
|
257
|
+
description: "Delivers {[name]: value} downstream immediately, in call order. Awaiting it applies backpressure. Capped per run; a non-string name throws.",
|
|
258
|
+
async: true
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
output: {
|
|
263
|
+
name: "output",
|
|
264
|
+
kind: "function",
|
|
265
|
+
description: "Set the final value of an output handle; all finals post as one bag when the body completes.",
|
|
266
|
+
members: [
|
|
267
|
+
{
|
|
268
|
+
name: "output",
|
|
269
|
+
signature: "await output(name, value) -> void",
|
|
270
|
+
description: "Records the handle's final value. A second call for the same handle throws; the body's return value carries no outputs.",
|
|
271
|
+
async: true
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
format: {
|
|
276
|
+
name: "format",
|
|
277
|
+
kind: "namespace",
|
|
278
|
+
description: `Locale-aware formatting. QuickJS has no Intl, so these are host calls; the default locale is ${DEFAULT_FORMAT_LOCALE}.`,
|
|
279
|
+
members: [
|
|
280
|
+
{
|
|
281
|
+
name: "format.number",
|
|
282
|
+
signature: "await format.number(value, options?) -> string // locale, style, currency, minimumFractionDigits, maximumFractionDigits, useGrouping",
|
|
283
|
+
description: "Locale number, percent and currency formatting.",
|
|
284
|
+
async: true
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "format.date",
|
|
288
|
+
signature: "await format.date(epochMs, options?) -> string // locale, dateStyle, timeStyle, timeZone",
|
|
289
|
+
description: "Locale date and time formatting of a millisecond timestamp.",
|
|
290
|
+
async: true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "format.relativeTime",
|
|
294
|
+
signature: "await format.relativeTime(value, unit, options?) -> string // unit: day, hour, minute, ...",
|
|
295
|
+
description: "Relative phrasing, for example -3 with unit day.",
|
|
296
|
+
async: true
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "format.list",
|
|
300
|
+
signature: "await format.list(items, options?) -> string // locale, type",
|
|
301
|
+
description: "Join an array of strings the way the locale does.",
|
|
302
|
+
async: true
|
|
303
|
+
}
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
image: {
|
|
307
|
+
name: "image",
|
|
308
|
+
kind: "namespace",
|
|
309
|
+
description: "Raster image editing. Every member takes an image handle, a media ref " +
|
|
310
|
+
"(asset:// and friends) or encoded bytes, and returns a handle — a small " +
|
|
311
|
+
"object naming bytes the host holds, so calls chain without moving the " +
|
|
312
|
+
"image. Read `.byteLength`, `.width`, `.height`, `.mimeType` off a " +
|
|
313
|
+
"handle; ask image.stats for what an image looks like, image.blank for " +
|
|
314
|
+
"a backdrop and image.grid to combine several; call image.bytes(handle) " +
|
|
315
|
+
"only when you must read the bytes " +
|
|
316
|
+
"yourself, and media.toImage(handle) to save one as an asset. " +
|
|
317
|
+
"A handle lives only for the action that made it — before this action " +
|
|
318
|
+
"ends, save anything you still need with media.toImage(handle) and " +
|
|
319
|
+
"carry the asset ref instead. Formats: png, jpeg, webp, avif.",
|
|
320
|
+
members: [
|
|
321
|
+
{
|
|
322
|
+
name: "image.bytes",
|
|
323
|
+
signature: "await image.bytes(handle) -> Uint8Array",
|
|
324
|
+
description: "The encoded bytes behind a handle. The one call that pulls an " +
|
|
325
|
+
"image into the guest — every other member keeps it host-side, so " +
|
|
326
|
+
"reach for this only when the body reads the bytes itself.",
|
|
327
|
+
async: true
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: "image.toAsset",
|
|
331
|
+
signature: "await image.toAsset(handle, { filename?, mimeType? }) -> ImageRef",
|
|
332
|
+
description: "Save a handle as a durable asset. The bytes stay on the host; " +
|
|
333
|
+
"the guest gets an asset:// ref. Prefer nodetool.media.toImage " +
|
|
334
|
+
"from a chat action.",
|
|
335
|
+
async: true
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: "image.info",
|
|
339
|
+
signature: "await image.info(image) -> { width, height, format, byteLength }",
|
|
340
|
+
description: "Dimensions and encoding of an image, without decoding it into the guest.",
|
|
341
|
+
async: true
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "image.decode",
|
|
345
|
+
signature: "await image.decode(image) -> { width, height, pixels } // pixels: RGBA Uint8Array",
|
|
346
|
+
description: "Raw pixels for per-pixel work. Four bytes per pixel — resize first, and prefer the other members when they do the job.",
|
|
347
|
+
async: true
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
name: "image.stats",
|
|
351
|
+
signature: "await image.stats(image) -> { width, height, pixels, luminance, opaque, channels: { r, g, b, a } } // each: mean, min, max",
|
|
352
|
+
description: "What an image looks like, in a hundred bytes — is it dark, flat, transparent. Ask this instead of decoding to find out.",
|
|
353
|
+
async: true
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "image.blank",
|
|
357
|
+
signature: "await image.blank(width, height, options?) -> handle // options: color, format, quality",
|
|
358
|
+
description: "A new surface, transparent unless you pass color. The backdrop to composite onto.",
|
|
359
|
+
async: true
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: "image.pad",
|
|
363
|
+
signature: "await image.pad(image, options) -> handle // options: all, top, right, bottom, left, color, format, quality",
|
|
364
|
+
description: "Grow the canvas around an image without scaling it — margins, letterboxing, room to composite into.",
|
|
365
|
+
async: true
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: "image.grid",
|
|
369
|
+
signature: "await image.grid([image, ...], options?) -> handle // options: columns, gap, background, format, quality",
|
|
370
|
+
description: 'Lay images out in a grid — the usual meaning of "combine these". Cells are the largest input and each image is centred; one row unless you pass columns.',
|
|
371
|
+
async: true
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: "image.resize",
|
|
375
|
+
signature: "await image.resize(image, options) -> handle // options: width, height, fit (cover | contain | fill), background, format, quality",
|
|
376
|
+
description: "Scale an image. One of width or height keeps the aspect ratio; both apply the fit mode, which defaults to contain.",
|
|
377
|
+
async: true
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "image.crop",
|
|
381
|
+
signature: "await image.crop(image, options) -> handle // options: x, y, width, height, format, quality",
|
|
382
|
+
description: "Cut a rectangle out. A rectangle outside the image is an error, not a clamp.",
|
|
383
|
+
async: true
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: "image.rotate",
|
|
387
|
+
signature: "await image.rotate(image, degrees, options?) -> handle // options: background, format, quality",
|
|
388
|
+
description: "Rotate clockwise, growing the canvas to the rotated bounding box so nothing is clipped.",
|
|
389
|
+
async: true
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
name: "image.flip",
|
|
393
|
+
signature: "await image.flip(image, options?) -> handle // options: horizontal (default true), vertical, format, quality",
|
|
394
|
+
description: "Mirror an image.",
|
|
395
|
+
async: true
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "image.adjust",
|
|
399
|
+
signature: "await image.adjust(image, options) -> handle // options: brightness, contrast, saturate, grayscale, sepia, invert, blur, hueRotate, opacity, format, quality",
|
|
400
|
+
description: "Filter an image. 1 is unchanged for the multiplying filters, 0 for grayscale, sepia, invert and blur.",
|
|
401
|
+
async: true
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
name: "image.composite",
|
|
405
|
+
signature: "await image.composite(image, layers, options?) -> handle // layer: { image, x, y, width, height, opacity, blendMode }",
|
|
406
|
+
description: "Draw layers over a base image — watermarks, badges, stacked renders. blendMode takes the Canvas globalCompositeOperation names.",
|
|
407
|
+
async: true
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
name: "image.convert",
|
|
411
|
+
signature: "await image.convert(image, options) -> handle // options: format, quality, background",
|
|
412
|
+
description: "Re-encode without resampling. Converting to jpeg fills transparency with background, white by default.",
|
|
413
|
+
async: true
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
audio: {
|
|
418
|
+
name: "audio",
|
|
419
|
+
kind: "namespace",
|
|
420
|
+
description: "Host-side audio editing. Inputs may be handles, media refs, or encoded bytes; transformed outputs are run-local handles.",
|
|
421
|
+
members: [
|
|
422
|
+
{
|
|
423
|
+
name: "audio.bytes",
|
|
424
|
+
signature: "await audio.bytes(handle) -> Uint8Array",
|
|
425
|
+
description: "Read encoded bytes explicitly. Chaining operations does not need this.",
|
|
426
|
+
async: true
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: "audio.toAsset",
|
|
430
|
+
signature: "await audio.toAsset(handle, { filename?, mimeType? }) -> AudioRef",
|
|
431
|
+
description: "Save a run-local audio handle as a durable asset.",
|
|
432
|
+
async: true
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: "audio.info",
|
|
436
|
+
signature: "await audio.info(audio) -> { duration, sample_rate, channels, format, size_bytes }",
|
|
437
|
+
description: "Inspect audio without returning its encoded payload.",
|
|
438
|
+
async: true
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "audio.normalize",
|
|
442
|
+
signature: "await audio.normalize(audio) -> handle",
|
|
443
|
+
description: "Normalize peak volume.",
|
|
444
|
+
async: true
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
name: "audio.trim",
|
|
448
|
+
signature: "await audio.trim(audio, { start?, end? }) -> handle",
|
|
449
|
+
description: "Keep an interval in seconds.",
|
|
450
|
+
async: true
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: "audio.concat",
|
|
454
|
+
signature: "await audio.concat([audio, ...]) -> handle",
|
|
455
|
+
description: "Join compatible audio files in sequence.",
|
|
456
|
+
async: true
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
name: "audio.mix",
|
|
460
|
+
signature: "await audio.mix([audio, ...]) -> handle",
|
|
461
|
+
description: "Mix compatible tracks over the same timeline.",
|
|
462
|
+
async: true
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
name: "audio.reverse",
|
|
466
|
+
signature: "await audio.reverse(audio) -> handle",
|
|
467
|
+
description: "Reverse audio playback.",
|
|
468
|
+
async: true
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: "audio.fadeIn",
|
|
472
|
+
signature: "await audio.fadeIn(audio, { duration? }) -> handle",
|
|
473
|
+
description: "Apply a fade at the start.",
|
|
474
|
+
async: true
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
name: "audio.fadeOut",
|
|
478
|
+
signature: "await audio.fadeOut(audio, { duration? }) -> handle",
|
|
479
|
+
description: "Apply a fade at the end.",
|
|
480
|
+
async: true
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "audio.repeat",
|
|
484
|
+
signature: "await audio.repeat(audio, { loops? }) -> handle",
|
|
485
|
+
description: "Repeat audio a fixed number of times.",
|
|
486
|
+
async: true
|
|
487
|
+
}
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
video: {
|
|
491
|
+
name: "video",
|
|
492
|
+
kind: "namespace",
|
|
493
|
+
description: "Cross-platform video editing and media composition through Mediabunny. Outputs stay in run-local handles.",
|
|
494
|
+
members: [
|
|
495
|
+
{
|
|
496
|
+
name: "video.bytes",
|
|
497
|
+
signature: "await video.bytes(handle) -> Uint8Array",
|
|
498
|
+
description: "Read encoded bytes explicitly. Chaining operations does not need this.",
|
|
499
|
+
async: true
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
name: "video.toAsset",
|
|
503
|
+
signature: "await video.toAsset(handle, { filename?, mimeType? }) -> VideoRef",
|
|
504
|
+
description: "Save a run-local video handle as a durable asset.",
|
|
505
|
+
async: true
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: "video.info",
|
|
509
|
+
signature: "await video.info(video) -> { duration, width, height, rotation, codec, has_audio }",
|
|
510
|
+
description: "Inspect the video and its streams.",
|
|
511
|
+
async: true
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
name: "video.trim",
|
|
515
|
+
signature: "await video.trim(video, { start?, end? }) -> handle",
|
|
516
|
+
description: "Keep a time interval in seconds.",
|
|
517
|
+
async: true
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
name: "video.resize",
|
|
521
|
+
signature: "await video.resize(video, { width, height, fit? }) -> handle",
|
|
522
|
+
description: "Resize video with fill, contain, or cover fitting.",
|
|
523
|
+
async: true
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "video.rotate",
|
|
527
|
+
signature: "await video.rotate(video, degrees) -> handle",
|
|
528
|
+
description: "Rotate video by 0, 90, 180, or 270 degrees.",
|
|
529
|
+
async: true
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "video.addAudio",
|
|
533
|
+
signature: "await video.addAudio(video, audio, { keepOriginalAudio? }) -> handle",
|
|
534
|
+
description: "Attach an audio track to a video. By default it replaces existing audio.",
|
|
535
|
+
async: true
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "video.extractAudio",
|
|
539
|
+
signature: "await video.extractAudio(video) -> audio handle",
|
|
540
|
+
description: "Extract the soundtrack as WAV audio.",
|
|
541
|
+
async: true
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
name: "video.extractFrame",
|
|
545
|
+
signature: "await video.extractFrame(video, time?) -> image handle",
|
|
546
|
+
description: "Extract a PNG frame at a time in seconds.",
|
|
547
|
+
async: true
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
canvas: {
|
|
552
|
+
name: "canvas",
|
|
553
|
+
kind: "namespace",
|
|
554
|
+
description: "Canvas 2D text metrics. Drawing itself goes through createCanvas, " +
|
|
555
|
+
"whose toBytes renders the recorded calls host-side.",
|
|
556
|
+
members: [
|
|
557
|
+
{
|
|
558
|
+
name: "canvas.measureText",
|
|
559
|
+
signature: "await canvas.measureText(text, font?) -> { width, actualBoundingBoxAscent, actualBoundingBoxDescent, ... }",
|
|
560
|
+
description: "Text metrics for a CSS font string, so text can be laid out before it is drawn.",
|
|
561
|
+
async: true
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
internalMembers: [
|
|
565
|
+
{
|
|
566
|
+
name: "canvas.render",
|
|
567
|
+
signature: "await canvas.render(spec) -> Uint8Array // spec: { width, height, background, format, quality, gradients, ops }",
|
|
568
|
+
description: "The machinery behind createCanvas(...).toBytes(): replay a recorded draw list and encode the result.",
|
|
569
|
+
async: true
|
|
570
|
+
}
|
|
571
|
+
]
|
|
572
|
+
},
|
|
573
|
+
media: {
|
|
574
|
+
name: "media",
|
|
575
|
+
kind: "namespace",
|
|
576
|
+
description: "Read a document/image/audio/video input's bytes, and build a media ref " +
|
|
577
|
+
"from bytes the body computed. Resolves asset://, /api/storage/, " +
|
|
578
|
+
"package://, data: URIs, https URLs and file paths. Needs a context.",
|
|
579
|
+
members: [
|
|
580
|
+
{
|
|
581
|
+
name: "media.bytes",
|
|
582
|
+
signature: "await media.bytes(ref) -> Uint8Array",
|
|
583
|
+
description: "The bytes behind any media ref.",
|
|
584
|
+
async: true,
|
|
585
|
+
requiresContext: true
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
name: "media.text",
|
|
589
|
+
signature: "await media.text(ref, { encoding? }) -> string",
|
|
590
|
+
description: "Decode the ref's bytes as text (default utf-8).",
|
|
591
|
+
async: true,
|
|
592
|
+
requiresContext: true
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
name: "media.info",
|
|
596
|
+
signature: "await media.info(ref) -> { type, mimeType, uri, size }",
|
|
597
|
+
description: "What the ref is and how big it is.",
|
|
598
|
+
async: true,
|
|
599
|
+
requiresContext: true
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
name: "media.toDocument",
|
|
603
|
+
signature: "await media.toDocument(bytes, { mimeType?, filename? }) -> DocumentRef",
|
|
604
|
+
description: "Bytes to a document ref, ready to return as an output.",
|
|
605
|
+
async: true,
|
|
606
|
+
requiresContext: true
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "media.toImage",
|
|
610
|
+
signature: "await media.toImage(bytes, { mimeType? }) -> ImageRef",
|
|
611
|
+
description: "Bytes to an image ref.",
|
|
612
|
+
async: true,
|
|
613
|
+
requiresContext: true
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
name: "media.toAudio",
|
|
617
|
+
signature: "await media.toAudio(bytes, { mimeType? }) -> AudioRef",
|
|
618
|
+
description: "Bytes to an audio ref.",
|
|
619
|
+
async: true,
|
|
620
|
+
requiresContext: true
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
name: "media.toVideo",
|
|
624
|
+
signature: "await media.toVideo(bytes, { mimeType? }) -> VideoRef",
|
|
625
|
+
description: "Bytes to a video ref.",
|
|
626
|
+
async: true,
|
|
627
|
+
requiresContext: true
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
__maxIter: {
|
|
632
|
+
name: "__maxIter",
|
|
633
|
+
kind: "function",
|
|
634
|
+
description: "Loop-guard budget injected by the runtime.",
|
|
635
|
+
internal: true,
|
|
636
|
+
members: []
|
|
637
|
+
},
|
|
638
|
+
__secretScope: {
|
|
639
|
+
name: "__secretScope",
|
|
640
|
+
kind: "function",
|
|
641
|
+
description: "The run's declared secret scope, behind nodetool.secrets.list().",
|
|
642
|
+
internal: true,
|
|
643
|
+
members: []
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
const GUEST_HELPER_DOCS = {
|
|
647
|
+
toBase64: {
|
|
648
|
+
name: "toBase64",
|
|
649
|
+
signature: "toBase64(stringOrBytes) -> string",
|
|
650
|
+
description: "Base64-encode a string or Uint8Array.",
|
|
651
|
+
async: false
|
|
652
|
+
},
|
|
653
|
+
fromBase64: {
|
|
654
|
+
name: "fromBase64",
|
|
655
|
+
signature: "fromBase64(text) -> Uint8Array",
|
|
656
|
+
description: "Decode base64 (standard or URL alphabet) to bytes.",
|
|
657
|
+
async: false
|
|
658
|
+
},
|
|
659
|
+
toHex: {
|
|
660
|
+
name: "toHex",
|
|
661
|
+
signature: "toHex(bytes) -> string",
|
|
662
|
+
description: "Lowercase hex of a Uint8Array.",
|
|
663
|
+
async: false
|
|
664
|
+
},
|
|
665
|
+
fromHex: {
|
|
666
|
+
name: "fromHex",
|
|
667
|
+
signature: "fromHex(text) -> Uint8Array",
|
|
668
|
+
description: "Decode hex to bytes.",
|
|
669
|
+
async: false
|
|
670
|
+
},
|
|
671
|
+
parallelMap: {
|
|
672
|
+
name: "parallelMap",
|
|
673
|
+
signature: "await parallelMap(items, fn, concurrency?) -> results[] // fn receives (item, index); concurrency default 5, max 32",
|
|
674
|
+
description: "Run an async function over items with at most `concurrency` in flight, preserving input order. The bounded form of Promise.all fan-out — the way to fetch many URLs in parallel. Rejects on the first failure; wrap fn in try/catch to collect errors instead.",
|
|
675
|
+
async: true
|
|
676
|
+
},
|
|
677
|
+
stream: {
|
|
678
|
+
name: "stream",
|
|
679
|
+
signature: "for await (const item of stream(name)) // plus stream.any(), await stream.first(name), stream.open(name)",
|
|
680
|
+
description: "Read an input handle as it arrives. stream(name) iterates one handle in order until end-of-stream, stream.any() interleaves every handle as [handle, value] pairs, stream.first(name) takes the next value (undefined at end-of-stream), and stream.open(name) answers synchronously whether more can arrive. Only a body the host runs in streaming-input mode has them; anywhere else every call throws.",
|
|
681
|
+
async: true
|
|
682
|
+
},
|
|
683
|
+
createCanvas: {
|
|
684
|
+
name: "createCanvas",
|
|
685
|
+
signature: "createCanvas(width, height) -> { width, height, getContext, toBytes, toSpec }",
|
|
686
|
+
description: 'A Canvas 2D raster surface. getContext with "2d" returns a context taking the usual calls — fillRect, arc, fillText, drawImage, createLinearGradient, save, translate, rotate — synchronously; awaiting toBytes with an options object of format, quality and background renders them and returns the encoded image. drawImage takes image bytes, not an image object, and toSpec returns the recorded draw list. For SVG and vector scenes import @nodetool-ai/sandbox-fabric (renderSVG, loadSVG, render).',
|
|
687
|
+
async: false
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
const HUGE = Number.MAX_SAFE_INTEGER;
|
|
691
|
+
/**
|
|
692
|
+
* Limits a caller may override. Defaults and ceilings both come from
|
|
693
|
+
* `resolveSandboxLimits` — the ceilings by asking it to clamp an absurd value,
|
|
694
|
+
* which is the only place the clamp table is expressed.
|
|
695
|
+
*/
|
|
696
|
+
function overridableLimits() {
|
|
697
|
+
const defaults = resolveSandboxLimits();
|
|
698
|
+
const ceilings = resolveSandboxLimits({
|
|
699
|
+
maxFetchCalls: HUGE,
|
|
700
|
+
maxResponseBodyBytes: HUGE,
|
|
701
|
+
maxOutputSize: HUGE,
|
|
702
|
+
memoryLimitBytes: HUGE,
|
|
703
|
+
stackLimitBytes: HUGE,
|
|
704
|
+
fetchTimeoutMs: HUGE,
|
|
705
|
+
runMediaBytes: HUGE
|
|
706
|
+
});
|
|
707
|
+
const described = {
|
|
708
|
+
maxFetchCalls: { description: "fetch calls per run", unit: "count" },
|
|
709
|
+
maxResponseBodyBytes: {
|
|
710
|
+
description: "response body read per fetch",
|
|
711
|
+
unit: "bytes"
|
|
712
|
+
},
|
|
713
|
+
maxOutputSize: { description: "serialized return value", unit: "bytes" },
|
|
714
|
+
memoryLimitBytes: { description: "guest heap", unit: "bytes" },
|
|
715
|
+
stackLimitBytes: { description: "guest call stack", unit: "bytes" },
|
|
716
|
+
fetchTimeoutMs: { description: "per-request fetch timeout", unit: "ms" },
|
|
717
|
+
runMediaBytes: {
|
|
718
|
+
description: "media handles and transform work held host-side per run",
|
|
719
|
+
unit: "bytes"
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
return Object.keys(described).map((key) => ({
|
|
723
|
+
key,
|
|
724
|
+
description: described[key].description,
|
|
725
|
+
unit: described[key].unit,
|
|
726
|
+
value: defaults[key],
|
|
727
|
+
ceiling: ceilings[key]
|
|
728
|
+
}));
|
|
729
|
+
}
|
|
730
|
+
function fixedLimits() {
|
|
731
|
+
return [
|
|
732
|
+
{
|
|
733
|
+
key: "timeoutMs",
|
|
734
|
+
description: "wall-clock budget per run",
|
|
735
|
+
unit: "ms",
|
|
736
|
+
value: DEFAULT_TIMEOUT_MS
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
key: "maxLoopIterations",
|
|
740
|
+
description: "guarded loop iterations",
|
|
741
|
+
unit: "count",
|
|
742
|
+
value: MAX_LOOP_ITERATIONS
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
key: "maxRandomBytes",
|
|
746
|
+
description: "bytes per crypto.getRandomValues call",
|
|
747
|
+
unit: "bytes",
|
|
748
|
+
value: MAX_RANDOM_BYTES
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
key: "maxProgressCalls",
|
|
752
|
+
description: "forwarded progress reports per run",
|
|
753
|
+
unit: "count",
|
|
754
|
+
value: MAX_PROGRESS_CALLS
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
key: "maxProgressMessageChars",
|
|
758
|
+
description: "progress message length",
|
|
759
|
+
unit: "chars",
|
|
760
|
+
value: MAX_PROGRESS_MESSAGE_CHARS
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
key: "maxImageInputBytes",
|
|
764
|
+
description: "encoded image accepted by an image.* call",
|
|
765
|
+
unit: "bytes",
|
|
766
|
+
value: MAX_IMAGE_INPUT_BYTES
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
key: "maxMediaRefBytes",
|
|
770
|
+
description: "payload a media.* call moves in either direction",
|
|
771
|
+
unit: "bytes",
|
|
772
|
+
value: MAX_MEDIA_REF_BYTES
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
key: "maxDataUriBytes",
|
|
776
|
+
description: "payload a media.to* builder inlines as a data URI when the run has no storage",
|
|
777
|
+
unit: "bytes",
|
|
778
|
+
value: MAX_DATA_URI_BYTES
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
key: "maxImagePixels",
|
|
782
|
+
description: "pixels in a decoded image or rendered canvas",
|
|
783
|
+
unit: "count",
|
|
784
|
+
value: MAX_IMAGE_PIXELS
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
key: "maxDecodePixels",
|
|
788
|
+
description: "pixels returned by image.decode",
|
|
789
|
+
unit: "count",
|
|
790
|
+
value: MAX_DECODE_PIXELS
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
key: "maxCanvasOps",
|
|
794
|
+
description: "draw operations per canvas render",
|
|
795
|
+
unit: "count",
|
|
796
|
+
value: MAX_CANVAS_OPS
|
|
797
|
+
}
|
|
798
|
+
];
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Every own global the QuickJS guest really has, machine-observed rather than
|
|
802
|
+
* inferred from the host-side `buildSandbox` record — that record states what
|
|
803
|
+
* the host means to install, which is neither what `@sebastianwessel/quickjs`
|
|
804
|
+
* marshals nor what the engine itself ships. Names beginning `__` (runtime
|
|
805
|
+
* internals) are filtered out.
|
|
806
|
+
*
|
|
807
|
+
* Booting the guest is async and `getSandboxManifest` is synchronous, so the
|
|
808
|
+
* list is checked in. Regenerate it with:
|
|
809
|
+
*
|
|
810
|
+
* npx tsx packages/agents/scripts/probe-guest-globals.ts
|
|
811
|
+
*
|
|
812
|
+
* The live-probe case in `tests/sandbox-manifest-drift.test.ts` boots the real
|
|
813
|
+
* sandbox and fails when this drifts from it.
|
|
814
|
+
*/
|
|
815
|
+
export const GUEST_GLOBALS_SNAPSHOT = [
|
|
816
|
+
"AggregateError",
|
|
817
|
+
"Array",
|
|
818
|
+
"ArrayBuffer",
|
|
819
|
+
"BigInt",
|
|
820
|
+
"BigInt64Array",
|
|
821
|
+
"BigUint64Array",
|
|
822
|
+
"Boolean",
|
|
823
|
+
"DataView",
|
|
824
|
+
"Date",
|
|
825
|
+
"Error",
|
|
826
|
+
"EvalError",
|
|
827
|
+
"FinalizationRegistry",
|
|
828
|
+
"Float32Array",
|
|
829
|
+
"Float64Array",
|
|
830
|
+
"Infinity",
|
|
831
|
+
"Int16Array",
|
|
832
|
+
"Int32Array",
|
|
833
|
+
"Int8Array",
|
|
834
|
+
"InternalError",
|
|
835
|
+
"JSON",
|
|
836
|
+
"Map",
|
|
837
|
+
"Math",
|
|
838
|
+
"NaN",
|
|
839
|
+
"Number",
|
|
840
|
+
"Object",
|
|
841
|
+
"Promise",
|
|
842
|
+
"Proxy",
|
|
843
|
+
"RangeError",
|
|
844
|
+
"ReferenceError",
|
|
845
|
+
"Reflect",
|
|
846
|
+
"RegExp",
|
|
847
|
+
"Set",
|
|
848
|
+
"SharedArrayBuffer",
|
|
849
|
+
"String",
|
|
850
|
+
"Symbol",
|
|
851
|
+
"SyntaxError",
|
|
852
|
+
"TextDecoder",
|
|
853
|
+
"TextEncoder",
|
|
854
|
+
"TypeError",
|
|
855
|
+
"URIError",
|
|
856
|
+
"URL",
|
|
857
|
+
"URLSearchParams",
|
|
858
|
+
"Uint16Array",
|
|
859
|
+
"Uint32Array",
|
|
860
|
+
"Uint8Array",
|
|
861
|
+
"Uint8ClampedArray",
|
|
862
|
+
"WeakMap",
|
|
863
|
+
"WeakRef",
|
|
864
|
+
"WeakSet",
|
|
865
|
+
"assetToSandbox",
|
|
866
|
+
"audio",
|
|
867
|
+
"canvas",
|
|
868
|
+
"console",
|
|
869
|
+
"createCanvas",
|
|
870
|
+
"crypto",
|
|
871
|
+
"decodeURI",
|
|
872
|
+
"decodeURIComponent",
|
|
873
|
+
"emit",
|
|
874
|
+
"encodeURI",
|
|
875
|
+
"encodeURIComponent",
|
|
876
|
+
"escape",
|
|
877
|
+
"fetch",
|
|
878
|
+
"format",
|
|
879
|
+
"fromBase64",
|
|
880
|
+
"fromHex",
|
|
881
|
+
"getSecret",
|
|
882
|
+
"globalThis",
|
|
883
|
+
"image",
|
|
884
|
+
"isFinite",
|
|
885
|
+
"isNaN",
|
|
886
|
+
"media",
|
|
887
|
+
"output",
|
|
888
|
+
"parallelMap",
|
|
889
|
+
"parseFloat",
|
|
890
|
+
"parseInt",
|
|
891
|
+
"progress",
|
|
892
|
+
"queueMicrotask",
|
|
893
|
+
"sandboxToAsset",
|
|
894
|
+
"sleep",
|
|
895
|
+
"stream",
|
|
896
|
+
"toBase64",
|
|
897
|
+
"toHex",
|
|
898
|
+
"undefined",
|
|
899
|
+
"unescape",
|
|
900
|
+
"video",
|
|
901
|
+
"workspace"
|
|
902
|
+
];
|
|
903
|
+
/**
|
|
904
|
+
* Names a model reaches for out of habit that this guest does not have. They
|
|
905
|
+
* are absent from `GUEST_GLOBALS_SNAPSHOT` — this list is what makes the
|
|
906
|
+
* absence something the manifest can say out loud. `btoa`, `atob` and
|
|
907
|
+
* `structuredClone` sit in the host-side `buildSandbox` record but are never
|
|
908
|
+
* marshaled; `Intl` is why the `format.*` bridge exists.
|
|
909
|
+
*/
|
|
910
|
+
const ABSENT_GLOBALS = [
|
|
911
|
+
"AbortController",
|
|
912
|
+
"Blob",
|
|
913
|
+
"FormData",
|
|
914
|
+
"Intl",
|
|
915
|
+
"atob",
|
|
916
|
+
"btoa",
|
|
917
|
+
"structuredClone",
|
|
918
|
+
// Removed aliases: crypto.randomUUID replaces uuid(), and the native
|
|
919
|
+
// TextEncoder/TextDecoder replace the utf8 helpers.
|
|
920
|
+
"utf8Decode",
|
|
921
|
+
"utf8Encode",
|
|
922
|
+
"uuid"
|
|
923
|
+
];
|
|
924
|
+
/**
|
|
925
|
+
* Split the observed guest globals into what a model may use directly and what
|
|
926
|
+
* it must be told is missing. Bridges and prelude helpers are documented
|
|
927
|
+
* elsewhere in the manifest, so they drop out of both lists.
|
|
928
|
+
*/
|
|
929
|
+
function partitionNativeGlobals() {
|
|
930
|
+
const documentedElsewhere = new Set([
|
|
931
|
+
...EXPOSED_BRIDGE_NAMES,
|
|
932
|
+
...GUEST_HELPER_NAMES
|
|
933
|
+
]);
|
|
934
|
+
const native = GUEST_GLOBALS_SNAPSHOT.filter((name) => !documentedElsewhere.has(name));
|
|
935
|
+
// The names the host record leaves undefined are the timer globals the
|
|
936
|
+
// prelude removes.
|
|
937
|
+
const { sandbox } = buildSandbox();
|
|
938
|
+
const hostBlocked = Object.entries(sandbox)
|
|
939
|
+
.filter(([, value]) => value === undefined)
|
|
940
|
+
.map(([name]) => name);
|
|
941
|
+
return {
|
|
942
|
+
native,
|
|
943
|
+
blocked: [
|
|
944
|
+
...hostBlocked,
|
|
945
|
+
...DELETED_GUEST_GLOBALS,
|
|
946
|
+
...ABSENT_GLOBALS
|
|
947
|
+
].sort()
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* The one sentence every surface states about modules in the guest.
|
|
952
|
+
*
|
|
953
|
+
* Modules exist now — the loader serves what a run resolved and refuses
|
|
954
|
+
* everything else — so the old "there is no module loader" claim is false. It
|
|
955
|
+
* lives here because the CodeAct prompt, the Code node prompts and the editor
|
|
956
|
+
* docs all restate it, and the drift tests hold them to this text.
|
|
957
|
+
*/
|
|
958
|
+
export const SANDBOX_MODULE_RULE = "Modules come only from the sandbox packages this run serves, imported " +
|
|
959
|
+
"with a static `import` at the top of the code; dynamic import expressions " +
|
|
960
|
+
"and `require` never resolve, and there is no Intl. Everything else a " +
|
|
961
|
+
"library would do comes from the bridges below.";
|
|
962
|
+
let cached = null;
|
|
963
|
+
/** Build the manifest. Cached — the inputs are module constants. */
|
|
964
|
+
export function getSandboxManifest() {
|
|
965
|
+
if (cached)
|
|
966
|
+
return cached;
|
|
967
|
+
const { native, blocked } = partitionNativeGlobals();
|
|
968
|
+
cached = {
|
|
969
|
+
nodeType: SANDBOX_MANIFEST_NODE_TYPE,
|
|
970
|
+
runtime: "quickjs",
|
|
971
|
+
bridges: BRIDGE_DOCS,
|
|
972
|
+
guestHelpers: GUEST_HELPER_DOCS,
|
|
973
|
+
nativeGlobals: native,
|
|
974
|
+
blockedGlobals: blocked,
|
|
975
|
+
nodeGlobals: [CODE_INPUTS_GLOBAL, "state", "nodetool", "tools"],
|
|
976
|
+
limits: [...overridableLimits(), ...fixedLimits()],
|
|
977
|
+
notes: [
|
|
978
|
+
{
|
|
979
|
+
text: "Code runs as an async function body: top-level await works and `return` produces the node's result.",
|
|
980
|
+
audience: "code-node"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
text: "Bridge calls start host-side work when invoked, not when awaited: Promise.all / allSettled / race / any over fetch or workspace calls run them in parallel. Use parallelMap for bounded fan-out. sleep is the only timer."
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
text: "Return an object whose keys are the node's outputs. Emit every declared output on every return path.",
|
|
987
|
+
audience: "code-node"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
text: "Declared inputs arrive on the `inputs` object: read `inputs.name`. A bare `name` is a ReferenceError.",
|
|
991
|
+
audience: "code-node"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
text: "Media and asset values are reference objects. Pass them through unchanged."
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
text: "Images are edited as encoded bytes: assetToSandbox then workspace.readBytes to get them, image.* or createCanvas to change them, workspace.writeBytes then sandboxToAsset to hand one back. SVG and vector scenes go through @nodetool-ai/sandbox-fabric (renderSVG, loadSVG, render)."
|
|
998
|
+
},
|
|
999
|
+
{ text: SANDBOX_MODULE_RULE },
|
|
1000
|
+
{
|
|
1001
|
+
text: "The platform object model is available as `nodetool` (with the raw `tools` bridge under it): nodetool.capabilities() reports which namespaces are live in this environment; a method whose backing tool is missing throws naming that tool. Tool-backed calls can spend money (media generation, workflow runs) and reach the web — permission gating stays with the tools themselves.",
|
|
1002
|
+
audience: "code-node"
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
};
|
|
1006
|
+
return cached;
|
|
1007
|
+
}
|
|
1008
|
+
/** Every guest name the manifest documents, bridges through helpers. */
|
|
1009
|
+
export function sandboxManifestNames(manifest = getSandboxManifest()) {
|
|
1010
|
+
const names = new Set(manifest.nativeGlobals);
|
|
1011
|
+
for (const bridge of Object.values(manifest.bridges)) {
|
|
1012
|
+
names.add(bridge.name);
|
|
1013
|
+
for (const member of bridge.members)
|
|
1014
|
+
names.add(member.name);
|
|
1015
|
+
for (const member of bridge.internalMembers ?? [])
|
|
1016
|
+
names.add(member.name);
|
|
1017
|
+
}
|
|
1018
|
+
for (const helper of Object.values(manifest.guestHelpers)) {
|
|
1019
|
+
names.add(helper.name);
|
|
1020
|
+
}
|
|
1021
|
+
return names;
|
|
1022
|
+
}
|
|
1023
|
+
//# sourceMappingURL=sandbox-manifest.js.map
|