@decaf-ts/as-graph 0.7.0 → 0.8.0
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 +92 -12
- package/assets/i18n/en.json +1519 -130
- package/dist/as-graph.cjs +1 -1
- package/dist/as-graph.cjs.map +1 -1
- package/dist/as-graph.js +1 -1
- package/dist/as-graph.js.map +1 -1
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs +13 -0
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs.map +1 -1
- package/lib/cjs/dagster/capabilities.cjs +5 -0
- package/lib/cjs/dagster/capabilities.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphCodeMode.cjs +42 -0
- package/lib/cjs/engine/execution/GraphCodeMode.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +35 -4
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs +29 -1
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs +6 -2
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs +41 -9
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphEngineController.cjs +18 -0
- package/lib/cjs/nest/graph/GraphEngineController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +14 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +17 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +34 -5
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -1
- package/lib/cjs/node/comms/discord/node.cjs +384 -0
- package/lib/cjs/node/comms/discord/node.cjs.map +1 -0
- package/lib/cjs/node/comms/outlook/node.cjs +395 -0
- package/lib/cjs/node/comms/outlook/node.cjs.map +1 -0
- package/lib/cjs/node/comms/whatsapp/node.cjs +341 -0
- package/lib/cjs/node/comms/whatsapp/node.cjs.map +1 -0
- package/lib/cjs/node/data/aggregate/node.cjs +196 -0
- package/lib/cjs/node/data/aggregate/node.cjs.map +1 -0
- package/lib/cjs/node/data/compare-datasets/node.cjs +331 -0
- package/lib/cjs/node/data/compare-datasets/node.cjs.map +1 -0
- package/lib/cjs/node/data/item-lists/node.cjs +416 -0
- package/lib/cjs/node/data/item-lists/node.cjs.map +1 -0
- package/lib/cjs/node/data/remove-duplicates/node.cjs +141 -0
- package/lib/cjs/node/data/remove-duplicates/node.cjs.map +1 -0
- package/lib/cjs/node/data/summarize/node.cjs +155 -0
- package/lib/cjs/node/data/summarize/node.cjs.map +1 -0
- package/lib/cjs/node/data/support.cjs +5 -0
- package/lib/cjs/node/data/support.cjs.map +1 -1
- package/lib/cjs/node/data/transform-utils.cjs +719 -0
- package/lib/cjs/node/data/transform-utils.cjs.map +1 -0
- package/lib/cjs/node/index.cjs +216 -110
- package/lib/cjs/node/index.cjs.map +1 -1
- package/lib/cjs/node/io/confluence/node.cjs +253 -0
- package/lib/cjs/node/io/confluence/node.cjs.map +1 -0
- package/lib/cjs/node/io/convert-to-file/node.cjs +349 -0
- package/lib/cjs/node/io/convert-to-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/file-support.cjs +311 -0
- package/lib/cjs/node/io/file-support.cjs.map +1 -0
- package/lib/cjs/node/io/google-calendar/node.cjs +359 -0
- package/lib/cjs/node/io/google-calendar/node.cjs.map +1 -0
- package/lib/cjs/node/io/google-docs/node.cjs +272 -0
- package/lib/cjs/node/io/google-docs/node.cjs.map +1 -0
- package/lib/cjs/node/io/html/node.cjs +275 -0
- package/lib/cjs/node/io/html/node.cjs.map +1 -0
- package/lib/cjs/node/io/html-extract/node.cjs +162 -0
- package/lib/cjs/node/io/html-extract/node.cjs.map +1 -0
- package/lib/cjs/node/io/html-support.cjs +246 -0
- package/lib/cjs/node/io/html-support.cjs.map +1 -0
- package/lib/cjs/node/io/jira/node.cjs +351 -0
- package/lib/cjs/node/io/jira/node.cjs.map +1 -0
- package/lib/cjs/node/io/markdown/node.cjs +229 -0
- package/lib/cjs/node/io/markdown/node.cjs.map +1 -0
- package/lib/cjs/node/io/microsoft-excel/node.cjs +261 -0
- package/lib/cjs/node/io/microsoft-excel/node.cjs.map +1 -0
- package/lib/cjs/node/io/microsoft-sharepoint/node.cjs +274 -0
- package/lib/cjs/node/io/microsoft-sharepoint/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-binary-file/node.cjs +114 -0
- package/lib/cjs/node/io/read-binary-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-binary-files/node.cjs +113 -0
- package/lib/cjs/node/io/read-binary-files/node.cjs.map +1 -0
- package/lib/cjs/node/io/write-binary-file/node.cjs +164 -0
- package/lib/cjs/node/io/write-binary-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/xml/node.cjs +322 -0
- package/lib/cjs/node/io/xml/node.cjs.map +1 -0
- package/lib/cjs/node/manifests.cjs +137 -79
- package/lib/cjs/node/manifests.cjs.map +1 -1
- package/lib/cjs/node/storage/rabbitmq/node.cjs +252 -0
- package/lib/cjs/node/storage/rabbitmq/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/error/node.cjs +108 -0
- package/lib/cjs/node/triggers/error/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/postgres/node.cjs +244 -0
- package/lib/cjs/node/triggers/postgres/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/rabbitmq/node.cjs +284 -0
- package/lib/cjs/node/triggers/rabbitmq/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/redis/node.cjs +233 -0
- package/lib/cjs/node/triggers/redis/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/sse/node.cjs +196 -0
- package/lib/cjs/node/triggers/sse/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/support.cjs +107 -0
- package/lib/cjs/node/triggers/support.cjs.map +1 -0
- package/lib/cjs/node/triggers/workflow/node.cjs +193 -0
- package/lib/cjs/node/triggers/workflow/node.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs +20 -3
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -1
- package/lib/cjs/workflows/boundary-value.workflow.cjs +38 -0
- package/lib/cjs/workflows/boundary-value.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/builders.cjs +47 -0
- package/lib/cjs/workflows/builders.cjs.map +1 -0
- package/lib/cjs/workflows/chat-agent.workflow.cjs +40 -0
- package/lib/cjs/workflows/chat-agent.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/error-boundary.workflow.cjs +54 -0
- package/lib/cjs/workflows/error-boundary.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/event-map.workflow.cjs +37 -0
- package/lib/cjs/workflows/event-map.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/foreach-break.workflow.cjs +58 -0
- package/lib/cjs/workflows/foreach-break.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/human-approval.workflow.cjs +44 -0
- package/lib/cjs/workflows/human-approval.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/if-switch.workflow.cjs +66 -0
- package/lib/cjs/workflows/if-switch.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/index.cjs +135 -0
- package/lib/cjs/workflows/index.cjs.map +1 -0
- package/lib/cjs/workflows/loops-while-until.workflow.cjs +76 -0
- package/lib/cjs/workflows/loops-while-until.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/manual-log.workflow.cjs +52 -0
- package/lib/cjs/workflows/manual-log.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/schedule-code.workflow.cjs +42 -0
- package/lib/cjs/workflows/schedule-code.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/types.cjs +4 -0
- package/lib/cjs/workflows/types.cjs.map +1 -0
- package/lib/cjs/workflows/value-templates.workflow.cjs +43 -0
- package/lib/cjs/workflows/value-templates.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/webhook-form.workflow.cjs +48 -0
- package/lib/cjs/workflows/webhook-form.workflow.cjs.map +1 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js +13 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js.map +1 -1
- package/lib/esm/dagster/capabilities.js +5 -0
- package/lib/esm/dagster/capabilities.js.map +1 -1
- package/lib/esm/engine/execution/GraphCodeMode.js +40 -0
- package/lib/esm/engine/execution/GraphCodeMode.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionBackend.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionEngine.js +36 -5
- package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js +29 -1
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js.map +1 -1
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js +6 -2
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
- package/lib/esm/mastra/MastraMemory.js.map +1 -1
- package/lib/esm/mastra/MastraWorkflowCompiler.js +41 -9
- package/lib/esm/mastra/MastraWorkflowCompiler.js.map +1 -1
- package/lib/esm/nest/graph/GraphEngineController.js +19 -1
- package/lib/esm/nest/graph/GraphEngineController.js.map +1 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +15 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -1
- package/lib/esm/nest/graph/GraphRunController.js +18 -1
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowController.js +35 -6
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -1
- package/lib/esm/node/comms/discord/node.js +375 -0
- package/lib/esm/node/comms/discord/node.js.map +1 -0
- package/lib/esm/node/comms/outlook/node.js +386 -0
- package/lib/esm/node/comms/outlook/node.js.map +1 -0
- package/lib/esm/node/comms/whatsapp/node.js +332 -0
- package/lib/esm/node/comms/whatsapp/node.js.map +1 -0
- package/lib/esm/node/data/aggregate/node.js +187 -0
- package/lib/esm/node/data/aggregate/node.js.map +1 -0
- package/lib/esm/node/data/compare-datasets/node.js +322 -0
- package/lib/esm/node/data/compare-datasets/node.js.map +1 -0
- package/lib/esm/node/data/item-lists/node.js +407 -0
- package/lib/esm/node/data/item-lists/node.js.map +1 -0
- package/lib/esm/node/data/remove-duplicates/node.js +132 -0
- package/lib/esm/node/data/remove-duplicates/node.js.map +1 -0
- package/lib/esm/node/data/summarize/node.js +146 -0
- package/lib/esm/node/data/summarize/node.js.map +1 -0
- package/lib/esm/node/data/support.js +5 -1
- package/lib/esm/node/data/support.js.map +1 -1
- package/lib/esm/node/data/transform-utils.js +702 -0
- package/lib/esm/node/data/transform-utils.js.map +1 -0
- package/lib/esm/node/index.js +110 -4
- package/lib/esm/node/index.js.map +1 -1
- package/lib/esm/node/io/confluence/node.js +244 -0
- package/lib/esm/node/io/confluence/node.js.map +1 -0
- package/lib/esm/node/io/convert-to-file/node.js +340 -0
- package/lib/esm/node/io/convert-to-file/node.js.map +1 -0
- package/lib/esm/node/io/file-support.js +299 -0
- package/lib/esm/node/io/file-support.js.map +1 -0
- package/lib/esm/node/io/google-calendar/node.js +350 -0
- package/lib/esm/node/io/google-calendar/node.js.map +1 -0
- package/lib/esm/node/io/google-docs/node.js +263 -0
- package/lib/esm/node/io/google-docs/node.js.map +1 -0
- package/lib/esm/node/io/html/node.js +266 -0
- package/lib/esm/node/io/html/node.js.map +1 -0
- package/lib/esm/node/io/html-extract/node.js +153 -0
- package/lib/esm/node/io/html-extract/node.js.map +1 -0
- package/lib/esm/node/io/html-support.js +206 -0
- package/lib/esm/node/io/html-support.js.map +1 -0
- package/lib/esm/node/io/jira/node.js +342 -0
- package/lib/esm/node/io/jira/node.js.map +1 -0
- package/lib/esm/node/io/markdown/node.js +217 -0
- package/lib/esm/node/io/markdown/node.js.map +1 -0
- package/lib/esm/node/io/microsoft-excel/node.js +252 -0
- package/lib/esm/node/io/microsoft-excel/node.js.map +1 -0
- package/lib/esm/node/io/microsoft-sharepoint/node.js +265 -0
- package/lib/esm/node/io/microsoft-sharepoint/node.js.map +1 -0
- package/lib/esm/node/io/read-binary-file/node.js +105 -0
- package/lib/esm/node/io/read-binary-file/node.js.map +1 -0
- package/lib/esm/node/io/read-binary-files/node.js +104 -0
- package/lib/esm/node/io/read-binary-files/node.js.map +1 -0
- package/lib/esm/node/io/write-binary-file/node.js +155 -0
- package/lib/esm/node/io/write-binary-file/node.js.map +1 -0
- package/lib/esm/node/io/xml/node.js +313 -0
- package/lib/esm/node/io/xml/node.js.map +1 -0
- package/lib/esm/node/manifests.js +58 -0
- package/lib/esm/node/manifests.js.map +1 -1
- package/lib/esm/node/storage/rabbitmq/node.js +243 -0
- package/lib/esm/node/storage/rabbitmq/node.js.map +1 -0
- package/lib/esm/node/triggers/error/node.js +99 -0
- package/lib/esm/node/triggers/error/node.js.map +1 -0
- package/lib/esm/node/triggers/postgres/node.js +235 -0
- package/lib/esm/node/triggers/postgres/node.js.map +1 -0
- package/lib/esm/node/triggers/rabbitmq/node.js +275 -0
- package/lib/esm/node/triggers/rabbitmq/node.js.map +1 -0
- package/lib/esm/node/triggers/redis/node.js +224 -0
- package/lib/esm/node/triggers/redis/node.js.map +1 -0
- package/lib/esm/node/triggers/sse/node.js +187 -0
- package/lib/esm/node/triggers/sse/node.js.map +1 -0
- package/lib/esm/node/triggers/support.js +99 -0
- package/lib/esm/node/triggers/support.js.map +1 -0
- package/lib/esm/node/triggers/workflow/node.js +184 -0
- package/lib/esm/node/triggers/workflow/node.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js +20 -3
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js.map +1 -1
- package/lib/esm/workflows/boundary-value.workflow.js +34 -0
- package/lib/esm/workflows/boundary-value.workflow.js.map +1 -0
- package/lib/esm/workflows/builders.js +40 -0
- package/lib/esm/workflows/builders.js.map +1 -0
- package/lib/esm/workflows/chat-agent.workflow.js +36 -0
- package/lib/esm/workflows/chat-agent.workflow.js.map +1 -0
- package/lib/esm/workflows/error-boundary.workflow.js +50 -0
- package/lib/esm/workflows/error-boundary.workflow.js.map +1 -0
- package/lib/esm/workflows/event-map.workflow.js +33 -0
- package/lib/esm/workflows/event-map.workflow.js.map +1 -0
- package/lib/esm/workflows/foreach-break.workflow.js +54 -0
- package/lib/esm/workflows/foreach-break.workflow.js.map +1 -0
- package/lib/esm/workflows/human-approval.workflow.js +40 -0
- package/lib/esm/workflows/human-approval.workflow.js.map +1 -0
- package/lib/esm/workflows/if-switch.workflow.js +62 -0
- package/lib/esm/workflows/if-switch.workflow.js.map +1 -0
- package/lib/esm/workflows/index.js +116 -0
- package/lib/esm/workflows/index.js.map +1 -0
- package/lib/esm/workflows/loops-while-until.workflow.js +72 -0
- package/lib/esm/workflows/loops-while-until.workflow.js.map +1 -0
- package/lib/esm/workflows/manual-log.workflow.js +48 -0
- package/lib/esm/workflows/manual-log.workflow.js.map +1 -0
- package/lib/esm/workflows/schedule-code.workflow.js +38 -0
- package/lib/esm/workflows/schedule-code.workflow.js.map +1 -0
- package/lib/esm/workflows/types.js +2 -0
- package/lib/esm/workflows/types.js.map +1 -0
- package/lib/esm/workflows/value-templates.workflow.js +39 -0
- package/lib/esm/workflows/value-templates.workflow.js.map +1 -0
- package/lib/esm/workflows/webhook-form.workflow.js +44 -0
- package/lib/esm/workflows/webhook-form.workflow.js.map +1 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.cts +7 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.mts +7 -0
- package/lib/types/engine/execution/GraphCodeMode.d.cts +46 -0
- package/lib/types/engine/execution/GraphCodeMode.d.mts +46 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.cts +21 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.mts +21 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.cts +28 -3
- package/lib/types/engine/execution/GraphExecutionEngine.d.mts +28 -3
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.cts +11 -1
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.mts +11 -1
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.cts +7 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.mts +7 -0
- package/lib/types/mastra/MastraWorkflowCompiler.d.cts +23 -8
- package/lib/types/mastra/MastraWorkflowCompiler.d.mts +23 -8
- package/lib/types/nest/graph/GraphEngineController.d.cts +19 -0
- package/lib/types/nest/graph/GraphEngineController.d.mts +19 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +13 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +13 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +16 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +16 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +26 -3
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +26 -3
- package/lib/types/node/comms/discord/node.d.cts +67 -0
- package/lib/types/node/comms/discord/node.d.mts +67 -0
- package/lib/types/node/comms/outlook/node.d.cts +77 -0
- package/lib/types/node/comms/outlook/node.d.mts +77 -0
- package/lib/types/node/comms/whatsapp/node.d.cts +71 -0
- package/lib/types/node/comms/whatsapp/node.d.mts +71 -0
- package/lib/types/node/data/aggregate/node.d.cts +58 -0
- package/lib/types/node/data/aggregate/node.d.mts +58 -0
- package/lib/types/node/data/compare-datasets/node.d.cts +72 -0
- package/lib/types/node/data/compare-datasets/node.d.mts +72 -0
- package/lib/types/node/data/item-lists/node.d.cts +92 -0
- package/lib/types/node/data/item-lists/node.d.mts +92 -0
- package/lib/types/node/data/remove-duplicates/node.d.cts +47 -0
- package/lib/types/node/data/remove-duplicates/node.d.mts +47 -0
- package/lib/types/node/data/summarize/node.d.cts +44 -0
- package/lib/types/node/data/summarize/node.d.mts +44 -0
- package/lib/types/node/data/support.d.cts +13 -0
- package/lib/types/node/data/support.d.mts +13 -0
- package/lib/types/node/data/transform-utils.d.cts +236 -0
- package/lib/types/node/data/transform-utils.d.mts +236 -0
- package/lib/types/node/index.d.cts +54 -6
- package/lib/types/node/index.d.mts +54 -6
- package/lib/types/node/io/confluence/node.d.cts +49 -0
- package/lib/types/node/io/confluence/node.d.mts +49 -0
- package/lib/types/node/io/convert-to-file/node.d.cts +75 -0
- package/lib/types/node/io/convert-to-file/node.d.mts +75 -0
- package/lib/types/node/io/file-support.d.cts +118 -0
- package/lib/types/node/io/file-support.d.mts +118 -0
- package/lib/types/node/io/google-calendar/node.d.cts +65 -0
- package/lib/types/node/io/google-calendar/node.d.mts +65 -0
- package/lib/types/node/io/google-docs/node.d.cts +51 -0
- package/lib/types/node/io/google-docs/node.d.mts +51 -0
- package/lib/types/node/io/html/node.d.cts +68 -0
- package/lib/types/node/io/html/node.d.mts +68 -0
- package/lib/types/node/io/html-extract/node.d.cts +42 -0
- package/lib/types/node/io/html-extract/node.d.mts +42 -0
- package/lib/types/node/io/html-support.d.cts +69 -0
- package/lib/types/node/io/html-support.d.mts +69 -0
- package/lib/types/node/io/jira/node.d.cts +57 -0
- package/lib/types/node/io/jira/node.d.mts +57 -0
- package/lib/types/node/io/markdown/node.d.cts +61 -0
- package/lib/types/node/io/markdown/node.d.mts +61 -0
- package/lib/types/node/io/microsoft-excel/node.d.cts +45 -0
- package/lib/types/node/io/microsoft-excel/node.d.mts +45 -0
- package/lib/types/node/io/microsoft-sharepoint/node.d.cts +47 -0
- package/lib/types/node/io/microsoft-sharepoint/node.d.mts +47 -0
- package/lib/types/node/io/read-binary-file/node.d.cts +45 -0
- package/lib/types/node/io/read-binary-file/node.d.mts +45 -0
- package/lib/types/node/io/read-binary-files/node.d.cts +41 -0
- package/lib/types/node/io/read-binary-files/node.d.mts +41 -0
- package/lib/types/node/io/write-binary-file/node.d.cts +55 -0
- package/lib/types/node/io/write-binary-file/node.d.mts +55 -0
- package/lib/types/node/io/xml/node.d.cts +67 -0
- package/lib/types/node/io/xml/node.d.mts +67 -0
- package/lib/types/node/storage/rabbitmq/node.d.cts +55 -0
- package/lib/types/node/storage/rabbitmq/node.d.mts +55 -0
- package/lib/types/node/triggers/error/node.d.cts +34 -0
- package/lib/types/node/triggers/error/node.d.mts +34 -0
- package/lib/types/node/triggers/postgres/node.d.cts +54 -0
- package/lib/types/node/triggers/postgres/node.d.mts +54 -0
- package/lib/types/node/triggers/rabbitmq/node.d.cts +59 -0
- package/lib/types/node/triggers/rabbitmq/node.d.mts +59 -0
- package/lib/types/node/triggers/redis/node.d.cts +53 -0
- package/lib/types/node/triggers/redis/node.d.mts +53 -0
- package/lib/types/node/triggers/sse/node.d.cts +43 -0
- package/lib/types/node/triggers/sse/node.d.mts +43 -0
- package/lib/types/node/triggers/support.d.cts +41 -0
- package/lib/types/node/triggers/support.d.mts +41 -0
- package/lib/types/node/triggers/workflow/node.d.cts +46 -0
- package/lib/types/node/triggers/workflow/node.d.mts +46 -0
- package/lib/types/workflows/boundary-value.workflow.d.cts +3 -0
- package/lib/types/workflows/boundary-value.workflow.d.mts +3 -0
- package/lib/types/workflows/builders.d.cts +31 -0
- package/lib/types/workflows/builders.d.mts +31 -0
- package/lib/types/workflows/chat-agent.workflow.d.cts +3 -0
- package/lib/types/workflows/chat-agent.workflow.d.mts +3 -0
- package/lib/types/workflows/error-boundary.workflow.d.cts +3 -0
- package/lib/types/workflows/error-boundary.workflow.d.mts +3 -0
- package/lib/types/workflows/event-map.workflow.d.cts +3 -0
- package/lib/types/workflows/event-map.workflow.d.mts +3 -0
- package/lib/types/workflows/foreach-break.workflow.d.cts +3 -0
- package/lib/types/workflows/foreach-break.workflow.d.mts +3 -0
- package/lib/types/workflows/human-approval.workflow.d.cts +3 -0
- package/lib/types/workflows/human-approval.workflow.d.mts +3 -0
- package/lib/types/workflows/if-switch.workflow.d.cts +3 -0
- package/lib/types/workflows/if-switch.workflow.d.mts +3 -0
- package/lib/types/workflows/index.d.cts +37 -0
- package/lib/types/workflows/index.d.mts +37 -0
- package/lib/types/workflows/loops-while-until.workflow.d.cts +3 -0
- package/lib/types/workflows/loops-while-until.workflow.d.mts +3 -0
- package/lib/types/workflows/manual-log.workflow.d.cts +3 -0
- package/lib/types/workflows/manual-log.workflow.d.mts +3 -0
- package/lib/types/workflows/schedule-code.workflow.d.cts +3 -0
- package/lib/types/workflows/schedule-code.workflow.d.mts +3 -0
- package/lib/types/workflows/types.d.cts +32 -0
- package/lib/types/workflows/types.d.mts +32 -0
- package/lib/types/workflows/value-templates.workflow.d.cts +16 -0
- package/lib/types/workflows/value-templates.workflow.d.mts +16 -0
- package/lib/types/workflows/webhook-form.workflow.d.cts +3 -0
- package/lib/types/workflows/webhook-form.workflow.d.mts +3 -0
- package/package.json +247 -25
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.cts";
|
|
4
|
+
/** Inputs accepted by the SSE trigger (none — it is an entrypoint). */
|
|
5
|
+
export type SseTriggerInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the SSE trigger. */
|
|
7
|
+
export interface SseTriggerOutput {
|
|
8
|
+
payload: unknown;
|
|
9
|
+
message?: string;
|
|
10
|
+
event?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* SSE trigger node: opens an event stream and emits the first event.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SseTriggerNode extends GraphNode<SseTriggerInput, SseTriggerOutput> {
|
|
17
|
+
/**
|
|
18
|
+
* Opens the configured SSE stream and emits its first message.
|
|
19
|
+
*
|
|
20
|
+
* @param request - The execution request carrying resolved credentials.
|
|
21
|
+
* @param context - The node execution context (run abort signal).
|
|
22
|
+
* @returns The event payload, raw data, event name, and event id.
|
|
23
|
+
* @throws {GraphExecutionError} `GRAPH_SSE_TRIGGER_URL_REQUIRED` when no URL is
|
|
24
|
+
* configured, `GRAPH_TRIGGER_TIMEOUT` when no event arrives in time,
|
|
25
|
+
* `GRAPH_TRIGGER_ABORTED` when the run is cancelled, and
|
|
26
|
+
* `GRAPH_SSE_TRIGGER_FAILED` for connection or stream failures.
|
|
27
|
+
*/
|
|
28
|
+
execute(request: GraphNodeExecutionRequest<SseTriggerInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
29
|
+
/** SSE endpoint to subscribe to. */
|
|
30
|
+
url?: string;
|
|
31
|
+
/** Parse the event data as JSON when possible (raw string otherwise). */
|
|
32
|
+
jsonParseBody: boolean;
|
|
33
|
+
/** Maximum wait for the first event in milliseconds (default 30000). */
|
|
34
|
+
timeoutMs?: number;
|
|
35
|
+
/** The event data, JSON-projected when `jsonParseBody` is enabled. */
|
|
36
|
+
payload: unknown;
|
|
37
|
+
/** The raw event data text. */
|
|
38
|
+
message?: string;
|
|
39
|
+
/** The SSE event name (`message` for unnamed events). */
|
|
40
|
+
event?: string;
|
|
41
|
+
/** The SSE event id. */
|
|
42
|
+
id?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
/** Inputs accepted by the SSE trigger (none — it is an entrypoint). */
|
|
5
|
+
export type SseTriggerInput = Record<string, unknown>;
|
|
6
|
+
/** Outputs produced by the SSE trigger. */
|
|
7
|
+
export interface SseTriggerOutput {
|
|
8
|
+
payload: unknown;
|
|
9
|
+
message?: string;
|
|
10
|
+
event?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* SSE trigger node: opens an event stream and emits the first event.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SseTriggerNode extends GraphNode<SseTriggerInput, SseTriggerOutput> {
|
|
17
|
+
/**
|
|
18
|
+
* Opens the configured SSE stream and emits its first message.
|
|
19
|
+
*
|
|
20
|
+
* @param request - The execution request carrying resolved credentials.
|
|
21
|
+
* @param context - The node execution context (run abort signal).
|
|
22
|
+
* @returns The event payload, raw data, event name, and event id.
|
|
23
|
+
* @throws {GraphExecutionError} `GRAPH_SSE_TRIGGER_URL_REQUIRED` when no URL is
|
|
24
|
+
* configured, `GRAPH_TRIGGER_TIMEOUT` when no event arrives in time,
|
|
25
|
+
* `GRAPH_TRIGGER_ABORTED` when the run is cancelled, and
|
|
26
|
+
* `GRAPH_SSE_TRIGGER_FAILED` for connection or stream failures.
|
|
27
|
+
*/
|
|
28
|
+
execute(request: GraphNodeExecutionRequest<SseTriggerInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
29
|
+
/** SSE endpoint to subscribe to. */
|
|
30
|
+
url?: string;
|
|
31
|
+
/** Parse the event data as JSON when possible (raw string otherwise). */
|
|
32
|
+
jsonParseBody: boolean;
|
|
33
|
+
/** Maximum wait for the first event in milliseconds (default 30000). */
|
|
34
|
+
timeoutMs?: number;
|
|
35
|
+
/** The event data, JSON-projected when `jsonParseBody` is enabled. */
|
|
36
|
+
payload: unknown;
|
|
37
|
+
/** The raw event data text. */
|
|
38
|
+
message?: string;
|
|
39
|
+
/** The SSE event name (`message` for unnamed events). */
|
|
40
|
+
event?: string;
|
|
41
|
+
/** The SSE event id. */
|
|
42
|
+
id?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/nodes/triggers/support
|
|
3
|
+
* @summary Shared helpers for the Stage 5b eventing trigger kinds.
|
|
4
|
+
* @description The trigger kinds that consume an external stream (Redis,
|
|
5
|
+
* RabbitMQ, SSE, Postgres) wait for exactly one event inside the node
|
|
6
|
+
* executor: the run service starts a run, the trigger subscribes, and the run
|
|
7
|
+
* continues once the first event arrives. This module owns the shared wait
|
|
8
|
+
* contract — bounded timeout, run-cancellation forwarding through the
|
|
9
|
+
* context's abort signal, subscription cleanup, and the JSON payload
|
|
10
|
+
* projection every stream trigger applies.
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
|
|
13
|
+
import { GraphExecutionError } from "../../engine/errors/GraphExecutionError.d.cts";
|
|
14
|
+
/** Default time a stream trigger waits for its first event before failing the node. */
|
|
15
|
+
export declare const DEFAULT_TRIGGER_TIMEOUT_MS = 30000;
|
|
16
|
+
/** Resolves the configured trigger wait budget, falling back to the default. */
|
|
17
|
+
export declare function triggerTimeoutMs(value: unknown): number;
|
|
18
|
+
/** Projects a raw stream payload: JSON-parsed when requested and parseable, the raw string otherwise. */
|
|
19
|
+
export declare function triggerPayload(raw: string, jsonParse: boolean): unknown;
|
|
20
|
+
/** Normalizes an unknown runtime failure into a graph execution error for a trigger kind. */
|
|
21
|
+
export declare function triggerFailure(nodeName: string, code: string, error: unknown): GraphExecutionError;
|
|
22
|
+
/** Subscribes to a stream, reporting the first event through `emit` and failures through `fail`. */
|
|
23
|
+
export type TriggerSubscriber<T> = (emit: (value: T) => void, fail: (error: unknown) => void) => Promise<() => void | Promise<void>> | (() => void | Promise<void>);
|
|
24
|
+
/**
|
|
25
|
+
* Waits for the first event a trigger subscription reports.
|
|
26
|
+
*
|
|
27
|
+
* The wait is bounded by `timeoutMs` and follows the run's abort signal, so a
|
|
28
|
+
* cancelled or timed-out run closes the subscription instead of leaking it.
|
|
29
|
+
* The subscription's cleanup runs before this promise settles.
|
|
30
|
+
*
|
|
31
|
+
* @param context - The node execution context carrying the run abort signal.
|
|
32
|
+
* @param timeoutMs - Maximum wait budget in milliseconds.
|
|
33
|
+
* @param subscribe - Stream subscription; returns its cleanup callback.
|
|
34
|
+
* @param timeoutCode - Graph error code used when the budget elapses.
|
|
35
|
+
* @param timeoutMessage - Human-readable timeout message.
|
|
36
|
+
* @typeParam T - The event shape the subscription reports.
|
|
37
|
+
* @returns The first reported event.
|
|
38
|
+
* @throws {GraphExecutionError} `GRAPH_TRIGGER_ABORTED` when the run aborts, the
|
|
39
|
+
* supplied timeout code on budget exhaustion, or the subscription failure.
|
|
40
|
+
*/
|
|
41
|
+
export declare function waitForTriggerEvent<T>(context: GraphExecutionContext, timeoutMs: number, subscribe: TriggerSubscriber<T>, timeoutCode: string, timeoutMessage: string): Promise<T>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/nodes/triggers/support
|
|
3
|
+
* @summary Shared helpers for the Stage 5b eventing trigger kinds.
|
|
4
|
+
* @description The trigger kinds that consume an external stream (Redis,
|
|
5
|
+
* RabbitMQ, SSE, Postgres) wait for exactly one event inside the node
|
|
6
|
+
* executor: the run service starts a run, the trigger subscribes, and the run
|
|
7
|
+
* continues once the first event arrives. This module owns the shared wait
|
|
8
|
+
* contract — bounded timeout, run-cancellation forwarding through the
|
|
9
|
+
* context's abort signal, subscription cleanup, and the JSON payload
|
|
10
|
+
* projection every stream trigger applies.
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.mts";
|
|
13
|
+
import { GraphExecutionError } from "../../engine/errors/GraphExecutionError.d.mts";
|
|
14
|
+
/** Default time a stream trigger waits for its first event before failing the node. */
|
|
15
|
+
export declare const DEFAULT_TRIGGER_TIMEOUT_MS = 30000;
|
|
16
|
+
/** Resolves the configured trigger wait budget, falling back to the default. */
|
|
17
|
+
export declare function triggerTimeoutMs(value: unknown): number;
|
|
18
|
+
/** Projects a raw stream payload: JSON-parsed when requested and parseable, the raw string otherwise. */
|
|
19
|
+
export declare function triggerPayload(raw: string, jsonParse: boolean): unknown;
|
|
20
|
+
/** Normalizes an unknown runtime failure into a graph execution error for a trigger kind. */
|
|
21
|
+
export declare function triggerFailure(nodeName: string, code: string, error: unknown): GraphExecutionError;
|
|
22
|
+
/** Subscribes to a stream, reporting the first event through `emit` and failures through `fail`. */
|
|
23
|
+
export type TriggerSubscriber<T> = (emit: (value: T) => void, fail: (error: unknown) => void) => Promise<() => void | Promise<void>> | (() => void | Promise<void>);
|
|
24
|
+
/**
|
|
25
|
+
* Waits for the first event a trigger subscription reports.
|
|
26
|
+
*
|
|
27
|
+
* The wait is bounded by `timeoutMs` and follows the run's abort signal, so a
|
|
28
|
+
* cancelled or timed-out run closes the subscription instead of leaking it.
|
|
29
|
+
* The subscription's cleanup runs before this promise settles.
|
|
30
|
+
*
|
|
31
|
+
* @param context - The node execution context carrying the run abort signal.
|
|
32
|
+
* @param timeoutMs - Maximum wait budget in milliseconds.
|
|
33
|
+
* @param subscribe - Stream subscription; returns its cleanup callback.
|
|
34
|
+
* @param timeoutCode - Graph error code used when the budget elapses.
|
|
35
|
+
* @param timeoutMessage - Human-readable timeout message.
|
|
36
|
+
* @typeParam T - The event shape the subscription reports.
|
|
37
|
+
* @returns The first reported event.
|
|
38
|
+
* @throws {GraphExecutionError} `GRAPH_TRIGGER_ABORTED` when the run aborts, the
|
|
39
|
+
* supplied timeout code on budget exhaustion, or the subscription failure.
|
|
40
|
+
*/
|
|
41
|
+
export declare function waitForTriggerEvent<T>(context: GraphExecutionContext, timeoutMs: number, subscribe: TriggerSubscriber<T>, timeoutCode: string, timeoutMessage: string): Promise<T>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
/** Lifecycle events the workflow trigger can listen to. */
|
|
4
|
+
export type WorkflowTriggerEvent = "activate" | "update";
|
|
5
|
+
/** Inputs accepted by the workflow trigger. */
|
|
6
|
+
export type WorkflowTriggerInput = Record<string, unknown>;
|
|
7
|
+
/** Outputs produced by the workflow trigger. */
|
|
8
|
+
export interface WorkflowTriggerOutput {
|
|
9
|
+
payload: unknown;
|
|
10
|
+
event?: WorkflowTriggerEvent;
|
|
11
|
+
timestamp?: string;
|
|
12
|
+
workflowId?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Workflow trigger node: emits a workflow lifecycle event into the run.
|
|
16
|
+
*/
|
|
17
|
+
export declare class WorkflowTriggerNode extends GraphNode<WorkflowTriggerInput, WorkflowTriggerOutput> {
|
|
18
|
+
/**
|
|
19
|
+
* Emits the lifecycle payload for the delivered (or configured) event.
|
|
20
|
+
*
|
|
21
|
+
* @param request - The execution request carrying the delivered event/payload.
|
|
22
|
+
* @returns The lifecycle payload plus the normalized event, timestamp, and workflow id.
|
|
23
|
+
* @throws {GraphExecutionError} `GRAPH_WORKFLOW_TRIGGER_EVENT_INVALID` for an
|
|
24
|
+
* unrecognized delivered event and `GRAPH_WORKFLOW_TRIGGER_EVENT_NOT_CONFIGURED`
|
|
25
|
+
* when the delivered event is not enabled on the node.
|
|
26
|
+
*/
|
|
27
|
+
execute(request: GraphNodeExecutionRequest<WorkflowTriggerInput>): GraphExecutionValues;
|
|
28
|
+
/** Lifecycle events that start the workflow. */
|
|
29
|
+
events: WorkflowTriggerEvent[];
|
|
30
|
+
/** Delivered lifecycle event (from the host's workflow lifecycle plumbing). */
|
|
31
|
+
event?: unknown;
|
|
32
|
+
/** Already-built lifecycle payload delivered by the host (optional). */
|
|
33
|
+
payload?: unknown;
|
|
34
|
+
/** Delivered lifecycle timestamp (defaults to now). */
|
|
35
|
+
timestamp?: unknown;
|
|
36
|
+
/** Delivered workflow id (optional). */
|
|
37
|
+
workflowId?: unknown;
|
|
38
|
+
/** The lifecycle payload (n8n-compatible fields). */
|
|
39
|
+
payloadOut: unknown;
|
|
40
|
+
/** The normalized lifecycle event. */
|
|
41
|
+
eventOut?: WorkflowTriggerEvent;
|
|
42
|
+
/** The lifecycle event timestamp. */
|
|
43
|
+
timestampOut?: string;
|
|
44
|
+
/** The triggering workflow id, when delivered. */
|
|
45
|
+
workflowIdOut?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
/** Lifecycle events the workflow trigger can listen to. */
|
|
4
|
+
export type WorkflowTriggerEvent = "activate" | "update";
|
|
5
|
+
/** Inputs accepted by the workflow trigger. */
|
|
6
|
+
export type WorkflowTriggerInput = Record<string, unknown>;
|
|
7
|
+
/** Outputs produced by the workflow trigger. */
|
|
8
|
+
export interface WorkflowTriggerOutput {
|
|
9
|
+
payload: unknown;
|
|
10
|
+
event?: WorkflowTriggerEvent;
|
|
11
|
+
timestamp?: string;
|
|
12
|
+
workflowId?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Workflow trigger node: emits a workflow lifecycle event into the run.
|
|
16
|
+
*/
|
|
17
|
+
export declare class WorkflowTriggerNode extends GraphNode<WorkflowTriggerInput, WorkflowTriggerOutput> {
|
|
18
|
+
/**
|
|
19
|
+
* Emits the lifecycle payload for the delivered (or configured) event.
|
|
20
|
+
*
|
|
21
|
+
* @param request - The execution request carrying the delivered event/payload.
|
|
22
|
+
* @returns The lifecycle payload plus the normalized event, timestamp, and workflow id.
|
|
23
|
+
* @throws {GraphExecutionError} `GRAPH_WORKFLOW_TRIGGER_EVENT_INVALID` for an
|
|
24
|
+
* unrecognized delivered event and `GRAPH_WORKFLOW_TRIGGER_EVENT_NOT_CONFIGURED`
|
|
25
|
+
* when the delivered event is not enabled on the node.
|
|
26
|
+
*/
|
|
27
|
+
execute(request: GraphNodeExecutionRequest<WorkflowTriggerInput>): GraphExecutionValues;
|
|
28
|
+
/** Lifecycle events that start the workflow. */
|
|
29
|
+
events: WorkflowTriggerEvent[];
|
|
30
|
+
/** Delivered lifecycle event (from the host's workflow lifecycle plumbing). */
|
|
31
|
+
event?: unknown;
|
|
32
|
+
/** Already-built lifecycle payload delivered by the host (optional). */
|
|
33
|
+
payload?: unknown;
|
|
34
|
+
/** Delivered lifecycle timestamp (defaults to now). */
|
|
35
|
+
timestamp?: unknown;
|
|
36
|
+
/** Delivered workflow id (optional). */
|
|
37
|
+
workflowId?: unknown;
|
|
38
|
+
/** The lifecycle payload (n8n-compatible fields). */
|
|
39
|
+
payloadOut: unknown;
|
|
40
|
+
/** The normalized lifecycle event. */
|
|
41
|
+
eventOut?: WorkflowTriggerEvent;
|
|
42
|
+
/** The lifecycle event timestamp. */
|
|
43
|
+
timestampOut?: string;
|
|
44
|
+
/** The triggering workflow id, when delivered. */
|
|
45
|
+
workflowIdOut?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/workflows/builders
|
|
3
|
+
* @summary Tiny canonical-document builders shared by the persisted demo
|
|
4
|
+
* workflow fixtures (SAA-2049 / SAA-2015 W4b).
|
|
5
|
+
* @description Keeps the fixture modules declarative: each workflow only names
|
|
6
|
+
* its nodes and edges, while these helpers own the canonical
|
|
7
|
+
* `GraphWorkflowDocument` shape.
|
|
8
|
+
*/
|
|
9
|
+
import type { GraphEdgeInstance, GraphNodeInstance, GraphWorkflowDocument, GraphWorkflowPortInstance } from "../shared/graph/index.d.cts";
|
|
10
|
+
/** Builds a minimal workflow boundary port instance. */
|
|
11
|
+
export declare function port(id: string, extra?: Partial<GraphWorkflowPortInstance>): GraphWorkflowPortInstance;
|
|
12
|
+
/** Builds a canonical node instance with required `parameters`. */
|
|
13
|
+
export declare function node(id: string, kind: string, parameters?: Record<string, unknown>, extra?: Partial<GraphNodeInstance>): GraphNodeInstance;
|
|
14
|
+
export type GraphEndpointInput = ["node", string, string] | ["workflow", string];
|
|
15
|
+
/**
|
|
16
|
+
* Builds a canonical edge instance from `[scope, ...]` endpoint triples
|
|
17
|
+
* ({@link GraphEndpointInput}): a node port (`["node", nodeId, port]`) or a
|
|
18
|
+
* workflow boundary port (`["workflow", port]`).
|
|
19
|
+
*/
|
|
20
|
+
export declare function edge(id: string, source: GraphEndpointInput, target: GraphEndpointInput, type?: "data" | "connection"): GraphEdgeInstance;
|
|
21
|
+
/** Builds a canonical workflow document. */
|
|
22
|
+
export declare function document(input: {
|
|
23
|
+
id: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
inputs?: GraphWorkflowPortInstance[];
|
|
26
|
+
outputs?: GraphWorkflowPortInstance[];
|
|
27
|
+
nodes: GraphNodeInstance[];
|
|
28
|
+
edges?: GraphEdgeInstance[];
|
|
29
|
+
metadata?: Record<string, unknown>;
|
|
30
|
+
ui?: Record<string, unknown>;
|
|
31
|
+
}): GraphWorkflowDocument;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/workflows/builders
|
|
3
|
+
* @summary Tiny canonical-document builders shared by the persisted demo
|
|
4
|
+
* workflow fixtures (SAA-2049 / SAA-2015 W4b).
|
|
5
|
+
* @description Keeps the fixture modules declarative: each workflow only names
|
|
6
|
+
* its nodes and edges, while these helpers own the canonical
|
|
7
|
+
* `GraphWorkflowDocument` shape.
|
|
8
|
+
*/
|
|
9
|
+
import type { GraphEdgeInstance, GraphNodeInstance, GraphWorkflowDocument, GraphWorkflowPortInstance } from "../shared/graph/index.d.mts";
|
|
10
|
+
/** Builds a minimal workflow boundary port instance. */
|
|
11
|
+
export declare function port(id: string, extra?: Partial<GraphWorkflowPortInstance>): GraphWorkflowPortInstance;
|
|
12
|
+
/** Builds a canonical node instance with required `parameters`. */
|
|
13
|
+
export declare function node(id: string, kind: string, parameters?: Record<string, unknown>, extra?: Partial<GraphNodeInstance>): GraphNodeInstance;
|
|
14
|
+
export type GraphEndpointInput = ["node", string, string] | ["workflow", string];
|
|
15
|
+
/**
|
|
16
|
+
* Builds a canonical edge instance from `[scope, ...]` endpoint triples
|
|
17
|
+
* ({@link GraphEndpointInput}): a node port (`["node", nodeId, port]`) or a
|
|
18
|
+
* workflow boundary port (`["workflow", port]`).
|
|
19
|
+
*/
|
|
20
|
+
export declare function edge(id: string, source: GraphEndpointInput, target: GraphEndpointInput, type?: "data" | "connection"): GraphEdgeInstance;
|
|
21
|
+
/** Builds a canonical workflow document. */
|
|
22
|
+
export declare function document(input: {
|
|
23
|
+
id: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
inputs?: GraphWorkflowPortInstance[];
|
|
26
|
+
outputs?: GraphWorkflowPortInstance[];
|
|
27
|
+
nodes: GraphNodeInstance[];
|
|
28
|
+
edges?: GraphEdgeInstance[];
|
|
29
|
+
metadata?: Record<string, unknown>;
|
|
30
|
+
ui?: Record<string, unknown>;
|
|
31
|
+
}): GraphWorkflowDocument;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { GraphConfigCombo, GraphWorkflowFixture } from "./types.d.cts";
|
|
2
|
+
export * from "./types.d.cts";
|
|
3
|
+
export * from "./manual-log.workflow.d.cts";
|
|
4
|
+
export * from "./event-map.workflow.d.cts";
|
|
5
|
+
export * from "./chat-agent.workflow.d.cts";
|
|
6
|
+
export * from "./webhook-form.workflow.d.cts";
|
|
7
|
+
export * from "./schedule-code.workflow.d.cts";
|
|
8
|
+
export * from "./if-switch.workflow.d.cts";
|
|
9
|
+
export * from "./foreach-break.workflow.d.cts";
|
|
10
|
+
export * from "./human-approval.workflow.d.cts";
|
|
11
|
+
export * from "./error-boundary.workflow.d.cts";
|
|
12
|
+
export * from "./loops-while-until.workflow.d.cts";
|
|
13
|
+
export * from "./value-templates.workflow.d.cts";
|
|
14
|
+
export * from "./boundary-value.workflow.d.cts";
|
|
15
|
+
/**
|
|
16
|
+
* Every one of the 22 built-in node kinds the fixture registry must cover.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ALL_BUILT_IN_NODE_KINDS: readonly ["core.agent", "value", "result", "core.flow.break", "core.flow.errorBoundary", "core.flow.humanApproval", "core.flow.if", "core.loop.foreach", "core.loop.until", "core.loop.while", "core.flow.switch", "core.trigger.chat", "core.trigger.event", "core.trigger.form", "core.trigger.manual", "core.trigger.schedule", "core.trigger.webhook", "core.utility.code", "core.flow.delay", "core.flow.log", "core.utility.map", "core.utility.log"];
|
|
19
|
+
/**
|
|
20
|
+
* Every config-combination the fixture registry must cover.
|
|
21
|
+
*/
|
|
22
|
+
export declare const ALL_CONFIG_COMBOS: GraphConfigCombo[];
|
|
23
|
+
/**
|
|
24
|
+
* The demo workflow fixtures, keyed by id.
|
|
25
|
+
*/
|
|
26
|
+
export declare const graphWorkflowFixtures: GraphWorkflowFixture[];
|
|
27
|
+
/** The demo workflow fixtures keyed by id. */
|
|
28
|
+
export declare const graphWorkflowFixturesById: Record<string, GraphWorkflowFixture>;
|
|
29
|
+
/** Fixtures the real engine can execute end to end. */
|
|
30
|
+
export declare const executableWorkflowFixtures: GraphWorkflowFixture[];
|
|
31
|
+
/** Fixtures that are persisted/validated but blocked by a production gap. */
|
|
32
|
+
export declare const nonExecutableWorkflowFixtures: GraphWorkflowFixture[];
|
|
33
|
+
/** Node→workflow→combo matrix derived from the registry. */
|
|
34
|
+
export declare function buildFixtureMatrix(): Record<string, {
|
|
35
|
+
workflows: string[];
|
|
36
|
+
combos: GraphConfigCombo[];
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { GraphConfigCombo, GraphWorkflowFixture } from "./types.d.mts";
|
|
2
|
+
export * from "./types.d.mts";
|
|
3
|
+
export * from "./manual-log.workflow.d.mts";
|
|
4
|
+
export * from "./event-map.workflow.d.mts";
|
|
5
|
+
export * from "./chat-agent.workflow.d.mts";
|
|
6
|
+
export * from "./webhook-form.workflow.d.mts";
|
|
7
|
+
export * from "./schedule-code.workflow.d.mts";
|
|
8
|
+
export * from "./if-switch.workflow.d.mts";
|
|
9
|
+
export * from "./foreach-break.workflow.d.mts";
|
|
10
|
+
export * from "./human-approval.workflow.d.mts";
|
|
11
|
+
export * from "./error-boundary.workflow.d.mts";
|
|
12
|
+
export * from "./loops-while-until.workflow.d.mts";
|
|
13
|
+
export * from "./value-templates.workflow.d.mts";
|
|
14
|
+
export * from "./boundary-value.workflow.d.mts";
|
|
15
|
+
/**
|
|
16
|
+
* Every one of the 22 built-in node kinds the fixture registry must cover.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ALL_BUILT_IN_NODE_KINDS: readonly ["core.agent", "value", "result", "core.flow.break", "core.flow.errorBoundary", "core.flow.humanApproval", "core.flow.if", "core.loop.foreach", "core.loop.until", "core.loop.while", "core.flow.switch", "core.trigger.chat", "core.trigger.event", "core.trigger.form", "core.trigger.manual", "core.trigger.schedule", "core.trigger.webhook", "core.utility.code", "core.flow.delay", "core.flow.log", "core.utility.map", "core.utility.log"];
|
|
19
|
+
/**
|
|
20
|
+
* Every config-combination the fixture registry must cover.
|
|
21
|
+
*/
|
|
22
|
+
export declare const ALL_CONFIG_COMBOS: GraphConfigCombo[];
|
|
23
|
+
/**
|
|
24
|
+
* The demo workflow fixtures, keyed by id.
|
|
25
|
+
*/
|
|
26
|
+
export declare const graphWorkflowFixtures: GraphWorkflowFixture[];
|
|
27
|
+
/** The demo workflow fixtures keyed by id. */
|
|
28
|
+
export declare const graphWorkflowFixturesById: Record<string, GraphWorkflowFixture>;
|
|
29
|
+
/** Fixtures the real engine can execute end to end. */
|
|
30
|
+
export declare const executableWorkflowFixtures: GraphWorkflowFixture[];
|
|
31
|
+
/** Fixtures that are persisted/validated but blocked by a production gap. */
|
|
32
|
+
export declare const nonExecutableWorkflowFixtures: GraphWorkflowFixture[];
|
|
33
|
+
/** Node→workflow→combo matrix derived from the registry. */
|
|
34
|
+
export declare function buildFixtureMatrix(): Record<string, {
|
|
35
|
+
workflows: string[];
|
|
36
|
+
combos: GraphConfigCombo[];
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/workflows/types
|
|
3
|
+
* @summary Types for the persisted demo workflow fixture registry (SAA-2049).
|
|
4
|
+
*/
|
|
5
|
+
import type { GraphWorkflowDocument } from "../shared/graph/index.d.cts";
|
|
6
|
+
import type { GraphExecutionValues } from "../engine/types.d.cts";
|
|
7
|
+
/**
|
|
8
|
+
* The six node-configuration combinations the fixture set must cover
|
|
9
|
+
* (SAA-2049 §2).
|
|
10
|
+
*/
|
|
11
|
+
export type GraphConfigCombo = "straight-value" | "code-expression" | "text-template" | "exposed-ports" | "user-controlled-properties" | "defaults";
|
|
12
|
+
/**
|
|
13
|
+
* A persisted demo workflow fixture and its execution expectations.
|
|
14
|
+
*/
|
|
15
|
+
export interface GraphWorkflowFixture {
|
|
16
|
+
/** Stable fixture/workflow id. */
|
|
17
|
+
id: string;
|
|
18
|
+
/** The canonical persisted document. */
|
|
19
|
+
document: GraphWorkflowDocument;
|
|
20
|
+
/** Built-in node kinds the workflow exercises. */
|
|
21
|
+
kinds: string[];
|
|
22
|
+
/** Config combos the workflow exercises. */
|
|
23
|
+
combos: GraphConfigCombo[];
|
|
24
|
+
/** Whether the real engine can execute the fixture end to end. */
|
|
25
|
+
executable: boolean;
|
|
26
|
+
/** Why a non-executable fixture cannot run (production gap). */
|
|
27
|
+
skipReason?: string;
|
|
28
|
+
/** Inputs passed to `GraphExecutionEngine.execute`. */
|
|
29
|
+
inputs?: GraphExecutionValues;
|
|
30
|
+
/** Partial expected workflow outputs. */
|
|
31
|
+
expectedOutputs?: Record<string, unknown>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/workflows/types
|
|
3
|
+
* @summary Types for the persisted demo workflow fixture registry (SAA-2049).
|
|
4
|
+
*/
|
|
5
|
+
import type { GraphWorkflowDocument } from "../shared/graph/index.d.mts";
|
|
6
|
+
import type { GraphExecutionValues } from "../engine/types.d.mts";
|
|
7
|
+
/**
|
|
8
|
+
* The six node-configuration combinations the fixture set must cover
|
|
9
|
+
* (SAA-2049 §2).
|
|
10
|
+
*/
|
|
11
|
+
export type GraphConfigCombo = "straight-value" | "code-expression" | "text-template" | "exposed-ports" | "user-controlled-properties" | "defaults";
|
|
12
|
+
/**
|
|
13
|
+
* A persisted demo workflow fixture and its execution expectations.
|
|
14
|
+
*/
|
|
15
|
+
export interface GraphWorkflowFixture {
|
|
16
|
+
/** Stable fixture/workflow id. */
|
|
17
|
+
id: string;
|
|
18
|
+
/** The canonical persisted document. */
|
|
19
|
+
document: GraphWorkflowDocument;
|
|
20
|
+
/** Built-in node kinds the workflow exercises. */
|
|
21
|
+
kinds: string[];
|
|
22
|
+
/** Config combos the workflow exercises. */
|
|
23
|
+
combos: GraphConfigCombo[];
|
|
24
|
+
/** Whether the real engine can execute the fixture end to end. */
|
|
25
|
+
executable: boolean;
|
|
26
|
+
/** Why a non-executable fixture cannot run (production gap). */
|
|
27
|
+
skipReason?: string;
|
|
28
|
+
/** Inputs passed to `GraphExecutionEngine.execute`. */
|
|
29
|
+
inputs?: GraphExecutionValues;
|
|
30
|
+
/** Partial expected workflow outputs. */
|
|
31
|
+
expectedOutputs?: Record<string, unknown>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/workflows/value-templates
|
|
3
|
+
* @summary Demo workflow: user properties stored as `GraphValueTemplate`s.
|
|
4
|
+
* @description Covers `core.utility.log` carrying the `code-expression` and
|
|
5
|
+
* `text-template` user-property combos as `GraphValueTemplate` objects. The
|
|
6
|
+
* execution engine resolves each template through the code-evaluator VM at
|
|
7
|
+
* execution time (DECAF-32 §22.4), so the node receives the resolved value.
|
|
8
|
+
* Combos: text template, code expression (user property), exposed ports and
|
|
9
|
+
* defaults.
|
|
10
|
+
*/
|
|
11
|
+
import type { GraphValueTemplate } from "../shared/graph/index.d.cts";
|
|
12
|
+
import type { GraphWorkflowFixture } from "./types.d.cts";
|
|
13
|
+
export declare const MESSAGE_TEMPLATE: GraphValueTemplate;
|
|
14
|
+
export declare const LEVEL_EXPRESSION_TEMPLATE: GraphValueTemplate;
|
|
15
|
+
export declare const valueTemplatesDocument: import("../shared/index.d.cts").GraphWorkflowDocument;
|
|
16
|
+
export declare const valueTemplatesFixture: GraphWorkflowFixture;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module as-graph/workflows/value-templates
|
|
3
|
+
* @summary Demo workflow: user properties stored as `GraphValueTemplate`s.
|
|
4
|
+
* @description Covers `core.utility.log` carrying the `code-expression` and
|
|
5
|
+
* `text-template` user-property combos as `GraphValueTemplate` objects. The
|
|
6
|
+
* execution engine resolves each template through the code-evaluator VM at
|
|
7
|
+
* execution time (DECAF-32 §22.4), so the node receives the resolved value.
|
|
8
|
+
* Combos: text template, code expression (user property), exposed ports and
|
|
9
|
+
* defaults.
|
|
10
|
+
*/
|
|
11
|
+
import type { GraphValueTemplate } from "../shared/graph/index.d.mts";
|
|
12
|
+
import type { GraphWorkflowFixture } from "./types.d.mts";
|
|
13
|
+
export declare const MESSAGE_TEMPLATE: GraphValueTemplate;
|
|
14
|
+
export declare const LEVEL_EXPRESSION_TEMPLATE: GraphValueTemplate;
|
|
15
|
+
export declare const valueTemplatesDocument: import("../shared/index.d.mts").GraphWorkflowDocument;
|
|
16
|
+
export declare const valueTemplatesFixture: GraphWorkflowFixture;
|