@dudko.dev/agent-web-ui 0.0.0 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +316 -5
  3. package/dist/canvas.cjs +266 -0
  4. package/dist/canvas.cjs.map +1 -0
  5. package/dist/canvas.d.cts +105 -0
  6. package/dist/canvas.d.ts +105 -0
  7. package/dist/canvas.js +200 -0
  8. package/dist/canvas.js.map +1 -0
  9. package/dist/chunk-7O64ZI6Z.js +125 -0
  10. package/dist/chunk-7O64ZI6Z.js.map +1 -0
  11. package/dist/chunk-EL2YCROY.js +127 -0
  12. package/dist/chunk-EL2YCROY.js.map +1 -0
  13. package/dist/chunk-GB7RZJMG.js +98 -0
  14. package/dist/chunk-GB7RZJMG.js.map +1 -0
  15. package/dist/chunk-KZQB35LS.js +22 -0
  16. package/dist/chunk-KZQB35LS.js.map +1 -0
  17. package/dist/chunk-SVYHDLAZ.js +348 -0
  18. package/dist/chunk-SVYHDLAZ.js.map +1 -0
  19. package/dist/chunk-VCR7LU7J.js +348 -0
  20. package/dist/chunk-VCR7LU7J.js.map +1 -0
  21. package/dist/chunk-WFM6B7CL.js +406 -0
  22. package/dist/chunk-WFM6B7CL.js.map +1 -0
  23. package/dist/chunk-WZ7K7JIP.js +348 -0
  24. package/dist/chunk-WZ7K7JIP.js.map +1 -0
  25. package/dist/chunk-ZBHESK6V.js +1440 -0
  26. package/dist/chunk-ZBHESK6V.js.map +1 -0
  27. package/dist/controller.cjs +1891 -0
  28. package/dist/controller.cjs.map +1 -0
  29. package/dist/controller.d.cts +253 -0
  30. package/dist/controller.d.ts +253 -0
  31. package/dist/controller.js +482 -0
  32. package/dist/controller.js.map +1 -0
  33. package/dist/en-Dg2MtzcJ.d.cts +348 -0
  34. package/dist/en-Dg2MtzcJ.d.ts +348 -0
  35. package/dist/index.cjs +4276 -0
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.cts +997 -0
  38. package/dist/index.d.ts +997 -0
  39. package/dist/index.js +2494 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/labels-B5xpIGf_.d.cts +25 -0
  42. package/dist/labels-B5xpIGf_.d.ts +25 -0
  43. package/dist/labels-CmiTBLWD.d.cts +1176 -0
  44. package/dist/labels-DH1ESUtm.d.ts +1176 -0
  45. package/dist/locales/be.cjs +806 -0
  46. package/dist/locales/be.cjs.map +1 -0
  47. package/dist/locales/be.d.cts +16 -0
  48. package/dist/locales/be.d.ts +16 -0
  49. package/dist/locales/be.js +380 -0
  50. package/dist/locales/be.js.map +1 -0
  51. package/dist/locales/bg.cjs +759 -0
  52. package/dist/locales/bg.cjs.map +1 -0
  53. package/dist/locales/bg.d.cts +16 -0
  54. package/dist/locales/bg.d.ts +16 -0
  55. package/dist/locales/bg.js +333 -0
  56. package/dist/locales/bg.js.map +1 -0
  57. package/dist/locales/ca.cjs +785 -0
  58. package/dist/locales/ca.cjs.map +1 -0
  59. package/dist/locales/ca.d.cts +16 -0
  60. package/dist/locales/ca.d.ts +16 -0
  61. package/dist/locales/ca.js +359 -0
  62. package/dist/locales/ca.js.map +1 -0
  63. package/dist/locales/cs.cjs +806 -0
  64. package/dist/locales/cs.cjs.map +1 -0
  65. package/dist/locales/cs.d.cts +16 -0
  66. package/dist/locales/cs.d.ts +16 -0
  67. package/dist/locales/cs.js +380 -0
  68. package/dist/locales/cs.js.map +1 -0
  69. package/dist/locales/da.cjs +759 -0
  70. package/dist/locales/da.cjs.map +1 -0
  71. package/dist/locales/da.d.cts +16 -0
  72. package/dist/locales/da.d.ts +16 -0
  73. package/dist/locales/da.js +333 -0
  74. package/dist/locales/da.js.map +1 -0
  75. package/dist/locales/de.cjs +768 -0
  76. package/dist/locales/de.cjs.map +1 -0
  77. package/dist/locales/de.d.cts +16 -0
  78. package/dist/locales/de.d.ts +16 -0
  79. package/dist/locales/de.js +342 -0
  80. package/dist/locales/de.js.map +1 -0
  81. package/dist/locales/el.cjs +768 -0
  82. package/dist/locales/el.cjs.map +1 -0
  83. package/dist/locales/el.d.cts +16 -0
  84. package/dist/locales/el.d.ts +16 -0
  85. package/dist/locales/el.js +342 -0
  86. package/dist/locales/el.js.map +1 -0
  87. package/dist/locales/en.cjs +765 -0
  88. package/dist/locales/en.cjs.map +1 -0
  89. package/dist/locales/en.d.cts +12 -0
  90. package/dist/locales/en.d.ts +12 -0
  91. package/dist/locales/en.js +339 -0
  92. package/dist/locales/en.js.map +1 -0
  93. package/dist/locales/es-419.cjs +793 -0
  94. package/dist/locales/es-419.cjs.map +1 -0
  95. package/dist/locales/es-419.d.cts +18 -0
  96. package/dist/locales/es-419.d.ts +18 -0
  97. package/dist/locales/es-419.js +26 -0
  98. package/dist/locales/es-419.js.map +1 -0
  99. package/dist/locales/es.cjs +781 -0
  100. package/dist/locales/es.cjs.map +1 -0
  101. package/dist/locales/es.d.cts +16 -0
  102. package/dist/locales/es.d.ts +16 -0
  103. package/dist/locales/es.js +14 -0
  104. package/dist/locales/es.js.map +1 -0
  105. package/dist/locales/fi.cjs +765 -0
  106. package/dist/locales/fi.cjs.map +1 -0
  107. package/dist/locales/fi.d.cts +16 -0
  108. package/dist/locales/fi.d.ts +16 -0
  109. package/dist/locales/fi.js +339 -0
  110. package/dist/locales/fi.js.map +1 -0
  111. package/dist/locales/fr-CA.cjs +789 -0
  112. package/dist/locales/fr-CA.cjs.map +1 -0
  113. package/dist/locales/fr-CA.d.cts +19 -0
  114. package/dist/locales/fr-CA.d.ts +19 -0
  115. package/dist/locales/fr-CA.js +22 -0
  116. package/dist/locales/fr-CA.js.map +1 -0
  117. package/dist/locales/fr.cjs +781 -0
  118. package/dist/locales/fr.cjs.map +1 -0
  119. package/dist/locales/fr.d.cts +16 -0
  120. package/dist/locales/fr.d.ts +16 -0
  121. package/dist/locales/fr.js +14 -0
  122. package/dist/locales/fr.js.map +1 -0
  123. package/dist/locales/gn.cjs +762 -0
  124. package/dist/locales/gn.cjs.map +1 -0
  125. package/dist/locales/gn.d.cts +18 -0
  126. package/dist/locales/gn.d.ts +18 -0
  127. package/dist/locales/gn.js +336 -0
  128. package/dist/locales/gn.js.map +1 -0
  129. package/dist/locales/hr.cjs +781 -0
  130. package/dist/locales/hr.cjs.map +1 -0
  131. package/dist/locales/hr.d.cts +16 -0
  132. package/dist/locales/hr.d.ts +16 -0
  133. package/dist/locales/hr.js +355 -0
  134. package/dist/locales/hr.js.map +1 -0
  135. package/dist/locales/ht.cjs +762 -0
  136. package/dist/locales/ht.cjs.map +1 -0
  137. package/dist/locales/ht.d.cts +18 -0
  138. package/dist/locales/ht.d.ts +18 -0
  139. package/dist/locales/ht.js +336 -0
  140. package/dist/locales/ht.js.map +1 -0
  141. package/dist/locales/hu.cjs +765 -0
  142. package/dist/locales/hu.cjs.map +1 -0
  143. package/dist/locales/hu.d.cts +16 -0
  144. package/dist/locales/hu.d.ts +16 -0
  145. package/dist/locales/hu.js +339 -0
  146. package/dist/locales/hu.js.map +1 -0
  147. package/dist/locales/index.cjs +543 -0
  148. package/dist/locales/index.cjs.map +1 -0
  149. package/dist/locales/index.d.cts +40 -0
  150. package/dist/locales/index.d.ts +40 -0
  151. package/dist/locales/index.js +105 -0
  152. package/dist/locales/index.js.map +1 -0
  153. package/dist/locales/it.cjs +789 -0
  154. package/dist/locales/it.cjs.map +1 -0
  155. package/dist/locales/it.d.cts +16 -0
  156. package/dist/locales/it.d.ts +16 -0
  157. package/dist/locales/it.js +363 -0
  158. package/dist/locales/it.js.map +1 -0
  159. package/dist/locales/nb.cjs +759 -0
  160. package/dist/locales/nb.cjs.map +1 -0
  161. package/dist/locales/nb.d.cts +16 -0
  162. package/dist/locales/nb.d.ts +16 -0
  163. package/dist/locales/nb.js +333 -0
  164. package/dist/locales/nb.js.map +1 -0
  165. package/dist/locales/nl.cjs +765 -0
  166. package/dist/locales/nl.cjs.map +1 -0
  167. package/dist/locales/nl.d.cts +16 -0
  168. package/dist/locales/nl.d.ts +16 -0
  169. package/dist/locales/nl.js +339 -0
  170. package/dist/locales/nl.js.map +1 -0
  171. package/dist/locales/pl.cjs +806 -0
  172. package/dist/locales/pl.cjs.map +1 -0
  173. package/dist/locales/pl.d.cts +16 -0
  174. package/dist/locales/pl.d.ts +16 -0
  175. package/dist/locales/pl.js +380 -0
  176. package/dist/locales/pl.js.map +1 -0
  177. package/dist/locales/pt-BR.cjs +785 -0
  178. package/dist/locales/pt-BR.cjs.map +1 -0
  179. package/dist/locales/pt-BR.d.cts +16 -0
  180. package/dist/locales/pt-BR.d.ts +16 -0
  181. package/dist/locales/pt-BR.js +359 -0
  182. package/dist/locales/pt-BR.js.map +1 -0
  183. package/dist/locales/pt.cjs +789 -0
  184. package/dist/locales/pt.cjs.map +1 -0
  185. package/dist/locales/pt.d.cts +16 -0
  186. package/dist/locales/pt.d.ts +16 -0
  187. package/dist/locales/pt.js +363 -0
  188. package/dist/locales/pt.js.map +1 -0
  189. package/dist/locales/qu.cjs +768 -0
  190. package/dist/locales/qu.cjs.map +1 -0
  191. package/dist/locales/qu.d.cts +18 -0
  192. package/dist/locales/qu.d.ts +18 -0
  193. package/dist/locales/qu.js +342 -0
  194. package/dist/locales/qu.js.map +1 -0
  195. package/dist/locales/ro.cjs +781 -0
  196. package/dist/locales/ro.cjs.map +1 -0
  197. package/dist/locales/ro.d.cts +16 -0
  198. package/dist/locales/ro.d.ts +16 -0
  199. package/dist/locales/ro.js +355 -0
  200. package/dist/locales/ro.js.map +1 -0
  201. package/dist/locales/ru.cjs +801 -0
  202. package/dist/locales/ru.cjs.map +1 -0
  203. package/dist/locales/ru.d.cts +16 -0
  204. package/dist/locales/ru.d.ts +16 -0
  205. package/dist/locales/ru.js +375 -0
  206. package/dist/locales/ru.js.map +1 -0
  207. package/dist/locales/sk.cjs +806 -0
  208. package/dist/locales/sk.cjs.map +1 -0
  209. package/dist/locales/sk.d.cts +16 -0
  210. package/dist/locales/sk.d.ts +16 -0
  211. package/dist/locales/sk.js +380 -0
  212. package/dist/locales/sk.js.map +1 -0
  213. package/dist/locales/sq.cjs +765 -0
  214. package/dist/locales/sq.cjs.map +1 -0
  215. package/dist/locales/sq.d.cts +16 -0
  216. package/dist/locales/sq.d.ts +16 -0
  217. package/dist/locales/sq.js +339 -0
  218. package/dist/locales/sq.js.map +1 -0
  219. package/dist/locales/sr-Latn.cjs +853 -0
  220. package/dist/locales/sr-Latn.cjs.map +1 -0
  221. package/dist/locales/sr-Latn.d.cts +19 -0
  222. package/dist/locales/sr-Latn.d.ts +19 -0
  223. package/dist/locales/sr-Latn.js +86 -0
  224. package/dist/locales/sr-Latn.js.map +1 -0
  225. package/dist/locales/sr.cjs +781 -0
  226. package/dist/locales/sr.cjs.map +1 -0
  227. package/dist/locales/sr.d.cts +16 -0
  228. package/dist/locales/sr.d.ts +16 -0
  229. package/dist/locales/sr.js +14 -0
  230. package/dist/locales/sr.js.map +1 -0
  231. package/dist/locales/sv.cjs +765 -0
  232. package/dist/locales/sv.cjs.map +1 -0
  233. package/dist/locales/sv.d.cts +16 -0
  234. package/dist/locales/sv.d.ts +16 -0
  235. package/dist/locales/sv.js +339 -0
  236. package/dist/locales/sv.js.map +1 -0
  237. package/dist/locales/tr.cjs +762 -0
  238. package/dist/locales/tr.cjs.map +1 -0
  239. package/dist/locales/tr.d.cts +16 -0
  240. package/dist/locales/tr.d.ts +16 -0
  241. package/dist/locales/tr.js +336 -0
  242. package/dist/locales/tr.js.map +1 -0
  243. package/dist/locales/uk.cjs +806 -0
  244. package/dist/locales/uk.cjs.map +1 -0
  245. package/dist/locales/uk.d.cts +16 -0
  246. package/dist/locales/uk.d.ts +16 -0
  247. package/dist/locales/uk.js +380 -0
  248. package/dist/locales/uk.js.map +1 -0
  249. package/dist/markdown.cjs +620 -0
  250. package/dist/markdown.cjs.map +1 -0
  251. package/dist/markdown.d.cts +153 -0
  252. package/dist/markdown.d.ts +153 -0
  253. package/dist/markdown.js +573 -0
  254. package/dist/markdown.js.map +1 -0
  255. package/dist/mcp-app-policy-DXKQ2jjM.d.cts +73 -0
  256. package/dist/mcp-app-policy-DXKQ2jjM.d.ts +73 -0
  257. package/dist/mcp-app-sandbox.cjs +323 -0
  258. package/dist/mcp-app-sandbox.cjs.map +1 -0
  259. package/dist/mcp-app-sandbox.d.cts +70 -0
  260. package/dist/mcp-app-sandbox.d.ts +70 -0
  261. package/dist/mcp-app-sandbox.js +209 -0
  262. package/dist/mcp-app-sandbox.js.map +1 -0
  263. package/dist/mcp-app.cjs +980 -0
  264. package/dist/mcp-app.cjs.map +1 -0
  265. package/dist/mcp-app.d.cts +491 -0
  266. package/dist/mcp-app.d.ts +491 -0
  267. package/dist/mcp-app.js +816 -0
  268. package/dist/mcp-app.js.map +1 -0
  269. package/dist/pipeline.cjs +845 -0
  270. package/dist/pipeline.cjs.map +1 -0
  271. package/dist/pipeline.css +1407 -0
  272. package/dist/pipeline.d.cts +348 -0
  273. package/dist/pipeline.d.ts +348 -0
  274. package/dist/pipeline.js +778 -0
  275. package/dist/pipeline.js.map +1 -0
  276. package/dist/questions-Dw--IEjT.d.cts +100 -0
  277. package/dist/questions-Dw--IEjT.d.ts +100 -0
  278. package/dist/styles.css +4109 -0
  279. package/dist/types-CQquuZpl.d.cts +19 -0
  280. package/dist/types-CXZfZVP5.d.ts +19 -0
  281. package/dist/types-DnBCok3z.d.cts +994 -0
  282. package/dist/types-DnBCok3z.d.ts +994 -0
  283. package/package.json +165 -8
@@ -0,0 +1,348 @@
1
+ import { AgentEvent, PipelineResult, IUsage, PipelineStop, PipelineDefinition, PipelineCondition, PipelineNode, PipelineIssue } from '@dudko.dev/agent-web';
2
+ import { CanvasLabels } from './canvas.cjs';
3
+
4
+ type PipelineRunStatus = 'idle' | 'running' | 'done' | 'failed' | 'stopped';
5
+ /**
6
+ * `waiting`: an edge fired towards the node and it has not started yet (it waits for its wave,
7
+ * or for the other branch of a fan-in). `skipped`: a cap refused the visit.
8
+ */
9
+ type PipelineNodeStatus = 'idle' | 'waiting' | 'running' | 'done' | 'failed' | 'skipped';
10
+ /** What the node's own agent is doing right now, in one line's worth. */
11
+ interface PipelineNodeActivity {
12
+ phase?: 'plan' | 'execute' | 'replan' | 'synthesize';
13
+ /** The plan step in progress, with its place in the plan (1-based, as the core counts). */
14
+ step?: string;
15
+ stepIndex?: number;
16
+ stepTotal?: number;
17
+ /** The tool being called, while it runs. */
18
+ tool?: string;
19
+ /** Tool calls made in this visit so far. */
20
+ toolCalls: number;
21
+ }
22
+ interface PipelineOutputView {
23
+ visit: number;
24
+ text: string;
25
+ route?: string;
26
+ }
27
+ interface PipelineNodeView {
28
+ status: PipelineNodeStatus;
29
+ /** Visits started. */
30
+ visits: number;
31
+ /** The nodes whose outputs the current (or last) visit received. */
32
+ from: string[];
33
+ /** One entry per finished visit, in order. */
34
+ outputs: PipelineOutputView[];
35
+ activity?: PipelineNodeActivity;
36
+ error?: string;
37
+ /** Why the last activation was refused. */
38
+ skipped?: 'maxRuns' | 'maxNodeVisits';
39
+ /** Tokens of all its finished visits. */
40
+ usage?: IUsage;
41
+ }
42
+ interface PipelineEdgeView {
43
+ from: string;
44
+ to: string;
45
+ /** The last decision. */
46
+ fired: boolean;
47
+ /** The visit of the source node that decided it. */
48
+ visit: number;
49
+ /** How many times it fired in this run. */
50
+ count: number;
51
+ /** It fired and what it carries has not been consumed yet: the target waits or runs. */
52
+ live: boolean;
53
+ }
54
+ /** One node visit, in the order visits started: the run as a timeline. */
55
+ interface PipelineVisitView {
56
+ nodeId: string;
57
+ visit: number;
58
+ from: string[];
59
+ status: 'running' | 'done' | 'failed' | 'stopped';
60
+ text?: string;
61
+ route?: string;
62
+ error?: string;
63
+ usage?: IUsage;
64
+ }
65
+ interface PipelineUiState {
66
+ status: PipelineRunStatus;
67
+ /** The request of the current (or last) run. */
68
+ input?: string;
69
+ /** The definition's name, as the run reported it. */
70
+ name?: string;
71
+ /** By node id. A node the run has not touched is absent: read it with `pipelineNodeView`. */
72
+ nodes: Record<string, PipelineNodeView>;
73
+ /** By edge id: the last decision on each edge that was decided. */
74
+ edges: Record<string, PipelineEdgeView>;
75
+ /** The edges the node that finished last fired. */
76
+ lastFired: string[];
77
+ visits: PipelineVisitView[];
78
+ /** The final text (set when the run ends). */
79
+ text: string;
80
+ usage: IUsage;
81
+ /** Node visits started. */
82
+ runs: number;
83
+ stoppedBy?: PipelineStop;
84
+ error?: string;
85
+ /** The node whose failure ended the run. */
86
+ failedNode?: string;
87
+ }
88
+ type PipelineAction = {
89
+ type: 'run.start';
90
+ input: string;
91
+ } | {
92
+ type: 'event';
93
+ event: AgentEvent;
94
+ }
95
+ /** `run` resolved. */
96
+ | {
97
+ type: 'run.result';
98
+ result: PipelineResult;
99
+ }
100
+ /** `run` rejected, or could not start. */
101
+ | {
102
+ type: 'run.error';
103
+ error: string;
104
+ nodeId?: string;
105
+ } | {
106
+ type: 'reset';
107
+ };
108
+ declare const createInitialPipelineState: () => PipelineUiState;
109
+ /** A node's view; an idle one for a node the run has not touched. */
110
+ declare const pipelineNodeView: (state: PipelineUiState, nodeId: string) => PipelineNodeView;
111
+ /** Fold one action into the state. Returns the same object when nothing changed. */
112
+ declare const pipelineStateReducer: (state: PipelineUiState, action: PipelineAction) => PipelineUiState;
113
+
114
+ type PipelineSelection = {
115
+ kind: 'node' | 'edge';
116
+ id: string;
117
+ } | null;
118
+ /** A definition to start from: one node, which is the entry. */
119
+ declare const emptyPipeline: () => PipelineDefinition;
120
+ /**
121
+ * The definition with an id on every edge. The runner hands ids out by position (`e0`, `e1`, …),
122
+ * which shift when an edge is removed - an editor needs them fixed, so it writes them down.
123
+ */
124
+ declare const ensureEdgeIds: (definition: PipelineDefinition) => PipelineDefinition;
125
+ /** "Fact checker!" → "fact-checker". */
126
+ declare const slugifyId: (text: string) => string;
127
+ /** An id no node has: `base`, or `base-2`, `base-3`, … */
128
+ declare const uniqueNodeId: (definition: PipelineDefinition, base?: string) => string;
129
+ /** An id no edge has (`e0`, `e1`, …; the positional ids of unnamed edges count as taken). */
130
+ declare const uniqueEdgeId: (definition: PipelineDefinition) => string;
131
+ /**
132
+ * Add a node. Without an id it gets a free one (from its name, or `node`); an id that is taken
133
+ * is made unique. The first node of a pipeline becomes its entry.
134
+ */
135
+ declare const addNode: (definition: PipelineDefinition, node?: Partial<PipelineNode>) => PipelineDefinition;
136
+ /** Change a node's fields (not its id: `renameNode`). An emptied field is removed. */
137
+ declare const updateNode: (definition: PipelineDefinition, id: string, patch: Partial<Omit<PipelineNode, "id">>) => PipelineDefinition;
138
+ declare const moveNode: (definition: PipelineDefinition, id: string, position: {
139
+ x: number;
140
+ y: number;
141
+ }) => PipelineDefinition;
142
+ /** Remove a node and every edge that touches it. The entry moves to the first node left. */
143
+ declare const removeNode: (definition: PipelineDefinition, id: string) => PipelineDefinition;
144
+ /** Give a node another id; its edges and the entry follow. Refused when the id is empty or taken. */
145
+ declare const renameNode: (definition: PipelineDefinition, id: string, nextId: string) => PipelineDefinition;
146
+ declare const setEntry: (definition: PipelineDefinition, id: string) => PipelineDefinition;
147
+ /**
148
+ * Connect two nodes. Refused when either does not exist, or when the same edge (the same ends
149
+ * and the same condition) is already there. The edge gets a free id unless it brings one.
150
+ */
151
+ declare const addEdge: (definition: PipelineDefinition, edge: {
152
+ from: string;
153
+ to: string;
154
+ when?: PipelineCondition;
155
+ id?: string;
156
+ }) => PipelineDefinition;
157
+ /** Change an edge's condition or ends. An end that names no node is refused. */
158
+ declare const updateEdge: (definition: PipelineDefinition, id: string, patch: {
159
+ from?: string;
160
+ to?: string;
161
+ when?: PipelineCondition;
162
+ }) => PipelineDefinition;
163
+ declare const removeEdge: (definition: PipelineDefinition, id: string) => PipelineDefinition;
164
+ /** Rename one of a node's routes; the edges that take that route follow. */
165
+ declare const renameRoute: (definition: PipelineDefinition, nodeId: string, label: string, nextLabel: string) => PipelineDefinition;
166
+ /** Set (a number) or clear (undefined) the limits; a definition with none has no `limits`. */
167
+ declare const setLimits: (definition: PipelineDefinition, patch: {
168
+ maxNodeVisits?: number;
169
+ maxRuns?: number;
170
+ }) => PipelineDefinition;
171
+ declare const setPipelineName: (definition: PipelineDefinition, name: string) => PipelineDefinition;
172
+ interface AutoLayoutOptions {
173
+ /** Distance between the left sides of two columns (default 320). */
174
+ columnGap?: number;
175
+ /** Distance between the tops of two nodes of a column (default 170). */
176
+ rowGap?: number;
177
+ /** Place every node, not only the ones without a position. */
178
+ all?: boolean;
179
+ }
180
+ /**
181
+ * Give a position to the nodes that have none (a definition written by hand, or by a model):
182
+ * columns by distance from the entry, left to right. Nodes the entry does not reach go last.
183
+ */
184
+ declare const autoLayout: (definition: PipelineDefinition, options?: AutoLayoutOptions) => PipelineDefinition;
185
+ /** A free spot for a new node: to the right of the lowest node of the last column. */
186
+ declare const nextNodePosition: (definition: PipelineDefinition) => {
187
+ x: number;
188
+ y: number;
189
+ };
190
+ /** What a validation issue is about, as something to select. */
191
+ declare const issueTarget: (issue: PipelineIssue, definition: PipelineDefinition) => PipelineSelection;
192
+ /**
193
+ * Read a definition from text (an imported file, a paste). Throws with a plain message when the
194
+ * text is not JSON or not the shape of a pipeline; a definition that parses but does not
195
+ * validate is returned as it is, for the editor to show what is wrong with it.
196
+ */
197
+ declare const parsePipelineJson: (text: string) => PipelineDefinition;
198
+
199
+ type PipelineCodeTarget = 'browser' | 'node';
200
+ interface PipelineCodeOptions {
201
+ /** `browser`: @dudko.dev/agent-web. `node`: @dudko.dev/agent. */
202
+ target?: PipelineCodeTarget;
203
+ /** Keep the nodes' `position` (an editor's business; the runner ignores it). Default false. */
204
+ positions?: boolean;
205
+ /** The request in the example call. */
206
+ input?: string;
207
+ }
208
+ /**
209
+ * A snippet that runs the definition with the browser package or with the Node one. The names
210
+ * the definition uses (models, skills, tool groups, MCP servers) appear as variables for the
211
+ * host to supply: a definition never carries a model or a key.
212
+ */
213
+ declare const pipelineToCode: (definition: PipelineDefinition, options?: PipelineCodeOptions) => string;
214
+
215
+ type ConditionKind = PipelineCondition['kind'];
216
+ /**
217
+ * Every string the pipeline editor renders or says - override any of them for another language
218
+ * or wording, per component (`labels` prop) or for a whole tree (`<PipelineLabelsProvider>`).
219
+ * Counted phrases are functions. The reference with the defaults is in docs/pipeline.md.
220
+ */
221
+ interface PipelineLabels {
222
+ toolbar: string;
223
+ addNode: string;
224
+ deleteSelected: string;
225
+ fit: string;
226
+ zoomIn: string;
227
+ zoomOut: string;
228
+ importJson: string;
229
+ exportJson: string;
230
+ copyCode: string;
231
+ /** The name a new node gets ("Agent 3"). */
232
+ newNodeName: (n: number) => string;
233
+ importFailed: (reason: string) => string;
234
+ issues: string;
235
+ noIssues: string;
236
+ errors: (n: number) => string;
237
+ warnings: (n: number) => string;
238
+ issueError: string;
239
+ issueWarning: string;
240
+ /** The canvas's own strings (its name, its keyboard help, what a port and an edge are called). */
241
+ canvas: CanvasLabels;
242
+ emptyCanvas: string;
243
+ /** The node's state for a screen reader: "running, visit 2". */
244
+ nodeDescription: (status: string, visits: number) => string;
245
+ nodeStatus: Record<PipelineNodeStatus, string>;
246
+ entry: string;
247
+ defaultModel: string;
248
+ skillsBadge: (n: number) => string;
249
+ toolsBadge: (n: number) => string;
250
+ mcpBadge: (n: number) => string;
251
+ visits: (n: number) => string;
252
+ /** The output port of a node with routes that takes no route: every other kind of edge. */
253
+ anyOutput: string;
254
+ activityPlanning: string;
255
+ activityReplanning: string;
256
+ activityAnswering: string;
257
+ activityStep: (index: number, total: number, step: string) => string;
258
+ activityTool: (name: string) => string;
259
+ skippedBy: Record<'maxRuns' | 'maxNodeVisits', string>;
260
+ inspector: string;
261
+ inspectorNode: string;
262
+ inspectorEdge: string;
263
+ inspectorPipeline: string;
264
+ close: string;
265
+ expand: string;
266
+ collapse: string;
267
+ fieldId: string;
268
+ fieldIdHint: string;
269
+ idTaken: string;
270
+ idEmpty: string;
271
+ fieldName: string;
272
+ fieldInstructions: string;
273
+ instructionsPlaceholder: string;
274
+ fieldModel: string;
275
+ /** An option that is in the definition but not in the host's list. */
276
+ unknownOption: (name: string) => string;
277
+ fieldSkills: string;
278
+ fieldTools: string;
279
+ fieldMcp: string;
280
+ noOptions: string;
281
+ fieldRoutes: string;
282
+ routesHint: string;
283
+ routeLabel: string;
284
+ routeDescription: string;
285
+ addRoute: string;
286
+ removeRoute: (label: string) => string;
287
+ fieldJoin: string;
288
+ joinAll: string;
289
+ joinAny: string;
290
+ isEntry: string;
291
+ makeEntry: string;
292
+ deleteNode: string;
293
+ edgeEnds: (from: string, to: string) => string;
294
+ fieldCondition: string;
295
+ conditionKinds: Record<ConditionKind, string>;
296
+ conditionHints: Record<ConditionKind, string>;
297
+ fieldText: string;
298
+ caseSensitive: string;
299
+ fieldPattern: string;
300
+ fieldFlags: string;
301
+ fieldRoute: string;
302
+ noRoutes: string;
303
+ deleteEdge: string;
304
+ pipelineName: string;
305
+ pipelineNamePlaceholder: string;
306
+ fieldEntry: string;
307
+ fieldMaxNodeVisits: string;
308
+ fieldMaxRuns: string;
309
+ limitDefault: (n: number) => string;
310
+ counts: (nodes: number, edges: number) => string;
311
+ runPlaceholder: string;
312
+ runInput: string;
313
+ run: string;
314
+ stop: string;
315
+ fixErrorsFirst: string;
316
+ runStatus: Record<PipelineRunStatus, string>;
317
+ stoppedBy: Record<PipelineStop, string>;
318
+ /** Announced to a screen reader as nodes start, finish, fail. */
319
+ announceNode: (name: string, status: string) => string;
320
+ results: string;
321
+ showResults: string;
322
+ hideResults: string;
323
+ finalAnswer: string;
324
+ nodeOutputs: string;
325
+ noOutputYet: string;
326
+ visitTitle: (name: string, visit: number) => string;
327
+ routeTaken: (label: string) => string;
328
+ receivedFrom: (names: string) => string;
329
+ usage: (input: string, output: string) => string;
330
+ runsCount: (n: number) => string;
331
+ codeTitle: string;
332
+ codeBrowser: string;
333
+ codeNode: string;
334
+ copy: string;
335
+ copied: string;
336
+ }
337
+ declare const defaultPipelineLabels: PipelineLabels;
338
+ declare const NESTED: readonly ["canvas", "nodeStatus", "skippedBy", "conditionKinds", "conditionHints", "runStatus", "stoppedBy"];
339
+ type Nested = (typeof NESTED)[number];
340
+ /** Overrides: any label, with the nested groups merged key by key. */
341
+ type PipelineLabelsOverride = Partial<Omit<PipelineLabels, Nested>> & {
342
+ [K in Nested]?: Partial<PipelineLabels[K]>;
343
+ };
344
+ /** `base` with `over` applied (nested groups merged, not replaced). */
345
+ declare const mergePipelineLabels: (base: PipelineLabels, over?: PipelineLabelsOverride) => PipelineLabels;
346
+
347
+ export { addEdge, addNode, autoLayout, createInitialPipelineState, defaultPipelineLabels, emptyPipeline, ensureEdgeIds, issueTarget, mergePipelineLabels, moveNode, nextNodePosition, parsePipelineJson, pipelineNodeView, pipelineStateReducer, pipelineToCode, removeEdge, removeNode, renameNode, renameRoute, setEntry, setLimits, setPipelineName, slugifyId, uniqueEdgeId, uniqueNodeId, updateEdge, updateNode };
348
+ export type { AutoLayoutOptions, PipelineAction, PipelineCodeOptions, PipelineCodeTarget, PipelineEdgeView, PipelineLabels, PipelineLabelsOverride, PipelineNodeActivity, PipelineNodeStatus, PipelineNodeView, PipelineOutputView, PipelineRunStatus, PipelineSelection, PipelineUiState, PipelineVisitView };
@@ -0,0 +1,348 @@
1
+ import { AgentEvent, PipelineResult, IUsage, PipelineStop, PipelineDefinition, PipelineCondition, PipelineNode, PipelineIssue } from '@dudko.dev/agent-web';
2
+ import { CanvasLabels } from './canvas.js';
3
+
4
+ type PipelineRunStatus = 'idle' | 'running' | 'done' | 'failed' | 'stopped';
5
+ /**
6
+ * `waiting`: an edge fired towards the node and it has not started yet (it waits for its wave,
7
+ * or for the other branch of a fan-in). `skipped`: a cap refused the visit.
8
+ */
9
+ type PipelineNodeStatus = 'idle' | 'waiting' | 'running' | 'done' | 'failed' | 'skipped';
10
+ /** What the node's own agent is doing right now, in one line's worth. */
11
+ interface PipelineNodeActivity {
12
+ phase?: 'plan' | 'execute' | 'replan' | 'synthesize';
13
+ /** The plan step in progress, with its place in the plan (1-based, as the core counts). */
14
+ step?: string;
15
+ stepIndex?: number;
16
+ stepTotal?: number;
17
+ /** The tool being called, while it runs. */
18
+ tool?: string;
19
+ /** Tool calls made in this visit so far. */
20
+ toolCalls: number;
21
+ }
22
+ interface PipelineOutputView {
23
+ visit: number;
24
+ text: string;
25
+ route?: string;
26
+ }
27
+ interface PipelineNodeView {
28
+ status: PipelineNodeStatus;
29
+ /** Visits started. */
30
+ visits: number;
31
+ /** The nodes whose outputs the current (or last) visit received. */
32
+ from: string[];
33
+ /** One entry per finished visit, in order. */
34
+ outputs: PipelineOutputView[];
35
+ activity?: PipelineNodeActivity;
36
+ error?: string;
37
+ /** Why the last activation was refused. */
38
+ skipped?: 'maxRuns' | 'maxNodeVisits';
39
+ /** Tokens of all its finished visits. */
40
+ usage?: IUsage;
41
+ }
42
+ interface PipelineEdgeView {
43
+ from: string;
44
+ to: string;
45
+ /** The last decision. */
46
+ fired: boolean;
47
+ /** The visit of the source node that decided it. */
48
+ visit: number;
49
+ /** How many times it fired in this run. */
50
+ count: number;
51
+ /** It fired and what it carries has not been consumed yet: the target waits or runs. */
52
+ live: boolean;
53
+ }
54
+ /** One node visit, in the order visits started: the run as a timeline. */
55
+ interface PipelineVisitView {
56
+ nodeId: string;
57
+ visit: number;
58
+ from: string[];
59
+ status: 'running' | 'done' | 'failed' | 'stopped';
60
+ text?: string;
61
+ route?: string;
62
+ error?: string;
63
+ usage?: IUsage;
64
+ }
65
+ interface PipelineUiState {
66
+ status: PipelineRunStatus;
67
+ /** The request of the current (or last) run. */
68
+ input?: string;
69
+ /** The definition's name, as the run reported it. */
70
+ name?: string;
71
+ /** By node id. A node the run has not touched is absent: read it with `pipelineNodeView`. */
72
+ nodes: Record<string, PipelineNodeView>;
73
+ /** By edge id: the last decision on each edge that was decided. */
74
+ edges: Record<string, PipelineEdgeView>;
75
+ /** The edges the node that finished last fired. */
76
+ lastFired: string[];
77
+ visits: PipelineVisitView[];
78
+ /** The final text (set when the run ends). */
79
+ text: string;
80
+ usage: IUsage;
81
+ /** Node visits started. */
82
+ runs: number;
83
+ stoppedBy?: PipelineStop;
84
+ error?: string;
85
+ /** The node whose failure ended the run. */
86
+ failedNode?: string;
87
+ }
88
+ type PipelineAction = {
89
+ type: 'run.start';
90
+ input: string;
91
+ } | {
92
+ type: 'event';
93
+ event: AgentEvent;
94
+ }
95
+ /** `run` resolved. */
96
+ | {
97
+ type: 'run.result';
98
+ result: PipelineResult;
99
+ }
100
+ /** `run` rejected, or could not start. */
101
+ | {
102
+ type: 'run.error';
103
+ error: string;
104
+ nodeId?: string;
105
+ } | {
106
+ type: 'reset';
107
+ };
108
+ declare const createInitialPipelineState: () => PipelineUiState;
109
+ /** A node's view; an idle one for a node the run has not touched. */
110
+ declare const pipelineNodeView: (state: PipelineUiState, nodeId: string) => PipelineNodeView;
111
+ /** Fold one action into the state. Returns the same object when nothing changed. */
112
+ declare const pipelineStateReducer: (state: PipelineUiState, action: PipelineAction) => PipelineUiState;
113
+
114
+ type PipelineSelection = {
115
+ kind: 'node' | 'edge';
116
+ id: string;
117
+ } | null;
118
+ /** A definition to start from: one node, which is the entry. */
119
+ declare const emptyPipeline: () => PipelineDefinition;
120
+ /**
121
+ * The definition with an id on every edge. The runner hands ids out by position (`e0`, `e1`, …),
122
+ * which shift when an edge is removed - an editor needs them fixed, so it writes them down.
123
+ */
124
+ declare const ensureEdgeIds: (definition: PipelineDefinition) => PipelineDefinition;
125
+ /** "Fact checker!" → "fact-checker". */
126
+ declare const slugifyId: (text: string) => string;
127
+ /** An id no node has: `base`, or `base-2`, `base-3`, … */
128
+ declare const uniqueNodeId: (definition: PipelineDefinition, base?: string) => string;
129
+ /** An id no edge has (`e0`, `e1`, …; the positional ids of unnamed edges count as taken). */
130
+ declare const uniqueEdgeId: (definition: PipelineDefinition) => string;
131
+ /**
132
+ * Add a node. Without an id it gets a free one (from its name, or `node`); an id that is taken
133
+ * is made unique. The first node of a pipeline becomes its entry.
134
+ */
135
+ declare const addNode: (definition: PipelineDefinition, node?: Partial<PipelineNode>) => PipelineDefinition;
136
+ /** Change a node's fields (not its id: `renameNode`). An emptied field is removed. */
137
+ declare const updateNode: (definition: PipelineDefinition, id: string, patch: Partial<Omit<PipelineNode, "id">>) => PipelineDefinition;
138
+ declare const moveNode: (definition: PipelineDefinition, id: string, position: {
139
+ x: number;
140
+ y: number;
141
+ }) => PipelineDefinition;
142
+ /** Remove a node and every edge that touches it. The entry moves to the first node left. */
143
+ declare const removeNode: (definition: PipelineDefinition, id: string) => PipelineDefinition;
144
+ /** Give a node another id; its edges and the entry follow. Refused when the id is empty or taken. */
145
+ declare const renameNode: (definition: PipelineDefinition, id: string, nextId: string) => PipelineDefinition;
146
+ declare const setEntry: (definition: PipelineDefinition, id: string) => PipelineDefinition;
147
+ /**
148
+ * Connect two nodes. Refused when either does not exist, or when the same edge (the same ends
149
+ * and the same condition) is already there. The edge gets a free id unless it brings one.
150
+ */
151
+ declare const addEdge: (definition: PipelineDefinition, edge: {
152
+ from: string;
153
+ to: string;
154
+ when?: PipelineCondition;
155
+ id?: string;
156
+ }) => PipelineDefinition;
157
+ /** Change an edge's condition or ends. An end that names no node is refused. */
158
+ declare const updateEdge: (definition: PipelineDefinition, id: string, patch: {
159
+ from?: string;
160
+ to?: string;
161
+ when?: PipelineCondition;
162
+ }) => PipelineDefinition;
163
+ declare const removeEdge: (definition: PipelineDefinition, id: string) => PipelineDefinition;
164
+ /** Rename one of a node's routes; the edges that take that route follow. */
165
+ declare const renameRoute: (definition: PipelineDefinition, nodeId: string, label: string, nextLabel: string) => PipelineDefinition;
166
+ /** Set (a number) or clear (undefined) the limits; a definition with none has no `limits`. */
167
+ declare const setLimits: (definition: PipelineDefinition, patch: {
168
+ maxNodeVisits?: number;
169
+ maxRuns?: number;
170
+ }) => PipelineDefinition;
171
+ declare const setPipelineName: (definition: PipelineDefinition, name: string) => PipelineDefinition;
172
+ interface AutoLayoutOptions {
173
+ /** Distance between the left sides of two columns (default 320). */
174
+ columnGap?: number;
175
+ /** Distance between the tops of two nodes of a column (default 170). */
176
+ rowGap?: number;
177
+ /** Place every node, not only the ones without a position. */
178
+ all?: boolean;
179
+ }
180
+ /**
181
+ * Give a position to the nodes that have none (a definition written by hand, or by a model):
182
+ * columns by distance from the entry, left to right. Nodes the entry does not reach go last.
183
+ */
184
+ declare const autoLayout: (definition: PipelineDefinition, options?: AutoLayoutOptions) => PipelineDefinition;
185
+ /** A free spot for a new node: to the right of the lowest node of the last column. */
186
+ declare const nextNodePosition: (definition: PipelineDefinition) => {
187
+ x: number;
188
+ y: number;
189
+ };
190
+ /** What a validation issue is about, as something to select. */
191
+ declare const issueTarget: (issue: PipelineIssue, definition: PipelineDefinition) => PipelineSelection;
192
+ /**
193
+ * Read a definition from text (an imported file, a paste). Throws with a plain message when the
194
+ * text is not JSON or not the shape of a pipeline; a definition that parses but does not
195
+ * validate is returned as it is, for the editor to show what is wrong with it.
196
+ */
197
+ declare const parsePipelineJson: (text: string) => PipelineDefinition;
198
+
199
+ type PipelineCodeTarget = 'browser' | 'node';
200
+ interface PipelineCodeOptions {
201
+ /** `browser`: @dudko.dev/agent-web. `node`: @dudko.dev/agent. */
202
+ target?: PipelineCodeTarget;
203
+ /** Keep the nodes' `position` (an editor's business; the runner ignores it). Default false. */
204
+ positions?: boolean;
205
+ /** The request in the example call. */
206
+ input?: string;
207
+ }
208
+ /**
209
+ * A snippet that runs the definition with the browser package or with the Node one. The names
210
+ * the definition uses (models, skills, tool groups, MCP servers) appear as variables for the
211
+ * host to supply: a definition never carries a model or a key.
212
+ */
213
+ declare const pipelineToCode: (definition: PipelineDefinition, options?: PipelineCodeOptions) => string;
214
+
215
+ type ConditionKind = PipelineCondition['kind'];
216
+ /**
217
+ * Every string the pipeline editor renders or says - override any of them for another language
218
+ * or wording, per component (`labels` prop) or for a whole tree (`<PipelineLabelsProvider>`).
219
+ * Counted phrases are functions. The reference with the defaults is in docs/pipeline.md.
220
+ */
221
+ interface PipelineLabels {
222
+ toolbar: string;
223
+ addNode: string;
224
+ deleteSelected: string;
225
+ fit: string;
226
+ zoomIn: string;
227
+ zoomOut: string;
228
+ importJson: string;
229
+ exportJson: string;
230
+ copyCode: string;
231
+ /** The name a new node gets ("Agent 3"). */
232
+ newNodeName: (n: number) => string;
233
+ importFailed: (reason: string) => string;
234
+ issues: string;
235
+ noIssues: string;
236
+ errors: (n: number) => string;
237
+ warnings: (n: number) => string;
238
+ issueError: string;
239
+ issueWarning: string;
240
+ /** The canvas's own strings (its name, its keyboard help, what a port and an edge are called). */
241
+ canvas: CanvasLabels;
242
+ emptyCanvas: string;
243
+ /** The node's state for a screen reader: "running, visit 2". */
244
+ nodeDescription: (status: string, visits: number) => string;
245
+ nodeStatus: Record<PipelineNodeStatus, string>;
246
+ entry: string;
247
+ defaultModel: string;
248
+ skillsBadge: (n: number) => string;
249
+ toolsBadge: (n: number) => string;
250
+ mcpBadge: (n: number) => string;
251
+ visits: (n: number) => string;
252
+ /** The output port of a node with routes that takes no route: every other kind of edge. */
253
+ anyOutput: string;
254
+ activityPlanning: string;
255
+ activityReplanning: string;
256
+ activityAnswering: string;
257
+ activityStep: (index: number, total: number, step: string) => string;
258
+ activityTool: (name: string) => string;
259
+ skippedBy: Record<'maxRuns' | 'maxNodeVisits', string>;
260
+ inspector: string;
261
+ inspectorNode: string;
262
+ inspectorEdge: string;
263
+ inspectorPipeline: string;
264
+ close: string;
265
+ expand: string;
266
+ collapse: string;
267
+ fieldId: string;
268
+ fieldIdHint: string;
269
+ idTaken: string;
270
+ idEmpty: string;
271
+ fieldName: string;
272
+ fieldInstructions: string;
273
+ instructionsPlaceholder: string;
274
+ fieldModel: string;
275
+ /** An option that is in the definition but not in the host's list. */
276
+ unknownOption: (name: string) => string;
277
+ fieldSkills: string;
278
+ fieldTools: string;
279
+ fieldMcp: string;
280
+ noOptions: string;
281
+ fieldRoutes: string;
282
+ routesHint: string;
283
+ routeLabel: string;
284
+ routeDescription: string;
285
+ addRoute: string;
286
+ removeRoute: (label: string) => string;
287
+ fieldJoin: string;
288
+ joinAll: string;
289
+ joinAny: string;
290
+ isEntry: string;
291
+ makeEntry: string;
292
+ deleteNode: string;
293
+ edgeEnds: (from: string, to: string) => string;
294
+ fieldCondition: string;
295
+ conditionKinds: Record<ConditionKind, string>;
296
+ conditionHints: Record<ConditionKind, string>;
297
+ fieldText: string;
298
+ caseSensitive: string;
299
+ fieldPattern: string;
300
+ fieldFlags: string;
301
+ fieldRoute: string;
302
+ noRoutes: string;
303
+ deleteEdge: string;
304
+ pipelineName: string;
305
+ pipelineNamePlaceholder: string;
306
+ fieldEntry: string;
307
+ fieldMaxNodeVisits: string;
308
+ fieldMaxRuns: string;
309
+ limitDefault: (n: number) => string;
310
+ counts: (nodes: number, edges: number) => string;
311
+ runPlaceholder: string;
312
+ runInput: string;
313
+ run: string;
314
+ stop: string;
315
+ fixErrorsFirst: string;
316
+ runStatus: Record<PipelineRunStatus, string>;
317
+ stoppedBy: Record<PipelineStop, string>;
318
+ /** Announced to a screen reader as nodes start, finish, fail. */
319
+ announceNode: (name: string, status: string) => string;
320
+ results: string;
321
+ showResults: string;
322
+ hideResults: string;
323
+ finalAnswer: string;
324
+ nodeOutputs: string;
325
+ noOutputYet: string;
326
+ visitTitle: (name: string, visit: number) => string;
327
+ routeTaken: (label: string) => string;
328
+ receivedFrom: (names: string) => string;
329
+ usage: (input: string, output: string) => string;
330
+ runsCount: (n: number) => string;
331
+ codeTitle: string;
332
+ codeBrowser: string;
333
+ codeNode: string;
334
+ copy: string;
335
+ copied: string;
336
+ }
337
+ declare const defaultPipelineLabels: PipelineLabels;
338
+ declare const NESTED: readonly ["canvas", "nodeStatus", "skippedBy", "conditionKinds", "conditionHints", "runStatus", "stoppedBy"];
339
+ type Nested = (typeof NESTED)[number];
340
+ /** Overrides: any label, with the nested groups merged key by key. */
341
+ type PipelineLabelsOverride = Partial<Omit<PipelineLabels, Nested>> & {
342
+ [K in Nested]?: Partial<PipelineLabels[K]>;
343
+ };
344
+ /** `base` with `over` applied (nested groups merged, not replaced). */
345
+ declare const mergePipelineLabels: (base: PipelineLabels, over?: PipelineLabelsOverride) => PipelineLabels;
346
+
347
+ export { addEdge, addNode, autoLayout, createInitialPipelineState, defaultPipelineLabels, emptyPipeline, ensureEdgeIds, issueTarget, mergePipelineLabels, moveNode, nextNodePosition, parsePipelineJson, pipelineNodeView, pipelineStateReducer, pipelineToCode, removeEdge, removeNode, renameNode, renameRoute, setEntry, setLimits, setPipelineName, slugifyId, uniqueEdgeId, uniqueNodeId, updateEdge, updateNode };
348
+ export type { AutoLayoutOptions, PipelineAction, PipelineCodeOptions, PipelineCodeTarget, PipelineEdgeView, PipelineLabels, PipelineLabelsOverride, PipelineNodeActivity, PipelineNodeStatus, PipelineNodeView, PipelineOutputView, PipelineRunStatus, PipelineSelection, PipelineUiState, PipelineVisitView };