@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,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/utility/merge
|
|
3
|
-
* @summary Merge utility node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Merge — normalises branch/parallel outputs into a single
|
|
5
|
-
* output.
|
|
6
|
-
*/
|
|
7
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
8
|
-
import "../category-styles";
|
|
9
|
-
export declare class MergeFlowNode extends Model {
|
|
10
|
-
values: unknown[];
|
|
11
|
-
merged: unknown;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/utility/return
|
|
3
|
-
* @summary Return utility node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Return — defines and normalises the final workflow output.
|
|
5
|
-
*/
|
|
6
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
7
|
-
import "../category-styles";
|
|
8
|
-
export declare class ReturnFlowNode extends Model {
|
|
9
|
-
value: unknown;
|
|
10
|
-
result: unknown;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/utility/return
|
|
3
|
-
* @summary Return utility node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Return — defines and normalises the final workflow output.
|
|
5
|
-
*/
|
|
6
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
7
|
-
import "../category-styles";
|
|
8
|
-
export declare class ReturnFlowNode extends Model {
|
|
9
|
-
value: unknown;
|
|
10
|
-
result: unknown;
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/utility/utility-log
|
|
3
|
-
* @summary Utility Log node declaration (DECAF-48 §4.3).
|
|
4
|
-
* @description Utility Log — logs the input value through the run's
|
|
5
|
-
* `ctx.logger` at a configurable level and forwards it unchanged on the
|
|
6
|
-
* `logged` output port.
|
|
7
|
-
*/
|
|
8
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
9
|
-
import type { LogNodeLevel } from "../../types.d.cts";
|
|
10
|
-
import "../category-styles";
|
|
11
|
-
export declare class UtilityLogNode extends Model {
|
|
12
|
-
value: unknown;
|
|
13
|
-
level: LogNodeLevel;
|
|
14
|
-
logged: unknown;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/utility/utility-log
|
|
3
|
-
* @summary Utility Log node declaration (DECAF-48 §4.3).
|
|
4
|
-
* @description Utility Log — logs the input value through the run's
|
|
5
|
-
* `ctx.logger` at a configurable level and forwards it unchanged on the
|
|
6
|
-
* `logged` output port.
|
|
7
|
-
*/
|
|
8
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
9
|
-
import type { LogNodeLevel } from "../../types.d.mts";
|
|
10
|
-
import "../category-styles";
|
|
11
|
-
export declare class UtilityLogNode extends Model {
|
|
12
|
-
value: unknown;
|
|
13
|
-
level: LogNodeLevel;
|
|
14
|
-
logged: unknown;
|
|
15
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/overrides/Metadata
|
|
3
|
-
* @summary Metadata namespace augmentation for graph nodes and workflows.
|
|
4
|
-
* @description Extends the `Metadata` class from `@decaf-ts/decoration` with
|
|
5
|
-
* `Metadata.nodes()` and `Metadata.workflows()` accessors that return all
|
|
6
|
-
* `@node`-decorated and `@graph`-decorated constructors respectively.
|
|
7
|
-
*
|
|
8
|
-
* This follows the existing override pattern used by `core` (`core/src/overrides/`)
|
|
9
|
-
* and `decorator-validation` (`decorator-validation/src/overrides/`):
|
|
10
|
-
* 1. This file declares the new static methods on the `Metadata` namespace via
|
|
11
|
-
* `declare module` (TypeScript declaration merging).
|
|
12
|
-
* 2. The companion `overrides.ts` attaches the implementations to the
|
|
13
|
-
* `Metadata` class at runtime via `(Metadata as any).fn = ...`.
|
|
14
|
-
* 3. The `index.ts` of this folder side-effect-imports `overrides.ts` so the
|
|
15
|
-
* attachments run whenever the graph module is loaded.
|
|
16
|
-
* 4. The package's `sideEffects` array in `package.json` includes the compiled
|
|
17
|
-
* overrides entry points so bundlers preserve the side-effect imports.
|
|
18
|
-
*/
|
|
19
|
-
import "@decaf-ts/decoration";
|
|
20
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
21
|
-
declare module "@decaf-ts/decoration" {
|
|
22
|
-
namespace Metadata {
|
|
23
|
-
/**
|
|
24
|
-
* Returns all `@node`-decorated constructors.
|
|
25
|
-
*
|
|
26
|
-
* The list is populated as a side-effect of the `@node` decorator — every
|
|
27
|
-
* class decorated with `@node(...)` is appended to the node registry at
|
|
28
|
-
* decoration time. Consumers (e.g. the for-angular graph palette, CRUD form
|
|
29
|
-
* builders, executor registries) call this to discover all available node
|
|
30
|
-
* kinds without a hand-maintained array.
|
|
31
|
-
* @returns A fresh array of `@node`-decorated constructors.
|
|
32
|
-
*/
|
|
33
|
-
function nodes(): Constructor[];
|
|
34
|
-
/**
|
|
35
|
-
* Returns all `@graph`-decorated constructors (workflow roots).
|
|
36
|
-
*
|
|
37
|
-
* Analogous to {@link nodes} but for `@graph`-decorated workflow-root
|
|
38
|
-
* classes. Populated as a side-effect of the `@graph` decorator.
|
|
39
|
-
* @returns A fresh array of `@graph`-decorated constructors.
|
|
40
|
-
*/
|
|
41
|
-
function workflows(): Constructor[];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/overrides/Metadata
|
|
3
|
-
* @summary Metadata namespace augmentation for graph nodes and workflows.
|
|
4
|
-
* @description Extends the `Metadata` class from `@decaf-ts/decoration` with
|
|
5
|
-
* `Metadata.nodes()` and `Metadata.workflows()` accessors that return all
|
|
6
|
-
* `@node`-decorated and `@graph`-decorated constructors respectively.
|
|
7
|
-
*
|
|
8
|
-
* This follows the existing override pattern used by `core` (`core/src/overrides/`)
|
|
9
|
-
* and `decorator-validation` (`decorator-validation/src/overrides/`):
|
|
10
|
-
* 1. This file declares the new static methods on the `Metadata` namespace via
|
|
11
|
-
* `declare module` (TypeScript declaration merging).
|
|
12
|
-
* 2. The companion `overrides.ts` attaches the implementations to the
|
|
13
|
-
* `Metadata` class at runtime via `(Metadata as any).fn = ...`.
|
|
14
|
-
* 3. The `index.ts` of this folder side-effect-imports `overrides.ts` so the
|
|
15
|
-
* attachments run whenever the graph module is loaded.
|
|
16
|
-
* 4. The package's `sideEffects` array in `package.json` includes the compiled
|
|
17
|
-
* overrides entry points so bundlers preserve the side-effect imports.
|
|
18
|
-
*/
|
|
19
|
-
import "@decaf-ts/decoration";
|
|
20
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
21
|
-
declare module "@decaf-ts/decoration" {
|
|
22
|
-
namespace Metadata {
|
|
23
|
-
/**
|
|
24
|
-
* Returns all `@node`-decorated constructors.
|
|
25
|
-
*
|
|
26
|
-
* The list is populated as a side-effect of the `@node` decorator — every
|
|
27
|
-
* class decorated with `@node(...)` is appended to the node registry at
|
|
28
|
-
* decoration time. Consumers (e.g. the for-angular graph palette, CRUD form
|
|
29
|
-
* builders, executor registries) call this to discover all available node
|
|
30
|
-
* kinds without a hand-maintained array.
|
|
31
|
-
* @returns A fresh array of `@node`-decorated constructors.
|
|
32
|
-
*/
|
|
33
|
-
function nodes(): Constructor[];
|
|
34
|
-
/**
|
|
35
|
-
* Returns all `@graph`-decorated constructors (workflow roots).
|
|
36
|
-
*
|
|
37
|
-
* Analogous to {@link nodes} but for `@graph`-decorated workflow-root
|
|
38
|
-
* classes. Populated as a side-effect of the `@graph` decorator.
|
|
39
|
-
* @returns A fresh array of `@graph`-decorated constructors.
|
|
40
|
-
*/
|
|
41
|
-
function workflows(): Constructor[];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FieldDefinition } from "../../ui/types.d.cts";
|
|
2
|
-
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
export interface RenderingEngine<T = void, R = FieldDefinition<T>> {
|
|
4
|
-
renderAsNode<M extends Model>(model: M, globalProps: Record<string, unknown>, ...args: any[]): R;
|
|
5
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FieldDefinition } from "../../ui/types.d.mts";
|
|
2
|
-
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
export interface RenderingEngine<T = void, R = FieldDefinition<T>> {
|
|
4
|
-
renderAsNode<M extends Model>(model: M, globalProps: Record<string, unknown>, ...args: any[]): R;
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Rendering";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Rendering";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import type { GraphNodeDefinition, GraphNodeMetadata, GraphPortDefinition, GraphPortMetadata, GraphWorkflowDefinition, GraphWorkflowMetadata } from "./constants.d.cts";
|
|
4
|
-
import "../model/overrides";
|
|
5
|
-
type GraphModelLike<M extends Model = Model> = Constructor<M> | M;
|
|
6
|
-
export declare function graphNodeMetadataOf<M extends Model>(model: GraphModelLike<M>): GraphNodeMetadata | undefined;
|
|
7
|
-
export declare function graphWorkflowMetadataOf<M extends Model>(model: GraphModelLike<M>): GraphWorkflowMetadata | undefined;
|
|
8
|
-
export declare function graphPortMetadataOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortMetadata | undefined;
|
|
9
|
-
export declare function graphPortDefinitionOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortDefinition | undefined;
|
|
10
|
-
export declare function graphPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
11
|
-
export declare function graphLeafPortsOf(ports: GraphPortDefinition[]): GraphPortDefinition[];
|
|
12
|
-
export declare function graphWorkflowInputLeafPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
13
|
-
export declare function graphWorkflowOutputLeafPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
14
|
-
export declare function graphDefinitionOf<M extends Model>(model: GraphModelLike<M>): GraphNodeDefinition;
|
|
15
|
-
export declare function graphWorkflowDefinitionOf<M extends Model>(model: GraphModelLike<M>): GraphWorkflowDefinition;
|
|
16
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import type { GraphNodeDefinition, GraphNodeMetadata, GraphPortDefinition, GraphPortMetadata, GraphWorkflowDefinition, GraphWorkflowMetadata } from "./constants.d.mts";
|
|
4
|
-
import "../model/overrides";
|
|
5
|
-
type GraphModelLike<M extends Model = Model> = Constructor<M> | M;
|
|
6
|
-
export declare function graphNodeMetadataOf<M extends Model>(model: GraphModelLike<M>): GraphNodeMetadata | undefined;
|
|
7
|
-
export declare function graphWorkflowMetadataOf<M extends Model>(model: GraphModelLike<M>): GraphWorkflowMetadata | undefined;
|
|
8
|
-
export declare function graphPortMetadataOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortMetadata | undefined;
|
|
9
|
-
export declare function graphPortDefinitionOf<M extends Model>(model: GraphModelLike<M>, property: keyof M | string): GraphPortDefinition | undefined;
|
|
10
|
-
export declare function graphPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
11
|
-
export declare function graphLeafPortsOf(ports: GraphPortDefinition[]): GraphPortDefinition[];
|
|
12
|
-
export declare function graphWorkflowInputLeafPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
13
|
-
export declare function graphWorkflowOutputLeafPortsOf<M extends Model>(model: GraphModelLike<M>): GraphPortDefinition[];
|
|
14
|
-
export declare function graphDefinitionOf<M extends Model>(model: GraphModelLike<M>): GraphNodeDefinition;
|
|
15
|
-
export declare function graphWorkflowDefinitionOf<M extends Model>(model: GraphModelLike<M>): GraphWorkflowDefinition;
|
|
16
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/registry
|
|
3
|
-
* @summary Node and workflow class registries.
|
|
4
|
-
* @description Module-level registries that track every `@node`-decorated and
|
|
5
|
-
* `@graph`-decorated constructor. The `@node` and `@graph` decorators call
|
|
6
|
-
* {@link registerNode} / {@link registerWorkflow} as a side-effect; consumers
|
|
7
|
-
* discover all decorated classes via {@link graphNodes} / {@link graphWorkflows}
|
|
8
|
-
* or the `Metadata.nodes()` / `Metadata.workflows()` accessors.
|
|
9
|
-
*
|
|
10
|
-
* This follows the same pattern as `Injectables` (`injectable-decorators`)
|
|
11
|
-
* which maintains its own `InjectablesRegistry` rather than using the private
|
|
12
|
-
* `Metadata.innerGet`/`innerSet` helpers.
|
|
13
|
-
*/
|
|
14
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
15
|
-
/**
|
|
16
|
-
* Appends a constructor to the node registry. Called by the `@node` decorator.
|
|
17
|
-
* Idempotent — re-decorating the same class does not duplicate the entry.
|
|
18
|
-
* @param ctor The `@node`-decorated constructor.
|
|
19
|
-
*/
|
|
20
|
-
export declare function registerNode(ctor: Constructor): void;
|
|
21
|
-
/**
|
|
22
|
-
* Appends a constructor to the workflow registry. Called by the `@graph`
|
|
23
|
-
* decorator. Idempotent.
|
|
24
|
-
* @param ctor The `@graph`-decorated constructor.
|
|
25
|
-
*/
|
|
26
|
-
export declare function registerWorkflow(ctor: Constructor): void;
|
|
27
|
-
/**
|
|
28
|
-
* Returns all `@node`-decorated constructors.
|
|
29
|
-
* @returns A fresh array of constructors (mutable; does not expose the internal set).
|
|
30
|
-
*/
|
|
31
|
-
export declare function graphNodes(): Constructor[];
|
|
32
|
-
/**
|
|
33
|
-
* Returns all `@graph`-decorated constructors.
|
|
34
|
-
* @returns A fresh array of constructors.
|
|
35
|
-
*/
|
|
36
|
-
export declare function graphWorkflows(): Constructor[];
|
|
37
|
-
/**
|
|
38
|
-
* Clears both registries. Intended for tests only.
|
|
39
|
-
*/
|
|
40
|
-
export declare function resetGraphRegistries(): void;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/registry
|
|
3
|
-
* @summary Node and workflow class registries.
|
|
4
|
-
* @description Module-level registries that track every `@node`-decorated and
|
|
5
|
-
* `@graph`-decorated constructor. The `@node` and `@graph` decorators call
|
|
6
|
-
* {@link registerNode} / {@link registerWorkflow} as a side-effect; consumers
|
|
7
|
-
* discover all decorated classes via {@link graphNodes} / {@link graphWorkflows}
|
|
8
|
-
* or the `Metadata.nodes()` / `Metadata.workflows()` accessors.
|
|
9
|
-
*
|
|
10
|
-
* This follows the same pattern as `Injectables` (`injectable-decorators`)
|
|
11
|
-
* which maintains its own `InjectablesRegistry` rather than using the private
|
|
12
|
-
* `Metadata.innerGet`/`innerSet` helpers.
|
|
13
|
-
*/
|
|
14
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
15
|
-
/**
|
|
16
|
-
* Appends a constructor to the node registry. Called by the `@node` decorator.
|
|
17
|
-
* Idempotent — re-decorating the same class does not duplicate the entry.
|
|
18
|
-
* @param ctor The `@node`-decorated constructor.
|
|
19
|
-
*/
|
|
20
|
-
export declare function registerNode(ctor: Constructor): void;
|
|
21
|
-
/**
|
|
22
|
-
* Appends a constructor to the workflow registry. Called by the `@graph`
|
|
23
|
-
* decorator. Idempotent.
|
|
24
|
-
* @param ctor The `@graph`-decorated constructor.
|
|
25
|
-
*/
|
|
26
|
-
export declare function registerWorkflow(ctor: Constructor): void;
|
|
27
|
-
/**
|
|
28
|
-
* Returns all `@node`-decorated constructors.
|
|
29
|
-
* @returns A fresh array of constructors (mutable; does not expose the internal set).
|
|
30
|
-
*/
|
|
31
|
-
export declare function graphNodes(): Constructor[];
|
|
32
|
-
/**
|
|
33
|
-
* Returns all `@graph`-decorated constructors.
|
|
34
|
-
* @returns A fresh array of constructors.
|
|
35
|
-
*/
|
|
36
|
-
export declare function graphWorkflows(): Constructor[];
|
|
37
|
-
/**
|
|
38
|
-
* Clears both registries. Intended for tests only.
|
|
39
|
-
*/
|
|
40
|
-
export declare function resetGraphRegistries(): void;
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { GraphPortDefinition, GraphWorkflowDefinition, GraphWorkflowMetadata, GraphWorkflowNodeMetadata, GraphWorkflowRelationMetadata } from "./constants.d.cts";
|
|
4
|
-
import type { GraphWorkflowDocument } from "./document/GraphWorkflowDocument.d.cts";
|
|
5
|
-
import type { GraphJsonValue } from "./document/GraphJsonValue.d.cts";
|
|
6
|
-
type GraphModelLike<M extends Model = Model> = Constructor<M> | M;
|
|
7
|
-
export declare const GRAPH_WORKFLOW_SNAPSHOT_VERSION: 1;
|
|
8
|
-
export type GraphWorkflowSnapshotReference = {
|
|
9
|
-
id?: string;
|
|
10
|
-
kind?: string;
|
|
11
|
-
tag?: string;
|
|
12
|
-
path?: string;
|
|
13
|
-
property?: string;
|
|
14
|
-
};
|
|
15
|
-
export type GraphWorkflowSnapshotPosition = {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
};
|
|
19
|
-
export type GraphWorkflowSnapshotSize = {
|
|
20
|
-
width?: number;
|
|
21
|
-
height?: number;
|
|
22
|
-
};
|
|
23
|
-
export type GraphWorkflowSnapshotPortState = {
|
|
24
|
-
expanded?: boolean;
|
|
25
|
-
value?: unknown;
|
|
26
|
-
mode?: "port" | "value";
|
|
27
|
-
metadata?: Record<string, unknown>;
|
|
28
|
-
};
|
|
29
|
-
export type GraphWorkflowSnapshotValue = {
|
|
30
|
-
path: string;
|
|
31
|
-
value?: unknown;
|
|
32
|
-
label?: string;
|
|
33
|
-
type?: string;
|
|
34
|
-
required?: boolean;
|
|
35
|
-
model?: string;
|
|
36
|
-
metadata?: Record<string, unknown>;
|
|
37
|
-
};
|
|
38
|
-
export type GraphWorkflowSnapshotNode = {
|
|
39
|
-
id: string;
|
|
40
|
-
ref?: GraphWorkflowSnapshotReference;
|
|
41
|
-
label?: string;
|
|
42
|
-
kind?: string;
|
|
43
|
-
position?: GraphWorkflowSnapshotPosition;
|
|
44
|
-
size?: GraphWorkflowSnapshotSize;
|
|
45
|
-
expanded?: boolean;
|
|
46
|
-
ports?: Record<string, GraphWorkflowSnapshotPortState>;
|
|
47
|
-
data?: Record<string, unknown>;
|
|
48
|
-
metadata?: Record<string, unknown>;
|
|
49
|
-
};
|
|
50
|
-
export type GraphWorkflowSnapshotEdge = {
|
|
51
|
-
id: string;
|
|
52
|
-
source: string;
|
|
53
|
-
sourceRef?: string;
|
|
54
|
-
sourcePort?: string;
|
|
55
|
-
target: string;
|
|
56
|
-
targetRef?: string;
|
|
57
|
-
targetPort?: string;
|
|
58
|
-
label?: string;
|
|
59
|
-
metadata?: Record<string, unknown>;
|
|
60
|
-
};
|
|
61
|
-
export type GraphWorkflowSnapshotDefinition = {
|
|
62
|
-
name: string;
|
|
63
|
-
tag: string;
|
|
64
|
-
kind: string;
|
|
65
|
-
category?: string;
|
|
66
|
-
color?: string;
|
|
67
|
-
group?: string;
|
|
68
|
-
height?: number;
|
|
69
|
-
icon?: string;
|
|
70
|
-
labels: string[];
|
|
71
|
-
maxChildren?: number;
|
|
72
|
-
minWidth?: number;
|
|
73
|
-
width?: number;
|
|
74
|
-
metadata?: GraphWorkflowMetadata;
|
|
75
|
-
inputs: GraphPortDefinition[];
|
|
76
|
-
outputs: GraphPortDefinition[];
|
|
77
|
-
nodes: GraphWorkflowNodeMetadata[];
|
|
78
|
-
relations: GraphWorkflowRelationMetadata[];
|
|
79
|
-
};
|
|
80
|
-
export type GraphWorkflowSnapshotState = {
|
|
81
|
-
inputs: GraphWorkflowSnapshotValue[];
|
|
82
|
-
outputs: GraphWorkflowSnapshotValue[];
|
|
83
|
-
nodes: GraphWorkflowSnapshotNode[];
|
|
84
|
-
edges: GraphWorkflowSnapshotEdge[];
|
|
85
|
-
ui: Record<string, unknown>;
|
|
86
|
-
metadata: Record<string, unknown>;
|
|
87
|
-
};
|
|
88
|
-
/** Snapshot schema version literal type ({@link GRAPH_WORKFLOW_SNAPSHOT_VERSION}). */
|
|
89
|
-
export type GraphWorkflowSnapshotVersion = typeof GRAPH_WORKFLOW_SNAPSHOT_VERSION;
|
|
90
|
-
/**
|
|
91
|
-
* Legacy persisted snapshot (`{ version, definition, state }`). Kept only for
|
|
92
|
-
* loading/compatibility of persisted data; the canonical snapshot is
|
|
93
|
-
* {@link GraphWorkflowSnapshot} (`{ document, editor?, metadata? }`).
|
|
94
|
-
* Convert with {@link graphWorkflowSnapshotFromLegacy} /
|
|
95
|
-
* {@link graphWorkflowSnapshotToLegacy}.
|
|
96
|
-
*/
|
|
97
|
-
export type LegacyGraphWorkflowSnapshot = {
|
|
98
|
-
version: GraphWorkflowSnapshotVersion;
|
|
99
|
-
definition: GraphWorkflowSnapshotDefinition;
|
|
100
|
-
state: GraphWorkflowSnapshotState;
|
|
101
|
-
};
|
|
102
|
-
export type GraphWorkflowSnapshotInput = {
|
|
103
|
-
definition?: Partial<GraphWorkflowSnapshotDefinition>;
|
|
104
|
-
inputs?: GraphWorkflowSnapshotValue[] | Record<string, unknown>;
|
|
105
|
-
outputs?: GraphWorkflowSnapshotValue[] | Record<string, unknown>;
|
|
106
|
-
nodes?: GraphWorkflowSnapshotNode[];
|
|
107
|
-
edges?: GraphWorkflowSnapshotEdge[];
|
|
108
|
-
ui?: Record<string, unknown>;
|
|
109
|
-
metadata?: Record<string, unknown>;
|
|
110
|
-
};
|
|
111
|
-
export declare function graphWorkflowSnapshotDefinitionOf<M extends Model>(model: GraphModelLike<M> | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition): GraphWorkflowSnapshotDefinition;
|
|
112
|
-
export declare function graphWorkflowSnapshotOf<M extends Model>(model: GraphModelLike<M> | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition, input?: GraphWorkflowSnapshotInput): LegacyGraphWorkflowSnapshot;
|
|
113
|
-
export declare function graphWorkflowSnapshotRestore<M extends Model>(snapshot: LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshotInput, model?: GraphModelLike<M> | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition): LegacyGraphWorkflowSnapshot;
|
|
114
|
-
export declare function graphWorkflowSnapshotToJSON(snapshot: LegacyGraphWorkflowSnapshot, space?: number): string;
|
|
115
|
-
export declare function graphWorkflowSnapshotFromJSON(input: string | LegacyGraphWorkflowSnapshot, model?: GraphModelLike | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition): LegacyGraphWorkflowSnapshot;
|
|
116
|
-
export declare function graphWorkflowSnapshotInputValuesOf(snapshot: LegacyGraphWorkflowSnapshot): Record<string, unknown>;
|
|
117
|
-
export declare function graphWorkflowSnapshotOutputValuesOf(snapshot: LegacyGraphWorkflowSnapshot): Record<string, unknown>;
|
|
118
|
-
/**
|
|
119
|
-
* Editor-only state that the canonical {@link GraphWorkflowDocument} cannot
|
|
120
|
-
* express (layout beyond node positions, config-store values, per-port modes,
|
|
121
|
-
* workflow boundary values, and duplicate counts). Stored as JSON-safe values
|
|
122
|
-
* only; constructors and `modelClass`/`sourceClass` references are dropped.
|
|
123
|
-
*/
|
|
124
|
-
export type GraphSnapshotEditorState = {
|
|
125
|
-
viewport?: {
|
|
126
|
-
x: number;
|
|
127
|
-
y: number;
|
|
128
|
-
scale: number;
|
|
129
|
-
};
|
|
130
|
-
duplicateCounts?: Record<string, number>;
|
|
131
|
-
boundaryInputValues?: Record<string, GraphJsonValue>;
|
|
132
|
-
boundaryOutputValues?: Record<string, GraphJsonValue>;
|
|
133
|
-
nodePorts?: Record<string, Record<string, GraphJsonValue>>;
|
|
134
|
-
nodeConfigs?: Record<string, GraphJsonValue>;
|
|
135
|
-
diagramMetadata?: Record<string, GraphJsonValue>;
|
|
136
|
-
definitionDisplay?: Record<string, GraphJsonValue>;
|
|
137
|
-
legacy?: GraphJsonValue;
|
|
138
|
-
} & {
|
|
139
|
-
[key: string]: GraphJsonValue | undefined;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Canonical document-first snapshot. `document` is the executable semantic
|
|
143
|
-
* truth; `editor` preserves legacy editor-only state for lossless round trips.
|
|
144
|
-
*/
|
|
145
|
-
export type GraphWorkflowSnapshot = {
|
|
146
|
-
document: GraphWorkflowDocument;
|
|
147
|
-
editor?: GraphSnapshotEditorState;
|
|
148
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
149
|
-
};
|
|
150
|
-
export type GraphWorkflowSnapshotLike = LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshot;
|
|
151
|
-
/**
|
|
152
|
-
* Maps a legacy (pre-P7) canvas snapshot to the canonical
|
|
153
|
-
* {@link GraphWorkflowDocument} (DECAF-50 §4.4.6): legacy `node.data` becomes
|
|
154
|
-
* instance `parameters`, legacy `node.metadata` becomes instance `metadata`,
|
|
155
|
-
* workflow boundary badges (`input-{port}`) fold back onto their workflow
|
|
156
|
-
* ports, and edge labels missing from cloned edge rows are restored from the
|
|
157
|
-
* decorated definition's relation labels (§4.4.7).
|
|
158
|
-
*/
|
|
159
|
-
export declare function graphWorkflowDocumentFromLegacySnapshot(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowDocument;
|
|
160
|
-
/**
|
|
161
|
-
* Converts a legacy persisted snapshot into the canonical wrapper. The canonical
|
|
162
|
-
* `document` carries executable semantics; `editor.legacy` keeps the sanitized
|
|
163
|
-
* (constructor-free) legacy payload so a canonical→legacy round trip is lossless
|
|
164
|
-
* for persisted data.
|
|
165
|
-
*/
|
|
166
|
-
export declare function graphWorkflowSnapshotFromLegacy(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowSnapshot;
|
|
167
|
-
/**
|
|
168
|
-
* Reconstructs a legacy snapshot from a canonical wrapper. Uses the
|
|
169
|
-
* `editor.legacy` payload when present for exact round trips; otherwise it
|
|
170
|
-
* rebuilds a best-effort legacy snapshot from the document + editor state
|
|
171
|
-
* (constructors are never restored).
|
|
172
|
-
*/
|
|
173
|
-
export declare function graphWorkflowSnapshotToLegacy(snapshot: GraphWorkflowSnapshot): LegacyGraphWorkflowSnapshot;
|
|
174
|
-
/** Normalizes any accepted snapshot/document form to a canonical wrapper. */
|
|
175
|
-
export declare function graphWorkflowSnapshotLikeToCanonical(value: GraphWorkflowSnapshotLike | GraphWorkflowDocument): GraphWorkflowSnapshot;
|
|
176
|
-
export {};
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { GraphPortDefinition, GraphWorkflowDefinition, GraphWorkflowMetadata, GraphWorkflowNodeMetadata, GraphWorkflowRelationMetadata } from "./constants.d.mts";
|
|
4
|
-
import type { GraphWorkflowDocument } from "./document/GraphWorkflowDocument.d.mts";
|
|
5
|
-
import type { GraphJsonValue } from "./document/GraphJsonValue.d.mts";
|
|
6
|
-
type GraphModelLike<M extends Model = Model> = Constructor<M> | M;
|
|
7
|
-
export declare const GRAPH_WORKFLOW_SNAPSHOT_VERSION: 1;
|
|
8
|
-
export type GraphWorkflowSnapshotReference = {
|
|
9
|
-
id?: string;
|
|
10
|
-
kind?: string;
|
|
11
|
-
tag?: string;
|
|
12
|
-
path?: string;
|
|
13
|
-
property?: string;
|
|
14
|
-
};
|
|
15
|
-
export type GraphWorkflowSnapshotPosition = {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
};
|
|
19
|
-
export type GraphWorkflowSnapshotSize = {
|
|
20
|
-
width?: number;
|
|
21
|
-
height?: number;
|
|
22
|
-
};
|
|
23
|
-
export type GraphWorkflowSnapshotPortState = {
|
|
24
|
-
expanded?: boolean;
|
|
25
|
-
value?: unknown;
|
|
26
|
-
mode?: "port" | "value";
|
|
27
|
-
metadata?: Record<string, unknown>;
|
|
28
|
-
};
|
|
29
|
-
export type GraphWorkflowSnapshotValue = {
|
|
30
|
-
path: string;
|
|
31
|
-
value?: unknown;
|
|
32
|
-
label?: string;
|
|
33
|
-
type?: string;
|
|
34
|
-
required?: boolean;
|
|
35
|
-
model?: string;
|
|
36
|
-
metadata?: Record<string, unknown>;
|
|
37
|
-
};
|
|
38
|
-
export type GraphWorkflowSnapshotNode = {
|
|
39
|
-
id: string;
|
|
40
|
-
ref?: GraphWorkflowSnapshotReference;
|
|
41
|
-
label?: string;
|
|
42
|
-
kind?: string;
|
|
43
|
-
position?: GraphWorkflowSnapshotPosition;
|
|
44
|
-
size?: GraphWorkflowSnapshotSize;
|
|
45
|
-
expanded?: boolean;
|
|
46
|
-
ports?: Record<string, GraphWorkflowSnapshotPortState>;
|
|
47
|
-
data?: Record<string, unknown>;
|
|
48
|
-
metadata?: Record<string, unknown>;
|
|
49
|
-
};
|
|
50
|
-
export type GraphWorkflowSnapshotEdge = {
|
|
51
|
-
id: string;
|
|
52
|
-
source: string;
|
|
53
|
-
sourceRef?: string;
|
|
54
|
-
sourcePort?: string;
|
|
55
|
-
target: string;
|
|
56
|
-
targetRef?: string;
|
|
57
|
-
targetPort?: string;
|
|
58
|
-
label?: string;
|
|
59
|
-
metadata?: Record<string, unknown>;
|
|
60
|
-
};
|
|
61
|
-
export type GraphWorkflowSnapshotDefinition = {
|
|
62
|
-
name: string;
|
|
63
|
-
tag: string;
|
|
64
|
-
kind: string;
|
|
65
|
-
category?: string;
|
|
66
|
-
color?: string;
|
|
67
|
-
group?: string;
|
|
68
|
-
height?: number;
|
|
69
|
-
icon?: string;
|
|
70
|
-
labels: string[];
|
|
71
|
-
maxChildren?: number;
|
|
72
|
-
minWidth?: number;
|
|
73
|
-
width?: number;
|
|
74
|
-
metadata?: GraphWorkflowMetadata;
|
|
75
|
-
inputs: GraphPortDefinition[];
|
|
76
|
-
outputs: GraphPortDefinition[];
|
|
77
|
-
nodes: GraphWorkflowNodeMetadata[];
|
|
78
|
-
relations: GraphWorkflowRelationMetadata[];
|
|
79
|
-
};
|
|
80
|
-
export type GraphWorkflowSnapshotState = {
|
|
81
|
-
inputs: GraphWorkflowSnapshotValue[];
|
|
82
|
-
outputs: GraphWorkflowSnapshotValue[];
|
|
83
|
-
nodes: GraphWorkflowSnapshotNode[];
|
|
84
|
-
edges: GraphWorkflowSnapshotEdge[];
|
|
85
|
-
ui: Record<string, unknown>;
|
|
86
|
-
metadata: Record<string, unknown>;
|
|
87
|
-
};
|
|
88
|
-
/** Snapshot schema version literal type ({@link GRAPH_WORKFLOW_SNAPSHOT_VERSION}). */
|
|
89
|
-
export type GraphWorkflowSnapshotVersion = typeof GRAPH_WORKFLOW_SNAPSHOT_VERSION;
|
|
90
|
-
/**
|
|
91
|
-
* Legacy persisted snapshot (`{ version, definition, state }`). Kept only for
|
|
92
|
-
* loading/compatibility of persisted data; the canonical snapshot is
|
|
93
|
-
* {@link GraphWorkflowSnapshot} (`{ document, editor?, metadata? }`).
|
|
94
|
-
* Convert with {@link graphWorkflowSnapshotFromLegacy} /
|
|
95
|
-
* {@link graphWorkflowSnapshotToLegacy}.
|
|
96
|
-
*/
|
|
97
|
-
export type LegacyGraphWorkflowSnapshot = {
|
|
98
|
-
version: GraphWorkflowSnapshotVersion;
|
|
99
|
-
definition: GraphWorkflowSnapshotDefinition;
|
|
100
|
-
state: GraphWorkflowSnapshotState;
|
|
101
|
-
};
|
|
102
|
-
export type GraphWorkflowSnapshotInput = {
|
|
103
|
-
definition?: Partial<GraphWorkflowSnapshotDefinition>;
|
|
104
|
-
inputs?: GraphWorkflowSnapshotValue[] | Record<string, unknown>;
|
|
105
|
-
outputs?: GraphWorkflowSnapshotValue[] | Record<string, unknown>;
|
|
106
|
-
nodes?: GraphWorkflowSnapshotNode[];
|
|
107
|
-
edges?: GraphWorkflowSnapshotEdge[];
|
|
108
|
-
ui?: Record<string, unknown>;
|
|
109
|
-
metadata?: Record<string, unknown>;
|
|
110
|
-
};
|
|
111
|
-
export declare function graphWorkflowSnapshotDefinitionOf<M extends Model>(model: GraphModelLike<M> | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition): GraphWorkflowSnapshotDefinition;
|
|
112
|
-
export declare function graphWorkflowSnapshotOf<M extends Model>(model: GraphModelLike<M> | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition, input?: GraphWorkflowSnapshotInput): LegacyGraphWorkflowSnapshot;
|
|
113
|
-
export declare function graphWorkflowSnapshotRestore<M extends Model>(snapshot: LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshotInput, model?: GraphModelLike<M> | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition): LegacyGraphWorkflowSnapshot;
|
|
114
|
-
export declare function graphWorkflowSnapshotToJSON(snapshot: LegacyGraphWorkflowSnapshot, space?: number): string;
|
|
115
|
-
export declare function graphWorkflowSnapshotFromJSON(input: string | LegacyGraphWorkflowSnapshot, model?: GraphModelLike | GraphWorkflowDefinition | GraphWorkflowSnapshotDefinition): LegacyGraphWorkflowSnapshot;
|
|
116
|
-
export declare function graphWorkflowSnapshotInputValuesOf(snapshot: LegacyGraphWorkflowSnapshot): Record<string, unknown>;
|
|
117
|
-
export declare function graphWorkflowSnapshotOutputValuesOf(snapshot: LegacyGraphWorkflowSnapshot): Record<string, unknown>;
|
|
118
|
-
/**
|
|
119
|
-
* Editor-only state that the canonical {@link GraphWorkflowDocument} cannot
|
|
120
|
-
* express (layout beyond node positions, config-store values, per-port modes,
|
|
121
|
-
* workflow boundary values, and duplicate counts). Stored as JSON-safe values
|
|
122
|
-
* only; constructors and `modelClass`/`sourceClass` references are dropped.
|
|
123
|
-
*/
|
|
124
|
-
export type GraphSnapshotEditorState = {
|
|
125
|
-
viewport?: {
|
|
126
|
-
x: number;
|
|
127
|
-
y: number;
|
|
128
|
-
scale: number;
|
|
129
|
-
};
|
|
130
|
-
duplicateCounts?: Record<string, number>;
|
|
131
|
-
boundaryInputValues?: Record<string, GraphJsonValue>;
|
|
132
|
-
boundaryOutputValues?: Record<string, GraphJsonValue>;
|
|
133
|
-
nodePorts?: Record<string, Record<string, GraphJsonValue>>;
|
|
134
|
-
nodeConfigs?: Record<string, GraphJsonValue>;
|
|
135
|
-
diagramMetadata?: Record<string, GraphJsonValue>;
|
|
136
|
-
definitionDisplay?: Record<string, GraphJsonValue>;
|
|
137
|
-
legacy?: GraphJsonValue;
|
|
138
|
-
} & {
|
|
139
|
-
[key: string]: GraphJsonValue | undefined;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Canonical document-first snapshot. `document` is the executable semantic
|
|
143
|
-
* truth; `editor` preserves legacy editor-only state for lossless round trips.
|
|
144
|
-
*/
|
|
145
|
-
export type GraphWorkflowSnapshot = {
|
|
146
|
-
document: GraphWorkflowDocument;
|
|
147
|
-
editor?: GraphSnapshotEditorState;
|
|
148
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
149
|
-
};
|
|
150
|
-
export type GraphWorkflowSnapshotLike = LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshot;
|
|
151
|
-
/**
|
|
152
|
-
* Maps a legacy (pre-P7) canvas snapshot to the canonical
|
|
153
|
-
* {@link GraphWorkflowDocument} (DECAF-50 §4.4.6): legacy `node.data` becomes
|
|
154
|
-
* instance `parameters`, legacy `node.metadata` becomes instance `metadata`,
|
|
155
|
-
* workflow boundary badges (`input-{port}`) fold back onto their workflow
|
|
156
|
-
* ports, and edge labels missing from cloned edge rows are restored from the
|
|
157
|
-
* decorated definition's relation labels (§4.4.7).
|
|
158
|
-
*/
|
|
159
|
-
export declare function graphWorkflowDocumentFromLegacySnapshot(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowDocument;
|
|
160
|
-
/**
|
|
161
|
-
* Converts a legacy persisted snapshot into the canonical wrapper. The canonical
|
|
162
|
-
* `document` carries executable semantics; `editor.legacy` keeps the sanitized
|
|
163
|
-
* (constructor-free) legacy payload so a canonical→legacy round trip is lossless
|
|
164
|
-
* for persisted data.
|
|
165
|
-
*/
|
|
166
|
-
export declare function graphWorkflowSnapshotFromLegacy(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowSnapshot;
|
|
167
|
-
/**
|
|
168
|
-
* Reconstructs a legacy snapshot from a canonical wrapper. Uses the
|
|
169
|
-
* `editor.legacy` payload when present for exact round trips; otherwise it
|
|
170
|
-
* rebuilds a best-effort legacy snapshot from the document + editor state
|
|
171
|
-
* (constructors are never restored).
|
|
172
|
-
*/
|
|
173
|
-
export declare function graphWorkflowSnapshotToLegacy(snapshot: GraphWorkflowSnapshot): LegacyGraphWorkflowSnapshot;
|
|
174
|
-
/** Normalizes any accepted snapshot/document form to a canonical wrapper. */
|
|
175
|
-
export declare function graphWorkflowSnapshotLikeToCanonical(value: GraphWorkflowSnapshotLike | GraphWorkflowDocument): GraphWorkflowSnapshot;
|
|
176
|
-
export {};
|