@nodetool-ai/protocol 0.7.0-rc.23 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/ai-video-production.d.ts +276 -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/app-runs.d.ts +1410 -0
- package/dist/api-schemas/app-runs.d.ts.map +1 -0
- package/dist/api-schemas/app-runs.js +105 -0
- package/dist/api-schemas/app-runs.js.map +1 -0
- package/dist/api-schemas/applications.d.ts +3216 -0
- package/dist/api-schemas/applications.d.ts.map +1 -0
- package/dist/api-schemas/applications.js +487 -0
- package/dist/api-schemas/applications.js.map +1 -0
- package/dist/api-schemas/assets.d.ts +239 -0
- package/dist/api-schemas/assets.d.ts.map +1 -1
- package/dist/api-schemas/assets.js +136 -5
- package/dist/api-schemas/assets.js.map +1 -1
- package/dist/api-schemas/bug-reports.d.ts +38 -0
- package/dist/api-schemas/bug-reports.d.ts.map +1 -0
- package/dist/api-schemas/bug-reports.js +34 -0
- package/dist/api-schemas/bug-reports.js.map +1 -0
- 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/error-traces.d.ts +249 -0
- package/dist/api-schemas/error-traces.d.ts.map +1 -0
- package/dist/api-schemas/error-traces.js +112 -0
- package/dist/api-schemas/error-traces.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 +27 -1
- package/dist/api-schemas/index.d.ts.map +1 -1
- package/dist/api-schemas/index.js +27 -1
- package/dist/api-schemas/index.js.map +1 -1
- package/dist/api-schemas/jobs.d.ts +44 -0
- package/dist/api-schemas/jobs.d.ts.map +1 -1
- package/dist/api-schemas/jobs.js +26 -2
- package/dist/api-schemas/jobs.js.map +1 -1
- package/dist/api-schemas/js-scripts.d.ts +367 -0
- package/dist/api-schemas/js-scripts.d.ts.map +1 -0
- package/dist/api-schemas/js-scripts.js +341 -0
- package/dist/api-schemas/js-scripts.js.map +1 -0
- package/dist/api-schemas/mcp-config.d.ts +4 -1
- package/dist/api-schemas/mcp-config.d.ts.map +1 -1
- package/dist/api-schemas/mcp-config.js +10 -3
- 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 +164 -0
- package/dist/api-schemas/models.d.ts.map +1 -1
- package/dist/api-schemas/models.js +53 -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/runs.d.ts +6 -0
- package/dist/api-schemas/runs.d.ts.map +1 -0
- package/dist/api-schemas/runs.js +4 -0
- package/dist/api-schemas/runs.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 +468 -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 +162 -0
- package/dist/api-schemas/settings.d.ts.map +1 -1
- package/dist/api-schemas/settings.js +71 -0
- package/dist/api-schemas/settings.js.map +1 -1
- package/dist/api-schemas/sketch.d.ts +858 -0
- package/dist/api-schemas/sketch.d.ts.map +1 -0
- package/dist/api-schemas/sketch.js +546 -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 +8595 -0
- package/dist/api-schemas/storyboards.d.ts.map +1 -0
- package/dist/api-schemas/storyboards.js +524 -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 +1687 -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 +1270 -0
- package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
- package/dist/api-schemas/timeline-tool-params.js +1529 -0
- package/dist/api-schemas/timeline-tool-params.js.map +1 -0
- package/dist/api-schemas/timeline.d.ts +13740 -0
- package/dist/api-schemas/timeline.d.ts.map +1 -0
- package/dist/api-schemas/timeline.js +1928 -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 +904 -18
- package/dist/api-schemas/workflows.d.ts.map +1 -1
- package/dist/api-schemas/workflows.js +507 -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 +651 -27
- package/dist/api-types.d.ts.map +1 -1
- package/dist/api-types.js +252 -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-file-name.d.ts +15 -0
- package/dist/asset-file-name.d.ts.map +1 -0
- package/dist/asset-file-name.js +61 -0
- package/dist/asset-file-name.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/browser-run-traces.d.ts +102 -0
- package/dist/browser-run-traces.d.ts.map +1 -0
- package/dist/browser-run-traces.js +30 -0
- package/dist/browser-run-traces.js.map +1 -0
- package/dist/builtin-packs.d.ts +45 -0
- package/dist/builtin-packs.d.ts.map +1 -0
- package/dist/builtin-packs.js +121 -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 +286 -0
- package/dist/cloud-profile.js.map +1 -0
- package/dist/creative.d.ts +580 -0
- package/dist/creative.d.ts.map +1 -0
- package/dist/creative.js +274 -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-authoring.d.ts +113 -0
- package/dist/game-authoring.d.ts.map +1 -0
- package/dist/game-authoring.js +37 -0
- package/dist/game-authoring.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-step.d.ts +10 -0
- package/dist/game-step.d.ts.map +1 -0
- package/dist/game-step.js +2 -0
- package/dist/game-step.js.map +1 -0
- package/dist/game.d.ts +2 -0
- package/dist/game.d.ts.map +1 -0
- package/dist/game.js +2 -0
- package/dist/game.js.map +1 -0
- package/dist/game2d/components/animator.d.ts +22 -0
- package/dist/game2d/components/animator.d.ts.map +1 -0
- package/dist/game2d/components/animator.js +6 -0
- package/dist/game2d/components/animator.js.map +1 -0
- package/dist/game2d/components/assets.d.ts +132 -0
- package/dist/game2d/components/assets.d.ts.map +1 -0
- package/dist/game2d/components/assets.js +52 -0
- package/dist/game2d/components/assets.js.map +1 -0
- package/dist/game2d/components/audioSource.d.ts +7 -0
- package/dist/game2d/components/audioSource.d.ts.map +1 -0
- package/dist/game2d/components/audioSource.js +4 -0
- package/dist/game2d/components/audioSource.js.map +1 -0
- package/dist/game2d/components/background.d.ts +38 -0
- package/dist/game2d/components/background.d.ts.map +1 -0
- package/dist/game2d/components/background.js +10 -0
- package/dist/game2d/components/background.js.map +1 -0
- package/dist/game2d/components/behaviors.d.ts +50 -0
- package/dist/game2d/components/behaviors.d.ts.map +1 -0
- package/dist/game2d/components/behaviors.js +15 -0
- package/dist/game2d/components/behaviors.js.map +1 -0
- package/dist/game2d/components/body2d.d.ts +13 -0
- package/dist/game2d/components/body2d.d.ts.map +1 -0
- package/dist/game2d/components/body2d.js +4 -0
- package/dist/game2d/components/body2d.js.map +1 -0
- package/dist/game2d/components/camera2d.d.ts +7 -0
- package/dist/game2d/components/camera2d.d.ts.map +1 -0
- package/dist/game2d/components/camera2d.js +4 -0
- package/dist/game2d/components/camera2d.js.map +1 -0
- package/dist/game2d/components/collider2d.d.ts +10 -0
- package/dist/game2d/components/collider2d.d.ts.map +1 -0
- package/dist/game2d/components/collider2d.js +5 -0
- package/dist/game2d/components/collider2d.js.map +1 -0
- package/dist/game2d/components/common.d.ts +16 -0
- package/dist/game2d/components/common.d.ts.map +1 -0
- package/dist/game2d/components/common.js +13 -0
- package/dist/game2d/components/common.js.map +1 -0
- package/dist/game2d/components/entity-components.d.ts +181 -0
- package/dist/game2d/components/entity-components.d.ts.map +1 -0
- package/dist/game2d/components/entity-components.js +21 -0
- package/dist/game2d/components/entity-components.js.map +1 -0
- package/dist/game2d/components/light2d.d.ts +12 -0
- package/dist/game2d/components/light2d.d.ts.map +1 -0
- package/dist/game2d/components/light2d.js +5 -0
- package/dist/game2d/components/light2d.js.map +1 -0
- package/dist/game2d/components/lighting.d.ts +17 -0
- package/dist/game2d/components/lighting.d.ts.map +1 -0
- package/dist/game2d/components/lighting.js +6 -0
- package/dist/game2d/components/lighting.js.map +1 -0
- package/dist/game2d/components/music.d.ts +8 -0
- package/dist/game2d/components/music.d.ts.map +1 -0
- package/dist/game2d/components/music.js +4 -0
- package/dist/game2d/components/music.js.map +1 -0
- package/dist/game2d/components/sprite.d.ts +26 -0
- package/dist/game2d/components/sprite.d.ts.map +1 -0
- package/dist/game2d/components/sprite.js +6 -0
- package/dist/game2d/components/sprite.js.map +1 -0
- package/dist/game2d/components/tilemap.d.ts +23 -0
- package/dist/game2d/components/tilemap.d.ts.map +1 -0
- package/dist/game2d/components/tilemap.js +6 -0
- package/dist/game2d/components/tilemap.js.map +1 -0
- package/dist/game2d/components/transform.d.ts +10 -0
- package/dist/game2d/components/transform.d.ts.map +1 -0
- package/dist/game2d/components/transform.js +10 -0
- package/dist/game2d/components/transform.js.map +1 -0
- package/dist/game2d/components/visual-animation.d.ts +148 -0
- package/dist/game2d/components/visual-animation.d.ts.map +1 -0
- package/dist/game2d/components/visual-animation.js +10 -0
- package/dist/game2d/components/visual-animation.js.map +1 -0
- package/dist/game2d/index.d.ts +1426 -0
- package/dist/game2d/index.d.ts.map +1 -0
- package/dist/game2d/index.js +135 -0
- package/dist/game2d/index.js.map +1 -0
- package/dist/game3d/components/animator.d.ts +9 -0
- package/dist/game3d/components/animator.d.ts.map +1 -0
- package/dist/game3d/components/animator.js +7 -0
- package/dist/game3d/components/animator.js.map +1 -0
- package/dist/game3d/components/assets.d.ts +261 -0
- package/dist/game3d/components/assets.d.ts.map +1 -0
- package/dist/game3d/components/assets.js +21 -0
- package/dist/game3d/components/assets.js.map +1 -0
- package/dist/game3d/components/behaviors.d.ts +66 -0
- package/dist/game3d/components/behaviors.d.ts.map +1 -0
- package/dist/game3d/components/behaviors.js +9 -0
- package/dist/game3d/components/behaviors.js.map +1 -0
- package/dist/game3d/components/body.d.ts +53 -0
- package/dist/game3d/components/body.d.ts.map +1 -0
- package/dist/game3d/components/body.js +15 -0
- package/dist/game3d/components/body.js.map +1 -0
- package/dist/game3d/components/camera.d.ts +49 -0
- package/dist/game3d/components/camera.d.ts.map +1 -0
- package/dist/game3d/components/camera.js +20 -0
- package/dist/game3d/components/camera.js.map +1 -0
- package/dist/game3d/components/character.d.ts +16 -0
- package/dist/game3d/components/character.d.ts.map +1 -0
- package/dist/game3d/components/character.js +10 -0
- package/dist/game3d/components/character.js.map +1 -0
- package/dist/game3d/components/collider-geometry.d.ts +7 -0
- package/dist/game3d/components/collider-geometry.d.ts.map +1 -0
- package/dist/game3d/components/collider-geometry.js +13 -0
- package/dist/game3d/components/collider-geometry.js.map +1 -0
- package/dist/game3d/components/collider.d.ts +79 -0
- package/dist/game3d/components/collider.d.ts.map +1 -0
- package/dist/game3d/components/collider.js +16 -0
- package/dist/game3d/components/collider.js.map +1 -0
- package/dist/game3d/components/common.d.ts +8 -0
- package/dist/game3d/components/common.d.ts.map +1 -0
- package/dist/game3d/components/common.js +8 -0
- package/dist/game3d/components/common.js.map +1 -0
- package/dist/game3d/components/environment.d.ts +20 -0
- package/dist/game3d/components/environment.d.ts.map +1 -0
- package/dist/game3d/components/environment.js +8 -0
- package/dist/game3d/components/environment.js.map +1 -0
- package/dist/game3d/components/interaction-actor.d.ts +6 -0
- package/dist/game3d/components/interaction-actor.d.ts.map +1 -0
- package/dist/game3d/components/interaction-actor.js +3 -0
- package/dist/game3d/components/interaction-actor.js.map +1 -0
- package/dist/game3d/components/light.d.ts +23 -0
- package/dist/game3d/components/light.d.ts.map +1 -0
- package/dist/game3d/components/light.js +9 -0
- package/dist/game3d/components/light.js.map +1 -0
- package/dist/game3d/components/material.d.ts +15 -0
- package/dist/game3d/components/material.d.ts.map +1 -0
- package/dist/game3d/components/material.js +9 -0
- package/dist/game3d/components/material.js.map +1 -0
- package/dist/game3d/components/model.d.ts +22 -0
- package/dist/game3d/components/model.d.ts.map +1 -0
- package/dist/game3d/components/model.js +8 -0
- package/dist/game3d/components/model.js.map +1 -0
- package/dist/game3d/components/primitive.d.ts +31 -0
- package/dist/game3d/components/primitive.d.ts.map +1 -0
- package/dist/game3d/components/primitive.js +10 -0
- package/dist/game3d/components/primitive.js.map +1 -0
- package/dist/game3d/components/transform.d.ts +24 -0
- package/dist/game3d/components/transform.d.ts.map +1 -0
- package/dist/game3d/components/transform.js +10 -0
- package/dist/game3d/components/transform.js.map +1 -0
- package/dist/game3d/index.d.ts +4045 -0
- package/dist/game3d/index.d.ts.map +1 -0
- package/dist/game3d/index.js +159 -0
- package/dist/game3d/index.js.map +1 -0
- package/dist/game3d.d.ts +2 -0
- package/dist/game3d.d.ts.map +1 -0
- package/dist/game3d.js +2 -0
- package/dist/game3d.js.map +1 -0
- package/dist/graph.d.ts +192 -5
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +515 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +59 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -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 +1577 -243
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +718 -22
- package/dist/messages.js.map +1 -1
- package/dist/missing-runtime-package.d.ts +23 -0
- package/dist/missing-runtime-package.d.ts.map +1 -0
- package/dist/missing-runtime-package.js +34 -0
- package/dist/missing-runtime-package.js.map +1 -0
- 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 +2545 -0
- package/dist/production-authoring.d.ts +931 -0
- package/dist/production-authoring.d.ts.map +1 -0
- package/dist/production-authoring.js +931 -0
- package/dist/production-authoring.js.map +1 -0
- package/dist/python-packs.d.ts +25 -0
- package/dist/python-packs.d.ts.map +1 -0
- package/dist/python-packs.js +51 -0
- package/dist/python-packs.js.map +1 -0
- package/dist/render-record.d.ts +228 -0
- package/dist/render-record.d.ts.map +1 -0
- package/dist/render-record.js +212 -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 +91 -0
- package/dist/resource-uri.js.map +1 -0
- package/dist/run-readers.d.ts +760 -0
- package/dist/run-readers.d.ts.map +1 -0
- package/dist/run-readers.js +153 -0
- package/dist/run-readers.js.map +1 -0
- package/dist/run-trace.d.ts +206 -0
- package/dist/run-trace.d.ts.map +1 -0
- package/dist/run-trace.js +177 -0
- package/dist/run-trace.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 +352 -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/script-pace.d.ts +4 -0
- package/dist/script-pace.d.ts.map +1 -0
- package/dist/script-pace.js +11 -0
- package/dist/script-pace.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 +140 -0
- package/dist/skill-document.js.map +1 -0
- package/dist/storyboard-render-spec.d.ts +4 -0
- package/dist/storyboard-render-spec.d.ts.map +1 -0
- package/dist/storyboard-render-spec.js +4 -0
- package/dist/storyboard-render-spec.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 +18 -14
- package/dist/toolSchemas.d.ts.map +1 -1
- package/dist/toolSchemas.js +30 -31
- 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-document-revision.d.ts +4 -0
- package/dist/workflow-document-revision.d.ts.map +1 -0
- package/dist/workflow-document-revision.js +111 -0
- package/dist/workflow-document-revision.js.map +1 -0
- package/dist/workflow-plan.d.ts +274 -0
- package/dist/workflow-plan.d.ts.map +1 -0
- package/dist/workflow-plan.js +667 -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 +770 -0
- package/dist/ws-commands.d.ts.map +1 -0
- package/dist/ws-commands.js +624 -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 +96 -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
|
@@ -6,39 +6,76 @@
|
|
|
6
6
|
* — which re-exports every LLM provider with their heavy SDK imports —
|
|
7
7
|
* into the main bundle.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* Two distinct numbers, deliberately decoupled so the JS and Python sides can
|
|
10
|
+
* ship on independent cadences:
|
|
11
|
+
*
|
|
12
|
+
* - `BRIDGE_PROTOCOL_VERSION` — the protocol the JS runtime currently
|
|
13
|
+
* *speaks*. Bumped whenever the JS side gains awareness of new wire
|
|
14
|
+
* features (e.g. new message types). Features are negotiated against the
|
|
15
|
+
* value the worker reports in its `discover`/`worker.status` response, so
|
|
16
|
+
* a newer JS runtime can still drive an older worker for everything that
|
|
17
|
+
* worker understands.
|
|
18
|
+
* - `MIN_BRIDGE_PROTOCOL_VERSION` — the *hard floor*. The JS runtime refuses
|
|
19
|
+
* to connect to a worker reporting a protocol below this. Bumped ONLY for
|
|
20
|
+
* genuinely backward-incompatible changes (framing changes, schema breaks,
|
|
21
|
+
* a removed/changed message). Additive changes (new message types the old
|
|
22
|
+
* worker simply never receives) MUST NOT move this floor — they are gated
|
|
23
|
+
* per-feature instead (see `supportsModelManagement`, `supportsComfy`).
|
|
13
24
|
*
|
|
14
25
|
* Coupling rules:
|
|
15
26
|
*
|
|
16
|
-
* -
|
|
17
|
-
*
|
|
27
|
+
* - The Python worker reports its own `BRIDGE_PROTOCOL_VERSION` in its
|
|
28
|
+
* `discover`/`worker.status` responses.
|
|
18
29
|
* - `MIN_NODETOOL_CORE_VERSION` is the lowest published `nodetool-core`
|
|
19
|
-
* PEP 440 version
|
|
20
|
-
*
|
|
21
|
-
* prebuild check refuses to ship if the registry has no wheel that
|
|
22
|
-
* satisfies the constraint.
|
|
30
|
+
* PEP 440 version the Electron installer pins. The prebuild check refuses
|
|
31
|
+
* to ship if the registry has no wheel that satisfies the constraint.
|
|
23
32
|
*
|
|
24
|
-
* On
|
|
33
|
+
* On an ADDITIVE protocol change (new message types, no break):
|
|
25
34
|
*
|
|
26
35
|
* 1. Bump `BRIDGE_PROTOCOL_VERSION` here AND in
|
|
27
36
|
* `nodetool-core/src/nodetool/worker/__init__.py` (lockstep).
|
|
37
|
+
* 2. Gate the new feature on the reported version (e.g. a `supportsX()`
|
|
38
|
+
* capability check). Leave `MIN_BRIDGE_PROTOCOL_VERSION` untouched so
|
|
39
|
+
* existing workers keep connecting and simply don't offer the feature.
|
|
40
|
+
*
|
|
41
|
+
* On a BREAKING protocol change:
|
|
42
|
+
*
|
|
43
|
+
* 1. Bump `BRIDGE_PROTOCOL_VERSION` AND `MIN_BRIDGE_PROTOCOL_VERSION` here
|
|
44
|
+
* and in `nodetool-core` (lockstep).
|
|
28
45
|
* 2. Cut a new `nodetool-core` release containing the bump.
|
|
29
46
|
* 3. Update `MIN_NODETOOL_CORE_VERSION` to that new release.
|
|
30
47
|
*/
|
|
31
|
-
export declare const BRIDGE_PROTOCOL_VERSION =
|
|
48
|
+
export declare const BRIDGE_PROTOCOL_VERSION = 6;
|
|
49
|
+
/**
|
|
50
|
+
* Hard floor: the JS runtime rejects (at `discover`) any worker reporting a
|
|
51
|
+
* protocol below this. Stays at 1 because every protocol change so far has
|
|
52
|
+
* been additive — `models.*` (v2) is negotiated via `supportsModelManagement`,
|
|
53
|
+
* `comfy.*` (v3) via `supportsComfy`, and run identity + `job.*` + `models.evict`
|
|
54
|
+
* (v4) via `supportsJobLifecycle` — so a v1 worker still connects and runs
|
|
55
|
+
* every pre-v2 feature; it just doesn't expose the newer families. Move this
|
|
56
|
+
* only for a real wire break.
|
|
57
|
+
*
|
|
58
|
+
* v4 is additive in both directions. The identity keys added to `execute` /
|
|
59
|
+
* `execute.stream` (`node_id`, `job_id`, `workflow_id`, `user_id`,
|
|
60
|
+
* `requires_vram_gb`) are extra dict entries a pre-v4 worker ignores, so the
|
|
61
|
+
* JS side sends them unconditionally; only the new `job.start` / `job.end` /
|
|
62
|
+
* `models.evict` message types are gated, because a pre-v4 worker answers
|
|
63
|
+
* those with `Unknown message type`.
|
|
64
|
+
*
|
|
65
|
+
* v5 adds an optional `chunked-v1` execute-result blob transfer. The JS side
|
|
66
|
+
* requests it only from workers reporting v5 or newer; older workers keep
|
|
67
|
+
* returning the legacy inline `blobs` map.
|
|
68
|
+
*/
|
|
69
|
+
export declare const MIN_BRIDGE_PROTOCOL_VERSION = 1;
|
|
32
70
|
/**
|
|
33
|
-
* Lowest published nodetool-core version (PEP 440 string)
|
|
34
|
-
*
|
|
35
|
-
* Used by the prebuild registry check and the Electron installer's pin
|
|
71
|
+
* Lowest published nodetool-core version (PEP 440 string) the Electron
|
|
72
|
+
* installer pins. Used by the prebuild registry check and the installer's pin
|
|
36
73
|
* specifier.
|
|
37
74
|
*
|
|
38
|
-
*
|
|
39
|
-
* BRIDGE_PROTOCOL_VERSION
|
|
40
|
-
*
|
|
41
|
-
*
|
|
75
|
+
* This tracks `MIN_BRIDGE_PROTOCOL_VERSION` (the connection floor), NOT
|
|
76
|
+
* `BRIDGE_PROTOCOL_VERSION`: an additive bump does not require a new minimum
|
|
77
|
+
* wheel, because older wheels still connect and run. Bump this only when
|
|
78
|
+
* `MIN_BRIDGE_PROTOCOL_VERSION` moves and a wheel carrying that floor exists.
|
|
42
79
|
*/
|
|
43
|
-
export declare const MIN_NODETOOL_CORE_VERSION = "0.7.
|
|
80
|
+
export declare const MIN_NODETOOL_CORE_VERSION = "0.7.0";
|
|
44
81
|
//# sourceMappingURL=bridge-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-protocol.d.ts","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bridge-protocol.d.ts","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,UAAU,CAAC"}
|
package/dist/bridge-protocol.js
CHANGED
|
@@ -6,39 +6,76 @@
|
|
|
6
6
|
* — which re-exports every LLM provider with their heavy SDK imports —
|
|
7
7
|
* into the main bundle.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* Two distinct numbers, deliberately decoupled so the JS and Python sides can
|
|
10
|
+
* ship on independent cadences:
|
|
11
|
+
*
|
|
12
|
+
* - `BRIDGE_PROTOCOL_VERSION` — the protocol the JS runtime currently
|
|
13
|
+
* *speaks*. Bumped whenever the JS side gains awareness of new wire
|
|
14
|
+
* features (e.g. new message types). Features are negotiated against the
|
|
15
|
+
* value the worker reports in its `discover`/`worker.status` response, so
|
|
16
|
+
* a newer JS runtime can still drive an older worker for everything that
|
|
17
|
+
* worker understands.
|
|
18
|
+
* - `MIN_BRIDGE_PROTOCOL_VERSION` — the *hard floor*. The JS runtime refuses
|
|
19
|
+
* to connect to a worker reporting a protocol below this. Bumped ONLY for
|
|
20
|
+
* genuinely backward-incompatible changes (framing changes, schema breaks,
|
|
21
|
+
* a removed/changed message). Additive changes (new message types the old
|
|
22
|
+
* worker simply never receives) MUST NOT move this floor — they are gated
|
|
23
|
+
* per-feature instead (see `supportsModelManagement`, `supportsComfy`).
|
|
13
24
|
*
|
|
14
25
|
* Coupling rules:
|
|
15
26
|
*
|
|
16
|
-
* -
|
|
17
|
-
*
|
|
27
|
+
* - The Python worker reports its own `BRIDGE_PROTOCOL_VERSION` in its
|
|
28
|
+
* `discover`/`worker.status` responses.
|
|
18
29
|
* - `MIN_NODETOOL_CORE_VERSION` is the lowest published `nodetool-core`
|
|
19
|
-
* PEP 440 version
|
|
20
|
-
*
|
|
21
|
-
* prebuild check refuses to ship if the registry has no wheel that
|
|
22
|
-
* satisfies the constraint.
|
|
30
|
+
* PEP 440 version the Electron installer pins. The prebuild check refuses
|
|
31
|
+
* to ship if the registry has no wheel that satisfies the constraint.
|
|
23
32
|
*
|
|
24
|
-
* On
|
|
33
|
+
* On an ADDITIVE protocol change (new message types, no break):
|
|
25
34
|
*
|
|
26
35
|
* 1. Bump `BRIDGE_PROTOCOL_VERSION` here AND in
|
|
27
36
|
* `nodetool-core/src/nodetool/worker/__init__.py` (lockstep).
|
|
37
|
+
* 2. Gate the new feature on the reported version (e.g. a `supportsX()`
|
|
38
|
+
* capability check). Leave `MIN_BRIDGE_PROTOCOL_VERSION` untouched so
|
|
39
|
+
* existing workers keep connecting and simply don't offer the feature.
|
|
40
|
+
*
|
|
41
|
+
* On a BREAKING protocol change:
|
|
42
|
+
*
|
|
43
|
+
* 1. Bump `BRIDGE_PROTOCOL_VERSION` AND `MIN_BRIDGE_PROTOCOL_VERSION` here
|
|
44
|
+
* and in `nodetool-core` (lockstep).
|
|
28
45
|
* 2. Cut a new `nodetool-core` release containing the bump.
|
|
29
46
|
* 3. Update `MIN_NODETOOL_CORE_VERSION` to that new release.
|
|
30
47
|
*/
|
|
31
|
-
export const BRIDGE_PROTOCOL_VERSION =
|
|
48
|
+
export const BRIDGE_PROTOCOL_VERSION = 6;
|
|
49
|
+
/**
|
|
50
|
+
* Hard floor: the JS runtime rejects (at `discover`) any worker reporting a
|
|
51
|
+
* protocol below this. Stays at 1 because every protocol change so far has
|
|
52
|
+
* been additive — `models.*` (v2) is negotiated via `supportsModelManagement`,
|
|
53
|
+
* `comfy.*` (v3) via `supportsComfy`, and run identity + `job.*` + `models.evict`
|
|
54
|
+
* (v4) via `supportsJobLifecycle` — so a v1 worker still connects and runs
|
|
55
|
+
* every pre-v2 feature; it just doesn't expose the newer families. Move this
|
|
56
|
+
* only for a real wire break.
|
|
57
|
+
*
|
|
58
|
+
* v4 is additive in both directions. The identity keys added to `execute` /
|
|
59
|
+
* `execute.stream` (`node_id`, `job_id`, `workflow_id`, `user_id`,
|
|
60
|
+
* `requires_vram_gb`) are extra dict entries a pre-v4 worker ignores, so the
|
|
61
|
+
* JS side sends them unconditionally; only the new `job.start` / `job.end` /
|
|
62
|
+
* `models.evict` message types are gated, because a pre-v4 worker answers
|
|
63
|
+
* those with `Unknown message type`.
|
|
64
|
+
*
|
|
65
|
+
* v5 adds an optional `chunked-v1` execute-result blob transfer. The JS side
|
|
66
|
+
* requests it only from workers reporting v5 or newer; older workers keep
|
|
67
|
+
* returning the legacy inline `blobs` map.
|
|
68
|
+
*/
|
|
69
|
+
export const MIN_BRIDGE_PROTOCOL_VERSION = 1;
|
|
32
70
|
/**
|
|
33
|
-
* Lowest published nodetool-core version (PEP 440 string)
|
|
34
|
-
*
|
|
35
|
-
* Used by the prebuild registry check and the Electron installer's pin
|
|
71
|
+
* Lowest published nodetool-core version (PEP 440 string) the Electron
|
|
72
|
+
* installer pins. Used by the prebuild registry check and the installer's pin
|
|
36
73
|
* specifier.
|
|
37
74
|
*
|
|
38
|
-
*
|
|
39
|
-
* BRIDGE_PROTOCOL_VERSION
|
|
40
|
-
*
|
|
41
|
-
*
|
|
75
|
+
* This tracks `MIN_BRIDGE_PROTOCOL_VERSION` (the connection floor), NOT
|
|
76
|
+
* `BRIDGE_PROTOCOL_VERSION`: an additive bump does not require a new minimum
|
|
77
|
+
* wheel, because older wheels still connect and run. Bump this only when
|
|
78
|
+
* `MIN_BRIDGE_PROTOCOL_VERSION` moves and a wheel carrying that floor exists.
|
|
42
79
|
*/
|
|
43
|
-
export const MIN_NODETOOL_CORE_VERSION = "0.7.
|
|
80
|
+
export const MIN_NODETOOL_CORE_VERSION = "0.7.0";
|
|
44
81
|
//# sourceMappingURL=bridge-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-protocol.js","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bridge-protocol.js","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BROWSER_TRACE_SOURCE_KEY = "nodetool.trace.source";
|
|
3
|
+
/** This reserved host marker is outside the server instance-id character set. */
|
|
4
|
+
export declare const BROWSER_APP_RUNNER_INSTANCE = "@browser";
|
|
5
|
+
export declare const BROWSER_TRACE_BATCH_LIMIT = 50;
|
|
6
|
+
export declare const BROWSER_TRACE_BODY_BYTE_LIMIT = 256000;
|
|
7
|
+
export declare const BROWSER_TRACE_CLOSE_WINDOW_MS: number;
|
|
8
|
+
export declare const BROWSER_TRACE_CLOCK_SKEW_MS = 30000;
|
|
9
|
+
export declare const browserTraceRecordSchema: z.ZodObject<{
|
|
10
|
+
trace_id: z.ZodString;
|
|
11
|
+
span_id: z.ZodString;
|
|
12
|
+
parent_span_id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
kind: z.ZodEnum<{
|
|
14
|
+
CLIENT: "CLIENT";
|
|
15
|
+
CONSUMER: "CONSUMER";
|
|
16
|
+
INTERNAL: "INTERNAL";
|
|
17
|
+
PRODUCER: "PRODUCER";
|
|
18
|
+
SERVER: "SERVER";
|
|
19
|
+
}>;
|
|
20
|
+
start_time_ms: z.ZodNumber;
|
|
21
|
+
end_time_ms: z.ZodNumber;
|
|
22
|
+
duration_ms: z.ZodNumber;
|
|
23
|
+
status: z.ZodObject<{
|
|
24
|
+
code: z.ZodEnum<{
|
|
25
|
+
ERROR: "ERROR";
|
|
26
|
+
OK: "OK";
|
|
27
|
+
UNSET: "UNSET";
|
|
28
|
+
}>;
|
|
29
|
+
message: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
|
+
resource: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
33
|
+
name: z.ZodEnum<{
|
|
34
|
+
"node.process": "node.process";
|
|
35
|
+
"ui.action": "ui.action";
|
|
36
|
+
"ui.fold": "ui.fold";
|
|
37
|
+
"ui.resolve_params": "ui.resolve_params";
|
|
38
|
+
"ui.widget_error": "ui.widget_error";
|
|
39
|
+
"workflow.run": "workflow.run";
|
|
40
|
+
}>;
|
|
41
|
+
events: z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodOptional<z.ZodString>;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
time_ms: z.ZodNumber;
|
|
45
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const browserRunSpansInputSchema: z.ZodObject<{
|
|
49
|
+
records: z.ZodArray<z.ZodObject<{
|
|
50
|
+
trace_id: z.ZodString;
|
|
51
|
+
span_id: z.ZodString;
|
|
52
|
+
parent_span_id: z.ZodNullable<z.ZodString>;
|
|
53
|
+
kind: z.ZodEnum<{
|
|
54
|
+
CLIENT: "CLIENT";
|
|
55
|
+
CONSUMER: "CONSUMER";
|
|
56
|
+
INTERNAL: "INTERNAL";
|
|
57
|
+
PRODUCER: "PRODUCER";
|
|
58
|
+
SERVER: "SERVER";
|
|
59
|
+
}>;
|
|
60
|
+
start_time_ms: z.ZodNumber;
|
|
61
|
+
end_time_ms: z.ZodNumber;
|
|
62
|
+
duration_ms: z.ZodNumber;
|
|
63
|
+
status: z.ZodObject<{
|
|
64
|
+
code: z.ZodEnum<{
|
|
65
|
+
ERROR: "ERROR";
|
|
66
|
+
OK: "OK";
|
|
67
|
+
UNSET: "UNSET";
|
|
68
|
+
}>;
|
|
69
|
+
message: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
72
|
+
resource: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
73
|
+
name: z.ZodEnum<{
|
|
74
|
+
"node.process": "node.process";
|
|
75
|
+
"ui.action": "ui.action";
|
|
76
|
+
"ui.fold": "ui.fold";
|
|
77
|
+
"ui.resolve_params": "ui.resolve_params";
|
|
78
|
+
"ui.widget_error": "ui.widget_error";
|
|
79
|
+
"workflow.run": "workflow.run";
|
|
80
|
+
}>;
|
|
81
|
+
events: z.ZodArray<z.ZodObject<{
|
|
82
|
+
id: z.ZodOptional<z.ZodString>;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
time_ms: z.ZodNumber;
|
|
85
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
export declare const browserRunSpansResultSchema: z.ZodObject<{
|
|
90
|
+
accepted: z.ZodNumber;
|
|
91
|
+
duplicate: z.ZodNumber;
|
|
92
|
+
dropped: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type BrowserRunSpansInput = z.infer<typeof browserRunSpansInputSchema>;
|
|
95
|
+
export type BrowserRunSpansResult = z.infer<typeof browserRunSpansResultSchema>;
|
|
96
|
+
export declare const browserRunStartInputSchema: z.ZodObject<{
|
|
97
|
+
traceparent: z.ZodString;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export declare const browserRunStartResultSchema: z.ZodObject<{
|
|
100
|
+
root_span_id: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
//# sourceMappingURL=browser-run-traces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-run-traces.d.ts","sourceRoot":"","sources":["../src/browser-run-traces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB,0BAA0B,CAAC;AAChE,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,aAAa,CAAC;AACtD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,6BAA6B,SAAU,CAAC;AACrD,eAAO,MAAM,6BAA6B,QAAa,CAAC;AACxD,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAClD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAenC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA0G,CAAC;AAClJ,eAAO,MAAM,2BAA2B;;;;iBAAwH,CAAC;AACjK,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAO,MAAM,0BAA0B;;kBAA+F,CAAC;AACvI,eAAO,MAAM,2BAA2B;;iBAAiE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { traceRecordSchema, TRACE_SPAN_EVENT_LIMIT } from "./run-trace.js";
|
|
3
|
+
export const BROWSER_TRACE_SOURCE_KEY = "nodetool.trace.source";
|
|
4
|
+
/** This reserved host marker is outside the server instance-id character set. */
|
|
5
|
+
export const BROWSER_APP_RUNNER_INSTANCE = "@browser";
|
|
6
|
+
export const BROWSER_TRACE_BATCH_LIMIT = 50;
|
|
7
|
+
export const BROWSER_TRACE_BODY_BYTE_LIMIT = 256_000;
|
|
8
|
+
export const BROWSER_TRACE_CLOSE_WINDOW_MS = 5 * 60_000;
|
|
9
|
+
export const BROWSER_TRACE_CLOCK_SKEW_MS = 30_000;
|
|
10
|
+
export const browserTraceRecordSchema = traceRecordSchema.extend({
|
|
11
|
+
name: z.enum(["ui.action", "ui.resolve_params", "ui.fold", "ui.widget_error", "workflow.run", "node.process"]),
|
|
12
|
+
events: traceRecordSchema.shape.events.max(TRACE_SPAN_EVENT_LIMIT)
|
|
13
|
+
}).superRefine((record, ctx) => {
|
|
14
|
+
if (record.resource[BROWSER_TRACE_SOURCE_KEY] !== "browser") {
|
|
15
|
+
ctx.addIssue({ code: "custom", message: "Browser provenance required", path: ["resource", BROWSER_TRACE_SOURCE_KEY] });
|
|
16
|
+
}
|
|
17
|
+
if (record.parent_span_id === record.span_id || record.end_time_ms < record.start_time_ms ||
|
|
18
|
+
Math.abs(record.duration_ms - (record.end_time_ms - record.start_time_ms)) > 1) {
|
|
19
|
+
ctx.addIssue({ code: "custom", message: "Invalid span ancestry or timing" });
|
|
20
|
+
}
|
|
21
|
+
if (Object.keys(record.attributes).length > 128 || Object.keys(record.resource).length > 32 ||
|
|
22
|
+
record.events.some((event) => (event.id?.length ?? 0) > 80 || Object.keys(event.attributes ?? {}).length > 128 || event.time_ms < record.start_time_ms || event.time_ms > record.end_time_ms)) {
|
|
23
|
+
ctx.addIssue({ code: "custom", message: "Span fields exceed limits or event timing" });
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export const browserRunSpansInputSchema = z.object({ records: z.array(browserTraceRecordSchema).min(1).max(BROWSER_TRACE_BATCH_LIMIT) }).strict();
|
|
27
|
+
export const browserRunSpansResultSchema = z.object({ accepted: z.number().int().min(0), duplicate: z.number().int().min(0), dropped: z.number().int().min(0) });
|
|
28
|
+
export const browserRunStartInputSchema = z.object({ traceparent: z.string().regex(/^00-[0-9a-f]{32}-[0-9a-f]{16}-0[01]$/) }).strict();
|
|
29
|
+
export const browserRunStartResultSchema = z.object({ root_span_id: z.string().regex(/^[0-9a-f]{16}$/) });
|
|
30
|
+
//# sourceMappingURL=browser-run-traces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-run-traces.js","sourceRoot":"","sources":["../src/browser-run-traces.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog of the first-party node packs that ship with NodeTool.
|
|
3
|
+
*
|
|
4
|
+
* Shared between the server (which registers the packs at bootstrap) and the
|
|
5
|
+
* Electron package manager (which lets users enable/disable them), so both
|
|
6
|
+
* sides agree on the stable pack ids. Only packs marked `defaultEnabled` (or
|
|
7
|
+
* `required`) load on a fresh install; the rest are opt-in. User overrides
|
|
8
|
+
* are persisted in the packs config file (`~/.config/nodetool/packs.json`,
|
|
9
|
+
* keys `enabledBuiltins` / `disabledBuiltins`) and honored on the next
|
|
10
|
+
* server start.
|
|
11
|
+
*/
|
|
12
|
+
export interface BuiltinNodePack {
|
|
13
|
+
/** Stable id used in the enabled/disabled lists. Never rename. */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Display name shown in the package manager. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Short user-facing description of what the pack provides. */
|
|
18
|
+
description: string;
|
|
19
|
+
/** Required packs cannot be disabled (core nodes the editor depends on). */
|
|
20
|
+
required?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Enabled on a fresh install. All other packs are opt-in via the package
|
|
23
|
+
* manager, keeping the node namespace small by default.
|
|
24
|
+
*/
|
|
25
|
+
defaultEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* First segments of the node types this pack registers (e.g. `fal` for
|
|
28
|
+
* `fal.image.*`). Lets UIs map a missing node type back to the pack that
|
|
29
|
+
* provides it.
|
|
30
|
+
*/
|
|
31
|
+
namespaces: readonly string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The optional pack providing `nodeType`, if any. Required packs are excluded
|
|
35
|
+
* — they are always loaded, so a missing node type can't be theirs.
|
|
36
|
+
*/
|
|
37
|
+
export declare function findBuiltinPackForNodeType(nodeType: string): BuiltinNodePack | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Effective enabled state for a built-in pack: required packs are always on;
|
|
40
|
+
* otherwise an explicit user override wins, falling back to the install
|
|
41
|
+
* default.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveBuiltinPackEnabled(pack: BuiltinNodePack, override?: boolean): boolean;
|
|
44
|
+
export declare const BUILTIN_NODE_PACKS: readonly BuiltinNodePack[];
|
|
45
|
+
//# sourceMappingURL=builtin-packs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-packs.d.ts","sourceRoot":"","sources":["../src/builtin-packs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GACf,eAAe,GAAG,SAAS,CAK7B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,eAAe,EACrB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAGT;AAED,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EA+FxD,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog of the first-party node packs that ship with NodeTool.
|
|
3
|
+
*
|
|
4
|
+
* Shared between the server (which registers the packs at bootstrap) and the
|
|
5
|
+
* Electron package manager (which lets users enable/disable them), so both
|
|
6
|
+
* sides agree on the stable pack ids. Only packs marked `defaultEnabled` (or
|
|
7
|
+
* `required`) load on a fresh install; the rest are opt-in. User overrides
|
|
8
|
+
* are persisted in the packs config file (`~/.config/nodetool/packs.json`,
|
|
9
|
+
* keys `enabledBuiltins` / `disabledBuiltins`) and honored on the next
|
|
10
|
+
* server start.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The optional pack providing `nodeType`, if any. Required packs are excluded
|
|
14
|
+
* — they are always loaded, so a missing node type can't be theirs.
|
|
15
|
+
*/
|
|
16
|
+
export function findBuiltinPackForNodeType(nodeType) {
|
|
17
|
+
const head = nodeType.split(".")[0];
|
|
18
|
+
return BUILTIN_NODE_PACKS.find((pack) => !pack.required && pack.namespaces.includes(head));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Effective enabled state for a built-in pack: required packs are always on;
|
|
22
|
+
* otherwise an explicit user override wins, falling back to the install
|
|
23
|
+
* default.
|
|
24
|
+
*/
|
|
25
|
+
export function resolveBuiltinPackEnabled(pack, override) {
|
|
26
|
+
if (pack.required)
|
|
27
|
+
return true;
|
|
28
|
+
return override ?? pack.defaultEnabled ?? false;
|
|
29
|
+
}
|
|
30
|
+
export const BUILTIN_NODE_PACKS = [
|
|
31
|
+
{
|
|
32
|
+
id: "whisper-cpp",
|
|
33
|
+
name: "whisper.cpp",
|
|
34
|
+
description: "Transcribe streaming audio locally with whisper.cpp.",
|
|
35
|
+
namespaces: ["whisper_cpp"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "base",
|
|
39
|
+
name: "Base Nodes",
|
|
40
|
+
description: "Core nodes for text, data, documents, images, audio, video, agents, and LLM chat.",
|
|
41
|
+
required: true,
|
|
42
|
+
namespaces: ["gemini", "kie", "lib", "messaging", "mistral", "nodetool", "openai", "vector", "xai"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "elevenlabs",
|
|
46
|
+
name: "ElevenLabs",
|
|
47
|
+
description: "Text-to-speech and voice generation via ElevenLabs.",
|
|
48
|
+
namespaces: ["elevenlabs"]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "minimax",
|
|
52
|
+
name: "MiniMax",
|
|
53
|
+
description: "MiniMax image, video, and audio generation.",
|
|
54
|
+
namespaces: ["minimax"]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "transformers-js",
|
|
58
|
+
name: "Transformers.js",
|
|
59
|
+
description: "Run Hugging Face NLP, vision, and audio models locally via ONNX Runtime.",
|
|
60
|
+
namespaces: ["transformers"]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "fal",
|
|
64
|
+
name: "FAL",
|
|
65
|
+
description: "Hosted image, video, and audio models on fal.ai.",
|
|
66
|
+
defaultEnabled: true,
|
|
67
|
+
namespaces: ["fal"]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "kie",
|
|
71
|
+
name: "Kie.ai",
|
|
72
|
+
description: "Image and video generation models on Kie.ai.",
|
|
73
|
+
defaultEnabled: true,
|
|
74
|
+
namespaces: ["kie"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "topaz",
|
|
78
|
+
name: "Topaz Labs",
|
|
79
|
+
description: "Image and video upscaling and enhancement via Topaz Labs.",
|
|
80
|
+
namespaces: ["topaz"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "reve",
|
|
84
|
+
name: "Reve",
|
|
85
|
+
description: "Reve image generation, editing, and remix.",
|
|
86
|
+
namespaces: ["reve"]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: "atlascloud",
|
|
90
|
+
name: "AtlasCloud",
|
|
91
|
+
description: "Image and video generation on AtlasCloud — GPT Image, Nano Banana, Seedream, Seedance, Veo, Kling, Wan.",
|
|
92
|
+
namespaces: ["atlascloud"]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "higgsfield",
|
|
96
|
+
name: "Higgsfield",
|
|
97
|
+
description: "Curated Higgsfield image and video generation models.",
|
|
98
|
+
namespaces: ["higgsfield"]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "together",
|
|
102
|
+
name: "Together AI",
|
|
103
|
+
description: "Serverless image, video, text-to-speech, and transcription models on Together AI.",
|
|
104
|
+
namespaces: ["together"]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: "replicate",
|
|
108
|
+
name: "Replicate",
|
|
109
|
+
description: "Community AI models hosted on Replicate.",
|
|
110
|
+
defaultEnabled: true,
|
|
111
|
+
namespaces: ["replicate"]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "huggingface",
|
|
115
|
+
name: "Hugging Face",
|
|
116
|
+
description: "Hugging Face Inference Providers nodes across all task modalities.",
|
|
117
|
+
defaultEnabled: true,
|
|
118
|
+
namespaces: ["huggingface"]
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
//# sourceMappingURL=builtin-packs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-packs.js","sourceRoot":"","sources":["../src/builtin-packs.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Word timing in milliseconds relative to the associated audio or clip. */
|
|
3
|
+
export declare const captionWord: z.ZodObject<{
|
|
4
|
+
word: z.ZodString;
|
|
5
|
+
startMs: z.ZodNumber;
|
|
6
|
+
endMs: z.ZodNumber;
|
|
7
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
filler: "filler";
|
|
9
|
+
pause: "pause";
|
|
10
|
+
word: "word";
|
|
11
|
+
}>>;
|
|
12
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type CaptionWord = z.infer<typeof captionWord>;
|
|
15
|
+
//# sourceMappingURL=caption-word.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caption-word.d.ts","sourceRoot":"","sources":["../src/caption-word.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,eAAO,MAAM,WAAW;;;;;;;;;;iBAMtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Word timing in milliseconds relative to the associated audio or clip. */
|
|
3
|
+
export const captionWord = z.object({
|
|
4
|
+
word: z.string(),
|
|
5
|
+
startMs: z.number(),
|
|
6
|
+
endMs: z.number(),
|
|
7
|
+
kind: z.enum(["word", "filler", "pause"]).optional(),
|
|
8
|
+
confidence: z.number().min(0).max(1).optional()
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=caption-word.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caption-word.js","sourceRoot":"","sources":["../src/caption-word.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC"}
|