@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,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @nodetool-ai/protocol – Workflow Supervisor
|
|
3
|
+
*
|
|
4
|
+
* A failing node invocation raises an `Escalation`; a handler returns a
|
|
5
|
+
* `Verdict`. Both cross the kernel/agents boundary and appear in messages
|
|
6
|
+
* and in `RunResult`, so they live here rather than in either package.
|
|
7
|
+
*
|
|
8
|
+
* See docs/workflow-supervisor-design.md §4.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
export declare const verdictActionSchema: z.ZodEnum<{
|
|
12
|
+
end_stream: "end_stream";
|
|
13
|
+
fail: "fail";
|
|
14
|
+
retry: "retry";
|
|
15
|
+
skip: "skip";
|
|
16
|
+
substitute: "substitute";
|
|
17
|
+
}>;
|
|
18
|
+
export type VerdictAction = z.infer<typeof verdictActionSchema>;
|
|
19
|
+
/** Scope of a `skip`/`fail` verdict: this invocation, or every matching failure. */
|
|
20
|
+
export declare const verdictScopeSchema: z.ZodEnum<{
|
|
21
|
+
invocation: "invocation";
|
|
22
|
+
signature: "signature";
|
|
23
|
+
}>;
|
|
24
|
+
export type VerdictScope = z.infer<typeof verdictScopeSchema>;
|
|
25
|
+
export declare const verdictSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
action: z.ZodLiteral<"retry">;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
action: z.ZodLiteral<"substitute">;
|
|
29
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
action: z.ZodLiteral<"skip">;
|
|
32
|
+
applyTo: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
invocation: "invocation";
|
|
34
|
+
signature: "signature";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
action: z.ZodLiteral<"end_stream">;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
action: z.ZodLiteral<"fail">;
|
|
40
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
41
|
+
applyTo: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
invocation: "invocation";
|
|
43
|
+
signature: "signature";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z.core.$strip>], "action">;
|
|
46
|
+
export type Verdict = z.infer<typeof verdictSchema>;
|
|
47
|
+
/**
|
|
48
|
+
* Who produced the *applied* verdict. Only `"agent"` involved a model.
|
|
49
|
+
* `"kernel"` means the handle's answer was outside the escalation's allowed
|
|
50
|
+
* set and was replaced with `fail` — the one value that says the supervisor
|
|
51
|
+
* was overruled rather than obeyed.
|
|
52
|
+
*/
|
|
53
|
+
export declare const decidedBySchema: z.ZodEnum<{
|
|
54
|
+
agent: "agent";
|
|
55
|
+
bounds: "bounds";
|
|
56
|
+
default: "default";
|
|
57
|
+
kernel: "kernel";
|
|
58
|
+
sticky: "sticky";
|
|
59
|
+
}>;
|
|
60
|
+
export type DecidedBy = z.infer<typeof decidedBySchema>;
|
|
61
|
+
export declare const escalationSchema: z.ZodObject<{
|
|
62
|
+
nodeId: z.ZodString;
|
|
63
|
+
nodeType: z.ZodString;
|
|
64
|
+
correlationLineage: z.ZodArray<z.ZodString>;
|
|
65
|
+
invocationKey: z.ZodString;
|
|
66
|
+
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
67
|
+
end_stream: "end_stream";
|
|
68
|
+
fail: "fail";
|
|
69
|
+
retry: "retry";
|
|
70
|
+
skip: "skip";
|
|
71
|
+
substitute: "substitute";
|
|
72
|
+
}>>;
|
|
73
|
+
detail: z.ZodString;
|
|
74
|
+
failureSignature: z.ZodOptional<z.ZodString>;
|
|
75
|
+
candidateOutput: z.ZodOptional<z.ZodUnknown>;
|
|
76
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
77
|
+
declaredOutputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
78
|
+
attempt: z.ZodNumber;
|
|
79
|
+
spentCostUsd: z.ZodNumber;
|
|
80
|
+
createdAssets: z.ZodBoolean;
|
|
81
|
+
retrySafe: z.ZodBoolean;
|
|
82
|
+
emitted: z.ZodBoolean;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type Escalation = z.infer<typeof escalationSchema>;
|
|
85
|
+
export declare const interventionSchema: z.ZodObject<{
|
|
86
|
+
escalation: z.ZodObject<{
|
|
87
|
+
nodeId: z.ZodString;
|
|
88
|
+
nodeType: z.ZodString;
|
|
89
|
+
correlationLineage: z.ZodArray<z.ZodString>;
|
|
90
|
+
invocationKey: z.ZodString;
|
|
91
|
+
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
92
|
+
end_stream: "end_stream";
|
|
93
|
+
fail: "fail";
|
|
94
|
+
retry: "retry";
|
|
95
|
+
skip: "skip";
|
|
96
|
+
substitute: "substitute";
|
|
97
|
+
}>>;
|
|
98
|
+
detail: z.ZodString;
|
|
99
|
+
failureSignature: z.ZodOptional<z.ZodString>;
|
|
100
|
+
candidateOutput: z.ZodOptional<z.ZodUnknown>;
|
|
101
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
102
|
+
declaredOutputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
103
|
+
attempt: z.ZodNumber;
|
|
104
|
+
spentCostUsd: z.ZodNumber;
|
|
105
|
+
createdAssets: z.ZodBoolean;
|
|
106
|
+
retrySafe: z.ZodBoolean;
|
|
107
|
+
emitted: z.ZodBoolean;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
|
+
action: z.ZodLiteral<"retry">;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
action: z.ZodLiteral<"substitute">;
|
|
113
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
action: z.ZodLiteral<"skip">;
|
|
116
|
+
applyTo: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
invocation: "invocation";
|
|
118
|
+
signature: "signature";
|
|
119
|
+
}>>;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
action: z.ZodLiteral<"end_stream">;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
action: z.ZodLiteral<"fail">;
|
|
124
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
125
|
+
applyTo: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
invocation: "invocation";
|
|
127
|
+
signature: "signature";
|
|
128
|
+
}>>;
|
|
129
|
+
}, z.core.$strip>], "action">;
|
|
130
|
+
decidedBy: z.ZodEnum<{
|
|
131
|
+
agent: "agent";
|
|
132
|
+
bounds: "bounds";
|
|
133
|
+
default: "default";
|
|
134
|
+
kernel: "kernel";
|
|
135
|
+
sticky: "sticky";
|
|
136
|
+
}>;
|
|
137
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export type Intervention = z.infer<typeof interventionSchema>;
|
|
140
|
+
export declare const supervisorEscalationSchema: z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"supervisor_escalation">;
|
|
142
|
+
node_id: z.ZodString;
|
|
143
|
+
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
escalation: z.ZodObject<{
|
|
145
|
+
nodeId: z.ZodString;
|
|
146
|
+
nodeType: z.ZodString;
|
|
147
|
+
correlationLineage: z.ZodArray<z.ZodString>;
|
|
148
|
+
invocationKey: z.ZodString;
|
|
149
|
+
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
150
|
+
end_stream: "end_stream";
|
|
151
|
+
fail: "fail";
|
|
152
|
+
retry: "retry";
|
|
153
|
+
skip: "skip";
|
|
154
|
+
substitute: "substitute";
|
|
155
|
+
}>>;
|
|
156
|
+
detail: z.ZodString;
|
|
157
|
+
failureSignature: z.ZodOptional<z.ZodString>;
|
|
158
|
+
candidateOutput: z.ZodOptional<z.ZodUnknown>;
|
|
159
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
160
|
+
declaredOutputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
161
|
+
attempt: z.ZodNumber;
|
|
162
|
+
spentCostUsd: z.ZodNumber;
|
|
163
|
+
createdAssets: z.ZodBoolean;
|
|
164
|
+
retrySafe: z.ZodBoolean;
|
|
165
|
+
emitted: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export type SupervisorEscalation = z.infer<typeof supervisorEscalationSchema>;
|
|
169
|
+
export declare const supervisorDecisionSchema: z.ZodObject<{
|
|
170
|
+
type: z.ZodLiteral<"supervisor_decision">;
|
|
171
|
+
node_id: z.ZodString;
|
|
172
|
+
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
escalation: z.ZodObject<{
|
|
174
|
+
nodeId: z.ZodString;
|
|
175
|
+
nodeType: z.ZodString;
|
|
176
|
+
correlationLineage: z.ZodArray<z.ZodString>;
|
|
177
|
+
invocationKey: z.ZodString;
|
|
178
|
+
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
179
|
+
end_stream: "end_stream";
|
|
180
|
+
fail: "fail";
|
|
181
|
+
retry: "retry";
|
|
182
|
+
skip: "skip";
|
|
183
|
+
substitute: "substitute";
|
|
184
|
+
}>>;
|
|
185
|
+
detail: z.ZodString;
|
|
186
|
+
failureSignature: z.ZodOptional<z.ZodString>;
|
|
187
|
+
candidateOutput: z.ZodOptional<z.ZodUnknown>;
|
|
188
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
189
|
+
declaredOutputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
190
|
+
attempt: z.ZodNumber;
|
|
191
|
+
spentCostUsd: z.ZodNumber;
|
|
192
|
+
createdAssets: z.ZodBoolean;
|
|
193
|
+
retrySafe: z.ZodBoolean;
|
|
194
|
+
emitted: z.ZodBoolean;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
197
|
+
action: z.ZodLiteral<"retry">;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
action: z.ZodLiteral<"substitute">;
|
|
200
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
+
action: z.ZodLiteral<"skip">;
|
|
203
|
+
applyTo: z.ZodOptional<z.ZodEnum<{
|
|
204
|
+
invocation: "invocation";
|
|
205
|
+
signature: "signature";
|
|
206
|
+
}>>;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
action: z.ZodLiteral<"end_stream">;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
action: z.ZodLiteral<"fail">;
|
|
211
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
212
|
+
applyTo: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
invocation: "invocation";
|
|
214
|
+
signature: "signature";
|
|
215
|
+
}>>;
|
|
216
|
+
}, z.core.$strip>], "action">;
|
|
217
|
+
decided_by: z.ZodEnum<{
|
|
218
|
+
agent: "agent";
|
|
219
|
+
bounds: "bounds";
|
|
220
|
+
default: "default";
|
|
221
|
+
kernel: "kernel";
|
|
222
|
+
sticky: "sticky";
|
|
223
|
+
}>;
|
|
224
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export type SupervisorDecision = z.infer<typeof supervisorDecisionSchema>;
|
|
227
|
+
//# sourceMappingURL=supervisor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supervisor.d.ts","sourceRoot":"","sources":["../src/supervisor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,oFAAoF;AACpF,eAAO,MAAM,kBAAkB;;;EAAsC,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;6BAkBxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;iBAgC3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @nodetool-ai/protocol – Workflow Supervisor
|
|
3
|
+
*
|
|
4
|
+
* A failing node invocation raises an `Escalation`; a handler returns a
|
|
5
|
+
* `Verdict`. Both cross the kernel/agents boundary and appear in messages
|
|
6
|
+
* and in `RunResult`, so they live here rather than in either package.
|
|
7
|
+
*
|
|
8
|
+
* See docs/workflow-supervisor-design.md §4.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
// Verdicts
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
export const verdictActionSchema = z.enum([
|
|
15
|
+
"retry",
|
|
16
|
+
"substitute",
|
|
17
|
+
"skip",
|
|
18
|
+
"end_stream",
|
|
19
|
+
"fail"
|
|
20
|
+
]);
|
|
21
|
+
/** Scope of a `skip`/`fail` verdict: this invocation, or every matching failure. */
|
|
22
|
+
export const verdictScopeSchema = z.enum(["invocation", "signature"]);
|
|
23
|
+
export const verdictSchema = z.discriminatedUnion("action", [
|
|
24
|
+
// No property overrides in v1 — a free-form record would let the supervisor
|
|
25
|
+
// rewrite URLs, prompts, and paths. Design §4.
|
|
26
|
+
z.object({ action: z.literal("retry") }),
|
|
27
|
+
z.object({
|
|
28
|
+
action: z.literal("substitute"),
|
|
29
|
+
outputs: z.record(z.string(), z.unknown())
|
|
30
|
+
}),
|
|
31
|
+
z.object({
|
|
32
|
+
action: z.literal("skip"),
|
|
33
|
+
applyTo: verdictScopeSchema.optional()
|
|
34
|
+
}),
|
|
35
|
+
z.object({ action: z.literal("end_stream") }),
|
|
36
|
+
z.object({
|
|
37
|
+
action: z.literal("fail"),
|
|
38
|
+
reason: z.string().optional(),
|
|
39
|
+
applyTo: verdictScopeSchema.optional()
|
|
40
|
+
})
|
|
41
|
+
]);
|
|
42
|
+
/**
|
|
43
|
+
* Who produced the *applied* verdict. Only `"agent"` involved a model.
|
|
44
|
+
* `"kernel"` means the handle's answer was outside the escalation's allowed
|
|
45
|
+
* set and was replaced with `fail` — the one value that says the supervisor
|
|
46
|
+
* was overruled rather than obeyed.
|
|
47
|
+
*/
|
|
48
|
+
export const decidedBySchema = z.enum([
|
|
49
|
+
"agent",
|
|
50
|
+
"sticky",
|
|
51
|
+
"bounds",
|
|
52
|
+
"default",
|
|
53
|
+
"kernel"
|
|
54
|
+
]);
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
// Escalations
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
export const escalationSchema = z.object({
|
|
59
|
+
nodeId: z.string(),
|
|
60
|
+
nodeType: z.string(),
|
|
61
|
+
/** Full lineage chain of the failing invocation, as `root=index` pairs. */
|
|
62
|
+
correlationLineage: z.array(z.string()),
|
|
63
|
+
/** Leaf token of `correlationLineage`; `""` for single-fire nodes. */
|
|
64
|
+
invocationKey: z.string(),
|
|
65
|
+
/** Kernel-computed; both the verdict schema and enforcement derive from it. */
|
|
66
|
+
allowedActions: z.array(verdictActionSchema),
|
|
67
|
+
/** The thrown error, stringified, redacted and truncated. */
|
|
68
|
+
detail: z.string(),
|
|
69
|
+
/** Stable categorical code. Absent ⇒ stickiness disabled. */
|
|
70
|
+
failureSignature: z.string().optional(),
|
|
71
|
+
/** From `RecoverableNodeError` — the malformed value, redacted and truncated. */
|
|
72
|
+
candidateOutput: z.unknown().optional(),
|
|
73
|
+
/** The invocation's input values, redacted and truncated. */
|
|
74
|
+
inputs: z.record(z.string(), z.unknown()),
|
|
75
|
+
/**
|
|
76
|
+
* The node's declared output types, keyed by slot. Carried because a repair
|
|
77
|
+
* cannot be authored — or accepted — without knowing what each slot must
|
|
78
|
+
* hold. Type metadata, so nothing to redact.
|
|
79
|
+
*/
|
|
80
|
+
declaredOutputs: z.record(z.string(), z.string()),
|
|
81
|
+
/** 1-based, per `(nodeId, invocationKey)`. */
|
|
82
|
+
attempt: z.number(),
|
|
83
|
+
/** Provider cost recorded by this invocation. */
|
|
84
|
+
spentCostUsd: z.number(),
|
|
85
|
+
createdAssets: z.boolean(),
|
|
86
|
+
/** Node metadata opt-in; unknown ⇒ false ⇒ no retry. */
|
|
87
|
+
retrySafe: z.boolean(),
|
|
88
|
+
/** True while the failing invocation is a streaming one that already emitted. */
|
|
89
|
+
emitted: z.boolean()
|
|
90
|
+
});
|
|
91
|
+
export const interventionSchema = z.object({
|
|
92
|
+
escalation: escalationSchema,
|
|
93
|
+
verdict: verdictSchema,
|
|
94
|
+
decidedBy: decidedBySchema,
|
|
95
|
+
/** Supervisor spend for this decision, in USD. */
|
|
96
|
+
costUsd: z.number().optional()
|
|
97
|
+
});
|
|
98
|
+
// ---------------------------------------------------------------------------
|
|
99
|
+
// Messages
|
|
100
|
+
// ---------------------------------------------------------------------------
|
|
101
|
+
export const supervisorEscalationSchema = z.object({
|
|
102
|
+
type: z.literal("supervisor_escalation"),
|
|
103
|
+
node_id: z.string(),
|
|
104
|
+
node_name: z.string().nullable().optional(),
|
|
105
|
+
escalation: escalationSchema
|
|
106
|
+
});
|
|
107
|
+
export const supervisorDecisionSchema = z.object({
|
|
108
|
+
type: z.literal("supervisor_decision"),
|
|
109
|
+
node_id: z.string(),
|
|
110
|
+
node_name: z.string().nullable().optional(),
|
|
111
|
+
escalation: escalationSchema,
|
|
112
|
+
verdict: verdictSchema,
|
|
113
|
+
decided_by: decidedBySchema,
|
|
114
|
+
cost: z.number().nullable().optional()
|
|
115
|
+
});
|
|
116
|
+
//# sourceMappingURL=supervisor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supervisor.js","sourceRoot":"","sources":["../src/supervisor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,WAAW;AACX,8EAA8E;AAE9E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,OAAO;IACP,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,MAAM;CACP,CAAC,CAAC;AAIH,oFAAoF;AACpF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC;AAItE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,kBAAkB,CAA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AC,OAAO,CAAC,uBAAuB,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,gBAAgB;IAC5B,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,eAAe;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a NodeTool provider id maps onto `@pydantic/genai-prices`, and which
|
|
3
|
+
* providers cost nothing because they run on the user's own machine.
|
|
4
|
+
*
|
|
5
|
+
* One table, two readers: the server-side `CostCalculator` prices a finished
|
|
6
|
+
* run from it, and the web setup flow prices a run before it starts. Each held
|
|
7
|
+
* its own copy, which is a table that drifts — the next alias gets added to one
|
|
8
|
+
* of them, and the same model is then free on one surface and priced on the
|
|
9
|
+
* other.
|
|
10
|
+
*
|
|
11
|
+
* It lives in `protocol` rather than in `model-pricing` because the calculator
|
|
12
|
+
* is in `runtime`, and `model-pricing` depends on `runtime` through `node-sdk`;
|
|
13
|
+
* a table there would be a dependency cycle. Data only: no catalog, nothing
|
|
14
|
+
* from Node, so a browser bundle reads it as happily as the server does.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* NodeTool provider id → genai-prices provider id. A provider absent here
|
|
18
|
+
* falls back to genai-prices' own model-name matching (`providerId` omitted),
|
|
19
|
+
* so this table carries only the ids whose names differ.
|
|
20
|
+
*/
|
|
21
|
+
export declare const GENAI_PROVIDER_MAP: Readonly<Record<string, string>>;
|
|
22
|
+
/** Providers that run locally and incur no API cost. */
|
|
23
|
+
export declare const LOCAL_FREE_PROVIDERS: ReadonlySet<string>;
|
|
24
|
+
/** True when a run on this provider costs the user nothing. Case-insensitive. */
|
|
25
|
+
export declare const isLocalFreeProvider: (provider: string) => boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The genai-prices provider id for a NodeTool provider, or undefined when the
|
|
28
|
+
* catalog should match on the model name alone.
|
|
29
|
+
*/
|
|
30
|
+
export declare const genaiProviderId: (provider: string) => string | undefined;
|
|
31
|
+
//# sourceMappingURL=token-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-providers.d.ts","sourceRoot":"","sources":["../src/token-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAc/D,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAOnD,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,OACL,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,eAAe,aAAc,MAAM,KAAG,MAAM,GAAG,SAC9B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a NodeTool provider id maps onto `@pydantic/genai-prices`, and which
|
|
3
|
+
* providers cost nothing because they run on the user's own machine.
|
|
4
|
+
*
|
|
5
|
+
* One table, two readers: the server-side `CostCalculator` prices a finished
|
|
6
|
+
* run from it, and the web setup flow prices a run before it starts. Each held
|
|
7
|
+
* its own copy, which is a table that drifts — the next alias gets added to one
|
|
8
|
+
* of them, and the same model is then free on one surface and priced on the
|
|
9
|
+
* other.
|
|
10
|
+
*
|
|
11
|
+
* It lives in `protocol` rather than in `model-pricing` because the calculator
|
|
12
|
+
* is in `runtime`, and `model-pricing` depends on `runtime` through `node-sdk`;
|
|
13
|
+
* a table there would be a dependency cycle. Data only: no catalog, nothing
|
|
14
|
+
* from Node, so a browser bundle reads it as happily as the server does.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* NodeTool provider id → genai-prices provider id. A provider absent here
|
|
18
|
+
* falls back to genai-prices' own model-name matching (`providerId` omitted),
|
|
19
|
+
* so this table carries only the ids whose names differ.
|
|
20
|
+
*/
|
|
21
|
+
export const GENAI_PROVIDER_MAP = {
|
|
22
|
+
openai: "openai",
|
|
23
|
+
anthropic: "anthropic",
|
|
24
|
+
claude_agent_sdk: "anthropic",
|
|
25
|
+
"claude-agent-sdk": "anthropic",
|
|
26
|
+
gemini: "google",
|
|
27
|
+
google: "google",
|
|
28
|
+
mistral: "mistral",
|
|
29
|
+
groq: "groq",
|
|
30
|
+
deepseek: "deepseek",
|
|
31
|
+
xai: "x-ai",
|
|
32
|
+
grok: "x-ai",
|
|
33
|
+
moonshot: "moonshotai",
|
|
34
|
+
moonshotai: "moonshotai"
|
|
35
|
+
};
|
|
36
|
+
/** Providers that run locally and incur no API cost. */
|
|
37
|
+
export const LOCAL_FREE_PROVIDERS = new Set([
|
|
38
|
+
"ollama",
|
|
39
|
+
"local",
|
|
40
|
+
"lmstudio",
|
|
41
|
+
"llama_cpp",
|
|
42
|
+
"llamacpp",
|
|
43
|
+
"llama-cpp"
|
|
44
|
+
]);
|
|
45
|
+
/** True when a run on this provider costs the user nothing. Case-insensitive. */
|
|
46
|
+
export const isLocalFreeProvider = (provider) => LOCAL_FREE_PROVIDERS.has(provider.toLowerCase());
|
|
47
|
+
/**
|
|
48
|
+
* The genai-prices provider id for a NodeTool provider, or undefined when the
|
|
49
|
+
* catalog should match on the model name alone.
|
|
50
|
+
*/
|
|
51
|
+
export const genaiProviderId = (provider) => GENAI_PROVIDER_MAP[provider];
|
|
52
|
+
//# sourceMappingURL=token-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-providers.js","sourceRoot":"","sources":["../src/token-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,WAAW;IAC7B,kBAAkB,EAAE,WAAW;IAC/B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE,YAAY;CACzB,CAAC;AAEF,wDAAwD;AACxD,MAAM,CAAC,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC;IAC/D,QAAQ;IACR,OAAO;IACP,UAAU;IACV,WAAW;IACX,UAAU;IACV,WAAW;CACZ,CAAC,CAAC;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAW,EAAE,CAC/D,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAgB,EAAsB,EAAE,CACtE,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/toolSchemas.d.ts
CHANGED
|
@@ -64,14 +64,6 @@ export declare const uiSetNodeTitleParams: {
|
|
|
64
64
|
title: z.ZodString;
|
|
65
65
|
workflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
};
|
|
67
|
-
export declare const uiSetNodeSyncModeParams: {
|
|
68
|
-
node_id: z.ZodString;
|
|
69
|
-
mode: z.ZodEnum<{
|
|
70
|
-
on_any: "on_any";
|
|
71
|
-
zip_all: "zip_all";
|
|
72
|
-
}>;
|
|
73
|
-
workflow_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
-
};
|
|
75
67
|
export declare const uiOpenWorkflowParams: {
|
|
76
68
|
workflow_id: z.ZodString;
|
|
77
69
|
};
|
|
@@ -82,17 +74,21 @@ export declare const uiRunWorkflowParams: {
|
|
|
82
74
|
export declare const uiSwitchTabParams: {
|
|
83
75
|
tab_index: z.ZodNumber;
|
|
84
76
|
};
|
|
85
|
-
export declare const MODEL_SEARCH_KINDS: readonly ["text_to_image", "image_to_image", "text_to_video", "image_to_video", "text_to_speech", "speech_to_text", "text_generation", "embedding"];
|
|
77
|
+
export declare const MODEL_SEARCH_KINDS: readonly ["text_to_image", "image_to_image", "text_to_video", "image_to_video", "video_to_video", "reference_to_video", "text_to_speech", "text_to_music", "audio_to_audio", "speech_to_text", "text_generation", "embedding"];
|
|
86
78
|
export declare const uiSearchModelsParams: {
|
|
87
79
|
kind: z.ZodEnum<{
|
|
88
|
-
|
|
89
|
-
|
|
80
|
+
audio_to_audio: "audio_to_audio";
|
|
81
|
+
embedding: "embedding";
|
|
90
82
|
image_to_image: "image_to_image";
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
image_to_video: "image_to_video";
|
|
84
|
+
reference_to_video: "reference_to_video";
|
|
93
85
|
speech_to_text: "speech_to_text";
|
|
94
86
|
text_generation: "text_generation";
|
|
95
|
-
|
|
87
|
+
text_to_image: "text_to_image";
|
|
88
|
+
text_to_music: "text_to_music";
|
|
89
|
+
text_to_speech: "text_to_speech";
|
|
90
|
+
text_to_video: "text_to_video";
|
|
91
|
+
video_to_video: "video_to_video";
|
|
96
92
|
}>;
|
|
97
93
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
98
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolSchemas.d.ts","sourceRoot":"","sources":["../src/toolSchemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolSchemas.d.ts","sourceRoot":"","sources":["../src/toolSchemas.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;iBAA6C,CAAC;AAC3E,eAAO,MAAM,mBAAmB;;;gCAA0C,CAAC;AAC3E,eAAO,MAAM,kBAAkB,oCAAgC,CAAC;AAChE,eAAO,MAAM,wBAAwB,2CAMlC,CAAC;AAIJ,eAAO,MAAM,mBAAmB;IAC9B,KAAK;IACL,UAAU;IACV,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,KAAK;CACN,CAAC;AAEF,eAAO,MAAM,eAAe;IAC1B,EAAE;IAKF,IAAI;IAKJ,QAAQ;;;;IAGR,UAAU;IAKV,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;IAC/B,cAAc;IACd,aAAa;IAKb,cAAc;IACd,aAAa;IAKb,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,gBAAgB;IAC3B,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,sBAAsB;IACjC,OAAO;IACP,IAAI;IAKJ,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,kBAAkB;IAC7B,OAAO;IACP,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,kBAAkB;IAC7B,OAAO;IACP,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,gBAAgB;IAC3B,OAAO;IACP,QAAQ;;;;IAGR,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;IAC/B,OAAO;IACP,KAAK;IACL,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;IAC/B,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,mBAAmB;IAC9B,WAAW;IACX,MAAM;CAIP,CAAC;AAEF,eAAO,MAAM,iBAAiB;IAC5B,SAAS;CAKV,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAC7B,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,CACH,CAAC;AAEX,eAAO,MAAM,oBAAoB;IAC/B,IAAI;;;;;;;;;;;;;;IAWJ,KAAK;CAON,CAAC;AAEF,eAAO,MAAM,YAAY;IACvB,IAAI;CACL,CAAC;AAEF,eAAO,MAAM,aAAa,IAAK,CAAC;AAIhC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAwEtD,CAAC"}
|
package/dist/toolSchemas.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Shared Zod tool schemas for frontend UI tools.
|
|
4
4
|
// Exported as ZodRawShape (plain objects of Zod types) for:
|
|
5
|
-
// - Agent SDK MCP server registration (electron/src/agent.ts)
|
|
6
5
|
// - Frontend tool validation (web/src/lib/tools/builtin/*.ts wraps with z.object())
|
|
7
6
|
//
|
|
8
7
|
// If you update a schema here, update the corresponding builtin tool file too.
|
|
@@ -40,15 +39,11 @@ export const uiAddNodeParams = {
|
|
|
40
39
|
workflow_id: optionalWorkflowIdSchema
|
|
41
40
|
};
|
|
42
41
|
export const uiConnectNodesParams = {
|
|
43
|
-
source_node_id: z
|
|
44
|
-
.string()
|
|
45
|
-
.describe("Id of the node producing the value."),
|
|
42
|
+
source_node_id: z.string().describe("Id of the node producing the value."),
|
|
46
43
|
source_handle: z
|
|
47
44
|
.string()
|
|
48
45
|
.describe("Output port name on the source node (from `outputs[].name` in ui_search_nodes)."),
|
|
49
|
-
target_node_id: z
|
|
50
|
-
.string()
|
|
51
|
-
.describe("Id of the node consuming the value."),
|
|
46
|
+
target_node_id: z.string().describe("Id of the node consuming the value."),
|
|
52
47
|
target_handle: z
|
|
53
48
|
.string()
|
|
54
49
|
.describe("Input port name on the target node (the property name from `properties[].name` in ui_search_nodes)."),
|
|
@@ -82,13 +77,6 @@ export const uiSetNodeTitleParams = {
|
|
|
82
77
|
title: z.string().describe("New display title for the node."),
|
|
83
78
|
workflow_id: optionalWorkflowIdSchema
|
|
84
79
|
};
|
|
85
|
-
export const uiSetNodeSyncModeParams = {
|
|
86
|
-
node_id: z.string().describe("Id of the node whose sync mode to set."),
|
|
87
|
-
mode: z
|
|
88
|
-
.enum(["on_any", "zip_all"])
|
|
89
|
-
.describe("`on_any`: process as soon as any input arrives. `zip_all`: wait for all inputs and pair them in arrival order."),
|
|
90
|
-
workflow_id: optionalWorkflowIdSchema
|
|
91
|
-
};
|
|
92
80
|
export const uiOpenWorkflowParams = {
|
|
93
81
|
workflow_id: z.string().describe("Id of the workflow to open.")
|
|
94
82
|
};
|
|
@@ -111,7 +99,11 @@ export const MODEL_SEARCH_KINDS = [
|
|
|
111
99
|
"image_to_image",
|
|
112
100
|
"text_to_video",
|
|
113
101
|
"image_to_video",
|
|
102
|
+
"video_to_video",
|
|
103
|
+
"reference_to_video",
|
|
114
104
|
"text_to_speech",
|
|
105
|
+
"text_to_music",
|
|
106
|
+
"audio_to_audio",
|
|
115
107
|
"speech_to_text",
|
|
116
108
|
"text_generation",
|
|
117
109
|
"embedding"
|
|
@@ -121,8 +113,10 @@ export const uiSearchModelsParams = {
|
|
|
121
113
|
.enum(MODEL_SEARCH_KINDS)
|
|
122
114
|
.describe("Model task category. Match to the AI node you're configuring: " +
|
|
123
115
|
"`text_to_image` for nodetool.image.TextToImage, `image_to_image` for nodetool.image.ImageToImage, " +
|
|
124
|
-
"`text_to_video` for nodetool.video.TextToVideo, `image_to_video` for nodetool.video.ImageToVideo, " +
|
|
125
|
-
"`text_to_speech` for nodetool.audio.TextToSpeech, `
|
|
116
|
+
"`text_to_video` for nodetool.video.TextToVideo, `image_to_video` for nodetool.video.ImageToVideo, `reference_to_video` for nodetool.video.ReferenceToVideo, " +
|
|
117
|
+
"`text_to_speech` for nodetool.audio.TextToSpeech, `text_to_music` for nodetool.audio.TextToMusic, " +
|
|
118
|
+
"`audio_to_audio` for nodetool.audio.AudioToAudio, " +
|
|
119
|
+
"`speech_to_text` for nodetool.text.AutomaticSpeechRecognition, " +
|
|
126
120
|
"`text_generation` for nodetool.agents.* and nodetool.generators.*, `embedding` for nodetool.text.Embedding."),
|
|
127
121
|
limit: z
|
|
128
122
|
.number()
|
|
@@ -142,7 +136,7 @@ export const uiToolSchemas = {
|
|
|
142
136
|
parameters: uiSearchNodesParams
|
|
143
137
|
},
|
|
144
138
|
ui_search_models: {
|
|
145
|
-
description: "List recommended/available AI models for a given task. Required: `kind` (one of: text_to_image, image_to_image, text_to_video, image_to_video, text_to_speech, speech_to_text, text_generation, embedding). Returns model ids you can write to a generic AI node's `model` property via ui_update_node_data.",
|
|
139
|
+
description: "List recommended/available AI models for a given task. Required: `kind` (one of: text_to_image, image_to_image, text_to_video, image_to_video, reference_to_video, text_to_speech, text_to_music, audio_to_audio, speech_to_text, text_generation, embedding). Returns model ids you can write to a generic AI node's `model` property via ui_update_node_data.",
|
|
146
140
|
parameters: uiSearchModelsParams
|
|
147
141
|
},
|
|
148
142
|
ui_add_node: {
|
|
@@ -150,7 +144,7 @@ export const uiToolSchemas = {
|
|
|
150
144
|
parameters: uiAddNodeParams
|
|
151
145
|
},
|
|
152
146
|
ui_connect_nodes: {
|
|
153
|
-
description:
|
|
147
|
+
description: 'Connect two nodes by port name. Required: `source_node_id`, `source_handle` (output name), `target_node_id`, `target_handle` (input/property name). On a Code node, any name the body reads as `inputs.<name>` or `stream("<name>")` is already a target handle.',
|
|
154
148
|
parameters: uiConnectNodesParams
|
|
155
149
|
},
|
|
156
150
|
ui_get_graph: {
|
|
@@ -158,7 +152,7 @@ export const uiToolSchemas = {
|
|
|
158
152
|
parameters: uiGetGraphParams
|
|
159
153
|
},
|
|
160
154
|
ui_update_node_data: {
|
|
161
|
-
description: "Merge a partial overlay into a node's `data` (properties, title,
|
|
155
|
+
description: "Merge a partial overlay into a node's `data` (properties, title, etc.). Required: `node_id`, `data`.",
|
|
162
156
|
parameters: uiUpdateNodeDataParams
|
|
163
157
|
},
|
|
164
158
|
ui_delete_node: {
|
|
@@ -177,10 +171,6 @@ export const uiToolSchemas = {
|
|
|
177
171
|
description: "Set a node's display title. Required: `node_id`, `title`.",
|
|
178
172
|
parameters: uiSetNodeTitleParams
|
|
179
173
|
},
|
|
180
|
-
ui_set_node_sync_mode: {
|
|
181
|
-
description: "Set a node's input sync mode. Required: `node_id`, `mode` ('on_any' | 'zip_all').",
|
|
182
|
-
parameters: uiSetNodeSyncModeParams
|
|
183
|
-
},
|
|
184
174
|
ui_open_workflow: {
|
|
185
175
|
description: "Open a workflow tab and switch to it. Required: `workflow_id`.",
|
|
186
176
|
parameters: uiOpenWorkflowParams
|
package/dist/toolSchemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolSchemas.js","sourceRoot":"","sources":["../src/toolSchemas.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,EAAE;AACF,iDAAiD;AACjD,4DAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"toolSchemas.js","sourceRoot":"","sources":["../src/toolSchemas.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,EAAE;AACF,iDAAiD;AACjD,4DAA4D;AAC5D,sFAAsF;AACtF,EAAE;AACF,+EAA+E;AAE/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6BAA6B;AAE7B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,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