@particle-academy/fancy-flow 0.56.0 → 0.58.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/{HumanPrompt-DlJSFi3F.d.ts → HumanPrompt-Bw09OyS3.d.ts} +1 -1
- package/dist/{HumanPrompt-CPl-Spmp.d.cts → HumanPrompt-DV5-xnDa.d.cts} +1 -1
- package/dist/{chunk-KP4TBF3A.js → chunk-A3TLZS5B.js} +3 -3
- package/dist/{chunk-KP4TBF3A.js.map → chunk-A3TLZS5B.js.map} +1 -1
- package/dist/{chunk-GB4A7DFM.js → chunk-FGYG5JVW.js} +3 -3
- package/dist/{chunk-GB4A7DFM.js.map → chunk-FGYG5JVW.js.map} +1 -1
- package/dist/{chunk-22OJOD4X.js → chunk-HBE4LVPX.js} +54 -2
- package/dist/chunk-HBE4LVPX.js.map +1 -0
- package/dist/{chunk-L4QAAGLV.js → chunk-LGLOBK6Q.js} +3 -3
- package/dist/{chunk-L4QAAGLV.js.map → chunk-LGLOBK6Q.js.map} +1 -1
- package/dist/{chunk-E3AGYTHP.js → chunk-M7M6GLFV.js} +3 -3
- package/dist/{chunk-E3AGYTHP.js.map → chunk-M7M6GLFV.js.map} +1 -1
- package/dist/{chunk-HMEI2LFU.js → chunk-MX4SJDNI.js} +4 -4
- package/dist/{chunk-HMEI2LFU.js.map → chunk-MX4SJDNI.js.map} +1 -1
- package/dist/connectors.d.cts +1 -1
- package/dist/connectors.d.ts +1 -1
- package/dist/durable.cjs +52 -0
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +52 -0
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.cts +2 -2
- package/dist/engine.d.ts +2 -2
- package/dist/engine.js +3 -3
- package/dist/fields/react-fancy.d.cts +2 -2
- package/dist/fields/react-fancy.d.ts +2 -2
- package/dist/index.cjs +52 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/registry/index.d.cts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/{registry-C6TMfiD_.d.cts → registry-1qhmRtvC.d.cts} +1 -1
- package/dist/{registry-3RkSYrMi.d.ts → registry-D2qocEsY.d.ts} +1 -1
- package/dist/registry.cjs +52 -0
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +52 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema.cjs +52 -0
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +52 -0
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +4 -4
- package/dist/{types-3sPauVRT.d.cts → types-BLVpNNLN.d.cts} +40 -1
- package/dist/{types-s643U1Hi.d.ts → types-CLSUZW8c.d.ts} +40 -1
- package/dist/ux.cjs +52 -0
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.d.cts +1 -1
- package/dist/ux.d.ts +1 -1
- package/dist/ux.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-22OJOD4X.js.map +0 -1
package/dist/durable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { truthy } from './chunk-BHM5HGXH.js';
|
|
2
2
|
import { pauseForHuman, decodePause } from './chunk-UEOE6B52.js';
|
|
3
|
-
import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-
|
|
3
|
+
import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-HBE4LVPX.js';
|
|
4
4
|
import './chunk-F5RPRB7A.js';
|
|
5
5
|
import './chunk-USL4FMFU.js';
|
|
6
6
|
|
package/dist/engine.cjs
CHANGED
|
@@ -9304,6 +9304,8 @@ var KINDS = [
|
|
|
9304
9304
|
// ───────────── Triggers ─────────────
|
|
9305
9305
|
{
|
|
9306
9306
|
name: "@particle-academy/manual_trigger",
|
|
9307
|
+
// returns the inputs it was started with
|
|
9308
|
+
emits: "input",
|
|
9307
9309
|
aliases: ["manual_trigger", "@fancy/manual_trigger"],
|
|
9308
9310
|
category: "trigger",
|
|
9309
9311
|
label: "Manual",
|
|
@@ -9332,6 +9334,12 @@ var KINDS = [
|
|
|
9332
9334
|
},
|
|
9333
9335
|
{
|
|
9334
9336
|
name: "@particle-academy/schedule_trigger",
|
|
9337
|
+
outputShape: [
|
|
9338
|
+
{ path: "cron", type: "string", description: "The cron expression that fired." },
|
|
9339
|
+
{ path: "timezone", type: "string", description: "The timezone it was evaluated in." }
|
|
9340
|
+
],
|
|
9341
|
+
// merges its inputs into the TOP level beside cron/timezone
|
|
9342
|
+
emits: "inputs-merged",
|
|
9335
9343
|
aliases: ["schedule_trigger", "@fancy/schedule_trigger"],
|
|
9336
9344
|
category: "trigger",
|
|
9337
9345
|
label: "Schedule",
|
|
@@ -9519,6 +9527,8 @@ var KINDS = [
|
|
|
9519
9527
|
// ───────────── Logic ─────────────
|
|
9520
9528
|
{
|
|
9521
9529
|
name: "@particle-academy/branch",
|
|
9530
|
+
// returns its input on the chosen port
|
|
9531
|
+
emits: "input",
|
|
9522
9532
|
aliases: ["branch", "@fancy/branch"],
|
|
9523
9533
|
category: "logic",
|
|
9524
9534
|
label: "Branch",
|
|
@@ -9582,6 +9592,8 @@ var KINDS = [
|
|
|
9582
9592
|
},
|
|
9583
9593
|
{
|
|
9584
9594
|
name: "@particle-academy/switch_case",
|
|
9595
|
+
// returns its input on the chosen port
|
|
9596
|
+
emits: "input",
|
|
9585
9597
|
aliases: ["switch_case", "@fancy/switch_case"],
|
|
9586
9598
|
category: "logic",
|
|
9587
9599
|
label: "Switch",
|
|
@@ -9628,6 +9640,12 @@ var KINDS = [
|
|
|
9628
9640
|
},
|
|
9629
9641
|
{
|
|
9630
9642
|
name: "@particle-academy/merge",
|
|
9643
|
+
// `merge` mode unions every object input at the TOP level; `concat` builds
|
|
9644
|
+
// a list instead, whose elements are not addressable as fields. So concat
|
|
9645
|
+
// declares NOTHING rather than an empty list -- `[]` would claim "emits no
|
|
9646
|
+
// fields" of a kind that emits a list, which is false and refuses every
|
|
9647
|
+
// reference.
|
|
9648
|
+
emits: (config) => (config?.mode ?? "merge") === "concat" ? null : "inputs-merged",
|
|
9631
9649
|
aliases: ["merge", "@fancy/merge"],
|
|
9632
9650
|
category: "logic",
|
|
9633
9651
|
label: "Merge",
|
|
@@ -9647,6 +9665,11 @@ var KINDS = [
|
|
|
9647
9665
|
},
|
|
9648
9666
|
{
|
|
9649
9667
|
name: "@particle-academy/wait",
|
|
9668
|
+
outputShape: [
|
|
9669
|
+
{ path: "waited", type: "string", description: "Which wait mode ran." },
|
|
9670
|
+
{ path: "duration", type: "number", description: "How long it waited." },
|
|
9671
|
+
{ path: "input", type: "unknown", description: "The value that arrived, carried forward." }
|
|
9672
|
+
],
|
|
9650
9673
|
aliases: ["wait", "@fancy/wait"],
|
|
9651
9674
|
category: "logic",
|
|
9652
9675
|
label: "Wait",
|
|
@@ -9665,6 +9688,9 @@ var KINDS = [
|
|
|
9665
9688
|
},
|
|
9666
9689
|
{
|
|
9667
9690
|
name: "@particle-academy/transform",
|
|
9691
|
+
// Two behaviours: the input unchanged when no expression is configured,
|
|
9692
|
+
// else the shape that expression names. So the RELATION is config-dependent.
|
|
9693
|
+
emits: (config) => (config?.expression ?? "") === "" ? "input" : "expression:expression",
|
|
9668
9694
|
aliases: ["transform", "@fancy/transform"],
|
|
9669
9695
|
category: "logic",
|
|
9670
9696
|
label: "Transform",
|
|
@@ -9764,6 +9790,8 @@ var KINDS = [
|
|
|
9764
9790
|
},
|
|
9765
9791
|
{
|
|
9766
9792
|
name: "@particle-academy/variable",
|
|
9793
|
+
// evaluates the expression in config.value
|
|
9794
|
+
emits: "expression:value",
|
|
9767
9795
|
aliases: ["variable", "@fancy/variable"],
|
|
9768
9796
|
category: "data",
|
|
9769
9797
|
label: "Variable",
|
|
@@ -9844,6 +9872,11 @@ var KINDS = [
|
|
|
9844
9872
|
},
|
|
9845
9873
|
{
|
|
9846
9874
|
name: "@particle-academy/llm_router",
|
|
9875
|
+
outputShape: [
|
|
9876
|
+
{ path: "route", type: "string", description: "The port the model chose." },
|
|
9877
|
+
{ path: "reason", type: "string", description: "Why the model chose it." },
|
|
9878
|
+
{ path: "input", type: "unknown", description: "The value that arrived, carried forward." }
|
|
9879
|
+
],
|
|
9847
9880
|
// Every id this node has ever shipped under keeps resolving — MOIC's saved
|
|
9848
9881
|
// flows carry the bare `llm_branch`.
|
|
9849
9882
|
aliases: ["llm_router", "llm_branch", "@fancy/llm_branch", "@fancy/llm_router"],
|
|
@@ -9982,6 +10015,11 @@ var KINDS = [
|
|
|
9982
10015
|
},
|
|
9983
10016
|
{
|
|
9984
10017
|
name: "@particle-academy/webhook_out",
|
|
10018
|
+
outputShape: [
|
|
10019
|
+
{ path: "sent", type: "boolean", description: "True once the request was made." },
|
|
10020
|
+
{ path: "status", type: "number", description: "HTTP status, when the transport reported one." },
|
|
10021
|
+
{ path: "response", type: "unknown", description: "The response body, when there was one." }
|
|
10022
|
+
],
|
|
9985
10023
|
aliases: ["webhook_out", "@fancy/webhook_out"],
|
|
9986
10024
|
category: "io",
|
|
9987
10025
|
label: "Send Webhook",
|
|
@@ -10003,6 +10041,8 @@ var KINDS = [
|
|
|
10003
10041
|
// ───────────── Human ─────────────
|
|
10004
10042
|
{
|
|
10005
10043
|
name: "@particle-academy/human_approval",
|
|
10044
|
+
// returns its input on approved/denied
|
|
10045
|
+
emits: "input",
|
|
10006
10046
|
aliases: ["human_approval", "@fancy/human_approval"],
|
|
10007
10047
|
pausesForHuman: "approval",
|
|
10008
10048
|
category: "human",
|
|
@@ -10019,6 +10059,12 @@ var KINDS = [
|
|
|
10019
10059
|
},
|
|
10020
10060
|
{
|
|
10021
10061
|
name: "@particle-academy/notify",
|
|
10062
|
+
outputShape: [
|
|
10063
|
+
{ path: "sent", type: "boolean", description: "True once the message was handed to the channel." },
|
|
10064
|
+
{ path: "channel", type: "string", description: "The channel it went to." },
|
|
10065
|
+
{ path: "to", type: "string", description: "The recipient." },
|
|
10066
|
+
{ path: "message", type: "string", description: "The rendered message." }
|
|
10067
|
+
],
|
|
10022
10068
|
aliases: ["notify", "@fancy/notify"],
|
|
10023
10069
|
category: "human",
|
|
10024
10070
|
label: "Notify",
|
|
@@ -10044,6 +10090,8 @@ var KINDS = [
|
|
|
10044
10090
|
// ───────────── Output ─────────────
|
|
10045
10091
|
{
|
|
10046
10092
|
name: "@particle-academy/output",
|
|
10093
|
+
// returns its input unchanged
|
|
10094
|
+
emits: "input",
|
|
10047
10095
|
aliases: ["output", "@fancy/output"],
|
|
10048
10096
|
category: "output",
|
|
10049
10097
|
label: "Output",
|
|
@@ -10054,6 +10102,10 @@ var KINDS = [
|
|
|
10054
10102
|
},
|
|
10055
10103
|
{
|
|
10056
10104
|
name: "@particle-academy/log",
|
|
10105
|
+
outputShape: [
|
|
10106
|
+
{ path: "logged", type: "string", description: "The message that was written." },
|
|
10107
|
+
{ path: "level", type: "string", description: "The level it was written at." }
|
|
10108
|
+
],
|
|
10057
10109
|
aliases: ["log", "@fancy/log"],
|
|
10058
10110
|
category: "output",
|
|
10059
10111
|
label: "Log",
|