@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.
- package/README.md +29 -0
- package/dist/{ConfigFieldRenderer-Dzy4f6rG.d.cts → ConfigFieldRenderer-Cyir8-B8.d.cts} +2 -2
- package/dist/{ConfigFieldRenderer-WqJr-td_.d.ts → ConfigFieldRenderer-iMkZj0VK.d.ts} +2 -2
- package/dist/{FlowViewer-BbbUJe2b.d.cts → FlowViewer-CY3_vHSg.d.cts} +1 -1
- package/dist/{FlowViewer-csuaTL5t.d.ts → FlowViewer-DGW6t-80.d.ts} +1 -1
- package/dist/{capabilities-Brn74URS.d.ts → capabilities-DMUhnyZD.d.ts} +1 -1
- package/dist/{capabilities-CYCeIx6I.d.cts → capabilities-Dmd26aAs.d.cts} +1 -1
- package/dist/chunk-BHM5HGXH.js +79 -0
- package/dist/chunk-BHM5HGXH.js.map +1 -0
- package/dist/chunk-DR3GWVDG.js +196 -0
- package/dist/chunk-DR3GWVDG.js.map +1 -0
- package/dist/{chunk-3BKU4SQZ.js → chunk-ISXRQELT.js} +3 -4
- package/dist/chunk-ISXRQELT.js.map +1 -0
- package/dist/{chunk-OWENS2H5.js → chunk-NDEX655E.js} +1603 -36
- package/dist/chunk-NDEX655E.js.map +1 -0
- package/dist/{chunk-QZTGV3ZL.js → chunk-QVFVL5LQ.js} +3 -3
- package/dist/{chunk-QZTGV3ZL.js.map → chunk-QVFVL5LQ.js.map} +1 -1
- package/dist/{chunk-DHUFUDEX.js → chunk-Z2GRNYR2.js} +7 -6
- package/dist/chunk-Z2GRNYR2.js.map +1 -0
- package/dist/{chunk-A6RFLGWV.js → chunk-ZKJJWBDJ.js} +3 -5
- package/dist/chunk-ZKJJWBDJ.js.map +1 -0
- package/dist/durable/index.d.cts +490 -0
- package/dist/durable/index.d.ts +490 -0
- package/dist/durable.cjs +10991 -0
- package/dist/durable.cjs.map +1 -0
- package/dist/durable.js +552 -0
- package/dist/durable.js.map +1 -0
- package/dist/engine.cjs +10223 -47
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.cts +9 -7
- package/dist/engine.d.ts +9 -7
- package/dist/engine.js +4 -6
- package/dist/engine.js.map +1 -1
- package/dist/fields/react-fancy.d.cts +4 -3
- package/dist/fields/react-fancy.d.ts +4 -3
- package/dist/index.cjs +336 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +15 -93
- package/dist/index.js.map +1 -1
- package/dist/layout/index.d.cts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/llm/prism.d.cts +2 -2
- package/dist/llm/prism.d.ts +2 -2
- package/dist/llm/vercel-ai.d.cts +2 -2
- package/dist/llm/vercel-ai.d.ts +2 -2
- package/dist/pause-9iT4tCEV.d.cts +96 -0
- package/dist/pause-9iT4tCEV.d.ts +96 -0
- package/dist/registry/index.d.cts +7 -6
- package/dist/registry/index.d.ts +7 -6
- package/dist/{registry-Budds73w.d.cts → registry-Bt55f63_.d.ts} +21 -2
- package/dist/{registry-D0I20HJ3.d.ts → registry-CkcSwmfR.d.cts} +21 -2
- package/dist/registry.cjs +3961 -3821
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +3 -6
- package/dist/{run-cohort-CV7EcwGG.d.ts → run-cohort-Cyeny2Uu.d.ts} +3 -34
- package/dist/{run-cohort-DitsaYgS.d.cts → run-cohort-DdPPowJ3.d.cts} +3 -34
- package/dist/run-flow-1KiXhy59.d.cts +55 -0
- package/dist/run-flow-CQvTDBYk.d.ts +55 -0
- package/dist/runtime/index.d.cts +5 -3
- package/dist/runtime/index.d.ts +5 -3
- package/dist/runtime.cjs +1712 -430
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +5 -6
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema.cjs +10369 -24
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +4 -3
- package/dist/screens.cjs +1366 -38
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.d.cts +2 -2
- package/dist/screens.d.ts +2 -2
- package/dist/screens.js +5 -8
- package/dist/screens.js.map +1 -1
- package/dist/{types-D6ZSKBly.d.ts → types--S2Kzx7w.d.cts} +3 -97
- package/dist/{types-nQOA8jpk.d.cts → types-ChkCRonF.d.ts} +3 -97
- package/dist/types-Jx1TwehV.d.cts +247 -0
- package/dist/types-Jx1TwehV.d.ts +247 -0
- package/dist/ux.cjs +10363 -2
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.d.cts +3 -2
- package/dist/ux.d.ts +3 -2
- package/dist/ux.js +3 -1
- package/dist/ux.js.map +1 -1
- package/package.json +17 -3
- package/dist/chunk-3BKU4SQZ.js.map +0 -1
- package/dist/chunk-A6RFLGWV.js.map +0 -1
- package/dist/chunk-DHUFUDEX.js.map +0 -1
- package/dist/chunk-OWENS2H5.js.map +0 -1
- package/dist/chunk-PVROYW7C.js +0 -187
- package/dist/chunk-PVROYW7C.js.map +0 -1
- package/dist/chunk-TITD5W4Y.js +0 -26
- package/dist/chunk-TITD5W4Y.js.map +0 -1
- package/dist/chunk-VLATLVGH.js +0 -158
- package/dist/chunk-VLATLVGH.js.map +0 -1
- package/dist/chunk-WBXGZVLB.js +0 -1268
- package/dist/chunk-WBXGZVLB.js.map +0 -1
- package/dist/types-CMSrWVYM.d.cts +0 -109
- package/dist/types-CMSrWVYM.d.ts +0 -109
package/dist/layout/index.d.cts
CHANGED
package/dist/layout/index.d.ts
CHANGED
package/dist/llm/prism.d.cts
CHANGED
package/dist/llm/prism.d.ts
CHANGED
package/dist/llm/vercel-ai.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LanguageModel } from 'ai';
|
|
2
|
-
import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-
|
|
3
|
-
import '../types-
|
|
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
|
/**
|
package/dist/llm/vercel-ai.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LanguageModel } from 'ai';
|
|
2
|
-
import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-
|
|
3
|
-
import '../types-
|
|
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,
|
|
2
|
-
export { C as ConfigField,
|
|
3
|
-
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-
|
|
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-
|
|
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-
|
|
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,
|
|
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
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { N as NodeKindDefinition,
|
|
2
|
-
export { C as ConfigField,
|
|
3
|
-
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-
|
|
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-
|
|
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-
|
|
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,
|
|
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-
|
|
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,
|
|
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
|
|
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,
|
|
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 };
|