@particle-academy/fancy-flow 0.43.2 → 0.45.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 (53) hide show
  1. package/dist/{ConfigFieldRenderer-LotNHeG8.d.cts → ConfigFieldRenderer-Dzy4f6rG.d.cts} +2 -2
  2. package/dist/{ConfigFieldRenderer-BHQDZer6.d.ts → ConfigFieldRenderer-WqJr-td_.d.ts} +2 -2
  3. package/dist/{FlowViewer-nLqo7s2E.d.cts → FlowViewer-BbbUJe2b.d.cts} +1 -1
  4. package/dist/{FlowViewer-C4QAVgWv.d.ts → FlowViewer-csuaTL5t.d.ts} +1 -1
  5. package/dist/{capabilities-CkhKj_U_.d.ts → capabilities-Brn74URS.d.ts} +2 -2
  6. package/dist/{capabilities-BtJQTbnw.d.cts → capabilities-CYCeIx6I.d.cts} +2 -2
  7. package/dist/{chunk-T3VQX3XB.js → chunk-DHUFUDEX.js} +3 -3
  8. package/dist/{chunk-T3VQX3XB.js.map → chunk-DHUFUDEX.js.map} +1 -1
  9. package/dist/{chunk-55KQS3LK.js → chunk-WBXGZVLB.js} +24 -8
  10. package/dist/chunk-WBXGZVLB.js.map +1 -0
  11. package/dist/engine.cjs +70 -10
  12. package/dist/engine.cjs.map +1 -1
  13. package/dist/engine.d.cts +42 -7
  14. package/dist/engine.d.ts +42 -7
  15. package/dist/engine.js +65 -9
  16. package/dist/engine.js.map +1 -1
  17. package/dist/fields/react-fancy.d.cts +3 -3
  18. package/dist/fields/react-fancy.d.ts +3 -3
  19. package/dist/index.cjs +22 -6
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +10 -10
  22. package/dist/index.d.ts +10 -10
  23. package/dist/index.js +4 -4
  24. package/dist/layout/index.d.cts +1 -1
  25. package/dist/layout/index.d.ts +1 -1
  26. package/dist/llm/prism.d.cts +2 -2
  27. package/dist/llm/prism.d.ts +2 -2
  28. package/dist/llm/vercel-ai.d.cts +2 -2
  29. package/dist/llm/vercel-ai.d.ts +2 -2
  30. package/dist/registry/index.d.cts +6 -6
  31. package/dist/registry/index.d.ts +6 -6
  32. package/dist/{registry-C9KMVpn7.d.cts → registry-Budds73w.d.cts} +1 -1
  33. package/dist/{registry-FGCBprcn.d.ts → registry-D0I20HJ3.d.ts} +1 -1
  34. package/dist/registry.cjs +22 -6
  35. package/dist/registry.cjs.map +1 -1
  36. package/dist/registry.js +1 -1
  37. package/dist/{run-cohort-BnP6ErHi.d.ts → run-cohort-CV7EcwGG.d.ts} +1 -1
  38. package/dist/{run-cohort-Bjv2ZU6g.d.cts → run-cohort-DitsaYgS.d.cts} +1 -1
  39. package/dist/runtime/index.d.cts +3 -3
  40. package/dist/runtime/index.d.ts +3 -3
  41. package/dist/schema/index.d.cts +1 -1
  42. package/dist/schema/index.d.ts +1 -1
  43. package/dist/screens.d.cts +2 -2
  44. package/dist/screens.d.ts +2 -2
  45. package/dist/screens.js +3 -3
  46. package/dist/{types-sOmpCitB.d.cts → types-CMSrWVYM.d.cts} +1 -1
  47. package/dist/{types-sOmpCitB.d.ts → types-CMSrWVYM.d.ts} +1 -1
  48. package/dist/{types-JViq8reb.d.ts → types-D6ZSKBly.d.ts} +2 -2
  49. package/dist/{types-B78Rm69S.d.cts → types-nQOA8jpk.d.cts} +2 -2
  50. package/dist/ux.d.cts +2 -2
  51. package/dist/ux.d.ts +2 -2
  52. package/package.json +1 -1
  53. package/dist/chunk-55KQS3LK.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { C as ConfigFieldRenderFn } from '../ConfigFieldRenderer-BHQDZer6.js';
1
+ import { C as ConfigFieldRenderFn } from '../ConfigFieldRenderer-WqJr-td_.js';
2
2
  import 'react';
3
- import '../types-sOmpCitB.js';
3
+ import '../types-CMSrWVYM.js';
4
4
  import '@xyflow/react';
5
- import '../types-JViq8reb.js';
5
+ import '../types-D6ZSKBly.js';
6
6
 
7
7
  /**
8
8
  * Render a `json` config field as a react-fancy `JsonEditor`.
package/dist/index.cjs CHANGED
@@ -11886,12 +11886,22 @@ var KINDS = [
11886
11886
  // ───────────── AI ─────────────
11887
11887
  {
11888
11888
  name: "@particle-academy/llm_call",
11889
- // LlmClient::complete() -> array{text:string,usage?:array,raw?:mixed}
11890
- outputShape: [
11891
- { path: "text", type: "string", description: "The model's completion." },
11892
- { path: "usage", type: "object", description: "Token counts, when the provider reports them." },
11893
- { path: "raw", type: "unknown", description: "The provider's untouched response." }
11894
- ],
11889
+ // LlmClient::complete() -> array{text:string,data?:mixed,usage?:array,raw?:mixed}
11890
+ //
11891
+ // A FUNCTION of config, because `data` exists only when this node was asked
11892
+ // for a schema. Declaring it statically would offer `{{ $json.data }}` on
11893
+ // every llm_call in the kit, including the ones that emit nothing of the
11894
+ // sort — and a suggestion that resolves to null at runtime is worse than no
11895
+ // suggestion, since the picker is exactly what gave the author confidence.
11896
+ outputShape: (config) => {
11897
+ const asked = config?.response_schema != null && config.response_schema !== "" && !(Array.isArray(config.response_schema) && config.response_schema.length === 0);
11898
+ return [
11899
+ { path: "text", type: "string", description: "The model's completion." },
11900
+ ...asked ? [{ path: "data", type: "unknown", description: "The parsed, schema-checked result." }] : [],
11901
+ { path: "usage", type: "object", description: "Token counts, when the provider reports them." },
11902
+ { path: "raw", type: "unknown", description: "The provider's untouched response." }
11903
+ ];
11904
+ },
11895
11905
  aliases: ["llm_call", "@fancy/llm_call"],
11896
11906
  category: "ai",
11897
11907
  label: "LLM Call",
@@ -11932,6 +11942,12 @@ var KINDS = [
11932
11942
  }
11933
11943
  ]
11934
11944
  },
11945
+ {
11946
+ type: "json",
11947
+ key: "response_schema",
11948
+ label: "Response schema",
11949
+ description: "Optional JSON Schema. When set, the runtime asks the provider for schema-valid JSON and the node emits the parsed value as `data` \u2014 reference it as {{ $json.data }}. A response that cannot be parsed or does not match FAILS the node rather than passing an empty value downstream."
11950
+ },
11935
11951
  { type: "credential", key: "credential", label: "API credential", credentialType: "llm_credential" }
11936
11952
  ]
11937
11953
  },