@nodetool-ai/protocol 0.7.0-rc.23 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/ai-video-production.d.ts +249 -0
- package/dist/ai-video-production.d.ts.map +1 -0
- package/dist/ai-video-production.js +131 -0
- package/dist/ai-video-production.js.map +1 -0
- package/dist/api-schemas/agent-access.d.ts +134 -0
- package/dist/api-schemas/agent-access.d.ts.map +1 -0
- package/dist/api-schemas/agent-access.js +93 -0
- package/dist/api-schemas/agent-access.js.map +1 -0
- package/dist/api-schemas/api-error-code.d.ts +11 -1
- package/dist/api-schemas/api-error-code.d.ts.map +1 -1
- package/dist/api-schemas/api-error-code.js +10 -0
- package/dist/api-schemas/api-error-code.js.map +1 -1
- package/dist/api-schemas/applications.d.ts +1411 -0
- package/dist/api-schemas/applications.d.ts.map +1 -0
- package/dist/api-schemas/applications.js +333 -0
- package/dist/api-schemas/applications.js.map +1 -0
- package/dist/api-schemas/assets.d.ts +230 -0
- package/dist/api-schemas/assets.d.ts.map +1 -1
- package/dist/api-schemas/assets.js +131 -5
- package/dist/api-schemas/assets.js.map +1 -1
- package/dist/api-schemas/code-gen.d.ts +176 -0
- package/dist/api-schemas/code-gen.d.ts.map +1 -0
- package/dist/api-schemas/code-gen.js +205 -0
- package/dist/api-schemas/code-gen.js.map +1 -0
- package/dist/api-schemas/collections.d.ts.map +1 -1
- package/dist/api-schemas/collections.js +3 -4
- package/dist/api-schemas/collections.js.map +1 -1
- package/dist/api-schemas/costs.d.ts +179 -0
- package/dist/api-schemas/costs.d.ts.map +1 -1
- package/dist/api-schemas/costs.js +100 -4
- package/dist/api-schemas/costs.js.map +1 -1
- package/dist/api-schemas/credits.d.ts +42 -0
- package/dist/api-schemas/credits.d.ts.map +1 -0
- package/dist/api-schemas/credits.js +43 -0
- package/dist/api-schemas/credits.js.map +1 -0
- package/dist/api-schemas/documents.d.ts +163 -0
- package/dist/api-schemas/documents.d.ts.map +1 -0
- package/dist/api-schemas/documents.js +75 -0
- package/dist/api-schemas/documents.js.map +1 -0
- package/dist/api-schemas/files.d.ts +13 -0
- package/dist/api-schemas/files.d.ts.map +1 -1
- package/dist/api-schemas/files.js +8 -0
- package/dist/api-schemas/files.js.map +1 -1
- package/dist/api-schemas/fonts.d.ts +17 -1
- package/dist/api-schemas/fonts.d.ts.map +1 -1
- package/dist/api-schemas/fonts.js +19 -3
- package/dist/api-schemas/fonts.js.map +1 -1
- package/dist/api-schemas/index.d.ts +23 -1
- package/dist/api-schemas/index.d.ts.map +1 -1
- package/dist/api-schemas/index.js +23 -1
- package/dist/api-schemas/index.js.map +1 -1
- package/dist/api-schemas/jobs.d.ts +12 -0
- package/dist/api-schemas/jobs.d.ts.map +1 -1
- package/dist/api-schemas/jobs.js +12 -2
- package/dist/api-schemas/jobs.js.map +1 -1
- package/dist/api-schemas/js-scripts.d.ts +364 -0
- package/dist/api-schemas/js-scripts.d.ts.map +1 -0
- package/dist/api-schemas/js-scripts.js +333 -0
- package/dist/api-schemas/js-scripts.js.map +1 -0
- package/dist/api-schemas/mcp-config.d.ts.map +1 -1
- package/dist/api-schemas/mcp-config.js +3 -1
- package/dist/api-schemas/mcp-config.js.map +1 -1
- package/dist/api-schemas/memories.d.ts +84 -0
- package/dist/api-schemas/memories.d.ts.map +1 -0
- package/dist/api-schemas/memories.js +54 -0
- package/dist/api-schemas/memories.js.map +1 -0
- package/dist/api-schemas/messages.d.ts +1 -0
- package/dist/api-schemas/messages.d.ts.map +1 -1
- package/dist/api-schemas/messages.js +4 -4
- package/dist/api-schemas/messages.js.map +1 -1
- package/dist/api-schemas/models.d.ts +156 -0
- package/dist/api-schemas/models.d.ts.map +1 -1
- package/dist/api-schemas/models.js +51 -6
- package/dist/api-schemas/models.js.map +1 -1
- package/dist/api-schemas/nodes.d.ts +97 -0
- package/dist/api-schemas/nodes.d.ts.map +1 -1
- package/dist/api-schemas/nodes.js +89 -0
- package/dist/api-schemas/nodes.js.map +1 -1
- package/dist/api-schemas/projects.d.ts +427 -0
- package/dist/api-schemas/projects.d.ts.map +1 -0
- package/dist/api-schemas/projects.js +224 -0
- package/dist/api-schemas/projects.js.map +1 -0
- package/dist/api-schemas/recipes.d.ts +172 -0
- package/dist/api-schemas/recipes.d.ts.map +1 -0
- package/dist/api-schemas/recipes.js +144 -0
- package/dist/api-schemas/recipes.js.map +1 -0
- package/dist/api-schemas/resources.d.ts +112 -0
- package/dist/api-schemas/resources.d.ts.map +1 -0
- package/dist/api-schemas/resources.js +44 -0
- package/dist/api-schemas/resources.js.map +1 -0
- package/dist/api-schemas/scripts.d.ts +1571 -0
- package/dist/api-schemas/scripts.d.ts.map +1 -0
- package/dist/api-schemas/scripts.js +153 -0
- package/dist/api-schemas/scripts.js.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts +467 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.js +115 -0
- package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
- package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
- package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
- package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
- package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
- package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-models-v1.js +108 -0
- package/dist/api-schemas/sdk-models-v1.js.map +1 -0
- package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
- package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
- package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
- package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-operations.js +97 -0
- package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
- package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
- package/dist/api-schemas/sdk-v1.d.ts +15 -0
- package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
- package/dist/api-schemas/sdk-v1.js +22 -0
- package/dist/api-schemas/sdk-v1.js.map +1 -0
- package/dist/api-schemas/segmentation.d.ts +75 -0
- package/dist/api-schemas/segmentation.d.ts.map +1 -0
- package/dist/api-schemas/segmentation.js +54 -0
- package/dist/api-schemas/segmentation.js.map +1 -0
- package/dist/api-schemas/settings.d.ts +159 -0
- package/dist/api-schemas/settings.d.ts.map +1 -1
- package/dist/api-schemas/settings.js +70 -0
- package/dist/api-schemas/settings.js.map +1 -1
- package/dist/api-schemas/sketch.d.ts +847 -0
- package/dist/api-schemas/sketch.d.ts.map +1 -0
- package/dist/api-schemas/sketch.js +544 -0
- package/dist/api-schemas/sketch.js.map +1 -0
- package/dist/api-schemas/skills.d.ts +27 -14
- package/dist/api-schemas/skills.d.ts.map +1 -1
- package/dist/api-schemas/skills.js +64 -11
- package/dist/api-schemas/skills.js.map +1 -1
- package/dist/api-schemas/storage.d.ts +8 -0
- package/dist/api-schemas/storage.d.ts.map +1 -1
- package/dist/api-schemas/storage.js +7 -0
- package/dist/api-schemas/storage.js.map +1 -1
- package/dist/api-schemas/storyboards.d.ts +7026 -0
- package/dist/api-schemas/storyboards.d.ts.map +1 -0
- package/dist/api-schemas/storyboards.js +393 -0
- package/dist/api-schemas/storyboards.js.map +1 -0
- package/dist/api-schemas/threads.d.ts +12 -4
- package/dist/api-schemas/threads.d.ts.map +1 -1
- package/dist/api-schemas/threads.js +12 -4
- package/dist/api-schemas/threads.js.map +1 -1
- package/dist/api-schemas/timeline-tool-contracts.d.ts +1650 -0
- package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-contracts.js +725 -0
- package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
- package/dist/api-schemas/timeline-tool-params.d.ts +1237 -0
- package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-params.js +1518 -0
- package/dist/api-schemas/timeline-tool-params.js.map +1 -0
- package/dist/api-schemas/timeline.d.ts +12803 -0
- package/dist/api-schemas/timeline.d.ts.map +1 -0
- package/dist/api-schemas/timeline.js +1838 -0
- package/dist/api-schemas/timeline.js.map +1 -0
- package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
- package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
- package/dist/api-schemas/ui-tool-contract.js +31 -0
- package/dist/api-schemas/ui-tool-contract.js.map +1 -0
- package/dist/api-schemas/workflows.d.ts +852 -18
- package/dist/api-schemas/workflows.d.ts.map +1 -1
- package/dist/api-schemas/workflows.js +484 -6
- package/dist/api-schemas/workflows.js.map +1 -1
- package/dist/api-schemas/workspace.d.ts +45 -0
- package/dist/api-schemas/workspace.d.ts.map +1 -1
- package/dist/api-schemas/workspace.js +47 -1
- package/dist/api-schemas/workspace.js.map +1 -1
- package/dist/api-types.d.ts +621 -27
- package/dist/api-types.d.ts.map +1 -1
- package/dist/api-types.js +246 -1
- package/dist/api-types.js.map +1 -1
- package/dist/app-deployment.d.ts +37 -0
- package/dist/app-deployment.d.ts.map +1 -0
- package/dist/app-deployment.js +42 -0
- package/dist/app-deployment.js.map +1 -0
- package/dist/asset-generation.d.ts +58 -0
- package/dist/asset-generation.d.ts.map +1 -0
- package/dist/asset-generation.js +147 -0
- package/dist/asset-generation.js.map +1 -0
- package/dist/blend-modes.d.ts +20 -0
- package/dist/blend-modes.d.ts.map +1 -0
- package/dist/blend-modes.js +33 -0
- package/dist/blend-modes.js.map +1 -0
- package/dist/bridge-frames.d.ts +654 -0
- package/dist/bridge-frames.d.ts.map +1 -0
- package/dist/bridge-frames.js +448 -0
- package/dist/bridge-frames.js.map +1 -0
- package/dist/bridge-frames.schema.json +862 -0
- package/dist/bridge-protocol.d.ts +57 -20
- package/dist/bridge-protocol.d.ts.map +1 -1
- package/dist/bridge-protocol.js +57 -20
- package/dist/bridge-protocol.js.map +1 -1
- package/dist/builtin-packs.d.ts +45 -0
- package/dist/builtin-packs.d.ts.map +1 -0
- package/dist/builtin-packs.js +115 -0
- package/dist/builtin-packs.js.map +1 -0
- package/dist/caption-word.d.ts +15 -0
- package/dist/caption-word.d.ts.map +1 -0
- package/dist/caption-word.js +10 -0
- package/dist/caption-word.js.map +1 -0
- package/dist/cloud-profile.d.ts +187 -0
- package/dist/cloud-profile.d.ts.map +1 -0
- package/dist/cloud-profile.js +281 -0
- package/dist/cloud-profile.js.map +1 -0
- package/dist/creative.d.ts +486 -0
- package/dist/creative.d.ts.map +1 -0
- package/dist/creative.js +269 -0
- package/dist/creative.js.map +1 -0
- package/dist/custom-providers.d.ts +70 -0
- package/dist/custom-providers.d.ts.map +1 -0
- package/dist/custom-providers.js +125 -0
- package/dist/custom-providers.js.map +1 -0
- package/dist/document-ops.d.ts +15 -0
- package/dist/document-ops.d.ts.map +1 -0
- package/dist/document-ops.js +2 -0
- package/dist/document-ops.js.map +1 -0
- package/dist/game-assets.d.ts +344 -0
- package/dist/game-assets.d.ts.map +1 -0
- package/dist/game-assets.js +297 -0
- package/dist/game-assets.js.map +1 -0
- package/dist/game-design.d.ts +90 -0
- package/dist/game-design.d.ts.map +1 -0
- package/dist/game-design.js +417 -0
- package/dist/game-design.js.map +1 -0
- package/dist/game-flow-prompt.d.ts +68 -0
- package/dist/game-flow-prompt.d.ts.map +1 -0
- package/dist/game-flow-prompt.js +121 -0
- package/dist/game-flow-prompt.js.map +1 -0
- package/dist/game-graph.d.ts +96 -0
- package/dist/game-graph.d.ts.map +1 -0
- package/dist/game-graph.js +481 -0
- package/dist/game-graph.js.map +1 -0
- package/dist/game-migration.d.ts +4 -0
- package/dist/game-migration.d.ts.map +1 -0
- package/dist/game-migration.js +6 -0
- package/dist/game-migration.js.map +1 -0
- package/dist/game-slot-prompt.d.ts +90 -0
- package/dist/game-slot-prompt.d.ts.map +1 -0
- package/dist/game-slot-prompt.js +237 -0
- package/dist/game-slot-prompt.js.map +1 -0
- package/dist/game.d.ts +1663 -0
- package/dist/game.d.ts.map +1 -0
- package/dist/game.js +228 -0
- package/dist/game.js.map +1 -0
- package/dist/graph.d.ts +191 -5
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +497 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +47 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -2
- package/dist/index.js.map +1 -1
- package/dist/loop.d.ts +38 -0
- package/dist/loop.d.ts.map +1 -0
- package/dist/loop.js +69 -0
- package/dist/loop.js.map +1 -0
- package/dist/mcp-server-config.d.ts +113 -0
- package/dist/mcp-server-config.d.ts.map +1 -0
- package/dist/mcp-server-config.js +147 -0
- package/dist/mcp-server-config.js.map +1 -0
- package/dist/messages.d.ts +1565 -243
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +709 -22
- package/dist/messages.js.map +1 -1
- package/dist/model-selection.d.ts +20 -0
- package/dist/model-selection.d.ts.map +1 -0
- package/dist/model-selection.js +27 -0
- package/dist/model-selection.js.map +1 -0
- package/dist/nodetool-models.d.ts +71 -0
- package/dist/nodetool-models.d.ts.map +1 -0
- package/dist/nodetool-models.js +138 -0
- package/dist/nodetool-models.js.map +1 -0
- package/dist/package-assets.d.ts +39 -0
- package/dist/package-assets.d.ts.map +1 -0
- package/dist/package-assets.js +63 -0
- package/dist/package-assets.js.map +1 -0
- package/dist/platform.d.ts +66 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +68 -0
- package/dist/platform.js.map +1 -0
- package/dist/predicates.d.ts +43 -0
- package/dist/predicates.d.ts.map +1 -0
- package/dist/predicates.js +65 -0
- package/dist/predicates.js.map +1 -0
- package/dist/processing-messages.schema.json +2525 -0
- package/dist/production-authoring.d.ts +757 -0
- package/dist/production-authoring.d.ts.map +1 -0
- package/dist/production-authoring.js +736 -0
- package/dist/production-authoring.js.map +1 -0
- package/dist/render-record.d.ts +86 -0
- package/dist/render-record.d.ts.map +1 -0
- package/dist/render-record.js +133 -0
- package/dist/render-record.js.map +1 -0
- package/dist/resource-id.d.ts +22 -0
- package/dist/resource-id.d.ts.map +1 -0
- package/dist/resource-id.js +32 -0
- package/dist/resource-id.js.map +1 -0
- package/dist/resource-uri.d.ts +15 -0
- package/dist/resource-uri.d.ts.map +1 -0
- package/dist/resource-uri.js +88 -0
- package/dist/resource-uri.js.map +1 -0
- package/dist/sandbox-capability.d.ts +86 -0
- package/dist/sandbox-capability.d.ts.map +1 -0
- package/dist/sandbox-capability.js +106 -0
- package/dist/sandbox-capability.js.map +1 -0
- package/dist/sandbox-host.d.ts +98 -0
- package/dist/sandbox-host.d.ts.map +1 -0
- package/dist/sandbox-host.js +311 -0
- package/dist/sandbox-host.js.map +1 -0
- package/dist/sandbox-package.d.ts +674 -0
- package/dist/sandbox-package.d.ts.map +1 -0
- package/dist/sandbox-package.js +622 -0
- package/dist/sandbox-package.js.map +1 -0
- package/dist/sandbox-wasm.d.ts +84 -0
- package/dist/sandbox-wasm.d.ts.map +1 -0
- package/dist/sandbox-wasm.js +139 -0
- package/dist/sandbox-wasm.js.map +1 -0
- package/dist/screenplay-authoring.d.ts +69 -0
- package/dist/screenplay-authoring.d.ts.map +1 -0
- package/dist/screenplay-authoring.js +351 -0
- package/dist/screenplay-authoring.js.map +1 -0
- package/dist/script-authoring.d.ts +161 -0
- package/dist/script-authoring.d.ts.map +1 -0
- package/dist/script-authoring.js +503 -0
- package/dist/script-authoring.js.map +1 -0
- package/dist/script-fill.d.ts +39 -0
- package/dist/script-fill.d.ts.map +1 -0
- package/dist/script-fill.js +67 -0
- package/dist/script-fill.js.map +1 -0
- package/dist/script-link.d.ts +110 -0
- package/dist/script-link.d.ts.map +1 -0
- package/dist/script-link.js +252 -0
- package/dist/script-link.js.map +1 -0
- package/dist/sha256.d.ts +11 -0
- package/dist/sha256.d.ts.map +1 -0
- package/dist/sha256.js +110 -0
- package/dist/sha256.js.map +1 -0
- package/dist/shot-prompt.d.ts +78 -0
- package/dist/shot-prompt.d.ts.map +1 -0
- package/dist/shot-prompt.js +120 -0
- package/dist/shot-prompt.js.map +1 -0
- package/dist/skill-document.d.ts +36 -0
- package/dist/skill-document.d.ts.map +1 -0
- package/dist/skill-document.js +137 -0
- package/dist/skill-document.js.map +1 -0
- package/dist/style-presets.d.ts +73 -0
- package/dist/style-presets.d.ts.map +1 -0
- package/dist/style-presets.js +147 -0
- package/dist/style-presets.js.map +1 -0
- package/dist/supervisor.d.ts +227 -0
- package/dist/supervisor.d.ts.map +1 -0
- package/dist/supervisor.js +116 -0
- package/dist/supervisor.js.map +1 -0
- package/dist/token-providers.d.ts +31 -0
- package/dist/token-providers.d.ts.map +1 -0
- package/dist/token-providers.js +52 -0
- package/dist/token-providers.js.map +1 -0
- package/dist/toolSchemas.d.ts +10 -14
- package/dist/toolSchemas.d.ts.map +1 -1
- package/dist/toolSchemas.js +13 -23
- package/dist/toolSchemas.js.map +1 -1
- package/dist/triggers.d.ts +41 -0
- package/dist/triggers.d.ts.map +1 -0
- package/dist/triggers.js +50 -0
- package/dist/triggers.js.map +1 -0
- package/dist/trpc-policy.d.ts +3 -0
- package/dist/trpc-policy.d.ts.map +1 -0
- package/dist/trpc-policy.js +3 -0
- package/dist/trpc-policy.js.map +1 -0
- package/dist/type-metadata.d.ts +5 -0
- package/dist/type-metadata.d.ts.map +1 -1
- package/dist/type-metadata.js +17 -8
- package/dist/type-metadata.js.map +1 -1
- package/dist/typecheck.d.ts.map +1 -1
- package/dist/typecheck.js +5 -4
- package/dist/typecheck.js.map +1 -1
- package/dist/wasm-binary.d.ts +61 -0
- package/dist/wasm-binary.d.ts.map +1 -0
- package/dist/wasm-binary.js +215 -0
- package/dist/wasm-binary.js.map +1 -0
- package/dist/workflow-plan.d.ts +197 -0
- package/dist/workflow-plan.d.ts.map +1 -0
- package/dist/workflow-plan.js +438 -0
- package/dist/workflow-plan.js.map +1 -0
- package/dist/wrap-primitives.d.ts +0 -11
- package/dist/wrap-primitives.d.ts.map +1 -1
- package/dist/wrap-primitives.js +3 -9
- package/dist/wrap-primitives.js.map +1 -1
- package/dist/ws-commands.d.ts +665 -0
- package/dist/ws-commands.d.ts.map +1 -0
- package/dist/ws-commands.js +610 -0
- package/dist/ws-commands.js.map +1 -0
- package/dist/zod-schema.d.ts +20 -0
- package/dist/zod-schema.d.ts.map +1 -0
- package/dist/zod-schema.js +298 -0
- package/dist/zod-schema.js.map +1 -0
- package/package.json +84 -7
- package/schema/sdk-v1.asyncapi.implemented.json +65 -0
- package/schema/sdk-v1.asyncapi.json +65 -0
- package/schema/sdk-v1.discovery.schema.json +1218 -0
- package/schema/sdk-v1.execution.schema.json +2792 -0
- package/schema/sdk-v1.lifecycle.schema.json +1031 -0
- package/schema/sdk-v1.manifest.json +71 -0
- package/schema/sdk-v1.openapi.implemented.json +730 -0
- package/schema/sdk-v1.openapi.json +730 -0
- package/schema/sdk-v1.operations.json +732 -0
- package/dist/agent-protocol.d.ts +0 -217
- package/dist/agent-protocol.d.ts.map +0 -1
- package/dist/agent-protocol.js +0 -85
- package/dist/agent-protocol.js.map +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The platform's own guest surface: the facade generator that expresses one
|
|
3
|
+
* capability module as importable guest JavaScript.
|
|
4
|
+
*
|
|
5
|
+
* A **capability module** is one namespace of NodeTool's own API — workflows,
|
|
6
|
+
* models, media — reached from the guest as
|
|
7
|
+
* `import { list_workflows } from "@nodetool-ai/sandbox-nodetool/workflows"`.
|
|
8
|
+
* The mechanics mirror `sandbox-host.ts` exactly: a generated ESM facade over a
|
|
9
|
+
* private bridge module, which reads a dispatcher the host parks on a global
|
|
10
|
+
* for the length of the entry module's link. Only the far side differs — a host
|
|
11
|
+
* module lands on a library implementation, a capability lands on
|
|
12
|
+
* `CapabilityRun.invoke`, which is where the permission gate lives.
|
|
13
|
+
*
|
|
14
|
+
* **A pack cannot bring one.** The module list is `@nodetool-ai/agents`'
|
|
15
|
+
* capability registry, first-party only, and the host — not the model's consent
|
|
16
|
+
* allowlist — decides which modules a session mounts. Protocol cannot depend on
|
|
17
|
+
* agents, so what lives here is the contract: the specifier shape, the bridge,
|
|
18
|
+
* and the generator. The list of modules stays in the registry.
|
|
19
|
+
*
|
|
20
|
+
* **Export naming: the wire name, and nothing else.** A facade exports
|
|
21
|
+
* `list_workflows`, not `listWorkflows`. One capability, one name — the same
|
|
22
|
+
* string the prompt documents, the MCP surface registers, and the belt calls —
|
|
23
|
+
* so no reader has to know which spelling a surface prefers. Capability names
|
|
24
|
+
* are already valid JavaScript identifiers; {@link generateSandboxCapabilityFacade}
|
|
25
|
+
* refuses anything that is not.
|
|
26
|
+
*
|
|
27
|
+
* Everything here is pure and browser-safe.
|
|
28
|
+
*/
|
|
29
|
+
/** The one pack every capability module is a submodule of. */
|
|
30
|
+
export const SANDBOX_CAPABILITY_PACK = "@nodetool-ai/sandbox-nodetool";
|
|
31
|
+
/** The specifier one registry module is imported under. */
|
|
32
|
+
export function sandboxCapabilitySpecifier(module) {
|
|
33
|
+
return `${SANDBOX_CAPABILITY_PACK}/${module}`;
|
|
34
|
+
}
|
|
35
|
+
/** The registry module a specifier names, or `undefined` for anything else. */
|
|
36
|
+
export function sandboxCapabilityModuleName(specifier) {
|
|
37
|
+
const prefix = `${SANDBOX_CAPABILITY_PACK}/`;
|
|
38
|
+
if (!specifier.startsWith(prefix))
|
|
39
|
+
return undefined;
|
|
40
|
+
const module = specifier.slice(prefix.length);
|
|
41
|
+
return module.length > 0 && !module.includes("/") ? module : undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The facade generator's version. Bump it whenever
|
|
45
|
+
* {@link generateSandboxCapabilityFacade} or
|
|
46
|
+
* {@link SANDBOX_CAPABILITY_BRIDGE_SOURCE} changes what the guest sees.
|
|
47
|
+
*/
|
|
48
|
+
export const SANDBOX_CAPABILITY_FACADE_VERSION = 2;
|
|
49
|
+
/**
|
|
50
|
+
* The guest-visible name the host parks the dispatcher on.
|
|
51
|
+
*
|
|
52
|
+
* It exists only between the init prelude and the entry module's first
|
|
53
|
+
* statement — long enough for the bridge module to capture it while the static
|
|
54
|
+
* graph evaluates, then deleted. The hiding is convenience; the dispatcher's
|
|
55
|
+
* own checks are the boundary.
|
|
56
|
+
*/
|
|
57
|
+
export const SANDBOX_CAPABILITY_DISPATCH_GLOBAL = "__nodetoolCapabilityDispatch";
|
|
58
|
+
/**
|
|
59
|
+
* The private bridge module every capability facade imports.
|
|
60
|
+
*
|
|
61
|
+
* Guest code cannot import it: the loader refuses the specifier from any module
|
|
62
|
+
* that is not a generated facade.
|
|
63
|
+
*/
|
|
64
|
+
export const SANDBOX_CAPABILITY_BRIDGE_SPECIFIER = "nodetool:capability-bridge";
|
|
65
|
+
/**
|
|
66
|
+
* The bridge module's source.
|
|
67
|
+
*
|
|
68
|
+
* It reads the dispatcher once, at module-evaluation time — which happens while
|
|
69
|
+
* the entry module's static graph links, before the entry body deletes the
|
|
70
|
+
* binding.
|
|
71
|
+
*/
|
|
72
|
+
export const SANDBOX_CAPABILITY_BRIDGE_SOURCE = `const __dispatch = globalThis.${SANDBOX_CAPABILITY_DISPATCH_GLOBAL};
|
|
73
|
+
export const __call = (moduleKey, exportName, args) => {
|
|
74
|
+
if (typeof __dispatch !== "function") {
|
|
75
|
+
throw new Error("the sandbox capability bridge is unavailable in this run");
|
|
76
|
+
}
|
|
77
|
+
return __dispatch(moduleKey, exportName, args);
|
|
78
|
+
};
|
|
79
|
+
`;
|
|
80
|
+
const IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
81
|
+
/**
|
|
82
|
+
* Generate the ESM facade for one capability module.
|
|
83
|
+
*
|
|
84
|
+
* One named async export per capability wire name, plus a default namespace
|
|
85
|
+
* object so `import workflows from "@nodetool-ai/sandbox-nodetool/workflows"`
|
|
86
|
+
* reads the way the object model does. Each export takes the arguments
|
|
87
|
+
* record every capability's input schema describes — the same object a direct
|
|
88
|
+
* tool call takes. Extra positional arguments are forwarded, not dropped, so
|
|
89
|
+
* `save_asset("reel.mp4", {source})` reaches the dispatcher instead of
|
|
90
|
+
* arriving as a lone string.
|
|
91
|
+
*/
|
|
92
|
+
export function generateSandboxCapabilityFacade(moduleKey, exportNames) {
|
|
93
|
+
for (const name of exportNames) {
|
|
94
|
+
if (!IDENTIFIER.test(name)) {
|
|
95
|
+
throw new Error(`${moduleKey}: "${name}" is not a valid JavaScript identifier and cannot be exported to the guest`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const body = exportNames
|
|
99
|
+
.map((exported) => `export async function ${exported}(...args) {\n return __call(${JSON.stringify(moduleKey)}, ${JSON.stringify(exported)}, args.length === 0 ? [{}] : args);\n}`)
|
|
100
|
+
.join("\n");
|
|
101
|
+
return `import { __call } from ${JSON.stringify(SANDBOX_CAPABILITY_BRIDGE_SPECIFIER)};
|
|
102
|
+
${body}
|
|
103
|
+
export default { ${exportNames.join(", ")} };
|
|
104
|
+
`;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=sandbox-capability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-capability.js","sourceRoot":"","sources":["../src/sandbox-capability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,8DAA8D;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,+BAA+B,CAAC;AAYvE,2DAA2D;AAC3D,MAAM,UAAU,0BAA0B,CAAC,MAAc;IACvD,OAAO,GAAG,uBAAuB,IAAI,MAAM,EAAE,CAAC;AAChD,CAAC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wCAAwC,CAClK;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,OAAO,0BAA0B,IAAI,CAAC,SAAS,CAAC,mCAAmC,CAAC;EACpF,IAAI;mBACa,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;CACxC,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-JS sandbox modules: the first-party registry, and the facade generator
|
|
3
|
+
* that expresses one as guest JavaScript.
|
|
4
|
+
*
|
|
5
|
+
* A **host module** is a library NodeTool runs on the host — papaparse,
|
|
6
|
+
* cheerio, exceljs — reached from the guest through a generated ESM facade
|
|
7
|
+
* over a per-run dispatcher. It is the host-JS analog of a WASM module: the
|
|
8
|
+
* guest sees `import`, the implementation never enters QuickJS, and the
|
|
9
|
+
* library's safety limits live in the implementation where nothing can bypass
|
|
10
|
+
* them.
|
|
11
|
+
*
|
|
12
|
+
* **A pack cannot bring one.** The `host` manifest kind carries an *id*, and an
|
|
13
|
+
* id resolves only through {@link SANDBOX_HOST_MODULES} — NodeTool's own table,
|
|
14
|
+
* which also pins the package name allowed to declare it. A third-party
|
|
15
|
+
* manifest naming an unknown id is refused at discovery; one naming a known id
|
|
16
|
+
* from the wrong package is refused too, so `@evil/x` cannot claim
|
|
17
|
+
* `@nodetool-ai/sandbox-csv`'s implementation. The dispatcher repeats both
|
|
18
|
+
* checks per call, because the boundary is enforcement, not declaration.
|
|
19
|
+
*
|
|
20
|
+
* Everything here is pure and browser-safe. It lives in `protocol` because
|
|
21
|
+
* `node-sdk` validates a manifest against it, `agents` mounts the facade and
|
|
22
|
+
* dispatches through it, and the browser catalog rebuilds a resolved module
|
|
23
|
+
* from it — three places that must not disagree.
|
|
24
|
+
*/
|
|
25
|
+
/** One host module NodeTool implements, and the pack allowed to declare it. */
|
|
26
|
+
export interface SandboxHostModuleSpec {
|
|
27
|
+
/** Registry id, as written in a manifest's `host` field. */
|
|
28
|
+
readonly id: string;
|
|
29
|
+
/** The only package name that may declare this id. */
|
|
30
|
+
readonly packName: string;
|
|
31
|
+
/** The host-side library behind it. */
|
|
32
|
+
readonly library: string;
|
|
33
|
+
/** One line for the prompt tier and the catalog summary. */
|
|
34
|
+
readonly description: string;
|
|
35
|
+
/** Exported function names, in facade order. Nothing else is callable. */
|
|
36
|
+
readonly exports: readonly string[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Every host module NodeTool ships.
|
|
40
|
+
*
|
|
41
|
+
* Adding a row is a NodeTool change — an implementation has to exist in
|
|
42
|
+
* `@nodetool-ai/agents` for the id to dispatch — which is exactly the property
|
|
43
|
+
* that keeps host execution out of third-party hands.
|
|
44
|
+
*/
|
|
45
|
+
export declare const SANDBOX_HOST_MODULES: Readonly<Record<string, SandboxHostModuleSpec>>;
|
|
46
|
+
/** The host module a registry id names, or `undefined` for anything else. */
|
|
47
|
+
export declare function sandboxHostModule(id: string): SandboxHostModuleSpec | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Why a `kind: "host"` declaration is not admissible, or `undefined` when it is.
|
|
50
|
+
*
|
|
51
|
+
* The text completes "…: " after the specifier, so a caller reads
|
|
52
|
+
* `${packName}/${specifier}: ${reason}`.
|
|
53
|
+
*/
|
|
54
|
+
export declare function sandboxHostModuleViolation(packName: string, hostId: unknown): string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The facade generator's version.
|
|
57
|
+
*
|
|
58
|
+
* It joins a host module's content digest, so a change to the generated guest
|
|
59
|
+
* surface invalidates a workflow's pinned digest. Bump it whenever
|
|
60
|
+
* {@link generateSandboxHostFacade} or {@link SANDBOX_HOST_BRIDGE_SOURCE}
|
|
61
|
+
* changes what the guest sees.
|
|
62
|
+
*/
|
|
63
|
+
export declare const SANDBOX_HOST_FACADE_VERSION = 2;
|
|
64
|
+
/**
|
|
65
|
+
* The guest-visible name the host parks the dispatcher on.
|
|
66
|
+
*
|
|
67
|
+
* It exists only between the init prelude and the entry module's first
|
|
68
|
+
* statement — long enough for the bridge module to capture it while the static
|
|
69
|
+
* graph evaluates, then deleted. The hiding is convenience; the dispatcher's
|
|
70
|
+
* own checks are the boundary.
|
|
71
|
+
*/
|
|
72
|
+
export declare const SANDBOX_HOST_DISPATCH_GLOBAL = "__nodetoolHostDispatch";
|
|
73
|
+
/**
|
|
74
|
+
* The private bridge module every facade imports.
|
|
75
|
+
*
|
|
76
|
+
* Guest code cannot import it: the loader refuses the specifier from any module
|
|
77
|
+
* that is not a generated facade, and the static analyzer refuses it in
|
|
78
|
+
* authored source.
|
|
79
|
+
*/
|
|
80
|
+
export declare const SANDBOX_HOST_BRIDGE_SPECIFIER = "nodetool:host-bridge";
|
|
81
|
+
/**
|
|
82
|
+
* The bridge module's source.
|
|
83
|
+
*
|
|
84
|
+
* It reads the dispatcher once, at module-evaluation time — which happens while
|
|
85
|
+
* the entry module's static graph links, before the entry body deletes the
|
|
86
|
+
* binding.
|
|
87
|
+
*/
|
|
88
|
+
export declare const SANDBOX_HOST_BRIDGE_SOURCE = "const __dispatch = globalThis.__nodetoolHostDispatch;\nexport const __call = (moduleKey, exportName, args) => {\n if (typeof __dispatch !== \"function\") {\n throw new Error(\"the sandbox host bridge is unavailable in this run\");\n }\n return __dispatch(moduleKey, exportName, args);\n};\n";
|
|
89
|
+
/**
|
|
90
|
+
* Generate the ESM facade for one host module.
|
|
91
|
+
*
|
|
92
|
+
* One named async export per registry export, plus a default namespace object
|
|
93
|
+
* so `import csv from "@nodetool-ai/sandbox-csv"` reads the way the library
|
|
94
|
+
* does. Nothing else is exposed: no way to name a module other than this one,
|
|
95
|
+
* and no export the registry does not list.
|
|
96
|
+
*/
|
|
97
|
+
export declare function generateSandboxHostFacade(moduleKey: string, spec: SandboxHostModuleSpec): string;
|
|
98
|
+
//# sourceMappingURL=sandbox-host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-host.d.ts","sourceRoot":"","sources":["../src/sandbox-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,+EAA+E;AAC/E,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,uCAAuC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAqMvE,CAAC;AAEX,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAI/E;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAYpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,yBAAyB,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,6SAOtC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,qBAAqB,GAC1B,MAAM,CAYR"}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-JS sandbox modules: the first-party registry, and the facade generator
|
|
3
|
+
* that expresses one as guest JavaScript.
|
|
4
|
+
*
|
|
5
|
+
* A **host module** is a library NodeTool runs on the host — papaparse,
|
|
6
|
+
* cheerio, exceljs — reached from the guest through a generated ESM facade
|
|
7
|
+
* over a per-run dispatcher. It is the host-JS analog of a WASM module: the
|
|
8
|
+
* guest sees `import`, the implementation never enters QuickJS, and the
|
|
9
|
+
* library's safety limits live in the implementation where nothing can bypass
|
|
10
|
+
* them.
|
|
11
|
+
*
|
|
12
|
+
* **A pack cannot bring one.** The `host` manifest kind carries an *id*, and an
|
|
13
|
+
* id resolves only through {@link SANDBOX_HOST_MODULES} — NodeTool's own table,
|
|
14
|
+
* which also pins the package name allowed to declare it. A third-party
|
|
15
|
+
* manifest naming an unknown id is refused at discovery; one naming a known id
|
|
16
|
+
* from the wrong package is refused too, so `@evil/x` cannot claim
|
|
17
|
+
* `@nodetool-ai/sandbox-csv`'s implementation. The dispatcher repeats both
|
|
18
|
+
* checks per call, because the boundary is enforcement, not declaration.
|
|
19
|
+
*
|
|
20
|
+
* Everything here is pure and browser-safe. It lives in `protocol` because
|
|
21
|
+
* `node-sdk` validates a manifest against it, `agents` mounts the facade and
|
|
22
|
+
* dispatches through it, and the browser catalog rebuilds a resolved module
|
|
23
|
+
* from it — three places that must not disagree.
|
|
24
|
+
*/
|
|
25
|
+
import { isNonEmptyString } from "./predicates.js";
|
|
26
|
+
/**
|
|
27
|
+
* Every host module NodeTool ships.
|
|
28
|
+
*
|
|
29
|
+
* Adding a row is a NodeTool change — an implementation has to exist in
|
|
30
|
+
* `@nodetool-ai/agents` for the id to dispatch — which is exactly the property
|
|
31
|
+
* that keeps host execution out of third-party hands.
|
|
32
|
+
*/
|
|
33
|
+
export const SANDBOX_HOST_MODULES = {
|
|
34
|
+
csv: {
|
|
35
|
+
id: "csv",
|
|
36
|
+
packName: "@nodetool-ai/sandbox-csv",
|
|
37
|
+
library: "papaparse",
|
|
38
|
+
description: "Parse and write CSV text.",
|
|
39
|
+
exports: ["parse", "stringify"]
|
|
40
|
+
},
|
|
41
|
+
html: {
|
|
42
|
+
id: "html",
|
|
43
|
+
packName: "@nodetool-ai/sandbox-html",
|
|
44
|
+
library: "cheerio + turndown",
|
|
45
|
+
description: "CSS selection over HTML, HTML to markdown/text, and link/media/metadata extraction.",
|
|
46
|
+
exports: [
|
|
47
|
+
"select",
|
|
48
|
+
"toMarkdown",
|
|
49
|
+
"toText",
|
|
50
|
+
"extractLinks",
|
|
51
|
+
"extractImages",
|
|
52
|
+
"extractAudio",
|
|
53
|
+
"extractVideos",
|
|
54
|
+
"extractMetadata",
|
|
55
|
+
"extractReadableText"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
xml: {
|
|
59
|
+
id: "xml",
|
|
60
|
+
packName: "@nodetool-ai/sandbox-xml",
|
|
61
|
+
library: "fast-xml-parser",
|
|
62
|
+
description: "Parse XML (feeds, sitemaps) into a plain object.",
|
|
63
|
+
exports: ["parse"]
|
|
64
|
+
},
|
|
65
|
+
xlsx: {
|
|
66
|
+
id: "xlsx",
|
|
67
|
+
packName: "@nodetool-ai/sandbox-xlsx",
|
|
68
|
+
library: "exceljs",
|
|
69
|
+
description: "Read and write Excel workbooks.",
|
|
70
|
+
exports: ["parse", "write"]
|
|
71
|
+
},
|
|
72
|
+
ocr: {
|
|
73
|
+
id: "ocr",
|
|
74
|
+
packName: "@nodetool-ai/sandbox-ocr",
|
|
75
|
+
library: "tesseract.js",
|
|
76
|
+
description: "Read text out of an image, with per-word boxes.",
|
|
77
|
+
exports: ["recognize"]
|
|
78
|
+
},
|
|
79
|
+
tfjs: {
|
|
80
|
+
id: "tfjs",
|
|
81
|
+
packName: "@nodetool-ai/sandbox-tfjs",
|
|
82
|
+
library: "@tensorflow/tfjs + the tfjs model zoo",
|
|
83
|
+
description: "Classify and embed images, detect objects, answer from a passage.",
|
|
84
|
+
exports: ["classify", "embed", "detect", "answer"]
|
|
85
|
+
},
|
|
86
|
+
zip: {
|
|
87
|
+
id: "zip",
|
|
88
|
+
packName: "@nodetool-ai/sandbox-zip",
|
|
89
|
+
library: "fflate",
|
|
90
|
+
description: "Read and write zip archives, with an inflation cap.",
|
|
91
|
+
exports: ["unzip", "zip"]
|
|
92
|
+
},
|
|
93
|
+
diff: {
|
|
94
|
+
id: "diff",
|
|
95
|
+
packName: "@nodetool-ai/sandbox-diff",
|
|
96
|
+
library: "diff",
|
|
97
|
+
description: "Unified diff of two texts.",
|
|
98
|
+
exports: ["unified"]
|
|
99
|
+
},
|
|
100
|
+
aws: {
|
|
101
|
+
id: "aws",
|
|
102
|
+
packName: "@nodetool-ai/sandbox-aws",
|
|
103
|
+
library: "NodeTool's SigV4 signer",
|
|
104
|
+
description: "Sign an AWS request (S3 and friends) with Signature V4.",
|
|
105
|
+
exports: ["sigv4", "presign"]
|
|
106
|
+
},
|
|
107
|
+
notion: {
|
|
108
|
+
id: "notion",
|
|
109
|
+
packName: "@nodetool-ai/sandbox-notion",
|
|
110
|
+
library: "NodeTool's Notion helper",
|
|
111
|
+
description: "Build a Notion API request, and read its rich text and blocks.",
|
|
112
|
+
exports: ["request", "plainText", "toMarkdown"]
|
|
113
|
+
},
|
|
114
|
+
supabase: {
|
|
115
|
+
id: "supabase",
|
|
116
|
+
packName: "@nodetool-ai/sandbox-supabase",
|
|
117
|
+
library: "NodeTool's PostgREST helper",
|
|
118
|
+
description: "Build a Supabase REST or RPC request.",
|
|
119
|
+
exports: ["from", "rpc"]
|
|
120
|
+
},
|
|
121
|
+
twilio: {
|
|
122
|
+
id: "twilio",
|
|
123
|
+
packName: "@nodetool-ai/sandbox-twilio",
|
|
124
|
+
library: "NodeTool's Twilio helper",
|
|
125
|
+
description: "Build an authenticated Twilio API request.",
|
|
126
|
+
exports: ["request"]
|
|
127
|
+
},
|
|
128
|
+
docx: {
|
|
129
|
+
id: "docx",
|
|
130
|
+
packName: "@nodetool-ai/sandbox-docx",
|
|
131
|
+
library: "docx",
|
|
132
|
+
description: "Build a Word document from headings, paragraphs, tables, and images.",
|
|
133
|
+
exports: ["build"]
|
|
134
|
+
},
|
|
135
|
+
mammoth: {
|
|
136
|
+
id: "mammoth",
|
|
137
|
+
packName: "@nodetool-ai/sandbox-mammoth",
|
|
138
|
+
library: "mammoth",
|
|
139
|
+
description: "Read a Word document as plain text or HTML.",
|
|
140
|
+
exports: ["extractRawText", "convertToHtml"]
|
|
141
|
+
},
|
|
142
|
+
epub: {
|
|
143
|
+
id: "epub",
|
|
144
|
+
packName: "@nodetool-ai/sandbox-epub",
|
|
145
|
+
library: "epub2",
|
|
146
|
+
description: "Read an EPUB's metadata, table of contents, and chapter text.",
|
|
147
|
+
exports: ["metadata", "tableOfContents", "extractText", "extractChapters"]
|
|
148
|
+
},
|
|
149
|
+
pdf: {
|
|
150
|
+
id: "pdf",
|
|
151
|
+
packName: "@nodetool-ai/sandbox-pdf",
|
|
152
|
+
library: "pdf-parse",
|
|
153
|
+
description: "Extract a PDF's embedded text, whole or per page. No OCR of scanned pages.",
|
|
154
|
+
exports: ["extractText", "extractPages"]
|
|
155
|
+
},
|
|
156
|
+
pptx: {
|
|
157
|
+
id: "pptx",
|
|
158
|
+
packName: "@nodetool-ai/sandbox-pptx",
|
|
159
|
+
library: "office-text-extractor",
|
|
160
|
+
description: "Extract text from a PowerPoint file, whole or per slide.",
|
|
161
|
+
exports: ["extractText", "extractSlides"]
|
|
162
|
+
},
|
|
163
|
+
fabric: {
|
|
164
|
+
id: "fabric",
|
|
165
|
+
packName: "@nodetool-ai/sandbox-fabric",
|
|
166
|
+
library: "fabric",
|
|
167
|
+
description: "Build, parse, and rasterize SVG with Fabric.js (renderSVG, loadSVG, render).",
|
|
168
|
+
exports: ["render", "renderSVG", "loadSVG", "toDataURL"]
|
|
169
|
+
},
|
|
170
|
+
pdflib: {
|
|
171
|
+
id: "pdflib",
|
|
172
|
+
packName: "@nodetool-ai/sandbox-pdflib",
|
|
173
|
+
library: "pdf-lib",
|
|
174
|
+
description: "Build and merge PDF files from a JSON page list.",
|
|
175
|
+
exports: ["build", "merge"]
|
|
176
|
+
},
|
|
177
|
+
pptxgen: {
|
|
178
|
+
id: "pptxgen",
|
|
179
|
+
packName: "@nodetool-ai/sandbox-pptxgen",
|
|
180
|
+
library: "pptxgenjs",
|
|
181
|
+
description: "Build a PowerPoint file from a JSON slide list.",
|
|
182
|
+
exports: ["build"]
|
|
183
|
+
},
|
|
184
|
+
chrono: {
|
|
185
|
+
id: "chrono",
|
|
186
|
+
packName: "@nodetool-ai/sandbox-chrono",
|
|
187
|
+
library: "chrono-node",
|
|
188
|
+
description: "Parse natural-language dates into ISO timestamps.",
|
|
189
|
+
exports: ["parseDate", "parse"]
|
|
190
|
+
},
|
|
191
|
+
exif: {
|
|
192
|
+
id: "exif",
|
|
193
|
+
packName: "@nodetool-ai/sandbox-exif",
|
|
194
|
+
library: "exifr",
|
|
195
|
+
description: "Read EXIF and other photo metadata from image bytes.",
|
|
196
|
+
exports: ["parse"]
|
|
197
|
+
},
|
|
198
|
+
expr: {
|
|
199
|
+
id: "expr",
|
|
200
|
+
packName: "@nodetool-ai/sandbox-expr",
|
|
201
|
+
library: "expr-eval",
|
|
202
|
+
description: "Evaluate a math formula without eval.",
|
|
203
|
+
exports: ["evaluate"]
|
|
204
|
+
},
|
|
205
|
+
ics: {
|
|
206
|
+
id: "ics",
|
|
207
|
+
packName: "@nodetool-ai/sandbox-ics",
|
|
208
|
+
library: "ics",
|
|
209
|
+
description: "Build iCalendar (.ics) text from event objects.",
|
|
210
|
+
exports: ["createEvent", "createEvents"]
|
|
211
|
+
},
|
|
212
|
+
subtitle: {
|
|
213
|
+
id: "subtitle",
|
|
214
|
+
packName: "@nodetool-ai/sandbox-subtitle",
|
|
215
|
+
library: "subtitle",
|
|
216
|
+
description: "Parse and write SRT and WebVTT captions.",
|
|
217
|
+
exports: ["parse", "stringify"]
|
|
218
|
+
},
|
|
219
|
+
tokens: {
|
|
220
|
+
id: "tokens",
|
|
221
|
+
packName: "@nodetool-ai/sandbox-tokens",
|
|
222
|
+
library: "js-tiktoken",
|
|
223
|
+
description: "Count, encode, and decode LLM tokens with tiktoken.",
|
|
224
|
+
exports: ["count", "encode", "decode"]
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
/** The host module a registry id names, or `undefined` for anything else. */
|
|
228
|
+
export function sandboxHostModule(id) {
|
|
229
|
+
return Object.hasOwn(SANDBOX_HOST_MODULES, id)
|
|
230
|
+
? SANDBOX_HOST_MODULES[id]
|
|
231
|
+
: undefined;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Why a `kind: "host"` declaration is not admissible, or `undefined` when it is.
|
|
235
|
+
*
|
|
236
|
+
* The text completes "…: " after the specifier, so a caller reads
|
|
237
|
+
* `${packName}/${specifier}: ${reason}`.
|
|
238
|
+
*/
|
|
239
|
+
export function sandboxHostModuleViolation(packName, hostId) {
|
|
240
|
+
if (!isNonEmptyString(hostId)) {
|
|
241
|
+
return "a host module must name a host id";
|
|
242
|
+
}
|
|
243
|
+
const spec = sandboxHostModule(hostId);
|
|
244
|
+
if (spec === undefined) {
|
|
245
|
+
return `"${hostId}" is not a host module NodeTool implements — host modules are first-party only, and a pack cannot bring its own`;
|
|
246
|
+
}
|
|
247
|
+
if (spec.packName !== packName) {
|
|
248
|
+
return `host module "${hostId}" belongs to ${spec.packName} and cannot be declared by ${packName}`;
|
|
249
|
+
}
|
|
250
|
+
return undefined;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* The facade generator's version.
|
|
254
|
+
*
|
|
255
|
+
* It joins a host module's content digest, so a change to the generated guest
|
|
256
|
+
* surface invalidates a workflow's pinned digest. Bump it whenever
|
|
257
|
+
* {@link generateSandboxHostFacade} or {@link SANDBOX_HOST_BRIDGE_SOURCE}
|
|
258
|
+
* changes what the guest sees.
|
|
259
|
+
*/
|
|
260
|
+
export const SANDBOX_HOST_FACADE_VERSION = 2;
|
|
261
|
+
/**
|
|
262
|
+
* The guest-visible name the host parks the dispatcher on.
|
|
263
|
+
*
|
|
264
|
+
* It exists only between the init prelude and the entry module's first
|
|
265
|
+
* statement — long enough for the bridge module to capture it while the static
|
|
266
|
+
* graph evaluates, then deleted. The hiding is convenience; the dispatcher's
|
|
267
|
+
* own checks are the boundary.
|
|
268
|
+
*/
|
|
269
|
+
export const SANDBOX_HOST_DISPATCH_GLOBAL = "__nodetoolHostDispatch";
|
|
270
|
+
/**
|
|
271
|
+
* The private bridge module every facade imports.
|
|
272
|
+
*
|
|
273
|
+
* Guest code cannot import it: the loader refuses the specifier from any module
|
|
274
|
+
* that is not a generated facade, and the static analyzer refuses it in
|
|
275
|
+
* authored source.
|
|
276
|
+
*/
|
|
277
|
+
export const SANDBOX_HOST_BRIDGE_SPECIFIER = "nodetool:host-bridge";
|
|
278
|
+
/**
|
|
279
|
+
* The bridge module's source.
|
|
280
|
+
*
|
|
281
|
+
* It reads the dispatcher once, at module-evaluation time — which happens while
|
|
282
|
+
* the entry module's static graph links, before the entry body deletes the
|
|
283
|
+
* binding.
|
|
284
|
+
*/
|
|
285
|
+
export const SANDBOX_HOST_BRIDGE_SOURCE = `const __dispatch = globalThis.${SANDBOX_HOST_DISPATCH_GLOBAL};
|
|
286
|
+
export const __call = (moduleKey, exportName, args) => {
|
|
287
|
+
if (typeof __dispatch !== "function") {
|
|
288
|
+
throw new Error("the sandbox host bridge is unavailable in this run");
|
|
289
|
+
}
|
|
290
|
+
return __dispatch(moduleKey, exportName, args);
|
|
291
|
+
};
|
|
292
|
+
`;
|
|
293
|
+
/**
|
|
294
|
+
* Generate the ESM facade for one host module.
|
|
295
|
+
*
|
|
296
|
+
* One named async export per registry export, plus a default namespace object
|
|
297
|
+
* so `import csv from "@nodetool-ai/sandbox-csv"` reads the way the library
|
|
298
|
+
* does. Nothing else is exposed: no way to name a module other than this one,
|
|
299
|
+
* and no export the registry does not list.
|
|
300
|
+
*/
|
|
301
|
+
export function generateSandboxHostFacade(moduleKey, spec) {
|
|
302
|
+
const body = spec.exports
|
|
303
|
+
.map((exported) => `export async function ${exported}(...args) {\n return __call(${JSON.stringify(moduleKey)}, ${JSON.stringify(exported)}, args);\n}`)
|
|
304
|
+
.join("\n");
|
|
305
|
+
const namespace = spec.exports.join(", ");
|
|
306
|
+
return `import { __call } from ${JSON.stringify(SANDBOX_HOST_BRIDGE_SPECIFIER)};
|
|
307
|
+
${body}
|
|
308
|
+
export default { ${namespace} };
|
|
309
|
+
`;
|
|
310
|
+
}
|
|
311
|
+
//# sourceMappingURL=sandbox-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-host.js","sourceRoot":"","sources":["../src/sandbox-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAgBnD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAoD;IACnF,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,QAAQ,EAAE,0BAA0B;QACpC,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;KAChC;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,QAAQ,EAAE,2BAA2B;QACrC,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EACT,qFAAqF;QACvF,OAAO,EAAE;YACP,QAAQ;YACR,YAAY;YACZ,QAAQ;YACR,cAAc;YACd,eAAe;YACf,cAAc;YACd,eAAe;YACf,iBAAiB;YACjB,qBAAqB;SACtB;KACF;IACD,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,QAAQ,EAAE,0BAA0B;QACpC,OAAO,EAAE,iBAAiB;QAC1B,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,CAAC,OAAO,CAAC;KACnB;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,QAAQ,EAAE,2BAA2B;QACrC,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,CAAC,OAAO,EAAE,OA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