@valerypopoff/rivet2-core 2.0.9 → 2.0.10
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/cjs/bundle.cjs
CHANGED
|
@@ -15735,7 +15735,7 @@ var coalesceNode = nodeDefinition(CoalesceNodeImpl, "Coalesce");
|
|
|
15735
15735
|
|
|
15736
15736
|
// src/model/nodes/DidRunNode.ts
|
|
15737
15737
|
var import_non_secure34 = require("nanoid/non-secure");
|
|
15738
|
-
var
|
|
15738
|
+
var DID_RUN_EXPLANATION = 'Outputs true when all connected inputs have run. Falsy or empty values still count as having run, so this is useful for adapting "did this branch run at all?" into a boolean If port.';
|
|
15739
15739
|
var DidRunNodeImpl = class extends NodeImpl {
|
|
15740
15740
|
static create() {
|
|
15741
15741
|
return {
|
|
@@ -15746,7 +15746,7 @@ var DidRunNodeImpl = class extends NodeImpl {
|
|
|
15746
15746
|
visualData: {
|
|
15747
15747
|
x: 0,
|
|
15748
15748
|
y: 0,
|
|
15749
|
-
width:
|
|
15749
|
+
width: 167
|
|
15750
15750
|
}
|
|
15751
15751
|
};
|
|
15752
15752
|
}
|
|
@@ -15773,16 +15773,20 @@ var DidRunNodeImpl = class extends NodeImpl {
|
|
|
15773
15773
|
}
|
|
15774
15774
|
static getUIData() {
|
|
15775
15775
|
return {
|
|
15776
|
-
infoBoxBody:
|
|
15777
|
-
Outputs true when all connected inputs have run. Falsy or empty values still count as having run, so this is useful for adapting "did this branch run at all?" into a boolean If port.
|
|
15778
|
-
`,
|
|
15776
|
+
infoBoxBody: DID_RUN_EXPLANATION,
|
|
15779
15777
|
infoBoxTitle: "Did Run Node",
|
|
15780
15778
|
contextMenuTitle: "Did Run",
|
|
15781
15779
|
group: ["Logic"]
|
|
15782
15780
|
};
|
|
15783
15781
|
}
|
|
15784
|
-
|
|
15785
|
-
return
|
|
15782
|
+
getEditors() {
|
|
15783
|
+
return [
|
|
15784
|
+
{
|
|
15785
|
+
type: "info",
|
|
15786
|
+
label: "Behavior",
|
|
15787
|
+
helperMessage: DID_RUN_EXPLANATION
|
|
15788
|
+
}
|
|
15789
|
+
];
|
|
15786
15790
|
}
|
|
15787
15791
|
#getInputPortCount(connections) {
|
|
15788
15792
|
const inputNodeId = this.chartNode.id;
|
|
@@ -15820,7 +15824,7 @@ var didRunNode = nodeDefinition(DidRunNodeImpl, "Did Run");
|
|
|
15820
15824
|
|
|
15821
15825
|
// src/model/nodes/PassthroughNode.ts
|
|
15822
15826
|
var import_non_secure35 = require("nanoid/non-secure");
|
|
15823
|
-
var
|
|
15827
|
+
var import_ts_dedent32 = require("ts-dedent");
|
|
15824
15828
|
var PassthroughNodeImpl = class extends NodeImpl {
|
|
15825
15829
|
static create = () => {
|
|
15826
15830
|
const chartNode = {
|
|
@@ -15862,7 +15866,7 @@ var PassthroughNodeImpl = class extends NodeImpl {
|
|
|
15862
15866
|
}
|
|
15863
15867
|
static getUIData() {
|
|
15864
15868
|
return {
|
|
15865
|
-
infoBoxBody:
|
|
15869
|
+
infoBoxBody: import_ts_dedent32.dedent`
|
|
15866
15870
|
Simply passes the input value to the output without any modifications.
|
|
15867
15871
|
`,
|
|
15868
15872
|
infoBoxTitle: "Passthrough Node",
|
|
@@ -15898,7 +15902,7 @@ var passthroughNode = nodeDefinition(PassthroughNodeImpl, "Passthrough");
|
|
|
15898
15902
|
|
|
15899
15903
|
// src/model/nodes/PopNode.ts
|
|
15900
15904
|
var import_non_secure36 = require("nanoid/non-secure");
|
|
15901
|
-
var
|
|
15905
|
+
var import_ts_dedent33 = require("ts-dedent");
|
|
15902
15906
|
var PopNodeImpl = class extends NodeImpl {
|
|
15903
15907
|
static create() {
|
|
15904
15908
|
const baseNode = {
|
|
@@ -15949,7 +15953,7 @@ var PopNodeImpl = class extends NodeImpl {
|
|
|
15949
15953
|
}
|
|
15950
15954
|
static getUIData() {
|
|
15951
15955
|
return {
|
|
15952
|
-
infoBoxBody:
|
|
15956
|
+
infoBoxBody: import_ts_dedent33.dedent`
|
|
15953
15957
|
Pops the last value off the input array and outputs the new array and the popped value.
|
|
15954
15958
|
|
|
15955
15959
|
Can also be used to just extract the last value from an array.
|
|
@@ -15986,7 +15990,7 @@ var popNode = nodeDefinition(PopNodeImpl, "Pop");
|
|
|
15986
15990
|
|
|
15987
15991
|
// src/model/nodes/SetGlobalNode.ts
|
|
15988
15992
|
var import_non_secure37 = require("nanoid/non-secure");
|
|
15989
|
-
var
|
|
15993
|
+
var import_ts_dedent34 = require("ts-dedent");
|
|
15990
15994
|
var SetGlobalNodeImpl = class extends NodeImpl {
|
|
15991
15995
|
static create() {
|
|
15992
15996
|
const chartNode = {
|
|
@@ -16060,14 +16064,14 @@ var SetGlobalNodeImpl = class extends NodeImpl {
|
|
|
16060
16064
|
];
|
|
16061
16065
|
}
|
|
16062
16066
|
getBody() {
|
|
16063
|
-
return
|
|
16067
|
+
return import_ts_dedent34.dedent`
|
|
16064
16068
|
${this.data.id}
|
|
16065
16069
|
Type: ${this.data.dataType}
|
|
16066
16070
|
`;
|
|
16067
16071
|
}
|
|
16068
16072
|
static getUIData() {
|
|
16069
16073
|
return {
|
|
16070
|
-
infoBoxBody:
|
|
16074
|
+
infoBoxBody: import_ts_dedent34.dedent`
|
|
16071
16075
|
Sets a global value that is shared across all graphs and subgraphs. The id of the global value and the value itself are configured in this node.
|
|
16072
16076
|
`,
|
|
16073
16077
|
infoBoxTitle: "Set Global Node",
|
|
@@ -16103,7 +16107,7 @@ var setGlobalNode = nodeDefinition(SetGlobalNodeImpl, "Set Global");
|
|
|
16103
16107
|
|
|
16104
16108
|
// src/model/nodes/GetGlobalNode.ts
|
|
16105
16109
|
var import_non_secure38 = require("nanoid/non-secure");
|
|
16106
|
-
var
|
|
16110
|
+
var import_ts_dedent35 = require("ts-dedent");
|
|
16107
16111
|
var GetGlobalNodeImpl = class extends NodeImpl {
|
|
16108
16112
|
static create() {
|
|
16109
16113
|
const chartNode = {
|
|
@@ -16187,7 +16191,7 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
16187
16191
|
];
|
|
16188
16192
|
}
|
|
16189
16193
|
getBody() {
|
|
16190
|
-
return
|
|
16194
|
+
return import_ts_dedent35.dedent`
|
|
16191
16195
|
${this.data.useIdInput ? "(ID from input)" : this.data.id}
|
|
16192
16196
|
Type: ${this.data.dataType}
|
|
16193
16197
|
${this.data.wait ? "Waits for available data" : ""}
|
|
@@ -16195,7 +16199,7 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
16195
16199
|
}
|
|
16196
16200
|
static getUIData() {
|
|
16197
16201
|
return {
|
|
16198
|
-
infoBoxBody:
|
|
16202
|
+
infoBoxBody: import_ts_dedent35.dedent`
|
|
16199
16203
|
Retrieves a global value that is shared across all graphs and subgraphs. The id of the global value is configured in this node.
|
|
16200
16204
|
`,
|
|
16201
16205
|
infoBoxTitle: "Get Global Node",
|
|
@@ -16244,7 +16248,7 @@ var getGlobalNode = nodeDefinition(GetGlobalNodeImpl, "Get Global");
|
|
|
16244
16248
|
|
|
16245
16249
|
// src/model/nodes/WaitForEventNode.ts
|
|
16246
16250
|
var import_non_secure39 = require("nanoid/non-secure");
|
|
16247
|
-
var
|
|
16251
|
+
var import_ts_dedent36 = require("ts-dedent");
|
|
16248
16252
|
var WaitForEventNodeImpl = class extends NodeImpl {
|
|
16249
16253
|
static create() {
|
|
16250
16254
|
return {
|
|
@@ -16303,7 +16307,7 @@ var WaitForEventNodeImpl = class extends NodeImpl {
|
|
|
16303
16307
|
}
|
|
16304
16308
|
static getUIData() {
|
|
16305
16309
|
return {
|
|
16306
|
-
infoBoxBody:
|
|
16310
|
+
infoBoxBody: import_ts_dedent36.dedent`
|
|
16307
16311
|
Waits for a specific event to be raised by a 'Raise Event' node or the host project. The event name can be configured.
|
|
16308
16312
|
`,
|
|
16309
16313
|
infoBoxTitle: "Wait For Event Node",
|
|
@@ -16324,7 +16328,7 @@ var waitForEventNode = nodeDefinition(WaitForEventNodeImpl, "Wait For Event");
|
|
|
16324
16328
|
|
|
16325
16329
|
// src/model/nodes/ToolNode.ts
|
|
16326
16330
|
var import_non_secure40 = require("nanoid/non-secure");
|
|
16327
|
-
var
|
|
16331
|
+
var import_ts_dedent37 = require("ts-dedent");
|
|
16328
16332
|
var GptFunctionNodeImpl = class extends NodeImpl {
|
|
16329
16333
|
static create() {
|
|
16330
16334
|
const chartNode = {
|
|
@@ -16339,7 +16343,7 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
16339
16343
|
data: {
|
|
16340
16344
|
name: "newTool",
|
|
16341
16345
|
description: "No description provided",
|
|
16342
|
-
schema:
|
|
16346
|
+
schema: import_ts_dedent37.dedent`
|
|
16343
16347
|
{
|
|
16344
16348
|
"type": "object",
|
|
16345
16349
|
"properties": {}
|
|
@@ -16446,7 +16450,7 @@ ${this.data.description}`
|
|
|
16446
16450
|
}
|
|
16447
16451
|
static getUIData() {
|
|
16448
16452
|
return {
|
|
16449
|
-
infoBoxBody:
|
|
16453
|
+
infoBoxBody: import_ts_dedent37.dedent`
|
|
16450
16454
|
Defines a tool, which is a method that the LLM can call in its responses.
|
|
16451
16455
|
`,
|
|
16452
16456
|
infoBoxTitle: "Tool Node",
|
|
@@ -16491,7 +16495,7 @@ var gptFunctionNode = nodeDefinition(GptFunctionNodeImpl, "Tool");
|
|
|
16491
16495
|
// src/model/nodes/ToYamlNode.ts
|
|
16492
16496
|
var import_non_secure41 = require("nanoid/non-secure");
|
|
16493
16497
|
var import_yaml2 = __toESM(require("yaml"), 1);
|
|
16494
|
-
var
|
|
16498
|
+
var import_ts_dedent38 = require("ts-dedent");
|
|
16495
16499
|
var ToYamlNodeImpl = class extends NodeImpl {
|
|
16496
16500
|
static create() {
|
|
16497
16501
|
const chartNode = {
|
|
@@ -16528,7 +16532,7 @@ var ToYamlNodeImpl = class extends NodeImpl {
|
|
|
16528
16532
|
}
|
|
16529
16533
|
static getUIData() {
|
|
16530
16534
|
return {
|
|
16531
|
-
infoBoxBody:
|
|
16535
|
+
infoBoxBody: import_ts_dedent38.dedent`
|
|
16532
16536
|
Turns the input object into YAML text.
|
|
16533
16537
|
`,
|
|
16534
16538
|
infoBoxTitle: "To YAML Node",
|
|
@@ -16554,7 +16558,7 @@ var toYamlNode = nodeDefinition(ToYamlNodeImpl, "To YAML");
|
|
|
16554
16558
|
|
|
16555
16559
|
// src/model/nodes/GetEmbeddingNode.ts
|
|
16556
16560
|
var import_non_secure42 = require("nanoid/non-secure");
|
|
16557
|
-
var
|
|
16561
|
+
var import_ts_dedent39 = require("ts-dedent");
|
|
16558
16562
|
|
|
16559
16563
|
// src/integrations/integrations.ts
|
|
16560
16564
|
var registeredIntegrations = {
|
|
@@ -16661,7 +16665,7 @@ var GetEmbeddingNodeImpl = class extends NodeImpl {
|
|
|
16661
16665
|
}
|
|
16662
16666
|
static getUIData() {
|
|
16663
16667
|
return {
|
|
16664
|
-
infoBoxBody:
|
|
16668
|
+
infoBoxBody: import_ts_dedent39.dedent`
|
|
16665
16669
|
Gets a OpenAI vector embedding for the input text provided.
|
|
16666
16670
|
|
|
16667
16671
|
Can be used with the Vector Store and Vector KNN nodes.
|
|
@@ -16693,7 +16697,7 @@ var getEmbeddingNode = nodeDefinition(GetEmbeddingNodeImpl, "Get Embedding");
|
|
|
16693
16697
|
|
|
16694
16698
|
// src/model/nodes/VectorStoreNode.ts
|
|
16695
16699
|
var import_non_secure43 = require("nanoid/non-secure");
|
|
16696
|
-
var
|
|
16700
|
+
var import_ts_dedent40 = require("ts-dedent");
|
|
16697
16701
|
var VectorStoreNodeImpl = class extends NodeImpl {
|
|
16698
16702
|
static create() {
|
|
16699
16703
|
return {
|
|
@@ -16773,14 +16777,14 @@ var VectorStoreNodeImpl = class extends NodeImpl {
|
|
|
16773
16777
|
];
|
|
16774
16778
|
}
|
|
16775
16779
|
getBody() {
|
|
16776
|
-
return
|
|
16780
|
+
return import_ts_dedent40.dedent`
|
|
16777
16781
|
Integration: ${this.data.useIntegrationInput ? "(using input)" : this.data.integration}
|
|
16778
16782
|
Collection Id: ${this.data.useCollectionIdInput ? "(using input)" : this.data.collectionId}
|
|
16779
16783
|
`;
|
|
16780
16784
|
}
|
|
16781
16785
|
static getUIData() {
|
|
16782
16786
|
return {
|
|
16783
|
-
infoBoxBody:
|
|
16787
|
+
infoBoxBody: import_ts_dedent40.dedent`
|
|
16784
16788
|
Takes in a vector, as well as data to store with the vector. This data is stored in the configured vector DB integration for later retrieval.
|
|
16785
16789
|
`,
|
|
16786
16790
|
infoBoxTitle: "Vector Store Node",
|
|
@@ -16816,7 +16820,7 @@ var vectorStoreNode = nodeDefinition(VectorStoreNodeImpl, "Vector Store");
|
|
|
16816
16820
|
|
|
16817
16821
|
// src/model/nodes/VectorNearestNeighborsNode.ts
|
|
16818
16822
|
var import_non_secure44 = require("nanoid/non-secure");
|
|
16819
|
-
var
|
|
16823
|
+
var import_ts_dedent41 = require("ts-dedent");
|
|
16820
16824
|
var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
16821
16825
|
static create() {
|
|
16822
16826
|
return {
|
|
@@ -16903,7 +16907,7 @@ var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
|
16903
16907
|
];
|
|
16904
16908
|
}
|
|
16905
16909
|
getBody() {
|
|
16906
|
-
return
|
|
16910
|
+
return import_ts_dedent41.dedent`
|
|
16907
16911
|
Integration: ${this.data.useIntegrationInput ? "(using input)" : this.data.integration}
|
|
16908
16912
|
K: ${this.data.useKInput ? "(using input)" : this.data.k}
|
|
16909
16913
|
Collection Id: ${this.data.useCollectionIdInput ? "(using input)" : this.data.collectionId}
|
|
@@ -16911,7 +16915,7 @@ var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
|
16911
16915
|
}
|
|
16912
16916
|
static getUIData() {
|
|
16913
16917
|
return {
|
|
16914
|
-
infoBoxBody:
|
|
16918
|
+
infoBoxBody: import_ts_dedent41.dedent`
|
|
16915
16919
|
Performs a k-nearest neighbors search on the vectors stored in the configured vector DB integration. Takes in a vector and returns the k closest vectors and their corresponding data.
|
|
16916
16920
|
`,
|
|
16917
16921
|
infoBoxTitle: "Vector KNN Node",
|
|
@@ -16944,7 +16948,7 @@ var vectorNearestNeighborsNode = nodeDefinition(VectorNearestNeighborsNodeImpl,
|
|
|
16944
16948
|
var import_non_secure45 = require("nanoid/non-secure");
|
|
16945
16949
|
var crypto = __toESM(require("crypto-js"), 1);
|
|
16946
16950
|
var import_ts_pattern4 = require("ts-pattern");
|
|
16947
|
-
var
|
|
16951
|
+
var import_ts_dedent42 = require("ts-dedent");
|
|
16948
16952
|
var { SHA256, SHA512, MD5, SHA1 } = crypto;
|
|
16949
16953
|
var HashNodeImpl = class extends NodeImpl {
|
|
16950
16954
|
static create() {
|
|
@@ -17002,7 +17006,7 @@ var HashNodeImpl = class extends NodeImpl {
|
|
|
17002
17006
|
}
|
|
17003
17007
|
static getUIData() {
|
|
17004
17008
|
return {
|
|
17005
|
-
infoBoxBody:
|
|
17009
|
+
infoBoxBody: import_ts_dedent42.dedent`
|
|
17006
17010
|
Computes a hash of the input value using the configured hash function.
|
|
17007
17011
|
`,
|
|
17008
17012
|
infoBoxTitle: "Hash Node",
|
|
@@ -17031,7 +17035,7 @@ var hashNode = nodeDefinition(HashNodeImpl, "Hash");
|
|
|
17031
17035
|
|
|
17032
17036
|
// src/model/nodes/AbortGraphNode.ts
|
|
17033
17037
|
var import_non_secure46 = require("nanoid/non-secure");
|
|
17034
|
-
var
|
|
17038
|
+
var import_ts_dedent43 = require("ts-dedent");
|
|
17035
17039
|
var AbortGraphNodeImpl = class extends NodeImpl {
|
|
17036
17040
|
static create() {
|
|
17037
17041
|
const chartNode = {
|
|
@@ -17088,13 +17092,13 @@ var AbortGraphNodeImpl = class extends NodeImpl {
|
|
|
17088
17092
|
];
|
|
17089
17093
|
}
|
|
17090
17094
|
getBody() {
|
|
17091
|
-
return
|
|
17095
|
+
return import_ts_dedent43.dedent`
|
|
17092
17096
|
${this.data.useSuccessfullyInput ? "Success depends on input" : this.data.successfully ? "Successfully Abort" : this.data.errorMessage ? `Error Abort: ${this.data.errorMessage}` : "Error Abort"}
|
|
17093
17097
|
`;
|
|
17094
17098
|
}
|
|
17095
17099
|
static getUIData() {
|
|
17096
17100
|
return {
|
|
17097
|
-
infoBoxBody:
|
|
17101
|
+
infoBoxBody: import_ts_dedent43.dedent`
|
|
17098
17102
|
Aborts the execution of the entire graph immediately.
|
|
17099
17103
|
|
|
17100
17104
|
Can either "successfully" abort the graph (early-exit), or "error" abort the graph.
|
|
@@ -17120,7 +17124,7 @@ var abortGraphNode = nodeDefinition(AbortGraphNodeImpl, "Abort Graph");
|
|
|
17120
17124
|
|
|
17121
17125
|
// src/model/nodes/RaceInputsNode.ts
|
|
17122
17126
|
var import_non_secure47 = require("nanoid/non-secure");
|
|
17123
|
-
var
|
|
17127
|
+
var import_ts_dedent44 = require("ts-dedent");
|
|
17124
17128
|
var RaceInputsNodeImpl = class extends NodeImpl {
|
|
17125
17129
|
static create() {
|
|
17126
17130
|
const chartNode = {
|
|
@@ -17176,7 +17180,7 @@ var RaceInputsNodeImpl = class extends NodeImpl {
|
|
|
17176
17180
|
}
|
|
17177
17181
|
static getUIData() {
|
|
17178
17182
|
return {
|
|
17179
|
-
infoBoxBody:
|
|
17183
|
+
infoBoxBody: import_ts_dedent44.dedent`
|
|
17180
17184
|
Takes in multiple inputs and outputs the value of the first one to finish. The other inputs are cancelled.
|
|
17181
17185
|
`,
|
|
17182
17186
|
infoBoxTitle: "Race Inputs Node",
|
|
@@ -17205,7 +17209,7 @@ var raceInputsNode = nodeDefinition(RaceInputsNodeImpl, "Race Inputs");
|
|
|
17205
17209
|
|
|
17206
17210
|
// src/model/nodes/ToJsonNode.ts
|
|
17207
17211
|
var import_non_secure48 = require("nanoid/non-secure");
|
|
17208
|
-
var
|
|
17212
|
+
var import_ts_dedent45 = require("ts-dedent");
|
|
17209
17213
|
var ToJsonNodeImpl = class extends NodeImpl {
|
|
17210
17214
|
static create() {
|
|
17211
17215
|
const chartNode = {
|
|
@@ -17256,7 +17260,7 @@ var ToJsonNodeImpl = class extends NodeImpl {
|
|
|
17256
17260
|
}
|
|
17257
17261
|
static getUIData() {
|
|
17258
17262
|
return {
|
|
17259
|
-
infoBoxBody:
|
|
17263
|
+
infoBoxBody: import_ts_dedent45.dedent`
|
|
17260
17264
|
Turns the input value into its JSON equivalent (stringifies the value).
|
|
17261
17265
|
`,
|
|
17262
17266
|
infoBoxTitle: "To JSON Node",
|
|
@@ -17279,7 +17283,7 @@ var toJsonNode = nodeDefinition(ToJsonNodeImpl, "To JSON");
|
|
|
17279
17283
|
|
|
17280
17284
|
// src/model/nodes/JoinNode.ts
|
|
17281
17285
|
var import_non_secure49 = require("nanoid/non-secure");
|
|
17282
|
-
var
|
|
17286
|
+
var import_ts_dedent46 = require("ts-dedent");
|
|
17283
17287
|
var JoinNodeImpl = class extends NodeImpl {
|
|
17284
17288
|
static create = () => {
|
|
17285
17289
|
const chartNode = {
|
|
@@ -17361,7 +17365,7 @@ var JoinNodeImpl = class extends NodeImpl {
|
|
|
17361
17365
|
}
|
|
17362
17366
|
static getUIData() {
|
|
17363
17367
|
return {
|
|
17364
|
-
infoBoxBody:
|
|
17368
|
+
infoBoxBody: import_ts_dedent46.dedent`
|
|
17365
17369
|
Takes an array of strings, and joins them using the configured delimiter.
|
|
17366
17370
|
|
|
17367
17371
|
Defaults to a newline.
|
|
@@ -17400,7 +17404,7 @@ var joinNode = nodeDefinition(JoinNodeImpl, "Coalesce");
|
|
|
17400
17404
|
// src/model/nodes/FilterNode.ts
|
|
17401
17405
|
var import_non_secure50 = require("nanoid/non-secure");
|
|
17402
17406
|
var import_lodash_es11 = require("lodash");
|
|
17403
|
-
var
|
|
17407
|
+
var import_ts_dedent47 = require("ts-dedent");
|
|
17404
17408
|
var FilterNodeImpl = class extends NodeImpl {
|
|
17405
17409
|
static create() {
|
|
17406
17410
|
const chartNode = {
|
|
@@ -17443,7 +17447,7 @@ var FilterNodeImpl = class extends NodeImpl {
|
|
|
17443
17447
|
}
|
|
17444
17448
|
static getUIData() {
|
|
17445
17449
|
return {
|
|
17446
|
-
infoBoxBody:
|
|
17450
|
+
infoBoxBody: import_ts_dedent47.dedent`
|
|
17447
17451
|
Takes in both an array of values, and an array of booleans of the same length, and filters the array where the corresponding boolean is true.
|
|
17448
17452
|
`,
|
|
17449
17453
|
infoBoxTitle: "Filter Node",
|
|
@@ -17469,10 +17473,10 @@ var filterNode = nodeDefinition(FilterNodeImpl, "Filter");
|
|
|
17469
17473
|
|
|
17470
17474
|
// src/model/nodes/JSFilterNode.ts
|
|
17471
17475
|
var import_non_secure51 = require("nanoid/non-secure");
|
|
17472
|
-
var
|
|
17476
|
+
var import_ts_dedent49 = require("ts-dedent");
|
|
17473
17477
|
|
|
17474
17478
|
// src/model/nodes/jsListCallbackHelpers.ts
|
|
17475
|
-
var
|
|
17479
|
+
var import_ts_dedent48 = require("ts-dedent");
|
|
17476
17480
|
var MAX_CALLBACK_PREVIEW_BODY_LINES = 13;
|
|
17477
17481
|
var JS_LIST_CALLBACK_SIGNATURE = "(item, index, array)";
|
|
17478
17482
|
var JS_LIST_CALLBACK_LOCAL_NAMES = /* @__PURE__ */ new Set(["item", "index", "array"]);
|
|
@@ -17499,7 +17503,7 @@ function getJSListInterpolationContext(callbackBody) {
|
|
|
17499
17503
|
});
|
|
17500
17504
|
}
|
|
17501
17505
|
function buildJSListRuntimePreamble(interpolationContext) {
|
|
17502
|
-
return
|
|
17506
|
+
return import_ts_dedent48.dedent`
|
|
17503
17507
|
const assertSynchronousCallbackResult = ${assertSynchronousCallbackResult.toString()};
|
|
17504
17508
|
${buildJsValueInputClonePreamble({
|
|
17505
17509
|
cacheIdentifier: JS_LIST_INPUT_CLONE_CACHE_IDENTIFIER,
|
|
@@ -17527,7 +17531,7 @@ function buildJSFilterWrapper(callbackBody) {
|
|
|
17527
17531
|
const interpolationContext = getJSListInterpolationContext(callbackBody);
|
|
17528
17532
|
const { inputsIdentifier } = interpolationContext;
|
|
17529
17533
|
const callbackBodySource = buildJSListCallbackRuntimeSource(callbackBody, inputsIdentifier);
|
|
17530
|
-
return
|
|
17534
|
+
return import_ts_dedent48.dedent`
|
|
17531
17535
|
${buildJSListRuntimePreamble(interpolationContext)}
|
|
17532
17536
|
|
|
17533
17537
|
if (!Array.isArray(array)) {
|
|
@@ -17564,7 +17568,7 @@ function buildJSMapWrapper(callbackBody) {
|
|
|
17564
17568
|
const interpolationContext = getJSListInterpolationContext(callbackBody);
|
|
17565
17569
|
const { inputsIdentifier } = interpolationContext;
|
|
17566
17570
|
const callbackBodySource = buildJSListCallbackRuntimeSource(callbackBody, inputsIdentifier);
|
|
17567
|
-
return
|
|
17571
|
+
return import_ts_dedent48.dedent`
|
|
17568
17572
|
${buildJSListRuntimePreamble(interpolationContext)}
|
|
17569
17573
|
|
|
17570
17574
|
if (!Array.isArray(array)) {
|
|
@@ -17633,7 +17637,7 @@ function getJSListNodeBody(callbackBody) {
|
|
|
17633
17637
|
const previewBody = buildJsValuePreview(callbackBody, MAX_CALLBACK_PREVIEW_BODY_LINES);
|
|
17634
17638
|
return {
|
|
17635
17639
|
type: "colorized",
|
|
17636
|
-
text:
|
|
17640
|
+
text: import_ts_dedent48.dedent`
|
|
17637
17641
|
${JS_LIST_CALLBACK_SIGNATURE} => {
|
|
17638
17642
|
${indentLines(previewBody, " ")}
|
|
17639
17643
|
}
|
|
@@ -17713,7 +17717,7 @@ var JSFilterNodeImpl = class extends NodeImpl {
|
|
|
17713
17717
|
}
|
|
17714
17718
|
static getUIData() {
|
|
17715
17719
|
return {
|
|
17716
|
-
infoBoxBody:
|
|
17720
|
+
infoBoxBody: import_ts_dedent49.dedent`
|
|
17717
17721
|
Filters an input array using the body of a JavaScript callback.
|
|
17718
17722
|
|
|
17719
17723
|
Available callback parameters are <code>item</code>, <code>index</code>, and <code>array</code>.
|
|
@@ -17740,7 +17744,7 @@ var jsFilterNode = nodeDefinition(JSFilterNodeImpl, "JS Filter");
|
|
|
17740
17744
|
|
|
17741
17745
|
// src/model/nodes/JSMapNode.ts
|
|
17742
17746
|
var import_non_secure52 = require("nanoid/non-secure");
|
|
17743
|
-
var
|
|
17747
|
+
var import_ts_dedent50 = require("ts-dedent");
|
|
17744
17748
|
var DEFAULT_CALLBACK_BODY2 = "return item;";
|
|
17745
17749
|
var JSMapNodeImpl = class extends NodeImpl {
|
|
17746
17750
|
static create() {
|
|
@@ -17779,7 +17783,7 @@ var JSMapNodeImpl = class extends NodeImpl {
|
|
|
17779
17783
|
}
|
|
17780
17784
|
static getUIData() {
|
|
17781
17785
|
return {
|
|
17782
|
-
infoBoxBody:
|
|
17786
|
+
infoBoxBody: import_ts_dedent50.dedent`
|
|
17783
17787
|
Maps an input array using the body of a JavaScript callback.
|
|
17784
17788
|
|
|
17785
17789
|
Available callback parameters are <code>item</code>, <code>index</code>, and <code>array</code>.
|
|
@@ -17806,7 +17810,7 @@ var jsMapNode = nodeDefinition(JSMapNodeImpl, "JS Map");
|
|
|
17806
17810
|
|
|
17807
17811
|
// src/model/nodes/ObjectNode.ts
|
|
17808
17812
|
var import_non_secure53 = require("nanoid/non-secure");
|
|
17809
|
-
var
|
|
17813
|
+
var import_ts_dedent51 = require("ts-dedent");
|
|
17810
17814
|
var DEFAULT_JSON_TEMPLATE = `{
|
|
17811
17815
|
"key": "{{input}}"
|
|
17812
17816
|
}`;
|
|
@@ -17904,7 +17908,7 @@ var ObjectNodeImpl = class extends NodeImpl {
|
|
|
17904
17908
|
}
|
|
17905
17909
|
static getUIData() {
|
|
17906
17910
|
return {
|
|
17907
|
-
infoBoxBody:
|
|
17911
|
+
infoBoxBody: import_ts_dedent51.dedent`
|
|
17908
17912
|
Creates an object from input values and a JSON template, escaping the input values and inserting them into the template.
|
|
17909
17913
|
|
|
17910
17914
|
Use double-quotes around the input values to escape them. String values are automatically escaped.
|
|
@@ -17992,7 +17996,7 @@ var objectNode = nodeDefinition(ObjectNodeImpl, "Object");
|
|
|
17992
17996
|
|
|
17993
17997
|
// src/model/nodes/BooleanNode.ts
|
|
17994
17998
|
var import_non_secure54 = require("nanoid/non-secure");
|
|
17995
|
-
var
|
|
17999
|
+
var import_ts_dedent52 = require("ts-dedent");
|
|
17996
18000
|
var BooleanNodeImpl = class extends NodeImpl {
|
|
17997
18001
|
static create() {
|
|
17998
18002
|
const chartNode = {
|
|
@@ -18036,7 +18040,7 @@ var BooleanNodeImpl = class extends NodeImpl {
|
|
|
18036
18040
|
}
|
|
18037
18041
|
static getUIData() {
|
|
18038
18042
|
return {
|
|
18039
|
-
infoBoxBody:
|
|
18043
|
+
infoBoxBody: import_ts_dedent52.dedent`
|
|
18040
18044
|
Outputs a boolean constant, or converts an input value into a boolean.
|
|
18041
18045
|
`,
|
|
18042
18046
|
infoBoxTitle: "Bool Node",
|
|
@@ -18060,7 +18064,7 @@ var booleanNode = nodeDefinition(BooleanNodeImpl, "Boolean");
|
|
|
18060
18064
|
var import_non_secure55 = require("nanoid/non-secure");
|
|
18061
18065
|
var import_lodash_es12 = require("lodash");
|
|
18062
18066
|
var import_ts_pattern5 = require("ts-pattern");
|
|
18063
|
-
var
|
|
18067
|
+
var import_ts_dedent53 = require("ts-dedent");
|
|
18064
18068
|
var CompareNodeImpl = class extends NodeImpl {
|
|
18065
18069
|
static create() {
|
|
18066
18070
|
const chartNode = {
|
|
@@ -18138,7 +18142,7 @@ var CompareNodeImpl = class extends NodeImpl {
|
|
|
18138
18142
|
}
|
|
18139
18143
|
static getUIData() {
|
|
18140
18144
|
return {
|
|
18141
|
-
infoBoxBody:
|
|
18145
|
+
infoBoxBody: import_ts_dedent53.dedent`
|
|
18142
18146
|
Compares two values using the configured operator and outputs the result.
|
|
18143
18147
|
|
|
18144
18148
|
If the data types of the values do not match, then the B value is converted to the type of the A value.
|
|
@@ -18181,7 +18185,7 @@ var compareNode = nodeDefinition(CompareNodeImpl, "Compare");
|
|
|
18181
18185
|
// src/model/nodes/EvaluateNode.ts
|
|
18182
18186
|
var import_non_secure56 = require("nanoid/non-secure");
|
|
18183
18187
|
var import_ts_pattern6 = require("ts-pattern");
|
|
18184
|
-
var
|
|
18188
|
+
var import_ts_dedent54 = require("ts-dedent");
|
|
18185
18189
|
var unaryOperation = ["abs", "negate"];
|
|
18186
18190
|
var isUnaryOp = (operation) => unaryOperation.includes(operation);
|
|
18187
18191
|
var EvaluateNodeImpl = class extends NodeImpl {
|
|
@@ -18267,7 +18271,7 @@ var EvaluateNodeImpl = class extends NodeImpl {
|
|
|
18267
18271
|
}
|
|
18268
18272
|
static getUIData() {
|
|
18269
18273
|
return {
|
|
18270
|
-
infoBoxBody:
|
|
18274
|
+
infoBoxBody: import_ts_dedent54.dedent`
|
|
18271
18275
|
Evaluates the configured mathematical operation on the input values and outputs the result.
|
|
18272
18276
|
|
|
18273
18277
|
For more complex operations, you should use the \`Code\` node.
|
|
@@ -18304,7 +18308,7 @@ var evaluateNode = nodeDefinition(EvaluateNodeImpl, "Evaluate");
|
|
|
18304
18308
|
|
|
18305
18309
|
// src/model/nodes/NumberNode.ts
|
|
18306
18310
|
var import_non_secure57 = require("nanoid/non-secure");
|
|
18307
|
-
var
|
|
18311
|
+
var import_ts_dedent55 = require("ts-dedent");
|
|
18308
18312
|
var NumberNodeImpl = class extends NodeImpl {
|
|
18309
18313
|
static create() {
|
|
18310
18314
|
const chartNode = {
|
|
@@ -18354,7 +18358,7 @@ var NumberNodeImpl = class extends NodeImpl {
|
|
|
18354
18358
|
}
|
|
18355
18359
|
static getUIData() {
|
|
18356
18360
|
return {
|
|
18357
|
-
infoBoxBody:
|
|
18361
|
+
infoBoxBody: import_ts_dedent55.dedent`
|
|
18358
18362
|
Outputs a number constant, or converts an input value into a number.
|
|
18359
18363
|
|
|
18360
18364
|
Can be configured to round the number to a certain number of decimal places.
|
|
@@ -18382,7 +18386,7 @@ var numberNode = nodeDefinition(NumberNodeImpl, "Number");
|
|
|
18382
18386
|
|
|
18383
18387
|
// src/model/nodes/RandomNumberNode.ts
|
|
18384
18388
|
var import_non_secure58 = require("nanoid/non-secure");
|
|
18385
|
-
var
|
|
18389
|
+
var import_ts_dedent56 = require("ts-dedent");
|
|
18386
18390
|
var randomNumberTypeOptions = [
|
|
18387
18391
|
{ value: false, label: "Float" },
|
|
18388
18392
|
{ value: true, label: "Integer" }
|
|
@@ -18450,7 +18454,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
18450
18454
|
];
|
|
18451
18455
|
}
|
|
18452
18456
|
getBody() {
|
|
18453
|
-
return
|
|
18457
|
+
return import_ts_dedent56.dedent`
|
|
18454
18458
|
Min: ${this.data.useMinInput ? "(Input)" : this.data.min ?? 0}
|
|
18455
18459
|
Max: ${this.data.useMaxInput ? "(Input)" : this.data.max ?? 1}
|
|
18456
18460
|
${this.data.integers ? "Integers" : "Floats"}
|
|
@@ -18459,7 +18463,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
18459
18463
|
}
|
|
18460
18464
|
static getUIData() {
|
|
18461
18465
|
return {
|
|
18462
|
-
infoBoxBody:
|
|
18466
|
+
infoBoxBody: import_ts_dedent56.dedent`
|
|
18463
18467
|
Outputs a random number between the configured min and max values.
|
|
18464
18468
|
|
|
18465
18469
|
Can be configured to output only integers, and whether the max value is inclusive or exclusive.
|
|
@@ -18492,7 +18496,7 @@ var randomNumberNode = nodeDefinition(RandomNumberNodeImpl, "Random number");
|
|
|
18492
18496
|
// src/model/nodes/ShuffleNode.ts
|
|
18493
18497
|
var import_non_secure59 = require("nanoid/non-secure");
|
|
18494
18498
|
var import_lodash_es13 = require("lodash");
|
|
18495
|
-
var
|
|
18499
|
+
var import_ts_dedent57 = require("ts-dedent");
|
|
18496
18500
|
var ShuffleNodeImpl = class extends NodeImpl {
|
|
18497
18501
|
static create() {
|
|
18498
18502
|
const chartNode = {
|
|
@@ -18528,7 +18532,7 @@ var ShuffleNodeImpl = class extends NodeImpl {
|
|
|
18528
18532
|
}
|
|
18529
18533
|
static getUIData() {
|
|
18530
18534
|
return {
|
|
18531
|
-
infoBoxBody:
|
|
18535
|
+
infoBoxBody: import_ts_dedent57.dedent`
|
|
18532
18536
|
Shuffles the input array. Outputs the shuffled array.
|
|
18533
18537
|
`,
|
|
18534
18538
|
infoBoxTitle: "Shuffle Node",
|
|
@@ -18553,7 +18557,7 @@ var shuffleNode = nodeDefinition(ShuffleNodeImpl, "Shuffle");
|
|
|
18553
18557
|
|
|
18554
18558
|
// src/model/nodes/CommentNode.ts
|
|
18555
18559
|
var import_non_secure60 = require("nanoid/non-secure");
|
|
18556
|
-
var
|
|
18560
|
+
var import_ts_dedent58 = require("ts-dedent");
|
|
18557
18561
|
var CommentNodeImpl = class extends NodeImpl {
|
|
18558
18562
|
static create() {
|
|
18559
18563
|
const chartNode = {
|
|
@@ -18605,7 +18609,7 @@ var CommentNodeImpl = class extends NodeImpl {
|
|
|
18605
18609
|
}
|
|
18606
18610
|
static getUIData() {
|
|
18607
18611
|
return {
|
|
18608
|
-
infoBoxBody:
|
|
18612
|
+
infoBoxBody: import_ts_dedent58.dedent`
|
|
18609
18613
|
A comment node is a node that does nothing. It is useful for adding notes to a graph.
|
|
18610
18614
|
`,
|
|
18611
18615
|
infoBoxTitle: "Comment Node",
|
|
@@ -19388,7 +19392,7 @@ var httpCallNode = nodeDefinition(HttpCallNodeImpl, "Http Call");
|
|
|
19388
19392
|
|
|
19389
19393
|
// src/model/nodes/DelayNode.ts
|
|
19390
19394
|
var import_non_secure64 = require("nanoid/non-secure");
|
|
19391
|
-
var
|
|
19395
|
+
var import_ts_dedent59 = require("ts-dedent");
|
|
19392
19396
|
var DelayNodeImpl = class extends NodeImpl {
|
|
19393
19397
|
static create() {
|
|
19394
19398
|
const chartNode = {
|
|
@@ -19439,7 +19443,7 @@ var DelayNodeImpl = class extends NodeImpl {
|
|
|
19439
19443
|
}
|
|
19440
19444
|
static getUIData() {
|
|
19441
19445
|
return {
|
|
19442
|
-
infoBoxBody:
|
|
19446
|
+
infoBoxBody: import_ts_dedent59.dedent`
|
|
19443
19447
|
Delays the execution and then passes the input value to the output without any modifications.
|
|
19444
19448
|
`,
|
|
19445
19449
|
infoBoxTitle: "Delay Node",
|
|
@@ -19491,7 +19495,7 @@ var delayNode = nodeDefinition(DelayNodeImpl, "Delay");
|
|
|
19491
19495
|
|
|
19492
19496
|
// src/model/nodes/AppendToDatasetNode.ts
|
|
19493
19497
|
var import_non_secure65 = require("nanoid/non-secure");
|
|
19494
|
-
var
|
|
19498
|
+
var import_ts_dedent60 = require("ts-dedent");
|
|
19495
19499
|
var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
19496
19500
|
static create() {
|
|
19497
19501
|
return {
|
|
@@ -19551,7 +19555,7 @@ var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
|
19551
19555
|
}
|
|
19552
19556
|
static getUIData() {
|
|
19553
19557
|
return {
|
|
19554
|
-
infoBoxBody:
|
|
19558
|
+
infoBoxBody: import_ts_dedent60.dedent`
|
|
19555
19559
|
Appends a row of data to the specified dataset.
|
|
19556
19560
|
`,
|
|
19557
19561
|
infoBoxTitle: "Append to Dataset Node",
|
|
@@ -20102,7 +20106,7 @@ var getDatasetRowNode = nodeDefinition(GetDatasetRowNodeImpl, "Get Dataset Row")
|
|
|
20102
20106
|
|
|
20103
20107
|
// src/model/nodes/SliceNode.ts
|
|
20104
20108
|
var import_non_secure66 = require("nanoid/non-secure");
|
|
20105
|
-
var
|
|
20109
|
+
var import_ts_dedent61 = require("ts-dedent");
|
|
20106
20110
|
var SliceNodeImpl = class extends NodeImpl {
|
|
20107
20111
|
static create() {
|
|
20108
20112
|
const chartNode = {
|
|
@@ -20161,14 +20165,14 @@ var SliceNodeImpl = class extends NodeImpl {
|
|
|
20161
20165
|
];
|
|
20162
20166
|
}
|
|
20163
20167
|
getBody() {
|
|
20164
|
-
return
|
|
20168
|
+
return import_ts_dedent61.dedent`
|
|
20165
20169
|
Start: ${this.data.useStartInput ? "(Using Input)" : this.data.start == null ? "0" : this.data.start}
|
|
20166
20170
|
Count: ${this.data.useCountInput ? "(Using Input)" : this.data.count == null ? "All" : this.data.count}
|
|
20167
20171
|
`;
|
|
20168
20172
|
}
|
|
20169
20173
|
static getUIData() {
|
|
20170
20174
|
return {
|
|
20171
|
-
infoBoxBody:
|
|
20175
|
+
infoBoxBody: import_ts_dedent61.dedent`
|
|
20172
20176
|
Slices an array from the start index for the count number of elements.
|
|
20173
20177
|
|
|
20174
20178
|
Useful for extracting a portion of an array.
|
|
@@ -20195,7 +20199,7 @@ var sliceNode = nodeDefinition(SliceNodeImpl, "Slice");
|
|
|
20195
20199
|
|
|
20196
20200
|
// src/model/nodes/ExtractMarkdownCodeBlocksNode.ts
|
|
20197
20201
|
var import_non_secure67 = require("nanoid/non-secure");
|
|
20198
|
-
var
|
|
20202
|
+
var import_ts_dedent62 = require("ts-dedent");
|
|
20199
20203
|
var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
20200
20204
|
static create() {
|
|
20201
20205
|
const chartNode = {
|
|
@@ -20242,7 +20246,7 @@ var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
|
20242
20246
|
}
|
|
20243
20247
|
static getUIData() {
|
|
20244
20248
|
return {
|
|
20245
|
-
infoBoxBody:
|
|
20249
|
+
infoBoxBody: import_ts_dedent62.dedent`
|
|
20246
20250
|
Extracts the code blocks in the input Markdown text.
|
|
20247
20251
|
|
|
20248
20252
|
Outputs the first matched block, all matched blocks, and the languages specified for the blocks.
|
|
@@ -20581,7 +20585,7 @@ var urlReferenceNode = nodeDefinition(UrlReferenceNodeImpl, "URL Reference");
|
|
|
20581
20585
|
// src/model/nodes/DestructureNode.ts
|
|
20582
20586
|
var import_non_secure70 = require("nanoid/non-secure");
|
|
20583
20587
|
var import_jsonpath_plus3 = require("jsonpath-plus");
|
|
20584
|
-
var
|
|
20588
|
+
var import_ts_dedent63 = require("ts-dedent");
|
|
20585
20589
|
var DestructureNodeImpl = class extends NodeImpl {
|
|
20586
20590
|
static create() {
|
|
20587
20591
|
const chartNode = {
|
|
@@ -20649,7 +20653,7 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
20649
20653
|
}
|
|
20650
20654
|
static getUIData() {
|
|
20651
20655
|
return {
|
|
20652
|
-
infoBoxBody:
|
|
20656
|
+
infoBoxBody: import_ts_dedent63.dedent`
|
|
20653
20657
|
Destructures the input value by extracting values at the specified paths. The paths use JSONPath notation to navigate through the value.
|
|
20654
20658
|
`,
|
|
20655
20659
|
infoBoxTitle: "Destructure Node",
|
|
@@ -20684,7 +20688,7 @@ var destructureNode = nodeDefinition(DestructureNodeImpl, "Destructure");
|
|
|
20684
20688
|
|
|
20685
20689
|
// src/model/nodes/ReplaceDatasetNode.ts
|
|
20686
20690
|
var import_non_secure71 = require("nanoid/non-secure");
|
|
20687
|
-
var
|
|
20691
|
+
var import_ts_dedent64 = require("ts-dedent");
|
|
20688
20692
|
var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
20689
20693
|
static create() {
|
|
20690
20694
|
return {
|
|
@@ -20727,7 +20731,7 @@ var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
|
20727
20731
|
}
|
|
20728
20732
|
static getUIData() {
|
|
20729
20733
|
return {
|
|
20730
|
-
infoBoxBody:
|
|
20734
|
+
infoBoxBody: import_ts_dedent64.dedent`
|
|
20731
20735
|
Replaces the data in a dataset with the given data. If no data is given, the dataset will be cleared instead.
|
|
20732
20736
|
`,
|
|
20733
20737
|
infoBoxTitle: "Replace Dataset Node",
|
|
@@ -20860,7 +20864,7 @@ var listGraphsNode = nodeDefinition(ListGraphsNodeImpl, "List Graphs");
|
|
|
20860
20864
|
|
|
20861
20865
|
// src/model/nodes/GraphReferenceNode.ts
|
|
20862
20866
|
var import_non_secure72 = require("nanoid/non-secure");
|
|
20863
|
-
var
|
|
20867
|
+
var import_ts_dedent65 = require("ts-dedent");
|
|
20864
20868
|
var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
20865
20869
|
static create() {
|
|
20866
20870
|
const chartNode = {
|
|
@@ -20915,7 +20919,7 @@ var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
|
20915
20919
|
}
|
|
20916
20920
|
static getUIData() {
|
|
20917
20921
|
return {
|
|
20918
|
-
infoBoxBody:
|
|
20922
|
+
infoBoxBody: import_ts_dedent65.dedent`
|
|
20919
20923
|
Gets a reference to another graph, that can be used to pass around graphs to call using a Call Graph node.
|
|
20920
20924
|
`,
|
|
20921
20925
|
infoBoxTitle: "Graph Reference Node",
|
|
@@ -20982,7 +20986,7 @@ var graphReferenceNode = nodeDefinition(GraphReferenceNodeImpl, "Graph Reference
|
|
|
20982
20986
|
|
|
20983
20987
|
// src/model/nodes/CallGraphNode.ts
|
|
20984
20988
|
var import_non_secure73 = require("nanoid/non-secure");
|
|
20985
|
-
var
|
|
20989
|
+
var import_ts_dedent66 = require("ts-dedent");
|
|
20986
20990
|
|
|
20987
20991
|
// src/api/looseDataValue.ts
|
|
20988
20992
|
var import_lodash_es15 = require("lodash");
|
|
@@ -21058,7 +21062,7 @@ var CallGraphNodeImpl = class extends NodeImpl {
|
|
|
21058
21062
|
}
|
|
21059
21063
|
static getUIData() {
|
|
21060
21064
|
return {
|
|
21061
|
-
infoBoxBody:
|
|
21065
|
+
infoBoxBody: import_ts_dedent66.dedent`
|
|
21062
21066
|
Calls another graph and passes inputs to it. Use in combination with the Graph Reference node to call dynamic graphs.
|
|
21063
21067
|
`,
|
|
21064
21068
|
infoBoxTitle: "Call Graph Node",
|
|
@@ -21130,7 +21134,7 @@ var callGraphNode = nodeDefinition(CallGraphNodeImpl, "Call Graph");
|
|
|
21130
21134
|
|
|
21131
21135
|
// src/model/nodes/DelegateFunctionCallNode.ts
|
|
21132
21136
|
var import_nanoid = require("nanoid");
|
|
21133
|
-
var
|
|
21137
|
+
var import_ts_dedent67 = require("ts-dedent");
|
|
21134
21138
|
var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
21135
21139
|
static create() {
|
|
21136
21140
|
const chartNode = {
|
|
@@ -21182,7 +21186,7 @@ var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
|
21182
21186
|
}
|
|
21183
21187
|
static getUIData() {
|
|
21184
21188
|
return {
|
|
21185
|
-
infoBoxBody:
|
|
21189
|
+
infoBoxBody: import_ts_dedent67.dedent`
|
|
21186
21190
|
Handles a tool call by delegating it to a different subgraph depending on the tool call.
|
|
21187
21191
|
`,
|
|
21188
21192
|
infoBoxTitle: "Delegate Tool Call Node",
|
|
@@ -21532,7 +21536,7 @@ var documentNode = nodeDefinition(DocumentNodeImpl, "Document");
|
|
|
21532
21536
|
|
|
21533
21537
|
// src/model/nodes/ChatLoopNode.ts
|
|
21534
21538
|
var import_non_secure76 = require("nanoid/non-secure");
|
|
21535
|
-
var
|
|
21539
|
+
var import_ts_dedent68 = require("ts-dedent");
|
|
21536
21540
|
var ChatLoopNodeImpl = class extends NodeImpl {
|
|
21537
21541
|
static create() {
|
|
21538
21542
|
const chartNode = {
|
|
@@ -21571,7 +21575,7 @@ var ChatLoopNodeImpl = class extends NodeImpl {
|
|
|
21571
21575
|
}
|
|
21572
21576
|
static getUIData() {
|
|
21573
21577
|
return {
|
|
21574
|
-
infoBoxBody:
|
|
21578
|
+
infoBoxBody: import_ts_dedent68.dedent`
|
|
21575
21579
|
Creates an interactive chat loop with an AI model. The node will:
|
|
21576
21580
|
1. Send the initial prompt to the AI
|
|
21577
21581
|
2. Show the AI's response and prompt for user input
|
|
@@ -21672,7 +21676,7 @@ var chatLoopNode = nodeDefinition(ChatLoopNodeImpl, "Chat Loop");
|
|
|
21672
21676
|
|
|
21673
21677
|
// src/model/nodes/ReadAllFilesNode.ts
|
|
21674
21678
|
var import_non_secure77 = require("nanoid/non-secure");
|
|
21675
|
-
var
|
|
21679
|
+
var import_ts_dedent69 = require("ts-dedent");
|
|
21676
21680
|
var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
21677
21681
|
static create() {
|
|
21678
21682
|
return {
|
|
@@ -21787,7 +21791,7 @@ var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
|
21787
21791
|
];
|
|
21788
21792
|
}
|
|
21789
21793
|
getBody() {
|
|
21790
|
-
return
|
|
21794
|
+
return import_ts_dedent69.dedent`
|
|
21791
21795
|
${this.data.asBinary ? "Read as Binary" : "Read as Text"}
|
|
21792
21796
|
Path: ${this.data.usePathInput ? "(Input)" : this.data.path}
|
|
21793
21797
|
Recursive: ${this.data.useRecursiveInput ? "(Input)" : this.data.recursive}
|
|
@@ -21796,7 +21800,7 @@ var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
|
21796
21800
|
}
|
|
21797
21801
|
static getUIData() {
|
|
21798
21802
|
return {
|
|
21799
|
-
infoBoxBody:
|
|
21803
|
+
infoBoxBody: import_ts_dedent69.dedent`
|
|
21800
21804
|
Reads all files in the specified directory and outputs an array of objects containing each file's path and contents.
|
|
21801
21805
|
Each object has a 'path' (string) and 'content' (string or binary) property.
|
|
21802
21806
|
`,
|
|
@@ -21870,7 +21874,7 @@ var readAllFilesNode = nodeDefinition(ReadAllFilesNodeImpl, "Read All Files");
|
|
|
21870
21874
|
|
|
21871
21875
|
// src/model/nodes/ToMarkdownTableNode.ts
|
|
21872
21876
|
var import_non_secure78 = require("nanoid/non-secure");
|
|
21873
|
-
var
|
|
21877
|
+
var import_ts_dedent70 = require("ts-dedent");
|
|
21874
21878
|
var ToMarkdownTableNodeImpl = class extends NodeImpl {
|
|
21875
21879
|
static create() {
|
|
21876
21880
|
const chartNode = {
|
|
@@ -21932,7 +21936,7 @@ var ToMarkdownTableNodeImpl = class extends NodeImpl {
|
|
|
21932
21936
|
}
|
|
21933
21937
|
static getUIData() {
|
|
21934
21938
|
return {
|
|
21935
|
-
infoBoxBody:
|
|
21939
|
+
infoBoxBody: import_ts_dedent70.dedent`
|
|
21936
21940
|
Converts an array of objects into a markdown table format.
|
|
21937
21941
|
Input should be an array of objects with consistent keys.
|
|
21938
21942
|
`,
|
|
@@ -21984,7 +21988,7 @@ var toMarkdownTableNode = nodeDefinition(ToMarkdownTableNodeImpl, "To Markdown T
|
|
|
21984
21988
|
|
|
21985
21989
|
// src/model/nodes/CronNode.ts
|
|
21986
21990
|
var import_nanoid2 = require("nanoid");
|
|
21987
|
-
var
|
|
21991
|
+
var import_ts_dedent71 = require("ts-dedent");
|
|
21988
21992
|
var cronParser = __toESM(require("cron-parser"), 1);
|
|
21989
21993
|
var CronNodeImpl = class extends NodeImpl {
|
|
21990
21994
|
static create() {
|
|
@@ -22054,7 +22058,7 @@ var CronNodeImpl = class extends NodeImpl {
|
|
|
22054
22058
|
}
|
|
22055
22059
|
static getUIData() {
|
|
22056
22060
|
return {
|
|
22057
|
-
infoBoxBody:
|
|
22061
|
+
infoBoxBody: import_ts_dedent71.dedent`
|
|
22058
22062
|
Executes a subgraph on a schedule. Supports:
|
|
22059
22063
|
- Natural language (e.g., "every 5 minutes", "daily at 3pm")
|
|
22060
22064
|
- Cron expressions (e.g., "0 * * * *")
|
|
@@ -22094,7 +22098,7 @@ var CronNodeImpl = class extends NodeImpl {
|
|
|
22094
22098
|
type: "string",
|
|
22095
22099
|
dataKey: "schedule",
|
|
22096
22100
|
label: "Schedule",
|
|
22097
|
-
helperMessage:
|
|
22101
|
+
helperMessage: import_ts_dedent71.dedent`
|
|
22098
22102
|
Examples:
|
|
22099
22103
|
Cron: "*/5 * * * *", "0 15 * * *"
|
|
22100
22104
|
Interval: "5 minutes", "1 hour", "7 days"
|
|
@@ -22226,7 +22230,7 @@ var cronNode = nodeDefinition(CronNodeImpl, "Cron");
|
|
|
22226
22230
|
|
|
22227
22231
|
// src/model/nodes/ToTreeNode.ts
|
|
22228
22232
|
var import_non_secure79 = require("nanoid/non-secure");
|
|
22229
|
-
var
|
|
22233
|
+
var import_ts_dedent72 = require("ts-dedent");
|
|
22230
22234
|
var import_lodash_es16 = require("lodash");
|
|
22231
22235
|
var ToTreeNodeImpl = class extends NodeImpl {
|
|
22232
22236
|
static create() {
|
|
@@ -22288,7 +22292,7 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
22288
22292
|
];
|
|
22289
22293
|
}
|
|
22290
22294
|
getBody() {
|
|
22291
|
-
return
|
|
22295
|
+
return import_ts_dedent72.dedent`
|
|
22292
22296
|
Format: ${this.data.format}
|
|
22293
22297
|
Children: ${this.data.childrenProperty}
|
|
22294
22298
|
Sort: ${this.data.useSortAlphabetically ? "Yes" : "No"}
|
|
@@ -22296,7 +22300,7 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
22296
22300
|
}
|
|
22297
22301
|
static getUIData() {
|
|
22298
22302
|
return {
|
|
22299
|
-
infoBoxBody:
|
|
22303
|
+
infoBoxBody: import_ts_dedent72.dedent`
|
|
22300
22304
|
Converts an array of objects into a tree structure and renders it as text.
|
|
22301
22305
|
|
|
22302
22306
|
The format field supports interpolation using {{property}} syntax to determine
|
|
@@ -22352,7 +22356,7 @@ var toTreeNode = nodeDefinition(ToTreeNodeImpl, "To Tree");
|
|
|
22352
22356
|
|
|
22353
22357
|
// src/model/nodes/LoopUntilNode.ts
|
|
22354
22358
|
var import_non_secure80 = require("nanoid/non-secure");
|
|
22355
|
-
var
|
|
22359
|
+
var import_ts_dedent73 = require("ts-dedent");
|
|
22356
22360
|
var LoopUntilNodeImpl = class extends NodeImpl {
|
|
22357
22361
|
static create() {
|
|
22358
22362
|
const chartNode = {
|
|
@@ -22454,7 +22458,7 @@ var LoopUntilNodeImpl = class extends NodeImpl {
|
|
|
22454
22458
|
}
|
|
22455
22459
|
static getUIData() {
|
|
22456
22460
|
return {
|
|
22457
|
-
infoBoxBody:
|
|
22461
|
+
infoBoxBody: import_ts_dedent73.dedent`
|
|
22458
22462
|
Executes a subgraph in a loop until a condition is met. Each iteration's outputs become
|
|
22459
22463
|
the inputs for the next iteration. Supports different stopping conditions and optional
|
|
22460
22464
|
maximum iterations.
|
|
@@ -22816,7 +22820,7 @@ var mcpDiscoveryNode = nodeDefinition(MCPDiscoveryNodeImpl, "MCP Discovery");
|
|
|
22816
22820
|
|
|
22817
22821
|
// src/model/nodes/MCPToolCallNode.ts
|
|
22818
22822
|
var import_non_secure81 = require("nanoid/non-secure");
|
|
22819
|
-
var
|
|
22823
|
+
var import_ts_dedent74 = require("ts-dedent");
|
|
22820
22824
|
var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
22821
22825
|
static create() {
|
|
22822
22826
|
const chartNode = {
|
|
@@ -22835,7 +22839,7 @@ var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
|
22835
22839
|
serverUrl: "http://localhost:8080/mcp",
|
|
22836
22840
|
serverId: "",
|
|
22837
22841
|
toolName: "",
|
|
22838
|
-
toolArguments:
|
|
22842
|
+
toolArguments: import_ts_dedent74.dedent`
|
|
22839
22843
|
{
|
|
22840
22844
|
"key": "value"
|
|
22841
22845
|
}`,
|
|
@@ -22975,7 +22979,7 @@ var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
|
22975
22979
|
}
|
|
22976
22980
|
static getUIData() {
|
|
22977
22981
|
return {
|
|
22978
|
-
infoBoxBody:
|
|
22982
|
+
infoBoxBody: import_ts_dedent74.dedent`
|
|
22979
22983
|
Connects to an MCP (Model Context Protocol) server and gets a tool call response.
|
|
22980
22984
|
`,
|
|
22981
22985
|
infoBoxTitle: "MCP Tool Call Node",
|
|
@@ -23287,7 +23291,7 @@ var mcpGetPromptNode = nodeDefinition(MCPGetPromptNodeImpl, "MCP Get Prompt");
|
|
|
23287
23291
|
|
|
23288
23292
|
// src/model/nodes/ReferencedGraphAliasNode.ts
|
|
23289
23293
|
var import_non_secure83 = require("nanoid/non-secure");
|
|
23290
|
-
var
|
|
23294
|
+
var import_ts_dedent75 = require("ts-dedent");
|
|
23291
23295
|
var ReferencedGraphAliasNodeImpl = class extends NodeImpl {
|
|
23292
23296
|
static create() {
|
|
23293
23297
|
const chartNode = {
|
|
@@ -23378,7 +23382,7 @@ var ReferencedGraphAliasNodeImpl = class extends NodeImpl {
|
|
|
23378
23382
|
}
|
|
23379
23383
|
static getUIData() {
|
|
23380
23384
|
return {
|
|
23381
|
-
infoBoxBody:
|
|
23385
|
+
infoBoxBody: import_ts_dedent75.dedent`
|
|
23382
23386
|
References a graph from another project. Inputs and outputs are defined by Graph Input and Graph Output nodes within the referenced graph.
|
|
23383
23387
|
`,
|
|
23384
23388
|
infoBoxTitle: "Referenced Graph Alias Node",
|
|
@@ -23962,7 +23966,7 @@ function isRecordingTerminalEvent(event, data) {
|
|
|
23962
23966
|
|
|
23963
23967
|
// src/plugins/anthropic/nodes/ChatAnthropicNode.ts
|
|
23964
23968
|
var import_non_secure85 = require("nanoid/non-secure");
|
|
23965
|
-
var
|
|
23969
|
+
var import_ts_dedent76 = require("ts-dedent");
|
|
23966
23970
|
var import_p_retry2 = __toESM(require("p-retry-4"), 1);
|
|
23967
23971
|
|
|
23968
23972
|
// src/utils/assertNever.ts
|
|
@@ -24121,7 +24125,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
24121
24125
|
getBody(data) {
|
|
24122
24126
|
var _a;
|
|
24123
24127
|
const modelName = data.overrideModel ? data.overrideModel : ((_a = anthropicModels[data.model]) == null ? void 0 : _a.displayName) ?? "Unknown Model";
|
|
24124
|
-
return
|
|
24128
|
+
return import_ts_dedent76.dedent`
|
|
24125
24129
|
${modelName}
|
|
24126
24130
|
${data.useTopP ? `Top P: ${data.useTopPInput ? "(Using Input)" : data.top_p}` : `Temperature: ${data.useTemperatureInput ? "(Using Input)" : data.temperature}`}
|
|
24127
24131
|
Max Tokens: ${data.maxTokens}
|
|
@@ -24246,7 +24250,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
24246
24250
|
},
|
|
24247
24251
|
getUIData() {
|
|
24248
24252
|
return {
|
|
24249
|
-
infoBoxBody:
|
|
24253
|
+
infoBoxBody: import_ts_dedent76.dedent`
|
|
24250
24254
|
Legacy Anthropic chat node.
|
|
24251
24255
|
|
|
24252
24256
|
For new work, prefer \`LLM Chat\`, which keeps provider selection inside one shared node.
|
|
@@ -24720,7 +24724,7 @@ var anthropic_default = anthropicPlugin;
|
|
|
24720
24724
|
|
|
24721
24725
|
// src/plugins/autoevals/AutoEvalsNode.ts
|
|
24722
24726
|
var import_non_secure86 = require("nanoid/non-secure");
|
|
24723
|
-
var
|
|
24727
|
+
var import_ts_dedent77 = require("ts-dedent");
|
|
24724
24728
|
var import_autoevals = require("autoevals");
|
|
24725
24729
|
var import_ts_pattern8 = require("ts-pattern");
|
|
24726
24730
|
var options = [
|
|
@@ -24854,7 +24858,7 @@ var AutoEvalsNodeImpl = {
|
|
|
24854
24858
|
},
|
|
24855
24859
|
getUIData() {
|
|
24856
24860
|
return {
|
|
24857
|
-
infoBoxBody:
|
|
24861
|
+
infoBoxBody: import_ts_dedent77.dedent`
|
|
24858
24862
|
Evaluates the validity of a response using the autoevals library.
|
|
24859
24863
|
`,
|
|
24860
24864
|
infoBoxTitle: "Autoevals Node",
|
|
@@ -24935,7 +24939,7 @@ var autoevals_default = autoevalsPlugin;
|
|
|
24935
24939
|
|
|
24936
24940
|
// src/plugins/assemblyAi/LemurQaNode.ts
|
|
24937
24941
|
var import_non_secure87 = require("nanoid/non-secure");
|
|
24938
|
-
var
|
|
24942
|
+
var import_ts_dedent78 = require("ts-dedent");
|
|
24939
24943
|
|
|
24940
24944
|
// src/plugins/assemblyAi/lemurHelpers.ts
|
|
24941
24945
|
var import_assemblyai = require("assemblyai");
|
|
@@ -25121,7 +25125,7 @@ var LemurQaNodeImpl = {
|
|
|
25121
25125
|
},
|
|
25122
25126
|
getUIData() {
|
|
25123
25127
|
return {
|
|
25124
|
-
infoBoxBody:
|
|
25128
|
+
infoBoxBody: import_ts_dedent78.dedent`Use AssemblyAI LeMUR to ask questions about transcripts`,
|
|
25125
25129
|
infoBoxTitle: "Use AssemblyAI LeMUR Question & Answer",
|
|
25126
25130
|
contextMenuTitle: "LeMUR Q&A",
|
|
25127
25131
|
group: ["AI", "AssemblyAI"]
|
|
@@ -25194,7 +25198,7 @@ var lemurQaNode = pluginNodeDefinition(LemurQaNodeImpl, "LeMUR Q&A");
|
|
|
25194
25198
|
|
|
25195
25199
|
// src/plugins/assemblyAi/TranscribeAudioNode.ts
|
|
25196
25200
|
var import_non_secure88 = require("nanoid/non-secure");
|
|
25197
|
-
var
|
|
25201
|
+
var import_ts_dedent79 = require("ts-dedent");
|
|
25198
25202
|
var TranscribeAudioNodeImpl = {
|
|
25199
25203
|
create() {
|
|
25200
25204
|
const chartNode = {
|
|
@@ -25256,7 +25260,7 @@ var TranscribeAudioNodeImpl = {
|
|
|
25256
25260
|
},
|
|
25257
25261
|
getUIData() {
|
|
25258
25262
|
return {
|
|
25259
|
-
infoBoxBody:
|
|
25263
|
+
infoBoxBody: import_ts_dedent79.dedent`Use AssemblyAI to transcribe audio`,
|
|
25260
25264
|
infoBoxTitle: "Transcribe Audio Node",
|
|
25261
25265
|
contextMenuTitle: "Transcribe Audio",
|
|
25262
25266
|
group: ["AI", "AssemblyAI"]
|
|
@@ -25316,7 +25320,7 @@ function getAdditionalParameters(data) {
|
|
|
25316
25320
|
|
|
25317
25321
|
// src/plugins/assemblyAi/LemurSummaryNode.ts
|
|
25318
25322
|
var import_non_secure89 = require("nanoid/non-secure");
|
|
25319
|
-
var
|
|
25323
|
+
var import_ts_dedent80 = require("ts-dedent");
|
|
25320
25324
|
var import_assemblyai3 = require("assemblyai");
|
|
25321
25325
|
var LemurSummaryNodeImpl = {
|
|
25322
25326
|
create() {
|
|
@@ -25369,7 +25373,7 @@ var LemurSummaryNodeImpl = {
|
|
|
25369
25373
|
},
|
|
25370
25374
|
getUIData() {
|
|
25371
25375
|
return {
|
|
25372
|
-
infoBoxBody:
|
|
25376
|
+
infoBoxBody: import_ts_dedent80.dedent`Use AssemblyAI LeMUR Summary to summarize transcripts`,
|
|
25373
25377
|
infoBoxTitle: "Use AssemblyAI LeMUR Summary",
|
|
25374
25378
|
contextMenuTitle: "LeMUR Summary",
|
|
25375
25379
|
group: ["AI", "AssemblyAI"]
|
|
@@ -25394,7 +25398,7 @@ var lemurSummaryNode = pluginNodeDefinition(LemurSummaryNodeImpl, "LeMUR Summary
|
|
|
25394
25398
|
|
|
25395
25399
|
// src/plugins/assemblyAi/LemurTaskNode.ts
|
|
25396
25400
|
var import_non_secure90 = require("nanoid/non-secure");
|
|
25397
|
-
var
|
|
25401
|
+
var import_ts_dedent81 = require("ts-dedent");
|
|
25398
25402
|
var import_assemblyai4 = require("assemblyai");
|
|
25399
25403
|
var LemurTaskNodeImpl = {
|
|
25400
25404
|
create() {
|
|
@@ -25447,7 +25451,7 @@ var LemurTaskNodeImpl = {
|
|
|
25447
25451
|
},
|
|
25448
25452
|
getUIData() {
|
|
25449
25453
|
return {
|
|
25450
|
-
infoBoxBody:
|
|
25454
|
+
infoBoxBody: import_ts_dedent81.dedent`Use AssemblyAI LeMUR Custom Task to ask anything.`,
|
|
25451
25455
|
infoBoxTitle: "Use AssemblyAI LeMUR Custom Task",
|
|
25452
25456
|
contextMenuTitle: "LeMUR Custom Task",
|
|
25453
25457
|
group: ["AI", "AssemblyAI"]
|
|
@@ -25474,7 +25478,7 @@ var lemurTaskNode = pluginNodeDefinition(LemurTaskNodeImpl, "LeMUR Task");
|
|
|
25474
25478
|
|
|
25475
25479
|
// src/plugins/assemblyAi/LemurActionItemsNode.ts
|
|
25476
25480
|
var import_non_secure91 = require("nanoid/non-secure");
|
|
25477
|
-
var
|
|
25481
|
+
var import_ts_dedent82 = require("ts-dedent");
|
|
25478
25482
|
var LemurActionItemsNodeImpl = {
|
|
25479
25483
|
create() {
|
|
25480
25484
|
const chartNode = {
|
|
@@ -25526,7 +25530,7 @@ var LemurActionItemsNodeImpl = {
|
|
|
25526
25530
|
},
|
|
25527
25531
|
getUIData() {
|
|
25528
25532
|
return {
|
|
25529
|
-
infoBoxBody:
|
|
25533
|
+
infoBoxBody: import_ts_dedent82.dedent`Use AssemblyAI LeMUR Action Items to extract action items`,
|
|
25530
25534
|
infoBoxTitle: "Use AssemblyAI LeMUR Action Items",
|
|
25531
25535
|
contextMenuTitle: "LeMUR Action Items",
|
|
25532
25536
|
group: ["AI", "AssemblyAI"]
|
|
@@ -25815,7 +25819,7 @@ var chatHuggingFaceNode = pluginNodeDefinition(ChatHuggingFaceNodeImpl, "Chat (H
|
|
|
25815
25819
|
// src/plugins/huggingface/nodes/TextToImageHuggingFace.ts
|
|
25816
25820
|
var import_non_secure93 = require("nanoid/non-secure");
|
|
25817
25821
|
var import_inference2 = require("@huggingface/inference");
|
|
25818
|
-
var
|
|
25822
|
+
var import_ts_dedent83 = require("ts-dedent");
|
|
25819
25823
|
var TextToImageHuggingFaceNodeImpl = {
|
|
25820
25824
|
create() {
|
|
25821
25825
|
return {
|
|
@@ -25960,7 +25964,7 @@ var TextToImageHuggingFaceNodeImpl = {
|
|
|
25960
25964
|
];
|
|
25961
25965
|
},
|
|
25962
25966
|
getBody(data) {
|
|
25963
|
-
return
|
|
25967
|
+
return import_ts_dedent83.dedent`
|
|
25964
25968
|
Model: ${data.useModelInput ? "(Using Input)" : data.model}
|
|
25965
25969
|
`;
|
|
25966
25970
|
},
|
|
@@ -29136,7 +29140,7 @@ var openAIPlugin = {
|
|
|
29136
29140
|
|
|
29137
29141
|
// src/plugins/google/nodes/ChatGoogleNode.ts
|
|
29138
29142
|
var import_non_secure94 = require("nanoid/non-secure");
|
|
29139
|
-
var
|
|
29143
|
+
var import_ts_dedent84 = require("ts-dedent");
|
|
29140
29144
|
var import_p_retry3 = __toESM(require("p-retry-4"), 1);
|
|
29141
29145
|
var import_ts_pattern9 = require("ts-pattern");
|
|
29142
29146
|
var import_genai2 = require("@google/genai");
|
|
@@ -29299,7 +29303,7 @@ var ChatGoogleNodeImpl = {
|
|
|
29299
29303
|
},
|
|
29300
29304
|
getBody(data) {
|
|
29301
29305
|
var _a;
|
|
29302
|
-
return
|
|
29306
|
+
return import_ts_dedent84.dedent`
|
|
29303
29307
|
${((_a = generativeAiGoogleModels[data.model]) == null ? void 0 : _a.displayName) ?? `Google (${data.model})`}
|
|
29304
29308
|
${data.useTopP ? `Top P: ${data.useTopPInput ? "(Using Input)" : data.top_p}` : `Temperature: ${data.useTemperatureInput ? "(Using Input)" : data.temperature}`}
|
|
29305
29309
|
Max Tokens: ${data.maxTokens}
|
|
@@ -29386,7 +29390,7 @@ var ChatGoogleNodeImpl = {
|
|
|
29386
29390
|
},
|
|
29387
29391
|
getUIData() {
|
|
29388
29392
|
return {
|
|
29389
|
-
infoBoxBody:
|
|
29393
|
+
infoBoxBody: import_ts_dedent84.dedent`
|
|
29390
29394
|
Legacy Google chat node.
|
|
29391
29395
|
|
|
29392
29396
|
For new work, prefer \`LLM Chat\`, which keeps provider selection inside one shared node.
|