@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.
- package/dist/{ConfigFieldRenderer-LotNHeG8.d.cts → ConfigFieldRenderer-Dzy4f6rG.d.cts} +2 -2
- package/dist/{ConfigFieldRenderer-BHQDZer6.d.ts → ConfigFieldRenderer-WqJr-td_.d.ts} +2 -2
- package/dist/{FlowViewer-nLqo7s2E.d.cts → FlowViewer-BbbUJe2b.d.cts} +1 -1
- package/dist/{FlowViewer-C4QAVgWv.d.ts → FlowViewer-csuaTL5t.d.ts} +1 -1
- package/dist/{capabilities-CkhKj_U_.d.ts → capabilities-Brn74URS.d.ts} +2 -2
- package/dist/{capabilities-BtJQTbnw.d.cts → capabilities-CYCeIx6I.d.cts} +2 -2
- package/dist/{chunk-T3VQX3XB.js → chunk-DHUFUDEX.js} +3 -3
- package/dist/{chunk-T3VQX3XB.js.map → chunk-DHUFUDEX.js.map} +1 -1
- package/dist/{chunk-55KQS3LK.js → chunk-WBXGZVLB.js} +24 -8
- package/dist/chunk-WBXGZVLB.js.map +1 -0
- package/dist/engine.cjs +70 -10
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.cts +42 -7
- package/dist/engine.d.ts +42 -7
- package/dist/engine.js +65 -9
- package/dist/engine.js.map +1 -1
- package/dist/fields/react-fancy.d.cts +3 -3
- package/dist/fields/react-fancy.d.ts +3 -3
- package/dist/index.cjs +22 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +4 -4
- 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/registry/index.d.cts +6 -6
- package/dist/registry/index.d.ts +6 -6
- package/dist/{registry-C9KMVpn7.d.cts → registry-Budds73w.d.cts} +1 -1
- package/dist/{registry-FGCBprcn.d.ts → registry-D0I20HJ3.d.ts} +1 -1
- package/dist/registry.cjs +22 -6
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +1 -1
- package/dist/{run-cohort-BnP6ErHi.d.ts → run-cohort-CV7EcwGG.d.ts} +1 -1
- package/dist/{run-cohort-Bjv2ZU6g.d.cts → run-cohort-DitsaYgS.d.cts} +1 -1
- package/dist/runtime/index.d.cts +3 -3
- package/dist/runtime/index.d.ts +3 -3
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/screens.d.cts +2 -2
- package/dist/screens.d.ts +2 -2
- package/dist/screens.js +3 -3
- package/dist/{types-sOmpCitB.d.cts → types-CMSrWVYM.d.cts} +1 -1
- package/dist/{types-sOmpCitB.d.ts → types-CMSrWVYM.d.ts} +1 -1
- package/dist/{types-JViq8reb.d.ts → types-D6ZSKBly.d.ts} +2 -2
- package/dist/{types-B78Rm69S.d.cts → types-nQOA8jpk.d.cts} +2 -2
- package/dist/ux.d.cts +2 -2
- package/dist/ux.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-55KQS3LK.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as ConfigFieldRenderFn } from '../ConfigFieldRenderer-
|
|
1
|
+
import { C as ConfigFieldRenderFn } from '../ConfigFieldRenderer-WqJr-td_.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-CMSrWVYM.js';
|
|
4
4
|
import '@xyflow/react';
|
|
5
|
-
import '../types-
|
|
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
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
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
|
},
|