components/flow/FlowRegistry#
FlowRegistry#
Methods#
buildPipeline()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
nodes |
any[] |
edges |
any[] |
Returns#
any
createNodeRegistry()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
Record<string, React.FC<any>>
getAllNodeSets()#
Returns#
FlowNodeSet<string, NodeTypeToAttrs<string>>[]
getCategoryColors()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
Record<string, string>
getCategoryIcons()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
Record<string, SvgIconComponent>
getCategoryMapping()#
getCategoryMapping(nodeSetName): {
categories: Record<string, string[]>;
inverted: Record<string, string>;
};
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
categories#
inverted#
getConfiguration()#
Returns#
FlowConfiguration | null
getDTypeColorMap()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
Record<string, {
bg: string;
handle: string;
text: string;
}>
getInstance()#
Returns#
getNodeDefinition()#
getNodeDefinition(nodeSetName, nodeType):
| FlowNodeDefinition<string, Record<string, any>>
| undefined;
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
nodeType |
string |
Returns#
| FlowNodeDefinition<string, Record<string, any>>
| undefined
getNodeLabels()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
Record<string, (t) => string>
getNodeSet()#
Parameters#
| Parameter | Type |
|---|---|
name |
string |
Returns#
| FlowNodeSet<string, NodeTypeToAttrs<string>>
| undefined
getNodeSignatures()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
Record<string, any>
getVersion()#
Returns#
number
hasNodeSet()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
Returns#
boolean
registerNodes()#
Register additional nodes to an existing node set Useful for plugins that want to extend built-in node sets
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
nodes |
Record<string, FlowNodeDefinition> |
category? |
string |
categoryColor? |
string |
categoryIcon? |
any |
pluginId? |
string |
Returns#
void
registerNodeSet()#
Parameters#
| Parameter | Type |
|---|---|
nodeSet |
FlowNodeSet<string> |
Returns#
void
serializeSchema()#
Serialize every registered node set to a plain JSON object describing each node's editable attributes (name, default, allowed options, dtype). Used to feed the assistants the complete node schema. Label functions are omitted.
Returns#
Record<string, unknown>
setConfiguration()#
Parameters#
| Parameter | Type |
|---|---|
config |
FlowConfiguration |
Returns#
void
subscribe()#
Subscribe to registry changes (node registration, etc.)
Parameters#
| Parameter | Type | Description |
|---|---|---|
listener |
() => void |
Callback to invoke when registry changes |
Returns#
Unsubscribe function
() => void
unregisterNodesByPlugin()#
Unregister all nodes from a specific plugin Called when a plugin is uninstalled or reloaded
Parameters#
| Parameter | Type |
|---|---|
pluginId |
string |
Returns#
void
unsubscribe()#
Unsubscribe from registry changes
Parameters#
| Parameter | Type |
|---|---|
listener |
() => void |
Returns#
void
validateConnection()#
Parameters#
| Parameter | Type |
|---|---|
nodeSetName |
string |
nodes |
any[] |
edges |
any[] |
_connection |
any |
Returns#
boolean