@particle-academy/fancy-flow 0.46.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 (62) hide show
  1. package/README.md +29 -0
  2. package/dist/chunk-DR3GWVDG.js +196 -0
  3. package/dist/chunk-DR3GWVDG.js.map +1 -0
  4. package/dist/{chunk-3BKU4SQZ.js → chunk-ISXRQELT.js} +3 -4
  5. package/dist/chunk-ISXRQELT.js.map +1 -0
  6. package/dist/{chunk-OWENS2H5.js → chunk-NDEX655E.js} +1603 -36
  7. package/dist/chunk-NDEX655E.js.map +1 -0
  8. package/dist/{chunk-P5SYH6M6.js → chunk-QVFVL5LQ.js} +3 -3
  9. package/dist/{chunk-P5SYH6M6.js.map → chunk-QVFVL5LQ.js.map} +1 -1
  10. package/dist/{chunk-HFUBVT7W.js → chunk-Z2GRNYR2.js} +7 -6
  11. package/dist/chunk-Z2GRNYR2.js.map +1 -0
  12. package/dist/{chunk-MH4ZW4DJ.js → chunk-ZKJJWBDJ.js} +3 -5
  13. package/dist/chunk-ZKJJWBDJ.js.map +1 -0
  14. package/dist/durable.cjs +10174 -110
  15. package/dist/durable.cjs.map +1 -1
  16. package/dist/durable.js +3 -3
  17. package/dist/engine.cjs +10097 -47
  18. package/dist/engine.cjs.map +1 -1
  19. package/dist/engine.d.cts +1 -1
  20. package/dist/engine.d.ts +1 -1
  21. package/dist/engine.js +5 -7
  22. package/dist/engine.js.map +1 -1
  23. package/dist/index.cjs +203 -191
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +13 -16
  28. package/dist/index.js.map +1 -1
  29. package/dist/registry/index.d.cts +1 -1
  30. package/dist/registry/index.d.ts +1 -1
  31. package/dist/{registry-LHB3MlR9.d.ts → registry-Bt55f63_.d.ts} +20 -1
  32. package/dist/{registry-D_kyUZEf.d.cts → registry-CkcSwmfR.d.cts} +20 -1
  33. package/dist/registry.cjs +2978 -2968
  34. package/dist/registry.cjs.map +1 -1
  35. package/dist/registry.js +3 -6
  36. package/dist/runtime.cjs +3692 -2536
  37. package/dist/runtime.cjs.map +1 -1
  38. package/dist/runtime.js +5 -6
  39. package/dist/schema.cjs +10369 -24
  40. package/dist/schema.cjs.map +1 -1
  41. package/dist/schema.js +4 -3
  42. package/dist/screens.cjs +1366 -38
  43. package/dist/screens.cjs.map +1 -1
  44. package/dist/screens.js +5 -8
  45. package/dist/screens.js.map +1 -1
  46. package/dist/ux.cjs +10363 -2
  47. package/dist/ux.cjs.map +1 -1
  48. package/dist/ux.js +3 -1
  49. package/dist/ux.js.map +1 -1
  50. package/package.json +6 -2
  51. package/dist/chunk-3BKU4SQZ.js.map +0 -1
  52. package/dist/chunk-HFUBVT7W.js.map +0 -1
  53. package/dist/chunk-L43CWD63.js +0 -282
  54. package/dist/chunk-L43CWD63.js.map +0 -1
  55. package/dist/chunk-MH4ZW4DJ.js.map +0 -1
  56. package/dist/chunk-OWENS2H5.js.map +0 -1
  57. package/dist/chunk-PVROYW7C.js +0 -187
  58. package/dist/chunk-PVROYW7C.js.map +0 -1
  59. package/dist/chunk-RMU6YCIQ.js +0 -1274
  60. package/dist/chunk-RMU6YCIQ.js.map +0 -1
  61. package/dist/chunk-TITD5W4Y.js +0 -26
  62. package/dist/chunk-TITD5W4Y.js.map +0 -1
@@ -7,7 +7,7 @@ export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRe
7
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';
8
8
  import * as react from 'react';
9
9
  import { ComponentType, ReactNode } from 'react';
10
- 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-D_kyUZEf.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';
11
11
 
12
12
  /**
13
13
  * Connection validation — the single rule that decides whether an edge between
@@ -7,7 +7,7 @@ export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRe
7
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';
8
8
  import * as react from 'react';
9
9
  import { ComponentType, ReactNode } from 'react';
10
- 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-LHB3MlR9.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';
11
11
 
12
12
  /**
13
13
  * Connection validation — the single rule that decides whether an edge between
@@ -1,5 +1,24 @@
1
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
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 };