@decaf-ts/ui-decorators 0.20.9 → 0.21.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/dist/ui-decorators.cjs +1 -1
- package/dist/ui-decorators.cjs.map +1 -1
- package/dist/ui-decorators.js +1 -1
- package/dist/ui-decorators.js.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.js +3 -3
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +2 -18
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs +0 -97
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +0 -1
- package/lib/cjs/graph/GraphResolution.cjs +0 -17
- package/lib/cjs/graph/GraphResolution.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +0 -20
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +0 -15
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +0 -16
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +0 -31
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphIconReference.cjs +0 -22
- package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +0 -307
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +0 -23
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +0 -11
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +0 -23
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +0 -50
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +0 -29
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +0 -18
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs +0 -4
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +0 -29
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs +0 -18
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +0 -57
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs +0 -19
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +0 -19
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs +0 -25
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +0 -164
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +0 -63
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +0 -1
- package/lib/cjs/graph/catalog/index.cjs +0 -39
- package/lib/cjs/graph/catalog/index.cjs.map +0 -1
- package/lib/cjs/graph/constants.cjs +0 -320
- package/lib/cjs/graph/constants.cjs.map +0 -1
- package/lib/cjs/graph/decorators.cjs +0 -151
- package/lib/cjs/graph/decorators.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +0 -353
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs +0 -4
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphEndpoint.cjs +0 -27
- package/lib/cjs/graph/document/GraphEndpoint.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphJsonValue.cjs +0 -82
- package/lib/cjs/graph/document/GraphJsonValue.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +0 -4
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphNodeBinding.cjs +0 -27
- package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphNodeInstance.cjs +0 -4
- package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +0 -16
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +0 -309
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +0 -78
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +0 -70
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +0 -4
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +0 -1
- package/lib/cjs/graph/document/index.cjs +0 -30
- package/lib/cjs/graph/document/index.cjs.map +0 -1
- package/lib/cjs/graph/index.cjs +0 -33
- package/lib/cjs/graph/index.cjs.map +0 -1
- package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
- package/lib/cjs/graph/nodes/base.cjs +0 -36
- package/lib/cjs/graph/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
- package/lib/cjs/graph/nodes/category-styles.cjs +0 -38
- package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
- package/lib/cjs/graph/nodes/index.cjs +0 -123
- package/lib/cjs/graph/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
- package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
- package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
- package/lib/cjs/graph/nodes/manifests.cjs +0 -342
- package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
- package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
- package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
- package/lib/cjs/graph/overrides/Metadata.cjs +0 -23
- package/lib/cjs/graph/overrides/Metadata.cjs.map +0 -1
- package/lib/cjs/graph/overrides/Rendering.cjs +0 -4
- package/lib/cjs/graph/overrides/Rendering.cjs.map +0 -1
- package/lib/cjs/graph/overrides/index.cjs +0 -21
- package/lib/cjs/graph/overrides/index.cjs.map +0 -1
- package/lib/cjs/graph/overrides/overrides.cjs +0 -20
- package/lib/cjs/graph/overrides/overrides.cjs.map +0 -1
- package/lib/cjs/graph/reader.cjs +0 -301
- package/lib/cjs/graph/reader.cjs.map +0 -1
- package/lib/cjs/graph/registry.cjs +0 -67
- package/lib/cjs/graph/registry.cjs.map +0 -1
- package/lib/cjs/graph/snapshot.cjs +0 -695
- package/lib/cjs/graph/snapshot.cjs.map +0 -1
- package/lib/cjs/graph/types.cjs +0 -7
- package/lib/cjs/graph/types.cjs.map +0 -1
- package/lib/esm/graph/GraphExecutionStateMapper.js +0 -91
- package/lib/esm/graph/GraphExecutionStateMapper.js.map +0 -1
- package/lib/esm/graph/GraphResolution.js +0 -13
- package/lib/esm/graph/GraphResolution.js.map +0 -1
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js +0 -16
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +0 -1
- package/lib/esm/graph/catalog/GraphCredentialReference.js +0 -9
- package/lib/esm/graph/catalog/GraphCredentialReference.js.map +0 -1
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js +0 -12
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +0 -1
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js +0 -25
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +0 -1
- package/lib/esm/graph/catalog/GraphIconReference.js +0 -18
- package/lib/esm/graph/catalog/GraphIconReference.js.map +0 -1
- package/lib/esm/graph/catalog/GraphManifestCompiler.js +0 -303
- package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeCapability.js +0 -17
- package/lib/esm/graph/catalog/GraphNodeCapability.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +0 -7
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeManifest.js +0 -17
- package/lib/esm/graph/catalog/GraphNodeManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +0 -42
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +0 -23
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +0 -14
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterBase.js +0 -2
- package/lib/esm/graph/catalog/GraphParameterBase.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterDefinition.js +0 -23
- package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterOption.js +0 -13
- package/lib/esm/graph/catalog/GraphParameterOption.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterValidation.js +0 -50
- package/lib/esm/graph/catalog/GraphParameterValidation.js.map +0 -1
- package/lib/esm/graph/catalog/GraphPortManifest.js +0 -13
- package/lib/esm/graph/catalog/GraphPortManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +0 -13
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +0 -1
- package/lib/esm/graph/catalog/GraphValueSchema.js +0 -19
- package/lib/esm/graph/catalog/GraphValueSchema.js.map +0 -1
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +0 -156
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +0 -1
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js +0 -58
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +0 -1
- package/lib/esm/graph/catalog/index.js +0 -22
- package/lib/esm/graph/catalog/index.js.map +0 -1
- package/lib/esm/graph/constants.js +0 -335
- package/lib/esm/graph/constants.js.map +0 -1
- package/lib/esm/graph/decorators.js +0 -141
- package/lib/esm/graph/decorators.js.map +0 -1
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +0 -347
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +0 -1
- package/lib/esm/graph/document/GraphEdgeInstance.js +0 -2
- package/lib/esm/graph/document/GraphEdgeInstance.js.map +0 -1
- package/lib/esm/graph/document/GraphEndpoint.js +0 -21
- package/lib/esm/graph/document/GraphEndpoint.js.map +0 -1
- package/lib/esm/graph/document/GraphJsonValue.js +0 -73
- package/lib/esm/graph/document/GraphJsonValue.js.map +0 -1
- package/lib/esm/graph/document/GraphLoopConfiguration.js +0 -2
- package/lib/esm/graph/document/GraphLoopConfiguration.js.map +0 -1
- package/lib/esm/graph/document/GraphNodeBinding.js +0 -22
- package/lib/esm/graph/document/GraphNodeBinding.js.map +0 -1
- package/lib/esm/graph/document/GraphNodeInstance.js +0 -2
- package/lib/esm/graph/document/GraphNodeInstance.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocument.js +0 -12
- package/lib/esm/graph/document/GraphWorkflowDocument.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +0 -303
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +0 -62
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +0 -63
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowUiState.js +0 -2
- package/lib/esm/graph/document/GraphWorkflowUiState.js.map +0 -1
- package/lib/esm/graph/document/index.js +0 -13
- package/lib/esm/graph/document/index.js.map +0 -1
- package/lib/esm/graph/index.js +0 -16
- package/lib/esm/graph/index.js.map +0 -1
- package/lib/esm/graph/nodes/agents/agent.js +0 -101
- package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
- package/lib/esm/graph/nodes/base.js +0 -31
- package/lib/esm/graph/nodes/base.js.map +0 -1
- package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
- package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
- package/lib/esm/graph/nodes/category-styles.js +0 -34
- package/lib/esm/graph/nodes/category-styles.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/break.js +0 -54
- package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/if.js +0 -62
- package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
- package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
- package/lib/esm/graph/nodes/index.js +0 -105
- package/lib/esm/graph/nodes/index.js.map +0 -1
- package/lib/esm/graph/nodes/loops/foreach.js +0 -77
- package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
- package/lib/esm/graph/nodes/loops/until.js +0 -65
- package/lib/esm/graph/nodes/loops/until.js.map +0 -1
- package/lib/esm/graph/nodes/loops/while.js +0 -65
- package/lib/esm/graph/nodes/loops/while.js.map +0 -1
- package/lib/esm/graph/nodes/manifests.js +0 -338
- package/lib/esm/graph/nodes/manifests.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/chat.js +0 -61
- package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/event.js +0 -49
- package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/form.js +0 -50
- package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/manual.js +0 -51
- package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
- package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
- package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
- package/lib/esm/graph/nodes/utility/code.js +0 -90
- package/lib/esm/graph/nodes/utility/code.js.map +0 -1
- package/lib/esm/graph/nodes/utility/delay.js +0 -52
- package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
- package/lib/esm/graph/nodes/utility/log.js +0 -53
- package/lib/esm/graph/nodes/utility/log.js.map +0 -1
- package/lib/esm/graph/nodes/utility/map.js +0 -52
- package/lib/esm/graph/nodes/utility/map.js.map +0 -1
- package/lib/esm/graph/nodes/utility/merge.js +0 -53
- package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
- package/lib/esm/graph/nodes/utility/return.js +0 -52
- package/lib/esm/graph/nodes/utility/return.js.map +0 -1
- package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
- package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
- package/lib/esm/graph/overrides/Metadata.js +0 -20
- package/lib/esm/graph/overrides/Metadata.js.map +0 -1
- package/lib/esm/graph/overrides/Rendering.js +0 -2
- package/lib/esm/graph/overrides/Rendering.js.map +0 -1
- package/lib/esm/graph/overrides/index.js +0 -4
- package/lib/esm/graph/overrides/index.js.map +0 -1
- package/lib/esm/graph/overrides/overrides.js +0 -17
- package/lib/esm/graph/overrides/overrides.js.map +0 -1
- package/lib/esm/graph/reader.js +0 -288
- package/lib/esm/graph/reader.js.map +0 -1
- package/lib/esm/graph/registry.js +0 -59
- package/lib/esm/graph/registry.js.map +0 -1
- package/lib/esm/graph/snapshot.js +0 -680
- package/lib/esm/graph/snapshot.js.map +0 -1
- package/lib/esm/graph/types.js +0 -2
- package/lib/esm/graph/types.js.map +0 -1
- package/lib/types/graph/GraphExecutionStateMapper.d.cts +0 -66
- package/lib/types/graph/GraphExecutionStateMapper.d.mts +0 -66
- package/lib/types/graph/GraphResolution.d.cts +0 -53
- package/lib/types/graph/GraphResolution.d.mts +0 -53
- package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +0 -9
- package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +0 -9
- package/lib/types/graph/catalog/GraphCredentialReference.d.cts +0 -6
- package/lib/types/graph/catalog/GraphCredentialReference.d.mts +0 -6
- package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +0 -7
- package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +0 -7
- package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +0 -22
- package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +0 -22
- package/lib/types/graph/catalog/GraphIconReference.d.cts +0 -12
- package/lib/types/graph/catalog/GraphIconReference.d.mts +0 -12
- package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +0 -14
- package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +0 -14
- package/lib/types/graph/catalog/GraphNodeCapability.d.cts +0 -4
- package/lib/types/graph/catalog/GraphNodeCapability.d.mts +0 -4
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +0 -33
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +0 -33
- package/lib/types/graph/catalog/GraphNodeManifest.d.cts +0 -26
- package/lib/types/graph/catalog/GraphNodeManifest.d.mts +0 -26
- package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +0 -7
- package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +0 -7
- package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +0 -10
- package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +0 -10
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +0 -46
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +0 -46
- package/lib/types/graph/catalog/GraphParameterBase.d.cts +0 -14
- package/lib/types/graph/catalog/GraphParameterBase.d.mts +0 -14
- package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +0 -66
- package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +0 -66
- package/lib/types/graph/catalog/GraphParameterOption.d.cts +0 -8
- package/lib/types/graph/catalog/GraphParameterOption.d.mts +0 -8
- package/lib/types/graph/catalog/GraphParameterValidation.d.cts +0 -25
- package/lib/types/graph/catalog/GraphParameterValidation.d.mts +0 -25
- package/lib/types/graph/catalog/GraphPortManifest.d.cts +0 -21
- package/lib/types/graph/catalog/GraphPortManifest.d.mts +0 -21
- package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +0 -10
- package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +0 -10
- package/lib/types/graph/catalog/GraphValueSchema.d.cts +0 -44
- package/lib/types/graph/catalog/GraphValueSchema.d.mts +0 -44
- package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +0 -9
- package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +0 -9
- package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +0 -22
- package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +0 -22
- package/lib/types/graph/catalog/index.d.cts +0 -21
- package/lib/types/graph/catalog/index.d.mts +0 -21
- package/lib/types/graph/constants.d.cts +0 -544
- package/lib/types/graph/constants.d.mts +0 -544
- package/lib/types/graph/decorators.d.cts +0 -69
- package/lib/types/graph/decorators.d.mts +0 -69
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +0 -47
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +0 -47
- package/lib/types/graph/document/GraphEdgeInstance.d.cts +0 -12
- package/lib/types/graph/document/GraphEdgeInstance.d.mts +0 -12
- package/lib/types/graph/document/GraphEndpoint.d.cts +0 -13
- package/lib/types/graph/document/GraphEndpoint.d.mts +0 -13
- package/lib/types/graph/document/GraphJsonValue.d.cts +0 -11
- package/lib/types/graph/document/GraphJsonValue.d.mts +0 -11
- package/lib/types/graph/document/GraphLoopConfiguration.d.cts +0 -24
- package/lib/types/graph/document/GraphLoopConfiguration.d.mts +0 -24
- package/lib/types/graph/document/GraphNodeBinding.d.cts +0 -21
- package/lib/types/graph/document/GraphNodeBinding.d.mts +0 -21
- package/lib/types/graph/document/GraphNodeInstance.d.cts +0 -36
- package/lib/types/graph/document/GraphNodeInstance.d.mts +0 -36
- package/lib/types/graph/document/GraphWorkflowDocument.d.cts +0 -33
- package/lib/types/graph/document/GraphWorkflowDocument.d.mts +0 -33
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +0 -72
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +0 -72
- package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +0 -21
- package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +0 -21
- package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +0 -5
- package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +0 -5
- package/lib/types/graph/document/GraphWorkflowUiState.d.cts +0 -37
- package/lib/types/graph/document/GraphWorkflowUiState.d.mts +0 -37
- package/lib/types/graph/document/index.d.cts +0 -12
- package/lib/types/graph/document/index.d.mts +0 -12
- package/lib/types/graph/index.d.cts +0 -15
- package/lib/types/graph/index.d.mts +0 -15
- package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
- package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
- package/lib/types/graph/nodes/base.d.cts +0 -28
- package/lib/types/graph/nodes/base.d.mts +0 -28
- package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
- package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
- package/lib/types/graph/nodes/category-styles.d.cts +0 -8
- package/lib/types/graph/nodes/category-styles.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
- package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
- package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
- package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
- package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
- package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
- package/lib/types/graph/nodes/index.d.cts +0 -79
- package/lib/types/graph/nodes/index.d.mts +0 -79
- package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
- package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
- package/lib/types/graph/nodes/loops/until.d.cts +0 -16
- package/lib/types/graph/nodes/loops/until.d.mts +0 -16
- package/lib/types/graph/nodes/loops/while.d.cts +0 -16
- package/lib/types/graph/nodes/loops/while.d.mts +0 -16
- package/lib/types/graph/nodes/manifests.d.cts +0 -62
- package/lib/types/graph/nodes/manifests.d.mts +0 -62
- package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
- package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
- package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
- package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
- package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
- package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
- package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
- package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
- package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
- package/lib/types/graph/nodes/utility/code.d.cts +0 -31
- package/lib/types/graph/nodes/utility/code.d.mts +0 -31
- package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
- package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
- package/lib/types/graph/nodes/utility/log.d.cts +0 -13
- package/lib/types/graph/nodes/utility/log.d.mts +0 -13
- package/lib/types/graph/nodes/utility/map.d.cts +0 -11
- package/lib/types/graph/nodes/utility/map.d.mts +0 -11
- package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
- package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
- package/lib/types/graph/nodes/utility/return.d.cts +0 -11
- package/lib/types/graph/nodes/utility/return.d.mts +0 -11
- package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
- package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
- package/lib/types/graph/overrides/Metadata.d.cts +0 -43
- package/lib/types/graph/overrides/Metadata.d.mts +0 -43
- package/lib/types/graph/overrides/Rendering.d.cts +0 -5
- package/lib/types/graph/overrides/Rendering.d.mts +0 -5
- package/lib/types/graph/overrides/index.d.cts +0 -3
- package/lib/types/graph/overrides/index.d.mts +0 -3
- package/lib/types/graph/overrides/overrides.d.cts +0 -1
- package/lib/types/graph/overrides/overrides.d.mts +0 -1
- package/lib/types/graph/reader.d.cts +0 -16
- package/lib/types/graph/reader.d.mts +0 -16
- package/lib/types/graph/registry.d.cts +0 -40
- package/lib/types/graph/registry.d.mts +0 -40
- package/lib/types/graph/snapshot.d.cts +0 -176
- package/lib/types/graph/snapshot.d.mts +0 -176
- package/lib/types/graph/types.d.cts +0 -289
- package/lib/types/graph/types.d.mts +0 -289
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/graph/nodes/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,0BAAuB;AACvB,qCAAkC;AAClC,wCAAqC;A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B;AACnD,OAAO,EAAE,mBAAmB,EAAE,kCAA+B;AAE7D;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,eAAe;CACP,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,aAAa;IACb,qBAAqB;IACrB,qBAAqB;IACrB,cAAc;IACd,YAAY;IACZ,WAAW;IACX,cAAc;IACd,aAAa;CACL,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;CACV,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,mBAAmB,CAAU,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @module ui-decorators/graph/nodes/loops/foreach
|
|
12
|
-
* @summary Foreach loop node declaration.
|
|
13
|
-
* @description Shared declaration for the `core.loop.foreach` system node
|
|
14
|
-
* kind (decorator id `graph-foreach-loop-node`), ported from the for-angular
|
|
15
|
-
* demo app so the loop kinds become shared canvas nodes. Its executor is
|
|
16
|
-
* built into the integrations engine (`ForeachGraphNodeExecutor`). The
|
|
17
|
-
* loop-body workflow is demo/app-side content and is not part of the shared
|
|
18
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
19
|
-
*/
|
|
20
|
-
import { Model, model, required } from "@decaf-ts/decorator-validation";
|
|
21
|
-
import { uielement } from "./../../../ui/decorators.js";
|
|
22
|
-
import { connection, input, node, output } from "./../../decorators.js";
|
|
23
|
-
// Ensure category styles are registered (idempotent).
|
|
24
|
-
import "./../category-styles.js";
|
|
25
|
-
let GraphForeachLoopNode = class GraphForeachLoopNode extends Model {
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
required(),
|
|
29
|
-
uielement('textarea', { label: 'Items', placeholder: 'Array to iterate over' }),
|
|
30
|
-
input({ handle: 'items' }),
|
|
31
|
-
__metadata("design:type", Array)
|
|
32
|
-
], GraphForeachLoopNode.prototype, "items", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
required(),
|
|
35
|
-
uielement('input', { label: 'Slice size', placeholder: 'Items per iteration (default 1)' }),
|
|
36
|
-
input({ handle: 'slice' }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], GraphForeachLoopNode.prototype, "slice", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
required(),
|
|
41
|
-
output({ handle: 'item' }),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], GraphForeachLoopNode.prototype, "item", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
required(),
|
|
46
|
-
connection({ handle: 'loop', connectionRules: { allowSelf: true, maxConnections: 1 } }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], GraphForeachLoopNode.prototype, "loop", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
required(),
|
|
51
|
-
output({ handle: 'completed' }),
|
|
52
|
-
__metadata("design:type", Array)
|
|
53
|
-
], GraphForeachLoopNode.prototype, "completed", void 0);
|
|
54
|
-
GraphForeachLoopNode = __decorate([
|
|
55
|
-
node('graph-foreach-loop-node', {
|
|
56
|
-
kind: 'core.loop.foreach',
|
|
57
|
-
category: 'Loop',
|
|
58
|
-
color: '#eab308',
|
|
59
|
-
icon: 'ti-repeat',
|
|
60
|
-
width: 120,
|
|
61
|
-
height: 140,
|
|
62
|
-
labels: ['loop', 'iteration', 'foreach'],
|
|
63
|
-
metadata: {
|
|
64
|
-
title: 'Foreach loop',
|
|
65
|
-
description: 'Iterates over an array input and executes the body once per item (or per slice of items).',
|
|
66
|
-
loop: {
|
|
67
|
-
maxIterations: 100,
|
|
68
|
-
itemPort: 'item',
|
|
69
|
-
resultPort: 'result',
|
|
70
|
-
slice: 1,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
}),
|
|
74
|
-
model()
|
|
75
|
-
], GraphForeachLoopNode);
|
|
76
|
-
export { GraphForeachLoopNode };
|
|
77
|
-
//# sourceMappingURL=foreach.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"foreach.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/loops/foreach.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEnE,sDAAsD;AACtD,iCAA4B;AAsBrB,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,KAAK;CAsB9C,CAAA;AAlBC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IAC/E,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;mDACT;AAKlB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IAC3F,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;mDACZ;AAIf;IAFC,QAAQ,EAAE;IACV,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;;kDACZ;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,EAAE,EAAE,CAAC;;kDACzE;AAIf;IAFC,QAAQ,EAAE;IACV,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;uDACV;AArBX,oBAAoB;IApBhC,IAAI,CAAC,yBAAyB,EAAE;QAC/B,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC;QACxC,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,2FAA2F;YACxG,IAAI,EAAE;gBACJ,aAAa,EAAE,GAAG;gBAClB,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE,QAAQ;gBACpB,KAAK,EAAE,CAAC;aACT;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,oBAAoB,CAsBhC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @module ui-decorators/graph/nodes/loops/until
|
|
12
|
-
* @summary Until loop node declaration.
|
|
13
|
-
* @description Shared declaration for the `core.loop.until` system node kind
|
|
14
|
-
* (decorator id `graph-until-loop-node`), ported from the for-angular demo
|
|
15
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
16
|
-
* into the integrations engine (`UntilGraphNodeExecutor`). The loop-body
|
|
17
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
18
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
19
|
-
*/
|
|
20
|
-
import { Model, model, required } from "@decaf-ts/decorator-validation";
|
|
21
|
-
import { uielement } from "./../../../ui/decorators.js";
|
|
22
|
-
import { input, node, output } from "./../../decorators.js";
|
|
23
|
-
// Ensure category styles are registered (idempotent).
|
|
24
|
-
import "./../category-styles.js";
|
|
25
|
-
let GraphUntilLoopNode = class GraphUntilLoopNode extends Model {
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
required(),
|
|
29
|
-
uielement('input', { label: 'State', placeholder: 'Initial state' }),
|
|
30
|
-
input({ handle: 'state' }),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], GraphUntilLoopNode.prototype, "state", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
required(),
|
|
35
|
-
uielement('input', { label: 'Final state', placeholder: 'Final state after loop' }),
|
|
36
|
-
output({ handle: 'state' }),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], GraphUntilLoopNode.prototype, "stateOut", void 0);
|
|
39
|
-
GraphUntilLoopNode = __decorate([
|
|
40
|
-
node('graph-until-loop-node', {
|
|
41
|
-
kind: 'core.loop.until',
|
|
42
|
-
category: 'Loop',
|
|
43
|
-
color: '#eab308',
|
|
44
|
-
icon: 'ti-player-stop',
|
|
45
|
-
width: 96,
|
|
46
|
-
height: 96,
|
|
47
|
-
labels: ['loop', 'conditional', 'until'],
|
|
48
|
-
metadata: {
|
|
49
|
-
title: 'Until loop',
|
|
50
|
-
description: 'Repeats the body until the condition is true (post-condition, runs at least once).',
|
|
51
|
-
loop: {
|
|
52
|
-
maxIterations: 50,
|
|
53
|
-
statePort: 'state',
|
|
54
|
-
condition: {
|
|
55
|
-
type: 'greaterThanOrEqual',
|
|
56
|
-
left: 'iteration',
|
|
57
|
-
right: 2,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
model()
|
|
63
|
-
], GraphUntilLoopNode);
|
|
64
|
-
export { GraphUntilLoopNode };
|
|
65
|
-
//# sourceMappingURL=until.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"until.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/loops/until.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAyBrB,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,KAAK;CAU5C,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;iDACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACnF,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACT;AATR,kBAAkB;IAvB9B,IAAI,CAAC,uBAAuB,EAAE;QAC7B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;QACxC,QAAQ,EAAE;YACR,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,oFAAoF;YACjG,IAAI,EAAE;gBACJ,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE;oBACT,IAAI,EAAE,oBAA6B;oBACnC,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC;iBACT;aACF;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,kBAAkB,CAU9B"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @module ui-decorators/graph/nodes/loops/while
|
|
12
|
-
* @summary While loop node declaration.
|
|
13
|
-
* @description Shared declaration for the `core.loop.while` system node kind
|
|
14
|
-
* (decorator id `graph-while-loop-node`), ported from the for-angular demo
|
|
15
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
16
|
-
* into the integrations engine (`WhileGraphNodeExecutor`). The loop-body
|
|
17
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
18
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
19
|
-
*/
|
|
20
|
-
import { Model, model, required } from "@decaf-ts/decorator-validation";
|
|
21
|
-
import { uielement } from "./../../../ui/decorators.js";
|
|
22
|
-
import { input, node, output } from "./../../decorators.js";
|
|
23
|
-
// Ensure category styles are registered (idempotent).
|
|
24
|
-
import "./../category-styles.js";
|
|
25
|
-
let GraphWhileLoopNode = class GraphWhileLoopNode extends Model {
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
required(),
|
|
29
|
-
uielement('input', { label: 'State', placeholder: 'Initial state' }),
|
|
30
|
-
input({ handle: 'state' }),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], GraphWhileLoopNode.prototype, "state", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
required(),
|
|
35
|
-
uielement('input', { label: 'Final state', placeholder: 'Final state after loop' }),
|
|
36
|
-
output({ handle: 'state' }),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], GraphWhileLoopNode.prototype, "stateOut", void 0);
|
|
39
|
-
GraphWhileLoopNode = __decorate([
|
|
40
|
-
node('graph-while-loop-node', {
|
|
41
|
-
kind: 'core.loop.while',
|
|
42
|
-
category: 'Loop',
|
|
43
|
-
color: '#eab308',
|
|
44
|
-
icon: 'ti-arrows-loop',
|
|
45
|
-
width: 96,
|
|
46
|
-
height: 96,
|
|
47
|
-
labels: ['loop', 'conditional', 'while'],
|
|
48
|
-
metadata: {
|
|
49
|
-
title: 'While loop',
|
|
50
|
-
description: 'Repeats the body while the condition is true (pre-condition).',
|
|
51
|
-
loop: {
|
|
52
|
-
maxIterations: 50,
|
|
53
|
-
statePort: 'state',
|
|
54
|
-
condition: {
|
|
55
|
-
type: 'lessThan',
|
|
56
|
-
left: 'iteration',
|
|
57
|
-
right: 3,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
model()
|
|
63
|
-
], GraphWhileLoopNode);
|
|
64
|
-
export { GraphWhileLoopNode };
|
|
65
|
-
//# sourceMappingURL=while.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"while.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/loops/while.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAyBrB,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,KAAK;CAU5C,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;iDACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACnF,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACT;AATR,kBAAkB;IAvB9B,IAAI,CAAC,uBAAuB,EAAE;QAC7B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;QACxC,QAAQ,EAAE;YACR,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,+DAA+D;YAC5E,IAAI,EAAE;gBACJ,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE;oBACT,IAAI,EAAE,UAAmB;oBACzB,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC;iBACT;aACF;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,kBAAkB,CAU9B"}
|
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { graphNodeManifest } from "./../catalog/index.js";
|
|
2
|
-
import { AgentNode } from "./agents/agent.js";
|
|
3
|
-
import { BreakFlowNode } from "./flow-control/break.js";
|
|
4
|
-
import { ErrorBoundaryFlowNode } from "./flow-control/error-boundary.js";
|
|
5
|
-
import { HumanApprovalFlowNode } from "./flow-control/human-approval.js";
|
|
6
|
-
import { IfFlowNode } from "./flow-control/if.js";
|
|
7
|
-
import { ParallelFlowNode } from "./flow-control/parallel.js";
|
|
8
|
-
import { SwitchFlowNode } from "./flow-control/switch.js";
|
|
9
|
-
import { CodeFlowNode } from "./utility/code.js";
|
|
10
|
-
import { DelayFlowNode } from "./utility/delay.js";
|
|
11
|
-
import { LogFlowNode } from "./utility/log.js";
|
|
12
|
-
import { MapFlowNode } from "./utility/map.js";
|
|
13
|
-
import { MergeFlowNode } from "./utility/merge.js";
|
|
14
|
-
import { ReturnFlowNode } from "./utility/return.js";
|
|
15
|
-
import { UtilityLogNode } from "./utility/utility-log.js";
|
|
16
|
-
import { ChatTriggerNode } from "./triggers/chat.js";
|
|
17
|
-
import { EventTriggerNode } from "./triggers/event.js";
|
|
18
|
-
import { FormTriggerNode } from "./triggers/form.js";
|
|
19
|
-
import { ManualTriggerNode } from "./triggers/manual.js";
|
|
20
|
-
import { ScheduleTriggerNode } from "./triggers/schedule.js";
|
|
21
|
-
import { WebhookTriggerNode } from "./triggers/webhook.js";
|
|
22
|
-
/**
|
|
23
|
-
* Builds a single {@link GraphPortManifest} from its id, label, direction,
|
|
24
|
-
* and optional extra fields — the terse constructor used by the hand-authored
|
|
25
|
-
* loop manifests below.
|
|
26
|
-
*
|
|
27
|
-
* @param id - Port identifier (matches the decorated property handle).
|
|
28
|
-
* @param label - Human-readable port label.
|
|
29
|
-
* @param direction - Port direction (`input` or `output`).
|
|
30
|
-
* @param extra - Optional manifest fields merged over the defaults.
|
|
31
|
-
* @returns The assembled port manifest.
|
|
32
|
-
*/
|
|
33
|
-
function port(id, label, direction, extra = {}) {
|
|
34
|
-
return { id, label, direction, ...extra };
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Compiles a `@node`-decorated class into its published
|
|
38
|
-
* {@link GraphNodeManifest}, so the served shape matches what the Angular
|
|
39
|
-
* palette consumes.
|
|
40
|
-
*
|
|
41
|
-
* @param node - The decorated node class constructor.
|
|
42
|
-
* @param name - Display name override for the compiled manifest.
|
|
43
|
-
* @returns The compiled node manifest.
|
|
44
|
-
*/
|
|
45
|
-
function compile(node, name) {
|
|
46
|
-
return graphNodeManifest(node, { name });
|
|
47
|
-
}
|
|
48
|
-
/** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
|
|
49
|
-
export const FOREACH_GRAPH_NODE_MANIFEST = {
|
|
50
|
-
kind: "core.loop.foreach",
|
|
51
|
-
capabilities: ["loop"],
|
|
52
|
-
display: {
|
|
53
|
-
name: "Foreach",
|
|
54
|
-
description: "Runs the loop body once per item (or per slice of items) of the input array, collecting the results in order.",
|
|
55
|
-
// Single manifest display source per kind (G3-23): the hand-authored
|
|
56
|
-
// manifest remains the backend executor-port authority, but its display is
|
|
57
|
-
// mirrored from the decorated `GraphForeachLoopNode` class so the two
|
|
58
|
-
// authorities never diverge on category/colour/icon/labels.
|
|
59
|
-
category: "Loop",
|
|
60
|
-
color: "#eab308",
|
|
61
|
-
icon: { type: "catalogue", name: "ti-repeat" },
|
|
62
|
-
width: 120,
|
|
63
|
-
height: 140,
|
|
64
|
-
labels: ["loop", "iteration", "foreach"],
|
|
65
|
-
},
|
|
66
|
-
inputs: [
|
|
67
|
-
port("items", "Items", "input", {
|
|
68
|
-
required: true,
|
|
69
|
-
schema: { type: "array", items: { type: "any" } },
|
|
70
|
-
}),
|
|
71
|
-
port("slice", "Slice size", "input", { schema: { type: "number", integer: true, min: 1 } }),
|
|
72
|
-
port("state", "Initial state", "input", { schema: { type: "any" } }),
|
|
73
|
-
],
|
|
74
|
-
outputs: [
|
|
75
|
-
port("results", "Results", "output", {
|
|
76
|
-
schema: { type: "array", items: { type: "any" } },
|
|
77
|
-
}),
|
|
78
|
-
port("completed", "Completed", "output", {
|
|
79
|
-
schema: { type: "array", items: { type: "any" } },
|
|
80
|
-
}),
|
|
81
|
-
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
82
|
-
port("broken", "Broken", "output", { schema: { type: "boolean" } }),
|
|
83
|
-
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
84
|
-
],
|
|
85
|
-
parameters: [
|
|
86
|
-
{
|
|
87
|
-
type: "number",
|
|
88
|
-
id: "maxIterations",
|
|
89
|
-
label: "Max iterations",
|
|
90
|
-
integer: true,
|
|
91
|
-
min: 1,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
type: "object",
|
|
95
|
-
id: "condition",
|
|
96
|
-
label: "Condition",
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
type: "string",
|
|
100
|
-
id: "itemPort",
|
|
101
|
-
label: "Item port",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: "string",
|
|
105
|
-
id: "resultPort",
|
|
106
|
-
label: "Result port",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
type: "string",
|
|
110
|
-
id: "statePort",
|
|
111
|
-
label: "State port",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: "number",
|
|
115
|
-
id: "slice",
|
|
116
|
-
label: "Slice size",
|
|
117
|
-
integer: true,
|
|
118
|
-
min: 1,
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
};
|
|
122
|
-
/** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
|
|
123
|
-
export const WHILE_GRAPH_NODE_MANIFEST = {
|
|
124
|
-
kind: "core.loop.while",
|
|
125
|
-
capabilities: ["loop"],
|
|
126
|
-
display: {
|
|
127
|
-
name: "While",
|
|
128
|
-
description: "Runs the loop body while the configured condition evaluates to true, threading the state between iterations.",
|
|
129
|
-
category: "Loop",
|
|
130
|
-
color: "#eab308",
|
|
131
|
-
icon: { type: "catalogue", name: "ti-arrows-loop" },
|
|
132
|
-
width: 120,
|
|
133
|
-
height: 140,
|
|
134
|
-
labels: ["loop", "conditional", "while"],
|
|
135
|
-
},
|
|
136
|
-
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
137
|
-
outputs: [
|
|
138
|
-
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
139
|
-
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
140
|
-
],
|
|
141
|
-
parameters: [
|
|
142
|
-
{
|
|
143
|
-
type: "number",
|
|
144
|
-
id: "maxIterations",
|
|
145
|
-
label: "Max iterations",
|
|
146
|
-
integer: true,
|
|
147
|
-
min: 1,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
type: "object",
|
|
151
|
-
id: "condition",
|
|
152
|
-
label: "Condition",
|
|
153
|
-
required: true,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
type: "string",
|
|
157
|
-
id: "statePort",
|
|
158
|
-
label: "State port",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
type: "string",
|
|
162
|
-
id: "inputPort",
|
|
163
|
-
label: "Input port",
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
type: "string",
|
|
167
|
-
id: "outputPort",
|
|
168
|
-
label: "Output port",
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
};
|
|
172
|
-
/** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
|
|
173
|
-
export const UNTIL_GRAPH_NODE_MANIFEST = {
|
|
174
|
-
kind: "core.loop.until",
|
|
175
|
-
capabilities: ["loop"],
|
|
176
|
-
display: {
|
|
177
|
-
name: "Until",
|
|
178
|
-
description: "Runs the loop body at least once, then repeats until the configured condition evaluates to true.",
|
|
179
|
-
category: "Loop",
|
|
180
|
-
color: "#eab308",
|
|
181
|
-
icon: { type: "catalogue", name: "ti-player-stop" },
|
|
182
|
-
width: 120,
|
|
183
|
-
height: 140,
|
|
184
|
-
labels: ["loop", "conditional", "until"],
|
|
185
|
-
},
|
|
186
|
-
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
187
|
-
outputs: [
|
|
188
|
-
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
189
|
-
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
190
|
-
],
|
|
191
|
-
parameters: [
|
|
192
|
-
{
|
|
193
|
-
type: "number",
|
|
194
|
-
id: "maxIterations",
|
|
195
|
-
label: "Max iterations",
|
|
196
|
-
integer: true,
|
|
197
|
-
min: 1,
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
type: "object",
|
|
201
|
-
id: "condition",
|
|
202
|
-
label: "Condition",
|
|
203
|
-
required: true,
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
type: "string",
|
|
207
|
-
id: "statePort",
|
|
208
|
-
label: "State port",
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
type: "string",
|
|
212
|
-
id: "inputPort",
|
|
213
|
-
label: "Input port",
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
type: "string",
|
|
217
|
-
id: "outputPort",
|
|
218
|
-
label: "Output port",
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
};
|
|
222
|
-
const switchCompiled = compile(SwitchFlowNode, "Switch");
|
|
223
|
-
/** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
|
|
224
|
-
export const SWITCH_GRAPH_NODE_MANIFEST = {
|
|
225
|
-
...switchCompiled,
|
|
226
|
-
outputs: [],
|
|
227
|
-
parameters: [
|
|
228
|
-
...switchCompiled.parameters,
|
|
229
|
-
{
|
|
230
|
-
type: "collection",
|
|
231
|
-
id: "cases",
|
|
232
|
-
label: "Cases",
|
|
233
|
-
required: true,
|
|
234
|
-
itemIdPath: "outputPort",
|
|
235
|
-
itemLabelPath: "label",
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
type: "boolean",
|
|
239
|
-
id: "hasDefault",
|
|
240
|
-
label: "Has default",
|
|
241
|
-
defaultValue: false,
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
dynamicPorts: [
|
|
245
|
-
{
|
|
246
|
-
type: "repeatFromParameter",
|
|
247
|
-
parameter: "cases",
|
|
248
|
-
itemIdPath: "outputPort",
|
|
249
|
-
itemLabelPath: "label",
|
|
250
|
-
direction: "output",
|
|
251
|
-
portIdTemplate: "${id}",
|
|
252
|
-
defaultPort: {
|
|
253
|
-
id: "case",
|
|
254
|
-
label: "Case",
|
|
255
|
-
direction: "output",
|
|
256
|
-
schema: { type: "any" },
|
|
257
|
-
},
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
type: "togglePort",
|
|
261
|
-
parameter: "hasDefault",
|
|
262
|
-
equals: true,
|
|
263
|
-
port: {
|
|
264
|
-
id: "default",
|
|
265
|
-
label: "Default",
|
|
266
|
-
direction: "output",
|
|
267
|
-
schema: { type: "any" },
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
],
|
|
271
|
-
};
|
|
272
|
-
/** Manifest for the manual-trigger node (starts a run on demand). */
|
|
273
|
-
export const MANUAL_TRIGGER_GRAPH_NODE_MANIFEST = compile(ManualTriggerNode, "Manual trigger");
|
|
274
|
-
/** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
|
|
275
|
-
export const WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST = compile(WebhookTriggerNode, "Webhook trigger");
|
|
276
|
-
/** Manifest for the schedule-trigger node (starts a run on a schedule). */
|
|
277
|
-
export const SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST = compile(ScheduleTriggerNode, "Schedule trigger");
|
|
278
|
-
/** Manifest for the event-trigger node (starts a run on an observed event). */
|
|
279
|
-
export const EVENT_TRIGGER_GRAPH_NODE_MANIFEST = compile(EventTriggerNode, "Event trigger");
|
|
280
|
-
/** Manifest for the form-trigger node (starts a run from a form submission). */
|
|
281
|
-
export const FORM_TRIGGER_GRAPH_NODE_MANIFEST = compile(FormTriggerNode, "Form trigger");
|
|
282
|
-
/** Manifest for the chat-trigger node (starts a run from a chat message). */
|
|
283
|
-
export const CHAT_TRIGGER_GRAPH_NODE_MANIFEST = compile(ChatTriggerNode, "Chat trigger");
|
|
284
|
-
/** Manifest for the if node (conditional branch on a boolean condition). */
|
|
285
|
-
export const IF_GRAPH_NODE_MANIFEST = compile(IfFlowNode, "If");
|
|
286
|
-
/** Manifest for the parallel node (runs branches concurrently). */
|
|
287
|
-
export const PARALLEL_GRAPH_NODE_MANIFEST = compile(ParallelFlowNode, "Parallel");
|
|
288
|
-
/** Manifest for the merge node (joins parallel branches). */
|
|
289
|
-
export const MERGE_GRAPH_NODE_MANIFEST = compile(MergeFlowNode, "Merge");
|
|
290
|
-
/** Manifest for the map node (transforms each input item). */
|
|
291
|
-
export const MAP_GRAPH_NODE_MANIFEST = compile(MapFlowNode, "Map");
|
|
292
|
-
/** Manifest for the delay node (pauses execution for a duration). */
|
|
293
|
-
export const DELAY_GRAPH_NODE_MANIFEST = compile(DelayFlowNode, "Delay");
|
|
294
|
-
/** Manifest for the error-boundary node (isolates branch failures). */
|
|
295
|
-
export const ERROR_BOUNDARY_GRAPH_NODE_MANIFEST = compile(ErrorBoundaryFlowNode, "Error boundary");
|
|
296
|
-
/** Manifest for the human-approval node (waits for an approval decision). */
|
|
297
|
-
export const HUMAN_APPROVAL_GRAPH_NODE_MANIFEST = compile(HumanApprovalFlowNode, "Human approval");
|
|
298
|
-
/** Manifest for the return node (terminates the workflow with output values). */
|
|
299
|
-
export const RETURN_GRAPH_NODE_MANIFEST = compile(ReturnFlowNode, "Return");
|
|
300
|
-
/** Manifest for the code node (executes user code). */
|
|
301
|
-
export const CODE_GRAPH_NODE_MANIFEST = compile(CodeFlowNode, "Code");
|
|
302
|
-
/** Manifest for the log node (logs its input). */
|
|
303
|
-
export const LOG_GRAPH_NODE_MANIFEST = compile(LogFlowNode, "Log");
|
|
304
|
-
/** Manifest for the utility-log node (log-shaped utility sink). */
|
|
305
|
-
export const UTILITY_LOG_GRAPH_NODE_MANIFEST = compile(UtilityLogNode, "Utility Log");
|
|
306
|
-
/** Manifest for the break node (exits the enclosing loop). */
|
|
307
|
-
export const BREAK_GRAPH_NODE_MANIFEST = compile(BreakFlowNode, "Break");
|
|
308
|
-
/** Manifest for the agent node (delegates work to an agent). */
|
|
309
|
-
export const AGENT_GRAPH_NODE_MANIFEST = compile(AgentNode, "Agent");
|
|
310
|
-
/** All built-in node manifests, in catalogue display order. */
|
|
311
|
-
export const GRAPH_BUILT_IN_NODE_MANIFESTS = [
|
|
312
|
-
MANUAL_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
313
|
-
WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
314
|
-
SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
315
|
-
EVENT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
316
|
-
FORM_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
317
|
-
CHAT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
318
|
-
IF_GRAPH_NODE_MANIFEST,
|
|
319
|
-
SWITCH_GRAPH_NODE_MANIFEST,
|
|
320
|
-
PARALLEL_GRAPH_NODE_MANIFEST,
|
|
321
|
-
MERGE_GRAPH_NODE_MANIFEST,
|
|
322
|
-
MAP_GRAPH_NODE_MANIFEST,
|
|
323
|
-
DELAY_GRAPH_NODE_MANIFEST,
|
|
324
|
-
ERROR_BOUNDARY_GRAPH_NODE_MANIFEST,
|
|
325
|
-
HUMAN_APPROVAL_GRAPH_NODE_MANIFEST,
|
|
326
|
-
RETURN_GRAPH_NODE_MANIFEST,
|
|
327
|
-
CODE_GRAPH_NODE_MANIFEST,
|
|
328
|
-
LOG_GRAPH_NODE_MANIFEST,
|
|
329
|
-
UTILITY_LOG_GRAPH_NODE_MANIFEST,
|
|
330
|
-
BREAK_GRAPH_NODE_MANIFEST,
|
|
331
|
-
AGENT_GRAPH_NODE_MANIFEST,
|
|
332
|
-
FOREACH_GRAPH_NODE_MANIFEST,
|
|
333
|
-
WHILE_GRAPH_NODE_MANIFEST,
|
|
334
|
-
UNTIL_GRAPH_NODE_MANIFEST,
|
|
335
|
-
];
|
|
336
|
-
/** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
|
|
337
|
-
export const GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND = Object.fromEntries(GRAPH_BUILT_IN_NODE_MANIFESTS.map((manifest) => [manifest.kind, manifest]));
|
|
338
|
-
//# sourceMappingURL=manifests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifests.js","sourceRoot":"","sources":["../../../../src/graph/nodes/manifests.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,8BAAmB;AAE/C,OAAO,EAA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CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAEtE,kDAAkD;AAClD,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAEnE,mEAAmE;AACnE,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;AAEtF,8DAA8D;AAC9D,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AAEzE,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAErE,+DAA+D;AAC/D,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,kCAAkC;IAClC,mCAAmC;IACnC,oCAAoC;IACpC,iCAAiC;IACjC,gCAAgC;IAChC,gCAAgC;IAChC,sBAAsB;IACtB,0BAA0B;IAC1B,4BAA4B;IAC5B,yBAAyB;IACzB,uBAAuB;IACvB,yBAAyB;IACzB,kCAAkC;IAClC,kCAAkC;IAClC,0BAA0B;IAC1B,wBAAwB;IACxB,uBAAuB;IACvB,+BAA+B;IAC/B,yBAAyB;IACzB,yBAAyB;IACzB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;CAC1B,CAAC;AAEF,mGAAmG;AACnG,MAAM,CAAC,MAAM,qCAAqC,GAG9C,MAAM,CAAC,WAAW,CACpB,6BAA6B,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAC3E,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @module ui-decorators/graph/nodes/triggers/chat
|
|
12
|
-
* @summary Chat trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
-
* @description Chat trigger — chat message entrypoint; message/sessionId/
|
|
14
|
-
* userId schema.
|
|
15
|
-
*/
|
|
16
|
-
import { Model, model, required } from "@decaf-ts/decorator-validation";
|
|
17
|
-
import { uielement } from "./../../../ui/decorators.js";
|
|
18
|
-
import { node, output } from "./../../decorators.js";
|
|
19
|
-
// Ensure category styles are registered (idempotent).
|
|
20
|
-
import "./../category-styles.js";
|
|
21
|
-
let ChatTriggerNode = class ChatTriggerNode extends Model {
|
|
22
|
-
};
|
|
23
|
-
__decorate([
|
|
24
|
-
required(),
|
|
25
|
-
uielement("input", { label: "Message", placeholder: "Incoming chat message" }),
|
|
26
|
-
output({ handle: "message" }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ChatTriggerNode.prototype, "message", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
required(),
|
|
31
|
-
uielement("input", { label: "Session ID", placeholder: "Chat session identifier" }),
|
|
32
|
-
output({ handle: "sessionId" }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], ChatTriggerNode.prototype, "sessionId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
required(),
|
|
37
|
-
uielement("input", { label: "User ID", placeholder: "Chat user identifier" }),
|
|
38
|
-
output({ handle: "userId" }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], ChatTriggerNode.prototype, "userId", void 0);
|
|
41
|
-
ChatTriggerNode = __decorate([
|
|
42
|
-
node("core.trigger.chat", {
|
|
43
|
-
kind: "core.trigger.chat",
|
|
44
|
-
category: "Trigger",
|
|
45
|
-
color: "#3b82f6",
|
|
46
|
-
icon: "ti-message-circle",
|
|
47
|
-
width: 96,
|
|
48
|
-
height: 96,
|
|
49
|
-
labels: ["trigger", "chat", "entrypoint"],
|
|
50
|
-
metadata: {
|
|
51
|
-
title: "Chat trigger",
|
|
52
|
-
description: "Starts the workflow when a chat message is received. Emits message, sessionId, and userId.",
|
|
53
|
-
trigger: {
|
|
54
|
-
type: "chat",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
}),
|
|
58
|
-
model()
|
|
59
|
-
], ChatTriggerNode);
|
|
60
|
-
export { ChatTriggerNode };
|
|
61
|
-
//# sourceMappingURL=chat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/chat.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEhD,sDAAsD;AACtD,iCAA4B;AAmBrB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,KAAK;CAezC,CAAA;AAXC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IAC9E,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;gDACb;AAKjB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAA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