@particle-academy/fancy-flow 0.34.0 → 0.36.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 (64) hide show
  1. package/dist/{capabilities-BLOeLACV.d.cts → capabilities-BtJQTbnw.d.cts} +1 -1
  2. package/dist/{capabilities-BH7zmSQQ.d.ts → capabilities-CkhKj_U_.d.ts} +1 -1
  3. package/dist/{chunk-N5ICD2WZ.js → chunk-3BKU4SQZ.js} +3 -3
  4. package/dist/{chunk-N5ICD2WZ.js.map → chunk-3BKU4SQZ.js.map} +1 -1
  5. package/dist/{chunk-EBE3FEAJ.js → chunk-A6RFLGWV.js} +4 -4
  6. package/dist/{chunk-EBE3FEAJ.js.map → chunk-A6RFLGWV.js.map} +1 -1
  7. package/dist/{chunk-Q6IPK64P.js → chunk-PVROYW7C.js} +32 -5
  8. package/dist/chunk-PVROYW7C.js.map +1 -0
  9. package/dist/{chunk-FKOXQP76.js → chunk-QZTGV3ZL.js} +3 -3
  10. package/dist/{chunk-FKOXQP76.js.map → chunk-QZTGV3ZL.js.map} +1 -1
  11. package/dist/{chunk-THU5LW22.js → chunk-UX65ML3J.js} +4 -4
  12. package/dist/{chunk-THU5LW22.js.map → chunk-UX65ML3J.js.map} +1 -1
  13. package/dist/{chunk-RE7T5GKQ.js → chunk-VLATLVGH.js} +3 -3
  14. package/dist/{chunk-RE7T5GKQ.js.map → chunk-VLATLVGH.js.map} +1 -1
  15. package/dist/engine.cjs +10 -2
  16. package/dist/engine.cjs.map +1 -1
  17. package/dist/engine.d.cts +7 -238
  18. package/dist/engine.d.ts +7 -238
  19. package/dist/engine.js +5 -5
  20. package/dist/index.cjs +163 -4
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +65 -8
  23. package/dist/index.d.ts +65 -8
  24. package/dist/index.js +142 -13
  25. package/dist/index.js.map +1 -1
  26. package/dist/layout/index.d.cts +1 -1
  27. package/dist/layout/index.d.ts +1 -1
  28. package/dist/llm/prism.d.cts +2 -2
  29. package/dist/llm/prism.d.ts +2 -2
  30. package/dist/llm/vercel-ai.d.cts +2 -2
  31. package/dist/llm/vercel-ai.d.ts +2 -2
  32. package/dist/registry/index.d.cts +6 -6
  33. package/dist/registry/index.d.ts +6 -6
  34. package/dist/registry-BADFn97n.d.cts +85 -0
  35. package/dist/registry-DYbFLEcW.d.ts +85 -0
  36. package/dist/registry.cjs +31 -2
  37. package/dist/registry.cjs.map +1 -1
  38. package/dist/registry.js +3 -3
  39. package/dist/{run-cohort-DitsaYgS.d.cts → run-cohort-Bjv2ZU6g.d.cts} +1 -1
  40. package/dist/{run-cohort-CV7EcwGG.d.ts → run-cohort-BnP6ErHi.d.ts} +1 -1
  41. package/dist/runtime/index.d.cts +3 -3
  42. package/dist/runtime/index.d.ts +3 -3
  43. package/dist/runtime.cjs +7 -1
  44. package/dist/runtime.cjs.map +1 -1
  45. package/dist/runtime.js +4 -4
  46. package/dist/schema/index.d.cts +1 -1
  47. package/dist/schema/index.d.ts +1 -1
  48. package/dist/schema.cjs +7 -1
  49. package/dist/schema.cjs.map +1 -1
  50. package/dist/schema.js +2 -2
  51. package/dist/styles.css +103 -0
  52. package/dist/styles.css.map +1 -1
  53. package/dist/{types-DEmDSByY.d.cts → types-D6lsIGoe.d.ts} +251 -2
  54. package/dist/{types-Bj_ZHwqG.d.ts → types-D8Dezh9v.d.cts} +251 -2
  55. package/dist/{types-CMSrWVYM.d.cts → types-sOmpCitB.d.cts} +1 -1
  56. package/dist/{types-CMSrWVYM.d.ts → types-sOmpCitB.d.ts} +1 -1
  57. package/dist/ux.cjs.map +1 -1
  58. package/dist/ux.d.cts +2 -2
  59. package/dist/ux.d.ts +2 -2
  60. package/dist/ux.js +1 -1
  61. package/package.json +181 -181
  62. package/dist/chunk-Q6IPK64P.js.map +0 -1
  63. package/dist/registry-Dd1Q66uP.d.ts +0 -45
  64. package/dist/registry-qv4gRiuQ.d.cts +0 -45
package/dist/registry.js CHANGED
@@ -1,10 +1,10 @@
1
- export { ANY_PORT_TYPE, BUILTIN_KINDS, DEFAULT_MAX_DEPTH, RegistryNode, buildNodeTypes, createConnectionValidator, declaredRoutes, defaultPortCompatibility, llmRouterExecutor as llmBranchExecutor, llmRouterExecutor, registerBuiltinKinds, resolveFallbackPort, subflowExecutor, subflowMode, subflowPorts } from './chunk-THU5LW22.js';
1
+ export { ANY_PORT_TYPE, BUILTIN_KINDS, DEFAULT_MAX_DEPTH, RegistryNode, buildNodeTypes, createConnectionValidator, declaredRoutes, defaultPortCompatibility, llmRouterExecutor as llmBranchExecutor, llmRouterExecutor, registerBuiltinKinds, resolveFallbackPort, subflowExecutor, subflowMode, subflowPorts } from './chunk-UX65ML3J.js';
2
2
  import './chunk-OWENS2H5.js';
3
3
  export { LEGACY_PAUSE_PREFIXES, PAUSE_PREFIX, decodePause, encodePause, isPause, pauseForHuman } from './chunk-UEOE6B52.js';
4
4
  export { capabilityStatus, getLlmClient, getWorkflowResolver, isResolutionFailure, registerLlmClient, registerWorkflowResolver } from './chunk-USL4FMFU.js';
5
- import './chunk-RE7T5GKQ.js';
5
+ import './chunk-VLATLVGH.js';
6
6
  export { nodeConfig, resolveNodePorts, resolvePortSpec } from './chunk-TITD5W4Y.js';
7
- export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-Q6IPK64P.js';
7
+ export { categoryAccent, clearNodeKindOverrides, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, overrideNodeKind, registerNodeKind, resolveKindId, validateConfig } from './chunk-PVROYW7C.js';
8
8
  export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
9
9
  //# sourceMappingURL=registry.js.map
10
10
  //# sourceMappingURL=registry.js.map
@@ -1,4 +1,4 @@
1
- import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-CMSrWVYM.cjs';
1
+ import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-sOmpCitB.cjs';
2
2
 
3
3
  type RunOptions = {
4
4
  /** Stop the run after this many ms. Default: no timeout. */
@@ -1,4 +1,4 @@
1
- import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-CMSrWVYM.js';
1
+ import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-sOmpCitB.js';
2
2
 
3
3
  type RunOptions = {
4
4
  /** Stop the run after this many ms. Default: no timeout. */
@@ -1,6 +1,6 @@
1
- import { d as RunResult, R as RunOptions } from '../run-cohort-DitsaYgS.cjs';
2
- export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort, e as runFlow } from '../run-cohort-DitsaYgS.cjs';
3
- import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, a as FlowNode, b as FlowEdge } from '../types-CMSrWVYM.cjs';
1
+ import { d as RunResult, R as RunOptions } from '../run-cohort-Bjv2ZU6g.cjs';
2
+ export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort, e as runFlow } from '../run-cohort-Bjv2ZU6g.cjs';
3
+ import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, b as FlowNode, a as FlowEdge } from '../types-sOmpCitB.cjs';
4
4
  import { NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
5
 
6
6
  type FlowRunFeedEntry = {
@@ -1,6 +1,6 @@
1
- import { d as RunResult, R as RunOptions } from '../run-cohort-CV7EcwGG.js';
2
- export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort, e as runFlow } from '../run-cohort-CV7EcwGG.js';
3
- import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, a as FlowNode, b as FlowEdge } from '../types-CMSrWVYM.js';
1
+ import { d as RunResult, R as RunOptions } from '../run-cohort-BnP6ErHi.js';
2
+ export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort, e as runFlow } from '../run-cohort-BnP6ErHi.js';
3
+ import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, b as FlowNode, a as FlowEdge } from '../types-sOmpCitB.js';
4
4
  import { NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
5
 
6
6
  type FlowRunFeedEntry = {
package/dist/runtime.cjs CHANGED
@@ -11,14 +11,20 @@ var ReactExports__default = /*#__PURE__*/_interopDefault(ReactExports);
11
11
  // src/registry/registry.ts
12
12
  var kinds = /* @__PURE__ */ new Map();
13
13
  var aliases = /* @__PURE__ */ new Map();
14
+ var overrides = /* @__PURE__ */ new Map();
14
15
  function resolveKindId(id2) {
15
16
  if (kinds.has(id2)) return id2;
16
17
  const canonical = aliases.get(id2);
17
18
  return canonical && kinds.has(canonical) ? canonical : null;
18
19
  }
20
+ function withOverride(kind) {
21
+ if (!kind) return null;
22
+ const patch = overrides.get(kind.name);
23
+ return patch ? { ...kind, ...patch } : kind;
24
+ }
19
25
  function getNodeKind(name) {
20
26
  const canonical = resolveKindId(name);
21
- return canonical ? kinds.get(canonical) ?? null : null;
27
+ return canonical ? withOverride(kinds.get(canonical)) : null;
22
28
  }
23
29
  function kindIds(kind) {
24
30
  return [kind.name, ...kind.aliases ?? []];