@particle-academy/fancy-flow 0.45.0 → 0.47.0

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 (101) hide show
  1. package/README.md +29 -0
  2. package/dist/{ConfigFieldRenderer-Dzy4f6rG.d.cts → ConfigFieldRenderer-Cyir8-B8.d.cts} +2 -2
  3. package/dist/{ConfigFieldRenderer-WqJr-td_.d.ts → ConfigFieldRenderer-iMkZj0VK.d.ts} +2 -2
  4. package/dist/{FlowViewer-BbbUJe2b.d.cts → FlowViewer-CY3_vHSg.d.cts} +1 -1
  5. package/dist/{FlowViewer-csuaTL5t.d.ts → FlowViewer-DGW6t-80.d.ts} +1 -1
  6. package/dist/{capabilities-Brn74URS.d.ts → capabilities-DMUhnyZD.d.ts} +1 -1
  7. package/dist/{capabilities-CYCeIx6I.d.cts → capabilities-Dmd26aAs.d.cts} +1 -1
  8. package/dist/chunk-BHM5HGXH.js +79 -0
  9. package/dist/chunk-BHM5HGXH.js.map +1 -0
  10. package/dist/chunk-DR3GWVDG.js +196 -0
  11. package/dist/chunk-DR3GWVDG.js.map +1 -0
  12. package/dist/{chunk-3BKU4SQZ.js → chunk-ISXRQELT.js} +3 -4
  13. package/dist/chunk-ISXRQELT.js.map +1 -0
  14. package/dist/{chunk-OWENS2H5.js → chunk-NDEX655E.js} +1603 -36
  15. package/dist/chunk-NDEX655E.js.map +1 -0
  16. package/dist/{chunk-QZTGV3ZL.js → chunk-QVFVL5LQ.js} +3 -3
  17. package/dist/{chunk-QZTGV3ZL.js.map → chunk-QVFVL5LQ.js.map} +1 -1
  18. package/dist/{chunk-DHUFUDEX.js → chunk-Z2GRNYR2.js} +7 -6
  19. package/dist/chunk-Z2GRNYR2.js.map +1 -0
  20. package/dist/{chunk-A6RFLGWV.js → chunk-ZKJJWBDJ.js} +3 -5
  21. package/dist/chunk-ZKJJWBDJ.js.map +1 -0
  22. package/dist/durable/index.d.cts +490 -0
  23. package/dist/durable/index.d.ts +490 -0
  24. package/dist/durable.cjs +10991 -0
  25. package/dist/durable.cjs.map +1 -0
  26. package/dist/durable.js +552 -0
  27. package/dist/durable.js.map +1 -0
  28. package/dist/engine.cjs +10223 -47
  29. package/dist/engine.cjs.map +1 -1
  30. package/dist/engine.d.cts +9 -7
  31. package/dist/engine.d.ts +9 -7
  32. package/dist/engine.js +4 -6
  33. package/dist/engine.js.map +1 -1
  34. package/dist/fields/react-fancy.d.cts +4 -3
  35. package/dist/fields/react-fancy.d.ts +4 -3
  36. package/dist/index.cjs +336 -194
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +12 -10
  39. package/dist/index.d.ts +12 -10
  40. package/dist/index.js +15 -93
  41. package/dist/index.js.map +1 -1
  42. package/dist/layout/index.d.cts +1 -1
  43. package/dist/layout/index.d.ts +1 -1
  44. package/dist/llm/prism.d.cts +2 -2
  45. package/dist/llm/prism.d.ts +2 -2
  46. package/dist/llm/vercel-ai.d.cts +2 -2
  47. package/dist/llm/vercel-ai.d.ts +2 -2
  48. package/dist/pause-9iT4tCEV.d.cts +96 -0
  49. package/dist/pause-9iT4tCEV.d.ts +96 -0
  50. package/dist/registry/index.d.cts +7 -6
  51. package/dist/registry/index.d.ts +7 -6
  52. package/dist/{registry-Budds73w.d.cts → registry-Bt55f63_.d.ts} +21 -2
  53. package/dist/{registry-D0I20HJ3.d.ts → registry-CkcSwmfR.d.cts} +21 -2
  54. package/dist/registry.cjs +3961 -3821
  55. package/dist/registry.cjs.map +1 -1
  56. package/dist/registry.js +3 -6
  57. package/dist/{run-cohort-CV7EcwGG.d.ts → run-cohort-Cyeny2Uu.d.ts} +3 -34
  58. package/dist/{run-cohort-DitsaYgS.d.cts → run-cohort-DdPPowJ3.d.cts} +3 -34
  59. package/dist/run-flow-1KiXhy59.d.cts +55 -0
  60. package/dist/run-flow-CQvTDBYk.d.ts +55 -0
  61. package/dist/runtime/index.d.cts +5 -3
  62. package/dist/runtime/index.d.ts +5 -3
  63. package/dist/runtime.cjs +1712 -430
  64. package/dist/runtime.cjs.map +1 -1
  65. package/dist/runtime.js +5 -6
  66. package/dist/schema/index.d.cts +1 -1
  67. package/dist/schema/index.d.ts +1 -1
  68. package/dist/schema.cjs +10369 -24
  69. package/dist/schema.cjs.map +1 -1
  70. package/dist/schema.js +4 -3
  71. package/dist/screens.cjs +1366 -38
  72. package/dist/screens.cjs.map +1 -1
  73. package/dist/screens.d.cts +2 -2
  74. package/dist/screens.d.ts +2 -2
  75. package/dist/screens.js +5 -8
  76. package/dist/screens.js.map +1 -1
  77. package/dist/{types-D6ZSKBly.d.ts → types--S2Kzx7w.d.cts} +3 -97
  78. package/dist/{types-nQOA8jpk.d.cts → types-ChkCRonF.d.ts} +3 -97
  79. package/dist/types-Jx1TwehV.d.cts +247 -0
  80. package/dist/types-Jx1TwehV.d.ts +247 -0
  81. package/dist/ux.cjs +10363 -2
  82. package/dist/ux.cjs.map +1 -1
  83. package/dist/ux.d.cts +3 -2
  84. package/dist/ux.d.ts +3 -2
  85. package/dist/ux.js +3 -1
  86. package/dist/ux.js.map +1 -1
  87. package/package.json +17 -3
  88. package/dist/chunk-3BKU4SQZ.js.map +0 -1
  89. package/dist/chunk-A6RFLGWV.js.map +0 -1
  90. package/dist/chunk-DHUFUDEX.js.map +0 -1
  91. package/dist/chunk-OWENS2H5.js.map +0 -1
  92. package/dist/chunk-PVROYW7C.js +0 -187
  93. package/dist/chunk-PVROYW7C.js.map +0 -1
  94. package/dist/chunk-TITD5W4Y.js +0 -26
  95. package/dist/chunk-TITD5W4Y.js.map +0 -1
  96. package/dist/chunk-VLATLVGH.js +0 -158
  97. package/dist/chunk-VLATLVGH.js.map +0 -1
  98. package/dist/chunk-WBXGZVLB.js +0 -1268
  99. package/dist/chunk-WBXGZVLB.js.map +0 -1
  100. package/dist/types-CMSrWVYM.d.cts +0 -109
  101. package/dist/types-CMSrWVYM.d.ts +0 -109
@@ -1,4 +1,4 @@
1
- import { F as FlowGraph, a as FlowNode } from '../types-CMSrWVYM.cjs';
1
+ import { F as FlowGraph, a as FlowNode } from '../types-Jx1TwehV.cjs';
2
2
  import '@xyflow/react';
3
3
 
4
4
  type AutoLayoutDirection = "LR" | "TB" | "RL" | "BT";
@@ -1,4 +1,4 @@
1
- import { F as FlowGraph, a as FlowNode } from '../types-CMSrWVYM.js';
1
+ import { F as FlowGraph, a as FlowNode } from '../types-Jx1TwehV.js';
2
2
  import '@xyflow/react';
3
3
 
4
4
  type AutoLayoutDirection = "LR" | "TB" | "RL" | "BT";
@@ -1,5 +1,5 @@
1
- import { L as LlmClient } from '../capabilities-CYCeIx6I.cjs';
2
- import '../types-CMSrWVYM.cjs';
1
+ import { L as LlmClient } from '../capabilities-Dmd26aAs.cjs';
2
+ import '../types-Jx1TwehV.cjs';
3
3
  import '@xyflow/react';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { L as LlmClient } from '../capabilities-Brn74URS.js';
2
- import '../types-CMSrWVYM.js';
1
+ import { L as LlmClient } from '../capabilities-DMUhnyZD.js';
2
+ import '../types-Jx1TwehV.js';
3
3
  import '@xyflow/react';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { LanguageModel } from 'ai';
2
- import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-CYCeIx6I.cjs';
3
- import '../types-CMSrWVYM.cjs';
2
+ import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-Dmd26aAs.cjs';
3
+ import '../types-Jx1TwehV.cjs';
4
4
  import '@xyflow/react';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { LanguageModel } from 'ai';
2
- import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-Brn74URS.js';
3
- import '../types-CMSrWVYM.js';
2
+ import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-DMUhnyZD.js';
3
+ import '../types-Jx1TwehV.js';
4
4
  import '@xyflow/react';
5
5
 
6
6
  /**
@@ -0,0 +1,96 @@
1
+ /**
2
+ * The human-pause contract.
3
+ *
4
+ * A workflow that waits for a person is not an error, but it travels the same
5
+ * channel as one: the executor aborts, the engine records a reason string, and
6
+ * the durable runner decides whether that string meant "failed" or "waiting".
7
+ *
8
+ * That seam existed before this module, as two `str_starts_with` checks in the
9
+ * Laravel run job against constants owned by two BUILTIN executors. It worked,
10
+ * and it was invisible: a third-party human-input node had no way to announce
11
+ * that it pauses, and nothing stopped a refactor from removing the mechanism
12
+ * out from under published packages. Reported by the MOIC Suite consumer, who
13
+ * needed exactly that and had to reach for a private constant to get it.
14
+ *
15
+ * So the encoding is now public, typed, and versioned by prefix rather than
16
+ * implied. The wire format stays a plain string on purpose — it survives the
17
+ * existing abort → `RunResult.error` path unchanged, crosses a queue boundary,
18
+ * and decodes identically in PHP, none of which a thrown class would do.
19
+ *
20
+ * @see decodePause — the one function a durable runner needs.
21
+ */
22
+ /**
23
+ * What the run is waiting for.
24
+ *
25
+ * `approval` and `input` are the shapes both runtimes ship. The type stays open
26
+ * because the whole point is that a marketplace node can define its own —
27
+ * a signature step, a payment confirmation, a review queue — and a runner that
28
+ * does not recognise one should report it rather than guess.
29
+ */
30
+ type PauseAwaiting = "approval" | "input" | (string & {});
31
+ /** A run halted, waiting for a person. */
32
+ type PauseSignal = {
33
+ /** The node that paused — where a submission gets injected on resume. */
34
+ nodeId: string;
35
+ awaiting: PauseAwaiting;
36
+ /**
37
+ * Kind-supplied context for whoever renders the wait — a form schema, the
38
+ * question being asked, a diff to approve. Must be JSON-serializable: it
39
+ * crosses a queue boundary and, for durable runs, a database column.
40
+ */
41
+ detail?: unknown;
42
+ };
43
+ /** Marks a reason string as a pause rather than a failure. */
44
+ declare const PAUSE_PREFIX = "fancy-flow:pause:";
45
+ /**
46
+ * Reason prefixes shipped before this contract, kept decodable forever.
47
+ *
48
+ * These are what `DurableApprovalExecutor` and `DurableUserInputExecutor`
49
+ * emitted, and they are written into the `error` column of every run that
50
+ * paused under an older version. Dropping them would strand those runs
51
+ * mid-flight — a resume path that only works for new runs is not a resume path.
52
+ */
53
+ declare const LEGACY_PAUSE_PREFIXES: ReadonlyArray<readonly [string, PauseAwaiting]>;
54
+ /**
55
+ * Encode a pause as the reason string an executor aborts with.
56
+ *
57
+ * The payload is JSON rather than delimited fields because a node id may
58
+ * contain a colon, and a positional encoding that breaks on user data is the
59
+ * kind of bug that only shows up in someone else's graph.
60
+ */
61
+ declare function encodePause(signal: PauseSignal): string;
62
+ /**
63
+ * Decode a run's error reason into a pause, or null if it was a real failure.
64
+ *
65
+ * This is the whole contract from a runner's side: call it on `result.error`,
66
+ * and if it returns non-null, persist the run as waiting on `signal.nodeId`
67
+ * instead of failing it. Accepts the legacy prefixes, so a runner written
68
+ * against this handles runs that paused under an older version.
69
+ */
70
+ declare function decodePause(reason: string | null | undefined): PauseSignal | null;
71
+ /** True when a run's error reason is actually a pause. */
72
+ declare function isPause(reason: string | null | undefined): boolean;
73
+ /**
74
+ * Abort the current node as a pause.
75
+ *
76
+ * Called from inside an executor with its own context. Node authors should
77
+ * reach for this rather than hand-encoding a reason, so the format stays ours
78
+ * to change:
79
+ *
80
+ * ```ts
81
+ * const values = ctx.inputs.values;
82
+ * if (values === undefined) pauseForHuman(ctx, "input", { fields });
83
+ * return values;
84
+ * ```
85
+ *
86
+ * Note the `undefined` check — an empty submission (`{}`) is a real answer and
87
+ * must resume. Truthiness here pauses forever on an empty form.
88
+ */
89
+ declare function pauseForHuman(ctx: {
90
+ node: {
91
+ id: string;
92
+ };
93
+ abort: (reason?: string) => never;
94
+ }, awaiting: PauseAwaiting, detail?: unknown): never;
95
+
96
+ export { LEGACY_PAUSE_PREFIXES as L, type PauseAwaiting as P, PAUSE_PREFIX as a, type PauseSignal as b, decodePause as d, encodePause as e, isPause as i, pauseForHuman as p };
@@ -0,0 +1,96 @@
1
+ /**
2
+ * The human-pause contract.
3
+ *
4
+ * A workflow that waits for a person is not an error, but it travels the same
5
+ * channel as one: the executor aborts, the engine records a reason string, and
6
+ * the durable runner decides whether that string meant "failed" or "waiting".
7
+ *
8
+ * That seam existed before this module, as two `str_starts_with` checks in the
9
+ * Laravel run job against constants owned by two BUILTIN executors. It worked,
10
+ * and it was invisible: a third-party human-input node had no way to announce
11
+ * that it pauses, and nothing stopped a refactor from removing the mechanism
12
+ * out from under published packages. Reported by the MOIC Suite consumer, who
13
+ * needed exactly that and had to reach for a private constant to get it.
14
+ *
15
+ * So the encoding is now public, typed, and versioned by prefix rather than
16
+ * implied. The wire format stays a plain string on purpose — it survives the
17
+ * existing abort → `RunResult.error` path unchanged, crosses a queue boundary,
18
+ * and decodes identically in PHP, none of which a thrown class would do.
19
+ *
20
+ * @see decodePause — the one function a durable runner needs.
21
+ */
22
+ /**
23
+ * What the run is waiting for.
24
+ *
25
+ * `approval` and `input` are the shapes both runtimes ship. The type stays open
26
+ * because the whole point is that a marketplace node can define its own —
27
+ * a signature step, a payment confirmation, a review queue — and a runner that
28
+ * does not recognise one should report it rather than guess.
29
+ */
30
+ type PauseAwaiting = "approval" | "input" | (string & {});
31
+ /** A run halted, waiting for a person. */
32
+ type PauseSignal = {
33
+ /** The node that paused — where a submission gets injected on resume. */
34
+ nodeId: string;
35
+ awaiting: PauseAwaiting;
36
+ /**
37
+ * Kind-supplied context for whoever renders the wait — a form schema, the
38
+ * question being asked, a diff to approve. Must be JSON-serializable: it
39
+ * crosses a queue boundary and, for durable runs, a database column.
40
+ */
41
+ detail?: unknown;
42
+ };
43
+ /** Marks a reason string as a pause rather than a failure. */
44
+ declare const PAUSE_PREFIX = "fancy-flow:pause:";
45
+ /**
46
+ * Reason prefixes shipped before this contract, kept decodable forever.
47
+ *
48
+ * These are what `DurableApprovalExecutor` and `DurableUserInputExecutor`
49
+ * emitted, and they are written into the `error` column of every run that
50
+ * paused under an older version. Dropping them would strand those runs
51
+ * mid-flight — a resume path that only works for new runs is not a resume path.
52
+ */
53
+ declare const LEGACY_PAUSE_PREFIXES: ReadonlyArray<readonly [string, PauseAwaiting]>;
54
+ /**
55
+ * Encode a pause as the reason string an executor aborts with.
56
+ *
57
+ * The payload is JSON rather than delimited fields because a node id may
58
+ * contain a colon, and a positional encoding that breaks on user data is the
59
+ * kind of bug that only shows up in someone else's graph.
60
+ */
61
+ declare function encodePause(signal: PauseSignal): string;
62
+ /**
63
+ * Decode a run's error reason into a pause, or null if it was a real failure.
64
+ *
65
+ * This is the whole contract from a runner's side: call it on `result.error`,
66
+ * and if it returns non-null, persist the run as waiting on `signal.nodeId`
67
+ * instead of failing it. Accepts the legacy prefixes, so a runner written
68
+ * against this handles runs that paused under an older version.
69
+ */
70
+ declare function decodePause(reason: string | null | undefined): PauseSignal | null;
71
+ /** True when a run's error reason is actually a pause. */
72
+ declare function isPause(reason: string | null | undefined): boolean;
73
+ /**
74
+ * Abort the current node as a pause.
75
+ *
76
+ * Called from inside an executor with its own context. Node authors should
77
+ * reach for this rather than hand-encoding a reason, so the format stays ours
78
+ * to change:
79
+ *
80
+ * ```ts
81
+ * const values = ctx.inputs.values;
82
+ * if (values === undefined) pauseForHuman(ctx, "input", { fields });
83
+ * return values;
84
+ * ```
85
+ *
86
+ * Note the `undefined` check — an empty submission (`{}`) is a real answer and
87
+ * must resume. Truthiness here pauses forever on an empty form.
88
+ */
89
+ declare function pauseForHuman(ctx: {
90
+ node: {
91
+ id: string;
92
+ };
93
+ abort: (reason?: string) => never;
94
+ }, awaiting: PauseAwaiting, detail?: unknown): never;
95
+
96
+ export { LEGACY_PAUSE_PREFIXES as L, type PauseAwaiting as P, PAUSE_PREFIX as a, type PauseSignal as b, decodePause as d, encodePause as e, isPause as i, pauseForHuman as p };
@@ -1,12 +1,13 @@
1
- import { N as NodeKindDefinition, j as PortSpec } from '../types-nQOA8jpk.cjs';
2
- export { C as ConfigField, q as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, L as LEGACY_PAUSE_PREFIXES, a as NodeCategory, r as NumberConfigField, h as PAUSE_PREFIX, P as PauseAwaiting, i as PauseSignal, R as RenderBodyContext, t as RepeaterConfigField, u as RepeaterRowField, w as SelectConfigField, x as SwitchConfigField, T as TextConfigField, y as TextareaConfigField, m as decodePause, n as encodePause, o as isPause, p as pauseForHuman } from '../types-nQOA8jpk.cjs';
3
- import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-CMSrWVYM.cjs';
1
+ import { N as NodeKindDefinition, P as PortSpec } from '../types--S2Kzx7w.cjs';
2
+ export { C as ConfigField, j as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, a as NodeCategory, k as NumberConfigField, R as RenderBodyContext, l as RepeaterConfigField, m as RepeaterRowField, n as SelectConfigField, o as SwitchConfigField, T as TextConfigField, p as TextareaConfigField } from '../types--S2Kzx7w.cjs';
3
+ import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-Jx1TwehV.cjs';
4
4
  import { Connection, Edge, NodeProps, NodeTypes } from '@xyflow/react';
5
- import { b as LlmRoute } from '../capabilities-CYCeIx6I.cjs';
6
- export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-CYCeIx6I.cjs';
5
+ import { b as LlmRoute } from '../capabilities-Dmd26aAs.cjs';
6
+ export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-Dmd26aAs.cjs';
7
+ export { L as LEGACY_PAUSE_PREFIXES, a as PAUSE_PREFIX, P as PauseAwaiting, b as PauseSignal, d as decodePause, e as encodePause, i as isPause, p as pauseForHuman } from '../pause-9iT4tCEV.cjs';
7
8
  import * as react from 'react';
8
9
  import { ComponentType, ReactNode } from 'react';
9
- export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, e as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-Budds73w.cjs';
10
+ export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-CkcSwmfR.cjs';
10
11
 
11
12
  /**
12
13
  * Connection validation — the single rule that decides whether an edge between
@@ -1,12 +1,13 @@
1
- import { N as NodeKindDefinition, j as PortSpec } from '../types-D6ZSKBly.js';
2
- export { C as ConfigField, q as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, L as LEGACY_PAUSE_PREFIXES, a as NodeCategory, r as NumberConfigField, h as PAUSE_PREFIX, P as PauseAwaiting, i as PauseSignal, R as RenderBodyContext, t as RepeaterConfigField, u as RepeaterRowField, w as SelectConfigField, x as SwitchConfigField, T as TextConfigField, y as TextareaConfigField, m as decodePause, n as encodePause, o as isPause, p as pauseForHuman } from '../types-D6ZSKBly.js';
3
- import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-CMSrWVYM.js';
1
+ import { N as NodeKindDefinition, P as PortSpec } from '../types-ChkCRonF.js';
2
+ export { C as ConfigField, j as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, a as NodeCategory, k as NumberConfigField, R as RenderBodyContext, l as RepeaterConfigField, m as RepeaterRowField, n as SelectConfigField, o as SwitchConfigField, T as TextConfigField, p as TextareaConfigField } from '../types-ChkCRonF.js';
3
+ import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-Jx1TwehV.js';
4
4
  import { Connection, Edge, NodeProps, NodeTypes } from '@xyflow/react';
5
- import { b as LlmRoute } from '../capabilities-Brn74URS.js';
6
- export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-Brn74URS.js';
5
+ import { b as LlmRoute } from '../capabilities-DMUhnyZD.js';
6
+ export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-DMUhnyZD.js';
7
+ export { L as LEGACY_PAUSE_PREFIXES, a as PAUSE_PREFIX, P as PauseAwaiting, b as PauseSignal, d as decodePause, e as encodePause, i as isPause, p as pauseForHuman } from '../pause-9iT4tCEV.js';
7
8
  import * as react from 'react';
8
9
  import { ComponentType, ReactNode } from 'react';
9
- export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, e as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-D0I20HJ3.js';
10
+ export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-Bt55f63_.js';
10
11
 
11
12
  /**
12
13
  * Connection validation — the single rule that decides whether an edge between
@@ -1,5 +1,24 @@
1
- import { N as NodeKindDefinition } from './types-nQOA8jpk.cjs';
1
+ import { N as NodeKindDefinition } from './types-ChkCRonF.js';
2
2
 
3
+ /**
4
+ * Put the builtin kit in the registry before anyone reads or writes it.
5
+ *
6
+ * Registration used to be a bare `registerBuiltinKinds()` in `src/index.ts`, so
7
+ * it fired ONLY as an import side effect of that one entry. Every other route in
8
+ * — the `/engine` and `/registry` subpaths, or a root import that TypeScript
9
+ * erases because it only took types — got an empty registry, and an empty
10
+ * registry is silent: `getNodeKind()` returns null, `FlowViewer` falls through
11
+ * its title chain, and the canvas shows `@particle-academy/llm_call` where a
12
+ * name belongs.
13
+ *
14
+ * Doing it here instead means correctness no longer depends on which entry a
15
+ * consumer imported, or on a bundler agreeing to keep a top-level statement.
16
+ *
17
+ * The flag is set BEFORE the call so a listener that reads the registry from
18
+ * inside `notify()` cannot recurse. `registerNodeKind` ensures too, so builtins
19
+ * are always in place before a host registers over one of them.
20
+ */
21
+ declare function ensureBuiltinKinds(): void;
3
22
  /**
4
23
  * The presentation fields a consumer may override on someone else's node kind.
5
24
  *
@@ -82,4 +101,4 @@ declare function validateConfig(kind: NodeKindDefinition, config: Record<string,
82
101
  /** Default accents per category. */
83
102
  declare function categoryAccent(category: string): string;
84
103
 
85
- export { type NodeKindPresentation as N, resolveKindId as a, clearNodeKindOverrides as b, categoryAccent as c, defaultConfigFor as d, overrideNodeKind as e, getNodeKind as g, kindIds as k, listNodeKinds as l, onNodeKindsChanged as o, registerNodeKind as r, validateConfig as v };
104
+ export { type NodeKindPresentation as N, resolveKindId as a, clearNodeKindOverrides as b, categoryAccent as c, defaultConfigFor as d, ensureBuiltinKinds as e, overrideNodeKind as f, getNodeKind as g, kindIds as k, listNodeKinds as l, onNodeKindsChanged as o, registerNodeKind as r, validateConfig as v };
@@ -1,5 +1,24 @@
1
- import { N as NodeKindDefinition } from './types-D6ZSKBly.js';
1
+ import { N as NodeKindDefinition } from './types--S2Kzx7w.cjs';
2
2
 
3
+ /**
4
+ * Put the builtin kit in the registry before anyone reads or writes it.
5
+ *
6
+ * Registration used to be a bare `registerBuiltinKinds()` in `src/index.ts`, so
7
+ * it fired ONLY as an import side effect of that one entry. Every other route in
8
+ * — the `/engine` and `/registry` subpaths, or a root import that TypeScript
9
+ * erases because it only took types — got an empty registry, and an empty
10
+ * registry is silent: `getNodeKind()` returns null, `FlowViewer` falls through
11
+ * its title chain, and the canvas shows `@particle-academy/llm_call` where a
12
+ * name belongs.
13
+ *
14
+ * Doing it here instead means correctness no longer depends on which entry a
15
+ * consumer imported, or on a bundler agreeing to keep a top-level statement.
16
+ *
17
+ * The flag is set BEFORE the call so a listener that reads the registry from
18
+ * inside `notify()` cannot recurse. `registerNodeKind` ensures too, so builtins
19
+ * are always in place before a host registers over one of them.
20
+ */
21
+ declare function ensureBuiltinKinds(): void;
3
22
  /**
4
23
  * The presentation fields a consumer may override on someone else's node kind.
5
24
  *
@@ -82,4 +101,4 @@ declare function validateConfig(kind: NodeKindDefinition, config: Record<string,
82
101
  /** Default accents per category. */
83
102
  declare function categoryAccent(category: string): string;
84
103
 
85
- export { type NodeKindPresentation as N, resolveKindId as a, clearNodeKindOverrides as b, categoryAccent as c, defaultConfigFor as d, overrideNodeKind as e, getNodeKind as g, kindIds as k, listNodeKinds as l, onNodeKindsChanged as o, registerNodeKind as r, validateConfig as v };
104
+ export { type NodeKindPresentation as N, resolveKindId as a, clearNodeKindOverrides as b, categoryAccent as c, defaultConfigFor as d, ensureBuiltinKinds as e, overrideNodeKind as f, getNodeKind as g, kindIds as k, listNodeKinds as l, onNodeKindsChanged as o, registerNodeKind as r, validateConfig as v };