Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
revert to jinj2
thomashebrardb0354fd88ca8
diff --git a/pipelex/graph/reactflow/assets/graph-viewer.css b/pipelex/graph/reactflow/assets/graph-viewer.cssnew file mode 100644index 000000000..8df051667--- /dev/null+++ b/pipelex/graph/reactflow/assets/graph-viewer.css@@ -0,0 +1,1836 @@+/* this gets exported as style.css and can be used for the default theming */+/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */+.react-flow {+ direction: ltr;++ --xy-edge-stroke-default: #b1b1b7;+ --xy-edge-stroke-width-default: 1;+ --xy-edge-stroke-selected-default: #555;++ --xy-connectionline-stroke-default: #b1b1b7;+ --xy-connectionline-stroke-width-default: 1;++ --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);++ --xy-minimap-background-color-default: #fff;+ --xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);+ --xy-minimap-mask-stroke-color-default: transparent;+ --xy-minimap-mask-stroke-width-default: 1;+ --xy-minimap-node-background-color-default: #e2e2e2;+ --xy-minimap-node-stroke-color-default: transparent;+ --xy-minimap-node-stroke-width-default: 2;++ --xy-background-color-default: transparent;+ --xy-background-pattern-dots-color-default: #91919a;+ --xy-background-pattern-lines-color-default: #eee;+ --xy-background-pattern-cross-color-default: #e2e2e2;+ background-color: var(--xy-background-color, var(--xy-background-color-default));+ --xy-node-color-default: inherit;+ --xy-node-border-default: 1px solid #1a192b;+ --xy-node-background-color-default: #fff;+ --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);+ --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);+ --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;+ --xy-node-border-radius-default: 3px;++ --xy-handle-background-color-default: #1a192b;+ --xy-handle-border-color-default: #fff;++ --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);+ --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);++ --xy-controls-button-background-color-default: #fefefe;+ --xy-controls-button-background-color-hover-default: #f4f4f4;+ --xy-controls-button-color-default: inherit;+ --xy-controls-button-color-hover-default: inherit;+ --xy-controls-button-border-color-default: #eee;+ --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);++ --xy-edge-label-background-color-default: #ffffff;+ --xy-edge-label-color-default: inherit;+ --xy-resize-background-color-default: #3367d9;+}+.react-flow.dark {+ --xy-edge-stroke-default: #3e3e3e;+ --xy-edge-stroke-width-default: 1;+ --xy-edge-stroke-selected-default: #727272;++ --xy-connectionline-stroke-default: #b1b1b7;+ --xy-connectionline-stroke-width-default: 1;++ --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);++ --xy-minimap-background-color-default: #141414;+ --xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);+ --xy-minimap-mask-stroke-color-default: transparent;+ --xy-minimap-mask-stroke-width-default: 1;+ --xy-minimap-node-background-color-default: #2b2b2b;+ --xy-minimap-node-stroke-color-default: transparent;+ --xy-minimap-node-stroke-width-default: 2;++ --xy-background-color-default: #141414;+ --xy-background-pattern-dots-color-default: #777;+ --xy-background-pattern-lines-color-default: #777;+ --xy-background-pattern-cross-color-default: #777;+ --xy-node-color-default: #f8f8f8;+ --xy-node-border-default: 1px solid #3c3c3c;+ --xy-node-background-color-default: #1e1e1e;+ --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);+ --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);+ --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;++ --xy-handle-background-color-default: #bebebe;+ --xy-handle-border-color-default: #1e1e1e;++ --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);+ --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);++ --xy-controls-button-background-color-default: #2b2b2b;+ --xy-controls-button-background-color-hover-default: #3e3e3e;+ --xy-controls-button-color-default: #f8f8f8;+ --xy-controls-button-color-hover-default: #fff;+ --xy-controls-button-border-color-default: #5b5b5b;+ --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);++ --xy-edge-label-background-color-default: #141414;+ --xy-edge-label-color-default: #f8f8f8;+}+.react-flow__background {+ background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));+ pointer-events: none;+ z-index: -1;+}+.react-flow__container {+ position: absolute;+ width: 100%;+ height: 100%;+ top: 0;+ left: 0;+}+.react-flow__pane {+ z-index: 1;+}+.react-flow__pane.draggable {+ cursor: grab;+ }+.react-flow__pane.dragging {+ cursor: grabbing;+ }+.react-flow__pane.selection {+ cursor: pointer;+ }+.react-flow__viewport {+ transform-origin: 0 0;+ z-index: 2;+ pointer-events: none;+}+.react-flow__renderer {+ z-index: 4;+}+.react-flow__selection {+ z-index: 6;+}+.react-flow__nodesselection-rect:focus,+.react-flow__nodesselection-rect:focus-visible {+ outline: none;+}+.react-flow__edge-path {+ stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));+ stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));+ fill: none;+}+.react-flow__connection-path {+ stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));+ stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));+ fill: none;+}+.react-flow .react-flow__edges {+ position: absolute;+}+.react-flow .react-flow__edges svg {+ overflow: visible;+ position: absolute;+ pointer-events: none;+ }+.react-flow__edge {+ pointer-events: visibleStroke;+}+.react-flow__edge.selectable {+ cursor: pointer;+ }+.react-flow__edge.animated path {+ stroke-dasharray: 5;+ animation: dashdraw 0.5s linear infinite;+ }+.react-flow__edge.animated path.react-flow__edge-interaction {+ stroke-dasharray: none;+ animation: none;+ }+.react-flow__edge.inactive {+ pointer-events: none;+ }+.react-flow__edge.selected,+ .react-flow__edge:focus,+ .react-flow__edge:focus-visible {+ outline: none;+ }+.react-flow__edge.selected .react-flow__edge-path,+ .react-flow__edge.selectable:focus .react-flow__edge-path,+ .react-flow__edge.selectable:focus-visible .react-flow__edge-path {+ stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));+ }+.react-flow__edge-textwrapper {+ pointer-events: all;+ }+.react-flow__edge .react-flow__edge-text {+ pointer-events: none;+ -webkit-user-select: none;+ -moz-user-select: none;+ user-select: none;+ }+/* Arrowhead marker styles - use CSS custom properties as default */+.react-flow__arrowhead polyline {+ stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));+}+.react-flow__arrowhead polyline.arrowclosed {+ fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));+}+.react-flow__connection {+ pointer-events: none;+}+.react-flow__connection .animated {+ stroke-dasharray: 5;+ animation: dashdraw 0.5s linear infinite;+ }+svg.react-flow__connectionline {+ z-index: 1001;+ overflow: visible;+ position: absolute;+}+.react-flow__nodes {+ pointer-events: none;+ transform-origin: 0 0;+}+.react-flow__node {+ position: absolute;+ -webkit-user-select: none;+ -moz-user-select: none;+ user-select: none;+ pointer-events: all;+ transform-origin: 0 0;+ box-sizing: border-box;+ cursor: default;+}+.react-flow__node.selectable {+ cursor: pointer;+ }+.react-flow__node.draggable {+ cursor: grab;+ pointer-events: all;+ }+.react-flow__node.draggable.dragging {+ cursor: grabbing;+ }+.react-flow__nodesselection {+ z-index: 3;+ transform-origin: left top;+ pointer-events: none;+}+.react-flow__nodesselection-rect {+ position: absolute;+ pointer-events: all;+ cursor: grab;+ }+.react-flow__handle {+ position: absolute;+ pointer-events: none;+ min-width: 5px;+ min-height: 5px;+ width: 6px;+ height: 6px;+ background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));+ border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));+ border-radius: 100%;+}+.react-flow__handle.connectingfrom {+ pointer-events: all;+ }+.react-flow__handle.connectionindicator {+ pointer-events: all;+ cursor: crosshair;+ }+.react-flow__handle-bottom {+ top: auto;+ left: 50%;+ bottom: 0;+ transform: translate(-50%, 50%);+ }+.react-flow__handle-top {+ top: 0;+ left: 50%;+ transform: translate(-50%, -50%);+ }+.react-flow__handle-left {+ top: 50%;+ left: 0;+ transform: translate(-50%, -50%);+ }+.react-flow__handle-right {+ top: 50%;+ right: 0;+ transform: translate(50%, -50%);+ }+.react-flow__edgeupdater {+ cursor: move;+ pointer-events: all;+}+.react-flow__pane.selection .react-flow__panel {+ pointer-events: none;+}+.react-flow__panel {+ position: absolute;+ z-index: 5;+ margin: 15px;+}+.react-flow__panel.top {+ top: 0;+ }+.react-flow__panel.bottom {+ bottom: 0;+ }+.react-flow__panel.top.center, .react-flow__panel.bottom.center {+ left: 50%;+ transform: translateX(-15px) translateX(-50%);+ }+.react-flow__panel.left {+ left: 0;+ }+.react-flow__panel.right {+ right: 0;+ }+.react-flow__panel.left.center, .react-flow__panel.right.center {+ top: 50%;+ transform: translateY(-15px) translateY(-50%);+ }+.react-flow__attribution {+ font-size: 10px;+ background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));+ padding: 2px 3px;+ margin: 0;+}+.react-flow__attribution a {+ text-decoration: none;+ color: #999;+ }+@keyframes dashdraw {+ from {+ stroke-dashoffset: 10;+ }+}+.react-flow__edgelabel-renderer {+ position: absolute;+ width: 100%;+ height: 100%;+ pointer-events: none;+ -webkit-user-select: none;+ -moz-user-select: none;+ user-select: none;+ left: 0;+ top: 0;+}+.react-flow__viewport-portal {+ position: absolute;+ width: 100%;+ height: 100%;+ left: 0;+ top: 0;+ -webkit-user-select: none;+ -moz-user-select: none;+ user-select: none;+}+.react-flow__minimap {+ background: var(+ --xy-minimap-background-color-props,+ var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))+ );+}+.react-flow__minimap-svg {+ display: block;+ }+.react-flow__minimap-mask {+ fill: var(+ --xy-minimap-mask-background-color-props,+ var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))+ );+ stroke: var(+ --xy-minimap-mask-stroke-color-props,+ var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))+ );+ stroke-width: var(+ --xy-minimap-mask-stroke-width-props,+ var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))+ );+ }+.react-flow__minimap-node {+ fill: var(+ --xy-minimap-node-background-color-props,+ var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))+ );+ stroke: var(+ --xy-minimap-node-stroke-color-props,+ var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))+ );+ stroke-width: var(+ --xy-minimap-node-stroke-width-props,+ var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))+ );+ }+.react-flow__background-pattern.dots {+ fill: var(+ --xy-background-pattern-color-props,+ var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))+ );+ }+.react-flow__background-pattern.lines {+ stroke: var(+ --xy-background-pattern-color-props,+ var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))+ );+ }+.react-flow__background-pattern.cross {+ stroke: var(+ --xy-background-pattern-color-props,+ var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))+ );+ }+.react-flow__controls {+ display: flex;+ flex-direction: column;+ box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));+}+.react-flow__controls.horizontal {+ flex-direction: row;+ }+.react-flow__controls-button {+ display: flex;+ justify-content: center;+ align-items: center;+ height: 26px;+ width: 26px;+ padding: 4px;+ border: none;+ background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));+ border-bottom: 1px solid+ var(+ --xy-controls-button-border-color-props,+ var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))+ );+ color: var(+ --xy-controls-button-color-props,+ var(--xy-controls-button-color, var(--xy-controls-button-color-default))+ );+ cursor: pointer;+ -webkit-user-select: none;+ -moz-user-select: none;+ user-select: none;+ }+.react-flow__controls-button svg {+ width: 100%;+ max-width: 12px;+ max-height: 12px;+ fill: currentColor;+ }+.react-flow__edge.updating .react-flow__edge-path {+ stroke: #777;+ }+.react-flow__edge-text {+ font-size: 10px;+ }+.react-flow__node.selectable:focus,+ .react-flow__node.selectable:focus-visible {+ outline: none;+ }+.react-flow__node-input,+.react-flow__node-default,+.react-flow__node-output,+.react-flow__node-group {+ padding: 10px;+ border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));+ width: 150px;+ font-size: 12px;+ color: var(--xy-node-color, var(--xy-node-color-default));+ text-align: center;+ border: var(--xy-node-border, var(--xy-node-border-default));+ background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));+}+.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {+ box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));+ }+.react-flow__node-input.selectable.selected,+ .react-flow__node-input.selectable:focus,+ .react-flow__node-input.selectable:focus-visible,+ .react-flow__node-default.selectable.selected,+ .react-flow__node-default.selectable:focus,+ .react-flow__node-default.selectable:focus-visible,+ .react-flow__node-output.selectable.selected,+ .react-flow__node-output.selectable:focus,+ .react-flow__node-output.selectable:focus-visible,+ .react-flow__node-group.selectable.selected,+ .react-flow__node-group.selectable:focus,+ .react-flow__node-group.selectable:focus-visible {+ box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));+ }+.react-flow__node-group {+ background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));+}+.react-flow__nodesselection-rect,+.react-flow__selection {+ background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));+ border: var(--xy-selection-border, var(--xy-selection-border-default));+}+.react-flow__nodesselection-rect:focus,+ .react-flow__nodesselection-rect:focus-visible,+ .react-flow__selection:focus,+ .react-flow__selection:focus-visible {+ outline: none;+ }+.react-flow__controls-button:hover {+ background: var(+ --xy-controls-button-background-color-hover-props,+ var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default))+ );+ color: var(+ --xy-controls-button-color-hover-props,+ var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default))+ );+ }+.react-flow__controls-button:disabled {+ pointer-events: none;+ }+.react-flow__controls-button:disabled svg {+ fill-opacity: 0.4;+ }+.react-flow__controls-button:last-child {+ border-bottom: none;+ }+.react-flow__controls.horizontal .react-flow__controls-button {+ border-bottom: none;+ border-right: 1px solid+ var(+ --xy-controls-button-border-color-props,+ var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))+ );+ }+.react-flow__controls.horizontal .react-flow__controls-button:last-child {+ border-right: none;+ }+.react-flow__resize-control {+ position: absolute;+}+.react-flow__resize-control.left,+.react-flow__resize-control.right {+ cursor: ew-resize;+}+.react-flow__resize-control.top,+.react-flow__resize-control.bottom {+ cursor: ns-resize;+}+.react-flow__resize-control.top.left,+.react-flow__resize-control.bottom.right {+ cursor: nwse-resize;+}+.react-flow__resize-control.bottom.left,+.react-flow__resize-control.top.right {+ cursor: nesw-resize;+}+/* handle styles */+.react-flow__resize-control.handle {+ width: 5px;+ height: 5px;+ border: 1px solid #fff;+ border-radius: 1px;+ background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));+ translate: -50% -50%;+}+.react-flow__resize-control.handle.left {+ left: 0;+ top: 50%;+}+.react-flow__resize-control.handle.right {+ left: 100%;+ top: 50%;+}+.react-flow__resize-control.handle.top {+ left: 50%;+ top: 0;+}+.react-flow__resize-control.handle.bottom {+ left: 50%;+ top: 100%;+}+.react-flow__resize-control.handle.top.left {+ left: 0;+}+.react-flow__resize-control.handle.bottom.left {+ left: 0;+}+.react-flow__resize-control.handle.top.right {+ left: 100%;+}+.react-flow__resize-control.handle.bottom.right {+ left: 100%;+}+/* line styles */+.react-flow__resize-control.line {+ border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));+ border-width: 0;+ border-style: solid;+}+.react-flow__resize-control.line.left,+.react-flow__resize-control.line.right {+ width: 1px;+ transform: translate(-50%, 0);+ top: 0;+ height: 100%;+}+.react-flow__resize-control.line.left {+ left: 0;+ border-left-width: 1px;+}+.react-flow__resize-control.line.right {+ left: 100%;+ border-right-width: 1px;+}+.react-flow__resize-control.line.top,+.react-flow__resize-control.line.bottom {+ height: 1px;+ transform: translate(0, -50%);+ left: 0;+ width: 100%;+}+.react-flow__resize-control.line.top {+ top: 0;+ border-top-width: 1px;+}+.react-flow__resize-control.line.bottom {+ border-bottom-width: 1px;+ top: 100%;+}+.react-flow__edge-textbg {+ fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));+}+.react-flow__edge-text {+ fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));+}++/* ReactFlow base styles — resolved by the consumer's bundler */+/* Default theme — consumers can override any var on an ancestor element */+.react-flow-container {+ --color-bg: #0a0a0a;+ --color-bg-dots: rgba(255, 255, 255, 0.35);+ --color-text-muted: #94a3b8;+ --color-controller-text: #94a3b8;+ --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+ --font-mono: "JetBrains Mono", "Monaco", "Menlo", monospace;+ --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);+}+.react-flow-container {+ position: absolute;+ inset: 0;+ background: var(--color-bg);+}+.react-flow__node {+ font-family: var(--font-sans);+ cursor: pointer;+}+.react-flow__background {+ background: var(--color-bg) !important;+}+.react-flow__edge-path {+ stroke-width: 2;+}+.react-flow__edge-text {+ font-size: 11px;+ fill: var(--color-text-muted);+}+.react-flow__edge-textbg {+ fill: var(--color-bg);+}+/* Selected node highlight */+.react-flow__node.selected {+ box-shadow:+ 0 0 0 3px var(--color-accent),+ var(--shadow-lg) !important;+ z-index: 1000 !important;+}+/* Pipe cards handle their own selection styling — suppress the wrapper outline */+.react-flow__node-pipeCard {+ background: transparent !important;+ border: none !important;+ box-shadow: none !important;+ outline: none !important;+ padding: 0 !important;+}+.react-flow__node-pipeCard.selected {+ box-shadow: none !important;+ outline: none !important;+}+.react-flow__node-pipeCard.selected .pipe-card {+ box-shadow:+ 0 0 0 2px var(--color-accent, #3b82f6),+ 0 4px 16px rgba(0, 0, 0, 0.6);+}+.react-flow__node-controllerGroup.selected {+ box-shadow:+ 0 0 0 2px var(--color-accent),+ var(--shadow-lg) !important;+}+.react-flow__node-controllerGroup {+ cursor: default !important;+}+/* ─── Controller Group Node ──────────────────────────────────────────── */+.controller-group-node {+ --controller-border: 2px dashed rgba(148, 163, 184, 0.3);+ --controller-bg: rgba(148, 163, 184, 0.04);+ --controller-header-color: #64748b;++ width: 100%;+ height: 100%;+ position: relative;+ border: var(--controller-border);+ border-radius: 12px;+ background: var(--controller-bg);+}+.controller-group-header {+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ display: flex;+ align-items: center;+ gap: 6px;+ padding: 6px 12px;+ pointer-events: none;+ user-select: none;+}+.controller-group-icon {+ font-size: 13px;+ color: var(--controller-header-color);+ line-height: 1;+}+.controller-group-badge {+ font-size: 9px;+ font-weight: 700;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: var(--controller-header-color);+ font-family: var(--font-mono, "JetBrains Mono", monospace);+}+.controller-group-label {+ font-size: 11px;+ font-family: var(--font-mono, "JetBrains Mono", monospace);+ font-weight: 500;+ color: var(--color-controller-text, #94a3b8);+ white-space: nowrap;+ margin-left: auto;+}++/* Collapse / expand toggle for parallel & batch controllers */+.controller-group-collapse {+ all: unset;+ position: absolute;+ bottom: 4px;+ right: 8px;+ font-size: 10px;+ font-family: var(--font-mono, "JetBrains Mono", monospace);+ color: var(--controller-header-color, #94a3b8);+ cursor: pointer;+ padding: 2px 8px;+ border-radius: 4px;+ border: 1px dashed rgba(255, 255, 255, 0.15);+ pointer-events: auto;+ z-index: 10;+ white-space: nowrap;+}+.controller-group-collapse:hover {+ color: #e2e8f0;+ border-color: rgba(255, 255, 255, 0.35);+ background: rgba(255, 255, 255, 0.05);+}++/* Sequence — solid thin border, calm flow */+.controller-group--sequence {+ --controller-border: 1.5px solid rgba(148, 163, 184, 0.25);+ --controller-bg: rgba(148, 163, 184, 0.03);+ --controller-header-color: #94a3b8;+}++/* Parallel — double border, forking lanes */+.controller-group--parallel {+ --controller-border: 3px double rgba(139, 233, 253, 0.35);+ --controller-bg: rgba(139, 233, 253, 0.03);+ --controller-header-color: #8be9fd;+}++/* Condition — dashed with diamond accent */+.controller-group--condition {+ --controller-border: 2px dashed rgba(251, 191, 36, 0.35);+ --controller-bg: rgba(251, 191, 36, 0.03);+ --controller-header-color: #fbbf24;+}++/* Batch — dotted border, loop/repeat */+.controller-group--batch {+ --controller-border: 2px dotted rgba(167, 139, 250, 0.35);+ --controller-bg: rgba(167, 139, 250, 0.03);+ --controller-header-color: #a78bfa;+}++/* ─── Pipe Card Node ─────────────────────────────────────────────────── */+/* All tokens overridable via CSS custom properties on an ancestor. */+.pipe-card {+ --pipe-card-accent: #ff6b6b;+ --pipe-card-bg: rgba(148, 163, 184, 0.08);+ --pipe-card-text: #e2e8f0;+ --pipe-card-text-bright: #f8fafc;+ --pipe-card-text-muted: #94a3b8;+ --pipe-card-text-dim: #64748b;+ --pipe-card-pill-bg: rgba(255, 255, 255, 0.06);+ --pipe-card-pill-border: rgba(255, 255, 255, 0.08);+ --pipe-card-pill-text: #cbd5e1;+ --pipe-card-radius: 8px;++ border-left: 4px solid var(--pipe-card-accent);+ border-radius: var(--pipe-card-radius);+ padding: 12px 14px;+ background: var(--pipe-card-bg);+ font-family: var(--font-sans, "Inter", -apple-system, sans-serif);+ color: var(--pipe-card-text);+ display: flex;+ flex-direction: column;+ gap: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);+ transition: box-shadow 0.2s;+ /* Fill the ReactFlow wrapper whose size is locked to ELK's layout dimensions */+ width: 100%;+ height: 100%;+ box-sizing: border-box;+ overflow: hidden;+}+.pipe-card:hover {+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);+}++/* Direction-aware sizing: LR = narrow + tall, TB = wide + short */+.pipe-card--lr {+ min-width: 180px;+ max-width: 240px;+}+.pipe-card--tb {+ min-width: 280px;+ max-width: 400px;+}++/* Header: badge + code + status */+.pipe-card-header {+ display: flex;+ align-items: center;+ gap: 8px;+}+.pipe-card-badge {+ font-size: 10px;+ font-weight: 700;+ text-transform: uppercase;+ letter-spacing: 0.04em;+ padding: 2px 7px;+ border-radius: 4px;+ white-space: nowrap;+ line-height: 1.4;+ background: var(--pipe-card-accent);+ color: #0e0e0e;+}+.pipe-card-code {+ font-family: var(--font-mono, "JetBrains Mono", monospace);+ font-size: 13px;+ font-weight: 600;+ color: var(--pipe-card-accent);+ flex: 1;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.pipe-card-status {+ display: flex;+ align-items: center;+ margin-left: auto;+ flex-shrink: 0;+}+.pipe-card-status-dot {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ display: inline-block;+}+.pipe-card-status-dot--pulse {+ animation: pipe-card-pulse 1.5s ease-in-out infinite;+}+@keyframes pipe-card-pulse {+ 0%,+ 100% {+ opacity: 1;+ transform: scale(1);+ }+ 50% {+ opacity: 0.5;+ transform: scale(1.3);+ }+}++/* Description */+.pipe-card-description {+ font-size: 11.5px;+ color: var(--pipe-card-text-muted);+ line-height: 1.4;+ display: -webkit-box;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ overflow: hidden;+}++/* I/O section — base (appearance only, layout set per-direction below) */+.pipe-card-io-label {+ font-size: 9px;+ font-weight: 700;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: var(--pipe-card-text-dim);+ flex-shrink: 0;+}+.pipe-card-io-pills {+ display: flex;+ gap: 4px;+ min-width: 0;+}+.pipe-card-io-pill {+ display: inline-flex;+ align-items: center;+ gap: 3px;+ font-size: 10px;+ background: var(--pipe-card-pill-bg);+ border: 1px solid var(--pipe-card-pill-border);+ border-radius: 4px;+ padding: 1px 5px;+ line-height: 1.4;+ min-width: 0;+}+.pipe-card-io-pill-name {+ font-family: var(--font-mono, "JetBrains Mono", monospace);+ color: var(--pipe-card-pill-text);+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.pipe-card-io-pill-concept {+ color: var(--pipe-card-text-dim);+ font-size: 9px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.pipe-card-io-more {+ all: unset;+ font-size: 10px;+ font-family: var(--font-mono, "JetBrains Mono", monospace);+ color: var(--pipe-card-text-muted);+ cursor: pointer;+ padding: 2px 6px;+ border-radius: 4px;+ border: 1px dashed rgba(255, 255, 255, 0.12);+ white-space: nowrap;+ line-height: 1.4;+}+.pipe-card-io-more:hover {+ color: var(--pipe-card-text);+ border-color: rgba(255, 255, 255, 0.25);+}++/* ─── LR: label on top, pills stacked vertically, hard-truncated ─────── */+/* Truncation priority: concept shrinks first → name truncates last. */+.pipe-card--lr .pipe-card-io {+ display: flex;+ flex-direction: column;+ gap: 4px;+}+.pipe-card--lr .pipe-card-io-pills {+ flex-direction: column;+ align-items: flex-start; /* pills size to content, not stretch */+ gap: 4px;+}+.pipe-card--lr .pipe-card-io-pill {+ max-width: 100%;+ overflow: hidden;+}+.pipe-card--lr .pipe-card-io-pill-name {+ flex: 0 1 auto; /* natural width, shrinks only after concept is gone */+ min-width: 30px;+}+.pipe-card--lr .pipe-card-io-pill-concept {+ flex: 0 100 auto; /* natural width, shrinks 100x faster than name */+ min-width: 0; /* allow shrinking to zero */+}+.pipe-card--lr .pipe-card-io-more {+ align-self: flex-start;+}++/* ─── TB: label on the left, pills wrap horizontally to the right ────── */+.pipe-card--tb .pipe-card-io {+ display: flex;+ flex-direction: row;+ align-items: flex-start;+ gap: 6px;+}+.pipe-card--tb .pipe-card-io-label {+ padding-top: 4px;+ min-width: 52px;+}+.pipe-card--tb .pipe-card-io-pills {+ flex: 1 1 0;+ flex-wrap: wrap;+ min-width: 0;+}+.pipe-card--tb .pipe-card-io-pill {+ max-width: 100%;+}+.pipe-card--tb .pipe-card-io-pill-name {+ max-width: 140px;+}+.pipe-card--tb .pipe-card-io-pill-concept {+ max-width: 100px;+}++/* ─── StuffViewer component styles ────────────────────────────────────────── */+/* Uses CSS custom properties for consumer theming. Defaults match graph-core.css. */++.stuff-viewer {+ --sv-bg: var(--color-bg, #0a0a0a);+ --sv-surface: var(--color-surface, #16213e);+ --sv-surface-hover: var(--color-surface-hover, #1f2b47);+ --sv-border: var(--color-border, #2a3a5a);+ --sv-text: var(--color-text, #e2e8f0);+ --sv-text-muted: var(--color-text-muted, #94a3b8);+ --sv-accent: var(--color-accent, #3b82f6);+ --sv-success: #10b981;+ --sv-success-bg: rgba(16, 185, 129, 0.2);+ --sv-radius: 4px;+ --sv-font-sans: var(+ --font-sans,+ "Inter",+ -apple-system,+ BlinkMacSystemFont,+ "Segoe UI",+ sans-serif+ );+ --sv-font-mono: var(--font-mono, "JetBrains Mono", "Monaco", "Menlo", monospace);++ font-family: var(--sv-font-sans);+ color: var(--sv-text);+ display: flex;+ flex-direction: column;+ height: 100%;+}++/* ─── Header ─────────────────────────────────────────────────────────────── */++.stuff-viewer-header {+ display: flex;+ flex-direction: column;+ gap: 2px;+ padding: 12px 16px 8px;+ border-bottom: 1px solid var(--sv-border);+ flex-shrink: 0;+}++.stuff-viewer-title {+ font-size: 14px;+ font-weight: 600;+ color: var(--sv-text);+ margin: 0;+}++.stuff-viewer-subtitle {+ font-size: 12px;+ color: var(--sv-text-muted);+ margin: 0;+}++/* ─── Toolbar: tabs + action buttons ─────────────────────────────────────── */++.stuff-viewer-toolbar {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: 8px 16px;+ gap: 8px;+ flex-shrink: 0;+}++.stuff-viewer-tabs {+ display: flex;+ gap: 4px;+}++.stuff-viewer-tab {+ padding: 5px 10px;+ border-radius: var(--sv-radius);+ cursor: pointer;+ font-size: 12px;+ font-weight: 500;+ background: var(--sv-surface-hover);+ color: var(--sv-text-muted);+ border: none;+ transition:+ background 0.15s,+ color 0.15s;+}++.stuff-viewer-tab:hover {+ background: var(--sv-border);+ color: var(--sv-text);+}++.stuff-viewer-tab--active {+ background: var(--sv-accent);+ color: #fff;+}++/* ─── Action buttons ─────────────────────────────────────────────────────── */++.stuff-viewer-actions {+ display: flex;+ gap: 4px;+}++.stuff-viewer-action-btn {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 28px;+ height: 28px;+ border-radius: var(--sv-radius);+ cursor: pointer;+ background: var(--sv-surface-hover);+ color: var(--sv-text-muted);+ border: none;+ transition:+ background 0.15s,+ color 0.15s;+}++.stuff-viewer-action-btn:hover {+ background: var(--sv-border);+ color: var(--sv-text);+}++.stuff-viewer-action-btn--copied {+ background: var(--sv-success-bg);+ color: var(--sv-success);+}++.stuff-viewer-action-btn svg {+ width: 14px;+ height: 14px;+ fill: currentColor;+}++/* ─── Content area ───────────────────────────────────────────────────────── */++.stuff-viewer-content {+ flex: 1;+ overflow: auto;+ padding: 12px 16px 16px;+ min-height: 0;+}++/* Pre-formatted text (JSON and Pretty tabs) */+.stuff-viewer-pre {+ font-family: var(--sv-font-mono);+ font-size: 11px;+ line-height: 1.5;+ white-space: pre-wrap;+ word-wrap: break-word;+ margin: 0;+ color: var(--sv-text-muted);+}++.stuff-viewer-pre--nowrap {+ white-space: pre;+ word-wrap: normal;+ line-height: 1;+ overflow-x: auto;+ padding-right: 20px;+}++/* HTML content */+.stuff-viewer-html {+ font-family: var(--sv-font-sans);+ font-size: 11px;+ color: var(--sv-text-muted);+ line-height: 1.5;+}++.stuff-viewer-html table {+ border-collapse: collapse;+ width: 100%;+}++.stuff-viewer-html th,+.stuff-viewer-html td {+ border: 1px solid var(--sv-border);+ padding: 8px 12px;+ text-align: left;+}++.stuff-viewer-html th {+ background: var(--sv-surface-hover);+ color: var(--sv-text);+ font-weight: 600;+}++.stuff-viewer-html tr:hover {+ background: var(--sv-surface-hover);+}++.stuff-viewer-html a {+ color: var(--sv-accent);+ text-decoration: none;+}++.stuff-viewer-html a:hover {+ text-decoration: underline;+}++.stuff-viewer-html ul {+ list-style: none;+ padding-left: 0;+ margin: 0;+}++/* PDF embed */+.stuff-viewer-pdf {+ min-height: 400px;+ height: 100%;+}++.stuff-viewer-pdf embed {+ width: 100%;+ height: 100%;+ min-height: 500px;+ border: none;+}++/* Image content */+.stuff-viewer-image {+ display: flex;+ justify-content: center;+ align-items: center;+ min-height: 200px;+}++.stuff-viewer-image img {+ max-width: 100%;+ max-height: 70vh;+ object-fit: contain;+}++/* Placeholder for missing data */+.stuff-viewer-placeholder {+ color: var(--sv-text-muted);+ font-style: italic;+ font-size: 13px;+}++/* ─── Detail Panel — sliding side panel for node inspection ─────────────── */++.detail-panel {+ position: absolute;+ top: 0;+ right: 0;+ width: 380px;+ height: 100%;+ background: #111118;+ border-left: 1px solid rgba(255, 255, 255, 0.1);+ z-index: 10;+ display: flex;+ flex-direction: column;+ font-family: "Inter", -apple-system, sans-serif;+ color: #e2e8f0;+ overflow: hidden;+ transition: transform 0.2s ease;+}++.detail-panel--closed {+ transform: translateX(100%);+ pointer-events: none;+}++.detail-panel-close {+ all: unset;+ cursor: pointer;+ position: absolute;+ top: 12px;+ right: 12px;+ width: 24px;+ height: 24px;+ display: flex;+ align-items: center;+ justify-content: center;+ border-radius: 4px;+ color: #64748b;+ font-size: 18px;+ line-height: 1;+ z-index: 1;+}++.detail-panel-close:hover {+ color: #94a3b8;+ background: rgba(255, 255, 255, 0.06);+}++.detail-panel-content {+ flex: 1;+ overflow-y: auto;+ padding: 20px 16px;+ display: flex;+ flex-direction: column;+ gap: 16px;+}++/* ─── Shared detail components ──────────────────────────────────────────── */++.detail-section-label {+ font-size: 9px;+ font-weight: 700;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: #64748b;+ margin-bottom: 6px;+}++.detail-header {+ display: flex;+ align-items: center;+ gap: 8px;+}++.detail-badge {+ font-size: 10px;+ font-weight: 700;+ text-transform: uppercase;+ letter-spacing: 0.04em;+ padding: 2px 7px;+ border-radius: 4px;+ white-space: nowrap;+}++.detail-badge--operator {+ background: #ff6b6b;+ color: #0e0e0e;+}++.detail-badge--controller {+ background: #bd93f9;+ color: #0e0e0e;+}++.detail-pipe-code {+ font-family: "JetBrains Mono", "Monaco", monospace;+ font-size: 14px;+ font-weight: 600;+ color: #ff6b6b;+}++.detail-pipe-code--controller {+ color: #bd93f9;+}++.detail-status {+ display: flex;+ align-items: center;+ gap: 8px;+}++.detail-status-dot {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ display: inline-block;+}++.detail-status-label {+ font-size: 12px;+ font-weight: 600;+ text-transform: capitalize;+}++.detail-duration {+ font-size: 11px;+ color: #64748b;+ font-family: "JetBrains Mono", "Monaco", monospace;+}++.detail-description {+ font-size: 12px;+ color: #94a3b8;+ line-height: 1.5;+}++/* ─── IO Pills ──────────────────────────────────────────────────────────── */++.detail-io-pill {+ display: flex;+ align-items: center;+ gap: 6px;+ font-size: 11px;+ padding: 3px 8px;+ border-radius: 4px;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.06);+}++.detail-io-name {+ font-family: "JetBrains Mono", "Monaco", monospace;+ color: #e2e8f0;+}++.detail-io-concept {+ color: #64748b;+ font-size: 10px;+}++.detail-io-list {+ display: flex;+ flex-direction: column;+ gap: 4px;+}++/* ─── Blueprint-specific sections ───────────────────────────────────────── */++.detail-prompt-block {+ font-family: "JetBrains Mono", "Monaco", monospace;+ font-size: 11px;+ color: #94a3b8;+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: 6px;+ padding: 10px 12px;+ white-space: pre-wrap;+ word-break: break-word;+ max-height: 200px;+ overflow-y: auto;+ line-height: 1.5;+}++.detail-kv-row {+ display: flex;+ justify-content: space-between;+ align-items: center;+ font-size: 11px;+ padding: 3px 0;+}++.detail-kv-key {+ color: #64748b;+}++.detail-kv-value {+ font-family: "JetBrains Mono", "Monaco", monospace;+ color: #e2e8f0;+}++/* ─── Concept schema table ──────────────────────────────────────────────── */++.detail-schema-table {+ width: 100%;+ font-size: 11px;+ border-collapse: collapse;+}++.detail-schema-table th {+ text-align: left;+ font-weight: 700;+ color: #64748b;+ font-size: 9px;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ padding: 4px 6px;+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);+}++.detail-schema-table td {+ padding: 4px 6px;+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);+ color: #94a3b8;+}++.detail-schema-field {+ font-family: "JetBrains Mono", "Monaco", monospace;+ color: #e2e8f0;+}++.detail-schema-type {+ color: #8be9fd;+}++.detail-schema-required {+ color: #ff6b6b;+ font-size: 9px;+}++/* ─── Error section ─────────────────────────────────────────────────────── */++.detail-error {+ background: rgba(255, 85, 85, 0.08);+ border: 1px solid rgba(255, 85, 85, 0.2);+ border-radius: 6px;+ padding: 10px 12px;+}++.detail-error-type {+ font-size: 12px;+ font-weight: 600;+ color: #ff5555;+ margin-bottom: 4px;+}++.detail-error-message {+ font-size: 11px;+ color: #94a3b8;+ line-height: 1.5;+}++.detail-error-stack {+ font-family: "JetBrains Mono", "Monaco", monospace;+ font-size: 10px;+ color: #64748b;+ margin-top: 8px;+ max-height: 150px;+ overflow-y: auto;+ white-space: pre-wrap;+ word-break: break-word;+}++/* ─── Steps list (PipeSequence, PipeCondition outcomes) ─────────────────── */++.detail-steps-list {+ display: flex;+ flex-direction: column;+ gap: 4px;+}++.detail-step-item {+ display: flex;+ align-items: center;+ gap: 8px;+ font-size: 11px;+ padding: 4px 8px;+ border-radius: 4px;+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+}++.detail-step-index {+ color: #64748b;+ font-size: 10px;+ font-weight: 700;+ min-width: 16px;+}++.detail-step-code {+ font-family: "JetBrains Mono", "Monaco", monospace;+ color: #e2e8f0;+}++/* ─── Tags/Metrics ──────────────────────────────────────────────────────── */++.detail-tags {+ display: flex;+ flex-wrap: wrap;+ gap: 4px;+}++.detail-tag {+ font-size: 10px;+ padding: 2px 6px;+ border-radius: 3px;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.06);+}++.detail-tag-key {+ color: #64748b;+}++.detail-tag-value {+ color: #e2e8f0;+ font-family: "JetBrains Mono", "Monaco", monospace;+}++/* ─── Concept panel header ──────────────────────────────────────────────── */++.detail-concept-code {+ font-family: "JetBrains Mono", "Monaco", monospace;+ font-size: 14px;+ font-weight: 600;+ color: #50fa7b;+}++.detail-concept-domain {+ font-size: 11px;+ color: #64748b;+}++.detail-refines {+ font-size: 11px;+ color: #94a3b8;+}++.detail-refines-code {+ font-family: "JetBrains Mono", "Monaco", monospace;+ color: #8be9fd;+}++/* ─── Not available fallback ────────────────────────────────────────────── */++.detail-not-available {+ font-size: 12px;+ color: #64748b;+ font-style: italic;+ padding: 8px 0;+}++/* ─── Standalone GraphViewer chrome (toolbar, theme, layout) ─────────── */++* { box-sizing: border-box; margin: 0; padding: 0; }++html, body {+ height: 100%;+ overflow: hidden;+ font-family: "Inter", -apple-system, sans-serif;+}++/* ─── Theme system ──────────────────────────────────────────────────── */++body[data-theme="dark"], body:not([data-theme]) {+ --chrome-bg: #0d1117;+ --chrome-surface: #161b22;+ --chrome-border: rgba(255,255,255,0.08);+ --chrome-text: #e2e8f0;+ --chrome-text-muted: #8b949e;+ background: #0a0a0f;+ color: #e2e8f0;+}++body[data-theme="light"] {+ --chrome-bg: #ffffff;+ --chrome-surface: #f6f8fa;+ --chrome-border: rgba(0,0,0,0.1);+ --chrome-text: #1f2328;+ --chrome-text-muted: #656d76;+ background: #ffffff;+ color: #1f2328;+}++@media (prefers-color-scheme: light) {+ body[data-theme="system"] {+ --chrome-bg: #ffffff;+ --chrome-surface: #f6f8fa;+ --chrome-border: rgba(0,0,0,0.1);+ --chrome-text: #1f2328;+ --chrome-text-muted: #656d76;+ background: #ffffff;+ color: #1f2328;+ }+}++@media (prefers-color-scheme: dark) {+ body[data-theme="system"] {+ --chrome-bg: #0d1117;+ --chrome-surface: #161b22;+ --chrome-border: rgba(255,255,255,0.08);+ --chrome-text: #e2e8f0;+ --chrome-text-muted: #8b949e;+ background: #0a0a0f;+ color: #e2e8f0;+ }+}++/* ─── Layout ────────────────────────────────────────────────────────── */++#app-container {+ display: flex;+ flex-direction: column;+ height: 100vh;+}++#root {+ flex: 1;+ position: relative;+ min-height: 0;+}++/* ─── Toolbar ───────────────────────────────────────────────────────── */++.toolbar {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 6px 12px;+ background: var(--chrome-surface);+ border-bottom: 1px solid var(--chrome-border);+ flex-shrink: 0;+ z-index: 20;+}++.toolbar-spacer { flex: 1; }++.toolbar-btn {+ all: unset;+ cursor: pointer;+ display: flex;+ align-items: center;+ justify-content: center;+ width: 28px;+ height: 28px;+ border-radius: 4px;+ color: var(--chrome-text-muted);+ transition: background 0.15s, color 0.15s;+}++.toolbar-btn:hover {+ background: var(--chrome-border);+ color: var(--chrome-text);+}++.toolbar-zoom {+ display: flex;+ gap: 2px;+}++/* Direction toggle */+.direction-icon { display: none; }+.direction-icon.active { display: inline-flex; }++/* Controllers toggle */+.toggle-switch {+ display: flex;+ align-items: center;+ gap: 6px;+ cursor: pointer;+ font-size: 11px;+ color: var(--chrome-text-muted);+ user-select: none;+}++.toggle-switch input { display: none; }++.toggle-track {+ width: 28px;+ height: 16px;+ border-radius: 8px;+ background: var(--chrome-border);+ position: relative;+ transition: background 0.15s;+}++.toggle-switch input:checked + .toggle-track {+ background: #50FA7B44;+}++.toggle-knob {+ position: absolute;+ top: 2px;+ left: 2px;+ width: 12px;+ height: 12px;+ border-radius: 50%;+ background: var(--chrome-text-muted);+ transition: left 0.15s, background 0.15s;+}++.toggle-switch input:checked + .toggle-track .toggle-knob {+ left: 14px;+ background: #50FA7B;+}++.toggle-label {+ font-size: 11px;+}++/* Theme toggle */+.theme-btn {+ all: unset;+ cursor: pointer;+ display: flex;+ align-items: center;+ gap: 4px;+ font-size: 10px;+ color: var(--chrome-text-muted);+ padding: 4px 8px;+ border-radius: 4px;+ transition: background 0.15s;+}++.theme-btn:hover {+ background: var(--chrome-border);+}++.theme-label {+ text-transform: capitalize;+}++/* ─── Header branding ───────────────────────────────────────────────── */++.header-brand {+ display: flex;+ align-items: center;+ gap: 8px;+}++.header-logo {+ height: 18px;+ opacity: 0.7;+}++body[data-theme="dark"] .header-logo.light-logo,+body:not([data-theme]) .header-logo.light-logo {+ display: none;+}++body[data-theme="light"] .header-logo.dark-logo {+ display: none;+}++body[data-theme="light"] .header-logo.light-logo {+ display: inline;+}++@media (prefers-color-scheme: light) {+ body[data-theme="system"] .header-logo.dark-logo {+ display: none;+ }+ body[data-theme="system"] .header-logo.light-logo {+ display: inline;+ }+}++@media (prefers-color-scheme: dark) {+ body[data-theme="system"] .header-logo.light-logo {+ display: none;+ }+}++.header-title {+ font-size: 12px;+ font-weight: 600;+ color: var(--chrome-text-muted);+}diff --git a/pipelex/graph/reactflow/assets/graph-standalone.html b/pipelex/graph/reactflow/assets/graph-viewer.jssimilarity index 97%rename from pipelex/graph/reactflow/assets/graph-standalone.htmlrename to pipelex/graph/reactflow/assets/graph-viewer.jsindex e02bb2ad7..f32507688 100644--- a/pipelex/graph/reactflow/assets/graph-standalone.html+++ b/pipelex/graph/reactflow/assets/graph-viewer.js@@ -1,1869 +1,3 @@-<!DOCTYPE html>-<html lang="en">-<head>-<meta charset="UTF-8">-<meta name="viewport" content="width=device-width, initial-scale=1.0">-<title><!--PIPELEX_TITLE--></title>-<style nonce="PIPELEX_CSP_NONCE">-/* this gets exported as style.css and can be used for the default theming */-/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */-.react-flow {- direction: ltr;-- --xy-edge-stroke-default: #b1b1b7;- --xy-edge-stroke-width-default: 1;- --xy-edge-stroke-selected-default: #555;-- --xy-connectionline-stroke-default: #b1b1b7;- --xy-connectionline-stroke-width-default: 1;-- --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);-- --xy-minimap-background-color-default: #fff;- --xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);- --xy-minimap-mask-stroke-color-default: transparent;- --xy-minimap-mask-stroke-width-default: 1;- --xy-minimap-node-background-color-default: #e2e2e2;- --xy-minimap-node-stroke-color-default: transparent;- --xy-minimap-node-stroke-width-default: 2;-- --xy-background-color-default: transparent;- --xy-background-pattern-dots-color-default: #91919a;- --xy-background-pattern-lines-color-default: #eee;- --xy-background-pattern-cross-color-default: #e2e2e2;- background-color: var(--xy-background-color, var(--xy-background-color-default));- --xy-node-color-default: inherit;- --xy-node-border-default: 1px solid #1a192b;- --xy-node-background-color-default: #fff;- --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);- --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);- --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;- --xy-node-border-radius-default: 3px;-- --xy-handle-background-color-default: #1a192b;- --xy-handle-border-color-default: #fff;-- --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);- --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);-- --xy-controls-button-background-color-default: #fefefe;- --xy-controls-button-background-color-hover-default: #f4f4f4;- --xy-controls-button-color-default: inherit;- --xy-controls-button-color-hover-default: inherit;- --xy-controls-button-border-color-default: #eee;- --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);-- --xy-edge-label-background-color-default: #ffffff;- --xy-edge-label-color-default: inherit;- --xy-resize-background-color-default: #3367d9;-}-.react-flow.dark {- --xy-edge-stroke-default: #3e3e3e;- --xy-edge-stroke-width-default: 1;- --xy-edge-stroke-selected-default: #727272;-- --xy-connectionline-stroke-default: #b1b1b7;- --xy-connectionline-stroke-width-default: 1;-- --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);-- --xy-minimap-background-color-default: #141414;- --xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);- --xy-minimap-mask-stroke-color-default: transparent;- --xy-minimap-mask-stroke-width-default: 1;- --xy-minimap-node-background-color-default: #2b2b2b;- --xy-minimap-node-stroke-color-default: transparent;- --xy-minimap-node-stroke-width-default: 2;-- --xy-background-color-default: #141414;- --xy-background-pattern-dots-color-default: #777;- --xy-background-pattern-lines-color-default: #777;- --xy-background-pattern-cross-color-default: #777;- --xy-node-color-default: #f8f8f8;- --xy-node-border-default: 1px solid #3c3c3c;- --xy-node-background-color-default: #1e1e1e;- --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);- --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);- --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;-- --xy-handle-background-color-default: #bebebe;- --xy-handle-border-color-default: #1e1e1e;-- --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);- --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);-- --xy-controls-button-background-color-default: #2b2b2b;- --xy-controls-button-background-color-hover-default: #3e3e3e;- --xy-controls-button-color-default: #f8f8f8;- --xy-controls-button-color-hover-default: #fff;- --xy-controls-button-border-color-default: #5b5b5b;- --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);-- --xy-edge-label-background-color-default: #141414;- --xy-edge-label-color-default: #f8f8f8;-}-.react-flow__background {- background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));- pointer-events: none;- z-index: -1;-}-.react-flow__container {- position: absolute;- width: 100%;- height: 100%;- top: 0;- left: 0;-}-.react-flow__pane {- z-index: 1;-}-.react-flow__pane.draggable {- cursor: grab;- }-.react-flow__pane.dragging {- cursor: grabbing;- }-.react-flow__pane.selection {- cursor: pointer;- }-.react-flow__viewport {- transform-origin: 0 0;- z-index: 2;- pointer-events: none;-}-.react-flow__renderer {- z-index: 4;-}-.react-flow__selection {- z-index: 6;-}-.react-flow__nodesselection-rect:focus,-.react-flow__nodesselection-rect:focus-visible {- outline: none;-}-.react-flow__edge-path {- stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));- stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));- fill: none;-}-.react-flow__connection-path {- stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));- stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));- fill: none;-}-.react-flow .react-flow__edges {- position: absolute;-}-.react-flow .react-flow__edges svg {- overflow: visible;- position: absolute;- pointer-events: none;- }-.react-flow__edge {- pointer-events: visibleStroke;-}-.react-flow__edge.selectable {- cursor: pointer;- }-.react-flow__edge.animated path {- stroke-dasharray: 5;- animation: dashdraw 0.5s linear infinite;- }-.react-flow__edge.animated path.react-flow__edge-interaction {- stroke-dasharray: none;- animation: none;- }-.react-flow__edge.inactive {- pointer-events: none;- }-.react-flow__edge.selected,- .react-flow__edge:focus,- .react-flow__edge:focus-visible {- outline: none;- }-.react-flow__edge.selected .react-flow__edge-path,- .react-flow__edge.selectable:focus .react-flow__edge-path,- .react-flow__edge.selectable:focus-visible .react-flow__edge-path {- stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));- }-.react-flow__edge-textwrapper {- pointer-events: all;- }-.react-flow__edge .react-flow__edge-text {- pointer-events: none;- -webkit-user-select: none;- -moz-user-select: none;- user-select: none;- }-/* Arrowhead marker styles - use CSS custom properties as default */-.react-flow__arrowhead polyline {- stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));-}-.react-flow__arrowhead polyline.arrowclosed {- fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));-}-.react-flow__connection {- pointer-events: none;-}-.react-flow__connection .animated {- stroke-dasharray: 5;- animation: dashdraw 0.5s linear infinite;- }-svg.react-flow__connectionline {- z-index: 1001;- overflow: visible;- position: absolute;-}-.react-flow__nodes {- pointer-events: none;- transform-origin: 0 0;-}-.react-flow__node {- position: absolute;- -webkit-user-select: none;- -moz-user-select: none;- user-select: none;- pointer-events: all;- transform-origin: 0 0;- box-sizing: border-box;- cursor: default;-}-.react-flow__node.selectable {- cursor: pointer;- }-.react-flow__node.draggable {- cursor: grab;- pointer-events: all;- }-.react-flow__node.draggable.dragging {- cursor: grabbing;- }-.react-flow__nodesselection {- z-index: 3;- transform-origin: left top;- pointer-events: none;-}-.react-flow__nodesselection-rect {- position: absolute;- pointer-events: all;- cursor: grab;- }-.react-flow__handle {- position: absolute;- pointer-events: none;- min-width: 5px;- min-height: 5px;- width: 6px;- height: 6px;- background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));- border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));- border-radius: 100%;-}-.react-flow__handle.connectingfrom {- pointer-events: all;- }-.react-flow__handle.connectionindicator {- pointer-events: all;- cursor: crosshair;- }-.react-flow__handle-bottom {- top: auto;- left: 50%;- bottom: 0;- transform: translate(-50%, 50%);- }-.react-flow__handle-top {- top: 0;- left: 50%;- transform: translate(-50%, -50%);- }-.react-flow__handle-left {- top: 50%;- left: 0;- transform: translate(-50%, -50%);- }-.react-flow__handle-right {- top: 50%;- right: 0;- transform: translate(50%, -50%);- }-.react-flow__edgeupdater {- cursor: move;- pointer-events: all;-}-.react-flow__pane.selection .react-flow__panel {- pointer-events: none;-}-.react-flow__panel {- position: absolute;- z-index: 5;- margin: 15px;-}-.react-flow__panel.top {- top: 0;- }-.react-flow__panel.bottom {- bottom: 0;- }-.react-flow__panel.top.center, .react-flow__panel.bottom.center {- left: 50%;- transform: translateX(-15px) translateX(-50%);- }-.react-flow__panel.left {- left: 0;- }-.react-flow__panel.right {- right: 0;- }-.react-flow__panel.left.center, .react-flow__panel.right.center {- top: 50%;- transform: translateY(-15px) translateY(-50%);- }-.react-flow__attribution {- font-size: 10px;- background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));- padding: 2px 3px;- margin: 0;-}-.react-flow__attribution a {- text-decoration: none;- color: #999;- }-@keyframes dashdraw {- from {- stroke-dashoffset: 10;- }-}-.react-flow__edgelabel-renderer {- position: absolute;- width: 100%;- height: 100%;- pointer-events: none;- -webkit-user-select: none;- -moz-user-select: none;- user-select: none;- left: 0;- top: 0;-}-.react-flow__viewport-portal {- position: absolute;- width: 100%;- height: 100%;- left: 0;- top: 0;- -webkit-user-select: none;- -moz-user-select: none;- user-select: none;-}-.react-flow__minimap {- background: var(- --xy-minimap-background-color-props,- var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))- );-}-.react-flow__minimap-svg {- display: block;- }-.react-flow__minimap-mask {- fill: var(- --xy-minimap-mask-background-color-props,- var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))- );- stroke: var(- --xy-minimap-mask-stroke-color-props,- var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))- );- stroke-width: var(- --xy-minimap-mask-stroke-width-props,- var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))- );- }-.react-flow__minimap-node {- fill: var(- --xy-minimap-node-background-color-props,- var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))- );- stroke: var(- --xy-minimap-node-stroke-color-props,- var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))- );- stroke-width: var(- --xy-minimap-node-stroke-width-props,- var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))- );- }-.react-flow__background-pattern.dots {- fill: var(- --xy-background-pattern-color-props,- var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))- );- }-.react-flow__background-pattern.lines {- stroke: var(- --xy-background-pattern-color-props,- var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))- );- }-.react-flow__background-pattern.cross {- stroke: var(- --xy-background-pattern-color-props,- var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))- );- }-.react-flow__controls {- display: flex;- flex-direction: column;- box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));-}-.react-flow__controls.horizontal {- flex-direction: row;- }-.react-flow__controls-button {- display: flex;- justify-content: center;- align-items: center;- height: 26px;- width: 26px;- padding: 4px;- border: none;- background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));- border-bottom: 1px solid- var(- --xy-controls-button-border-color-props,- var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))- );- color: var(- --xy-controls-button-color-props,- var(--xy-controls-button-color, var(--xy-controls-button-color-default))- );- cursor: pointer;- -webkit-user-select: none;- -moz-user-select: none;- user-select: none;- }-.react-flow__controls-button svg {- width: 100%;- max-width: 12px;- max-height: 12px;- fill: currentColor;- }-.react-flow__edge.updating .react-flow__edge-path {- stroke: #777;- }-.react-flow__edge-text {- font-size: 10px;- }-.react-flow__node.selectable:focus,- .react-flow__node.selectable:focus-visible {- outline: none;- }-.react-flow__node-input,-.react-flow__node-default,-.react-flow__node-output,-.react-flow__node-group {- padding: 10px;- border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));- width: 150px;- font-size: 12px;- color: var(--xy-node-color, var(--xy-node-color-default));- text-align: center;- border: var(--xy-node-border, var(--xy-node-border-default));- background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));-}-.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {- box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));- }-.react-flow__node-input.selectable.selected,- .react-flow__node-input.selectable:focus,- .react-flow__node-input.selectable:focus-visible,- .react-flow__node-default.selectable.selected,- .react-flow__node-default.selectable:focus,- .react-flow__node-default.selectable:focus-visible,- .react-flow__node-output.selectable.selected,- .react-flow__node-output.selectable:focus,- .react-flow__node-output.selectable:focus-visible,- .react-flow__node-group.selectable.selected,- .react-flow__node-group.selectable:focus,- .react-flow__node-group.selectable:focus-visible {- box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));- }-.react-flow__node-group {- background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));-}-.react-flow__nodesselection-rect,-.react-flow__selection {- background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));- border: var(--xy-selection-border, var(--xy-selection-border-default));-}-.react-flow__nodesselection-rect:focus,- .react-flow__nodesselection-rect:focus-visible,- .react-flow__selection:focus,- .react-flow__selection:focus-visible {- outline: none;- }-.react-flow__controls-button:hover {- background: var(- --xy-controls-button-background-color-hover-props,- var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default))- );- color: var(- --xy-controls-button-color-hover-props,- var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default))- );- }-.react-flow__controls-button:disabled {- pointer-events: none;- }-.react-flow__controls-button:disabled svg {- fill-opacity: 0.4;- }-.react-flow__controls-button:last-child {- border-bottom: none;- }-.react-flow__controls.horizontal .react-flow__controls-button {- border-bottom: none;- border-right: 1px solid- var(- --xy-controls-button-border-color-props,- var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))- );- }-.react-flow__controls.horizontal .react-flow__controls-button:last-child {- border-right: none;- }-.react-flow__resize-control {- position: absolute;-}-.react-flow__resize-control.left,-.react-flow__resize-control.right {- cursor: ew-resize;-}-.react-flow__resize-control.top,-.react-flow__resize-control.bottom {- cursor: ns-resize;-}-.react-flow__resize-control.top.left,-.react-flow__resize-control.bottom.right {- cursor: nwse-resize;-}-.react-flow__resize-control.bottom.left,-.react-flow__resize-control.top.right {- cursor: nesw-resize;-}-/* handle styles */-.react-flow__resize-control.handle {- width: 5px;- height: 5px;- border: 1px solid #fff;- border-radius: 1px;- background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));- translate: -50% -50%;-}-.react-flow__resize-control.handle.left {- left: 0;- top: 50%;-}-.react-flow__resize-control.handle.right {- left: 100%;- top: 50%;-}-.react-flow__resize-control.handle.top {- left: 50%;- top: 0;-}-.react-flow__resize-control.handle.bottom {- left: 50%;- top: 100%;-}-.react-flow__resize-control.handle.top.left {- left: 0;-}-.react-flow__resize-control.handle.bottom.left {- left: 0;-}-.react-flow__resize-control.handle.top.right {- left: 100%;-}-.react-flow__resize-control.handle.bottom.right {- left: 100%;-}-/* line styles */-.react-flow__resize-control.line {- border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));- border-width: 0;- border-style: solid;-}-.react-flow__resize-control.line.left,-.react-flow__resize-control.line.right {- width: 1px;- transform: translate(-50%, 0);- top: 0;- height: 100%;-}-.react-flow__resize-control.line.left {- left: 0;- border-left-width: 1px;-}-.react-flow__resize-control.line.right {- left: 100%;- border-right-width: 1px;-}-.react-flow__resize-control.line.top,-.react-flow__resize-control.line.bottom {- height: 1px;- transform: translate(0, -50%);- left: 0;- width: 100%;-}-.react-flow__resize-control.line.top {- top: 0;- border-top-width: 1px;-}-.react-flow__resize-control.line.bottom {- border-bottom-width: 1px;- top: 100%;-}-.react-flow__edge-textbg {- fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));-}-.react-flow__edge-text {- fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));-}--/* ReactFlow base styles — resolved by the consumer's bundler */-/* Default theme — consumers can override any var on an ancestor element */-.react-flow-container {- --color-bg: #0a0a0a;- --color-bg-dots: rgba(255, 255, 255, 0.35);- --color-text-muted: #94a3b8;- --color-controller-text: #94a3b8;- --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;- --font-mono: "JetBrains Mono", "Monaco", "Menlo", monospace;- --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);-}-.react-flow-container {- position: absolute;- inset: 0;- background: var(--color-bg);-}-.react-flow__node {- font-family: var(--font-sans);- cursor: pointer;-}-.react-flow__background {- background: var(--color-bg) !important;-}-.react-flow__edge-path {- stroke-width: 2;-}-.react-flow__edge-text {- font-size: 11px;- fill: var(--color-text-muted);-}-.react-flow__edge-textbg {- fill: var(--color-bg);-}-/* Selected node highlight */-.react-flow__node.selected {- box-shadow:- 0 0 0 3px var(--color-accent),- var(--shadow-lg) !important;- z-index: 1000 !important;-}-/* Pipe cards handle their own selection styling — suppress the wrapper outline */-.react-flow__node-pipeCard {- background: transparent !important;- border: none !important;- box-shadow: none !important;- outline: none !important;- padding: 0 !important;-}-.react-flow__node-pipeCard.selected {- box-shadow: none !important;- outline: none !important;-}-.react-flow__node-pipeCard.selected .pipe-card {- box-shadow:- 0 0 0 2px var(--color-accent, #3b82f6),- 0 4px 16px rgba(0, 0, 0, 0.6);-}-.react-flow__node-controllerGroup.selected {- box-shadow:- 0 0 0 2px var(--color-accent),- var(--shadow-lg) !important;-}-.react-flow__node-controllerGroup {- cursor: default !important;-}-/* ─── Controller Group Node ──────────────────────────────────────────── */-.controller-group-node {- --controller-border: 2px dashed rgba(148, 163, 184, 0.3);- --controller-bg: rgba(148, 163, 184, 0.04);- --controller-header-color: #64748b;-- width: 100%;- height: 100%;- position: relative;- border: var(--controller-border);- border-radius: 12px;- background: var(--controller-bg);-}-.controller-group-header {- position: absolute;- top: 0;- left: 0;- right: 0;- display: flex;- align-items: center;- gap: 6px;- padding: 6px 12px;- pointer-events: none;- user-select: none;-}-.controller-group-icon {- font-size: 13px;- color: var(--controller-header-color);- line-height: 1;-}-.controller-group-badge {- font-size: 9px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.06em;- color: var(--controller-header-color);- font-family: var(--font-mono, "JetBrains Mono", monospace);-}-.controller-group-label {- font-size: 11px;- font-family: var(--font-mono, "JetBrains Mono", monospace);- font-weight: 500;- color: var(--color-controller-text, #94a3b8);- white-space: nowrap;- margin-left: auto;-}--/* Collapse / expand toggle for parallel & batch controllers */-.controller-group-collapse {- all: unset;- position: absolute;- bottom: 4px;- right: 8px;- font-size: 10px;- font-family: var(--font-mono, "JetBrains Mono", monospace);- color: var(--controller-header-color, #94a3b8);- cursor: pointer;- padding: 2px 8px;- border-radius: 4px;- border: 1px dashed rgba(255, 255, 255, 0.15);- pointer-events: auto;- z-index: 10;- white-space: nowrap;-}-.controller-group-collapse:hover {- color: #e2e8f0;- border-color: rgba(255, 255, 255, 0.35);- background: rgba(255, 255, 255, 0.05);-}--/* Sequence — solid thin border, calm flow */-.controller-group--sequence {- --controller-border: 1.5px solid rgba(148, 163, 184, 0.25);- --controller-bg: rgba(148, 163, 184, 0.03);- --controller-header-color: #94a3b8;-}--/* Parallel — double border, forking lanes */-.controller-group--parallel {- --controller-border: 3px double rgba(139, 233, 253, 0.35);- --controller-bg: rgba(139, 233, 253, 0.03);- --controller-header-color: #8be9fd;-}--/* Condition — dashed with diamond accent */-.controller-group--condition {- --controller-border: 2px dashed rgba(251, 191, 36, 0.35);- --controller-bg: rgba(251, 191, 36, 0.03);- --controller-header-color: #fbbf24;-}--/* Batch — dotted border, loop/repeat */-.controller-group--batch {- --controller-border: 2px dotted rgba(167, 139, 250, 0.35);- --controller-bg: rgba(167, 139, 250, 0.03);- --controller-header-color: #a78bfa;-}--/* ─── Pipe Card Node ─────────────────────────────────────────────────── */-/* All tokens overridable via CSS custom properties on an ancestor. */-.pipe-card {- --pipe-card-accent: #ff6b6b;- --pipe-card-bg: rgba(148, 163, 184, 0.08);- --pipe-card-text: #e2e8f0;- --pipe-card-text-bright: #f8fafc;- --pipe-card-text-muted: #94a3b8;- --pipe-card-text-dim: #64748b;- --pipe-card-pill-bg: rgba(255, 255, 255, 0.06);- --pipe-card-pill-border: rgba(255, 255, 255, 0.08);- --pipe-card-pill-text: #cbd5e1;- --pipe-card-radius: 8px;-- border-left: 4px solid var(--pipe-card-accent);- border-radius: var(--pipe-card-radius);- padding: 12px 14px;- background: var(--pipe-card-bg);- font-family: var(--font-sans, "Inter", -apple-system, sans-serif);- color: var(--pipe-card-text);- display: flex;- flex-direction: column;- gap: 8px;- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);- transition: box-shadow 0.2s;- /* Fill the ReactFlow wrapper whose size is locked to ELK's layout dimensions */- width: 100%;- height: 100%;- box-sizing: border-box;- overflow: hidden;-}-.pipe-card:hover {- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);-}--/* Direction-aware sizing: LR = narrow + tall, TB = wide + short */-.pipe-card--lr {- min-width: 180px;- max-width: 240px;-}-.pipe-card--tb {- min-width: 280px;- max-width: 400px;-}--/* Header: badge + code + status */-.pipe-card-header {- display: flex;- align-items: center;- gap: 8px;-}-.pipe-card-badge {- font-size: 10px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.04em;- padding: 2px 7px;- border-radius: 4px;- white-space: nowrap;- line-height: 1.4;- background: var(--pipe-card-accent);- color: #0e0e0e;-}-.pipe-card-code {- font-family: var(--font-mono, "JetBrains Mono", monospace);- font-size: 13px;- font-weight: 600;- color: var(--pipe-card-accent);- flex: 1;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}-.pipe-card-status {- display: flex;- align-items: center;- margin-left: auto;- flex-shrink: 0;-}-.pipe-card-status-dot {- width: 8px;- height: 8px;- border-radius: 50%;- display: inline-block;-}-.pipe-card-status-dot--pulse {- animation: pipe-card-pulse 1.5s ease-in-out infinite;-}-@keyframes pipe-card-pulse {- 0%,- 100% {- opacity: 1;- transform: scale(1);- }- 50% {- opacity: 0.5;- transform: scale(1.3);- }-}--/* Description */-.pipe-card-description {- font-size: 11.5px;- color: var(--pipe-card-text-muted);- line-height: 1.4;- display: -webkit-box;- -webkit-line-clamp: 2;- -webkit-box-orient: vertical;- overflow: hidden;-}--/* I/O section — base (appearance only, layout set per-direction below) */-.pipe-card-io-label {- font-size: 9px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.06em;- color: var(--pipe-card-text-dim);- flex-shrink: 0;-}-.pipe-card-io-pills {- display: flex;- gap: 4px;- min-width: 0;-}-.pipe-card-io-pill {- display: inline-flex;- align-items: center;- gap: 3px;- font-size: 10px;- background: var(--pipe-card-pill-bg);- border: 1px solid var(--pipe-card-pill-border);- border-radius: 4px;- padding: 1px 5px;- line-height: 1.4;- min-width: 0;-}-.pipe-card-io-pill-name {- font-family: var(--font-mono, "JetBrains Mono", monospace);- color: var(--pipe-card-pill-text);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}-.pipe-card-io-pill-concept {- color: var(--pipe-card-text-dim);- font-size: 9px;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}-.pipe-card-io-more {- all: unset;- font-size: 10px;- font-family: var(--font-mono, "JetBrains Mono", monospace);- color: var(--pipe-card-text-muted);- cursor: pointer;- padding: 2px 6px;- border-radius: 4px;- border: 1px dashed rgba(255, 255, 255, 0.12);- white-space: nowrap;- line-height: 1.4;-}-.pipe-card-io-more:hover {- color: var(--pipe-card-text);- border-color: rgba(255, 255, 255, 0.25);-}--/* ─── LR: label on top, pills stacked vertically, hard-truncated ─────── */-/* Truncation priority: concept shrinks first → name truncates last. */-.pipe-card--lr .pipe-card-io {- display: flex;- flex-direction: column;- gap: 4px;-}-.pipe-card--lr .pipe-card-io-pills {- flex-direction: column;- align-items: flex-start; /* pills size to content, not stretch */- gap: 4px;-}-.pipe-card--lr .pipe-card-io-pill {- max-width: 100%;- overflow: hidden;-}-.pipe-card--lr .pipe-card-io-pill-name {- flex: 0 1 auto; /* natural width, shrinks only after concept is gone */- min-width: 30px;-}-.pipe-card--lr .pipe-card-io-pill-concept {- flex: 0 100 auto; /* natural width, shrinks 100x faster than name */- min-width: 0; /* allow shrinking to zero */-}-.pipe-card--lr .pipe-card-io-more {- align-self: flex-start;-}--/* ─── TB: label on the left, pills wrap horizontally to the right ────── */-.pipe-card--tb .pipe-card-io {- display: flex;- flex-direction: row;- align-items: flex-start;- gap: 6px;-}-.pipe-card--tb .pipe-card-io-label {- padding-top: 4px;- min-width: 52px;-}-.pipe-card--tb .pipe-card-io-pills {- flex: 1 1 0;- flex-wrap: wrap;- min-width: 0;-}-.pipe-card--tb .pipe-card-io-pill {- max-width: 100%;-}-.pipe-card--tb .pipe-card-io-pill-name {- max-width: 140px;-}-.pipe-card--tb .pipe-card-io-pill-concept {- max-width: 100px;-}--/* ─── StuffViewer component styles ────────────────────────────────────────── */-/* Uses CSS custom properties for consumer theming. Defaults match graph-core.css. */--.stuff-viewer {- --sv-bg: var(--color-bg, #0a0a0a);- --sv-surface: var(--color-surface, #16213e);- --sv-surface-hover: var(--color-surface-hover, #1f2b47);- --sv-border: var(--color-border, #2a3a5a);- --sv-text: var(--color-text, #e2e8f0);- --sv-text-muted: var(--color-text-muted, #94a3b8);- --sv-accent: var(--color-accent, #3b82f6);- --sv-success: #10b981;- --sv-success-bg: rgba(16, 185, 129, 0.2);- --sv-radius: 4px;- --sv-font-sans: var(- --font-sans,- "Inter",- -apple-system,- BlinkMacSystemFont,- "Segoe UI",- sans-serif- );- --sv-font-mono: var(--font-mono, "JetBrains Mono", "Monaco", "Menlo", monospace);-- font-family: var(--sv-font-sans);- color: var(--sv-text);- display: flex;- flex-direction: column;- height: 100%;-}--/* ─── Header ─────────────────────────────────────────────────────────────── */--.stuff-viewer-header {- display: flex;- flex-direction: column;- gap: 2px;- padding: 12px 16px 8px;- border-bottom: 1px solid var(--sv-border);- flex-shrink: 0;-}--.stuff-viewer-title {- font-size: 14px;- font-weight: 600;- color: var(--sv-text);- margin: 0;-}--.stuff-viewer-subtitle {- font-size: 12px;- color: var(--sv-text-muted);- margin: 0;-}--/* ─── Toolbar: tabs + action buttons ─────────────────────────────────────── */--.stuff-viewer-toolbar {- display: flex;- justify-content: space-between;- align-items: center;- padding: 8px 16px;- gap: 8px;- flex-shrink: 0;-}--.stuff-viewer-tabs {- display: flex;- gap: 4px;-}--.stuff-viewer-tab {- padding: 5px 10px;- border-radius: var(--sv-radius);- cursor: pointer;- font-size: 12px;- font-weight: 500;- background: var(--sv-surface-hover);- color: var(--sv-text-muted);- border: none;- transition:- background 0.15s,- color 0.15s;-}--.stuff-viewer-tab:hover {- background: var(--sv-border);- color: var(--sv-text);-}--.stuff-viewer-tab--active {- background: var(--sv-accent);- color: #fff;-}--/* ─── Action buttons ─────────────────────────────────────────────────────── */--.stuff-viewer-actions {- display: flex;- gap: 4px;-}--.stuff-viewer-action-btn {- display: flex;- align-items: center;- justify-content: center;- width: 28px;- height: 28px;- border-radius: var(--sv-radius);- cursor: pointer;- background: var(--sv-surface-hover);- color: var(--sv-text-muted);- border: none;- transition:- background 0.15s,- color 0.15s;-}--.stuff-viewer-action-btn:hover {- background: var(--sv-border);- color: var(--sv-text);-}--.stuff-viewer-action-btn--copied {- background: var(--sv-success-bg);- color: var(--sv-success);-}--.stuff-viewer-action-btn svg {- width: 14px;- height: 14px;- fill: currentColor;-}--/* ─── Content area ───────────────────────────────────────────────────────── */--.stuff-viewer-content {- flex: 1;- overflow: auto;- padding: 12px 16px 16px;- min-height: 0;-}--/* Pre-formatted text (JSON and Pretty tabs) */-.stuff-viewer-pre {- font-family: var(--sv-font-mono);- font-size: 11px;- line-height: 1.5;- white-space: pre-wrap;- word-wrap: break-word;- margin: 0;- color: var(--sv-text-muted);-}--.stuff-viewer-pre--nowrap {- white-space: pre;- word-wrap: normal;- line-height: 1;- overflow-x: auto;- padding-right: 20px;-}--/* HTML content */-.stuff-viewer-html {- font-family: var(--sv-font-sans);- font-size: 11px;- color: var(--sv-text-muted);- line-height: 1.5;-}--.stuff-viewer-html table {- border-collapse: collapse;- width: 100%;-}--.stuff-viewer-html th,-.stuff-viewer-html td {- border: 1px solid var(--sv-border);- padding: 8px 12px;- text-align: left;-}--.stuff-viewer-html th {- background: var(--sv-surface-hover);- color: var(--sv-text);- font-weight: 600;-}--.stuff-viewer-html tr:hover {- background: var(--sv-surface-hover);-}--.stuff-viewer-html a {- color: var(--sv-accent);- text-decoration: none;-}--.stuff-viewer-html a:hover {- text-decoration: underline;-}--.stuff-viewer-html ul {- list-style: none;- padding-left: 0;- margin: 0;-}--/* PDF embed */-.stuff-viewer-pdf {- min-height: 400px;- height: 100%;-}--.stuff-viewer-pdf embed {- width: 100%;- height: 100%;- min-height: 500px;- border: none;-}--/* Image content */-.stuff-viewer-image {- display: flex;- justify-content: center;- align-items: center;- min-height: 200px;-}--.stuff-viewer-image img {- max-width: 100%;- max-height: 70vh;- object-fit: contain;-}--/* Placeholder for missing data */-.stuff-viewer-placeholder {- color: var(--sv-text-muted);- font-style: italic;- font-size: 13px;-}--/* ─── Detail Panel — sliding side panel for node inspection ─────────────── */--.detail-panel {- position: absolute;- top: 0;- right: 0;- width: 380px;- height: 100%;- background: #111118;- border-left: 1px solid rgba(255, 255, 255, 0.1);- z-index: 10;- display: flex;- flex-direction: column;- font-family: "Inter", -apple-system, sans-serif;- color: #e2e8f0;- overflow: hidden;- transition: transform 0.2s ease;-}--.detail-panel--closed {- transform: translateX(100%);- pointer-events: none;-}--.detail-panel-close {- all: unset;- cursor: pointer;- position: absolute;- top: 12px;- right: 12px;- width: 24px;- height: 24px;- display: flex;- align-items: center;- justify-content: center;- border-radius: 4px;- color: #64748b;- font-size: 18px;- line-height: 1;- z-index: 1;-}--.detail-panel-close:hover {- color: #94a3b8;- background: rgba(255, 255, 255, 0.06);-}--.detail-panel-content {- flex: 1;- overflow-y: auto;- padding: 20px 16px;- display: flex;- flex-direction: column;- gap: 16px;-}--/* ─── Shared detail components ──────────────────────────────────────────── */--.detail-section-label {- font-size: 9px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.06em;- color: #64748b;- margin-bottom: 6px;-}--.detail-header {- display: flex;- align-items: center;- gap: 8px;-}--.detail-badge {- font-size: 10px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.04em;- padding: 2px 7px;- border-radius: 4px;- white-space: nowrap;-}--.detail-badge--operator {- background: #ff6b6b;- color: #0e0e0e;-}--.detail-badge--controller {- background: #bd93f9;- color: #0e0e0e;-}--.detail-pipe-code {- font-family: "JetBrains Mono", "Monaco", monospace;- font-size: 14px;- font-weight: 600;- color: #ff6b6b;-}--.detail-pipe-code--controller {- color: #bd93f9;-}--.detail-status {- display: flex;- align-items: center;- gap: 8px;-}--.detail-status-dot {- width: 8px;- height: 8px;- border-radius: 50%;- display: inline-block;-}--.detail-status-label {- font-size: 12px;- font-weight: 600;- text-transform: capitalize;-}--.detail-duration {- font-size: 11px;- color: #64748b;- font-family: "JetBrains Mono", "Monaco", monospace;-}--.detail-description {- font-size: 12px;- color: #94a3b8;- line-height: 1.5;-}--/* ─── IO Pills ──────────────────────────────────────────────────────────── */--.detail-io-pill {- display: flex;- align-items: center;- gap: 6px;- font-size: 11px;- padding: 3px 8px;- border-radius: 4px;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.06);-}--.detail-io-name {- font-family: "JetBrains Mono", "Monaco", monospace;- color: #e2e8f0;-}--.detail-io-concept {- color: #64748b;- font-size: 10px;-}--.detail-io-list {- display: flex;- flex-direction: column;- gap: 4px;-}--/* ─── Blueprint-specific sections ───────────────────────────────────────── */--.detail-prompt-block {- font-family: "JetBrains Mono", "Monaco", monospace;- font-size: 11px;- color: #94a3b8;- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: 6px;- padding: 10px 12px;- white-space: pre-wrap;- word-break: break-word;- max-height: 200px;- overflow-y: auto;- line-height: 1.5;-}--.detail-kv-row {- display: flex;- justify-content: space-between;- align-items: center;- font-size: 11px;- padding: 3px 0;-}--.detail-kv-key {- color: #64748b;-}--.detail-kv-value {- font-family: "JetBrains Mono", "Monaco", monospace;- color: #e2e8f0;-}--/* ─── Concept schema table ──────────────────────────────────────────────── */--.detail-schema-table {- width: 100%;- font-size: 11px;- border-collapse: collapse;-}--.detail-schema-table th {- text-align: left;- font-weight: 700;- color: #64748b;- font-size: 9px;- text-transform: uppercase;- letter-spacing: 0.06em;- padding: 4px 6px;- border-bottom: 1px solid rgba(255, 255, 255, 0.08);-}--.detail-schema-table td {- padding: 4px 6px;- border-bottom: 1px solid rgba(255, 255, 255, 0.04);- color: #94a3b8;-}--.detail-schema-field {- font-family: "JetBrains Mono", "Monaco", monospace;- color: #e2e8f0;-}--.detail-schema-type {- color: #8be9fd;-}--.detail-schema-required {- color: #ff6b6b;- font-size: 9px;-}--/* ─── Error section ─────────────────────────────────────────────────────── */--.detail-error {- background: rgba(255, 85, 85, 0.08);- border: 1px solid rgba(255, 85, 85, 0.2);- border-radius: 6px;- padding: 10px 12px;-}--.detail-error-type {- font-size: 12px;- font-weight: 600;- color: #ff5555;- margin-bottom: 4px;-}--.detail-error-message {- font-size: 11px;- color: #94a3b8;- line-height: 1.5;-}--.detail-error-stack {- font-family: "JetBrains Mono", "Monaco", monospace;- font-size: 10px;- color: #64748b;- margin-top: 8px;- max-height: 150px;- overflow-y: auto;- white-space: pre-wrap;- word-break: break-word;-}--/* ─── Steps list (PipeSequence, PipeCondition outcomes) ─────────────────── */--.detail-steps-list {- display: flex;- flex-direction: column;- gap: 4px;-}--.detail-step-item {- display: flex;- align-items: center;- gap: 8px;- font-size: 11px;- padding: 4px 8px;- border-radius: 4px;- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);-}--.detail-step-index {- color: #64748b;- font-size: 10px;- font-weight: 700;- min-width: 16px;-}--.detail-step-code {- font-family: "JetBrains Mono", "Monaco", monospace;- color: #e2e8f0;-}--/* ─── Tags/Metrics ──────────────────────────────────────────────────────── */--.detail-tags {- display: flex;- flex-wrap: wrap;- gap: 4px;-}--.detail-tag {- font-size: 10px;- padding: 2px 6px;- border-radius: 3px;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.06);-}--.detail-tag-key {- color: #64748b;-}--.detail-tag-value {- color: #e2e8f0;- font-family: "JetBrains Mono", "Monaco", monospace;-}--/* ─── Concept panel header ──────────────────────────────────────────────── */--.detail-concept-code {- font-family: "JetBrains Mono", "Monaco", monospace;- font-size: 14px;- font-weight: 600;- color: #50fa7b;-}--.detail-concept-domain {- font-size: 11px;- color: #64748b;-}--.detail-refines {- font-size: 11px;- color: #94a3b8;-}--.detail-refines-code {- font-family: "JetBrains Mono", "Monaco", monospace;- color: #8be9fd;-}--/* ─── Not available fallback ────────────────────────────────────────────── */--.detail-not-available {- font-size: 12px;- color: #64748b;- font-style: italic;- padding: 8px 0;-}--/* ─── Standalone GraphViewer chrome (toolbar, theme, layout) ─────────── */--* { box-sizing: border-box; margin: 0; padding: 0; }--html, body {- height: 100%;- overflow: hidden;- font-family: "Inter", -apple-system, sans-serif;-}--/* ─── Theme system ──────────────────────────────────────────────────── */--body[data-theme="dark"], body:not([data-theme]) {- --chrome-bg: #0d1117;- --chrome-surface: #161b22;- --chrome-border: rgba(255,255,255,0.08);- --chrome-text: #e2e8f0;- --chrome-text-muted: #8b949e;- background: #0a0a0f;- color: #e2e8f0;-}--body[data-theme="light"] {- --chrome-bg: #ffffff;- --chrome-surface: #f6f8fa;- --chrome-border: rgba(0,0,0,0.1);- --chrome-text: #1f2328;- --chrome-text-muted: #656d76;- background: #ffffff;- color: #1f2328;-}--@media (prefers-color-scheme: light) {- body[data-theme="system"] {- --chrome-bg: #ffffff;- --chrome-surface: #f6f8fa;- --chrome-border: rgba(0,0,0,0.1);- --chrome-text: #1f2328;- --chrome-text-muted: #656d76;- background: #ffffff;- color: #1f2328;- }-}--@media (prefers-color-scheme: dark) {- body[data-theme="system"] {- --chrome-bg: #0d1117;- --chrome-surface: #161b22;- --chrome-border: rgba(255,255,255,0.08);- --chrome-text: #e2e8f0;- --chrome-text-muted: #8b949e;- background: #0a0a0f;- color: #e2e8f0;- }-}--/* ─── Layout ────────────────────────────────────────────────────────── */--#app-container {- display: flex;- flex-direction: column;- height: 100vh;-}--#root {- flex: 1;- position: relative;- min-height: 0;-}--/* ─── Toolbar ───────────────────────────────────────────────────────── */--.toolbar {- display: flex;- align-items: center;- gap: 8px;- padding: 6px 12px;- background: var(--chrome-surface);- border-bottom: 1px solid var(--chrome-border);- flex-shrink: 0;- z-index: 20;-}--.toolbar-spacer { flex: 1; }--.toolbar-btn {- all: unset;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- width: 28px;- height: 28px;- border-radius: 4px;- color: var(--chrome-text-muted);- transition: background 0.15s, color 0.15s;-}--.toolbar-btn:hover {- background: var(--chrome-border);- color: var(--chrome-text);-}--.toolbar-zoom {- display: flex;- gap: 2px;-}--/* Direction toggle */-.direction-icon { display: none; }-.direction-icon.active { display: inline-flex; }--/* Controllers toggle */-.toggle-switch {- display: flex;- align-items: center;- gap: 6px;- cursor: pointer;- font-size: 11px;- color: var(--chrome-text-muted);- user-select: none;-}--.toggle-switch input { display: none; }--.toggle-track {- width: 28px;- height: 16px;- border-radius: 8px;- background: var(--chrome-border);- position: relative;- transition: background 0.15s;-}--.toggle-switch input:checked + .toggle-track {- background: #50FA7B44;-}--.toggle-knob {- position: absolute;- top: 2px;- left: 2px;- width: 12px;- height: 12px;- border-radius: 50%;- background: var(--chrome-text-muted);- transition: left 0.15s, background 0.15s;-}--.toggle-switch input:checked + .toggle-track .toggle-knob {- left: 14px;- background: #50FA7B;-}--.toggle-label {- font-size: 11px;-}--/* Theme toggle */-.theme-btn {- all: unset;- cursor: pointer;- display: flex;- align-items: center;- gap: 4px;- font-size: 10px;- color: var(--chrome-text-muted);- padding: 4px 8px;- border-radius: 4px;- transition: background 0.15s;-}--.theme-btn:hover {- background: var(--chrome-border);-}--.theme-label {- text-transform: capitalize;-}--/* ─── Header branding ───────────────────────────────────────────────── */--.header-brand {- display: flex;- align-items: center;- gap: 8px;-}--.header-logo {- height: 18px;- opacity: 0.7;-}--body[data-theme="dark"] .header-logo.light-logo,-body:not([data-theme]) .header-logo.light-logo {- display: none;-}--body[data-theme="light"] .header-logo.dark-logo {- display: none;-}--body[data-theme="light"] .header-logo.light-logo {- display: inline;-}--.header-title {- font-size: 12px;- font-weight: 600;- color: var(--chrome-text-muted);-}--</style>-</head>-<body data-theme="<!--PIPELEX_THEME-->">-<div id="app-container">- <div class="toolbar">- <div class="header-brand">- <img src="<!--PIPELEX_LOGO_DARK-->" alt="Pipelex" class="header-logo dark-logo">- <img src="<!--PIPELEX_LOGO_LIGHT-->" alt="Pipelex" class="header-logo light-logo">- <span class="header-title"><!--PIPELEX_TITLE--></span>- </div>- <button id="direction-toggle" class="toolbar-btn" title="Toggle layout direction">- <span class="direction-icon lr-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg></span>- <span class="direction-icon tb-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><polyline points="19 12 12 19 5 12"/></svg></span>- </button>- <label class="toggle-switch" title="Show/hide controller containers">- <input type="checkbox" id="controllers-toggle">- <span class="toggle-track"><span class="toggle-knob"></span></span>- <span class="toggle-label">Controllers</span>- </label>- <div class="toolbar-spacer"></div>- <div class="toolbar-zoom">- <button id="zoom-out" class="toolbar-btn" title="Zoom out"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/></svg></button>- <button id="zoom-in" class="toolbar-btn" title="Zoom in"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg></button>- <button id="zoom-fit" class="toolbar-btn" title="Fit to view"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"/></svg></button>- </div>- <button id="theme-toggle" class="theme-btn" title="Toggle theme">- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>- <span class="theme-label"><!--PIPELEX_THEME--></span>- </button>- </div>- <div id="root"></div>-</div>--<script type="application/json" id="pipelex-graphspec"><!--PIPELEX_GRAPHSPEC--></script>-<script type="application/json" id="pipelex-config"><!--PIPELEX_CONFIG--></script>--<script nonce="PIPELEX_CSP_NONCE">"use strict";(()=>{var Hit=Object.create;var y3n=Object.defineProperty;var Jit=Object.getOwnPropertyDescriptor;var Uit=Object.getOwnPropertyNames;var qit=Object.getPrototypeOf,Xit=Object.prototype.hasOwnProperty;var JB=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(f,d)=>(typeof require<"u"?require:f)[d]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var N1=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports);var Kit=(o,f,d,g)=>{if(f&&typeof f=="object"||typeof f=="function")for(let m of Uit(f))!Xit.call(o,m)&&m!==d&&y3n(o,m,{get:()=>f[m],enumerable:!(g=Jit(f,m))||g.enumerable});return o};var xr=(o,f,d)=>(d=o!=null?Hit(qit(o)):{},Kit(f||!o||!o.__esModule?y3n(d,"default",{value:o,enumerable:!0}):d,o));var _3n=N1(hc=>{"use strict";var i6e=Symbol.for("react.transitional.element"),Vit=Symbol.for("react.portal"),Yit=Symbol.for("react.fragment"),Qit=Symbol.for("react.strict_mode"),Wit=Symbol.for("react.profiler"),Zit=Symbol.for("react.consumer"),ert=Symbol.for("react.context"),nrt=Symbol.for("react.forward_ref"),trt=Symbol.for("react.suspense"),irt=Symbol.for("react.memo"),A3n=Symbol.for("react.lazy"),rrt=Symbol.for("react.activity"),k3n=Symbol.iterator;function crt(o){return o===null||typeof o!="object"?null:(o=k3n&&o[k3n]||o["@@iterator"],typeof o=="function"?o:null)}var C3n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M3n=Object.assign,x3n={};function wj(o,f,d){this.props=o,this.context=f,this.refs=x3n,this.updater=d||C3n}wj.prototype.isReactComponent={};wj.prototype.setState=function(o,f){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,f,"setState")};wj.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function j3n(){}j3n.prototype=wj.prototype;function r6e(o,f,d){this.props=o,this.context=f,this.refs=x3n,this.updater=d||C3n}var c6e=r6e.prototype=new j3n;c6e.constructor=r6e;M3n(c6e,wj.prototype);c6e.isPureReactComponent=!0;var E3n=Array.isArray;function t6e(){}var Ps={H:null,A:null,T:null,S:null},O3n=Object.prototype.hasOwnProperty;function u6e(o,f,d){var g=d.ref;return{$$typeof:i6e,type:o,key:f,ref:g!==void 0?g:null,props:d}}function urt(o,f){return u6e(o.type,f,o.props)}function o6e(o){return typeof o=="object"&&o!==null&&o.$$typeof===i6e}function ort(o){var f={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(d){return f[d]})}var S3n=/\/+/g;function n6e(o,f){return typeof o=="object"&&o!==null&&o.key!=null?ort(""+o.key):f.toString(36)}function srt(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(t6e,t6e):(o.status="pending",o.then(function(f){o.status==="pending"&&(o.status="fulfilled",o.value=f)},function(f){o.status==="pending"&&(o.status="rejected",o.reason=f)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function gj(o,f,d,g,m){var S=typeof o;(S==="undefined"||S==="boolean")&&(o=null);var A=!1;if(o===null)A=!0;else switch(S){case"bigint":case"string":case"number":A=!0;break;case"object":switch(o.$$typeof){case i6e:case Vit:A=!0;break;case A3n:return A=o._init,gj(A(o._payload),f,d,g,m)}}if(A)return m=m(o),A=g===""?"."+n6e(o,0):g,E3n(m)?(d="",A!=null&&(d=A.replace(S3n,"$&/")+"/"),gj(m,f,d,"",function(R){return R})):m!=null&&(o6e(m)&&(m=urt(m,d+(m.key==null||o&&o.key===m.key?"":(""+m.key).replace(S3n,"$&/")+"/")+A)),f.push(m)),1;A=0;var k=g===""?".":g+":";if(E3n(o))for(var N=0;N<o.length;N++)g=o[N],S=k+n6e(g,N),A+=gj(g,f,d,S,m);else if(N=crt(o),typeof N=="function")for(o=N.call(o),N=0;!(g=o.next()).done;)g=g.value,S=k+n6e(g,N++),A+=gj(g,f,d,S,m);else if(S==="object"){if(typeof o.then=="function")return gj(srt(o),f,d,g,m);throw f=String(o),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return A}function QZ(o,f,d){if(o==null)return o;var g=[],m=0;return gj(o,g,"","",function(S){return f.call(d,S,m++)}),g}function lrt(o){if(o._status===-1){var f=o._result;f=f(),f.then(function(d){(o._status===0||o._status===-1)&&(o._status=1,o._result=d)},function(d){(o._status===0||o._status===-1)&&(o._status=2,o._result=d)}),o._status===-1&&(o._status=0,o._result=f)}if(o._status===1)return o._result.default;throw o._result}var T3n=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},frt={map:QZ,forEach:function(o,f,d){QZ(o,function(){f.apply(this,arguments)},d)},count:function(o){var f=0;return QZ(o,function(){f++}),f},toArray:function(o){return QZ(o,function(f){return f})||[]},only:function(o){if(!o6e(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};hc.Activity=rrt;hc.Children=frt;hc.Component=wj;hc.Fragment=Yit;hc.Profiler=Wit;hc.PureComponent=r6e;hc.StrictMode=Qit;hc.Suspense=trt;hc.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ps;hc.__COMPILER_RUNTIME={__proto__:null,c:function(o){return Ps.H.useMemoCache(o)}};hc.cache=function(o){return function(){return o.apply(null,arguments)}};hc.cacheSignal=function(){return null};hc.cloneElement=function(o,f,d){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var g=M3n({},o.props),m=o.key;if(f!=null)for(S in f.key!==void 0&&(m=""+f.key),f)!O3n.call(f,S)||S==="key"||S==="__self"||S==="__source"||S==="ref"&&f.ref===void 0||(g[S]=f[S]);var S=arguments.length-2;if(S===1)g.children=d;else if(1<S){for(var A=Array(S),k=0;k<S;k++)A[k]=arguments[k+2];g.children=A}return u6e(o.type,m,g)};hc.createContext=function(o){return o={$$typeof:ert,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:Zit,_context:o},o};hc.createElement=function(o,f,d){var g,m={},S=null;if(f!=null)for(g in f.key!==void 0&&(S=""+f.key),f)O3n.call(f,g)&&g!=="key"&&g!=="__self"&&g!=="__source"&&(m[g]=f[g]);var A=arguments.length-2;if(A===1)m.children=d;else if(1<A){for(var k=Array(A),N=0;N<A;N++)k[N]=arguments[N+2];m.children=k}if(o&&o.defaultProps)for(g in A=o.defaultProps,A)m[g]===void 0&&(m[g]=A[g]);return u6e(o,S,m)};hc.createRef=function(){return{current:null}};hc.forwardRef=function(o){return{$$typeof:nrt,render:o}};hc.isValidElement=o6e;hc.lazy=function(o){return{$$typeof:A3n,_payload:{_status:-1,_result:o},_init:lrt}};hc.memo=function(o,f){return{$$typeof:irt,type:o,compare:f===void 0?null:f}};hc.startTransition=function(o){var f=Ps.T,d={};Ps.T=d;try{var g=o(),m=Ps.S;m!==null&&m(d,g),typeof g=="object"&&g!==null&&typeof g.then=="function"&&g.then(t6e,T3n)}catch(S){T3n(S)}finally{f!==null&&d.types!==null&&(f.types=d.types),Ps.T=f}};hc.unstable_useCacheRefresh=function(){return Ps.H.useCacheRefresh()};hc.use=function(o){return Ps.H.use(o)};hc.useActionState=function(o,f,d){return Ps.H.useActionState(o,f,d)};hc.useCallback=function(o,f){return Ps.H.useCallback(o,f)};hc.useContext=function(o){return Ps.H.useContext(o)};hc.useDebugValue=function(){};hc.useDeferredValue=function(o,f){return Ps.H.useDeferredValue(o,f)};hc.useEffect=function(o,f){return Ps.H.useEffect(o,f)};hc.useEffectEvent=function(o){return Ps.H.useEffectEvent(o)};hc.useId=function(){return Ps.H.useId()};hc.useImperativeHandle=function(o,f,d){return Ps.H.useImperativeHandle(o,f,d)};hc.useInsertionEffect=function(o,f){return Ps.H.useInsertionEffect(o,f)};hc.useLayoutEffect=function(o,f){return Ps.H.useLayoutEffect(o,f)};hc.useMemo=function(o,f){return Ps.H.useMemo(o,f)};hc.useOptimistic=function(o,f){return Ps.H.useOptimistic(o,f)};hc.useReducer=function(o,f,d){return Ps.H.useReducer(o,f,d)};hc.useRef=function(o){return Ps.H.useRef(o)};hc.useState=function(o){return Ps.H.useState(o)};hc.useSyncExternalStore=function(o,f,d){return Ps.H.useSyncExternalStore(o,f,d)};hc.useTransition=function(){return Ps.H.useTransition()};hc.version="19.2.4"});var pg=N1((ELt,N3n)=>{"use strict";N3n.exports=_3n()});var z3n=N1(sl=>{"use strict";function a6e(o,f){var d=o.length;o.push(f);e:for(;0<d;){var g=d-1>>>1,m=o[g];if(0<WZ(m,f))o[g]=f,o[d]=m,d=g;else break e}}function i3(o){return o.length===0?null:o[0]}function eee(o){if(o.length===0)return null;var f=o[0],d=o.pop();if(d!==f){o[0]=d;e:for(var g=0,m=o.length,S=m>>>1;g<S;){var A=2*(g+1)-1,k=o[A],N=A+1,R=o[N];if(0>WZ(k,d))N<m&&0>WZ(R,k)?(o[g]=R,o[N]=d,g=N):(o[g]=k,o[A]=d,g=A);else if(N<m&&0>WZ(R,d))o[g]=R,o[N]=d,g=N;else break e}}return f}function WZ(o,f){var d=o.sortIndex-f.sortIndex;return d!==0?d:o.id-f.id}sl.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(D3n=performance,sl.unstable_now=function(){return D3n.now()}):(s6e=Date,I3n=s6e.now(),sl.unstable_now=function(){return s6e.now()-I3n});var D3n,s6e,I3n,A5=[],i8=[],art=1,Xw=null,Rd=3,h6e=!1,UB=!1,qB=!1,d6e=!1,R3n=typeof setTimeout=="function"?setTimeout:null,B3n=typeof clearTimeout=="function"?clearTimeout:null,L3n=typeof setImmediate<"u"?setImmediate:null;function ZZ(o){for(var f=i3(i8);f!==null;){if(f.callback===null)eee(i8);else if(f.startTime<=o)eee(i8),f.sortIndex=f.expirationTime,a6e(A5,f);else break;f=i3(i8)}}function b6e(o){if(qB=!1,ZZ(o),!UB)if(i3(A5)!==null)UB=!0,mj||(mj=!0,pj());else{var f=i3(i8);f!==null&&g6e(b6e,f.startTime-o)}}var mj=!1,XB=-1,$3n=5,F3n=-1;function G3n(){return d6e?!0:!(sl.unstable_now()-F3n<$3n)}function l6e(){if(d6e=!1,mj){var o=sl.unstable_now();F3n=o;var f=!0;try{e:{UB=!1,qB&&(qB=!1,B3n(XB),XB=-1),h6e=!0;var d=Rd;try{n:{for(ZZ(o),Xw=i3(A5);Xw!==null&&!(Xw.expirationTime>o&&G3n());){var g=Xw.callback;if(typeof g=="function"){Xw.callback=null,Rd=Xw.priorityLevel;var m=g(Xw.expirationTime<=o);if(o=sl.unstable_now(),typeof m=="function"){Xw.callback=m,ZZ(o),f=!0;break n}Xw===i3(A5)&&eee(A5),ZZ(o)}else eee(A5);Xw=i3(A5)}if(Xw!==null)f=!0;else{var S=i3(i8);S!==null&&g6e(b6e,S.startTime-o),f=!1}}break e}finally{Xw=null,Rd=d,h6e=!1}f=void 0}}finally{f?pj():mj=!1}}}var pj;typeof L3n=="function"?pj=function(){L3n(l6e)}:typeof MessageChannel<"u"?(f6e=new MessageChannel,P3n=f6e.port2,f6e.port1.onmessage=l6e,pj=function(){P3n.postMessage(null)}):pj=function(){R3n(l6e,0)};var f6e,P3n;function g6e(o,f){XB=R3n(function(){o(sl.unstable_now())},f)}sl.unstable_IdlePriority=5;sl.unstable_ImmediatePriority=1;sl.unstable_LowPriority=4;sl.unstable_NormalPriority=3;sl.unstable_Profiling=null;sl.unstable_UserBlockingPriority=2;sl.unstable_cancelCallback=function(o){o.callback=null};sl.unstable_forceFrameRate=function(o){0>o||125<o?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$3n=0<o?Math.floor(1e3/o):5};sl.unstable_getCurrentPriorityLevel=function(){return Rd};sl.unstable_next=function(o){switch(Rd){case 1:case 2:case 3:var f=3;break;default:f=Rd}var d=Rd;Rd=f;try{return o()}finally{Rd=d}};sl.unstable_requestPaint=function(){d6e=!0};sl.unstable_runWithPriority=function(o,f){switch(o){case 1:case 2:case 3:case 4:case 5:break;default:o=3}var d=Rd;Rd=o;try{return f()}finally{Rd=d}};sl.unstable_scheduleCallback=function(o,f,d){var g=sl.unstable_now();switch(typeof d=="object"&&d!==null?(d=d.delay,d=typeof d=="number"&&0<d?g+d:g):d=g,o){case 1:var m=-1;break;case 2:m=250;break;case 5:m=1073741823;break;case 4:m=1e4;break;default:m=5e3}return m=d+m,o={id:art++,callback:f,priorityLevel:o,startTime:d,expirationTime:m,sortIndex:-1},d>g?(o.sortIndex=d,a6e(i8,o),i3(A5)===null&&o===i3(i8)&&(qB?(B3n(XB),XB=-1):qB=!0,g6e(b6e,d-g))):(o.sortIndex=m,a6e(A5,o),UB||h6e||(UB=!0,mj||(mj=!0,pj()))),o};sl.unstable_shouldYield=G3n;sl.unstable_wrapCallback=function(o){var f=Rd;return function(){var d=Rd;Rd=f;try{return o.apply(this,arguments)}finally{Rd=d}}}});var J3n=N1((TLt,H3n)=>{"use strict";H3n.exports=z3n()});var q3n=N1(I1=>{"use strict";var hrt=pg();function U3n(o){var f="https://react.dev/errors/"+o;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)f+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r8(){}var D1={d:{f:r8,r:function(){throw Error(U3n(522))},D:r8,C:r8,L:r8,m:r8,X:r8,S:r8,M:r8},p:0,findDOMNode:null},drt=Symbol.for("react.portal");function brt(o,f,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:drt,key:g==null?null:""+g,children:o,containerInfo:f,implementation:d}}var KB=hrt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function nee(o,f){if(o==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}I1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D1;I1.createPortal=function(o,f){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(U3n(299));return brt(o,f,null,d)};I1.flushSync=function(o){var f=KB.T,d=D1.p;try{if(KB.T=null,D1.p=2,o)return o()}finally{KB.T=f,D1.p=d,D1.d.f()}};I1.preconnect=function(o,f){typeof o=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,D1.d.C(o,f))};I1.prefetchDNS=function(o){typeof o=="string"&&D1.d.D(o)};I1.preinit=function(o,f){if(typeof o=="string"&&f&&typeof f.as=="string"){var d=f.as,g=nee(d,f.crossOrigin),m=typeof f.integrity=="string"?f.integrity:void 0,S=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;d==="style"?D1.d.S(o,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:m,fetchPriority:S}):d==="script"&&D1.d.X(o,{crossOrigin:g,integrity:m,fetchPriority:S,nonce:typeof f.nonce=="string"?f.nonce:void 0})}};I1.preinitModule=function(o,f){if(typeof o=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var d=nee(f.as,f.crossOrigin);D1.d.M(o,{crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&D1.d.M(o)};I1.preload=function(o,f){if(typeof o=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var d=f.as,g=nee(d,f.crossOrigin);D1.d.L(o,d,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}};I1.preloadModule=function(o,f){if(typeof o=="string")if(f){var d=nee(f.as,f.crossOrigin);D1.d.m(o,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else D1.d.m(o)};I1.requestFormReset=function(o){D1.d.r(o)};I1.unstable_batchedUpdates=function(o,f){return o(f)};I1.useFormState=function(o,f,d){return KB.H.useFormState(o,f,d)};I1.useFormStatus=function(){return KB.H.useHostTransitionStatus()};I1.version="19.2.4"});var w6e=N1((CLt,K3n)=>{"use strict";function X3n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X3n)}catch(o){console.error(o)}}X3n(),K3n.exports=q3n()});var u9n=N1(Cne=>{"use strict";var Ja=J3n(),y5n=pg(),grt=w6e();function Zn(o){var f="https://react.dev/errors/"+o;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)f+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function k5n(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function I$(o){var f=o,d=o;if(o.alternate)for(;f.return;)f=f.return;else{o=f;do f=o,(f.flags&4098)!==0&&(d=f.return),o=f.return;while(o)}return f.tag===3?d:null}function E5n(o){if(o.tag===13){var f=o.memoizedState;if(f===null&&(o=o.alternate,o!==null&&(f=o.memoizedState)),f!==null)return f.dehydrated}return null}function S5n(o){if(o.tag===31){var f=o.memoizedState;if(f===null&&(o=o.alternate,o!==null&&(f=o.memoizedState)),f!==null)return f.dehydrated}return null}function V3n(o){if(I$(o)!==o)throw Error(Zn(188))}function wrt(o){var f=o.alternate;if(!f){if(f=I$(o),f===null)throw Error(Zn(188));return f!==o?null:o}for(var d=o,g=f;;){var m=d.return;if(m===null)break;var S=m.alternate;if(S===null){if(g=m.return,g!==null){d=g;continue}break}if(m.child===S.child){for(S=m.child;S;){if(S===d)return V3n(m),o;if(S===g)return V3n(m),f;S=S.sibling}throw Error(Zn(188))}if(d.return!==g.return)d=m,g=S;else{for(var A=!1,k=m.child;k;){if(k===d){A=!0,d=m,g=S;break}if(k===g){A=!0,g=m,d=S;break}k=k.sibling}if(!A){for(k=S.child;k;){if(k===d){A=!0,d=S,g=m;break}if(k===g){A=!0,g=S,d=m;break}k=k.sibling}if(!A)throw Error(Zn(189))}}if(d.alternate!==g)throw Error(Zn(190))}if(d.tag!==3)throw Error(Zn(188));return d.stateNode.current===d?o:f}function T5n(o){var f=o.tag;if(f===5||f===26||f===27||f===6)return o;for(o=o.child;o!==null;){if(f=T5n(o),f!==null)return f;o=o.sibling}return null}var $s=Object.assign,prt=Symbol.for("react.element"),tee=Symbol.for("react.transitional.element"),t$=Symbol.for("react.portal"),Tj=Symbol.for("react.fragment"),A5n=Symbol.for("react.strict_mode"),Y6e=Symbol.for("react.profiler"),C5n=Symbol.for("react.consumer"),D5=Symbol.for("react.context"),U9e=Symbol.for("react.forward_ref"),Q6e=Symbol.for("react.suspense"),W6e=Symbol.for("react.suspense_list"),q9e=Symbol.for("react.memo"),c8=Symbol.for("react.lazy"),Z6e=Symbol.for("react.activity"),mrt=Symbol.for("react.memo_cache_sentinel"),Y3n=Symbol.iterator;function VB(o){return o===null||typeof o!="object"?null:(o=Y3n&&o[Y3n]||o["@@iterator"],typeof o=="function"?o:null)}var vrt=Symbol.for("react.client.reference");function e9e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===vrt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Tj:return"Fragment";case Y6e:return"Profiler";case A5n:return"StrictMode";case Q6e:return"Suspense";case W6e:return"SuspenseList";case Z6e:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case t$:return"Portal";case D5:return o.displayName||"Context";case C5n:return(o._context.displayName||"Context")+".Consumer";case U9e:var f=o.render;return o=o.displayName,o||(o=f.displayName||f.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case q9e:return f=o.displayName||null,f!==null?f:e9e(o.type)||"Memo";case c8:f=o._payload,o=o._init;try{return e9e(o(f))}catch{}}return null}var i$=Array.isArray,Fr=y5n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ho=grt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lT={pending:!1,data:null,method:null,action:null},n9e=[],Aj=-1;function s3(o){return{current:o}}function mh(o){0>Aj||(o.current=n9e[Aj],n9e[Aj]=null,Aj--)}function Ss(o,f){Aj++,n9e[Aj]=o.current,o.current=f}var o3=s3(null),y$=s3(null),w8=s3(null),Lee=s3(null);function Pee(o,f){switch(Ss(w8,f),Ss(y$,o),Ss(o3,null),f.nodeType){case 9:case 11:o=(o=f.documentElement)&&(o=o.namespaceURI)?i5n(o):0;break;default:if(o=f.tagName,f=f.namespaceURI)f=i5n(f),o=q6n(f,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}mh(o3),Ss(o3,o)}function Hj(){mh(o3),mh(y$),mh(w8)}function t9e(o){o.memoizedState!==null&&Ss(Lee,o);var f=o3.current,d=q6n(f,o.type);f!==d&&(Ss(y$,o),Ss(o3,d))}function Ree(o){y$.current===o&&(mh(o3),mh(y$)),Lee.current===o&&(mh(Lee),_$._currentValue=lT)}var p6e,Q3n;function cT(o){if(p6e===void 0)try{throw Error()}catch(d){var f=d.stack.trim().match(/\n( *(at )?)/);p6e=f&&f[1]||"",Q3n=-1<d.stack.indexOf(`at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return``+p6e+o+Q3n}var m6e=!1;function v6e(o,f){if(!o||m6e)return"";m6e=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(f){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(V){var F=V}Reflect.construct(o,[],J)}else{try{J.call()}catch(V){F=V}o.call(J.prototype)}}else{try{throw Error()}catch(V){F=V}(J=o())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&F&&typeof V.stack=="string")return[V.stack,F.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=g.DetermineComponentFrameRoot(),A=S[0],k=S[1];if(A&&k){var N=A.split(`@@ -1985,7 +119,3 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.productiodompurify/dist/purify.es.mjs:(*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE *)*/--</script>-</body>-</html>diff --git a/pipelex/graph/reactflow/reactflow_config.py b/pipelex/graph/reactflow/reactflow_config.pyindex 42994d7f9..3fd20e6ba 100644--- a/pipelex/graph/reactflow/reactflow_config.py+++ b/pipelex/graph/reactflow/reactflow_config.py@@ -45,5 +45,3 @@ class ReactFlowRenderingConfig(ConfigModel):# When True, PipeBatch controller nodes appear in the graph as pipe nodes for batch edges# When False, batch edges connect stuff nodes directly (list -> items, items -> list)show_batch_controller: bool- # When True, batch item nodes display their index suffix (e.g., "topic[0]" instead of "topic")- show_batch_item_index: booldiff --git a/pipelex/graph/reactflow/reactflow_html.py b/pipelex/graph/reactflow/reactflow_html.pyindex 2f9a4f44a..a2120a8fc 100644--- a/pipelex/graph/reactflow/reactflow_html.py+++ b/pipelex/graph/reactflow/reactflow_html.py@@ -1,19 +1,22 @@"""ReactFlow HTML generator for GraphSpec rendering.Generates standalone HTML files using the mthds-ui GraphViewer component.-The pre-built HTML template (with JS+CSS inlined) is loaded from assets/-and injected with GraphSpec data and configuration.+The HTML template uses Jinja2 for data injection, consistent with mermaid rendering.+JS and CSS bundles are loaded from vendored assets."""import json-from html import escape as html_escape+from pipelex.cogt.templating.template_category import TemplateCategoryfrom pipelex.graph.graphspec import GraphSpecfrom pipelex.graph.reactflow.reactflow_config import ReactFlowRenderingConfig-from pipelex.graph.reactflow.standalone_assets import get_standalone_template-from pipelex.tools.jinja2.jinja2_filters import escape_script_tag+from pipelex.graph.reactflow.standalone_assets import get_standalone_css, get_standalone_js+from pipelex.tools.jinja2.jinja2_rendering import render_jinja2_async, render_jinja2_sync+from pipelex.tools.jinja2.jinja2_template_registry import TemplateRegistryfrom pipelex.urls import URLs+_REACTFLOW_TEMPLATE_KEY = "reactflow/main.html.jinja2"+def _build_viewer_config(config: ReactFlowRenderingConfig) -> dict[str, object]:"""Build the viewer config dict from the ReactFlow rendering config."""@@ -42,41 +45,44 @@ def generate_reactflow_html(Args:graphspec: The GraphSpec to embed and render.config: ReactFlow rendering configuration.- stuff_data_text: Unused (kept for backward compatibility). Data is in GraphSpec IOSpec fields.- stuff_data_html: Unused (kept for backward compatibility). Data is in GraphSpec IOSpec fields.+ stuff_data_text: Unused (kept for backward compatibility).+ stuff_data_html: Unused (kept for backward compatibility).title: Optional page title, overrides config.default_title.Returns:Complete HTML page as a string with embedded GraphViewer."""- template = get_standalone_template()+ template_source = TemplateRegistry.get(_REACTFLOW_TEMPLATE_KEY)graphspec_json = json.dumps(graphspec.model_dump(mode="json", by_alias=True), indent=2)config_json = json.dumps(_build_viewer_config(config))- page_title = title or config.default_title-- return (- template.replace("<!--PIPELEX_TITLE-->", html_escape(page_title))- .replace("<!--PIPELEX_GRAPHSPEC-->", escape_script_tag(graphspec_json))- .replace("<!--PIPELEX_CONFIG-->", escape_script_tag(config_json))- .replace("<!--PIPELEX_LOGO_DARK-->", URLs.logo_white_on_transparent)- .replace("<!--PIPELEX_LOGO_LIGHT-->", URLs.logo_black_on_transparent)- .replace("<!--PIPELEX_THEME-->", config.style.theme)++ return render_jinja2_sync(+ template_source=template_source,+ template_category=TemplateCategory.HTML,+ templating_context={+ "title": title or config.default_title,+ "logo_dark": URLs.logo_white_on_transparent,+ "logo_light": URLs.logo_black_on_transparent,+ "graphspec_json": graphspec_json,+ "config_json": config_json,+ "theme": config.style.theme,+ "viewer_js": get_standalone_js(),+ "viewer_css": get_standalone_css(),+ },)-async def generate_reactflow_html_async( # noqa: RUF029 — async signature kept for call-site compat+async def generate_reactflow_html_async(graphspec: GraphSpec,config: ReactFlowRenderingConfig,*,- stuff_data_text: dict[str, str] | None = None,- stuff_data_html: dict[str, str] | None = None,+ stuff_data_text: dict[str, str] | None = None, # noqa: ARG001+ stuff_data_html: dict[str, str] | None = None, # noqa: ARG001title: str | None = None,) -> str:"""Generate single-file HTML with embedded GraphSpec and mthds-ui GraphViewer (async version).- Delegates to the sync version since no I/O is performed (template is cached).-Args:graphspec: The GraphSpec to embed and render.config: ReactFlow rendering configuration.@@ -87,10 +93,22 @@ async def generate_reactflow_html_async( # noqa: RUF029 — async signature kepReturns:Complete HTML page as a string with embedded GraphViewer."""- return generate_reactflow_html(- graphspec=graphspec,- config=config,- stuff_data_text=stuff_data_text,- stuff_data_html=stuff_data_html,- title=title,+ template_source = TemplateRegistry.get(_REACTFLOW_TEMPLATE_KEY)++ graphspec_json = json.dumps(graphspec.model_dump(mode="json", by_alias=True), indent=2)+ config_json = json.dumps(_build_viewer_config(config))++ return await render_jinja2_async(+ template_source=template_source,+ template_category=TemplateCategory.HTML,+ templating_context={+ "title": title or config.default_title,+ "logo_dark": URLs.logo_white_on_transparent,+ "logo_light": URLs.logo_black_on_transparent,+ "graphspec_json": graphspec_json,+ "config_json": config_json,+ "theme": config.style.theme,+ "viewer_js": get_standalone_js(),+ "viewer_css": get_standalone_css(),+ },)diff --git a/pipelex/graph/reactflow/standalone_assets.py b/pipelex/graph/reactflow/standalone_assets.pyindex 1912d313c..c15d86761 100644--- a/pipelex/graph/reactflow/standalone_assets.py+++ b/pipelex/graph/reactflow/standalone_assets.py@@ -1,30 +1,38 @@-"""Standalone GraphViewer HTML template loader.+"""Standalone GraphViewer asset loader.-Loads the pre-built HTML template from mthds-ui that has JS and CSS-already inlined. Python just injects GraphSpec data and config.+Loads the pre-built JS and CSS bundles from mthds-ui for embedding+in Jinja2 templates via the standard template rendering pipeline."""import importlib.resources_ASSET_PACKAGE = "pipelex.graph.reactflow.assets"-_TEMPLATE_FILENAME = "graph-standalone.html"-_cached_template: str | None = None+_cached_js: str | None = None+_cached_css: str | None = None-def get_standalone_template() -> str:- """Load the pre-built standalone HTML template.+def get_standalone_js() -> str:+ """Load the pre-built GraphViewer JS bundle (IIFE).- The template contains JS + CSS inlined from mthds-ui's GraphViewer bundle.- Sentinels (<!--PIPELEX_TITLE-->, <!--PIPELEX_GRAPHSPEC-->, etc.) are replaced- by the caller with actual data.+ Returns:+ The JS bundle as a string, cached after first load.+ """+ global _cached_js # noqa: PLW0603+ if _cached_js is None:+ package_files = importlib.resources.files(_ASSET_PACKAGE)+ _cached_js = (package_files / "graph-viewer.js").read_text(encoding="utf-8")+ return _cached_js+++def get_standalone_css() -> str:+ """Load the pre-built GraphViewer CSS bundle.Returns:- The HTML template as a string, cached after first load.+ The CSS bundle as a string, cached after first load."""- global _cached_template # noqa: PLW0603- if _cached_template is None:+ global _cached_css # noqa: PLW0603+ if _cached_css is None:package_files = importlib.resources.files(_ASSET_PACKAGE)- template_path = package_files / _TEMPLATE_FILENAME- _cached_template = template_path.read_text(encoding="utf-8")- return _cached_template+ _cached_css = (package_files / "graph-viewer.css").read_text(encoding="utf-8")+ return _cached_cssdiff --git a/pipelex/graph/reactflow/template_set.py b/pipelex/graph/reactflow/template_set.pynew file mode 100644index 000000000..46a0ab32e--- /dev/null+++ b/pipelex/graph/reactflow/template_set.py@@ -0,0 +1,11 @@+"""ReactFlow Jinja2 template set registration."""++REACTFLOW_TEMPLATE_SET_NAME = "reactflow"++REACTFLOW_TEMPLATES_PACKAGE = "pipelex.graph.reactflow.templates"++REACTFLOW_TEMPLATES = [+ ("reactflow.html.jinja2", "reactflow/main.html.jinja2"),+]++REACTFLOW_TEMPLATE_SET = (REACTFLOW_TEMPLATE_SET_NAME, REACTFLOW_TEMPLATES_PACKAGE, REACTFLOW_TEMPLATES)diff --git a/pipelex/graph/reactflow/templates/__init__.py b/pipelex/graph/reactflow/templates/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/pipelex/graph/reactflow/templates/reactflow.html.jinja2 b/pipelex/graph/reactflow/templates/reactflow.html.jinja2new file mode 100644index 000000000..dacd3ebdb--- /dev/null+++ b/pipelex/graph/reactflow/templates/reactflow.html.jinja2@@ -0,0 +1,49 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="UTF-8">+<meta name="viewport" content="width=device-width, initial-scale=1.0">+<title>{{ title }}</title>+<style>+{{ viewer_css | safe }}+</style>+</head>+<body data-theme="{{ theme }}">+<div id="app-container">+ <div class="toolbar">+ <div class="header-brand">+ <img src="{{ logo_dark }}" alt="Pipelex" class="header-logo dark-logo">+ <img src="{{ logo_light }}" alt="Pipelex" class="header-logo light-logo">+ <span class="header-title">{{ title }}</span>+ </div>+ <button id="direction-toggle" class="toolbar-btn" title="Toggle layout direction">+ <span class="direction-icon lr-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg></span>+ <span class="direction-icon tb-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><polyline points="19 12 12 19 5 12"/></svg></span>+ </button>+ <label class="toggle-switch" title="Show/hide controller containers">+ <input type="checkbox" id="controllers-toggle">+ <span class="toggle-track"><span class="toggle-knob"></span></span>+ <span class="toggle-label">Controllers</span>+ </label>+ <div class="toolbar-spacer"></div>+ <div class="toolbar-zoom">+ <button id="zoom-out" class="toolbar-btn" title="Zoom out"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/></svg></button>+ <button id="zoom-in" class="toolbar-btn" title="Zoom in"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg></button>+ <button id="zoom-fit" class="toolbar-btn" title="Fit to view"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"/></svg></button>+ </div>+ <button id="theme-toggle" class="theme-btn" title="Toggle theme">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>+ <span class="theme-label">{{ theme }}</span>+ </button>+ </div>+ <div id="root"></div>+</div>++<script type="application/json" id="pipelex-graphspec">{{ graphspec_json | escape_script_tag | safe }}</script>+<script type="application/json" id="pipelex-config">{{ config_json | escape_script_tag | safe }}</script>++<script>+{{ viewer_js | escape_script_tag | safe }}+</script>+</body>+</html>diff --git a/pipelex/pipelex.py b/pipelex/pipelex.pyindex 07798a84b..cb105805f 100644--- a/pipelex/pipelex.py+++ b/pipelex/pipelex.py@@ -36,6 +36,7 @@ from pipelex.core.registry_models import CoreRegistryModelsfrom pipelex.core.stuffs.stuff_template_set import STUFF_TEMPLATE_SETfrom pipelex.core.validation import report_validation_errorfrom pipelex.graph.mermaidflow.template_set import MERMAID_TEMPLATE_SET+from pipelex.graph.reactflow.template_set import REACTFLOW_TEMPLATE_SETfrom pipelex.hub import PipelexHub, set_pipelex_hubfrom pipelex.libraries.library_manager import LibraryManagerfrom pipelex.libraries.library_manager_abstract import LibraryManagerAbstract@@ -262,6 +263,12 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.package=stuff_package,templates=stuff_templates,)+ reactflow_name, reactflow_package, reactflow_templates = REACTFLOW_TEMPLATE_SET+ TemplateLoader.register_set(+ name=reactflow_name,+ package=reactflow_package,+ templates=reactflow_templates,+ )mermaid_name, mermaid_package, mermaid_templates = MERMAID_TEMPLATE_SETTemplateLoader.register_set(name=mermaid_name,diff --git a/pipelex/pipelex.toml b/pipelex/pipelex.tomlindex effe3f43f..e64f64ce5 100644--- a/pipelex/pipelex.toml+++ b/pipelex/pipelex.toml@@ -344,8 +344,6 @@ default_title = "Pipelex Graph"# When true, PipeBatch controller nodes appear in the graph as pipe nodes for batch edges# When false, batch edges connect stuff nodes directly (list -> items, items -> list)show_batch_controller = false-# When true, batch item nodes display their index suffix (e.g., "topic[0]" instead of "topic")-show_batch_item_index = false[pipelex.pipeline_execution_config.graph_config.reactflow_config.style]theme = "dark"diff --git a/tests/unit/pipelex/graph/test_reactflow_html.py b/tests/unit/pipelex/graph/test_reactflow_html.pyindex 64f1427e8..6886bb090 100644--- a/tests/unit/pipelex/graph/test_reactflow_html.py+++ b/tests/unit/pipelex/graph/test_reactflow_html.py@@ -1,10 +1,8 @@-"""Unit tests for the ReactFlow HTML generator (standalone mthds-ui bundle)."""+"""Unit tests for the ReactFlow HTML generator (mthds-ui standalone bundle via Jinja2)."""-import refrom datetime import datetime, timezonefrom pipelex.config import get_config-from pipelex.graph.csp import CSP_NONCE_SENTINELfrom pipelex.graph.graphspec import GraphSpec, NodeKind, NodeSpec, NodeStatus, PipelineReffrom pipelex.graph.reactflow.reactflow_config import ReactFlowRenderingConfigfrom pipelex.graph.reactflow.reactflow_html import generate_reactflow_html@@ -14,11 +12,9 @@ class TestReactFlowHtml:"""Tests for generate_reactflow_html function."""def _rf_config(self) -> ReactFlowRenderingConfig:- """Get the default ReactFlow config for testing."""return get_config().pipelex.pipeline_execution_config.graph_config.reactflow_configdef _empty_graphspec(self) -> GraphSpec:- """Create an empty GraphSpec for testing."""return GraphSpec(graph_id="test_graph",created_at=datetime.now(timezone.utc),@@ -65,7 +61,6 @@ class TestReactFlowHtml:html = generate_reactflow_html(graph, self._rf_config())- # Node should use alias "id" not Python field name "node_id"assert '"id": "node_1"' in htmlassert '"node_id"' not in htmlassert "test_pipe" in html@@ -76,7 +71,6 @@ class TestReactFlowHtml:assert html.startswith("<!DOCTYPE html>")assert "<html" in html- assert "<head>" in htmlassert "</html>" in htmlassert '<div id="root">' in html@@ -84,35 +78,17 @@ class TestReactFlowHtml:"""Test that HTML includes the mthds-ui GraphViewer bundle."""html = generate_reactflow_html(self._empty_graphspec(), self._rf_config())- # The bundled IIFE should be present (minified React + ReactFlow + mthds-ui)assert '"use strict"' in html- # Should NOT contain old Jinja2/dagre references- assert "getLayoutedElements" not in html or "elkjs" in html # ELK, not dagre-- def test_html_contains_csp_nonce_on_inline_script(self) -> None:- """Verify the inline script tag has the CSP nonce sentinel."""- html = generate_reactflow_html(self._empty_graphspec(), self._rf_config())-- pattern = rf'<script nonce="{re.escape(CSP_NONCE_SENTINEL)}">'- assert re.search(pattern, html), "Inline <script> should have the CSP nonce sentinel"-- def test_html_contains_csp_nonce_on_inline_style(self) -> None:- """Verify the inline style tag has the CSP nonce sentinel."""- html = generate_reactflow_html(self._empty_graphspec(), self._rf_config())-- assert f'<style nonce="{CSP_NONCE_SENTINEL}">' in htmldef test_json_data_scripts_have_no_nonce(self) -> None:"""Verify application/json script tags do NOT have a nonce attribute."""html = generate_reactflow_html(self._empty_graphspec(), self._rf_config())- json_scripts = re.findall(r'<script type="application/json"[^>]*>', html)- assert len(json_scripts) >= 2, "Expected at least 2 JSON data script tags (graphspec + config)"- for tag in json_scripts:- assert "nonce" not in tag, f"JSON data script should not have nonce: {tag}"+ assert '<script type="application/json" id="pipelex-graphspec">' in html+ assert '<script type="application/json" id="pipelex-config">' in htmldef test_no_csp_meta_tag(self) -> None:- """Verify no CSP meta tag is present (standalone HTML should be CSP-free)."""+ """Verify no CSP meta tag is present."""html = generate_reactflow_html(self._empty_graphspec(), self._rf_config())assert "Content-Security-Policy" not in html