@particle-academy/fancy-flow 0.2.2

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/nodes/NodeShell.tsx","../src/components/nodes/TriggerNode.tsx","../src/components/nodes/ActionNode.tsx","../src/components/nodes/DecisionNode.tsx","../src/components/nodes/OutputNode.tsx","../src/components/nodes/NoteNode.tsx","../src/components/nodes/SubgraphNode.tsx","../src/components/nodes/index.ts","../src/components/canvas/FlowCanvas.tsx","../src/components/NodePalette/NodePalette.tsx","../src/components/NodeConfigPanel/ConfigFieldRenderer.tsx","../src/components/NodeConfigPanel/NodeConfigPanel.tsx","../src/components/FlowRunControls.tsx","../src/components/FlowRunFeed.tsx","../src/components/FlowEditor/FlowEditor.tsx","../src/index.ts"],"names":["jsx","memo","jsxs","useMemo","Fragment","useEffect","useState"],"mappings":";;;;;;;;;;;;;AAyBA,SAAS,cAAA,CAAe;AAAA,EACtB,IAAA;AAAA,EACA,MAAA;AAAA,EACA,GAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA,GAAa,IAAA;AAAA,EACb,WAAA,GAAc,IAAA;AAAA,EACd;AACF,CAAA,EAAmB;AACjB,EAAA,MAAM,OAAO,IAAA,CAAK,IAAA;AAClB,EAAA,MAAM,MAAA,GAAwB,KAAK,MAAA,IAAU,MAAA;AAC7C,EAAA,MAAM,MAAA,GAAS,IAAA,CAAK,MAAA,IAAU,aAAA,CAAc,UAAU,CAAA;AACtD,EAAA,MAAM,OAAA,GAAU,IAAA,CAAK,OAAA,IAAW,cAAA,CAAe,WAAW,CAAA;AAE1D,EAAA,uBACE,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,CAAC,SAAA,EAAW,CAAA,gBAAA,EAAmB,MAAM,CAAA,CAAA,EAAI,IAAA,CAAK,QAAA,GAAW,mBAAA,GAAsB,EAAE,CAAA,CAAE,MAAA,CA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AA,4BACjCA,GAAAA,CAAC,QAAA,EAAA,EAAO,WAAU,gBAAA,EAAiB,OAAA,EAAS,UAAU,QAAA,EAAA,eAAA,EAAQ,CAAA;AAAA,4BAC9DA,GAAAA,CAAC,QAAA,EAAA,EAAO,WAAU,gBAAA,EAAiB,OAAA,EAAS,UAAU,QAAA,EAAA,eAAA,EAAQ,CAAA;AAAA,YAC7D,YAAA;AAAA,4BACDE,IAAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,kBAAA,EAAoB,QAAA,EAAA;AAAA,cAAA,IAAA,CAAK,KAAA,CAAM,MAAA;AAAA,cAAO,cAAA;AAAA,cAAU,KAAK,KAAA,CAAM,MAAA;AAAA,cAAO;AAAA,aAAA,EAAM;AAAA,WAAA,EAC1F;AAAA;AAAA,OAEJ;AAAA,MACC,QAAA,oBAAYF,GAAAA,CAAC,WAAA,EAAA,EAAY,SAAS,MAAA,CAAO,IAAA,EAAM,WAAU,iBAAA,EAAkB;AAAA,KAAA,EAC9E,CAAA;AAAA,IACC,6BACCA,GAAAA;AAAA,MAAC,eAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAU,kBAAA;AAAA,QACV,IAAA,EAAM,QAAA;AAAA,QACN,UAAU,CAAC,IAAA,KAAmB,IAAA,CAAK,QAAA,CAAS,CAAC,GAAA,KAAoB,GAAA,CAAI,GAAA,CAAI,CAAC,MAAO,CAAA,CAAE,EAAA,KAAO,KAAK,EAAA,GAAK,IAAA,GAAO,CAAE,CAAC;AAAA;AAAA;AAChH,GAAA,EAEJ,CAAA;AAEJ;;;ACzPA,oBAAA,EAAqB","file":"index.js","sourcesContent":["import { type ReactNode, memo } from \"react\";\nimport { Handle, Position, type NodeProps } from \"@xyflow/react\";\nimport type { FlowNode, NodeRunStatus, PortDescriptor } from \"../../types\";\n\nexport type NodeShellProps = {\n /** Required: the xyflow node this is rendering. */\n node: NodeProps<FlowNode>;\n /** Accent color for the title bar / status ring. */\n accent: string;\n /** Tag/label shown to the left of the title (e.g. \"TRIGGER\", \"ACTION\"). */\n tag: string;\n /** Optional icon glyph (single-character string is fine). */\n icon?: ReactNode;\n /** Whether to show input handles on the left. Defaults true. */\n showInputs?: boolean;\n /** Whether to show output handles on the right. Defaults true. */\n showOutputs?: boolean;\n /** Body content under the title bar. */\n children?: ReactNode;\n};\n\n/**\n * Shared chrome for every kit node — title bar, accent border, status ring,\n * port handles. Specific node kinds compose this with their body content.\n */\nfunction NodeShellInner({\n node,\n accent,\n tag,\n icon,\n showInputs = true,\n showOutputs = true,\n children,\n}: NodeShellProps) {\n const data = node.data;\n const status: NodeRunStatus = data.status ?? \"idle\";\n const inputs = data.inputs ?? defaultInputs(showInputs);\n const outputs = data.outputs ?? defaultOutputs(showOutputs);\n\n return (\n <div\n className={[\"ff-node\", `ff-node--status-${status}`, node.selected ? \"ff-node--selected\" : \"\"].filter(Boolean).join(\" \")}\n style={{ borderColor: node.selected ? accent : undefined }}\n >\n <header className=\"ff-node__header\" style={{ background: accent }}>\n <span className=\"ff-node__icon\" aria-hidden>{icon ?? null}</span>\n <span className=\"ff-node__tag\">{tag}</span>\n <span className=\"ff-node__label\">{data.label}</span>\n {status !== \"idle\" && <StatusDot status={status} />}\n </header>\n\n {data.description && <p className=\"ff-node__desc\">{data.description}</p>}\n {children && <div className=\"ff-node__body\">{children}</div>}\n {data.statusText && <p className=\"ff-node__status-text\">{data.statusText}</p>}\n\n {inputs.map((p, i) => (\n <Handle\n key={p.id}\n type=\"target\"\n position={Position.Left}\n id={p.id}\n style={portStyle(i, inputs.length)}\n title={p.label ?? p.id}\n />\n ))}\n {outputs.map((p, i) => (\n <Handle\n key={p.id}\n type=\"source\"\n position={Position.Right}\n id={p.id}\n style={portStyle(i, outputs.length)}\n title={p.label ?? p.id}\n />\n ))}\n </div>\n );\n}\n\nexport const NodeShell = memo(NodeShellInner);\n\nfunction defaultInputs(show: boolean): PortDescriptor[] {\n return show ? [{ id: \"in\" }] : [];\n}\nfunction defaultOutputs(show: boolean): PortDescriptor[] {\n return show ? [{ id: \"out\" }] : [];\n}\n\nfunction portStyle(i: number, total: number): React.CSSProperties {\n if (total <= 1) return {};\n const slot = (100 / (total + 1)) * (i + 1);\n return { top: `${slot}%` };\n}\n\nfunction StatusDot({ status }: { status: NodeRunStatus }) {\n return <span className={`ff-node__dot ff-node__dot--${status}`} aria-label={`status ${status}`} />;\n}\n","import { memo } from \"react\";\nimport type { NodeProps } from \"@xyflow/react\";\nimport type { FlowNode } from \"../../types\";\nimport { NodeShell } from \"./NodeShell\";\n\n/** Entry-point node — outputs only, no inputs. */\nfunction TriggerNodeInner(props: NodeProps<FlowNode>) {\n return <NodeShell node={props} accent=\"#10b981\" tag=\"TRIGGER\" icon=\"⚡\" showInputs={false} />;\n}\nexport const TriggerNode = memo(TriggerNodeInner);\n","import { memo } from \"react\";\nimport type { NodeProps } from \"@xyflow/react\";\nimport type { FlowNode } from \"../../types\";\nimport { NodeShell } from \"./NodeShell\";\n\n/** General-purpose work node — inputs and outputs. */\nfunction ActionNodeInner(props: NodeProps<FlowNode>) {\n return <NodeShell node={props} accent=\"#3b82f6\" tag=\"ACTION\" icon=\"▸\" />;\n}\nexport const ActionNode = memo(ActionNodeInner);\n","import { memo } from \"react\";\nimport type { NodeProps } from \"@xyflow/react\";\nimport type { FlowNode, PortDescriptor } from \"../../types\";\nimport { NodeShell } from \"./NodeShell\";\n\nconst DEFAULT_BRANCHES: PortDescriptor[] = [\n { id: \"true\", label: \"true\" },\n { id: \"false\", label: \"false\" },\n];\n\n/** Branching node — multiple typed outputs, one input. */\nfunction DecisionNodeInner(props: NodeProps<FlowNode>) {\n // If the host hasn't customised outputs, default to a true/false split.\n if (!props.data.outputs) {\n props = { ...props, data: { ...props.data, outputs: DEFAULT_BRANCHES } };\n }\n return <NodeShell node={props} accent=\"#f59e0b\" tag=\"DECISION\" icon=\"◇\" />;\n}\nexport const DecisionNode = memo(DecisionNodeInner);\n","import { memo } from \"react\";\nimport type { NodeProps } from \"@xyflow/react\";\nimport type { FlowNode } from \"../../types\";\nimport { NodeShell } from \"./NodeShell\";\n\n/** Terminal node — receives the workflow's final result; no outputs. */\nfunction OutputNodeInner(props: NodeProps<FlowNode>) {\n return <NodeShell node={props} accent=\"#a855f7\" tag=\"OUTPUT\" icon=\"●\" showOutputs={false} />;\n}\nexport const OutputNode = memo(OutputNodeInner);\n","import { memo } from \"react\";\nimport type { NodeProps } from \"@xyflow/react\";\nimport type { FlowNode, NoteNodeData } from \"../../types\";\n\n/**\n * NoteNode — annotation card with no ports. Useful for documenting graphs.\n * Body is plain text; hosts can wire onChange via the editor's onNodesChange\n * if they want it editable.\n */\nfunction NoteNodeInner({ data, selected }: NodeProps<FlowNode>) {\n const noteData = data as NoteNodeData;\n return (\n <div className={`ff-note ${selected ? \"ff-note--selected\" : \"\"}`}>\n {noteData.label && <div className=\"ff-note__title\">{noteData.label}</div>}\n {noteData.body && <p className=\"ff-note__body\">{noteData.body}</p>}\n </div>\n );\n}\nexport const NoteNode = memo(NoteNodeInner);\n","import { memo } from \"react\";\nimport type { NodeProps } from \"@xyflow/react\";\nimport type { FlowNode, SubgraphNodeData } from \"../../types\";\nimport { NodeShell } from \"./NodeShell\";\n\n/**\n * SubgraphNode — collapses a group of nodes behind a single facade with\n * inputs and outputs that map to the inner graph's boundary ports. The\n * runtime treats it like an action node: when running, it dispatches to\n * the registered \"subgraph\" executor (host decides expand vs inline).\n *\n * v0.1 just renders the facade. Expand/collapse interactions and inner-\n * graph editing are deferred — host apps can implement those by toggling\n * `data.collapsed` and rendering a nested <FlowCanvas> when expanded.\n */\nfunction SubgraphNodeInner(props: NodeProps<FlowNode>) {\n const data = props.data as SubgraphNodeData;\n const childCount = data.childIds?.length ?? 0;\n return (\n <NodeShell node={props} accent=\"#0ea5e9\" tag=\"SUBGRAPH\" icon=\"❐\">\n <div className=\"ff-subgraph__meta\">\n <span>{childCount} node{childCount === 1 ? \"\" : \"s\"}</span>\n <span>{data.collapsed === false ? \"expanded\" : \"collapsed\"}</span>\n </div>\n </NodeShell>\n );\n}\nexport const SubgraphNode = memo(SubgraphNodeInner);\n","import type { NodeTypes } from \"@xyflow/react\";\nimport { TriggerNode } from \"./TriggerNode\";\nimport { ActionNode } from \"./ActionNode\";\nimport { DecisionNode } from \"./DecisionNode\";\nimport { OutputNode } from \"./OutputNode\";\nimport { NoteNode } from \"./NoteNode\";\nimport { SubgraphNode } from \"./SubgraphNode\";\n\nexport { TriggerNode, ActionNode, DecisionNode, OutputNode, NoteNode, SubgraphNode };\nexport { NodeShell, type NodeShellProps } from \"./NodeShell\";\n\n/**\n * Default xyflow `nodeTypes` map covering the kit. Spread into your own:\n *\n * <FlowCanvas nodeTypes={{ ...defaultNodeTypes, custom: MyNode }} ... />\n */\nexport const defaultNodeTypes: NodeTypes = {\n trigger: TriggerNode,\n action: ActionNode,\n decision: DecisionNode,\n output: OutputNode,\n note: NoteNode,\n subgraph: SubgraphNode,\n};\n","import { type CSSProperties, type ReactNode, useMemo } from \"react\";\nimport {\n ReactFlow,\n Background,\n BackgroundVariant,\n Controls,\n MiniMap,\n type DefaultEdgeOptions,\n type Edge,\n type EdgeTypes,\n type FitViewOptions,\n type NodeTypes,\n type ReactFlowProps,\n} from \"@xyflow/react\";\nimport \"@xyflow/react/dist/style.css\";\nimport { defaultNodeTypes } from \"../nodes\";\nimport type { FlowNode } from \"../../types\";\n\nexport type FlowCanvasProps = Omit<ReactFlowProps<FlowNode, Edge>, \"nodes\" | \"edges\" | \"height\"> & {\n nodes: FlowNode[];\n edges: Edge[];\n /** Background variant. Default: \"dots\". */\n background?: BackgroundVariant | \"none\";\n /** Show pan/zoom/fit controls. Default true. */\n showControls?: boolean;\n /** Show minimap. Default false (turn on for big graphs). */\n showMinimap?: boolean;\n /** Pixel height; FlowCanvas expects a sized container. Default 600. */\n height?: number | string;\n /** Optional toolbar / palette etc. rendered above the canvas. */\n toolbar?: ReactNode;\n className?: string;\n style?: CSSProperties;\n};\n\nconst DEFAULT_FIT_VIEW: FitViewOptions = { padding: 0.2 };\nconst DEFAULT_EDGE_OPTIONS: DefaultEdgeOptions = {\n type: \"smoothstep\",\n animated: false,\n};\n\n/**\n * FlowCanvas — themed React Flow surface with the kit's nodes registered\n * by default. Pass your own `nodeTypes` to extend; the kit's defaults are\n * merged behind yours.\n *\n * Hosts wire `onNodesChange` / `onEdgesChange` / `onConnect` themselves\n * (xyflow's standard pattern). The surrounding `useFlowState` hook in\n * `runtime/use-flow-state.ts` is a convenience that wires those for you.\n */\nexport function FlowCanvas({\n nodes,\n edges,\n background = BackgroundVariant.Dots,\n showControls = true,\n showMinimap = false,\n height = 600,\n toolbar,\n nodeTypes,\n edgeTypes,\n className,\n style,\n ...rest\n}: FlowCanvasProps) {\n const mergedNodeTypes = useMemo<NodeTypes>(\n () => ({ ...defaultNodeTypes, ...(nodeTypes ?? {}) }),\n [nodeTypes],\n );\n\n const mergedEdgeTypes = useMemo<EdgeTypes | undefined>(\n () => (edgeTypes ? { ...edgeTypes } : undefined),\n [edgeTypes],\n );\n\n return (\n <div className={[\"ff-canvas\", className ?? \"\"].filter(Boolean).join(\" \")} style={{ height, ...style }}>\n {toolbar && <div className=\"ff-canvas__toolbar\">{toolbar}</div>}\n <div className=\"ff-canvas__surface\">\n <ReactFlow\n nodes={nodes}\n edges={edges}\n nodeTypes={mergedNodeTypes}\n edgeTypes={mergedEdgeTypes}\n fitView\n fitViewOptions={DEFAULT_FIT_VIEW}\n defaultEdgeOptions={DEFAULT_EDGE_OPTIONS}\n proOptions={{ hideAttribution: true }}\n {...rest}\n >\n {background !== \"none\" && (\n <Background variant={background as BackgroundVariant} gap={20} size={1} color=\"rgba(0,0,0,0.18)\" />\n )}\n {showControls && <Controls className=\"ff-controls\" position=\"bottom-right\" />}\n {showMinimap && <MiniMap className=\"ff-minimap\" pannable zoomable />}\n </ReactFlow>\n </div>\n </div>\n );\n}\n","import { type CSSProperties, useEffect, useMemo, useState } from \"react\";\nimport { categoryAccent, listNodeKinds, onNodeKindsChanged } from \"../../registry/registry\";\nimport type { NodeCategory, NodeKindDefinition } from \"../../registry/types\";\n\nexport type NodePaletteProps = {\n /** Filter to only these categories. */\n categories?: NodeCategory[];\n /** Called when the user clicks a kind (in addition to drag). Optional. */\n onPick?: (kind: NodeKindDefinition) => void;\n className?: string;\n style?: CSSProperties;\n};\n\nconst CATEGORY_ORDER: NodeCategory[] = [\"trigger\", \"logic\", \"data\", \"ai\", \"io\", \"human\", \"output\", \"custom\"];\nconst CATEGORY_LABELS: Record<NodeCategory, string> = {\n trigger: \"Triggers\",\n logic: \"Logic\",\n data: \"Data\",\n ai: \"AI\",\n io: \"Connectors\",\n human: \"Human\",\n output: \"Output\",\n custom: \"Custom\",\n};\n\n/**\n * NodePalette — sidebar listing every registered node kind, grouped by\n * category. Drag a kind onto a `<FlowCanvas>` to add a new node — set\n * `onDrop` on the canvas to handle the drop with the kind name from the\n * `application/x-fancy-flow-kind` data type.\n */\nexport function NodePalette({ categories, onPick, className, style }: NodePaletteProps) {\n const [, setRev] = useState(0);\n useEffect(() => onNodeKindsChanged(() => setRev((n) => n + 1)), []);\n\n const [query, setQuery] = useState(\"\");\n const visibleCats = categories ?? CATEGORY_ORDER;\n\n const grouped = useMemo(() => {\n const all = listNodeKinds();\n const q = query.trim().toLowerCase();\n const filtered = q\n ? all.filter((k) => k.name.includes(q) || k.label.toLowerCase().includes(q) || (k.description ?? \"\").toLowerCase().includes(q))\n : all;\n const map = new Map<NodeCategory, NodeKindDefinition[]>();\n for (const cat of visibleCats) map.set(cat, []);\n for (const k of filtered) {\n if (!map.has(k.category)) map.set(k.category, []);\n map.get(k.category)!.push(k);\n }\n return map;\n }, [query, visibleCats]);\n\n return (\n <aside className={[\"ff-palette\", className ?? \"\"].filter(Boolean).join(\" \")} style={style}>\n <div className=\"ff-palette__search\">\n <input\n className=\"ff-palette__search-input\"\n placeholder=\"Search nodes…\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n />\n </div>\n <div className=\"ff-palette__list\">\n {Array.from(grouped.entries()).map(([cat, kinds]) =>\n kinds.length === 0 ? null : (\n <section key={cat} className=\"ff-palette__group\">\n <header className=\"ff-palette__group-label\">{CATEGORY_LABELS[cat] ?? cat}</header>\n {kinds.map((k) => (\n <KindRow key={k.name} kind={k} onPick={onPick} />\n ))}\n </section>\n ),\n )}\n </div>\n </aside>\n );\n}\n\nfunction KindRow({ kind, onPick }: { kind: NodeKindDefinition; onPick?: (k: NodeKindDefinition) => void }) {\n const accent = kind.accent ?? categoryAccent(kind.category);\n const onDragStart = (e: React.DragEvent) => {\n e.dataTransfer.effectAllowed = \"copy\";\n e.dataTransfer.setData(\"application/x-fancy-flow-kind\", kind.name);\n // Setting both lets non-aware drop targets (e.g. text inputs) ignore it cleanly.\n e.dataTransfer.setData(\"text/plain\", kind.name);\n };\n return (\n <button\n type=\"button\"\n className=\"ff-palette__row\"\n draggable\n onDragStart={onDragStart}\n onClick={() => onPick?.(kind)}\n title={kind.description ?? kind.name}\n >\n <span className=\"ff-palette__row-dot\" style={{ background: accent }}>{kind.icon ?? \"\"}</span>\n <span className=\"ff-palette__row-text\">\n <span className=\"ff-palette__row-label\">{kind.label}</span>\n {kind.description && <span className=\"ff-palette__row-desc\">{kind.description}</span>}\n </span>\n </button>\n );\n}\n\n/**\n * useDropFromPalette — wires the canvas drop target. Returns the drop /\n * dragOver handlers; they parse the dragged kind name and call `onDrop`\n * with `(kindName, position)` in viewport coords.\n */\nexport function paletteDropHandlers(onDrop: (kindName: string, evt: React.DragEvent) => void) {\n return {\n onDragOver: (e: React.DragEvent) => {\n if (e.dataTransfer.types.includes(\"application/x-fancy-flow-kind\")) {\n e.preventDefault();\n e.dataTransfer.dropEffect = \"copy\";\n }\n },\n onDrop: (e: React.DragEvent) => {\n const name = e.dataTransfer.getData(\"application/x-fancy-flow-kind\");\n if (!name) return;\n e.preventDefault();\n onDrop(name, e);\n },\n };\n}\n","import { type ReactNode, useMemo } from \"react\";\nimport type { ConfigField } from \"../../registry/types\";\n\nexport type ConfigFieldRendererProps = {\n field: ConfigField;\n value: unknown;\n onChange: (value: unknown) => void;\n renderCredentialField?: (props: {\n credentialType: string;\n value: unknown;\n onChange: (next: unknown) => void;\n }) => ReactNode;\n};\n\n/**\n * ConfigFieldRenderer — dispatches to the right input element per field\n * type. Plain HTML inputs styled via the package's CSS so the package\n * stays standalone (no react-fancy import required).\n *\n * Hosts that want to use react-fancy form components can supply their\n * own field renderers via the kind's `renderPanel`.\n */\nexport function ConfigFieldRenderer({ field, value, onChange, renderCredentialField }: ConfigFieldRendererProps) {\n switch (field.type) {\n case \"text\":\n return (\n <input\n className=\"ff-panel__input\"\n type=\"text\"\n value={(value as string) ?? \"\"}\n placeholder={field.placeholder}\n onChange={(e) => onChange(e.target.value)}\n />\n );\n\n case \"textarea\":\n return (\n <textarea\n className=\"ff-panel__input ff-panel__input--textarea\"\n rows={field.rows ?? 4}\n value={(value as string) ?? \"\"}\n placeholder={field.placeholder}\n onChange={(e) => onChange(e.target.value)}\n />\n );\n\n case \"number\":\n return (\n <input\n className=\"ff-panel__input\"\n type=\"number\"\n value={(value as number) ?? \"\"}\n min={field.min}\n max={field.max}\n step={field.step ?? 1}\n onChange={(e) => onChange(e.target.value === \"\" ? undefined : Number(e.target.value))}\n />\n );\n\n case \"switch\":\n return (\n <label className=\"ff-panel__switch\">\n <input\n type=\"checkbox\"\n checked={!!value}\n onChange={(e) => onChange(e.target.checked)}\n />\n <span className=\"ff-panel__switch-slider\" />\n </label>\n );\n\n case \"select\":\n return (\n <select\n className=\"ff-panel__input\"\n value={(value as string) ?? \"\"}\n onChange={(e) => onChange(e.target.value)}\n >\n <option value=\"\" disabled>—</option>\n {field.options.map((o) => (\n <option key={o.value} value={o.value}>{o.label}</option>\n ))}\n </select>\n );\n\n case \"json\":\n return <JsonField value={value} onChange={onChange} rows={field.rows} />;\n\n case \"expression\":\n return (\n <textarea\n className=\"ff-panel__input ff-panel__input--expression\"\n rows={2}\n value={(value as string) ?? \"\"}\n placeholder={field.example ?? \"{{ $json.field }}\"}\n spellCheck={false}\n onChange={(e) => onChange(e.target.value)}\n />\n );\n\n case \"credential\":\n if (renderCredentialField) {\n return <>{renderCredentialField({ credentialType: field.credentialType, value, onChange })}</>;\n }\n return (\n <input\n className=\"ff-panel__input ff-panel__input--credential\"\n type=\"text\"\n value={(value as string) ?? \"\"}\n placeholder={`Credential reference (${field.credentialType})`}\n onChange={(e) => onChange(e.target.value)}\n />\n );\n\n default:\n return null;\n }\n}\n\nfunction JsonField({ value, onChange, rows }: { value: unknown; onChange: (v: unknown) => void; rows?: number }) {\n // Keep a separate string buffer so partial input doesn't get clobbered\n // by re-serializing on every keystroke.\n const initial = useMemo(() => {\n try {\n return value === undefined ? \"\" : JSON.stringify(value, null, 2);\n } catch {\n return \"\";\n }\n }, [value]);\n return (\n <textarea\n className=\"ff-panel__input ff-panel__input--json\"\n rows={rows ?? 6}\n defaultValue={initial}\n spellCheck={false}\n onBlur={(e) => {\n const text = e.target.value.trim();\n if (text === \"\") {\n onChange(undefined);\n return;\n }\n try {\n onChange(JSON.parse(text));\n } catch {\n // Leave value unchanged; visual stays at last good state on next render\n }\n }}\n />\n );\n}\n","import { type ReactNode, useMemo } from \"react\";\nimport type { FlowNode } from \"../../types\";\nimport { getNodeKind, validateConfig } from \"../../registry/registry\";\nimport { ConfigFieldRenderer } from \"./ConfigFieldRenderer\";\n\nexport type NodeConfigPanelProps = {\n /** Currently-selected node — pass null to render the empty state. */\n node: FlowNode | null;\n /** Called when the user edits the node label, description, or config. */\n onChange: (next: FlowNode) => void;\n /** Optional header content (e.g. close button). */\n header?: ReactNode;\n /** Optional credential picker hook — host renders the picker. */\n renderCredentialField?: (props: {\n credentialType: string;\n value: unknown;\n onChange: (next: unknown) => void;\n }) => ReactNode;\n className?: string;\n style?: React.CSSProperties;\n};\n\n/**\n * NodeConfigPanel — schema-driven form for the selected node. Defers to\n * `kind.renderPanel` if the kind opts out of the auto-form.\n */\nexport function NodeConfigPanel({\n node,\n onChange,\n header,\n renderCredentialField,\n className,\n style,\n}: NodeConfigPanelProps) {\n if (!node) {\n return (\n <aside className={[\"ff-panel\", \"ff-panel--empty\", className ?? \"\"].filter(Boolean).join(\" \")} style={style}>\n {header}\n <p className=\"ff-panel__empty\">Select a node to configure it.</p>\n </aside>\n );\n }\n\n const kindName = (node.data as any).kind ?? node.type;\n const kind = useMemo(() => getNodeKind(kindName), [kindName]);\n const config = useMemo(() => ((node.data as any).config ?? {}) as Record<string, unknown>, [node.data]);\n\n if (!kind) {\n return (\n <aside className={[\"ff-panel\", className ?? \"\"].filter(Boolean).join(\" \")} style={style}>\n {header}\n <p className=\"ff-panel__empty\">Unknown kind: {kindName}</p>\n </aside>\n );\n }\n\n const setLabel = (label: string) =>\n onChange({ ...node, data: { ...node.data, label } });\n\n const setDescription = (description: string) =>\n onChange({ ...node, data: { ...node.data, description } });\n\n const setConfigValue = (key: string, value: unknown) =>\n onChange({ ...node, data: { ...node.data, config: { ...config, [key]: value } } });\n\n const issues = validateConfig(kind, config);\n\n return (\n <aside className={[\"ff-panel\", className ?? \"\"].filter(Boolean).join(\" \")} style={style}>\n {header}\n <header className=\"ff-panel__header\">\n <span className=\"ff-panel__kind-tag\">{kind.label}</span>\n {kind.description && <p className=\"ff-panel__kind-desc\">{kind.description}</p>}\n </header>\n\n <div className=\"ff-panel__field\">\n <label className=\"ff-panel__label\">Label</label>\n <input\n className=\"ff-panel__input\"\n value={node.data.label ?? \"\"}\n onChange={(e) => setLabel(e.target.value)}\n placeholder={kind.label}\n />\n </div>\n\n <div className=\"ff-panel__field\">\n <label className=\"ff-panel__label\">Description</label>\n <textarea\n className=\"ff-panel__input ff-panel__input--textarea\"\n rows={2}\n value={node.data.description ?? \"\"}\n onChange={(e) => setDescription(e.target.value)}\n />\n </div>\n\n {kind.renderPanel ? (\n kind.renderPanel({\n config: config as any,\n onChange: (next) => onChange({ ...node, data: { ...node.data, config: next } }),\n nodeId: node.id,\n })\n ) : (\n <>\n {(kind.configSchema ?? []).length > 0 && <hr className=\"ff-panel__divider\" />}\n {(kind.configSchema ?? []).map((field) => (\n <div key={field.key} className=\"ff-panel__field\">\n <label className=\"ff-panel__label\">\n {field.label}\n {field.required && <span className=\"ff-panel__required\" aria-hidden> *</span>}\n </label>\n {field.description && <p className=\"ff-panel__hint\">{field.description}</p>}\n <ConfigFieldRenderer\n field={field}\n value={config[field.key]}\n onChange={(v) => setConfigValue(field.key, v)}\n renderCredentialField={renderCredentialField}\n />\n </div>\n ))}\n </>\n )}\n\n {issues.length > 0 && (\n <div className=\"ff-panel__issues\">\n {issues.map((iss) => (\n <p key={iss.key} className=\"ff-panel__issue\">⚠ {iss.message}</p>\n ))}\n </div>\n )}\n </aside>\n );\n}\n","import type { CSSProperties } from \"react\";\n\nexport type FlowRunControlsProps = {\n running: boolean;\n onRun: () => void;\n onCancel?: () => void;\n onReset?: () => void;\n className?: string;\n style?: CSSProperties;\n};\n\n/** FlowRunControls — Run / Cancel / Reset buttons. Wire to a `useFlowRun`. */\nexport function FlowRunControls({ running, onRun, onCancel, onReset, className, style }: FlowRunControlsProps) {\n return (\n <div className={[\"ff-run-controls\", className ?? \"\"].filter(Boolean).join(\" \")} style={style}>\n {!running ? (\n <button type=\"button\" className=\"ff-run-controls__btn ff-run-controls__btn--run\" onClick={onRun}>\n ▶ Run\n </button>\n ) : (\n <button type=\"button\" className=\"ff-run-controls__btn ff-run-controls__btn--cancel\" onClick={onCancel}>\n ⏹ Cancel\n </button>\n )}\n {onReset && (\n <button type=\"button\" className=\"ff-run-controls__btn ff-run-controls__btn--reset\" onClick={onReset} disabled={running}>\n Reset\n </button>\n )}\n </div>\n );\n}\n","import { type CSSProperties, useEffect, useRef } from \"react\";\nimport type { FlowRunFeedEntry } from \"../runtime/use-flow-run\";\n\nexport type FlowRunFeedProps = {\n entries: FlowRunFeedEntry[];\n className?: string;\n style?: CSSProperties;\n};\n\n/** FlowRunFeed — scrolling log panel. Auto-scrolls to bottom on new entries. */\nexport function FlowRunFeed({ entries, className, style }: FlowRunFeedProps) {\n const scrollRef = useRef<HTMLDivElement>(null);\n useEffect(() => {\n const el = scrollRef.current;\n if (el) el.scrollTop = el.scrollHeight;\n }, [entries.length]);\n\n return (\n <div className={[\"ff-run-feed\", className ?? \"\"].filter(Boolean).join(\" \")} style={style} ref={scrollRef}>\n {entries.length === 0 ? (\n <p className=\"ff-run-feed__empty\">No run events yet.</p>\n ) : (\n entries.map((e) => (\n <div key={e.id} className={`ff-run-feed__row ff-run-feed__row--${e.level}`}>\n <span className=\"ff-run-feed__time\">{formatTime(e.at)}</span>\n {e.nodeId && <span className=\"ff-run-feed__node\">{e.nodeId}</span>}\n <span className=\"ff-run-feed__text\">{e.text}</span>\n </div>\n ))\n )}\n </div>\n );\n}\n\nfunction formatTime(at: number): string {\n const d = new Date(at);\n return `${d.getMinutes().toString().padStart(2, \"0\")}:${d.getSeconds().toString().padStart(2, \"0\")}.${Math.floor(d.getMilliseconds() / 100)}`;\n}\n","import { type CSSProperties, type ReactNode, useEffect, useMemo, useState } from \"react\";\nimport {\n ReactFlowProvider,\n useReactFlow,\n addEdge,\n applyEdgeChanges,\n applyNodeChanges,\n type Connection,\n type Edge,\n type NodeMouseHandler,\n} from \"@xyflow/react\";\nimport type { UseFlowStateReturn } from \"../../runtime/use-flow-state\";\nimport { FlowCanvas } from \"../canvas/FlowCanvas\";\nimport { NodePalette, paletteDropHandlers } from \"../NodePalette\";\nimport { NodeConfigPanel } from \"../NodeConfigPanel\";\nimport { FlowRunControls } from \"../FlowRunControls\";\nimport { FlowRunFeed } from \"../FlowRunFeed\";\nimport { useFlowState } from \"../../runtime/use-flow-state\";\nimport { useFlowRun, applyStatusesToNodes } from \"../../runtime/use-flow-run\";\nimport { exportWorkflow, importWorkflow, workflowToBlob, type WorkflowMetadata, type WorkflowSchema } from \"../../schema\";\nimport { buildNodeTypes, defaultConfigFor, getNodeKind, listNodeKinds, onNodeKindsChanged } from \"../../registry\";\nimport type { ExecutorRegistry, FlowGraph, FlowNode } from \"../../types\";\n\nexport type FlowEditorProps = {\n initial?: FlowGraph;\n /** Controlled mode — host owns the graph state. When set, takes precedence\n * over `initial`. Pair with `onChange` to receive edits. */\n value?: FlowGraph;\n /** Executor registry passed to runFlow. Each kind name maps to an executor. */\n executors?: ExecutorRegistry;\n /** Saved metadata for export. */\n metadata?: WorkflowMetadata;\n /** Show the palette sidebar. Default true. */\n showPalette?: boolean;\n /** Show the config panel sidebar. Default true. */\n showPanel?: boolean;\n /** Show run feed below the canvas. Default true. */\n showFeed?: boolean;\n /** Total editor height. Default 720. */\n height?: number;\n /** Optional toolbar content rendered next to the run controls. */\n extraToolbar?: ReactNode;\n /** Called whenever the graph changes — host can persist. */\n onChange?: (graph: FlowGraph) => void;\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * FlowEditor — opinionated, batteries-included workflow editor. Composes\n * NodePalette + FlowCanvas + NodeConfigPanel + run controls + run feed\n * with sensible defaults. Hosts that want à la carte can use the\n * primitives directly.\n */\nexport function FlowEditor(props: FlowEditorProps) {\n return (\n <ReactFlowProvider>\n <div\n className={[\"ff-editor\", props.className ?? \"\"].filter(Boolean).join(\" \")}\n style={{ height: props.height ?? 720, ...props.style }}\n >\n <FlowEditorInner {...props} />\n </div>\n </ReactFlowProvider>\n );\n}\n\nfunction FlowEditorInner({\n initial = { nodes: [], edges: [] },\n value,\n executors = {},\n metadata,\n showPalette = true,\n showPanel = true,\n showFeed = true,\n extraToolbar,\n onChange,\n}: FlowEditorProps) {\n const internal = useFlowState(initial);\n const runner = useFlowRun();\n\n // When `value` is provided we run in controlled mode: host owns nodes/edges,\n // local edits go through onChange. Internal state is unused but the hook\n // still has to run (rules of hooks).\n const controlled = value !== undefined;\n const flow = controlled\n ? makeControlledFlowAdapter(value!, onChange)\n : internal;\n\n // Re-render when registry kinds change so the palette + nodeTypes reflect it.\n const [, force] = useState(0);\n useEffect(() => onNodeKindsChanged(() => force((n) => n + 1)), []);\n const nodeTypes = useMemo(() => buildNodeTypes(), [listNodeKinds().length]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const renderedNodes = useMemo(\n () => applyStatusesToNodes(flow.nodes, runner.statuses, runner.statusText),\n [flow.nodes, runner.statuses, runner.statusText],\n );\n\n const [selectedId, setSelectedId] = useState<string | null>(null);\n const selected = useMemo(() => flow.nodes.find((n) => n.id === selectedId) ?? null, [flow.nodes, selectedId]);\n\n const handleNodeClick: NodeMouseHandler = (_e, node) => setSelectedId(node.id);\n\n // Uncontrolled: notify host on every graph mutation. Controlled mode\n // already notifies via the adapter on each setNodes/setEdges call.\n useEffect(() => {\n if (!controlled) onChange?.({ nodes: flow.nodes, edges: flow.edges });\n }, [flow.nodes, flow.edges, onChange, controlled]);\n\n return (\n <FlowEditorBody\n showPalette={showPalette}\n showPanel={showPanel}\n showFeed={showFeed}\n flow={flow}\n runner={runner}\n executors={executors}\n metadata={metadata}\n nodeTypes={nodeTypes}\n renderedNodes={renderedNodes}\n selected={selected}\n setSelectedId={setSelectedId}\n handleNodeClick={handleNodeClick}\n extraToolbar={extraToolbar}\n />\n );\n}\n\n/**\n * Build a UseFlowStateReturn-shaped adapter that proxies through to the\n * host's onChange. Edits route through onChange; reads come from `value`.\n */\nfunction makeControlledFlowAdapter(\n value: FlowGraph,\n onChange?: (graph: FlowGraph) => void,\n): UseFlowStateReturn {\n const apply = (next: FlowGraph) => onChange?.(next);\n return {\n nodes: value.nodes,\n edges: value.edges,\n setNodes: (next) => {\n const nextNodes = typeof next === \"function\" ? (next as any)(value.nodes) : next;\n apply({ nodes: nextNodes, edges: value.edges });\n },\n setEdges: (next) => {\n const nextEdges = typeof next === \"function\" ? (next as any)(value.edges) : next;\n apply({ nodes: value.nodes, edges: nextEdges });\n },\n onNodesChange: (changes) => {\n apply({ nodes: applyNodeChanges(changes, value.nodes) as any, edges: value.edges });\n },\n onEdgesChange: (changes) => {\n apply({ nodes: value.nodes, edges: applyEdgeChanges(changes, value.edges) });\n },\n onConnect: (connection: Connection) => {\n apply({ nodes: value.nodes, edges: addEdge(connection, value.edges) as Edge[] });\n },\n toGraph: () => value,\n };\n}\n\nfunction FlowEditorBody({\n showPalette, showPanel, showFeed,\n flow, runner, executors, metadata,\n nodeTypes, renderedNodes, selected, setSelectedId, handleNodeClick, extraToolbar,\n}: any) {\n const rf = useReactFlow();\n\n const dropHandlers = paletteDropHandlers((kindName, evt) => {\n const kind = getNodeKind(kindName);\n if (!kind) return;\n const point = rf.screenToFlowPosition({ x: evt.clientX, y: evt.clientY });\n const id = `n_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 7)}`;\n flow.setNodes((all: FlowNode[]) => [\n ...all,\n {\n id, type: kind.name,\n position: { x: point.x - 100, y: point.y - 30 },\n data: { kind: kind.name, label: kind.label, config: defaultConfigFor(kind) } as any,\n } as FlowNode,\n ]);\n setSelectedId(id);\n });\n\n const doExport = () => {\n const schema: WorkflowSchema = exportWorkflow({ nodes: flow.nodes, edges: flow.edges }, metadata);\n const url = URL.createObjectURL(workflowToBlob(schema));\n const a = document.createElement(\"a\");\n a.href = url;\n a.download = `${metadata?.id ?? \"workflow\"}.json`;\n a.click();\n URL.revokeObjectURL(url);\n };\n\n const doImport = () => {\n const input = document.createElement(\"input\");\n input.type = \"file\";\n input.accept = \"application/json\";\n input.onchange = async () => {\n const file = input.files?.[0];\n if (!file) return;\n const text = await file.text();\n try {\n const result = importWorkflow(JSON.parse(text), { lenient: true });\n flow.setNodes(result.graph.nodes);\n flow.setEdges(result.graph.edges);\n } catch (e) {\n console.error(\"import failed\", e);\n }\n };\n input.click();\n };\n\n return (\n <>\n {showPalette && <NodePalette className=\"ff-editor__palette\" />}\n <div className=\"ff-editor__main\" {...dropHandlers}>\n <FlowCanvas\n nodes={renderedNodes}\n edges={flow.edges}\n nodeTypes={nodeTypes}\n onNodesChange={flow.onNodesChange}\n onEdgesChange={flow.onEdgesChange}\n onConnect={flow.onConnect}\n onNodeClick={handleNodeClick}\n height=\"100%\"\n toolbar={\n <>\n <FlowRunControls\n running={runner.running}\n onRun={() => runner.run({ nodes: flow.nodes, edges: flow.edges }, executors)}\n onCancel={runner.cancel}\n onReset={runner.reset}\n />\n <span className=\"ff-editor__sep\" />\n <button className=\"ff-editor__btn\" onClick={doExport}>↓ Export</button>\n <button className=\"ff-editor__btn\" onClick={doImport}>↑ Import</button>\n {extraToolbar}\n <span className=\"ff-editor__count\">{flow.nodes.length} nodes · {flow.edges.length} edges</span>\n </>\n }\n />\n {showFeed && <FlowRunFeed entries={runner.feed} className=\"ff-editor__feed\" />}\n </div>\n {showPanel && (\n <NodeConfigPanel\n className=\"ff-editor__panel\"\n node={selected}\n onChange={(next: FlowNode) => flow.setNodes((all: FlowNode[]) => all.map((x) => (x.id === next.id ? next : x)))}\n />\n )}\n </>\n );\n}\n","// Public surface for @particle-academy/fancy-flow.\n\n// Auto-register the built-in agentic kit on import. Hosts can replace\n// individual kinds via re-registration after this fires.\nimport { registerBuiltinKinds } from \"./registry/builtin\";\nregisterBuiltinKinds();\n\n// Editor\nexport { FlowCanvas, type FlowCanvasProps } from \"./components/canvas\";\nexport { FlowEditor, type FlowEditorProps } from \"./components/FlowEditor\";\nexport { NodePalette, paletteDropHandlers, type NodePaletteProps } from \"./components/NodePalette\";\nexport {\n NodeConfigPanel,\n ConfigFieldRenderer,\n type NodeConfigPanelProps,\n type ConfigFieldRendererProps,\n} from \"./components/NodeConfigPanel\";\n\n// Legacy 6-pack (kept for backwards compat with v0.1; new work uses the registry)\nexport {\n TriggerNode,\n ActionNode,\n DecisionNode,\n OutputNode,\n NoteNode,\n SubgraphNode,\n NodeShell,\n defaultNodeTypes,\n type NodeShellProps,\n} from \"./components/nodes\";\n\nexport { FlowRunControls, type FlowRunControlsProps } from \"./components/FlowRunControls\";\nexport { FlowRunFeed, type FlowRunFeedProps } from \"./components/FlowRunFeed\";\n\n// Registry (also: fancy-flow/registry)\nexport {\n registerNodeKind,\n getNodeKind,\n listNodeKinds,\n onNodeKindsChanged,\n defaultConfigFor,\n validateConfig,\n categoryAccent,\n buildNodeTypes,\n RegistryNode,\n registerBuiltinKinds,\n BUILTIN_KINDS,\n type NodeKindDefinition,\n type NodeCategory,\n type ConfigField,\n type RenderBodyContext,\n} from \"./registry\";\n\n// Schema (also: fancy-flow/schema)\nexport {\n exportWorkflow,\n importWorkflow,\n workflowToBlob,\n WORKFLOW_SCHEMA_VERSION,\n WORKFLOW_SCHEMA_URL,\n type WorkflowSchema,\n type WorkflowSchemaNode,\n type WorkflowSchemaEdge,\n type WorkflowMetadata,\n type ImportIssue,\n type ImportResult,\n type ImportOptions,\n} from \"./schema\";\n\n// Runtime (also: fancy-flow/runtime)\nexport {\n runFlow,\n useFlowRun,\n useFlowState,\n applyStatusesToNodes,\n type RunOptions,\n type RunResult,\n type UseFlowRunReturn,\n type UseFlowRunOptions,\n type UseFlowStateReturn,\n type FlowRunFeedEntry,\n} from \"./runtime\";\n\n// Domain types\nexport type {\n FlowNode,\n FlowEdge,\n FlowGraph,\n FlowNodeData,\n FlowNodeKind,\n TriggerNodeData,\n ActionNodeData,\n DecisionNodeData,\n OutputNodeData,\n NoteNodeData,\n SubgraphNodeData,\n BaseNodeData,\n PortDescriptor,\n NodeRunStatus,\n NodeExecutor,\n ExecutorRegistry,\n RunEvent,\n} from \"./types\";\n"]}
@@ -0,0 +1,170 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { P as PortDescriptor, N as NodeExecutor, F as FlowNode } from '../types-TemTtb04.cjs';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { NodeProps, NodeTypes } from '@xyflow/react';
6
+
7
+ /** Categories used by the palette for grouping. */
8
+ type NodeCategory = "trigger" | "logic" | "data" | "ai" | "io" | "human" | "output" | "custom";
9
+ /**
10
+ * Tagged-union of config-field shapes the auto-form knows how to render.
11
+ * Each variant has a `key` (the config object property it writes to) and
12
+ * a `label`. Hosts can render fully custom panels via the kind's
13
+ * `renderPanel` instead.
14
+ */
15
+ type ConfigField = TextConfigField | TextareaConfigField | NumberConfigField | SelectConfigField | SwitchConfigField | JsonConfigField | ExpressionConfigField | CredentialConfigField;
16
+ type ConfigFieldBase = {
17
+ key: string;
18
+ label: string;
19
+ description?: string;
20
+ required?: boolean;
21
+ };
22
+ type TextConfigField = ConfigFieldBase & {
23
+ type: "text";
24
+ placeholder?: string;
25
+ default?: string;
26
+ };
27
+ type TextareaConfigField = ConfigFieldBase & {
28
+ type: "textarea";
29
+ placeholder?: string;
30
+ rows?: number;
31
+ default?: string;
32
+ };
33
+ type NumberConfigField = ConfigFieldBase & {
34
+ type: "number";
35
+ min?: number;
36
+ max?: number;
37
+ step?: number;
38
+ default?: number;
39
+ };
40
+ type SelectConfigField = ConfigFieldBase & {
41
+ type: "select";
42
+ options: Array<{
43
+ value: string;
44
+ label: string;
45
+ }>;
46
+ default?: string;
47
+ };
48
+ type SwitchConfigField = ConfigFieldBase & {
49
+ type: "switch";
50
+ default?: boolean;
51
+ };
52
+ type JsonConfigField = ConfigFieldBase & {
53
+ type: "json";
54
+ language?: "json" | "yaml" | "javascript";
55
+ rows?: number;
56
+ default?: unknown;
57
+ };
58
+ type ExpressionConfigField = ConfigFieldBase & {
59
+ type: "expression";
60
+ /** A short example string shown as placeholder, e.g. "{{ $json.name }}". */
61
+ example?: string;
62
+ default?: string;
63
+ };
64
+ type CredentialConfigField = ConfigFieldBase & {
65
+ type: "credential";
66
+ /** Logical credential type. The host implements lookup / picker. */
67
+ credentialType: string;
68
+ };
69
+ /**
70
+ * Context passed to a kind's optional `renderBody`. Hosts can read the
71
+ * resolved config + node id to render whatever fancy-* component they
72
+ * want inside the node card.
73
+ */
74
+ type RenderBodyContext<TConfig = unknown> = {
75
+ nodeId: string;
76
+ config: TConfig;
77
+ selected: boolean;
78
+ };
79
+ /**
80
+ * NodeKindDefinition — declares an authorable node type. Register one
81
+ * via `registerNodeKind()`. Hosts (and the agent bridge) introspect the
82
+ * registry to know what's authorable.
83
+ */
84
+ type NodeKindDefinition<TConfig = Record<string, unknown>, TIn = any, TOut = any> = {
85
+ /** Stable identifier — used as the xyflow node `type` and the schema export key. */
86
+ name: string;
87
+ /** Palette grouping. */
88
+ category: NodeCategory;
89
+ /** Display label. */
90
+ label: string;
91
+ /** One-line summary surfaced in the palette + agent bridge. */
92
+ description?: string;
93
+ /** Emoji or icon glyph rendered in the node header. */
94
+ icon?: string;
95
+ /** Hex / CSS color for the header bar. Falls back to a category default. */
96
+ accent?: string;
97
+ /** Declarative form schema for the config panel. */
98
+ configSchema?: ConfigField[];
99
+ /** Default config values used when a node of this kind is created. */
100
+ defaultConfig?: TConfig;
101
+ /** Input ports. Defaults vary by category. */
102
+ inputs?: PortDescriptor[];
103
+ /** Output ports. Defaults vary by category. */
104
+ outputs?: PortDescriptor[];
105
+ /** Optional custom body rendered inside the node card. */
106
+ renderBody?: (ctx: RenderBodyContext<TConfig>) => ReactNode;
107
+ /**
108
+ * Optional override for the config panel. Receives the current config and
109
+ * an onChange to update it. Defaults to the auto-generated form.
110
+ */
111
+ renderPanel?: (props: {
112
+ config: TConfig;
113
+ onChange: (next: TConfig) => void;
114
+ nodeId: string;
115
+ }) => ReactNode;
116
+ /**
117
+ * Executor — host-implemented function that runs at flow execution.
118
+ * Optional: built-in agentic kinds ship without one so the host wires
119
+ * the actual work (memory store backend, LLM client, HTTP fetcher, etc.).
120
+ */
121
+ executor?: NodeExecutor<TIn, TOut>;
122
+ };
123
+
124
+ /**
125
+ * registerNodeKind — install a node kind in the global registry. Returns
126
+ * an `unregister` function. Calling with the same name replaces the prior
127
+ * registration (handy for HMR).
128
+ */
129
+ declare function registerNodeKind<TC = any, TI = any, TO = any>(definition: NodeKindDefinition<TC, TI, TO>): () => void;
130
+ /** Get a single kind by name, or null. */
131
+ declare function getNodeKind(name: string): NodeKindDefinition | null;
132
+ /** List every registered kind, optionally filtered by category. */
133
+ declare function listNodeKinds(category?: string): NodeKindDefinition[];
134
+ /** Subscribe to registry changes. Returns an unsubscribe function. */
135
+ declare function onNodeKindsChanged(listener: () => void): () => void;
136
+ /** Fill in defaults from a kind's configSchema for newly-created nodes. */
137
+ declare function defaultConfigFor(kind: NodeKindDefinition): Record<string, unknown>;
138
+ /**
139
+ * Validate a config object against a kind's schema. Returns an array of
140
+ * issues (empty = valid). Validation is intentionally light — type
141
+ * coercion + required-field checks. Hosts can layer Zod / Ajv on top.
142
+ */
143
+ declare function validateConfig(kind: NodeKindDefinition, config: Record<string, unknown>): Array<{
144
+ key: string;
145
+ message: string;
146
+ }>;
147
+ /** Default accents per category. */
148
+ declare function categoryAccent(category: string): string;
149
+
150
+ /**
151
+ * RegistryNode — generic node renderer that looks up the node's kind in
152
+ * the registry and applies its `accent`/`label`/`icon`/`renderBody`. Used
153
+ * as the xyflow node component for every registered kind.
154
+ */
155
+ declare function RegistryNodeInner(props: NodeProps<FlowNode>): react_jsx_runtime.JSX.Element;
156
+ declare const RegistryNode: react.MemoExoticComponent<typeof RegistryNodeInner>;
157
+
158
+ /** Register every built-in kind. Idempotent via the registry. */
159
+ declare function registerBuiltinKinds(): void;
160
+ /** Exported list for hosts that want to selectively re-register. */
161
+ declare const BUILTIN_KINDS: NodeKindDefinition[];
162
+
163
+ /**
164
+ * Build an xyflow `nodeTypes` map from the registry — every registered
165
+ * kind gets `RegistryNode` as its renderer. Refresh manually via
166
+ * `useNodeTypes()` (a hook that subscribes to registry changes).
167
+ */
168
+ declare function buildNodeTypes(): NodeTypes;
169
+
170
+ export { BUILTIN_KINDS, type ConfigField, type CredentialConfigField, type ExpressionConfigField, type JsonConfigField, type NodeCategory, type NodeKindDefinition, type NumberConfigField, RegistryNode, type RenderBodyContext, type SelectConfigField, type SwitchConfigField, type TextConfigField, type TextareaConfigField, buildNodeTypes, categoryAccent, defaultConfigFor, getNodeKind, listNodeKinds, onNodeKindsChanged, registerBuiltinKinds, registerNodeKind, validateConfig };
@@ -0,0 +1,170 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { P as PortDescriptor, N as NodeExecutor, F as FlowNode } from '../types-TemTtb04.js';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { NodeProps, NodeTypes } from '@xyflow/react';
6
+
7
+ /** Categories used by the palette for grouping. */
8
+ type NodeCategory = "trigger" | "logic" | "data" | "ai" | "io" | "human" | "output" | "custom";
9
+ /**
10
+ * Tagged-union of config-field shapes the auto-form knows how to render.
11
+ * Each variant has a `key` (the config object property it writes to) and
12
+ * a `label`. Hosts can render fully custom panels via the kind's
13
+ * `renderPanel` instead.
14
+ */
15
+ type ConfigField = TextConfigField | TextareaConfigField | NumberConfigField | SelectConfigField | SwitchConfigField | JsonConfigField | ExpressionConfigField | CredentialConfigField;
16
+ type ConfigFieldBase = {
17
+ key: string;
18
+ label: string;
19
+ description?: string;
20
+ required?: boolean;
21
+ };
22
+ type TextConfigField = ConfigFieldBase & {
23
+ type: "text";
24
+ placeholder?: string;
25
+ default?: string;
26
+ };
27
+ type TextareaConfigField = ConfigFieldBase & {
28
+ type: "textarea";
29
+ placeholder?: string;
30
+ rows?: number;
31
+ default?: string;
32
+ };
33
+ type NumberConfigField = ConfigFieldBase & {
34
+ type: "number";
35
+ min?: number;
36
+ max?: number;
37
+ step?: number;
38
+ default?: number;
39
+ };
40
+ type SelectConfigField = ConfigFieldBase & {
41
+ type: "select";
42
+ options: Array<{
43
+ value: string;
44
+ label: string;
45
+ }>;
46
+ default?: string;
47
+ };
48
+ type SwitchConfigField = ConfigFieldBase & {
49
+ type: "switch";
50
+ default?: boolean;
51
+ };
52
+ type JsonConfigField = ConfigFieldBase & {
53
+ type: "json";
54
+ language?: "json" | "yaml" | "javascript";
55
+ rows?: number;
56
+ default?: unknown;
57
+ };
58
+ type ExpressionConfigField = ConfigFieldBase & {
59
+ type: "expression";
60
+ /** A short example string shown as placeholder, e.g. "{{ $json.name }}". */
61
+ example?: string;
62
+ default?: string;
63
+ };
64
+ type CredentialConfigField = ConfigFieldBase & {
65
+ type: "credential";
66
+ /** Logical credential type. The host implements lookup / picker. */
67
+ credentialType: string;
68
+ };
69
+ /**
70
+ * Context passed to a kind's optional `renderBody`. Hosts can read the
71
+ * resolved config + node id to render whatever fancy-* component they
72
+ * want inside the node card.
73
+ */
74
+ type RenderBodyContext<TConfig = unknown> = {
75
+ nodeId: string;
76
+ config: TConfig;
77
+ selected: boolean;
78
+ };
79
+ /**
80
+ * NodeKindDefinition — declares an authorable node type. Register one
81
+ * via `registerNodeKind()`. Hosts (and the agent bridge) introspect the
82
+ * registry to know what's authorable.
83
+ */
84
+ type NodeKindDefinition<TConfig = Record<string, unknown>, TIn = any, TOut = any> = {
85
+ /** Stable identifier — used as the xyflow node `type` and the schema export key. */
86
+ name: string;
87
+ /** Palette grouping. */
88
+ category: NodeCategory;
89
+ /** Display label. */
90
+ label: string;
91
+ /** One-line summary surfaced in the palette + agent bridge. */
92
+ description?: string;
93
+ /** Emoji or icon glyph rendered in the node header. */
94
+ icon?: string;
95
+ /** Hex / CSS color for the header bar. Falls back to a category default. */
96
+ accent?: string;
97
+ /** Declarative form schema for the config panel. */
98
+ configSchema?: ConfigField[];
99
+ /** Default config values used when a node of this kind is created. */
100
+ defaultConfig?: TConfig;
101
+ /** Input ports. Defaults vary by category. */
102
+ inputs?: PortDescriptor[];
103
+ /** Output ports. Defaults vary by category. */
104
+ outputs?: PortDescriptor[];
105
+ /** Optional custom body rendered inside the node card. */
106
+ renderBody?: (ctx: RenderBodyContext<TConfig>) => ReactNode;
107
+ /**
108
+ * Optional override for the config panel. Receives the current config and
109
+ * an onChange to update it. Defaults to the auto-generated form.
110
+ */
111
+ renderPanel?: (props: {
112
+ config: TConfig;
113
+ onChange: (next: TConfig) => void;
114
+ nodeId: string;
115
+ }) => ReactNode;
116
+ /**
117
+ * Executor — host-implemented function that runs at flow execution.
118
+ * Optional: built-in agentic kinds ship without one so the host wires
119
+ * the actual work (memory store backend, LLM client, HTTP fetcher, etc.).
120
+ */
121
+ executor?: NodeExecutor<TIn, TOut>;
122
+ };
123
+
124
+ /**
125
+ * registerNodeKind — install a node kind in the global registry. Returns
126
+ * an `unregister` function. Calling with the same name replaces the prior
127
+ * registration (handy for HMR).
128
+ */
129
+ declare function registerNodeKind<TC = any, TI = any, TO = any>(definition: NodeKindDefinition<TC, TI, TO>): () => void;
130
+ /** Get a single kind by name, or null. */
131
+ declare function getNodeKind(name: string): NodeKindDefinition | null;
132
+ /** List every registered kind, optionally filtered by category. */
133
+ declare function listNodeKinds(category?: string): NodeKindDefinition[];
134
+ /** Subscribe to registry changes. Returns an unsubscribe function. */
135
+ declare function onNodeKindsChanged(listener: () => void): () => void;
136
+ /** Fill in defaults from a kind's configSchema for newly-created nodes. */
137
+ declare function defaultConfigFor(kind: NodeKindDefinition): Record<string, unknown>;
138
+ /**
139
+ * Validate a config object against a kind's schema. Returns an array of
140
+ * issues (empty = valid). Validation is intentionally light — type
141
+ * coercion + required-field checks. Hosts can layer Zod / Ajv on top.
142
+ */
143
+ declare function validateConfig(kind: NodeKindDefinition, config: Record<string, unknown>): Array<{
144
+ key: string;
145
+ message: string;
146
+ }>;
147
+ /** Default accents per category. */
148
+ declare function categoryAccent(category: string): string;
149
+
150
+ /**
151
+ * RegistryNode — generic node renderer that looks up the node's kind in
152
+ * the registry and applies its `accent`/`label`/`icon`/`renderBody`. Used
153
+ * as the xyflow node component for every registered kind.
154
+ */
155
+ declare function RegistryNodeInner(props: NodeProps<FlowNode>): react_jsx_runtime.JSX.Element;
156
+ declare const RegistryNode: react.MemoExoticComponent<typeof RegistryNodeInner>;
157
+
158
+ /** Register every built-in kind. Idempotent via the registry. */
159
+ declare function registerBuiltinKinds(): void;
160
+ /** Exported list for hosts that want to selectively re-register. */
161
+ declare const BUILTIN_KINDS: NodeKindDefinition[];
162
+
163
+ /**
164
+ * Build an xyflow `nodeTypes` map from the registry — every registered
165
+ * kind gets `RegistryNode` as its renderer. Refresh manually via
166
+ * `useNodeTypes()` (a hook that subscribes to registry changes).
167
+ */
168
+ declare function buildNodeTypes(): NodeTypes;
169
+
170
+ export { BUILTIN_KINDS, type ConfigField, type CredentialConfigField, type ExpressionConfigField, type JsonConfigField, type NodeCategory, type NodeKindDefinition, type NumberConfigField, RegistryNode, type RenderBodyContext, type SelectConfigField, type SwitchConfigField, type TextConfigField, type TextareaConfigField, buildNodeTypes, categoryAccent, defaultConfigFor, getNodeKind, listNodeKinds, onNodeKindsChanged, registerBuiltinKinds, registerNodeKind, validateConfig };