@valerypopoff/rivet2-core 2.10.0 → 2.12.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/cjs/bundle.cjs +714 -493
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/esm/model/Nodes.js +3 -0
- package/dist/esm/model/nodes/CoalesceNewNode.js +1 -1
- package/dist/esm/model/nodes/CoalesceNode.js +1 -1
- package/dist/esm/model/nodes/GetGlobalNode.js +2 -6
- package/dist/esm/model/nodes/HttpCallNode.js +47 -16
- package/dist/esm/model/nodes/MatchCaseNode.js +132 -0
- package/dist/esm/model/nodes/MatchCaseNodeBase.js +237 -0
- package/dist/esm/model/nodes/MatchNode.js +24 -177
- package/dist/types/model/EditorDefinition.d.ts +2 -0
- package/dist/types/model/Nodes.d.ts +3 -2
- package/dist/types/model/nodes/MatchCaseNode.d.ts +43 -0
- package/dist/types/model/nodes/MatchCaseNodeBase.d.ts +52 -0
- package/dist/types/model/nodes/MatchNode.d.ts +13 -21
- package/package.json +1 -1
package/dist/cjs/bundle.cjs
CHANGED
|
@@ -136,6 +136,7 @@ __export(src_exports, {
|
|
|
136
136
|
MCPGetPromptNodeImpl: () => MCPGetPromptNodeImpl,
|
|
137
137
|
MCPToolCallNodeImpl: () => MCPToolCallNodeImpl,
|
|
138
138
|
ManagedKnowledgeStore: () => ManagedKnowledgeStore,
|
|
139
|
+
MatchCaseNodeImpl: () => MatchCaseNodeImpl,
|
|
139
140
|
MatchNodeImpl: () => MatchNodeImpl,
|
|
140
141
|
NODE_PREFAB_INSTANCE_TYPE: () => NODE_PREFAB_INSTANCE_TYPE,
|
|
141
142
|
NodeImpl: () => NodeImpl,
|
|
@@ -514,6 +515,7 @@ __export(src_exports, {
|
|
|
514
515
|
loopUntilNode: () => loopUntilNode,
|
|
515
516
|
looseDataValueToDataValue: () => looseDataValueToDataValue,
|
|
516
517
|
looseDataValuesToDataValues: () => looseDataValuesToDataValues,
|
|
518
|
+
matchCaseNode: () => matchCaseNode,
|
|
517
519
|
matchNode: () => matchNode,
|
|
518
520
|
materializeChatV2PipelineFailure: () => materializeChatV2PipelineFailure,
|
|
519
521
|
materializeLLMResponse: () => materializeLLMResponse,
|
|
@@ -593,6 +595,7 @@ __export(src_exports, {
|
|
|
593
595
|
reconcileUiGraphChatActionBindings: () => reconcileUiGraphChatActionBindings,
|
|
594
596
|
reconcileUiGraphRunGraphActionBindings: () => reconcileUiGraphRunGraphActionBindings,
|
|
595
597
|
referencedGraphAliasNode: () => referencedGraphAliasNode,
|
|
598
|
+
regexMatchLegacyDisplayName: () => regexMatchLegacyDisplayName,
|
|
596
599
|
registerBuiltInNodes: () => registerBuiltInNodes,
|
|
597
600
|
registerIntegration: () => registerIntegration,
|
|
598
601
|
registerKnowledgeStoreProvider: () => registerKnowledgeStoreProvider,
|
|
@@ -798,6 +801,7 @@ __export(exports_exports, {
|
|
|
798
801
|
MCPGetPromptNodeImpl: () => MCPGetPromptNodeImpl,
|
|
799
802
|
MCPToolCallNodeImpl: () => MCPToolCallNodeImpl,
|
|
800
803
|
ManagedKnowledgeStore: () => ManagedKnowledgeStore,
|
|
804
|
+
MatchCaseNodeImpl: () => MatchCaseNodeImpl,
|
|
801
805
|
MatchNodeImpl: () => MatchNodeImpl,
|
|
802
806
|
NODE_PREFAB_INSTANCE_TYPE: () => NODE_PREFAB_INSTANCE_TYPE,
|
|
803
807
|
NodeImpl: () => NodeImpl,
|
|
@@ -1175,6 +1179,7 @@ __export(exports_exports, {
|
|
|
1175
1179
|
loopUntilNode: () => loopUntilNode,
|
|
1176
1180
|
looseDataValueToDataValue: () => looseDataValueToDataValue,
|
|
1177
1181
|
looseDataValuesToDataValues: () => looseDataValuesToDataValues,
|
|
1182
|
+
matchCaseNode: () => matchCaseNode,
|
|
1178
1183
|
matchNode: () => matchNode,
|
|
1179
1184
|
materializeChatV2PipelineFailure: () => materializeChatV2PipelineFailure,
|
|
1180
1185
|
materializeLLMResponse: () => materializeLLMResponse,
|
|
@@ -1254,6 +1259,7 @@ __export(exports_exports, {
|
|
|
1254
1259
|
reconcileUiGraphChatActionBindings: () => reconcileUiGraphChatActionBindings,
|
|
1255
1260
|
reconcileUiGraphRunGraphActionBindings: () => reconcileUiGraphRunGraphActionBindings,
|
|
1256
1261
|
referencedGraphAliasNode: () => referencedGraphAliasNode,
|
|
1262
|
+
regexMatchLegacyDisplayName: () => regexMatchLegacyDisplayName,
|
|
1257
1263
|
registerBuiltInNodes: () => registerBuiltInNodes,
|
|
1258
1264
|
registerIntegration: () => registerIntegration,
|
|
1259
1265
|
registerKnowledgeStoreProvider: () => registerKnowledgeStoreProvider,
|
|
@@ -28720,41 +28726,48 @@ var expressionNode = nodeDefinition(ExpressionNodeImpl, "Expression");
|
|
|
28720
28726
|
// src/model/nodes/MatchNode.ts
|
|
28721
28727
|
var import_non_secure19 = require("nanoid/non-secure");
|
|
28722
28728
|
var import_ts_dedent13 = require("ts-dedent");
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
|
|
28731
|
-
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
|
|
28738
|
-
|
|
28739
|
-
|
|
28740
|
-
|
|
28729
|
+
|
|
28730
|
+
// src/model/nodes/MatchCaseNodeBase.ts
|
|
28731
|
+
var MatchCaseNodeBase = class extends NodeImpl {
|
|
28732
|
+
casesEditorPlacement = "after-custom-values";
|
|
28733
|
+
customCaseValuesEditorLabel = "Custom case values";
|
|
28734
|
+
defaultExclusive = false;
|
|
28735
|
+
firstMatchingBodyValue = "First matching case only";
|
|
28736
|
+
inputTitle = "Test";
|
|
28737
|
+
matchingCasesToTriggerOptions = [
|
|
28738
|
+
{ value: false, label: "Trigger all matching cases" },
|
|
28739
|
+
{ value: true, label: "Trigger first only" }
|
|
28740
|
+
];
|
|
28741
|
+
sharedCustomValueInputTitle = "Custom value";
|
|
28742
|
+
triggerEditorLabel = "Matching cases to trigger";
|
|
28743
|
+
getReturnValueMode() {
|
|
28744
|
+
return "custom";
|
|
28745
|
+
}
|
|
28746
|
+
getEditorsAfterTrigger() {
|
|
28747
|
+
return [];
|
|
28748
|
+
}
|
|
28749
|
+
shouldHideCustomCaseValues(_data) {
|
|
28750
|
+
return false;
|
|
28741
28751
|
}
|
|
28742
28752
|
getInputDefinitions() {
|
|
28743
28753
|
const inputs = [
|
|
28744
28754
|
{
|
|
28745
28755
|
id: "input",
|
|
28746
|
-
title:
|
|
28756
|
+
title: this.inputTitle,
|
|
28747
28757
|
dataType: "string",
|
|
28748
28758
|
required: true,
|
|
28749
|
-
description:
|
|
28759
|
+
description: `The ${this.inputTitle} value tested against each case.`
|
|
28750
28760
|
}
|
|
28751
28761
|
];
|
|
28762
|
+
if (this.getReturnValueMode() !== "custom") {
|
|
28763
|
+
return inputs;
|
|
28764
|
+
}
|
|
28752
28765
|
if (this.getValueInputMode() === "shared") {
|
|
28753
28766
|
inputs.push({
|
|
28754
28767
|
id: "value",
|
|
28755
|
-
title:
|
|
28768
|
+
title: this.sharedCustomValueInputTitle,
|
|
28756
28769
|
dataType: "any",
|
|
28757
|
-
description:
|
|
28770
|
+
description: `The optional value passed through to every matching output. If unconnected, the ${this.inputTitle} value is passed through.`
|
|
28758
28771
|
});
|
|
28759
28772
|
} else {
|
|
28760
28773
|
const portIds = this.getCasePortIds();
|
|
@@ -28763,14 +28776,14 @@ var MatchNodeImpl = class extends NodeImpl {
|
|
|
28763
28776
|
id: this.getCaseValueInputId(portIds[index]),
|
|
28764
28777
|
title: this.getCaseTitle(caseValue, index),
|
|
28765
28778
|
dataType: "any",
|
|
28766
|
-
description: `The optional custom value emitted when
|
|
28779
|
+
description: `The optional custom value emitted when ${this.describeCaseMatch(caseValue)}. If unconnected, ${this.inputTitle} is passed through.`
|
|
28767
28780
|
});
|
|
28768
28781
|
});
|
|
28769
28782
|
inputs.push({
|
|
28770
28783
|
id: "value-unmatched",
|
|
28771
28784
|
title: "Unmatched",
|
|
28772
28785
|
dataType: "any",
|
|
28773
|
-
description:
|
|
28786
|
+
description: `The optional custom value emitted when ${this.describeNoCaseMatches()}. If unconnected, ${this.inputTitle} is passed through.`
|
|
28774
28787
|
});
|
|
28775
28788
|
}
|
|
28776
28789
|
return inputs;
|
|
@@ -28778,118 +28791,144 @@ var MatchNodeImpl = class extends NodeImpl {
|
|
|
28778
28791
|
getOutputDefinitions() {
|
|
28779
28792
|
const outputs = [];
|
|
28780
28793
|
const portIds = this.getCasePortIds();
|
|
28781
|
-
|
|
28794
|
+
const returnValueMode = this.getReturnValueMode();
|
|
28795
|
+
const dataType = returnValueMode === "true" ? "boolean" : returnValueMode === "testValue" ? "string" : "any";
|
|
28796
|
+
for (let index = 0; index < this.data.cases.length; index++) {
|
|
28797
|
+
const caseValue = this.data.cases[index];
|
|
28798
|
+
const title = this.getCaseTitle(caseValue, index);
|
|
28782
28799
|
outputs.push({
|
|
28783
|
-
id: portIds[
|
|
28784
|
-
title
|
|
28785
|
-
dataType
|
|
28786
|
-
description: this.
|
|
28800
|
+
id: portIds[index],
|
|
28801
|
+
title,
|
|
28802
|
+
dataType,
|
|
28803
|
+
description: this.getMatchingOutputDescription(caseValue, title)
|
|
28787
28804
|
});
|
|
28788
28805
|
}
|
|
28789
28806
|
outputs.push({
|
|
28790
28807
|
id: "unmatched",
|
|
28791
28808
|
title: "Unmatched",
|
|
28792
|
-
dataType
|
|
28793
|
-
description: this.
|
|
28809
|
+
dataType,
|
|
28810
|
+
description: this.getUnmatchedOutputDescription()
|
|
28794
28811
|
});
|
|
28795
28812
|
return outputs;
|
|
28796
28813
|
}
|
|
28797
28814
|
getBody() {
|
|
28798
|
-
return this.
|
|
28815
|
+
return this.getExclusive() ? `Trigger: ${this.firstMatchingBodyValue}` : "Trigger: All matching cases";
|
|
28799
28816
|
}
|
|
28800
28817
|
getEditors() {
|
|
28818
|
+
const casesEditor = {
|
|
28819
|
+
type: "stringList",
|
|
28820
|
+
dataKey: "cases",
|
|
28821
|
+
label: this.caseEditorLabel,
|
|
28822
|
+
placeholder: this.caseEditorPlaceholder,
|
|
28823
|
+
reorderable: true,
|
|
28824
|
+
portBinding: {
|
|
28825
|
+
side: "output",
|
|
28826
|
+
identity: "stored-stable-id",
|
|
28827
|
+
idDataKey: "casePortIds",
|
|
28828
|
+
legacyPortIdPattern: {
|
|
28829
|
+
kind: "prefix",
|
|
28830
|
+
prefix: "case",
|
|
28831
|
+
startIndex: 1
|
|
28832
|
+
},
|
|
28833
|
+
companionBindings: [{ side: "input", prefix: "value-" }]
|
|
28834
|
+
}
|
|
28835
|
+
};
|
|
28801
28836
|
return [
|
|
28837
|
+
...this.casesEditorPlacement === "before-trigger" ? [casesEditor] : [],
|
|
28802
28838
|
{
|
|
28803
28839
|
type: "segmented",
|
|
28804
|
-
label:
|
|
28840
|
+
label: this.triggerEditorLabel,
|
|
28805
28841
|
dataKey: "exclusive",
|
|
28806
|
-
defaultValue:
|
|
28807
|
-
options:
|
|
28808
|
-
{ value: false, label: "Trigger all matching cases" },
|
|
28809
|
-
{ value: true, label: "Trigger first only" }
|
|
28810
|
-
]
|
|
28842
|
+
defaultValue: this.defaultExclusive,
|
|
28843
|
+
options: this.matchingCasesToTriggerOptions
|
|
28811
28844
|
},
|
|
28845
|
+
...this.getEditorsAfterTrigger(),
|
|
28812
28846
|
{
|
|
28813
28847
|
type: "segmented",
|
|
28814
|
-
label:
|
|
28848
|
+
label: this.customCaseValuesEditorLabel,
|
|
28849
|
+
ariaLabel: "Custom case values",
|
|
28815
28850
|
dataKey: "valueInputMode",
|
|
28816
28851
|
defaultValue: "shared",
|
|
28852
|
+
hideIf: (data) => this.shouldHideCustomCaseValues(data),
|
|
28817
28853
|
options: [
|
|
28818
28854
|
{ value: "shared", label: "One shared custom value" },
|
|
28819
28855
|
{ value: "per-output", label: "Custom values per case" }
|
|
28820
28856
|
]
|
|
28821
28857
|
},
|
|
28822
|
-
|
|
28823
|
-
type: "stringList",
|
|
28824
|
-
dataKey: "cases",
|
|
28825
|
-
label: "Cases (regular expressions)",
|
|
28826
|
-
placeholder: "Case (regular expression)",
|
|
28827
|
-
reorderable: true,
|
|
28828
|
-
portBinding: {
|
|
28829
|
-
side: "output",
|
|
28830
|
-
identity: "stored-stable-id",
|
|
28831
|
-
idDataKey: "casePortIds",
|
|
28832
|
-
legacyPortIdPattern: {
|
|
28833
|
-
kind: "prefix",
|
|
28834
|
-
prefix: "case",
|
|
28835
|
-
startIndex: 1
|
|
28836
|
-
},
|
|
28837
|
-
companionBindings: [{ side: "input", prefix: "value-" }]
|
|
28838
|
-
}
|
|
28839
|
-
}
|
|
28858
|
+
...this.casesEditorPlacement === "after-custom-values" ? [casesEditor] : []
|
|
28840
28859
|
];
|
|
28841
28860
|
}
|
|
28842
|
-
static getUIData() {
|
|
28843
|
-
return {
|
|
28844
|
-
infoBoxBody: import_ts_dedent13.dedent`
|
|
28845
|
-
Configure any number of regular expressions, each corresponding to an output. Trigger all matched outputs by default, or choose Trigger first matching case. One shared custom value passes one optional value to every active output, while Custom values per case gives each case and Unmatched output its own optional custom value input.
|
|
28846
|
-
`,
|
|
28847
|
-
infoBoxTitle: "Regex Match Node",
|
|
28848
|
-
contextMenuTitle: "Regex Match",
|
|
28849
|
-
group: ["Logic"]
|
|
28850
|
-
};
|
|
28851
|
-
}
|
|
28852
28861
|
async process(inputs) {
|
|
28853
28862
|
const inputValue = inputs["input"];
|
|
28854
28863
|
const inputString = (inputValue == null ? void 0 : inputValue.value) == null ? void 0 : coerceType(inputValue, "string");
|
|
28855
28864
|
const portIds = this.getCasePortIds();
|
|
28856
28865
|
const sharedValue = inputs["value"];
|
|
28857
|
-
const
|
|
28866
|
+
const returnValueMode = this.getReturnValueMode();
|
|
28867
|
+
const getInputOutputValue = () => ({
|
|
28858
28868
|
type: "string",
|
|
28859
28869
|
value: inputString
|
|
28860
28870
|
});
|
|
28861
|
-
const getSharedOutputValue = () => sharedValue ??
|
|
28862
|
-
const
|
|
28863
|
-
|
|
28864
|
-
|
|
28871
|
+
const getSharedOutputValue = () => sharedValue ?? getInputOutputValue();
|
|
28872
|
+
const getConfiguredOutputValue = (customValueInputId) => {
|
|
28873
|
+
if (returnValueMode === "true") {
|
|
28874
|
+
return { type: "boolean", value: true };
|
|
28875
|
+
}
|
|
28876
|
+
if (returnValueMode === "testValue") {
|
|
28877
|
+
return getInputOutputValue();
|
|
28878
|
+
}
|
|
28879
|
+
return this.getValueInputMode() === "shared" ? getSharedOutputValue() : inputs[customValueInputId] ?? getInputOutputValue();
|
|
28880
|
+
};
|
|
28881
|
+
const getOutputValue = (portId) => getConfiguredOutputValue(this.getCaseValueInputId(portId));
|
|
28882
|
+
const getUnmatchedOutputValue = () => getConfiguredOutputValue("value-unmatched");
|
|
28865
28883
|
let matched = false;
|
|
28866
28884
|
const output = {};
|
|
28867
|
-
for (let
|
|
28868
|
-
const
|
|
28869
|
-
const
|
|
28870
|
-
|
|
28885
|
+
for (let index = 0; index < this.data.cases.length; index++) {
|
|
28886
|
+
const caseValue = this.data.cases[index];
|
|
28887
|
+
const matches = inputString !== void 0 && this.matchesCase(inputString, caseValue);
|
|
28888
|
+
const canMatch = !this.getExclusive() || !matched;
|
|
28889
|
+
const portId = portIds[index];
|
|
28890
|
+
if (matches && canMatch) {
|
|
28871
28891
|
matched = true;
|
|
28872
|
-
output[
|
|
28892
|
+
output[portId] = getOutputValue(portId);
|
|
28873
28893
|
} else {
|
|
28874
|
-
output[
|
|
28894
|
+
output[portId] = {
|
|
28875
28895
|
type: "control-flow-excluded",
|
|
28876
28896
|
value: void 0
|
|
28877
28897
|
};
|
|
28878
28898
|
}
|
|
28879
28899
|
}
|
|
28880
|
-
|
|
28881
|
-
|
|
28882
|
-
|
|
28883
|
-
|
|
28884
|
-
type: "control-flow-excluded",
|
|
28885
|
-
value: void 0
|
|
28886
|
-
};
|
|
28887
|
-
}
|
|
28900
|
+
output["unmatched"] = matched ? {
|
|
28901
|
+
type: "control-flow-excluded",
|
|
28902
|
+
value: void 0
|
|
28903
|
+
} : getUnmatchedOutputValue();
|
|
28888
28904
|
return output;
|
|
28889
28905
|
}
|
|
28890
28906
|
getValueInputMode() {
|
|
28891
28907
|
return this.data.valueInputMode === "per-output" ? "per-output" : "shared";
|
|
28892
28908
|
}
|
|
28909
|
+
getExclusive() {
|
|
28910
|
+
return this.data.exclusive ?? this.defaultExclusive;
|
|
28911
|
+
}
|
|
28912
|
+
getMatchingOutputDescription(caseValue, title) {
|
|
28913
|
+
const condition = this.describeCaseMatch(caseValue);
|
|
28914
|
+
if (this.getReturnValueMode() === "true") {
|
|
28915
|
+
return `True if ${condition}.`;
|
|
28916
|
+
}
|
|
28917
|
+
if (this.getReturnValueMode() === "testValue") {
|
|
28918
|
+
return `The ${this.inputTitle} value passed through if ${condition}.`;
|
|
28919
|
+
}
|
|
28920
|
+
return this.getValueInputMode() === "shared" ? `The shared ${this.sharedCustomValueInputTitle} (or ${this.inputTitle} if it is unconnected) passed through if ${condition}.` : `The corresponding ${title} custom value (or ${this.inputTitle} if it is unconnected) passed through if ${condition}.`;
|
|
28921
|
+
}
|
|
28922
|
+
getUnmatchedOutputDescription() {
|
|
28923
|
+
const condition = this.describeNoCaseMatches();
|
|
28924
|
+
if (this.getReturnValueMode() === "true") {
|
|
28925
|
+
return `True if ${condition}.`;
|
|
28926
|
+
}
|
|
28927
|
+
if (this.getReturnValueMode() === "testValue") {
|
|
28928
|
+
return `The ${this.inputTitle} value passed through if ${condition}.`;
|
|
28929
|
+
}
|
|
28930
|
+
return this.getValueInputMode() === "shared" ? `The shared ${this.sharedCustomValueInputTitle} (or ${this.inputTitle} if it is unconnected) passed through if ${condition}.` : `The Unmatched custom value (or ${this.inputTitle} if it is unconnected) passed through if ${condition}.`;
|
|
28931
|
+
}
|
|
28893
28932
|
getCasePortIds() {
|
|
28894
28933
|
return resolveStoredOrderedPortIds(this.data.cases.length, this.data.casePortIds, {
|
|
28895
28934
|
kind: "prefix",
|
|
@@ -28904,17 +28943,182 @@ var MatchNodeImpl = class extends NodeImpl {
|
|
|
28904
28943
|
return `value-${portId}`;
|
|
28905
28944
|
}
|
|
28906
28945
|
};
|
|
28907
|
-
var matchNode = nodeDefinition(MatchNodeImpl, "Regex Match");
|
|
28908
28946
|
|
|
28909
|
-
// src/model/nodes/
|
|
28947
|
+
// src/model/nodes/MatchNode.ts
|
|
28948
|
+
var regexMatchLegacyDisplayName = "Regex Match (legacy)";
|
|
28949
|
+
var MatchNodeImpl = class extends MatchCaseNodeBase {
|
|
28950
|
+
caseEditorLabel = "Cases (regular expressions)";
|
|
28951
|
+
caseEditorPlaceholder = "Case (regular expression)";
|
|
28952
|
+
static create() {
|
|
28953
|
+
return {
|
|
28954
|
+
type: "match",
|
|
28955
|
+
title: regexMatchLegacyDisplayName,
|
|
28956
|
+
id: (0, import_non_secure19.nanoid)(),
|
|
28957
|
+
visualData: {
|
|
28958
|
+
x: 0,
|
|
28959
|
+
y: 0,
|
|
28960
|
+
width: 250
|
|
28961
|
+
},
|
|
28962
|
+
data: {
|
|
28963
|
+
cases: ["YES", "NO"],
|
|
28964
|
+
casePortIds: [(0, import_non_secure19.nanoid)(), (0, import_non_secure19.nanoid)()],
|
|
28965
|
+
valueInputMode: "shared"
|
|
28966
|
+
}
|
|
28967
|
+
};
|
|
28968
|
+
}
|
|
28969
|
+
matchesCase(input, caseValue) {
|
|
28970
|
+
return new RegExp(caseValue).test(input);
|
|
28971
|
+
}
|
|
28972
|
+
describeCaseMatch(caseValue) {
|
|
28973
|
+
return `/${caseValue}/ matches the Test value`;
|
|
28974
|
+
}
|
|
28975
|
+
describeNoCaseMatches() {
|
|
28976
|
+
return "no regular expression matches the Test value";
|
|
28977
|
+
}
|
|
28978
|
+
static getUIData() {
|
|
28979
|
+
return {
|
|
28980
|
+
infoBoxBody: import_ts_dedent13.dedent`
|
|
28981
|
+
Legacy regex-only routing node. Existing graphs keep their current behavior.
|
|
28982
|
+
|
|
28983
|
+
For new graphs, use Match case. It supports exact plain-text cases by default and optional regular-expression matching.
|
|
28984
|
+
`,
|
|
28985
|
+
infoBoxTitle: `${regexMatchLegacyDisplayName} Node`,
|
|
28986
|
+
contextMenuTitle: regexMatchLegacyDisplayName,
|
|
28987
|
+
group: ["Logic"]
|
|
28988
|
+
};
|
|
28989
|
+
}
|
|
28990
|
+
};
|
|
28991
|
+
var matchNode = nodeDefinition(MatchNodeImpl, regexMatchLegacyDisplayName);
|
|
28992
|
+
|
|
28993
|
+
// src/model/nodes/MatchCaseNode.ts
|
|
28910
28994
|
var import_non_secure20 = require("nanoid/non-secure");
|
|
28911
28995
|
var import_ts_dedent14 = require("ts-dedent");
|
|
28996
|
+
var MatchCaseNodeImpl = class extends MatchCaseNodeBase {
|
|
28997
|
+
caseEditorLabel = "Cases";
|
|
28998
|
+
caseEditorPlaceholder = "Case";
|
|
28999
|
+
casesEditorPlacement = "before-trigger";
|
|
29000
|
+
customCaseValuesEditorLabel = "";
|
|
29001
|
+
defaultExclusive = true;
|
|
29002
|
+
firstMatchingBodyValue = "First matching case";
|
|
29003
|
+
inputTitle = "Input";
|
|
29004
|
+
matchingCasesToTriggerOptions = [
|
|
29005
|
+
{ value: true, label: "First matching case" },
|
|
29006
|
+
{ value: false, label: "All matching cases" }
|
|
29007
|
+
];
|
|
29008
|
+
sharedCustomValueInputTitle = "Return value";
|
|
29009
|
+
triggerEditorLabel = "Trigger";
|
|
29010
|
+
static create() {
|
|
29011
|
+
return {
|
|
29012
|
+
type: "matchCase",
|
|
29013
|
+
title: "Match case",
|
|
29014
|
+
id: (0, import_non_secure20.nanoid)(),
|
|
29015
|
+
visualData: {
|
|
29016
|
+
x: 0,
|
|
29017
|
+
y: 0,
|
|
29018
|
+
width: 250
|
|
29019
|
+
},
|
|
29020
|
+
data: {
|
|
29021
|
+
cases: ["YES", "NO"],
|
|
29022
|
+
casePortIds: [(0, import_non_secure20.nanoid)(), (0, import_non_secure20.nanoid)()],
|
|
29023
|
+
valueInputMode: "shared",
|
|
29024
|
+
matchMode: "plainText",
|
|
29025
|
+
caseSensitive: true,
|
|
29026
|
+
exclusive: true,
|
|
29027
|
+
returnValue: "true"
|
|
29028
|
+
}
|
|
29029
|
+
};
|
|
29030
|
+
}
|
|
29031
|
+
matchesCase(input, caseValue) {
|
|
29032
|
+
if (this.getMatchMode() === "regex") {
|
|
29033
|
+
return new RegExp(caseValue).test(input);
|
|
29034
|
+
}
|
|
29035
|
+
if (this.getCaseSensitive()) {
|
|
29036
|
+
return input === caseValue;
|
|
29037
|
+
}
|
|
29038
|
+
return input.toLowerCase() === caseValue.toLowerCase();
|
|
29039
|
+
}
|
|
29040
|
+
describeCaseMatch(caseValue) {
|
|
29041
|
+
return this.getMatchMode() === "plainText" ? this.getCaseSensitive() ? `the Input value exactly equals ${JSON.stringify(caseValue)}` : `the Input value equals ${JSON.stringify(caseValue)} without regard to case` : `/${caseValue}/ matches the Input value`;
|
|
29042
|
+
}
|
|
29043
|
+
describeNoCaseMatches() {
|
|
29044
|
+
if (this.getMatchMode() === "regex") {
|
|
29045
|
+
return "no regular expression matches the Input value";
|
|
29046
|
+
}
|
|
29047
|
+
return this.getCaseSensitive() ? "no case exactly equals the Input value" : "no case equals the Input value without regard to case";
|
|
29048
|
+
}
|
|
29049
|
+
getReturnValueMode() {
|
|
29050
|
+
return this.data.returnValue === "testValue" || this.data.returnValue === "custom" ? this.data.returnValue : "true";
|
|
29051
|
+
}
|
|
29052
|
+
getEditorsAfterTrigger() {
|
|
29053
|
+
return [
|
|
29054
|
+
{
|
|
29055
|
+
type: "segmented",
|
|
29056
|
+
label: "Output value",
|
|
29057
|
+
dataKey: "returnValue",
|
|
29058
|
+
defaultValue: "true",
|
|
29059
|
+
options: [
|
|
29060
|
+
{ value: "true", label: "True" },
|
|
29061
|
+
{ value: "testValue", label: "Input value" },
|
|
29062
|
+
{ value: "custom", label: "Custom" }
|
|
29063
|
+
]
|
|
29064
|
+
}
|
|
29065
|
+
];
|
|
29066
|
+
}
|
|
29067
|
+
shouldHideCustomCaseValues(data) {
|
|
29068
|
+
return (data.returnValue ?? "true") !== "custom";
|
|
29069
|
+
}
|
|
29070
|
+
getEditors() {
|
|
29071
|
+
return [
|
|
29072
|
+
{
|
|
29073
|
+
type: "segmented",
|
|
29074
|
+
label: "Match mode",
|
|
29075
|
+
dataKey: "matchMode",
|
|
29076
|
+
defaultValue: "plainText",
|
|
29077
|
+
options: [
|
|
29078
|
+
{ value: "plainText", label: "Plain text" },
|
|
29079
|
+
{ value: "regex", label: "Regular expression" }
|
|
29080
|
+
]
|
|
29081
|
+
},
|
|
29082
|
+
{
|
|
29083
|
+
type: "toggle",
|
|
29084
|
+
label: "Case sensitive",
|
|
29085
|
+
dataKey: "caseSensitive",
|
|
29086
|
+
defaultValue: true,
|
|
29087
|
+
hideIf: (data) => data.matchMode === "regex"
|
|
29088
|
+
},
|
|
29089
|
+
...super.getEditors()
|
|
29090
|
+
];
|
|
29091
|
+
}
|
|
29092
|
+
static getUIData() {
|
|
29093
|
+
return {
|
|
29094
|
+
infoBoxBody: import_ts_dedent14.dedent`
|
|
29095
|
+
Routes an Input value to matching case outputs. Plain text cases use exact, case-sensitive equality by default; turn off Case sensitive to ignore letter case. Choose Regular expression to use the existing JavaScript RegExp pattern behavior; the Case sensitive switch does not apply in that mode.
|
|
29096
|
+
|
|
29097
|
+
Choose First matching case to trigger only the first matching output, or All matching cases to trigger every matching output. Active outputs return True by default. They can instead return the Input value, or a custom value supplied through one shared Return value input or separate Return values inputs for every case and Unmatched.
|
|
29098
|
+
`,
|
|
29099
|
+
infoBoxTitle: "Match case Node",
|
|
29100
|
+
contextMenuTitle: "Match case",
|
|
29101
|
+
group: ["Logic"]
|
|
29102
|
+
};
|
|
29103
|
+
}
|
|
29104
|
+
getMatchMode() {
|
|
29105
|
+
return this.data.matchMode === "regex" ? "regex" : "plainText";
|
|
29106
|
+
}
|
|
29107
|
+
getCaseSensitive() {
|
|
29108
|
+
return this.data.caseSensitive !== false;
|
|
29109
|
+
}
|
|
29110
|
+
};
|
|
29111
|
+
var matchCaseNode = nodeDefinition(MatchCaseNodeImpl, "Match case");
|
|
29112
|
+
|
|
29113
|
+
// src/model/nodes/IfNode.ts
|
|
29114
|
+
var import_non_secure21 = require("nanoid/non-secure");
|
|
29115
|
+
var import_ts_dedent15 = require("ts-dedent");
|
|
28912
29116
|
var IfNodeImpl = class extends NodeImpl {
|
|
28913
29117
|
static create = () => {
|
|
28914
29118
|
const chartNode = {
|
|
28915
29119
|
type: "if",
|
|
28916
29120
|
title: "If",
|
|
28917
|
-
id: (0,
|
|
29121
|
+
id: (0, import_non_secure21.nanoid)(),
|
|
28918
29122
|
data: {
|
|
28919
29123
|
// Legacy behavior is false
|
|
28920
29124
|
unconnectedControlFlowExcluded: true
|
|
@@ -28961,7 +29165,7 @@ var IfNodeImpl = class extends NodeImpl {
|
|
|
28961
29165
|
}
|
|
28962
29166
|
static getUIData() {
|
|
28963
29167
|
return {
|
|
28964
|
-
infoBoxBody:
|
|
29168
|
+
infoBoxBody: import_ts_dedent15.dedent`
|
|
28965
29169
|
Takes in a condition and a value. If the condition is truthy, the value is passed through the True port, and the False port is not ran.
|
|
28966
29170
|
If the condition is falsy, the value is passed through the False port, and the True port is not ran.
|
|
28967
29171
|
`,
|
|
@@ -29031,8 +29235,8 @@ var IfNodeImpl = class extends NodeImpl {
|
|
|
29031
29235
|
var ifNode = nodeDefinition(IfNodeImpl, "If");
|
|
29032
29236
|
|
|
29033
29237
|
// src/model/nodes/ReadDirectoryNode.ts
|
|
29034
|
-
var
|
|
29035
|
-
var
|
|
29238
|
+
var import_non_secure22 = require("nanoid/non-secure");
|
|
29239
|
+
var import_ts_dedent16 = require("ts-dedent");
|
|
29036
29240
|
|
|
29037
29241
|
// src/utils/paths.ts
|
|
29038
29242
|
function createTreeFromPaths(paths, rootPath) {
|
|
@@ -29107,7 +29311,7 @@ function createTreeFromPaths(paths, rootPath) {
|
|
|
29107
29311
|
var ReadDirectoryNodeImpl = class extends NodeImpl {
|
|
29108
29312
|
static create() {
|
|
29109
29313
|
return {
|
|
29110
|
-
id: (0,
|
|
29314
|
+
id: (0, import_non_secure22.nanoid)(),
|
|
29111
29315
|
type: "readDirectory",
|
|
29112
29316
|
title: "Read Directory",
|
|
29113
29317
|
visualData: { x: 0, y: 0 },
|
|
@@ -29196,7 +29400,7 @@ var ReadDirectoryNodeImpl = class extends NodeImpl {
|
|
|
29196
29400
|
];
|
|
29197
29401
|
}
|
|
29198
29402
|
getBody() {
|
|
29199
|
-
return
|
|
29403
|
+
return import_ts_dedent16.dedent`
|
|
29200
29404
|
Path: ${this.data.usePathInput ? "(Input)" : this.data.path}
|
|
29201
29405
|
Recursive: ${this.data.useRecursiveInput ? "(Input)" : this.data.recursive}
|
|
29202
29406
|
Include Directories: ${this.data.useIncludeDirectoriesInput ? "(Input)" : this.data.includeDirectories}
|
|
@@ -29206,7 +29410,7 @@ var ReadDirectoryNodeImpl = class extends NodeImpl {
|
|
|
29206
29410
|
}
|
|
29207
29411
|
static getUIData() {
|
|
29208
29412
|
return {
|
|
29209
|
-
infoBoxBody:
|
|
29413
|
+
infoBoxBody: import_ts_dedent16.dedent`
|
|
29210
29414
|
Reads the contents of the specified directory and outputs:
|
|
29211
29415
|
1. An array of filenames
|
|
29212
29416
|
2. The root path of the search
|
|
@@ -29262,12 +29466,12 @@ var ReadDirectoryNodeImpl = class extends NodeImpl {
|
|
|
29262
29466
|
var readDirectoryNode = nodeDefinition(ReadDirectoryNodeImpl, "Read Directory");
|
|
29263
29467
|
|
|
29264
29468
|
// src/model/nodes/ReadFileNode.ts
|
|
29265
|
-
var
|
|
29266
|
-
var
|
|
29469
|
+
var import_non_secure23 = require("nanoid/non-secure");
|
|
29470
|
+
var import_ts_dedent17 = require("ts-dedent");
|
|
29267
29471
|
var ReadFileNodeImpl = class extends NodeImpl {
|
|
29268
29472
|
static create() {
|
|
29269
29473
|
return {
|
|
29270
|
-
id: (0,
|
|
29474
|
+
id: (0, import_non_secure23.nanoid)(),
|
|
29271
29475
|
type: "readFile",
|
|
29272
29476
|
title: "Read File",
|
|
29273
29477
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -29302,7 +29506,7 @@ var ReadFileNodeImpl = class extends NodeImpl {
|
|
|
29302
29506
|
}
|
|
29303
29507
|
static getUIData() {
|
|
29304
29508
|
return {
|
|
29305
|
-
infoBoxBody:
|
|
29509
|
+
infoBoxBody: import_ts_dedent17.dedent`
|
|
29306
29510
|
Reads the contents of the specified file and outputs it as a string.
|
|
29307
29511
|
`,
|
|
29308
29512
|
infoBoxTitle: "Read File Node",
|
|
@@ -29331,7 +29535,7 @@ var ReadFileNodeImpl = class extends NodeImpl {
|
|
|
29331
29535
|
];
|
|
29332
29536
|
}
|
|
29333
29537
|
getBody() {
|
|
29334
|
-
return
|
|
29538
|
+
return import_ts_dedent17.dedent`
|
|
29335
29539
|
${this.data.asBinary ? "Read as Binary" : "Read as Text"}
|
|
29336
29540
|
${this.data.usePathInput ? "" : `Path: ${this.data.path}`}
|
|
29337
29541
|
`;
|
|
@@ -29369,14 +29573,14 @@ var ReadFileNodeImpl = class extends NodeImpl {
|
|
|
29369
29573
|
var readFileNode = nodeDefinition(ReadFileNodeImpl, "Read File");
|
|
29370
29574
|
|
|
29371
29575
|
// src/model/nodes/IfElseNode.ts
|
|
29372
|
-
var
|
|
29373
|
-
var
|
|
29576
|
+
var import_non_secure24 = require("nanoid/non-secure");
|
|
29577
|
+
var import_ts_dedent18 = require("ts-dedent");
|
|
29374
29578
|
var IfElseNodeImpl = class extends NodeImpl {
|
|
29375
29579
|
static create = () => {
|
|
29376
29580
|
const chartNode = {
|
|
29377
29581
|
type: "ifElse",
|
|
29378
29582
|
title: "If/Else",
|
|
29379
|
-
id: (0,
|
|
29583
|
+
id: (0, import_non_secure24.nanoid)(),
|
|
29380
29584
|
data: {
|
|
29381
29585
|
// Legacy behavior is false
|
|
29382
29586
|
unconnectedControlFlowExcluded: true
|
|
@@ -29423,7 +29627,7 @@ var IfElseNodeImpl = class extends NodeImpl {
|
|
|
29423
29627
|
}
|
|
29424
29628
|
static getUIData() {
|
|
29425
29629
|
return {
|
|
29426
|
-
infoBoxBody:
|
|
29630
|
+
infoBoxBody: import_ts_dedent18.dedent`
|
|
29427
29631
|
Takes in three inputs: a condition, a true value, and a false value. If the condition is truthy, the true value is passed through the output port. If the condition is not truthy, the false value is passed through the output port.
|
|
29428
29632
|
|
|
29429
29633
|
This node can "consume" a \`Not Ran\` to continue a graph from that point.
|
|
@@ -29502,14 +29706,14 @@ var IfElseNodeImpl = class extends NodeImpl {
|
|
|
29502
29706
|
var ifElseNode = nodeDefinition(IfElseNodeImpl, "If/Else");
|
|
29503
29707
|
|
|
29504
29708
|
// src/model/nodes/ChunkNode.ts
|
|
29505
|
-
var
|
|
29506
|
-
var
|
|
29709
|
+
var import_non_secure25 = require("nanoid/non-secure");
|
|
29710
|
+
var import_ts_dedent19 = require("ts-dedent");
|
|
29507
29711
|
var ChunkNodeImpl = class extends NodeImpl {
|
|
29508
29712
|
static create() {
|
|
29509
29713
|
const chartNode = {
|
|
29510
29714
|
type: "chunk",
|
|
29511
29715
|
title: "Chunk",
|
|
29512
|
-
id: (0,
|
|
29716
|
+
id: (0, import_non_secure25.nanoid)(),
|
|
29513
29717
|
visualData: {
|
|
29514
29718
|
x: 0,
|
|
29515
29719
|
y: 0,
|
|
@@ -29598,7 +29802,7 @@ var ChunkNodeImpl = class extends NodeImpl {
|
|
|
29598
29802
|
];
|
|
29599
29803
|
}
|
|
29600
29804
|
getBody() {
|
|
29601
|
-
return
|
|
29805
|
+
return import_ts_dedent19.dedent`
|
|
29602
29806
|
Model: ${this.data.model}
|
|
29603
29807
|
Token Count: ${this.data.numTokensPerChunk.toLocaleString()}
|
|
29604
29808
|
${this.data.overlap ? `Overlap: ${this.data.overlap}%` : ""}
|
|
@@ -29606,7 +29810,7 @@ var ChunkNodeImpl = class extends NodeImpl {
|
|
|
29606
29810
|
}
|
|
29607
29811
|
static getUIData() {
|
|
29608
29812
|
return {
|
|
29609
|
-
infoBoxBody:
|
|
29813
|
+
infoBoxBody: import_ts_dedent19.dedent`
|
|
29610
29814
|
Splits the input text into an array of chunks based on an approximate GPT token count per chunk.
|
|
29611
29815
|
|
|
29612
29816
|
The "overlap" setting allows you to partially overlap the chunks for redundancy.
|
|
@@ -29672,14 +29876,14 @@ async function chunkStringByTokenCount(tokenizer, tokenizerInfo, input, targetTo
|
|
|
29672
29876
|
}
|
|
29673
29877
|
|
|
29674
29878
|
// src/model/nodes/GraphInputNode.ts
|
|
29675
|
-
var
|
|
29676
|
-
var
|
|
29879
|
+
var import_non_secure26 = require("nanoid/non-secure");
|
|
29880
|
+
var import_ts_dedent20 = require("ts-dedent");
|
|
29677
29881
|
var GraphInputNodeImpl = class extends NodeImpl {
|
|
29678
29882
|
static create() {
|
|
29679
29883
|
const chartNode = {
|
|
29680
29884
|
type: "graphInput",
|
|
29681
29885
|
title: "Graph Input",
|
|
29682
|
-
id: (0,
|
|
29886
|
+
id: (0, import_non_secure26.nanoid)(),
|
|
29683
29887
|
visualData: {
|
|
29684
29888
|
x: 0,
|
|
29685
29889
|
y: 0,
|
|
@@ -29754,7 +29958,7 @@ var GraphInputNodeImpl = class extends NodeImpl {
|
|
|
29754
29958
|
];
|
|
29755
29959
|
}
|
|
29756
29960
|
getBody() {
|
|
29757
|
-
return
|
|
29961
|
+
return import_ts_dedent20.dedent`
|
|
29758
29962
|
${this.data.id}
|
|
29759
29963
|
Type: ${this.data.dataType}
|
|
29760
29964
|
${this.data.defaultValue == null ? "" : `Default: ${this.data.defaultValue}`}
|
|
@@ -29762,7 +29966,7 @@ var GraphInputNodeImpl = class extends NodeImpl {
|
|
|
29762
29966
|
}
|
|
29763
29967
|
static getUIData() {
|
|
29764
29968
|
return {
|
|
29765
|
-
infoBoxBody:
|
|
29969
|
+
infoBoxBody: import_ts_dedent20.dedent`
|
|
29766
29970
|
Defines an input for the graph which can be passed in when the graph is called, or defines one of the input ports when the graph is a subgraph.
|
|
29767
29971
|
`,
|
|
29768
29972
|
infoBoxTitle: "Graph Input Node",
|
|
@@ -29792,14 +29996,14 @@ var GraphInputNodeImpl = class extends NodeImpl {
|
|
|
29792
29996
|
var graphInputNode = nodeDefinition(GraphInputNodeImpl, "Graph Input");
|
|
29793
29997
|
|
|
29794
29998
|
// src/model/nodes/SubGraphNode.ts
|
|
29795
|
-
var
|
|
29796
|
-
var
|
|
29999
|
+
var import_non_secure27 = require("nanoid/non-secure");
|
|
30000
|
+
var import_ts_dedent21 = require("ts-dedent");
|
|
29797
30001
|
var SubGraphNodeImpl = class extends NodeImpl {
|
|
29798
30002
|
static create() {
|
|
29799
30003
|
const chartNode = {
|
|
29800
30004
|
type: "subGraph",
|
|
29801
30005
|
title: "Subgraph",
|
|
29802
|
-
id: (0,
|
|
30006
|
+
id: (0, import_non_secure27.nanoid)(),
|
|
29803
30007
|
visualData: {
|
|
29804
30008
|
x: 0,
|
|
29805
30009
|
y: 0,
|
|
@@ -29875,7 +30079,7 @@ var SubGraphNodeImpl = class extends NodeImpl {
|
|
|
29875
30079
|
}
|
|
29876
30080
|
static getUIData() {
|
|
29877
30081
|
return {
|
|
29878
|
-
infoBoxBody:
|
|
30082
|
+
infoBoxBody: import_ts_dedent21.dedent`
|
|
29879
30083
|
Executes another graph. Inputs and outputs are defined by Graph Input and Graph Output nodes within the subgraph.
|
|
29880
30084
|
`,
|
|
29881
30085
|
infoBoxTitle: "Subgraph Node",
|
|
@@ -29980,9 +30184,9 @@ function buildOptimizedSubgraphOutputs(boundary, requestedOutputIds, graphOutput
|
|
|
29980
30184
|
}
|
|
29981
30185
|
|
|
29982
30186
|
// src/model/nodes/ArrayNode.ts
|
|
29983
|
-
var
|
|
30187
|
+
var import_non_secure28 = require("nanoid/non-secure");
|
|
29984
30188
|
var import_lodash_es7 = require("lodash");
|
|
29985
|
-
var
|
|
30189
|
+
var import_ts_dedent22 = require("ts-dedent");
|
|
29986
30190
|
|
|
29987
30191
|
// src/model/nodes/variadicPortIndex.ts
|
|
29988
30192
|
function getHighestVariadicPortIndex(connections, inputNodeId, prefix, policy) {
|
|
@@ -30024,7 +30228,7 @@ var ArrayNodeImpl = class extends NodeImpl {
|
|
|
30024
30228
|
const chartNode = {
|
|
30025
30229
|
type: "array",
|
|
30026
30230
|
title: "Array",
|
|
30027
|
-
id: (0,
|
|
30231
|
+
id: (0, import_non_secure28.nanoid)(),
|
|
30028
30232
|
visualData: {
|
|
30029
30233
|
x: 0,
|
|
30030
30234
|
y: 0,
|
|
@@ -30084,7 +30288,7 @@ var ArrayNodeImpl = class extends NodeImpl {
|
|
|
30084
30288
|
}
|
|
30085
30289
|
static getUIData() {
|
|
30086
30290
|
return {
|
|
30087
|
-
infoBoxBody:
|
|
30291
|
+
infoBoxBody: import_ts_dedent22.dedent`
|
|
30088
30292
|
Creates an array from the input values. By default, flattens any arrays which are inputs into a single array. Can be configured to keep the arrays separate, or deeply flatten arrays.
|
|
30089
30293
|
|
|
30090
30294
|
Useful for both creating and merging arrays.
|
|
@@ -30097,7 +30301,7 @@ var ArrayNodeImpl = class extends NodeImpl {
|
|
|
30097
30301
|
};
|
|
30098
30302
|
}
|
|
30099
30303
|
getBody() {
|
|
30100
|
-
return
|
|
30304
|
+
return import_ts_dedent22.dedent`
|
|
30101
30305
|
${this.data.flatten ? this.data.flattenDeep ? "Flatten (Deep)" : "Flatten" : "No Flatten"}
|
|
30102
30306
|
`;
|
|
30103
30307
|
}
|
|
@@ -30141,14 +30345,14 @@ var ArrayNodeImpl = class extends NodeImpl {
|
|
|
30141
30345
|
var arrayNode = nodeDefinition(ArrayNodeImpl, "Array");
|
|
30142
30346
|
|
|
30143
30347
|
// src/model/nodes/ExtractJsonNode.ts
|
|
30144
|
-
var
|
|
30145
|
-
var
|
|
30348
|
+
var import_non_secure29 = require("nanoid/non-secure");
|
|
30349
|
+
var import_ts_dedent23 = require("ts-dedent");
|
|
30146
30350
|
var ExtractJsonNodeImpl = class extends NodeImpl {
|
|
30147
30351
|
static create() {
|
|
30148
30352
|
const chartNode = {
|
|
30149
30353
|
type: "extractJson",
|
|
30150
30354
|
title: "Extract JSON",
|
|
30151
|
-
id: (0,
|
|
30355
|
+
id: (0, import_non_secure29.nanoid)(),
|
|
30152
30356
|
visualData: {
|
|
30153
30357
|
x: 0,
|
|
30154
30358
|
y: 0,
|
|
@@ -30185,7 +30389,7 @@ var ExtractJsonNodeImpl = class extends NodeImpl {
|
|
|
30185
30389
|
}
|
|
30186
30390
|
static getUIData() {
|
|
30187
30391
|
return {
|
|
30188
|
-
infoBoxBody:
|
|
30392
|
+
infoBoxBody: import_ts_dedent23.dedent`
|
|
30189
30393
|
Finds and parses the first JSON object in input text, or passes through an already-structured input object.
|
|
30190
30394
|
|
|
30191
30395
|
Outputs the parsed or passed-through object.
|
|
@@ -30265,15 +30469,15 @@ function createMatchedOutput(value) {
|
|
|
30265
30469
|
}
|
|
30266
30470
|
|
|
30267
30471
|
// src/model/nodes/AssemblePromptNode.ts
|
|
30268
|
-
var
|
|
30472
|
+
var import_non_secure30 = require("nanoid/non-secure");
|
|
30269
30473
|
var import_lodash_es8 = require("lodash");
|
|
30270
|
-
var
|
|
30474
|
+
var import_ts_dedent24 = require("ts-dedent");
|
|
30271
30475
|
var AssemblePromptNodeImpl = class extends NodeImpl {
|
|
30272
30476
|
static create() {
|
|
30273
30477
|
const chartNode = {
|
|
30274
30478
|
type: "assemblePrompt",
|
|
30275
30479
|
title: "Assemble Prompt",
|
|
30276
|
-
id: (0,
|
|
30480
|
+
id: (0, import_non_secure30.nanoid)(),
|
|
30277
30481
|
visualData: {
|
|
30278
30482
|
x: 0,
|
|
30279
30483
|
y: 0,
|
|
@@ -30325,7 +30529,7 @@ var AssemblePromptNodeImpl = class extends NodeImpl {
|
|
|
30325
30529
|
}
|
|
30326
30530
|
static getUIData() {
|
|
30327
30531
|
return {
|
|
30328
|
-
infoBoxBody:
|
|
30532
|
+
infoBoxBody: import_ts_dedent24.dedent`
|
|
30329
30533
|
Assembles an array of chat messages for use with a Chat node. The inputs can be strings or chat messages.
|
|
30330
30534
|
|
|
30331
30535
|
The number of inputs is dynamic based on the number of connections.
|
|
@@ -30402,15 +30606,15 @@ var AssemblePromptNodeImpl = class extends NodeImpl {
|
|
|
30402
30606
|
var assemblePromptNode = nodeDefinition(AssemblePromptNodeImpl, "Assemble Prompt");
|
|
30403
30607
|
|
|
30404
30608
|
// src/model/nodes/ExtractYamlNode.ts
|
|
30405
|
-
var
|
|
30609
|
+
var import_non_secure31 = require("nanoid/non-secure");
|
|
30406
30610
|
var import_yaml = __toESM(require("yaml"), 1);
|
|
30407
|
-
var
|
|
30611
|
+
var import_ts_dedent25 = require("ts-dedent");
|
|
30408
30612
|
var ExtractYamlNodeImpl = class extends NodeImpl {
|
|
30409
30613
|
static create() {
|
|
30410
30614
|
const chartNode = {
|
|
30411
30615
|
type: "extractYaml",
|
|
30412
30616
|
title: "Extract YAML",
|
|
30413
|
-
id: (0,
|
|
30617
|
+
id: (0, import_non_secure31.nanoid)(),
|
|
30414
30618
|
visualData: {
|
|
30415
30619
|
x: 0,
|
|
30416
30620
|
y: 0,
|
|
@@ -30490,14 +30694,14 @@ var ExtractYamlNodeImpl = class extends NodeImpl {
|
|
|
30490
30694
|
];
|
|
30491
30695
|
}
|
|
30492
30696
|
getBody() {
|
|
30493
|
-
return
|
|
30697
|
+
return import_ts_dedent25.dedent`
|
|
30494
30698
|
Root: ${this.data.useRootPropertyNameInput ? "(Using Input)" : this.data.rootPropertyName}
|
|
30495
30699
|
${this.data.useObjectPathInput ? "Path: (Using Input)" : this.data.objectPath ? `Path: ${this.data.objectPath}` : ``}
|
|
30496
30700
|
`;
|
|
30497
30701
|
}
|
|
30498
30702
|
static getUIData() {
|
|
30499
30703
|
return {
|
|
30500
|
-
infoBoxBody:
|
|
30704
|
+
infoBoxBody: import_ts_dedent25.dedent`
|
|
30501
30705
|
Finds and parses a YAML object in the input text with a predefined root property name (configurable).
|
|
30502
30706
|
|
|
30503
30707
|
Defaults to \`yamlDocument\`, which means the input text must have a \`yamlDocument:\` root node somewhere in it. All indented text after that is considered part of the YAML.
|
|
@@ -30597,15 +30801,15 @@ var ExtractYamlNodeImpl = class extends NodeImpl {
|
|
|
30597
30801
|
var extractYamlNode = nodeDefinition(ExtractYamlNodeImpl, "Extract YAML");
|
|
30598
30802
|
|
|
30599
30803
|
// src/model/nodes/LoopControllerNode.ts
|
|
30600
|
-
var
|
|
30601
|
-
var
|
|
30804
|
+
var import_non_secure32 = require("nanoid/non-secure");
|
|
30805
|
+
var import_ts_dedent26 = require("ts-dedent");
|
|
30602
30806
|
var loopControllerLegacyDisplayName = "Loop Controller (legacy)";
|
|
30603
30807
|
var LoopControllerNodeImpl = class extends NodeImpl {
|
|
30604
30808
|
static create() {
|
|
30605
30809
|
const chartNode = {
|
|
30606
30810
|
type: "loopController",
|
|
30607
30811
|
title: loopControllerLegacyDisplayName,
|
|
30608
|
-
id: (0,
|
|
30812
|
+
id: (0, import_non_secure32.nanoid)(),
|
|
30609
30813
|
visualData: {
|
|
30610
30814
|
x: 0,
|
|
30611
30815
|
y: 0,
|
|
@@ -30711,7 +30915,7 @@ var LoopControllerNodeImpl = class extends NodeImpl {
|
|
|
30711
30915
|
}
|
|
30712
30916
|
static getUIData() {
|
|
30713
30917
|
return {
|
|
30714
|
-
infoBoxBody:
|
|
30918
|
+
infoBoxBody: import_ts_dedent26.dedent`
|
|
30715
30919
|
Defines the entry point for a loop. Values from inside the loop should be passed back through the "Input" ports, and their corresponding "Default" values can be specified on the input ports as well.
|
|
30716
30920
|
|
|
30717
30921
|
If the "continue" input is falsey, then the "break" output will run.
|
|
@@ -30783,14 +30987,14 @@ var LoopControllerNodeImpl = class extends NodeImpl {
|
|
|
30783
30987
|
var loopControllerNode = nodeDefinition(LoopControllerNodeImpl, loopControllerLegacyDisplayName);
|
|
30784
30988
|
|
|
30785
30989
|
// src/model/nodes/TrimChatMessagesNode.ts
|
|
30786
|
-
var
|
|
30787
|
-
var
|
|
30990
|
+
var import_non_secure33 = require("nanoid/non-secure");
|
|
30991
|
+
var import_ts_dedent27 = require("ts-dedent");
|
|
30788
30992
|
var TrimChatMessagesNodeImpl = class extends NodeImpl {
|
|
30789
30993
|
static create() {
|
|
30790
30994
|
const chartNode = {
|
|
30791
30995
|
type: "trimChatMessages",
|
|
30792
30996
|
title: "Trim Chat Messages",
|
|
30793
|
-
id: (0,
|
|
30997
|
+
id: (0, import_non_secure33.nanoid)(),
|
|
30794
30998
|
visualData: {
|
|
30795
30999
|
x: 0,
|
|
30796
31000
|
y: 0,
|
|
@@ -30853,14 +31057,14 @@ var TrimChatMessagesNodeImpl = class extends NodeImpl {
|
|
|
30853
31057
|
];
|
|
30854
31058
|
}
|
|
30855
31059
|
getBody() {
|
|
30856
|
-
return
|
|
31060
|
+
return import_ts_dedent27.dedent`
|
|
30857
31061
|
Max Token Count: ${this.data.useMaxTokenCountInput ? "(From Input)" : this.data.maxTokenCount}
|
|
30858
31062
|
Remove From Beginning: ${this.data.useRemoveFromBeginningInput ? "(From Input)" : this.data.removeFromBeginning ? "Yes" : "No"}
|
|
30859
31063
|
`;
|
|
30860
31064
|
}
|
|
30861
31065
|
static getUIData() {
|
|
30862
31066
|
return {
|
|
30863
|
-
infoBoxBody:
|
|
31067
|
+
infoBoxBody: import_ts_dedent27.dedent`
|
|
30864
31068
|
Takes an array of chat messages, and slices messages from the beginning or the end of the list until the total length of the messages is under the configured token length.
|
|
30865
31069
|
|
|
30866
31070
|
Useful for setting up infinite message chains that stay under the LLM context limit.
|
|
@@ -30898,13 +31102,13 @@ var TrimChatMessagesNodeImpl = class extends NodeImpl {
|
|
|
30898
31102
|
var trimChatMessagesNode = nodeDefinition(TrimChatMessagesNodeImpl, "Trim Chat Messages");
|
|
30899
31103
|
|
|
30900
31104
|
// src/model/nodes/ExternalCallNode.ts
|
|
30901
|
-
var
|
|
31105
|
+
var import_non_secure34 = require("nanoid/non-secure");
|
|
30902
31106
|
var import_lodash_es9 = require("lodash");
|
|
30903
|
-
var
|
|
31107
|
+
var import_ts_dedent28 = require("ts-dedent");
|
|
30904
31108
|
var ExternalCallNodeImpl = class extends NodeImpl {
|
|
30905
31109
|
static create() {
|
|
30906
31110
|
return {
|
|
30907
|
-
id: (0,
|
|
31111
|
+
id: (0, import_non_secure34.nanoid)(),
|
|
30908
31112
|
type: "externalCall",
|
|
30909
31113
|
title: "External Call",
|
|
30910
31114
|
visualData: { x: 0, y: 0, width: 150 },
|
|
@@ -30968,7 +31172,7 @@ var ExternalCallNodeImpl = class extends NodeImpl {
|
|
|
30968
31172
|
}
|
|
30969
31173
|
static getUIData() {
|
|
30970
31174
|
return {
|
|
30971
|
-
infoBoxBody:
|
|
31175
|
+
infoBoxBody: import_ts_dedent28.dedent`
|
|
30972
31176
|
Provides a way to call into the host project from inside a Rivet graph when Rivet graphs are integrated into another project.
|
|
30973
31177
|
`,
|
|
30974
31178
|
infoBoxTitle: "External Call Node",
|
|
@@ -31047,8 +31251,8 @@ var ExternalCallNodeImpl = class extends NodeImpl {
|
|
|
31047
31251
|
var externalCallNode = nodeDefinition(ExternalCallNodeImpl, "External Call");
|
|
31048
31252
|
|
|
31049
31253
|
// src/model/nodes/ExtractObjectPathNode.ts
|
|
31050
|
-
var
|
|
31051
|
-
var
|
|
31254
|
+
var import_non_secure35 = require("nanoid/non-secure");
|
|
31255
|
+
var import_ts_dedent29 = require("ts-dedent");
|
|
31052
31256
|
var RESERVED_INPUT_IDS = /* @__PURE__ */ new Set(["object"]);
|
|
31053
31257
|
function getExtractObjectPathInterpolationInputNames(path) {
|
|
31054
31258
|
return extractInterpolationVariables(path).filter((inputName) => !RESERVED_INPUT_IDS.has(inputName));
|
|
@@ -31075,7 +31279,7 @@ var ExtractObjectPathNodeImpl = class extends NodeImpl {
|
|
|
31075
31279
|
const chartNode = {
|
|
31076
31280
|
type: "extractObjectPath",
|
|
31077
31281
|
title: "Extract Object Path",
|
|
31078
|
-
id: (0,
|
|
31282
|
+
id: (0, import_non_secure35.nanoid)(),
|
|
31079
31283
|
visualData: {
|
|
31080
31284
|
x: 0,
|
|
31081
31285
|
y: 0,
|
|
@@ -31152,7 +31356,7 @@ var ExtractObjectPathNodeImpl = class extends NodeImpl {
|
|
|
31152
31356
|
}
|
|
31153
31357
|
static getUIData() {
|
|
31154
31358
|
return {
|
|
31155
|
-
infoBoxBody:
|
|
31359
|
+
infoBoxBody: import_ts_dedent29.dedent`
|
|
31156
31360
|
Extracts the value at the specified path from the input value. The path uses JSONPath notation to navigate through the value.
|
|
31157
31361
|
`,
|
|
31158
31362
|
infoBoxTitle: "Extract Object Path Node",
|
|
@@ -31208,12 +31412,12 @@ var ExtractObjectPathNodeImpl = class extends NodeImpl {
|
|
|
31208
31412
|
var extractObjectPathNode = nodeDefinition(ExtractObjectPathNodeImpl, "Extract Object Path");
|
|
31209
31413
|
|
|
31210
31414
|
// src/model/nodes/RaiseEventNode.ts
|
|
31211
|
-
var
|
|
31212
|
-
var
|
|
31415
|
+
var import_non_secure36 = require("nanoid/non-secure");
|
|
31416
|
+
var import_ts_dedent30 = require("ts-dedent");
|
|
31213
31417
|
var RaiseEventNodeImpl = class extends NodeImpl {
|
|
31214
31418
|
static create() {
|
|
31215
31419
|
return {
|
|
31216
|
-
id: (0,
|
|
31420
|
+
id: (0, import_non_secure36.nanoid)(),
|
|
31217
31421
|
type: "raiseEvent",
|
|
31218
31422
|
title: "Raise Event",
|
|
31219
31423
|
visualData: { x: 0, y: 0, width: 150 },
|
|
@@ -31263,7 +31467,7 @@ var RaiseEventNodeImpl = class extends NodeImpl {
|
|
|
31263
31467
|
}
|
|
31264
31468
|
static getUIData() {
|
|
31265
31469
|
return {
|
|
31266
|
-
infoBoxBody:
|
|
31470
|
+
infoBoxBody: import_ts_dedent30.dedent`
|
|
31267
31471
|
Raises an event that the host project or a 'Wait For Event' node can listen for.
|
|
31268
31472
|
`,
|
|
31269
31473
|
infoBoxTitle: "Raise Event Node",
|
|
@@ -31283,11 +31487,11 @@ var RaiseEventNodeImpl = class extends NodeImpl {
|
|
|
31283
31487
|
var raiseEventNode = nodeDefinition(RaiseEventNodeImpl, "Raise Event");
|
|
31284
31488
|
|
|
31285
31489
|
// src/model/nodes/ReportProgressNode.ts
|
|
31286
|
-
var
|
|
31490
|
+
var import_non_secure37 = require("nanoid/non-secure");
|
|
31287
31491
|
var ReportProgressNodeImpl = class extends NodeImpl {
|
|
31288
31492
|
static create() {
|
|
31289
31493
|
return {
|
|
31290
|
-
id: (0,
|
|
31494
|
+
id: (0, import_non_secure37.nanoid)(),
|
|
31291
31495
|
type: "reportProgress",
|
|
31292
31496
|
title: "Report Progress",
|
|
31293
31497
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -31331,14 +31535,14 @@ var ReportProgressNodeImpl = class extends NodeImpl {
|
|
|
31331
31535
|
var reportProgressNode = nodeDefinition(ReportProgressNodeImpl, "Report Progress");
|
|
31332
31536
|
|
|
31333
31537
|
// src/model/nodes/ContextNode.ts
|
|
31334
|
-
var
|
|
31335
|
-
var
|
|
31538
|
+
var import_non_secure38 = require("nanoid/non-secure");
|
|
31539
|
+
var import_ts_dedent31 = require("ts-dedent");
|
|
31336
31540
|
var ContextNodeImpl = class extends NodeImpl {
|
|
31337
31541
|
static create() {
|
|
31338
31542
|
const chartNode = {
|
|
31339
31543
|
type: "context",
|
|
31340
31544
|
title: "Context",
|
|
31341
|
-
id: (0,
|
|
31545
|
+
id: (0, import_non_secure38.nanoid)(),
|
|
31342
31546
|
visualData: {
|
|
31343
31547
|
x: 0,
|
|
31344
31548
|
y: 0,
|
|
@@ -31387,14 +31591,14 @@ var ContextNodeImpl = class extends NodeImpl {
|
|
|
31387
31591
|
];
|
|
31388
31592
|
}
|
|
31389
31593
|
getBody() {
|
|
31390
|
-
return
|
|
31594
|
+
return import_ts_dedent31.dedent`
|
|
31391
31595
|
${this.data.id}
|
|
31392
31596
|
Type: ${this.data.dataType}
|
|
31393
31597
|
`;
|
|
31394
31598
|
}
|
|
31395
31599
|
static getUIData() {
|
|
31396
31600
|
return {
|
|
31397
|
-
infoBoxBody:
|
|
31601
|
+
infoBoxBody: import_ts_dedent31.dedent`
|
|
31398
31602
|
Retrieves a value from the graph's context using a configured id. The context serves as a "global graph input", allowing the same values to be accessible from any graph or subgraph.
|
|
31399
31603
|
`,
|
|
31400
31604
|
infoBoxTitle: "Context Node",
|
|
@@ -31473,10 +31677,10 @@ var GraphCallPathNodeImpl = class extends NodeImpl {
|
|
|
31473
31677
|
var graphCallPathNode = nodeDefinition(GraphCallPathNodeImpl, "Graph Call Path");
|
|
31474
31678
|
|
|
31475
31679
|
// src/model/nodes/CoalesceNode.ts
|
|
31476
|
-
var
|
|
31680
|
+
var import_ts_dedent32 = require("ts-dedent");
|
|
31477
31681
|
|
|
31478
31682
|
// src/model/nodes/CoalesceNodeBase.ts
|
|
31479
|
-
var
|
|
31683
|
+
var import_non_secure39 = require("nanoid/non-secure");
|
|
31480
31684
|
var INPUT_PORT_ID_PATTERN = /^input(\d+)$/;
|
|
31481
31685
|
var IGNORE_NULL_LABEL = "Ignore 'null'";
|
|
31482
31686
|
var IGNORE_UNDEFINED_LABEL = "Ignore 'undefined'";
|
|
@@ -31484,7 +31688,7 @@ function createCoalesceNode(type, title) {
|
|
|
31484
31688
|
return {
|
|
31485
31689
|
type,
|
|
31486
31690
|
title,
|
|
31487
|
-
id: (0,
|
|
31691
|
+
id: (0, import_non_secure39.nanoid)(),
|
|
31488
31692
|
data: {
|
|
31489
31693
|
ignoreNull: false,
|
|
31490
31694
|
ignoreUndefined: false
|
|
@@ -31606,8 +31810,8 @@ var CoalesceNodeImpl = class extends CoalesceNodeBase {
|
|
|
31606
31810
|
static create = () => createCoalesceNode("coalesce", coalesceLegacyDisplayName);
|
|
31607
31811
|
static getUIData() {
|
|
31608
31812
|
return {
|
|
31609
|
-
infoBoxBody:
|
|
31610
|
-
Legacy Coalesce node. Takes in any number of inputs and outputs the first value that is not "Not Ran". Useful for consolidating branches after a Match node.
|
|
31813
|
+
infoBoxBody: import_ts_dedent32.dedent`
|
|
31814
|
+
Legacy Coalesce node. Takes in any number of inputs and outputs the first value that is not "Not Ran". Useful for consolidating branches after a Match case node.
|
|
31611
31815
|
|
|
31612
31816
|
Its Conditional input can exclude the node itself. New graphs should use Coalesce instead, which has the same fallback behavior without that port.
|
|
31613
31817
|
`,
|
|
@@ -31620,14 +31824,14 @@ var CoalesceNodeImpl = class extends CoalesceNodeBase {
|
|
|
31620
31824
|
var coalesceNode = nodeDefinition(CoalesceNodeImpl, coalesceLegacyDisplayName);
|
|
31621
31825
|
|
|
31622
31826
|
// src/model/nodes/CoalesceNewNode.ts
|
|
31623
|
-
var
|
|
31827
|
+
var import_ts_dedent33 = require("ts-dedent");
|
|
31624
31828
|
var CoalesceNewNodeImpl = class extends CoalesceNodeBase {
|
|
31625
31829
|
includesLegacyConditionalInput = false;
|
|
31626
31830
|
static create = () => createCoalesceNode("coalesceNew", "Coalesce");
|
|
31627
31831
|
static getUIData() {
|
|
31628
31832
|
return {
|
|
31629
|
-
infoBoxBody:
|
|
31630
|
-
Takes in any number of inputs and outputs the first value that is not "Not Ran". Useful for consolidating branches after a Match node.
|
|
31833
|
+
infoBoxBody: import_ts_dedent33.dedent`
|
|
31834
|
+
Takes in any number of inputs and outputs the first value that is not "Not Ran". Useful for consolidating branches after a Match case node.
|
|
31631
31835
|
|
|
31632
31836
|
Null and undefined input values are emitted by default, but the node can be configured to skip either value and continue checking later inputs.
|
|
31633
31837
|
`,
|
|
@@ -31640,14 +31844,14 @@ var CoalesceNewNodeImpl = class extends CoalesceNodeBase {
|
|
|
31640
31844
|
var coalesceNewNode = nodeDefinition(CoalesceNewNodeImpl, "Coalesce");
|
|
31641
31845
|
|
|
31642
31846
|
// src/model/nodes/DidRunNode.ts
|
|
31643
|
-
var
|
|
31847
|
+
var import_non_secure40 = require("nanoid/non-secure");
|
|
31644
31848
|
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.';
|
|
31645
31849
|
var DidRunNodeImpl = class extends NodeImpl {
|
|
31646
31850
|
static create() {
|
|
31647
31851
|
return {
|
|
31648
31852
|
type: "didRun",
|
|
31649
31853
|
title: "Did Run",
|
|
31650
|
-
id: (0,
|
|
31854
|
+
id: (0, import_non_secure40.nanoid)(),
|
|
31651
31855
|
data: {},
|
|
31652
31856
|
visualData: {
|
|
31653
31857
|
x: 0,
|
|
@@ -31715,8 +31919,8 @@ var DidRunNodeImpl = class extends NodeImpl {
|
|
|
31715
31919
|
var didRunNode = nodeDefinition(DidRunNodeImpl, "Did Run");
|
|
31716
31920
|
|
|
31717
31921
|
// src/model/nodes/PassthroughNode.ts
|
|
31718
|
-
var
|
|
31719
|
-
var
|
|
31922
|
+
var import_non_secure41 = require("nanoid/non-secure");
|
|
31923
|
+
var import_ts_dedent34 = require("ts-dedent");
|
|
31720
31924
|
var INPUT_PORT_PATTERN2 = /^input(\d+)$/;
|
|
31721
31925
|
var OUTPUT_PORT_PATTERN2 = /^output(\d+)$/;
|
|
31722
31926
|
var MAX_PASSTHROUGH_PORT_INDEX = 1e4;
|
|
@@ -31739,7 +31943,7 @@ var PassthroughNodeImpl = class extends NodeImpl {
|
|
|
31739
31943
|
const chartNode = {
|
|
31740
31944
|
type: "passthrough",
|
|
31741
31945
|
title: "Passthrough",
|
|
31742
|
-
id: (0,
|
|
31946
|
+
id: (0, import_non_secure41.nanoid)(),
|
|
31743
31947
|
data: {},
|
|
31744
31948
|
visualData: {
|
|
31745
31949
|
x: 0,
|
|
@@ -31778,7 +31982,7 @@ var PassthroughNodeImpl = class extends NodeImpl {
|
|
|
31778
31982
|
}
|
|
31779
31983
|
static getUIData() {
|
|
31780
31984
|
return {
|
|
31781
|
-
infoBoxBody:
|
|
31985
|
+
infoBoxBody: import_ts_dedent34.dedent`
|
|
31782
31986
|
Simply passes the input value to the output without any modifications.
|
|
31783
31987
|
`,
|
|
31784
31988
|
infoBoxTitle: "Passthrough Node",
|
|
@@ -31800,8 +32004,8 @@ var PassthroughNodeImpl = class extends NodeImpl {
|
|
|
31800
32004
|
var passthroughNode = nodeDefinition(PassthroughNodeImpl, "Passthrough");
|
|
31801
32005
|
|
|
31802
32006
|
// src/model/nodes/DataBusNode.ts
|
|
31803
|
-
var
|
|
31804
|
-
var
|
|
32007
|
+
var import_non_secure42 = require("nanoid/non-secure");
|
|
32008
|
+
var import_ts_dedent35 = require("ts-dedent");
|
|
31805
32009
|
function getConnectedChannelIndices(connections, nodeId) {
|
|
31806
32010
|
const channelIndices = /* @__PURE__ */ new Set();
|
|
31807
32011
|
for (const connection of connections) {
|
|
@@ -31833,7 +32037,7 @@ var DataBusNodeImpl = class extends NodeImpl {
|
|
|
31833
32037
|
static create = () => ({
|
|
31834
32038
|
type: "dataBus",
|
|
31835
32039
|
title: "Data Bus",
|
|
31836
|
-
id: (0,
|
|
32040
|
+
id: (0, import_non_secure42.nanoid)(),
|
|
31837
32041
|
data: {},
|
|
31838
32042
|
visualData: {
|
|
31839
32043
|
x: 0,
|
|
@@ -31861,7 +32065,7 @@ var DataBusNodeImpl = class extends NodeImpl {
|
|
|
31861
32065
|
}
|
|
31862
32066
|
static getUIData() {
|
|
31863
32067
|
return {
|
|
31864
|
-
infoBoxBody:
|
|
32068
|
+
infoBoxBody: import_ts_dedent35.dedent`
|
|
31865
32069
|
Organizes independent connections in a compact rail at the top of the
|
|
31866
32070
|
canvas. Data Bus channels are wiring topology, not executable nodes.
|
|
31867
32071
|
`,
|
|
@@ -31877,13 +32081,13 @@ var DataBusNodeImpl = class extends NodeImpl {
|
|
|
31877
32081
|
var dataBusNode = nodeDefinition(DataBusNodeImpl, "Data Bus");
|
|
31878
32082
|
|
|
31879
32083
|
// src/model/nodes/StartBackgroundBranchNode.ts
|
|
31880
|
-
var
|
|
31881
|
-
var
|
|
32084
|
+
var import_non_secure43 = require("nanoid/non-secure");
|
|
32085
|
+
var import_ts_dedent36 = require("ts-dedent");
|
|
31882
32086
|
var StartBackgroundBranchNodeImpl = class extends NodeImpl {
|
|
31883
32087
|
static create = () => ({
|
|
31884
32088
|
type: "startBackgroundBranch",
|
|
31885
32089
|
title: "Start Async Branch",
|
|
31886
|
-
id: (0,
|
|
32090
|
+
id: (0, import_non_secure43.nanoid)(),
|
|
31887
32091
|
data: {},
|
|
31888
32092
|
visualData: {
|
|
31889
32093
|
x: 0,
|
|
@@ -31909,7 +32113,7 @@ var StartBackgroundBranchNodeImpl = class extends NodeImpl {
|
|
|
31909
32113
|
}
|
|
31910
32114
|
static getUIData() {
|
|
31911
32115
|
return {
|
|
31912
|
-
infoBoxBody:
|
|
32116
|
+
infoBoxBody: import_ts_dedent36.dedent`
|
|
31913
32117
|
Starts its downstream branch asynchronously. The foreground graph continues immediately, while the root run waits for the async branch before it ends.
|
|
31914
32118
|
`,
|
|
31915
32119
|
infoBoxTitle: "Start Async Branch Node",
|
|
@@ -31934,8 +32138,8 @@ var StartBackgroundBranchNodeImpl = class extends NodeImpl {
|
|
|
31934
32138
|
var startBackgroundBranchNode = nodeDefinition(StartBackgroundBranchNodeImpl, "Start Async Branch");
|
|
31935
32139
|
|
|
31936
32140
|
// src/model/nodes/WatchStreamingOutputNode.ts
|
|
31937
|
-
var
|
|
31938
|
-
var
|
|
32141
|
+
var import_non_secure44 = require("nanoid/non-secure");
|
|
32142
|
+
var import_ts_dedent37 = require("ts-dedent");
|
|
31939
32143
|
var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
31940
32144
|
static create() {
|
|
31941
32145
|
return {
|
|
@@ -31947,7 +32151,7 @@ var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
|
31947
32151
|
maxQueuedUpdates: streamingOutputWatchDefaults.maxQueuedUpdates,
|
|
31948
32152
|
queueOverflowBehavior: streamingOutputWatchDefaults.queueOverflowBehavior
|
|
31949
32153
|
},
|
|
31950
|
-
id: (0,
|
|
32154
|
+
id: (0, import_non_secure44.nanoid)(),
|
|
31951
32155
|
title: "Watch Streaming Output",
|
|
31952
32156
|
type: "watchStreamingOutput",
|
|
31953
32157
|
visualData: { x: 0, y: 0, width: 230 }
|
|
@@ -31974,7 +32178,7 @@ var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
|
31974
32178
|
contextMenuTitle: "Watch Streaming Output",
|
|
31975
32179
|
group: ["Logic"],
|
|
31976
32180
|
infoBoxTitle: "Watch Streaming Output Node",
|
|
31977
|
-
infoBoxBody:
|
|
32181
|
+
infoBoxBody: import_ts_dedent37.dedent`
|
|
31978
32182
|
Runs its downstream branch for streaming output snapshots. Without Stop Watching
|
|
31979
32183
|
Streaming Output, every snapshot runs the branch and the watch finishes with its
|
|
31980
32184
|
producer. Add one Stop node only when a chosen value must continue through the
|
|
@@ -32057,13 +32261,13 @@ var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
|
32057
32261
|
var watchStreamingOutputNode = nodeDefinition(WatchStreamingOutputNodeImpl, "Watch Streaming Output");
|
|
32058
32262
|
|
|
32059
32263
|
// src/model/nodes/StopWatchingStreamingOutputNode.ts
|
|
32060
|
-
var
|
|
32061
|
-
var
|
|
32264
|
+
var import_non_secure45 = require("nanoid/non-secure");
|
|
32265
|
+
var import_ts_dedent38 = require("ts-dedent");
|
|
32062
32266
|
var StopWatchingStreamingOutputNodeImpl = class extends NodeImpl {
|
|
32063
32267
|
static create() {
|
|
32064
32268
|
return {
|
|
32065
32269
|
data: {},
|
|
32066
|
-
id: (0,
|
|
32270
|
+
id: (0, import_non_secure45.nanoid)(),
|
|
32067
32271
|
title: "Stop Watching Streaming Output",
|
|
32068
32272
|
type: "stopWatchingStreamingOutput",
|
|
32069
32273
|
visualData: { x: 0, y: 0, width: 230 }
|
|
@@ -32080,7 +32284,7 @@ var StopWatchingStreamingOutputNodeImpl = class extends NodeImpl {
|
|
|
32080
32284
|
contextMenuTitle: "Stop Watching Streaming Output",
|
|
32081
32285
|
group: ["Logic"],
|
|
32082
32286
|
infoBoxTitle: "Stop Watching Streaming Output Node",
|
|
32083
|
-
infoBoxBody:
|
|
32287
|
+
infoBoxBody: import_ts_dedent38.dedent`
|
|
32084
32288
|
Accepts a value from a Watch Streaming Output branch, stops future streaming
|
|
32085
32289
|
snapshots, and lets its completed output continue through the ordinary graph.
|
|
32086
32290
|
In parallel mode, the first completed branch to reach this node wins.
|
|
@@ -32110,14 +32314,14 @@ var stopWatchingStreamingOutputNode = nodeDefinition(
|
|
|
32110
32314
|
);
|
|
32111
32315
|
|
|
32112
32316
|
// src/model/nodes/PopNode.ts
|
|
32113
|
-
var
|
|
32114
|
-
var
|
|
32317
|
+
var import_non_secure46 = require("nanoid/non-secure");
|
|
32318
|
+
var import_ts_dedent39 = require("ts-dedent");
|
|
32115
32319
|
var PopNodeImpl = class extends NodeImpl {
|
|
32116
32320
|
static create() {
|
|
32117
32321
|
const baseNode = {
|
|
32118
32322
|
type: "pop",
|
|
32119
32323
|
title: "Pop",
|
|
32120
|
-
id: (0,
|
|
32324
|
+
id: (0, import_non_secure46.nanoid)(),
|
|
32121
32325
|
visualData: {
|
|
32122
32326
|
x: 0,
|
|
32123
32327
|
y: 0,
|
|
@@ -32162,7 +32366,7 @@ var PopNodeImpl = class extends NodeImpl {
|
|
|
32162
32366
|
}
|
|
32163
32367
|
static getUIData() {
|
|
32164
32368
|
return {
|
|
32165
|
-
infoBoxBody:
|
|
32369
|
+
infoBoxBody: import_ts_dedent39.dedent`
|
|
32166
32370
|
Pops the last value off the input array and outputs the new array and the popped value.
|
|
32167
32371
|
|
|
32168
32372
|
Can also be used to just extract the last value from an array.
|
|
@@ -32198,14 +32402,14 @@ var PopNodeImpl = class extends NodeImpl {
|
|
|
32198
32402
|
var popNode = nodeDefinition(PopNodeImpl, "Pop");
|
|
32199
32403
|
|
|
32200
32404
|
// src/model/nodes/SetGlobalNode.ts
|
|
32201
|
-
var
|
|
32202
|
-
var
|
|
32405
|
+
var import_non_secure47 = require("nanoid/non-secure");
|
|
32406
|
+
var import_ts_dedent40 = require("ts-dedent");
|
|
32203
32407
|
var SetGlobalNodeImpl = class extends NodeImpl {
|
|
32204
32408
|
static create() {
|
|
32205
32409
|
const chartNode = {
|
|
32206
32410
|
type: "setGlobal",
|
|
32207
32411
|
title: "Set Global",
|
|
32208
|
-
id: (0,
|
|
32412
|
+
id: (0, import_non_secure47.nanoid)(),
|
|
32209
32413
|
visualData: {
|
|
32210
32414
|
x: 0,
|
|
32211
32415
|
y: 0,
|
|
@@ -32273,14 +32477,14 @@ var SetGlobalNodeImpl = class extends NodeImpl {
|
|
|
32273
32477
|
];
|
|
32274
32478
|
}
|
|
32275
32479
|
getBody() {
|
|
32276
|
-
return
|
|
32480
|
+
return import_ts_dedent40.dedent`
|
|
32277
32481
|
${this.data.id}
|
|
32278
32482
|
Type: ${this.data.dataType}
|
|
32279
32483
|
`;
|
|
32280
32484
|
}
|
|
32281
32485
|
static getUIData() {
|
|
32282
32486
|
return {
|
|
32283
|
-
infoBoxBody:
|
|
32487
|
+
infoBoxBody: import_ts_dedent40.dedent`
|
|
32284
32488
|
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.
|
|
32285
32489
|
`,
|
|
32286
32490
|
infoBoxTitle: "Set Global Node",
|
|
@@ -32316,14 +32520,14 @@ var SetGlobalNodeImpl = class extends NodeImpl {
|
|
|
32316
32520
|
var setGlobalNode = nodeDefinition(SetGlobalNodeImpl, "Set Global");
|
|
32317
32521
|
|
|
32318
32522
|
// src/model/nodes/GetGlobalNode.ts
|
|
32319
|
-
var
|
|
32320
|
-
var
|
|
32523
|
+
var import_non_secure48 = require("nanoid/non-secure");
|
|
32524
|
+
var import_ts_dedent41 = require("ts-dedent");
|
|
32321
32525
|
var GetGlobalNodeImpl = class extends NodeImpl {
|
|
32322
32526
|
static create() {
|
|
32323
32527
|
const chartNode = {
|
|
32324
32528
|
type: "getGlobal",
|
|
32325
32529
|
title: "Get Global",
|
|
32326
|
-
id: (0,
|
|
32530
|
+
id: (0, import_non_secure48.nanoid)(),
|
|
32327
32531
|
visualData: {
|
|
32328
32532
|
x: 0,
|
|
32329
32533
|
y: 0,
|
|
@@ -32370,16 +32574,12 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
32370
32574
|
return [
|
|
32371
32575
|
{
|
|
32372
32576
|
type: "custom",
|
|
32373
|
-
label: "Search Global Variables",
|
|
32374
|
-
customEditorId: "GetGlobalVariableSelector",
|
|
32375
|
-
autoFocus: true
|
|
32376
|
-
},
|
|
32377
|
-
{
|
|
32378
|
-
type: "string",
|
|
32379
32577
|
label: "Variable ID",
|
|
32578
|
+
customEditorId: "GetGlobalVariableSelector",
|
|
32380
32579
|
dataKey: "id",
|
|
32381
32580
|
useInputToggleDataKey: "useIdInput",
|
|
32382
|
-
includeInGraphSearch: true
|
|
32581
|
+
includeInGraphSearch: true,
|
|
32582
|
+
autoFocus: true
|
|
32383
32583
|
},
|
|
32384
32584
|
{
|
|
32385
32585
|
type: "dataTypeSelector",
|
|
@@ -32401,7 +32601,7 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
32401
32601
|
];
|
|
32402
32602
|
}
|
|
32403
32603
|
getBody() {
|
|
32404
|
-
return
|
|
32604
|
+
return import_ts_dedent41.dedent`
|
|
32405
32605
|
${this.data.useIdInput ? "(ID from input)" : this.data.id}
|
|
32406
32606
|
Type: ${this.data.dataType}
|
|
32407
32607
|
${this.data.wait ? "Waits for available data" : ""}
|
|
@@ -32409,7 +32609,7 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
32409
32609
|
}
|
|
32410
32610
|
static getUIData() {
|
|
32411
32611
|
return {
|
|
32412
|
-
infoBoxBody:
|
|
32612
|
+
infoBoxBody: import_ts_dedent41.dedent`
|
|
32413
32613
|
Retrieves a global value that is shared across all graphs and subgraphs. The id of the global value is configured in this node.
|
|
32414
32614
|
`,
|
|
32415
32615
|
infoBoxTitle: "Get Global Node",
|
|
@@ -32454,8 +32654,8 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
32454
32654
|
var getGlobalNode = nodeDefinition(GetGlobalNodeImpl, "Get Global");
|
|
32455
32655
|
|
|
32456
32656
|
// src/model/nodes/SetStoredValueNode.ts
|
|
32457
|
-
var
|
|
32458
|
-
var
|
|
32657
|
+
var import_non_secure49 = require("nanoid/non-secure");
|
|
32658
|
+
var import_ts_dedent42 = require("ts-dedent");
|
|
32459
32659
|
|
|
32460
32660
|
// src/model/nodes/StoredValueNodeUtils.ts
|
|
32461
32661
|
var portableStoredValueScalarTypes = [
|
|
@@ -32519,7 +32719,7 @@ var SetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
32519
32719
|
return {
|
|
32520
32720
|
type: "setStoredValue",
|
|
32521
32721
|
title: "Set Stored Value",
|
|
32522
|
-
id: (0,
|
|
32722
|
+
id: (0, import_non_secure49.nanoid)(),
|
|
32523
32723
|
visualData: { x: 0, y: 0, width: 220 },
|
|
32524
32724
|
data: { dataType: "string", key: "key", useKeyInput: false }
|
|
32525
32725
|
};
|
|
@@ -32558,7 +32758,7 @@ var SetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
32558
32758
|
];
|
|
32559
32759
|
}
|
|
32560
32760
|
getBody() {
|
|
32561
|
-
return
|
|
32761
|
+
return import_ts_dedent42.dedent`
|
|
32562
32762
|
${this.data.useKeyInput ? "(Key from input)" : this.data.key}
|
|
32563
32763
|
Type: ${this.data.dataType}
|
|
32564
32764
|
`;
|
|
@@ -32589,14 +32789,14 @@ var SetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
32589
32789
|
var setStoredValueNode = nodeDefinition(SetStoredValueNodeImpl, "Set Stored Value");
|
|
32590
32790
|
|
|
32591
32791
|
// src/model/nodes/GetStoredValueNode.ts
|
|
32592
|
-
var
|
|
32593
|
-
var
|
|
32792
|
+
var import_non_secure50 = require("nanoid/non-secure");
|
|
32793
|
+
var import_ts_dedent43 = require("ts-dedent");
|
|
32594
32794
|
var GetStoredValueNodeImpl = class extends NodeImpl {
|
|
32595
32795
|
static create() {
|
|
32596
32796
|
return {
|
|
32597
32797
|
type: "getStoredValue",
|
|
32598
32798
|
title: "Get Stored Value",
|
|
32599
|
-
id: (0,
|
|
32799
|
+
id: (0, import_non_secure50.nanoid)(),
|
|
32600
32800
|
visualData: { x: 0, y: 0, width: 220 },
|
|
32601
32801
|
data: { dataType: "string", key: "key", onDemand: false, useKeyInput: false, wait: false }
|
|
32602
32802
|
};
|
|
@@ -32651,7 +32851,7 @@ var GetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
32651
32851
|
];
|
|
32652
32852
|
}
|
|
32653
32853
|
getBody() {
|
|
32654
|
-
return
|
|
32854
|
+
return import_ts_dedent43.dedent`
|
|
32655
32855
|
${this.data.useKeyInput ? "(Key from input)" : this.data.key}
|
|
32656
32856
|
Type: ${this.data.dataType}
|
|
32657
32857
|
${this.data.wait ? "Waits for an in-run Set" : ""}
|
|
@@ -32689,12 +32889,12 @@ var GetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
32689
32889
|
var getStoredValueNode = nodeDefinition(GetStoredValueNodeImpl, "Get Stored Value");
|
|
32690
32890
|
|
|
32691
32891
|
// src/model/nodes/WaitForEventNode.ts
|
|
32692
|
-
var
|
|
32693
|
-
var
|
|
32892
|
+
var import_non_secure51 = require("nanoid/non-secure");
|
|
32893
|
+
var import_ts_dedent44 = require("ts-dedent");
|
|
32694
32894
|
var WaitForEventNodeImpl = class extends NodeImpl {
|
|
32695
32895
|
static create() {
|
|
32696
32896
|
return {
|
|
32697
|
-
id: (0,
|
|
32897
|
+
id: (0, import_non_secure51.nanoid)(),
|
|
32698
32898
|
type: "waitForEvent",
|
|
32699
32899
|
title: "Wait For Event",
|
|
32700
32900
|
visualData: { x: 0, y: 0, width: 150 },
|
|
@@ -32749,7 +32949,7 @@ var WaitForEventNodeImpl = class extends NodeImpl {
|
|
|
32749
32949
|
}
|
|
32750
32950
|
static getUIData() {
|
|
32751
32951
|
return {
|
|
32752
|
-
infoBoxBody:
|
|
32952
|
+
infoBoxBody: import_ts_dedent44.dedent`
|
|
32753
32953
|
Waits for a specific event to be raised by a 'Raise Event' node or the host project. The event name can be configured.
|
|
32754
32954
|
`,
|
|
32755
32955
|
infoBoxTitle: "Wait For Event Node",
|
|
@@ -32769,8 +32969,8 @@ var WaitForEventNodeImpl = class extends NodeImpl {
|
|
|
32769
32969
|
var waitForEventNode = nodeDefinition(WaitForEventNodeImpl, "Wait For Event");
|
|
32770
32970
|
|
|
32771
32971
|
// src/model/nodes/ToolNode.ts
|
|
32772
|
-
var
|
|
32773
|
-
var
|
|
32972
|
+
var import_non_secure52 = require("nanoid/non-secure");
|
|
32973
|
+
var import_ts_dedent45 = require("ts-dedent");
|
|
32774
32974
|
var TOOL_NODE_BODY_PREVIEW_MAX_LINES = 14;
|
|
32775
32975
|
function getToolNodeBodyPreview(data) {
|
|
32776
32976
|
const [name = "", ...descriptionLines] = buildNodeBodyPreview(
|
|
@@ -32788,7 +32988,7 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
32788
32988
|
const chartNode = {
|
|
32789
32989
|
type: "gptFunction",
|
|
32790
32990
|
title: "Tool",
|
|
32791
|
-
id: (0,
|
|
32991
|
+
id: (0, import_non_secure52.nanoid)(),
|
|
32792
32992
|
visualData: {
|
|
32793
32993
|
x: 0,
|
|
32794
32994
|
y: 0,
|
|
@@ -32798,7 +32998,7 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
32798
32998
|
name: "newTool",
|
|
32799
32999
|
description: "No description provided",
|
|
32800
33000
|
resultHandling: "continue",
|
|
32801
|
-
schema:
|
|
33001
|
+
schema: import_ts_dedent45.dedent`
|
|
32802
33002
|
{
|
|
32803
33003
|
"type": "object",
|
|
32804
33004
|
"properties": {}
|
|
@@ -32925,7 +33125,7 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
32925
33125
|
}
|
|
32926
33126
|
static getUIData() {
|
|
32927
33127
|
return {
|
|
32928
|
-
infoBoxBody:
|
|
33128
|
+
infoBoxBody: import_ts_dedent45.dedent`
|
|
32929
33129
|
Defines a tool, which is a method that the LLM can call in its responses.
|
|
32930
33130
|
`,
|
|
32931
33131
|
infoBoxTitle: "Tool Node",
|
|
@@ -32978,15 +33178,15 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
32978
33178
|
var gptFunctionNode = nodeDefinition(GptFunctionNodeImpl, "Tool");
|
|
32979
33179
|
|
|
32980
33180
|
// src/model/nodes/ToYamlNode.ts
|
|
32981
|
-
var
|
|
33181
|
+
var import_non_secure53 = require("nanoid/non-secure");
|
|
32982
33182
|
var import_yaml2 = __toESM(require("yaml"), 1);
|
|
32983
|
-
var
|
|
33183
|
+
var import_ts_dedent46 = require("ts-dedent");
|
|
32984
33184
|
var ToYamlNodeImpl = class extends NodeImpl {
|
|
32985
33185
|
static create() {
|
|
32986
33186
|
const chartNode = {
|
|
32987
33187
|
type: "toYaml",
|
|
32988
33188
|
title: "To YAML",
|
|
32989
|
-
id: (0,
|
|
33189
|
+
id: (0, import_non_secure53.nanoid)(),
|
|
32990
33190
|
visualData: {
|
|
32991
33191
|
x: 0,
|
|
32992
33192
|
y: 0,
|
|
@@ -33017,7 +33217,7 @@ var ToYamlNodeImpl = class extends NodeImpl {
|
|
|
33017
33217
|
}
|
|
33018
33218
|
static getUIData() {
|
|
33019
33219
|
return {
|
|
33020
|
-
infoBoxBody:
|
|
33220
|
+
infoBoxBody: import_ts_dedent46.dedent`
|
|
33021
33221
|
Turns the input object into YAML text.
|
|
33022
33222
|
`,
|
|
33023
33223
|
infoBoxTitle: "To YAML Node",
|
|
@@ -33042,8 +33242,8 @@ var ToYamlNodeImpl = class extends NodeImpl {
|
|
|
33042
33242
|
var toYamlNode = nodeDefinition(ToYamlNodeImpl, "To YAML");
|
|
33043
33243
|
|
|
33044
33244
|
// src/model/nodes/GetEmbeddingNode.ts
|
|
33045
|
-
var
|
|
33046
|
-
var
|
|
33245
|
+
var import_non_secure54 = require("nanoid/non-secure");
|
|
33246
|
+
var import_ts_dedent47 = require("ts-dedent");
|
|
33047
33247
|
|
|
33048
33248
|
// src/integrations/integrations.ts
|
|
33049
33249
|
var registeredIntegrations = {
|
|
@@ -33066,7 +33266,7 @@ function getIntegration(type, integrationKey, context) {
|
|
|
33066
33266
|
var GetEmbeddingNodeImpl = class extends NodeImpl {
|
|
33067
33267
|
static create() {
|
|
33068
33268
|
return {
|
|
33069
|
-
id: (0,
|
|
33269
|
+
id: (0, import_non_secure54.nanoid)(),
|
|
33070
33270
|
type: "getEmbedding",
|
|
33071
33271
|
title: "Get Embedding",
|
|
33072
33272
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -33150,7 +33350,7 @@ var GetEmbeddingNodeImpl = class extends NodeImpl {
|
|
|
33150
33350
|
}
|
|
33151
33351
|
static getUIData() {
|
|
33152
33352
|
return {
|
|
33153
|
-
infoBoxBody:
|
|
33353
|
+
infoBoxBody: import_ts_dedent47.dedent`
|
|
33154
33354
|
Gets a OpenAI vector embedding for the input text provided.
|
|
33155
33355
|
|
|
33156
33356
|
Can be used with the Vector Store and Vector KNN nodes.
|
|
@@ -33181,12 +33381,12 @@ var GetEmbeddingNodeImpl = class extends NodeImpl {
|
|
|
33181
33381
|
var getEmbeddingNode = nodeDefinition(GetEmbeddingNodeImpl, "Get Embedding");
|
|
33182
33382
|
|
|
33183
33383
|
// src/model/nodes/VectorStoreNode.ts
|
|
33184
|
-
var
|
|
33185
|
-
var
|
|
33384
|
+
var import_non_secure55 = require("nanoid/non-secure");
|
|
33385
|
+
var import_ts_dedent48 = require("ts-dedent");
|
|
33186
33386
|
var VectorStoreNodeImpl = class extends NodeImpl {
|
|
33187
33387
|
static create() {
|
|
33188
33388
|
return {
|
|
33189
|
-
id: (0,
|
|
33389
|
+
id: (0, import_non_secure55.nanoid)(),
|
|
33190
33390
|
type: "vectorStore",
|
|
33191
33391
|
title: "Vector Store",
|
|
33192
33392
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -33262,14 +33462,14 @@ var VectorStoreNodeImpl = class extends NodeImpl {
|
|
|
33262
33462
|
];
|
|
33263
33463
|
}
|
|
33264
33464
|
getBody() {
|
|
33265
|
-
return
|
|
33465
|
+
return import_ts_dedent48.dedent`
|
|
33266
33466
|
Integration: ${this.data.useIntegrationInput ? "(using input)" : this.data.integration}
|
|
33267
33467
|
Collection Id: ${this.data.useCollectionIdInput ? "(using input)" : this.data.collectionId}
|
|
33268
33468
|
`;
|
|
33269
33469
|
}
|
|
33270
33470
|
static getUIData() {
|
|
33271
33471
|
return {
|
|
33272
|
-
infoBoxBody:
|
|
33472
|
+
infoBoxBody: import_ts_dedent48.dedent`
|
|
33273
33473
|
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.
|
|
33274
33474
|
`,
|
|
33275
33475
|
infoBoxTitle: "Vector Store Node",
|
|
@@ -33304,12 +33504,12 @@ var VectorStoreNodeImpl = class extends NodeImpl {
|
|
|
33304
33504
|
var vectorStoreNode = nodeDefinition(VectorStoreNodeImpl, "Vector Store");
|
|
33305
33505
|
|
|
33306
33506
|
// src/model/nodes/VectorNearestNeighborsNode.ts
|
|
33307
|
-
var
|
|
33308
|
-
var
|
|
33507
|
+
var import_non_secure56 = require("nanoid/non-secure");
|
|
33508
|
+
var import_ts_dedent49 = require("ts-dedent");
|
|
33309
33509
|
var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
33310
33510
|
static create() {
|
|
33311
33511
|
return {
|
|
33312
|
-
id: (0,
|
|
33512
|
+
id: (0, import_non_secure56.nanoid)(),
|
|
33313
33513
|
type: "vectorNearestNeighbors",
|
|
33314
33514
|
title: "Vector KNN",
|
|
33315
33515
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -33392,7 +33592,7 @@ var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
|
33392
33592
|
];
|
|
33393
33593
|
}
|
|
33394
33594
|
getBody() {
|
|
33395
|
-
return
|
|
33595
|
+
return import_ts_dedent49.dedent`
|
|
33396
33596
|
Integration: ${this.data.useIntegrationInput ? "(using input)" : this.data.integration}
|
|
33397
33597
|
K: ${this.data.useKInput ? "(using input)" : this.data.k}
|
|
33398
33598
|
Collection Id: ${this.data.useCollectionIdInput ? "(using input)" : this.data.collectionId}
|
|
@@ -33400,7 +33600,7 @@ var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
|
33400
33600
|
}
|
|
33401
33601
|
static getUIData() {
|
|
33402
33602
|
return {
|
|
33403
|
-
infoBoxBody:
|
|
33603
|
+
infoBoxBody: import_ts_dedent49.dedent`
|
|
33404
33604
|
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.
|
|
33405
33605
|
`,
|
|
33406
33606
|
infoBoxTitle: "Vector KNN Node",
|
|
@@ -33430,12 +33630,12 @@ var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
|
33430
33630
|
var vectorNearestNeighborsNode = nodeDefinition(VectorNearestNeighborsNodeImpl, "Vector KNN");
|
|
33431
33631
|
|
|
33432
33632
|
// src/model/nodes/KnowledgeSourceNode.ts
|
|
33433
|
-
var
|
|
33434
|
-
var
|
|
33633
|
+
var import_non_secure57 = require("nanoid/non-secure");
|
|
33634
|
+
var import_ts_dedent50 = require("ts-dedent");
|
|
33435
33635
|
var KnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
33436
33636
|
static create() {
|
|
33437
33637
|
return {
|
|
33438
|
-
id: (0,
|
|
33638
|
+
id: (0, import_non_secure57.nanoid)(),
|
|
33439
33639
|
type: "knowledgeSource",
|
|
33440
33640
|
title: "Knowledge Source",
|
|
33441
33641
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -33494,7 +33694,7 @@ var KnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
|
33494
33694
|
getBody(context) {
|
|
33495
33695
|
var _a;
|
|
33496
33696
|
const connection = (_a = context.project.metadata.knowledgeStores) == null ? void 0 : _a[this.data.connectionId];
|
|
33497
|
-
return
|
|
33697
|
+
return import_ts_dedent50.dedent`
|
|
33498
33698
|
Store: ${this.data.useConnectionIdInput ? "(from input)" : ((connection == null ? void 0 : connection.displayName) ?? this.data.connectionId) || "(not selected)"}
|
|
33499
33699
|
Source: ${this.data.useSourceIdInput ? "(from input)" : this.data.sourceId || "(not set)"}
|
|
33500
33700
|
${this.data.useVersionInput || this.data.version ? "Exact version configured" : "Uses active version"}
|
|
@@ -33527,12 +33727,12 @@ var KnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
|
33527
33727
|
var knowledgeSourceNode = nodeDefinition(KnowledgeSourceNodeImpl, "Knowledge Source");
|
|
33528
33728
|
|
|
33529
33729
|
// src/model/nodes/KnowledgeDocumentNode.ts
|
|
33530
|
-
var
|
|
33531
|
-
var
|
|
33730
|
+
var import_non_secure58 = require("nanoid/non-secure");
|
|
33731
|
+
var import_ts_dedent51 = require("ts-dedent");
|
|
33532
33732
|
var KnowledgeDocumentNodeImpl = class extends NodeImpl {
|
|
33533
33733
|
static create() {
|
|
33534
33734
|
return {
|
|
33535
|
-
id: (0,
|
|
33735
|
+
id: (0, import_non_secure58.nanoid)(),
|
|
33536
33736
|
type: "knowledgeDocument",
|
|
33537
33737
|
title: "Knowledge Document",
|
|
33538
33738
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -33583,7 +33783,7 @@ var KnowledgeDocumentNodeImpl = class extends NodeImpl {
|
|
|
33583
33783
|
];
|
|
33584
33784
|
}
|
|
33585
33785
|
getBody() {
|
|
33586
|
-
return
|
|
33786
|
+
return import_ts_dedent51.dedent`
|
|
33587
33787
|
${this.data.useTextInput ? "Text from input" : `${this.data.text.length} characters`}
|
|
33588
33788
|
${this.data.useDocumentIdInput ? "ID from input" : this.data.documentId ? `ID: ${this.data.documentId}` : "ID generated from content"}
|
|
33589
33789
|
`;
|
|
@@ -33609,12 +33809,12 @@ var KnowledgeDocumentNodeImpl = class extends NodeImpl {
|
|
|
33609
33809
|
var knowledgeDocumentNode = nodeDefinition(KnowledgeDocumentNodeImpl, "Knowledge Document");
|
|
33610
33810
|
|
|
33611
33811
|
// src/model/nodes/SyncKnowledgeSourceNode.ts
|
|
33612
|
-
var
|
|
33613
|
-
var
|
|
33812
|
+
var import_non_secure59 = require("nanoid/non-secure");
|
|
33813
|
+
var import_ts_dedent52 = require("ts-dedent");
|
|
33614
33814
|
var SyncKnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
33615
33815
|
static create() {
|
|
33616
33816
|
return {
|
|
33617
|
-
id: (0,
|
|
33817
|
+
id: (0, import_non_secure59.nanoid)(),
|
|
33618
33818
|
type: "syncKnowledgeSource",
|
|
33619
33819
|
title: "Sync Knowledge Source",
|
|
33620
33820
|
visualData: { x: 0, y: 0, width: 290 },
|
|
@@ -33688,7 +33888,7 @@ var SyncKnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
|
33688
33888
|
];
|
|
33689
33889
|
}
|
|
33690
33890
|
getBody() {
|
|
33691
|
-
return
|
|
33891
|
+
return import_ts_dedent52.dedent`
|
|
33692
33892
|
${this.data.targetSize} ${this.data.chunkUnit}
|
|
33693
33893
|
${this.data.overlap} overlap
|
|
33694
33894
|
${this.data.includeTitle ? "Includes titles" : "Content only"}
|
|
@@ -33754,11 +33954,11 @@ function normalizeDocumentsInput(value) {
|
|
|
33754
33954
|
var syncKnowledgeSourceNode = nodeDefinition(SyncKnowledgeSourceNodeImpl, "Sync Knowledge Source");
|
|
33755
33955
|
|
|
33756
33956
|
// src/model/nodes/GetKnowledgeSourceStatusNode.ts
|
|
33757
|
-
var
|
|
33957
|
+
var import_non_secure60 = require("nanoid/non-secure");
|
|
33758
33958
|
var GetKnowledgeSourceStatusNodeImpl = class extends NodeImpl {
|
|
33759
33959
|
static create() {
|
|
33760
33960
|
return {
|
|
33761
|
-
id: (0,
|
|
33961
|
+
id: (0, import_non_secure60.nanoid)(),
|
|
33762
33962
|
type: "getKnowledgeSourceStatus",
|
|
33763
33963
|
title: "Get Knowledge Source Status",
|
|
33764
33964
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -33837,12 +34037,12 @@ var getKnowledgeSourceStatusNode = nodeDefinition(
|
|
|
33837
34037
|
);
|
|
33838
34038
|
|
|
33839
34039
|
// src/model/nodes/SearchKnowledgeNode.ts
|
|
33840
|
-
var
|
|
33841
|
-
var
|
|
34040
|
+
var import_non_secure61 = require("nanoid/non-secure");
|
|
34041
|
+
var import_ts_dedent53 = require("ts-dedent");
|
|
33842
34042
|
var SearchKnowledgeNodeImpl = class extends NodeImpl {
|
|
33843
34043
|
static create() {
|
|
33844
34044
|
return {
|
|
33845
|
-
id: (0,
|
|
34045
|
+
id: (0, import_non_secure61.nanoid)(),
|
|
33846
34046
|
type: "searchKnowledge",
|
|
33847
34047
|
title: "Search Knowledge",
|
|
33848
34048
|
visualData: { x: 0, y: 0, width: 270 },
|
|
@@ -33907,7 +34107,7 @@ var SearchKnowledgeNodeImpl = class extends NodeImpl {
|
|
|
33907
34107
|
];
|
|
33908
34108
|
}
|
|
33909
34109
|
getBody() {
|
|
33910
|
-
return
|
|
34110
|
+
return import_ts_dedent53.dedent`
|
|
33911
34111
|
${this.data.topK} per query -> ${this.data.finalResultCount} final
|
|
33912
34112
|
Reranking: ${this.data.rerankMode}
|
|
33913
34113
|
`;
|
|
@@ -33964,12 +34164,12 @@ var SearchKnowledgeNodeImpl = class extends NodeImpl {
|
|
|
33964
34164
|
var searchKnowledgeNode = nodeDefinition(SearchKnowledgeNodeImpl, "Search Knowledge");
|
|
33965
34165
|
|
|
33966
34166
|
// src/model/nodes/BuildKnowledgeContextNode.ts
|
|
33967
|
-
var
|
|
33968
|
-
var
|
|
34167
|
+
var import_non_secure62 = require("nanoid/non-secure");
|
|
34168
|
+
var import_ts_dedent54 = require("ts-dedent");
|
|
33969
34169
|
var BuildKnowledgeContextNodeImpl = class extends NodeImpl {
|
|
33970
34170
|
static create() {
|
|
33971
34171
|
return {
|
|
33972
|
-
id: (0,
|
|
34172
|
+
id: (0, import_non_secure62.nanoid)(),
|
|
33973
34173
|
type: "buildKnowledgeContext",
|
|
33974
34174
|
title: "Build Knowledge Context",
|
|
33975
34175
|
visualData: { x: 0, y: 0, width: 280 },
|
|
@@ -34023,7 +34223,7 @@ var BuildKnowledgeContextNodeImpl = class extends NodeImpl {
|
|
|
34023
34223
|
];
|
|
34024
34224
|
}
|
|
34025
34225
|
getBody() {
|
|
34026
|
-
return
|
|
34226
|
+
return import_ts_dedent54.dedent`
|
|
34027
34227
|
${this.data.budget} ${this.data.budgetUnit}
|
|
34028
34228
|
Up to ${this.data.maxItems} items
|
|
34029
34229
|
Citations: [${this.data.citationPrefix || "K"}1]
|
|
@@ -34105,17 +34305,17 @@ function buildMetadataLine(evidence, fields) {
|
|
|
34105
34305
|
var buildKnowledgeContextNode = nodeDefinition(BuildKnowledgeContextNodeImpl, "Build Knowledge Context");
|
|
34106
34306
|
|
|
34107
34307
|
// src/model/nodes/HashNode.ts
|
|
34108
|
-
var
|
|
34308
|
+
var import_non_secure63 = require("nanoid/non-secure");
|
|
34109
34309
|
var crypto = __toESM(require("crypto-js"), 1);
|
|
34110
34310
|
var import_ts_pattern3 = require("ts-pattern");
|
|
34111
|
-
var
|
|
34311
|
+
var import_ts_dedent55 = require("ts-dedent");
|
|
34112
34312
|
var { SHA256, SHA512, MD5, SHA1 } = crypto;
|
|
34113
34313
|
var HashNodeImpl = class extends NodeImpl {
|
|
34114
34314
|
static create() {
|
|
34115
34315
|
const chartNode = {
|
|
34116
34316
|
type: "hash",
|
|
34117
34317
|
title: "Hash",
|
|
34118
|
-
id: (0,
|
|
34318
|
+
id: (0, import_non_secure63.nanoid)(),
|
|
34119
34319
|
visualData: {
|
|
34120
34320
|
x: 0,
|
|
34121
34321
|
y: 0,
|
|
@@ -34166,7 +34366,7 @@ var HashNodeImpl = class extends NodeImpl {
|
|
|
34166
34366
|
}
|
|
34167
34367
|
static getUIData() {
|
|
34168
34368
|
return {
|
|
34169
|
-
infoBoxBody:
|
|
34369
|
+
infoBoxBody: import_ts_dedent55.dedent`
|
|
34170
34370
|
Computes a hash of the input value using the configured hash function.
|
|
34171
34371
|
`,
|
|
34172
34372
|
infoBoxTitle: "Hash Node",
|
|
@@ -34194,14 +34394,14 @@ var algorithmDisplayName = {
|
|
|
34194
34394
|
var hashNode = nodeDefinition(HashNodeImpl, "Hash");
|
|
34195
34395
|
|
|
34196
34396
|
// src/model/nodes/AbortGraphNode.ts
|
|
34197
|
-
var
|
|
34198
|
-
var
|
|
34397
|
+
var import_non_secure64 = require("nanoid/non-secure");
|
|
34398
|
+
var import_ts_dedent56 = require("ts-dedent");
|
|
34199
34399
|
var AbortGraphNodeImpl = class extends NodeImpl {
|
|
34200
34400
|
static create() {
|
|
34201
34401
|
const chartNode = {
|
|
34202
34402
|
type: "abortGraph",
|
|
34203
34403
|
title: "Abort Graph",
|
|
34204
|
-
id: (0,
|
|
34404
|
+
id: (0, import_non_secure64.nanoid)(),
|
|
34205
34405
|
visualData: {
|
|
34206
34406
|
x: 0,
|
|
34207
34407
|
y: 0,
|
|
@@ -34252,13 +34452,13 @@ var AbortGraphNodeImpl = class extends NodeImpl {
|
|
|
34252
34452
|
];
|
|
34253
34453
|
}
|
|
34254
34454
|
getBody() {
|
|
34255
|
-
return
|
|
34455
|
+
return import_ts_dedent56.dedent`
|
|
34256
34456
|
${this.data.useSuccessfullyInput ? "Success depends on input" : this.data.successfully ? "Successfully Abort" : this.data.errorMessage ? `Error Abort: ${this.data.errorMessage}` : "Error Abort"}
|
|
34257
34457
|
`;
|
|
34258
34458
|
}
|
|
34259
34459
|
static getUIData() {
|
|
34260
34460
|
return {
|
|
34261
|
-
infoBoxBody:
|
|
34461
|
+
infoBoxBody: import_ts_dedent56.dedent`
|
|
34262
34462
|
Aborts the execution of the entire graph immediately.
|
|
34263
34463
|
|
|
34264
34464
|
Can either "successfully" abort the graph (early-exit), or "error" abort the graph.
|
|
@@ -34283,14 +34483,14 @@ var AbortGraphNodeImpl = class extends NodeImpl {
|
|
|
34283
34483
|
var abortGraphNode = nodeDefinition(AbortGraphNodeImpl, "Abort Graph");
|
|
34284
34484
|
|
|
34285
34485
|
// src/model/nodes/RaceInputsNode.ts
|
|
34286
|
-
var
|
|
34287
|
-
var
|
|
34486
|
+
var import_non_secure65 = require("nanoid/non-secure");
|
|
34487
|
+
var import_ts_dedent57 = require("ts-dedent");
|
|
34288
34488
|
var RaceInputsNodeImpl = class extends NodeImpl {
|
|
34289
34489
|
static create() {
|
|
34290
34490
|
const chartNode = {
|
|
34291
34491
|
type: "raceInputs",
|
|
34292
34492
|
title: "Race Inputs",
|
|
34293
|
-
id: (0,
|
|
34493
|
+
id: (0, import_non_secure65.nanoid)(),
|
|
34294
34494
|
visualData: {
|
|
34295
34495
|
x: 0,
|
|
34296
34496
|
y: 0,
|
|
@@ -34326,7 +34526,7 @@ var RaceInputsNodeImpl = class extends NodeImpl {
|
|
|
34326
34526
|
}
|
|
34327
34527
|
static getUIData() {
|
|
34328
34528
|
return {
|
|
34329
|
-
infoBoxBody:
|
|
34529
|
+
infoBoxBody: import_ts_dedent57.dedent`
|
|
34330
34530
|
Takes in multiple inputs and outputs the value of the first one to finish. The other inputs are cancelled.
|
|
34331
34531
|
`,
|
|
34332
34532
|
infoBoxTitle: "Race Inputs Node",
|
|
@@ -34354,14 +34554,14 @@ var RaceInputsNodeImpl = class extends NodeImpl {
|
|
|
34354
34554
|
var raceInputsNode = nodeDefinition(RaceInputsNodeImpl, "Race Inputs");
|
|
34355
34555
|
|
|
34356
34556
|
// src/model/nodes/ToJsonNode.ts
|
|
34357
|
-
var
|
|
34358
|
-
var
|
|
34557
|
+
var import_non_secure66 = require("nanoid/non-secure");
|
|
34558
|
+
var import_ts_dedent58 = require("ts-dedent");
|
|
34359
34559
|
var ToJsonNodeImpl = class extends NodeImpl {
|
|
34360
34560
|
static create() {
|
|
34361
34561
|
const chartNode = {
|
|
34362
34562
|
type: "toJson",
|
|
34363
34563
|
title: "To JSON",
|
|
34364
|
-
id: (0,
|
|
34564
|
+
id: (0, import_non_secure66.nanoid)(),
|
|
34365
34565
|
visualData: {
|
|
34366
34566
|
x: 0,
|
|
34367
34567
|
y: 0,
|
|
@@ -34406,7 +34606,7 @@ var ToJsonNodeImpl = class extends NodeImpl {
|
|
|
34406
34606
|
}
|
|
34407
34607
|
static getUIData() {
|
|
34408
34608
|
return {
|
|
34409
|
-
infoBoxBody:
|
|
34609
|
+
infoBoxBody: import_ts_dedent58.dedent`
|
|
34410
34610
|
Turns the input value into its JSON equivalent (stringifies the value).
|
|
34411
34611
|
`,
|
|
34412
34612
|
infoBoxTitle: "To JSON Node",
|
|
@@ -34428,14 +34628,14 @@ var ToJsonNodeImpl = class extends NodeImpl {
|
|
|
34428
34628
|
var toJsonNode = nodeDefinition(ToJsonNodeImpl, "To JSON");
|
|
34429
34629
|
|
|
34430
34630
|
// src/model/nodes/JoinNode.ts
|
|
34431
|
-
var
|
|
34432
|
-
var
|
|
34631
|
+
var import_non_secure67 = require("nanoid/non-secure");
|
|
34632
|
+
var import_ts_dedent59 = require("ts-dedent");
|
|
34433
34633
|
var JoinNodeImpl = class extends NodeImpl {
|
|
34434
34634
|
static create = () => {
|
|
34435
34635
|
const chartNode = {
|
|
34436
34636
|
type: "join",
|
|
34437
34637
|
title: "Join",
|
|
34438
|
-
id: (0,
|
|
34638
|
+
id: (0, import_non_secure67.nanoid)(),
|
|
34439
34639
|
data: {
|
|
34440
34640
|
flatten: true,
|
|
34441
34641
|
joinString: "\n"
|
|
@@ -34497,7 +34697,7 @@ var JoinNodeImpl = class extends NodeImpl {
|
|
|
34497
34697
|
}
|
|
34498
34698
|
static getUIData() {
|
|
34499
34699
|
return {
|
|
34500
|
-
infoBoxBody:
|
|
34700
|
+
infoBoxBody: import_ts_dedent59.dedent`
|
|
34501
34701
|
Takes an array of strings, and joins them using the configured delimiter.
|
|
34502
34702
|
|
|
34503
34703
|
Defaults to a newline.
|
|
@@ -34534,15 +34734,15 @@ var JoinNodeImpl = class extends NodeImpl {
|
|
|
34534
34734
|
var joinNode = nodeDefinition(JoinNodeImpl, "Coalesce");
|
|
34535
34735
|
|
|
34536
34736
|
// src/model/nodes/FilterNode.ts
|
|
34537
|
-
var
|
|
34737
|
+
var import_non_secure68 = require("nanoid/non-secure");
|
|
34538
34738
|
var import_lodash_es10 = require("lodash");
|
|
34539
|
-
var
|
|
34739
|
+
var import_ts_dedent60 = require("ts-dedent");
|
|
34540
34740
|
var FilterNodeImpl = class extends NodeImpl {
|
|
34541
34741
|
static create() {
|
|
34542
34742
|
const chartNode = {
|
|
34543
34743
|
type: "filter",
|
|
34544
34744
|
title: "Filter",
|
|
34545
|
-
id: (0,
|
|
34745
|
+
id: (0, import_non_secure68.nanoid)(),
|
|
34546
34746
|
visualData: {
|
|
34547
34747
|
x: 0,
|
|
34548
34748
|
y: 0,
|
|
@@ -34579,7 +34779,7 @@ var FilterNodeImpl = class extends NodeImpl {
|
|
|
34579
34779
|
}
|
|
34580
34780
|
static getUIData() {
|
|
34581
34781
|
return {
|
|
34582
|
-
infoBoxBody:
|
|
34782
|
+
infoBoxBody: import_ts_dedent60.dedent`
|
|
34583
34783
|
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.
|
|
34584
34784
|
`,
|
|
34585
34785
|
infoBoxTitle: "Filter Node",
|
|
@@ -34604,11 +34804,11 @@ var FilterNodeImpl = class extends NodeImpl {
|
|
|
34604
34804
|
var filterNode = nodeDefinition(FilterNodeImpl, "Filter");
|
|
34605
34805
|
|
|
34606
34806
|
// src/model/nodes/JSFilterNode.ts
|
|
34607
|
-
var
|
|
34608
|
-
var
|
|
34807
|
+
var import_non_secure69 = require("nanoid/non-secure");
|
|
34808
|
+
var import_ts_dedent62 = require("ts-dedent");
|
|
34609
34809
|
|
|
34610
34810
|
// src/model/nodes/jsListCallbackHelpers.ts
|
|
34611
|
-
var
|
|
34811
|
+
var import_ts_dedent61 = require("ts-dedent");
|
|
34612
34812
|
var MAX_CALLBACK_PREVIEW_BODY_LINES = 13;
|
|
34613
34813
|
var JS_LIST_CALLBACK_SIGNATURE = "(item, index, array)";
|
|
34614
34814
|
var JS_LIST_CALLBACK_LOCAL_NAMES = /* @__PURE__ */ new Set(["item", "index", "array"]);
|
|
@@ -34634,7 +34834,7 @@ function getJSListInterpolationContext(callbackBody) {
|
|
|
34634
34834
|
});
|
|
34635
34835
|
}
|
|
34636
34836
|
function buildJSListRuntimePreamble(interpolationContext) {
|
|
34637
|
-
return
|
|
34837
|
+
return import_ts_dedent61.dedent`
|
|
34638
34838
|
const assertSynchronousCallbackResult = ${assertSynchronousCallbackResult.toString()};
|
|
34639
34839
|
${buildJsValueInputClonePreamble({
|
|
34640
34840
|
cacheIdentifier: interpolationContext.cloneCacheIdentifier,
|
|
@@ -34679,7 +34879,7 @@ function sanitizeJSListError(error, callbackBody, nodeName) {
|
|
|
34679
34879
|
function buildJSFilterWrapper(callbackBody) {
|
|
34680
34880
|
const interpolationContext = getJSListInterpolationContext(callbackBody);
|
|
34681
34881
|
const callbackBodySource = buildJSListCallbackRuntimeSource(callbackBody, interpolationContext);
|
|
34682
|
-
return
|
|
34882
|
+
return import_ts_dedent61.dedent`
|
|
34683
34883
|
${buildJSListRuntimePreamble(interpolationContext)}
|
|
34684
34884
|
|
|
34685
34885
|
if (!Array.isArray(array)) {
|
|
@@ -34715,7 +34915,7 @@ function buildJSFilterWrapper(callbackBody) {
|
|
|
34715
34915
|
function buildJSMapWrapper(callbackBody) {
|
|
34716
34916
|
const interpolationContext = getJSListInterpolationContext(callbackBody);
|
|
34717
34917
|
const callbackBodySource = buildJSListCallbackRuntimeSource(callbackBody, interpolationContext);
|
|
34718
|
-
return
|
|
34918
|
+
return import_ts_dedent61.dedent`
|
|
34719
34919
|
${buildJSListRuntimePreamble(interpolationContext)}
|
|
34720
34920
|
|
|
34721
34921
|
if (!Array.isArray(array)) {
|
|
@@ -34784,7 +34984,7 @@ function getJSListNodeBody(callbackBody) {
|
|
|
34784
34984
|
const previewBody = buildJsValuePreview(callbackBody, MAX_CALLBACK_PREVIEW_BODY_LINES);
|
|
34785
34985
|
return {
|
|
34786
34986
|
type: "colorized",
|
|
34787
|
-
text:
|
|
34987
|
+
text: import_ts_dedent61.dedent`
|
|
34788
34988
|
${JS_LIST_CALLBACK_SIGNATURE} => {
|
|
34789
34989
|
${indentLines(previewBody, " ")}
|
|
34790
34990
|
}
|
|
@@ -34836,7 +35036,7 @@ var JSFilterNodeImpl = class extends NodeImpl {
|
|
|
34836
35036
|
const chartNode = {
|
|
34837
35037
|
type: "jsFilter",
|
|
34838
35038
|
title: "JS Filter",
|
|
34839
|
-
id: (0,
|
|
35039
|
+
id: (0, import_non_secure69.nanoid)(),
|
|
34840
35040
|
visualData: {
|
|
34841
35041
|
x: 0,
|
|
34842
35042
|
y: 0,
|
|
@@ -34868,7 +35068,7 @@ var JSFilterNodeImpl = class extends NodeImpl {
|
|
|
34868
35068
|
}
|
|
34869
35069
|
static getUIData() {
|
|
34870
35070
|
return {
|
|
34871
|
-
infoBoxBody:
|
|
35071
|
+
infoBoxBody: import_ts_dedent62.dedent`
|
|
34872
35072
|
Filters an input array using the body of a JavaScript callback.
|
|
34873
35073
|
|
|
34874
35074
|
Available callback parameters are <code>item</code>, <code>index</code>, and <code>array</code>.
|
|
@@ -34896,15 +35096,15 @@ var JSFilterNodeImpl = class extends NodeImpl {
|
|
|
34896
35096
|
var jsFilterNode = nodeDefinition(JSFilterNodeImpl, "JS Filter");
|
|
34897
35097
|
|
|
34898
35098
|
// src/model/nodes/JSMapNode.ts
|
|
34899
|
-
var
|
|
34900
|
-
var
|
|
35099
|
+
var import_non_secure70 = require("nanoid/non-secure");
|
|
35100
|
+
var import_ts_dedent63 = require("ts-dedent");
|
|
34901
35101
|
var DEFAULT_CALLBACK_BODY2 = "return item;";
|
|
34902
35102
|
var JSMapNodeImpl = class extends NodeImpl {
|
|
34903
35103
|
static create() {
|
|
34904
35104
|
const chartNode = {
|
|
34905
35105
|
type: "jsMap",
|
|
34906
35106
|
title: "JS Map",
|
|
34907
|
-
id: (0,
|
|
35107
|
+
id: (0, import_non_secure70.nanoid)(),
|
|
34908
35108
|
visualData: {
|
|
34909
35109
|
x: 0,
|
|
34910
35110
|
y: 0,
|
|
@@ -34936,7 +35136,7 @@ var JSMapNodeImpl = class extends NodeImpl {
|
|
|
34936
35136
|
}
|
|
34937
35137
|
static getUIData() {
|
|
34938
35138
|
return {
|
|
34939
|
-
infoBoxBody:
|
|
35139
|
+
infoBoxBody: import_ts_dedent63.dedent`
|
|
34940
35140
|
Maps an input array using the body of a JavaScript callback.
|
|
34941
35141
|
|
|
34942
35142
|
Available callback parameters are <code>item</code>, <code>index</code>, and <code>array</code>.
|
|
@@ -34964,8 +35164,8 @@ var JSMapNodeImpl = class extends NodeImpl {
|
|
|
34964
35164
|
var jsMapNode = nodeDefinition(JSMapNodeImpl, "JS Map");
|
|
34965
35165
|
|
|
34966
35166
|
// src/model/nodes/ObjectNode.ts
|
|
34967
|
-
var
|
|
34968
|
-
var
|
|
35167
|
+
var import_non_secure71 = require("nanoid/non-secure");
|
|
35168
|
+
var import_ts_dedent64 = require("ts-dedent");
|
|
34969
35169
|
var DEFAULT_JSON_TEMPLATE = `{
|
|
34970
35170
|
"key": "{{input}}"
|
|
34971
35171
|
}`;
|
|
@@ -35012,7 +35212,7 @@ var ObjectNodeImpl = class extends NodeImpl {
|
|
|
35012
35212
|
const chartNode = {
|
|
35013
35213
|
type: "object",
|
|
35014
35214
|
title: "Object",
|
|
35015
|
-
id: (0,
|
|
35215
|
+
id: (0, import_non_secure71.nanoid)(),
|
|
35016
35216
|
visualData: {
|
|
35017
35217
|
x: 0,
|
|
35018
35218
|
y: 0,
|
|
@@ -35063,7 +35263,7 @@ var ObjectNodeImpl = class extends NodeImpl {
|
|
|
35063
35263
|
}
|
|
35064
35264
|
static getUIData() {
|
|
35065
35265
|
return {
|
|
35066
|
-
infoBoxBody:
|
|
35266
|
+
infoBoxBody: import_ts_dedent64.dedent`
|
|
35067
35267
|
Creates an object from input values and a JSON template, escaping the input values and inserting them into the template.
|
|
35068
35268
|
|
|
35069
35269
|
Use double-quotes around the input values to escape them. String values are automatically escaped.
|
|
@@ -35144,14 +35344,14 @@ var ObjectNodeImpl = class extends NodeImpl {
|
|
|
35144
35344
|
var objectNode = nodeDefinition(ObjectNodeImpl, "Object");
|
|
35145
35345
|
|
|
35146
35346
|
// src/model/nodes/BooleanNode.ts
|
|
35147
|
-
var
|
|
35148
|
-
var
|
|
35347
|
+
var import_non_secure72 = require("nanoid/non-secure");
|
|
35348
|
+
var import_ts_dedent65 = require("ts-dedent");
|
|
35149
35349
|
var BooleanNodeImpl = class extends NodeImpl {
|
|
35150
35350
|
static create() {
|
|
35151
35351
|
const chartNode = {
|
|
35152
35352
|
type: "boolean",
|
|
35153
35353
|
title: "Bool",
|
|
35154
|
-
id: (0,
|
|
35354
|
+
id: (0, import_non_secure72.nanoid)(),
|
|
35155
35355
|
visualData: {
|
|
35156
35356
|
x: 0,
|
|
35157
35357
|
y: 0,
|
|
@@ -35189,7 +35389,7 @@ var BooleanNodeImpl = class extends NodeImpl {
|
|
|
35189
35389
|
}
|
|
35190
35390
|
static getUIData() {
|
|
35191
35391
|
return {
|
|
35192
|
-
infoBoxBody:
|
|
35392
|
+
infoBoxBody: import_ts_dedent65.dedent`
|
|
35193
35393
|
Outputs a boolean constant, or converts an input value into a boolean.
|
|
35194
35394
|
`,
|
|
35195
35395
|
infoBoxTitle: "Bool Node",
|
|
@@ -35210,10 +35410,10 @@ var BooleanNodeImpl = class extends NodeImpl {
|
|
|
35210
35410
|
var booleanNode = nodeDefinition(BooleanNodeImpl, "Boolean");
|
|
35211
35411
|
|
|
35212
35412
|
// src/model/nodes/CompareNode.ts
|
|
35213
|
-
var
|
|
35413
|
+
var import_non_secure73 = require("nanoid/non-secure");
|
|
35214
35414
|
var import_lodash_es11 = require("lodash");
|
|
35215
35415
|
var import_ts_pattern4 = require("ts-pattern");
|
|
35216
|
-
var
|
|
35416
|
+
var import_ts_dedent66 = require("ts-dedent");
|
|
35217
35417
|
var compareNodeComparisonFunctionOptions = [
|
|
35218
35418
|
{ label: "==", value: "==" },
|
|
35219
35419
|
{ label: "!=", value: "!=" },
|
|
@@ -35233,7 +35433,7 @@ var CompareNodeImpl = class extends NodeImpl {
|
|
|
35233
35433
|
const chartNode = {
|
|
35234
35434
|
type: "compare",
|
|
35235
35435
|
title: "Compare",
|
|
35236
|
-
id: (0,
|
|
35436
|
+
id: (0, import_non_secure73.nanoid)(),
|
|
35237
35437
|
visualData: {
|
|
35238
35438
|
x: 0,
|
|
35239
35439
|
y: 0,
|
|
@@ -35292,7 +35492,7 @@ var CompareNodeImpl = class extends NodeImpl {
|
|
|
35292
35492
|
}
|
|
35293
35493
|
static getUIData() {
|
|
35294
35494
|
return {
|
|
35295
|
-
infoBoxBody:
|
|
35495
|
+
infoBoxBody: import_ts_dedent66.dedent`
|
|
35296
35496
|
Compares two values using the configured operator and outputs the result.
|
|
35297
35497
|
|
|
35298
35498
|
If the data types of the values do not match, then the B value is converted to the type of the A value.
|
|
@@ -35333,9 +35533,9 @@ var CompareNodeImpl = class extends NodeImpl {
|
|
|
35333
35533
|
var compareNode = nodeDefinition(CompareNodeImpl, "Compare");
|
|
35334
35534
|
|
|
35335
35535
|
// src/model/nodes/EvaluateNode.ts
|
|
35336
|
-
var
|
|
35536
|
+
var import_non_secure74 = require("nanoid/non-secure");
|
|
35337
35537
|
var import_ts_pattern5 = require("ts-pattern");
|
|
35338
|
-
var
|
|
35538
|
+
var import_ts_dedent67 = require("ts-dedent");
|
|
35339
35539
|
var unaryOperation = ["abs", "negate"];
|
|
35340
35540
|
var isUnaryOp = (operation) => unaryOperation.includes(operation);
|
|
35341
35541
|
var EvaluateNodeImpl = class extends NodeImpl {
|
|
@@ -35343,7 +35543,7 @@ var EvaluateNodeImpl = class extends NodeImpl {
|
|
|
35343
35543
|
const chartNode = {
|
|
35344
35544
|
type: "evaluate",
|
|
35345
35545
|
title: "Evaluate",
|
|
35346
|
-
id: (0,
|
|
35546
|
+
id: (0, import_non_secure74.nanoid)(),
|
|
35347
35547
|
visualData: {
|
|
35348
35548
|
x: 0,
|
|
35349
35549
|
y: 0,
|
|
@@ -35421,7 +35621,7 @@ var EvaluateNodeImpl = class extends NodeImpl {
|
|
|
35421
35621
|
}
|
|
35422
35622
|
static getUIData() {
|
|
35423
35623
|
return {
|
|
35424
|
-
infoBoxBody:
|
|
35624
|
+
infoBoxBody: import_ts_dedent67.dedent`
|
|
35425
35625
|
Evaluates the configured mathematical operation on the input values and outputs the result.
|
|
35426
35626
|
|
|
35427
35627
|
For more complex operations, you should use the \`Code\` node.
|
|
@@ -35457,14 +35657,14 @@ var EvaluateNodeImpl = class extends NodeImpl {
|
|
|
35457
35657
|
var evaluateNode = nodeDefinition(EvaluateNodeImpl, "Evaluate");
|
|
35458
35658
|
|
|
35459
35659
|
// src/model/nodes/NumberNode.ts
|
|
35460
|
-
var
|
|
35461
|
-
var
|
|
35660
|
+
var import_non_secure75 = require("nanoid/non-secure");
|
|
35661
|
+
var import_ts_dedent68 = require("ts-dedent");
|
|
35462
35662
|
var NumberNodeImpl = class extends NodeImpl {
|
|
35463
35663
|
static create() {
|
|
35464
35664
|
const chartNode = {
|
|
35465
35665
|
type: "number",
|
|
35466
35666
|
title: "Number",
|
|
35467
|
-
id: (0,
|
|
35667
|
+
id: (0, import_non_secure75.nanoid)(),
|
|
35468
35668
|
visualData: {
|
|
35469
35669
|
x: 0,
|
|
35470
35670
|
y: 0,
|
|
@@ -35508,7 +35708,7 @@ var NumberNodeImpl = class extends NodeImpl {
|
|
|
35508
35708
|
}
|
|
35509
35709
|
static getUIData() {
|
|
35510
35710
|
return {
|
|
35511
|
-
infoBoxBody:
|
|
35711
|
+
infoBoxBody: import_ts_dedent68.dedent`
|
|
35512
35712
|
Outputs a number constant, or converts an input value into a number.
|
|
35513
35713
|
|
|
35514
35714
|
Can be configured to round the number to a certain number of decimal places.
|
|
@@ -35535,8 +35735,8 @@ var NumberNodeImpl = class extends NodeImpl {
|
|
|
35535
35735
|
var numberNode = nodeDefinition(NumberNodeImpl, "Number");
|
|
35536
35736
|
|
|
35537
35737
|
// src/model/nodes/RandomNumberNode.ts
|
|
35538
|
-
var
|
|
35539
|
-
var
|
|
35738
|
+
var import_non_secure76 = require("nanoid/non-secure");
|
|
35739
|
+
var import_ts_dedent69 = require("ts-dedent");
|
|
35540
35740
|
var randomNumberTypeOptions = [
|
|
35541
35741
|
{ value: false, label: "Float" },
|
|
35542
35742
|
{ value: true, label: "Integer" }
|
|
@@ -35546,7 +35746,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
35546
35746
|
const chartNode = {
|
|
35547
35747
|
type: "randomNumber",
|
|
35548
35748
|
title: "Random number",
|
|
35549
|
-
id: (0,
|
|
35749
|
+
id: (0, import_non_secure76.nanoid)(),
|
|
35550
35750
|
visualData: {
|
|
35551
35751
|
x: 0,
|
|
35552
35752
|
y: 0,
|
|
@@ -35604,7 +35804,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
35604
35804
|
];
|
|
35605
35805
|
}
|
|
35606
35806
|
getBody() {
|
|
35607
|
-
return
|
|
35807
|
+
return import_ts_dedent69.dedent`
|
|
35608
35808
|
Min: ${this.data.useMinInput ? "(Input)" : this.data.min ?? 0}
|
|
35609
35809
|
Max: ${this.data.useMaxInput ? "(Input)" : this.data.max ?? 1}
|
|
35610
35810
|
${this.data.integers ? "Integers" : "Floats"}
|
|
@@ -35613,7 +35813,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
35613
35813
|
}
|
|
35614
35814
|
static getUIData() {
|
|
35615
35815
|
return {
|
|
35616
|
-
infoBoxBody:
|
|
35816
|
+
infoBoxBody: import_ts_dedent69.dedent`
|
|
35617
35817
|
Outputs a random number between the configured min and max values.
|
|
35618
35818
|
|
|
35619
35819
|
Can be configured to output only integers, and whether the max value is inclusive or exclusive.
|
|
@@ -35644,15 +35844,15 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
35644
35844
|
var randomNumberNode = nodeDefinition(RandomNumberNodeImpl, "Random number");
|
|
35645
35845
|
|
|
35646
35846
|
// src/model/nodes/ShuffleNode.ts
|
|
35647
|
-
var
|
|
35847
|
+
var import_non_secure77 = require("nanoid/non-secure");
|
|
35648
35848
|
var import_lodash_es12 = require("lodash");
|
|
35649
|
-
var
|
|
35849
|
+
var import_ts_dedent70 = require("ts-dedent");
|
|
35650
35850
|
var ShuffleNodeImpl = class extends NodeImpl {
|
|
35651
35851
|
static create() {
|
|
35652
35852
|
const chartNode = {
|
|
35653
35853
|
type: "shuffle",
|
|
35654
35854
|
title: "Shuffle",
|
|
35655
|
-
id: (0,
|
|
35855
|
+
id: (0, import_non_secure77.nanoid)(),
|
|
35656
35856
|
visualData: {
|
|
35657
35857
|
x: 0,
|
|
35658
35858
|
y: 0,
|
|
@@ -35682,7 +35882,7 @@ var ShuffleNodeImpl = class extends NodeImpl {
|
|
|
35682
35882
|
}
|
|
35683
35883
|
static getUIData() {
|
|
35684
35884
|
return {
|
|
35685
|
-
infoBoxBody:
|
|
35885
|
+
infoBoxBody: import_ts_dedent70.dedent`
|
|
35686
35886
|
Shuffles the input array. Outputs the shuffled array.
|
|
35687
35887
|
`,
|
|
35688
35888
|
infoBoxTitle: "Shuffle Node",
|
|
@@ -35706,14 +35906,14 @@ var ShuffleNodeImpl = class extends NodeImpl {
|
|
|
35706
35906
|
var shuffleNode = nodeDefinition(ShuffleNodeImpl, "Shuffle");
|
|
35707
35907
|
|
|
35708
35908
|
// src/model/nodes/CommentNode.ts
|
|
35709
|
-
var
|
|
35710
|
-
var
|
|
35909
|
+
var import_non_secure78 = require("nanoid/non-secure");
|
|
35910
|
+
var import_ts_dedent71 = require("ts-dedent");
|
|
35711
35911
|
var CommentNodeImpl = class extends NodeImpl {
|
|
35712
35912
|
static create() {
|
|
35713
35913
|
const chartNode = {
|
|
35714
35914
|
type: "comment",
|
|
35715
35915
|
title: "Comment",
|
|
35716
|
-
id: (0,
|
|
35916
|
+
id: (0, import_non_secure78.nanoid)(),
|
|
35717
35917
|
visualData: {
|
|
35718
35918
|
x: 0,
|
|
35719
35919
|
y: 0,
|
|
@@ -35759,7 +35959,7 @@ var CommentNodeImpl = class extends NodeImpl {
|
|
|
35759
35959
|
}
|
|
35760
35960
|
static getUIData() {
|
|
35761
35961
|
return {
|
|
35762
|
-
infoBoxBody:
|
|
35962
|
+
infoBoxBody: import_ts_dedent71.dedent`
|
|
35763
35963
|
A comment node is a node that does nothing. It is useful for adding notes to a graph.
|
|
35764
35964
|
`,
|
|
35765
35965
|
infoBoxTitle: "Comment Node",
|
|
@@ -35774,11 +35974,11 @@ var CommentNodeImpl = class extends NodeImpl {
|
|
|
35774
35974
|
var commentNode = nodeDefinition(CommentNodeImpl, "Comment");
|
|
35775
35975
|
|
|
35776
35976
|
// src/model/nodes/ImageNode.ts
|
|
35777
|
-
var
|
|
35977
|
+
var import_non_secure79 = require("nanoid/non-secure");
|
|
35778
35978
|
var ImageNodeImpl = class extends NodeImpl {
|
|
35779
35979
|
static create() {
|
|
35780
35980
|
return {
|
|
35781
|
-
id: (0,
|
|
35981
|
+
id: (0, import_non_secure79.nanoid)(),
|
|
35782
35982
|
type: "image",
|
|
35783
35983
|
title: "Image",
|
|
35784
35984
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -35875,11 +36075,11 @@ var ImageNodeImpl = class extends NodeImpl {
|
|
|
35875
36075
|
var imageNode = nodeDefinition(ImageNodeImpl, "Image");
|
|
35876
36076
|
|
|
35877
36077
|
// src/model/nodes/AudioNode.ts
|
|
35878
|
-
var
|
|
36078
|
+
var import_non_secure80 = require("nanoid/non-secure");
|
|
35879
36079
|
var AudioNodeImpl = class extends NodeImpl {
|
|
35880
36080
|
static create() {
|
|
35881
36081
|
return {
|
|
35882
|
-
id: (0,
|
|
36082
|
+
id: (0, import_non_secure80.nanoid)(),
|
|
35883
36083
|
type: "audio",
|
|
35884
36084
|
title: "Audio",
|
|
35885
36085
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -35972,10 +36172,11 @@ var AudioNodeImpl = class extends NodeImpl {
|
|
|
35972
36172
|
var audioNode = nodeDefinition(AudioNodeImpl, "Audio");
|
|
35973
36173
|
|
|
35974
36174
|
// src/model/nodes/HttpCallNode.ts
|
|
35975
|
-
var
|
|
36175
|
+
var import_non_secure81 = require("nanoid/non-secure");
|
|
35976
36176
|
var REQUEST_FAILED_OUTPUT_ID = "requestFailed";
|
|
35977
36177
|
var REQUEST_ERROR_OUTPUT_ID = "requestError";
|
|
35978
36178
|
var STATUS_CODE_OUTPUT_ID = "statusCode";
|
|
36179
|
+
var RESPONSE_HEADERS_OUTPUT_ID = "res_headers";
|
|
35979
36180
|
var DEFAULT_RETRY_ON_NON_200_REPEAT_TIMES = 1;
|
|
35980
36181
|
var DEFAULT_RETRY_ON_NON_200_COOLDOWN_MS = 0;
|
|
35981
36182
|
function isAbortError(error, signal) {
|
|
@@ -36023,13 +36224,18 @@ Caused by: ${formatCaughtRequestFailureError(cause, seen)}`;
|
|
|
36023
36224
|
function createHttpCallRequestAttempts() {
|
|
36024
36225
|
return {
|
|
36025
36226
|
statusCodeValues: [],
|
|
36227
|
+
responseHeaderValues: [],
|
|
36026
36228
|
requestFailedValues: [],
|
|
36027
36229
|
requestErrorMessages: []
|
|
36028
36230
|
};
|
|
36029
36231
|
}
|
|
36232
|
+
function getHttpCallResponseHeaders(response) {
|
|
36233
|
+
return Object.fromEntries(response.headers.entries());
|
|
36234
|
+
}
|
|
36030
36235
|
function recordHttpCallResponseAttempt(attempts, response) {
|
|
36031
36236
|
const requestFailed = response.status !== 200;
|
|
36032
36237
|
attempts.statusCodeValues.push(response.status);
|
|
36238
|
+
attempts.responseHeaderValues.push(getHttpCallResponseHeaders(response));
|
|
36033
36239
|
attempts.requestFailedValues.push(requestFailed);
|
|
36034
36240
|
if (requestFailed) {
|
|
36035
36241
|
attempts.requestErrorMessages.push(formatCaughtRequestFailureError(buildNon2xxStatusCodeError(response.status)));
|
|
@@ -36051,6 +36257,18 @@ function buildRetryAttemptOutput(type, values2) {
|
|
|
36051
36257
|
value: void 0
|
|
36052
36258
|
};
|
|
36053
36259
|
}
|
|
36260
|
+
function buildHttpCallResponseMetadataOutputs(response, requestAttempts) {
|
|
36261
|
+
return {
|
|
36262
|
+
[STATUS_CODE_OUTPUT_ID]: requestAttempts ? buildRetryAttemptOutput("number[]", requestAttempts.statusCodeValues) : {
|
|
36263
|
+
type: "number",
|
|
36264
|
+
value: response.status
|
|
36265
|
+
},
|
|
36266
|
+
[RESPONSE_HEADERS_OUTPUT_ID]: requestAttempts ? buildRetryAttemptOutput("object[]", requestAttempts.responseHeaderValues) : {
|
|
36267
|
+
type: "object",
|
|
36268
|
+
value: getHttpCallResponseHeaders(response)
|
|
36269
|
+
}
|
|
36270
|
+
};
|
|
36271
|
+
}
|
|
36054
36272
|
function isCaughtFailureAlreadyRecorded(attempts, error) {
|
|
36055
36273
|
var _a;
|
|
36056
36274
|
const formattedError = formatCaughtRequestFailureError(error);
|
|
@@ -36071,7 +36289,7 @@ function withCaughtFailureAttemptFallback(attempts, error) {
|
|
|
36071
36289
|
const requestFailedValues = attempts.requestFailedValues.length > 0 ? [...attempts.requestFailedValues] : [true];
|
|
36072
36290
|
requestFailedValues[requestFailedValues.length - 1] = true;
|
|
36073
36291
|
return {
|
|
36074
|
-
|
|
36292
|
+
...attempts,
|
|
36075
36293
|
requestFailedValues,
|
|
36076
36294
|
requestErrorMessages: [...attempts.requestErrorMessages, formatCaughtRequestFailureError(error)]
|
|
36077
36295
|
};
|
|
@@ -36121,7 +36339,7 @@ function buildRequestFailedOutputs(params) {
|
|
|
36121
36339
|
type: "control-flow-excluded",
|
|
36122
36340
|
value: void 0
|
|
36123
36341
|
},
|
|
36124
|
-
[
|
|
36342
|
+
[RESPONSE_HEADERS_OUTPUT_ID]: {
|
|
36125
36343
|
type: "control-flow-excluded",
|
|
36126
36344
|
value: void 0
|
|
36127
36345
|
}
|
|
@@ -36201,7 +36419,7 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36201
36419
|
const chartNode = {
|
|
36202
36420
|
type: "httpCall",
|
|
36203
36421
|
title: "Http Call",
|
|
36204
|
-
id: (0,
|
|
36422
|
+
id: (0, import_non_secure81.nanoid)(),
|
|
36205
36423
|
visualData: {
|
|
36206
36424
|
x: 0,
|
|
36207
36425
|
y: 0,
|
|
@@ -36282,8 +36500,8 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36282
36500
|
title: "Status Code"
|
|
36283
36501
|
},
|
|
36284
36502
|
{
|
|
36285
|
-
dataType: "object",
|
|
36286
|
-
id:
|
|
36503
|
+
dataType: this.data.retryOnNon200 ? "object[]" : "object",
|
|
36504
|
+
id: RESPONSE_HEADERS_OUTPUT_ID,
|
|
36287
36505
|
title: "Headers"
|
|
36288
36506
|
}
|
|
36289
36507
|
);
|
|
@@ -36375,7 +36593,8 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36375
36593
|
{
|
|
36376
36594
|
type: "toggle",
|
|
36377
36595
|
label: "Fail on non-2XX status code",
|
|
36378
|
-
dataKey: "errorOnNon200"
|
|
36596
|
+
dataKey: "errorOnNon200",
|
|
36597
|
+
helperMessage: (data) => data.retryOnNon200 ? "With Retry on non-200 enabled, only the final response after all retries is checked." : void 0
|
|
36379
36598
|
},
|
|
36380
36599
|
{
|
|
36381
36600
|
type: "toggle",
|
|
@@ -36398,7 +36617,7 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36398
36617
|
};
|
|
36399
36618
|
}
|
|
36400
36619
|
async process(inputs, context) {
|
|
36401
|
-
var _a;
|
|
36620
|
+
var _a, _b;
|
|
36402
36621
|
const requestAttempts = this.data.retryOnNon200 ? createHttpCallRequestAttempts() : void 0;
|
|
36403
36622
|
try {
|
|
36404
36623
|
const method = getInputOrData(this.data, inputs, "method", "string");
|
|
@@ -36476,19 +36695,18 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36476
36695
|
response = await performTrackedRequest();
|
|
36477
36696
|
}
|
|
36478
36697
|
}
|
|
36698
|
+
const responseMetadataOutputs = buildHttpCallResponseMetadataOutputs(response, requestAttempts);
|
|
36479
36699
|
if (this.data.errorOnNon200 && !response.ok) {
|
|
36700
|
+
if (!this.data.catchRequestFailed) {
|
|
36701
|
+
if (context.setFailureOutputs) {
|
|
36702
|
+
context.setFailureOutputs(responseMetadataOutputs);
|
|
36703
|
+
} else {
|
|
36704
|
+
(_a = context.onPartialOutputs) == null ? void 0 : _a.call(context, responseMetadataOutputs);
|
|
36705
|
+
}
|
|
36706
|
+
}
|
|
36480
36707
|
throw buildNon2xxStatusCodeError(response.status);
|
|
36481
36708
|
}
|
|
36482
|
-
const output =
|
|
36483
|
-
[STATUS_CODE_OUTPUT_ID]: requestAttempts ? buildRetryAttemptOutput("number[]", requestAttempts.statusCodeValues) : {
|
|
36484
|
-
type: "number",
|
|
36485
|
-
value: response.status
|
|
36486
|
-
},
|
|
36487
|
-
["res_headers"]: {
|
|
36488
|
-
type: "object",
|
|
36489
|
-
value: Object.fromEntries(response.headers.entries())
|
|
36490
|
-
}
|
|
36491
|
-
};
|
|
36709
|
+
const output = responseMetadataOutputs;
|
|
36492
36710
|
if (this.data.isBinaryOutput) {
|
|
36493
36711
|
const responseBlob = await response.blob();
|
|
36494
36712
|
output["binary"] = {
|
|
@@ -36501,7 +36719,7 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36501
36719
|
type: "string",
|
|
36502
36720
|
value: responseText
|
|
36503
36721
|
};
|
|
36504
|
-
if ((
|
|
36722
|
+
if ((_b = response.headers.get("content-type")) == null ? void 0 : _b.includes("application/json")) {
|
|
36505
36723
|
const jsonData = JSON.parse(responseText);
|
|
36506
36724
|
output["json"] = {
|
|
36507
36725
|
type: "object",
|
|
@@ -36541,14 +36759,14 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
36541
36759
|
var httpCallNode = nodeDefinition(HttpCallNodeImpl, "Http Call");
|
|
36542
36760
|
|
|
36543
36761
|
// src/model/nodes/DelayNode.ts
|
|
36544
|
-
var
|
|
36545
|
-
var
|
|
36762
|
+
var import_non_secure82 = require("nanoid/non-secure");
|
|
36763
|
+
var import_ts_dedent72 = require("ts-dedent");
|
|
36546
36764
|
var DelayNodeImpl = class extends NodeImpl {
|
|
36547
36765
|
static create() {
|
|
36548
36766
|
const chartNode = {
|
|
36549
36767
|
type: "delay",
|
|
36550
36768
|
title: "Delay",
|
|
36551
|
-
id: (0,
|
|
36769
|
+
id: (0, import_non_secure82.nanoid)(),
|
|
36552
36770
|
visualData: {
|
|
36553
36771
|
x: 0,
|
|
36554
36772
|
y: 0,
|
|
@@ -36593,7 +36811,7 @@ var DelayNodeImpl = class extends NodeImpl {
|
|
|
36593
36811
|
}
|
|
36594
36812
|
static getUIData() {
|
|
36595
36813
|
return {
|
|
36596
|
-
infoBoxBody:
|
|
36814
|
+
infoBoxBody: import_ts_dedent72.dedent`
|
|
36597
36815
|
Delays the execution and then passes the input value to the output without any modifications.
|
|
36598
36816
|
`,
|
|
36599
36817
|
infoBoxTitle: "Delay Node",
|
|
@@ -36630,12 +36848,12 @@ var DelayNodeImpl = class extends NodeImpl {
|
|
|
36630
36848
|
var delayNode = nodeDefinition(DelayNodeImpl, "Delay");
|
|
36631
36849
|
|
|
36632
36850
|
// src/model/nodes/AppendToDatasetNode.ts
|
|
36633
|
-
var
|
|
36634
|
-
var
|
|
36851
|
+
var import_non_secure83 = require("nanoid/non-secure");
|
|
36852
|
+
var import_ts_dedent73 = require("ts-dedent");
|
|
36635
36853
|
var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
36636
36854
|
static create() {
|
|
36637
36855
|
return {
|
|
36638
|
-
id: (0,
|
|
36856
|
+
id: (0, import_non_secure83.nanoid)(),
|
|
36639
36857
|
type: "appendToDataset",
|
|
36640
36858
|
title: "Append to Dataset",
|
|
36641
36859
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -36691,7 +36909,7 @@ var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
|
36691
36909
|
}
|
|
36692
36910
|
static getUIData() {
|
|
36693
36911
|
return {
|
|
36694
|
-
infoBoxBody:
|
|
36912
|
+
infoBoxBody: import_ts_dedent73.dedent`
|
|
36695
36913
|
Appends a row of data to the specified dataset.
|
|
36696
36914
|
`,
|
|
36697
36915
|
infoBoxTitle: "Append to Dataset Node",
|
|
@@ -37241,14 +37459,14 @@ var GetDatasetRowNodeImpl = class extends NodeImpl {
|
|
|
37241
37459
|
var getDatasetRowNode = nodeDefinition(GetDatasetRowNodeImpl, "Get Dataset Row");
|
|
37242
37460
|
|
|
37243
37461
|
// src/model/nodes/SliceNode.ts
|
|
37244
|
-
var
|
|
37245
|
-
var
|
|
37462
|
+
var import_non_secure84 = require("nanoid/non-secure");
|
|
37463
|
+
var import_ts_dedent74 = require("ts-dedent");
|
|
37246
37464
|
var SliceNodeImpl = class extends NodeImpl {
|
|
37247
37465
|
static create() {
|
|
37248
37466
|
const chartNode = {
|
|
37249
37467
|
type: "slice",
|
|
37250
37468
|
title: "Slice",
|
|
37251
|
-
id: (0,
|
|
37469
|
+
id: (0, import_non_secure84.nanoid)(),
|
|
37252
37470
|
visualData: {
|
|
37253
37471
|
x: 0,
|
|
37254
37472
|
y: 0,
|
|
@@ -37301,14 +37519,14 @@ var SliceNodeImpl = class extends NodeImpl {
|
|
|
37301
37519
|
];
|
|
37302
37520
|
}
|
|
37303
37521
|
getBody() {
|
|
37304
|
-
return
|
|
37522
|
+
return import_ts_dedent74.dedent`
|
|
37305
37523
|
Start: ${this.data.useStartInput ? "(Using Input)" : this.data.start == null ? "0" : this.data.start}
|
|
37306
37524
|
Count: ${this.data.useCountInput ? "(Using Input)" : this.data.count == null ? "All" : this.data.count}
|
|
37307
37525
|
`;
|
|
37308
37526
|
}
|
|
37309
37527
|
static getUIData() {
|
|
37310
37528
|
return {
|
|
37311
|
-
infoBoxBody:
|
|
37529
|
+
infoBoxBody: import_ts_dedent74.dedent`
|
|
37312
37530
|
Slices an array from the start index for the count number of elements.
|
|
37313
37531
|
|
|
37314
37532
|
Useful for extracting a portion of an array.
|
|
@@ -37334,14 +37552,14 @@ var SliceNodeImpl = class extends NodeImpl {
|
|
|
37334
37552
|
var sliceNode = nodeDefinition(SliceNodeImpl, "Slice");
|
|
37335
37553
|
|
|
37336
37554
|
// src/model/nodes/ExtractMarkdownCodeBlocksNode.ts
|
|
37337
|
-
var
|
|
37338
|
-
var
|
|
37555
|
+
var import_non_secure85 = require("nanoid/non-secure");
|
|
37556
|
+
var import_ts_dedent75 = require("ts-dedent");
|
|
37339
37557
|
var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
37340
37558
|
static create() {
|
|
37341
37559
|
const chartNode = {
|
|
37342
37560
|
type: "extractMarkdownCodeBlocks",
|
|
37343
37561
|
title: "Extract Markdown Code Blocks",
|
|
37344
|
-
id: (0,
|
|
37562
|
+
id: (0, import_non_secure85.nanoid)(),
|
|
37345
37563
|
visualData: {
|
|
37346
37564
|
x: 0,
|
|
37347
37565
|
y: 0,
|
|
@@ -37382,7 +37600,7 @@ var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
|
37382
37600
|
}
|
|
37383
37601
|
static getUIData() {
|
|
37384
37602
|
return {
|
|
37385
|
-
infoBoxBody:
|
|
37603
|
+
infoBoxBody: import_ts_dedent75.dedent`
|
|
37386
37604
|
Extracts the code blocks in the input Markdown text.
|
|
37387
37605
|
|
|
37388
37606
|
Outputs the first matched block, all matched blocks, and the languages specified for the blocks.
|
|
@@ -37433,7 +37651,7 @@ var extractMarkdownCodeBlocksNode = nodeDefinition(
|
|
|
37433
37651
|
);
|
|
37434
37652
|
|
|
37435
37653
|
// src/model/nodes/AssembleMessageNode.ts
|
|
37436
|
-
var
|
|
37654
|
+
var import_non_secure86 = require("nanoid/non-secure");
|
|
37437
37655
|
var import_lodash_es13 = require("lodash");
|
|
37438
37656
|
var import_ts_pattern6 = require("ts-pattern");
|
|
37439
37657
|
var messageTypeToTitle = {
|
|
@@ -37448,7 +37666,7 @@ var AssembleMessageNodeImpl = class extends NodeImpl {
|
|
|
37448
37666
|
const chartNode = {
|
|
37449
37667
|
type: "assembleMessage",
|
|
37450
37668
|
title: "Assemble Message",
|
|
37451
|
-
id: (0,
|
|
37669
|
+
id: (0, import_non_secure86.nanoid)(),
|
|
37452
37670
|
visualData: {
|
|
37453
37671
|
x: 0,
|
|
37454
37672
|
y: 0,
|
|
@@ -37638,13 +37856,13 @@ var AssembleMessageNodeImpl = class extends NodeImpl {
|
|
|
37638
37856
|
var assembleMessageNode = nodeDefinition(AssembleMessageNodeImpl, "Assemble Prompt");
|
|
37639
37857
|
|
|
37640
37858
|
// src/model/nodes/URLReferenceNode.ts
|
|
37641
|
-
var
|
|
37859
|
+
var import_non_secure87 = require("nanoid/non-secure");
|
|
37642
37860
|
var UrlReferenceNodeImpl = class extends NodeImpl {
|
|
37643
37861
|
static create() {
|
|
37644
37862
|
const chartNode = {
|
|
37645
37863
|
type: "urlReference",
|
|
37646
37864
|
title: "URL Reference",
|
|
37647
|
-
id: (0,
|
|
37865
|
+
id: (0, import_non_secure87.nanoid)(),
|
|
37648
37866
|
visualData: {
|
|
37649
37867
|
x: 0,
|
|
37650
37868
|
y: 0,
|
|
@@ -37713,14 +37931,14 @@ var UrlReferenceNodeImpl = class extends NodeImpl {
|
|
|
37713
37931
|
var urlReferenceNode = nodeDefinition(UrlReferenceNodeImpl, "URL Reference");
|
|
37714
37932
|
|
|
37715
37933
|
// src/model/nodes/DestructureNode.ts
|
|
37716
|
-
var
|
|
37717
|
-
var
|
|
37934
|
+
var import_non_secure88 = require("nanoid/non-secure");
|
|
37935
|
+
var import_ts_dedent76 = require("ts-dedent");
|
|
37718
37936
|
var DestructureNodeImpl = class extends NodeImpl {
|
|
37719
37937
|
static create() {
|
|
37720
37938
|
const chartNode = {
|
|
37721
37939
|
type: "destructure",
|
|
37722
37940
|
title: "Destructure",
|
|
37723
|
-
id: (0,
|
|
37941
|
+
id: (0, import_non_secure88.nanoid)(),
|
|
37724
37942
|
visualData: {
|
|
37725
37943
|
x: 0,
|
|
37726
37944
|
y: 0,
|
|
@@ -37728,7 +37946,7 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
37728
37946
|
},
|
|
37729
37947
|
data: {
|
|
37730
37948
|
paths: ["$.value"],
|
|
37731
|
-
pathPortIds: [(0,
|
|
37949
|
+
pathPortIds: [(0, import_non_secure88.nanoid)()]
|
|
37732
37950
|
}
|
|
37733
37951
|
};
|
|
37734
37952
|
return chartNode;
|
|
@@ -37782,7 +38000,7 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
37782
38000
|
}
|
|
37783
38001
|
static getUIData() {
|
|
37784
38002
|
return {
|
|
37785
|
-
infoBoxBody:
|
|
38003
|
+
infoBoxBody: import_ts_dedent76.dedent`
|
|
37786
38004
|
Destructures the input value by extracting values at the specified paths. The paths use JSONPath notation to navigate through the value.
|
|
37787
38005
|
`,
|
|
37788
38006
|
infoBoxTitle: "Destructure Node",
|
|
@@ -37816,12 +38034,12 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
37816
38034
|
var destructureNode = nodeDefinition(DestructureNodeImpl, "Destructure");
|
|
37817
38035
|
|
|
37818
38036
|
// src/model/nodes/ReplaceDatasetNode.ts
|
|
37819
|
-
var
|
|
37820
|
-
var
|
|
38037
|
+
var import_non_secure89 = require("nanoid/non-secure");
|
|
38038
|
+
var import_ts_dedent77 = require("ts-dedent");
|
|
37821
38039
|
var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
37822
38040
|
static create() {
|
|
37823
38041
|
return {
|
|
37824
|
-
id: (0,
|
|
38042
|
+
id: (0, import_non_secure89.nanoid)(),
|
|
37825
38043
|
type: "replaceDataset",
|
|
37826
38044
|
title: "Replace Dataset",
|
|
37827
38045
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -37860,7 +38078,7 @@ var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
|
37860
38078
|
}
|
|
37861
38079
|
static getUIData() {
|
|
37862
38080
|
return {
|
|
37863
|
-
infoBoxBody:
|
|
38081
|
+
infoBoxBody: import_ts_dedent77.dedent`
|
|
37864
38082
|
Replaces the data in a dataset with the given data. If no data is given, the dataset will be cleared instead.
|
|
37865
38083
|
`,
|
|
37866
38084
|
infoBoxTitle: "Replace Dataset Node",
|
|
@@ -37992,14 +38210,14 @@ var ListGraphsNodeImpl = class extends NodeImpl {
|
|
|
37992
38210
|
var listGraphsNode = nodeDefinition(ListGraphsNodeImpl, "List Graphs");
|
|
37993
38211
|
|
|
37994
38212
|
// src/model/nodes/GraphReferenceNode.ts
|
|
37995
|
-
var
|
|
37996
|
-
var
|
|
38213
|
+
var import_non_secure90 = require("nanoid/non-secure");
|
|
38214
|
+
var import_ts_dedent78 = require("ts-dedent");
|
|
37997
38215
|
var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
37998
38216
|
static create() {
|
|
37999
38217
|
const chartNode = {
|
|
38000
38218
|
type: "graphReference",
|
|
38001
38219
|
title: "Graph Reference",
|
|
38002
|
-
id: (0,
|
|
38220
|
+
id: (0, import_non_secure90.nanoid)(),
|
|
38003
38221
|
visualData: {
|
|
38004
38222
|
x: 0,
|
|
38005
38223
|
y: 0,
|
|
@@ -38048,7 +38266,7 @@ var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
|
38048
38266
|
}
|
|
38049
38267
|
static getUIData() {
|
|
38050
38268
|
return {
|
|
38051
|
-
infoBoxBody:
|
|
38269
|
+
infoBoxBody: import_ts_dedent78.dedent`
|
|
38052
38270
|
Gets a reference to another graph, that can be used to pass around graphs to call using a Call Graph node.
|
|
38053
38271
|
`,
|
|
38054
38272
|
infoBoxTitle: "Graph Reference Node",
|
|
@@ -38114,8 +38332,8 @@ var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
|
38114
38332
|
var graphReferenceNode = nodeDefinition(GraphReferenceNodeImpl, "Graph Reference");
|
|
38115
38333
|
|
|
38116
38334
|
// src/model/nodes/CallGraphNode.ts
|
|
38117
|
-
var
|
|
38118
|
-
var
|
|
38335
|
+
var import_non_secure91 = require("nanoid/non-secure");
|
|
38336
|
+
var import_ts_dedent79 = require("ts-dedent");
|
|
38119
38337
|
|
|
38120
38338
|
// src/api/looseDataValue.ts
|
|
38121
38339
|
var import_lodash_es14 = require("lodash");
|
|
@@ -38141,7 +38359,7 @@ var CallGraphNodeImpl = class extends NodeImpl {
|
|
|
38141
38359
|
const chartNode = {
|
|
38142
38360
|
type: "callGraph",
|
|
38143
38361
|
title: "Call Graph",
|
|
38144
|
-
id: (0,
|
|
38362
|
+
id: (0, import_non_secure91.nanoid)(),
|
|
38145
38363
|
visualData: {
|
|
38146
38364
|
x: 0,
|
|
38147
38365
|
y: 0,
|
|
@@ -38191,7 +38409,7 @@ var CallGraphNodeImpl = class extends NodeImpl {
|
|
|
38191
38409
|
}
|
|
38192
38410
|
static getUIData() {
|
|
38193
38411
|
return {
|
|
38194
|
-
infoBoxBody:
|
|
38412
|
+
infoBoxBody: import_ts_dedent79.dedent`
|
|
38195
38413
|
Calls another graph and passes inputs to it. Use in combination with the Graph Reference node to call dynamic graphs.
|
|
38196
38414
|
`,
|
|
38197
38415
|
infoBoxTitle: "Call Graph Node",
|
|
@@ -38263,7 +38481,7 @@ var callGraphNode = nodeDefinition(CallGraphNodeImpl, "Call Graph");
|
|
|
38263
38481
|
|
|
38264
38482
|
// src/model/nodes/DelegateFunctionCallNode.ts
|
|
38265
38483
|
var import_nanoid = require("nanoid");
|
|
38266
|
-
var
|
|
38484
|
+
var import_ts_dedent80 = require("ts-dedent");
|
|
38267
38485
|
var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
38268
38486
|
static create() {
|
|
38269
38487
|
const chartNode = {
|
|
@@ -38346,7 +38564,7 @@ var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
|
38346
38564
|
}
|
|
38347
38565
|
static getUIData() {
|
|
38348
38566
|
return {
|
|
38349
|
-
infoBoxBody:
|
|
38567
|
+
infoBoxBody: import_ts_dedent80.dedent`
|
|
38350
38568
|
Handles a tool call by delegating it to a different subgraph depending on the tool call.
|
|
38351
38569
|
`,
|
|
38352
38570
|
infoBoxTitle: "Delegate Tool Call Node",
|
|
@@ -38433,11 +38651,11 @@ function getDelegatedToolCallRecords(input) {
|
|
|
38433
38651
|
var delegateFunctionCallNode = nodeDefinition(DelegateFunctionCallNodeImpl, "Delegate Tool Call");
|
|
38434
38652
|
|
|
38435
38653
|
// src/model/nodes/PlayAudioNode.ts
|
|
38436
|
-
var
|
|
38654
|
+
var import_non_secure92 = require("nanoid/non-secure");
|
|
38437
38655
|
var PlayAudioNodeImpl = class extends NodeImpl {
|
|
38438
38656
|
static create() {
|
|
38439
38657
|
return {
|
|
38440
|
-
id: (0,
|
|
38658
|
+
id: (0, import_non_secure92.nanoid)(),
|
|
38441
38659
|
type: "playAudio",
|
|
38442
38660
|
title: "Play Audio",
|
|
38443
38661
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -38491,11 +38709,11 @@ var PlayAudioNodeImpl = class extends NodeImpl {
|
|
|
38491
38709
|
var playAudioNode = nodeDefinition(PlayAudioNodeImpl, "Play Audio");
|
|
38492
38710
|
|
|
38493
38711
|
// src/model/nodes/DocumentNode.ts
|
|
38494
|
-
var
|
|
38712
|
+
var import_non_secure93 = require("nanoid/non-secure");
|
|
38495
38713
|
var DocumentNodeImpl = class extends NodeImpl {
|
|
38496
38714
|
static create() {
|
|
38497
38715
|
return {
|
|
38498
|
-
id: (0,
|
|
38716
|
+
id: (0, import_non_secure93.nanoid)(),
|
|
38499
38717
|
type: "document",
|
|
38500
38718
|
title: "Document",
|
|
38501
38719
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -38661,15 +38879,15 @@ var DocumentNodeImpl = class extends NodeImpl {
|
|
|
38661
38879
|
var documentNode = nodeDefinition(DocumentNodeImpl, "Document");
|
|
38662
38880
|
|
|
38663
38881
|
// src/model/nodes/ChatLoopNode.ts
|
|
38664
|
-
var
|
|
38665
|
-
var
|
|
38882
|
+
var import_non_secure94 = require("nanoid/non-secure");
|
|
38883
|
+
var import_ts_dedent81 = require("ts-dedent");
|
|
38666
38884
|
var chatLoopLegacyDisplayName = "Chat Loop (legacy)";
|
|
38667
38885
|
var ChatLoopNodeImpl = class extends NodeImpl {
|
|
38668
38886
|
static create() {
|
|
38669
38887
|
const chartNode = {
|
|
38670
38888
|
type: "chatLoop",
|
|
38671
38889
|
title: chatLoopLegacyDisplayName,
|
|
38672
|
-
id: (0,
|
|
38890
|
+
id: (0, import_non_secure94.nanoid)(),
|
|
38673
38891
|
visualData: {
|
|
38674
38892
|
x: 0,
|
|
38675
38893
|
y: 0,
|
|
@@ -38702,7 +38920,7 @@ var ChatLoopNodeImpl = class extends NodeImpl {
|
|
|
38702
38920
|
}
|
|
38703
38921
|
static getUIData() {
|
|
38704
38922
|
return {
|
|
38705
|
-
infoBoxBody:
|
|
38923
|
+
infoBoxBody: import_ts_dedent81.dedent`
|
|
38706
38924
|
Creates an interactive chat loop with an AI model. The node will:
|
|
38707
38925
|
1. Send the initial prompt to the AI
|
|
38708
38926
|
2. Show the AI's response and prompt for user input
|
|
@@ -38802,12 +39020,12 @@ var ChatLoopNodeImpl = class extends NodeImpl {
|
|
|
38802
39020
|
var chatLoopNode = nodeDefinition(ChatLoopNodeImpl, chatLoopLegacyDisplayName);
|
|
38803
39021
|
|
|
38804
39022
|
// src/model/nodes/ReadAllFilesNode.ts
|
|
38805
|
-
var
|
|
38806
|
-
var
|
|
39023
|
+
var import_non_secure95 = require("nanoid/non-secure");
|
|
39024
|
+
var import_ts_dedent82 = require("ts-dedent");
|
|
38807
39025
|
var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
38808
39026
|
static create() {
|
|
38809
39027
|
return {
|
|
38810
|
-
id: (0,
|
|
39028
|
+
id: (0, import_non_secure95.nanoid)(),
|
|
38811
39029
|
type: "readAllFiles",
|
|
38812
39030
|
title: "Read All Files",
|
|
38813
39031
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -38918,7 +39136,7 @@ var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
|
38918
39136
|
];
|
|
38919
39137
|
}
|
|
38920
39138
|
getBody() {
|
|
38921
|
-
return
|
|
39139
|
+
return import_ts_dedent82.dedent`
|
|
38922
39140
|
${this.data.asBinary ? "Read as Binary" : "Read as Text"}
|
|
38923
39141
|
Path: ${this.data.usePathInput ? "(Input)" : this.data.path}
|
|
38924
39142
|
Recursive: ${this.data.useRecursiveInput ? "(Input)" : this.data.recursive}
|
|
@@ -38927,7 +39145,7 @@ var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
|
38927
39145
|
}
|
|
38928
39146
|
static getUIData() {
|
|
38929
39147
|
return {
|
|
38930
|
-
infoBoxBody:
|
|
39148
|
+
infoBoxBody: import_ts_dedent82.dedent`
|
|
38931
39149
|
Reads all files in the specified directory and outputs an array of objects containing each file's path and contents.
|
|
38932
39150
|
Each object has a 'path' (string) and 'content' (string or binary) property.
|
|
38933
39151
|
`,
|
|
@@ -39000,14 +39218,14 @@ var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
|
39000
39218
|
var readAllFilesNode = nodeDefinition(ReadAllFilesNodeImpl, "Read All Files");
|
|
39001
39219
|
|
|
39002
39220
|
// src/model/nodes/ToMarkdownTableNode.ts
|
|
39003
|
-
var
|
|
39004
|
-
var
|
|
39221
|
+
var import_non_secure96 = require("nanoid/non-secure");
|
|
39222
|
+
var import_ts_dedent83 = require("ts-dedent");
|
|
39005
39223
|
var ToMarkdownTableNodeImpl = class extends NodeImpl {
|
|
39006
39224
|
static create() {
|
|
39007
39225
|
const chartNode = {
|
|
39008
39226
|
type: "toMarkdownTable",
|
|
39009
39227
|
title: "To Markdown Table",
|
|
39010
|
-
id: (0,
|
|
39228
|
+
id: (0, import_non_secure96.nanoid)(),
|
|
39011
39229
|
visualData: {
|
|
39012
39230
|
x: 0,
|
|
39013
39231
|
y: 0,
|
|
@@ -39061,7 +39279,7 @@ var ToMarkdownTableNodeImpl = class extends NodeImpl {
|
|
|
39061
39279
|
}
|
|
39062
39280
|
static getUIData() {
|
|
39063
39281
|
return {
|
|
39064
|
-
infoBoxBody:
|
|
39282
|
+
infoBoxBody: import_ts_dedent83.dedent`
|
|
39065
39283
|
Converts an array of objects into a markdown table format.
|
|
39066
39284
|
Input should be an array of objects with consistent keys.
|
|
39067
39285
|
`,
|
|
@@ -39113,7 +39331,7 @@ var toMarkdownTableNode = nodeDefinition(ToMarkdownTableNodeImpl, "To Markdown T
|
|
|
39113
39331
|
|
|
39114
39332
|
// src/model/nodes/CronNode.ts
|
|
39115
39333
|
var import_nanoid2 = require("nanoid");
|
|
39116
|
-
var
|
|
39334
|
+
var import_ts_dedent84 = require("ts-dedent");
|
|
39117
39335
|
var cronParser = __toESM(require("cron-parser"), 1);
|
|
39118
39336
|
var CronNodeImpl = class extends NodeImpl {
|
|
39119
39337
|
static create() {
|
|
@@ -39183,7 +39401,7 @@ var CronNodeImpl = class extends NodeImpl {
|
|
|
39183
39401
|
}
|
|
39184
39402
|
static getUIData() {
|
|
39185
39403
|
return {
|
|
39186
|
-
infoBoxBody:
|
|
39404
|
+
infoBoxBody: import_ts_dedent84.dedent`
|
|
39187
39405
|
Executes a subgraph on a schedule. Supports:
|
|
39188
39406
|
- Natural language (e.g., "every 5 minutes", "daily at 3pm")
|
|
39189
39407
|
- Cron expressions (e.g., "0 * * * *")
|
|
@@ -39223,7 +39441,7 @@ var CronNodeImpl = class extends NodeImpl {
|
|
|
39223
39441
|
type: "string",
|
|
39224
39442
|
dataKey: "schedule",
|
|
39225
39443
|
label: "Schedule",
|
|
39226
|
-
helperMessage:
|
|
39444
|
+
helperMessage: import_ts_dedent84.dedent`
|
|
39227
39445
|
Examples:
|
|
39228
39446
|
Cron: "*/5 * * * *", "0 15 * * *"
|
|
39229
39447
|
Interval: "5 minutes", "1 hour", "7 days"
|
|
@@ -39354,15 +39572,15 @@ ${this.data.schedule}`;
|
|
|
39354
39572
|
var cronNode = nodeDefinition(CronNodeImpl, "Cron");
|
|
39355
39573
|
|
|
39356
39574
|
// src/model/nodes/ToTreeNode.ts
|
|
39357
|
-
var
|
|
39358
|
-
var
|
|
39575
|
+
var import_non_secure97 = require("nanoid/non-secure");
|
|
39576
|
+
var import_ts_dedent85 = require("ts-dedent");
|
|
39359
39577
|
var import_lodash_es15 = require("lodash");
|
|
39360
39578
|
var ToTreeNodeImpl = class extends NodeImpl {
|
|
39361
39579
|
static create() {
|
|
39362
39580
|
const chartNode = {
|
|
39363
39581
|
type: "toTree",
|
|
39364
39582
|
title: "To Tree",
|
|
39365
|
-
id: (0,
|
|
39583
|
+
id: (0, import_non_secure97.nanoid)(),
|
|
39366
39584
|
visualData: {
|
|
39367
39585
|
x: 0,
|
|
39368
39586
|
y: 0,
|
|
@@ -39417,7 +39635,7 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
39417
39635
|
];
|
|
39418
39636
|
}
|
|
39419
39637
|
getBody() {
|
|
39420
|
-
return
|
|
39638
|
+
return import_ts_dedent85.dedent`
|
|
39421
39639
|
Format: ${this.data.format}
|
|
39422
39640
|
Children: ${this.data.childrenProperty}
|
|
39423
39641
|
Sort: ${this.data.useSortAlphabetically ? "Yes" : "No"}
|
|
@@ -39425,7 +39643,7 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
39425
39643
|
}
|
|
39426
39644
|
static getUIData() {
|
|
39427
39645
|
return {
|
|
39428
|
-
infoBoxBody:
|
|
39646
|
+
infoBoxBody: import_ts_dedent85.dedent`
|
|
39429
39647
|
Converts an array of objects into a tree structure and renders it as text.
|
|
39430
39648
|
|
|
39431
39649
|
The format field supports interpolation using {{property}} syntax to determine
|
|
@@ -39483,14 +39701,14 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
39483
39701
|
var toTreeNode = nodeDefinition(ToTreeNodeImpl, "To Tree");
|
|
39484
39702
|
|
|
39485
39703
|
// src/model/nodes/LoopUntilNode.ts
|
|
39486
|
-
var
|
|
39487
|
-
var
|
|
39704
|
+
var import_non_secure98 = require("nanoid/non-secure");
|
|
39705
|
+
var import_ts_dedent86 = require("ts-dedent");
|
|
39488
39706
|
var LoopUntilNodeImpl = class extends NodeImpl {
|
|
39489
39707
|
static create() {
|
|
39490
39708
|
const chartNode = {
|
|
39491
39709
|
type: "loopUntil",
|
|
39492
39710
|
title: "Loop Until",
|
|
39493
|
-
id: (0,
|
|
39711
|
+
id: (0, import_non_secure98.nanoid)(),
|
|
39494
39712
|
visualData: {
|
|
39495
39713
|
x: 0,
|
|
39496
39714
|
y: 0,
|
|
@@ -39586,7 +39804,7 @@ var LoopUntilNodeImpl = class extends NodeImpl {
|
|
|
39586
39804
|
}
|
|
39587
39805
|
static getUIData() {
|
|
39588
39806
|
return {
|
|
39589
|
-
infoBoxBody:
|
|
39807
|
+
infoBoxBody: import_ts_dedent86.dedent`
|
|
39590
39808
|
Executes a subgraph in a loop until a condition is met. Each iteration's outputs become
|
|
39591
39809
|
the inputs for the next iteration. Supports different stopping conditions and optional
|
|
39592
39810
|
maximum iterations.
|
|
@@ -39999,14 +40217,14 @@ var MCPDiscoveryNodeImpl = class extends NodeImpl {
|
|
|
39999
40217
|
var mcpDiscoveryNode = nodeDefinition(MCPDiscoveryNodeImpl, "MCP Discovery");
|
|
40000
40218
|
|
|
40001
40219
|
// src/model/nodes/MCPToolCallNode.ts
|
|
40002
|
-
var
|
|
40003
|
-
var
|
|
40220
|
+
var import_non_secure99 = require("nanoid/non-secure");
|
|
40221
|
+
var import_ts_dedent87 = require("ts-dedent");
|
|
40004
40222
|
var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
40005
40223
|
static create() {
|
|
40006
40224
|
const chartNode = {
|
|
40007
40225
|
type: "mcpToolCall",
|
|
40008
40226
|
title: "MCP Tool Call",
|
|
40009
|
-
id: (0,
|
|
40227
|
+
id: (0, import_non_secure99.nanoid)(),
|
|
40010
40228
|
visualData: {
|
|
40011
40229
|
x: 0,
|
|
40012
40230
|
y: 0,
|
|
@@ -40019,7 +40237,7 @@ var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
|
40019
40237
|
serverUrl: "http://localhost:8080/mcp",
|
|
40020
40238
|
serverId: "",
|
|
40021
40239
|
toolName: "",
|
|
40022
|
-
toolArguments:
|
|
40240
|
+
toolArguments: import_ts_dedent87.dedent`
|
|
40023
40241
|
{
|
|
40024
40242
|
"key": "value"
|
|
40025
40243
|
}`,
|
|
@@ -40111,7 +40329,7 @@ var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
|
40111
40329
|
}
|
|
40112
40330
|
static getUIData() {
|
|
40113
40331
|
return {
|
|
40114
|
-
infoBoxBody:
|
|
40332
|
+
infoBoxBody: import_ts_dedent87.dedent`
|
|
40115
40333
|
Connects to an MCP (Model Context Protocol) server and gets a tool call response.
|
|
40116
40334
|
`,
|
|
40117
40335
|
infoBoxTitle: "MCP Tool Call Node",
|
|
@@ -40175,13 +40393,13 @@ var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
|
40175
40393
|
var mcpToolCallNode = nodeDefinition(MCPToolCallNodeImpl, "MCP Tool Call");
|
|
40176
40394
|
|
|
40177
40395
|
// src/model/nodes/MCPGetPromptNode.ts
|
|
40178
|
-
var
|
|
40396
|
+
var import_non_secure100 = require("nanoid/non-secure");
|
|
40179
40397
|
var MCPGetPromptNodeImpl = class extends NodeImpl {
|
|
40180
40398
|
static create() {
|
|
40181
40399
|
const chartNode = {
|
|
40182
40400
|
type: "mcpGetPrompt",
|
|
40183
40401
|
title: "MCP Get Prompt",
|
|
40184
|
-
id: (0,
|
|
40402
|
+
id: (0, import_non_secure100.nanoid)(),
|
|
40185
40403
|
visualData: {
|
|
40186
40404
|
x: 0,
|
|
40187
40405
|
y: 0,
|
|
@@ -40328,15 +40546,15 @@ var MCPGetPromptNodeImpl = class extends NodeImpl {
|
|
|
40328
40546
|
var mcpGetPromptNode = nodeDefinition(MCPGetPromptNodeImpl, "MCP Get Prompt");
|
|
40329
40547
|
|
|
40330
40548
|
// src/model/nodes/ReferencedGraphAliasNode.ts
|
|
40331
|
-
var
|
|
40332
|
-
var
|
|
40549
|
+
var import_non_secure101 = require("nanoid/non-secure");
|
|
40550
|
+
var import_ts_dedent88 = require("ts-dedent");
|
|
40333
40551
|
var ReferencedGraphAliasNodeImpl = class extends NodeImpl {
|
|
40334
40552
|
static create() {
|
|
40335
40553
|
const chartNode = {
|
|
40336
40554
|
type: "referencedGraphAlias",
|
|
40337
40555
|
title: "",
|
|
40338
40556
|
// Always set initially by the editor
|
|
40339
|
-
id: (0,
|
|
40557
|
+
id: (0, import_non_secure101.nanoid)(),
|
|
40340
40558
|
visualData: {
|
|
40341
40559
|
x: 0,
|
|
40342
40560
|
y: 0,
|
|
@@ -40420,7 +40638,7 @@ var ReferencedGraphAliasNodeImpl = class extends NodeImpl {
|
|
|
40420
40638
|
}
|
|
40421
40639
|
static getUIData() {
|
|
40422
40640
|
return {
|
|
40423
|
-
infoBoxBody:
|
|
40641
|
+
infoBoxBody: import_ts_dedent88.dedent`
|
|
40424
40642
|
References a graph from another project. Inputs and outputs are defined by Graph Input and Graph Output nodes within the referenced graph.
|
|
40425
40643
|
`,
|
|
40426
40644
|
infoBoxTitle: "Referenced Graph Alias Node",
|
|
@@ -40500,13 +40718,13 @@ function applyMetricOutputSetting(outputs, outputCostDuration) {
|
|
|
40500
40718
|
}
|
|
40501
40719
|
|
|
40502
40720
|
// src/model/nodes/NodePrefabInstanceNode.ts
|
|
40503
|
-
var
|
|
40721
|
+
var import_non_secure102 = require("nanoid/non-secure");
|
|
40504
40722
|
var NodePrefabInstanceNodeImpl = class extends NodeImpl {
|
|
40505
40723
|
static create() {
|
|
40506
40724
|
return {
|
|
40507
40725
|
type: NODE_PREFAB_INSTANCE_TYPE,
|
|
40508
40726
|
title: "Linked node",
|
|
40509
|
-
id: (0,
|
|
40727
|
+
id: (0, import_non_secure102.nanoid)(),
|
|
40510
40728
|
visualData: {
|
|
40511
40729
|
x: 0,
|
|
40512
40730
|
y: 0,
|
|
@@ -40537,7 +40755,7 @@ var nodePrefabInstanceNode = nodeDefinition(NodePrefabInstanceNodeImpl, "Linked
|
|
|
40537
40755
|
|
|
40538
40756
|
// src/model/Nodes.ts
|
|
40539
40757
|
var registerBuiltInNodes = (registry) => {
|
|
40540
|
-
return registry.register(toYamlNode).register(userInputNode).register(textNode).register(llmChatV2Node).register(llmProfileNode).register(chatNode).register(promptNode).register(extractRegexNode).register(codeNode).register(codeNewNode).register(expressionNode).register(matchNode).register(ifNode).register(readDirectoryNode).register(readFileNode).register(ifElseNode).register(chunkNode).register(graphInputNode).register(graphOutputNode).register(subGraphNode).register(arrayNode).register(extractJsonNode).register(assemblePromptNode).register(loopControllerNode).register(trimChatMessagesNode).register(extractYamlNode).register(externalCallNode).register(extractObjectPathNode).register(raiseEventNode).register(reportProgressNode).register(contextNode).register(graphCallPathNode).register(coalesceNode).register(coalesceNewNode).register(didRunNode).register(passthroughNode).register(dataBusNode).register(startBackgroundBranchNode).register(watchStreamingOutputNode).register(stopWatchingStreamingOutputNode).register(popNode).register(setGlobalNode).register(getGlobalNode).register(setStoredValueNode).register(getStoredValueNode).register(waitForEventNode).register(gptFunctionNode).register(getEmbeddingNode).register(vectorStoreNode).register(vectorNearestNeighborsNode).register(knowledgeSourceNode).register(knowledgeDocumentNode).register(syncKnowledgeSourceNode).register(getKnowledgeSourceStatusNode).register(searchKnowledgeNode).register(buildKnowledgeContextNode).register(hashNode).register(abortGraphNode).register(raceInputsNode).register(toJsonNode).register(joinNode).register(filterNode).register(jsFilterNode).register(jsMapNode).register(objectNode).register(booleanNode).register(compareNode).register(evaluateNode).register(numberNode).register(randomNumberNode).register(shuffleNode).register(commentNode).register(imageNode).register(audioNode).register(httpCallNode).register(delayNode).register(appendToDatasetNode).register(createDatasetNode).register(loadDatasetNode).register(getAllDatasetsNode).register(splitNode).register(datasetNearestNeighborsNode).register(getDatasetRowNode).register(sliceNode).register(extractMarkdownCodeBlocksNode).register(assembleMessageNode).register(urlReferenceNode).register(destructureNode).register(replaceDatasetNode).register(listGraphsNode).register(graphReferenceNode).register(callGraphNode).register(delegateFunctionCallNode).register(playAudioNode).register(documentNode).register(chatLoopNode).register(readAllFilesNode).register(toMarkdownTableNode).register(cronNode).register(toTreeNode).register(loopUntilNode).register(mcpDiscoveryNode).register(mcpToolCallNode).register(mcpGetPromptNode).register(referencedGraphAliasNode).register(nodePrefabInstanceNode);
|
|
40758
|
+
return registry.register(toYamlNode).register(userInputNode).register(textNode).register(llmChatV2Node).register(llmProfileNode).register(chatNode).register(promptNode).register(extractRegexNode).register(codeNode).register(codeNewNode).register(expressionNode).register(matchNode).register(matchCaseNode).register(ifNode).register(readDirectoryNode).register(readFileNode).register(ifElseNode).register(chunkNode).register(graphInputNode).register(graphOutputNode).register(subGraphNode).register(arrayNode).register(extractJsonNode).register(assemblePromptNode).register(loopControllerNode).register(trimChatMessagesNode).register(extractYamlNode).register(externalCallNode).register(extractObjectPathNode).register(raiseEventNode).register(reportProgressNode).register(contextNode).register(graphCallPathNode).register(coalesceNode).register(coalesceNewNode).register(didRunNode).register(passthroughNode).register(dataBusNode).register(startBackgroundBranchNode).register(watchStreamingOutputNode).register(stopWatchingStreamingOutputNode).register(popNode).register(setGlobalNode).register(getGlobalNode).register(setStoredValueNode).register(getStoredValueNode).register(waitForEventNode).register(gptFunctionNode).register(getEmbeddingNode).register(vectorStoreNode).register(vectorNearestNeighborsNode).register(knowledgeSourceNode).register(knowledgeDocumentNode).register(syncKnowledgeSourceNode).register(getKnowledgeSourceStatusNode).register(searchKnowledgeNode).register(buildKnowledgeContextNode).register(hashNode).register(abortGraphNode).register(raceInputsNode).register(toJsonNode).register(joinNode).register(filterNode).register(jsFilterNode).register(jsMapNode).register(objectNode).register(booleanNode).register(compareNode).register(evaluateNode).register(numberNode).register(randomNumberNode).register(shuffleNode).register(commentNode).register(imageNode).register(audioNode).register(httpCallNode).register(delayNode).register(appendToDatasetNode).register(createDatasetNode).register(loadDatasetNode).register(getAllDatasetsNode).register(splitNode).register(datasetNearestNeighborsNode).register(getDatasetRowNode).register(sliceNode).register(extractMarkdownCodeBlocksNode).register(assembleMessageNode).register(urlReferenceNode).register(destructureNode).register(replaceDatasetNode).register(listGraphsNode).register(graphReferenceNode).register(callGraphNode).register(delegateFunctionCallNode).register(playAudioNode).register(documentNode).register(chatLoopNode).register(readAllFilesNode).register(toMarkdownTableNode).register(cronNode).register(toTreeNode).register(loopUntilNode).register(mcpDiscoveryNode).register(mcpToolCallNode).register(mcpGetPromptNode).register(referencedGraphAliasNode).register(nodePrefabInstanceNode);
|
|
40541
40759
|
};
|
|
40542
40760
|
var globalRivetNodeRegistry = registerBuiltInNodes(new NodeRegistration());
|
|
40543
40761
|
function resetGlobalRivetNodeRegistry() {
|
|
@@ -41220,7 +41438,7 @@ function isRecord9(value) {
|
|
|
41220
41438
|
}
|
|
41221
41439
|
|
|
41222
41440
|
// src/recording/ExecutionRecorder.ts
|
|
41223
|
-
var
|
|
41441
|
+
var import_non_secure103 = require("nanoid/non-secure");
|
|
41224
41442
|
var import_emittery2 = __toESM(require("emittery-0-13"), 1);
|
|
41225
41443
|
var import_lodash_es16 = require("lodash");
|
|
41226
41444
|
var import_json_stream_es = require("json-stream-es");
|
|
@@ -41512,7 +41730,7 @@ function serializeToObject(recording) {
|
|
|
41512
41730
|
const asString = uint8ArrayToBase64Sync(val);
|
|
41513
41731
|
const existingAsset = Object.entries(serialized.assets).find(([, asset]) => asset === asString);
|
|
41514
41732
|
if (!existingAsset) {
|
|
41515
|
-
const id = (0,
|
|
41733
|
+
const id = (0, import_non_secure103.nanoid)();
|
|
41516
41734
|
serialized.assets[id] = asString;
|
|
41517
41735
|
return `$ASSET:${id}`;
|
|
41518
41736
|
} else {
|
|
@@ -41572,7 +41790,7 @@ var ExecutionRecorder = class _ExecutionRecorder {
|
|
|
41572
41790
|
recordSocket(channel, options2 = {}) {
|
|
41573
41791
|
return new Promise((resolve) => {
|
|
41574
41792
|
var _a, _b;
|
|
41575
|
-
this.recordingId = (0,
|
|
41793
|
+
this.recordingId = (0, import_non_secure103.nanoid)();
|
|
41576
41794
|
let settled = false;
|
|
41577
41795
|
const finish = (emitFinishedRecording) => {
|
|
41578
41796
|
var _a2;
|
|
@@ -41628,7 +41846,7 @@ var ExecutionRecorder = class _ExecutionRecorder {
|
|
|
41628
41846
|
});
|
|
41629
41847
|
}
|
|
41630
41848
|
record(processor) {
|
|
41631
|
-
this.recordingId = (0,
|
|
41849
|
+
this.recordingId = (0, import_non_secure103.nanoid)();
|
|
41632
41850
|
let settled = false;
|
|
41633
41851
|
const finish = () => {
|
|
41634
41852
|
if (settled) return;
|
|
@@ -41699,8 +41917,8 @@ function isSocketRecordingTerminalEvent(event) {
|
|
|
41699
41917
|
}
|
|
41700
41918
|
|
|
41701
41919
|
// src/plugins/anthropic/nodes/ChatAnthropicNode.ts
|
|
41702
|
-
var
|
|
41703
|
-
var
|
|
41920
|
+
var import_non_secure104 = require("nanoid/non-secure");
|
|
41921
|
+
var import_ts_dedent89 = require("ts-dedent");
|
|
41704
41922
|
var import_p_retry2 = __toESM(require("p-retry-4"), 1);
|
|
41705
41923
|
|
|
41706
41924
|
// src/utils/assertNever.ts
|
|
@@ -41714,7 +41932,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
41714
41932
|
const chartNode = {
|
|
41715
41933
|
type: "chatAnthropic",
|
|
41716
41934
|
title: "Chat (Anthropic, Legacy)",
|
|
41717
|
-
id: (0,
|
|
41935
|
+
id: (0, import_non_secure104.nanoid)(),
|
|
41718
41936
|
visualData: {
|
|
41719
41937
|
x: 0,
|
|
41720
41938
|
y: 0,
|
|
@@ -41864,7 +42082,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
41864
42082
|
getBody(data) {
|
|
41865
42083
|
var _a;
|
|
41866
42084
|
const modelName = data.overrideModel ? data.overrideModel : ((_a = anthropicModels[data.model]) == null ? void 0 : _a.displayName) ?? "Unknown Model";
|
|
41867
|
-
return
|
|
42085
|
+
return import_ts_dedent89.dedent`
|
|
41868
42086
|
${modelName}
|
|
41869
42087
|
${data.useTopP ? `Top P: ${data.useTopPInput ? "(Using Input)" : data.top_p}` : `Temperature: ${data.useTemperatureInput ? "(Using Input)" : data.temperature}`}
|
|
41870
42088
|
Max Tokens: ${data.maxTokens}
|
|
@@ -41990,7 +42208,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
41990
42208
|
},
|
|
41991
42209
|
getUIData() {
|
|
41992
42210
|
return {
|
|
41993
|
-
infoBoxBody:
|
|
42211
|
+
infoBoxBody: import_ts_dedent89.dedent`
|
|
41994
42212
|
Legacy Anthropic chat node.
|
|
41995
42213
|
|
|
41996
42214
|
For new work, prefer \`LLM Chat\`, which keeps provider selection inside one shared node.
|
|
@@ -42464,8 +42682,8 @@ var anthropicPlugin = {
|
|
|
42464
42682
|
var anthropic_default = anthropicPlugin;
|
|
42465
42683
|
|
|
42466
42684
|
// src/plugins/autoevals/AutoEvalsNode.ts
|
|
42467
|
-
var
|
|
42468
|
-
var
|
|
42685
|
+
var import_non_secure105 = require("nanoid/non-secure");
|
|
42686
|
+
var import_ts_dedent90 = require("ts-dedent");
|
|
42469
42687
|
var import_autoevals = require("autoevals");
|
|
42470
42688
|
var import_ts_pattern7 = require("ts-pattern");
|
|
42471
42689
|
var options = [
|
|
@@ -42484,7 +42702,7 @@ var AutoEvalsNodeImpl = {
|
|
|
42484
42702
|
const chartNode = {
|
|
42485
42703
|
type: "autoevals",
|
|
42486
42704
|
title: "Autoevals",
|
|
42487
|
-
id: (0,
|
|
42705
|
+
id: (0, import_non_secure105.nanoid)(),
|
|
42488
42706
|
visualData: {
|
|
42489
42707
|
x: 0,
|
|
42490
42708
|
y: 0,
|
|
@@ -42599,7 +42817,7 @@ var AutoEvalsNodeImpl = {
|
|
|
42599
42817
|
},
|
|
42600
42818
|
getUIData() {
|
|
42601
42819
|
return {
|
|
42602
|
-
infoBoxBody:
|
|
42820
|
+
infoBoxBody: import_ts_dedent90.dedent`
|
|
42603
42821
|
Evaluates the validity of a response using the autoevals library.
|
|
42604
42822
|
`,
|
|
42605
42823
|
infoBoxTitle: "Autoevals Node",
|
|
@@ -42681,8 +42899,8 @@ var autoevalsPlugin = {
|
|
|
42681
42899
|
var autoevals_default = autoevalsPlugin;
|
|
42682
42900
|
|
|
42683
42901
|
// src/plugins/assemblyAi/LemurQaNode.ts
|
|
42684
|
-
var
|
|
42685
|
-
var
|
|
42902
|
+
var import_non_secure106 = require("nanoid/non-secure");
|
|
42903
|
+
var import_ts_dedent91 = require("ts-dedent");
|
|
42686
42904
|
|
|
42687
42905
|
// src/plugins/assemblyAi/lemurHelpers.ts
|
|
42688
42906
|
var import_assemblyai = require("assemblyai");
|
|
@@ -42801,7 +43019,7 @@ var LemurQaNodeImpl = {
|
|
|
42801
43019
|
const chartNode = {
|
|
42802
43020
|
type: "assemblyAiLemurQa",
|
|
42803
43021
|
title: "LeMUR Question & Answers",
|
|
42804
|
-
id: (0,
|
|
43022
|
+
id: (0, import_non_secure106.nanoid)(),
|
|
42805
43023
|
visualData: {
|
|
42806
43024
|
x: 0,
|
|
42807
43025
|
y: 0,
|
|
@@ -42867,7 +43085,7 @@ var LemurQaNodeImpl = {
|
|
|
42867
43085
|
},
|
|
42868
43086
|
getUIData() {
|
|
42869
43087
|
return {
|
|
42870
|
-
infoBoxBody:
|
|
43088
|
+
infoBoxBody: import_ts_dedent91.dedent`Use AssemblyAI LeMUR to ask questions about transcripts`,
|
|
42871
43089
|
infoBoxTitle: "Use AssemblyAI LeMUR Question & Answer",
|
|
42872
43090
|
contextMenuTitle: "LeMUR Q&A",
|
|
42873
43091
|
group: ["AI", "AssemblyAI"]
|
|
@@ -42938,14 +43156,14 @@ function applyQuestionEditors(data, question) {
|
|
|
42938
43156
|
var lemurQaNode = pluginNodeDefinition(LemurQaNodeImpl, "LeMUR Q&A");
|
|
42939
43157
|
|
|
42940
43158
|
// src/plugins/assemblyAi/TranscribeAudioNode.ts
|
|
42941
|
-
var
|
|
42942
|
-
var
|
|
43159
|
+
var import_non_secure107 = require("nanoid/non-secure");
|
|
43160
|
+
var import_ts_dedent92 = require("ts-dedent");
|
|
42943
43161
|
var TranscribeAudioNodeImpl = {
|
|
42944
43162
|
create() {
|
|
42945
43163
|
const chartNode = {
|
|
42946
43164
|
type: "assemblyAiTranscribeAudio",
|
|
42947
43165
|
title: "Transcribe Audio",
|
|
42948
|
-
id: (0,
|
|
43166
|
+
id: (0, import_non_secure107.nanoid)(),
|
|
42949
43167
|
visualData: {
|
|
42950
43168
|
x: 0,
|
|
42951
43169
|
y: 0,
|
|
@@ -43001,7 +43219,7 @@ var TranscribeAudioNodeImpl = {
|
|
|
43001
43219
|
},
|
|
43002
43220
|
getUIData() {
|
|
43003
43221
|
return {
|
|
43004
|
-
infoBoxBody:
|
|
43222
|
+
infoBoxBody: import_ts_dedent92.dedent`Use AssemblyAI to transcribe audio`,
|
|
43005
43223
|
infoBoxTitle: "Transcribe Audio Node",
|
|
43006
43224
|
contextMenuTitle: "Transcribe Audio",
|
|
43007
43225
|
group: ["AI", "AssemblyAI"]
|
|
@@ -43059,15 +43277,15 @@ function getAdditionalParameters(data) {
|
|
|
43059
43277
|
}
|
|
43060
43278
|
|
|
43061
43279
|
// src/plugins/assemblyAi/LemurSummaryNode.ts
|
|
43062
|
-
var
|
|
43063
|
-
var
|
|
43280
|
+
var import_non_secure108 = require("nanoid/non-secure");
|
|
43281
|
+
var import_ts_dedent93 = require("ts-dedent");
|
|
43064
43282
|
var import_assemblyai3 = require("assemblyai");
|
|
43065
43283
|
var LemurSummaryNodeImpl = {
|
|
43066
43284
|
create() {
|
|
43067
43285
|
const chartNode = {
|
|
43068
43286
|
type: "assemblyAiLemurSummary",
|
|
43069
43287
|
title: "LeMUR Summary",
|
|
43070
|
-
id: (0,
|
|
43288
|
+
id: (0, import_non_secure108.nanoid)(),
|
|
43071
43289
|
visualData: {
|
|
43072
43290
|
x: 0,
|
|
43073
43291
|
y: 0,
|
|
@@ -43113,7 +43331,7 @@ var LemurSummaryNodeImpl = {
|
|
|
43113
43331
|
},
|
|
43114
43332
|
getUIData() {
|
|
43115
43333
|
return {
|
|
43116
|
-
infoBoxBody:
|
|
43334
|
+
infoBoxBody: import_ts_dedent93.dedent`Use AssemblyAI LeMUR Summary to summarize transcripts`,
|
|
43117
43335
|
infoBoxTitle: "Use AssemblyAI LeMUR Summary",
|
|
43118
43336
|
contextMenuTitle: "LeMUR Summary",
|
|
43119
43337
|
group: ["AI", "AssemblyAI"]
|
|
@@ -43137,15 +43355,15 @@ var LemurSummaryNodeImpl = {
|
|
|
43137
43355
|
var lemurSummaryNode = pluginNodeDefinition(LemurSummaryNodeImpl, "LeMUR Summary");
|
|
43138
43356
|
|
|
43139
43357
|
// src/plugins/assemblyAi/LemurTaskNode.ts
|
|
43140
|
-
var
|
|
43141
|
-
var
|
|
43358
|
+
var import_non_secure109 = require("nanoid/non-secure");
|
|
43359
|
+
var import_ts_dedent94 = require("ts-dedent");
|
|
43142
43360
|
var import_assemblyai4 = require("assemblyai");
|
|
43143
43361
|
var LemurTaskNodeImpl = {
|
|
43144
43362
|
create() {
|
|
43145
43363
|
const chartNode = {
|
|
43146
43364
|
type: "assemblyAiLemurTask",
|
|
43147
43365
|
title: "LeMUR Task",
|
|
43148
|
-
id: (0,
|
|
43366
|
+
id: (0, import_non_secure109.nanoid)(),
|
|
43149
43367
|
visualData: {
|
|
43150
43368
|
x: 0,
|
|
43151
43369
|
y: 0,
|
|
@@ -43191,7 +43409,7 @@ var LemurTaskNodeImpl = {
|
|
|
43191
43409
|
},
|
|
43192
43410
|
getUIData() {
|
|
43193
43411
|
return {
|
|
43194
|
-
infoBoxBody:
|
|
43412
|
+
infoBoxBody: import_ts_dedent94.dedent`Use AssemblyAI LeMUR Custom Task to ask anything.`,
|
|
43195
43413
|
infoBoxTitle: "Use AssemblyAI LeMUR Custom Task",
|
|
43196
43414
|
contextMenuTitle: "LeMUR Custom Task",
|
|
43197
43415
|
group: ["AI", "AssemblyAI"]
|
|
@@ -43216,14 +43434,14 @@ var LemurTaskNodeImpl = {
|
|
|
43216
43434
|
var lemurTaskNode = pluginNodeDefinition(LemurTaskNodeImpl, "LeMUR Task");
|
|
43217
43435
|
|
|
43218
43436
|
// src/plugins/assemblyAi/LemurActionItemsNode.ts
|
|
43219
|
-
var
|
|
43220
|
-
var
|
|
43437
|
+
var import_non_secure110 = require("nanoid/non-secure");
|
|
43438
|
+
var import_ts_dedent95 = require("ts-dedent");
|
|
43221
43439
|
var LemurActionItemsNodeImpl = {
|
|
43222
43440
|
create() {
|
|
43223
43441
|
const chartNode = {
|
|
43224
43442
|
type: "assemblyAiLemurActionItems",
|
|
43225
43443
|
title: "LeMUR Action Items",
|
|
43226
|
-
id: (0,
|
|
43444
|
+
id: (0, import_non_secure110.nanoid)(),
|
|
43227
43445
|
visualData: {
|
|
43228
43446
|
x: 0,
|
|
43229
43447
|
y: 0,
|
|
@@ -43269,7 +43487,7 @@ var LemurActionItemsNodeImpl = {
|
|
|
43269
43487
|
},
|
|
43270
43488
|
getUIData() {
|
|
43271
43489
|
return {
|
|
43272
|
-
infoBoxBody:
|
|
43490
|
+
infoBoxBody: import_ts_dedent95.dedent`Use AssemblyAI LeMUR Action Items to extract action items`,
|
|
43273
43491
|
infoBoxTitle: "Use AssemblyAI LeMUR Action Items",
|
|
43274
43492
|
contextMenuTitle: "LeMUR Action Items",
|
|
43275
43493
|
group: ["AI", "AssemblyAI"]
|
|
@@ -43321,12 +43539,12 @@ var assemblyAiPlugin = {
|
|
|
43321
43539
|
var assemblyAi_default = assemblyAiPlugin;
|
|
43322
43540
|
|
|
43323
43541
|
// src/plugins/huggingface/nodes/ChatHuggingFace.ts
|
|
43324
|
-
var
|
|
43542
|
+
var import_non_secure111 = require("nanoid/non-secure");
|
|
43325
43543
|
var import_inference = require("@huggingface/inference");
|
|
43326
43544
|
var ChatHuggingFaceNodeImpl = {
|
|
43327
43545
|
create() {
|
|
43328
43546
|
return {
|
|
43329
|
-
id: (0,
|
|
43547
|
+
id: (0, import_non_secure111.nanoid)(),
|
|
43330
43548
|
type: "chatHuggingFace",
|
|
43331
43549
|
data: {
|
|
43332
43550
|
model: "",
|
|
@@ -43556,13 +43774,13 @@ var ChatHuggingFaceNodeImpl = {
|
|
|
43556
43774
|
var chatHuggingFaceNode = pluginNodeDefinition(ChatHuggingFaceNodeImpl, "Chat (Hugging Face, Legacy)");
|
|
43557
43775
|
|
|
43558
43776
|
// src/plugins/huggingface/nodes/TextToImageHuggingFace.ts
|
|
43559
|
-
var
|
|
43777
|
+
var import_non_secure112 = require("nanoid/non-secure");
|
|
43560
43778
|
var import_inference2 = require("@huggingface/inference");
|
|
43561
|
-
var
|
|
43779
|
+
var import_ts_dedent96 = require("ts-dedent");
|
|
43562
43780
|
var TextToImageHuggingFaceNodeImpl = {
|
|
43563
43781
|
create() {
|
|
43564
43782
|
return {
|
|
43565
|
-
id: (0,
|
|
43783
|
+
id: (0, import_non_secure112.nanoid)(),
|
|
43566
43784
|
type: "textToImageHuggingFace",
|
|
43567
43785
|
data: {
|
|
43568
43786
|
model: "",
|
|
@@ -43703,7 +43921,7 @@ var TextToImageHuggingFaceNodeImpl = {
|
|
|
43703
43921
|
];
|
|
43704
43922
|
},
|
|
43705
43923
|
getBody(data) {
|
|
43706
|
-
return
|
|
43924
|
+
return import_ts_dedent96.dedent`
|
|
43707
43925
|
Model: ${data.useModelInput ? "(Using Input)" : data.model}
|
|
43708
43926
|
`;
|
|
43709
43927
|
},
|
|
@@ -47243,8 +47461,8 @@ var openAIPlugin = {
|
|
|
47243
47461
|
};
|
|
47244
47462
|
|
|
47245
47463
|
// src/plugins/google/nodes/ChatGoogleNode.ts
|
|
47246
|
-
var
|
|
47247
|
-
var
|
|
47464
|
+
var import_non_secure113 = require("nanoid/non-secure");
|
|
47465
|
+
var import_ts_dedent97 = require("ts-dedent");
|
|
47248
47466
|
var import_p_retry3 = __toESM(require("p-retry-4"), 1);
|
|
47249
47467
|
var import_ts_pattern8 = require("ts-pattern");
|
|
47250
47468
|
var import_genai2 = require("@google/genai");
|
|
@@ -47271,7 +47489,7 @@ var ChatGoogleNodeImpl = {
|
|
|
47271
47489
|
const chartNode = {
|
|
47272
47490
|
type: "chatGoogle",
|
|
47273
47491
|
title: "Chat (Google, Legacy)",
|
|
47274
|
-
id: (0,
|
|
47492
|
+
id: (0, import_non_secure113.nanoid)(),
|
|
47275
47493
|
visualData: {
|
|
47276
47494
|
x: 0,
|
|
47277
47495
|
y: 0,
|
|
@@ -47406,7 +47624,7 @@ var ChatGoogleNodeImpl = {
|
|
|
47406
47624
|
},
|
|
47407
47625
|
getBody(data) {
|
|
47408
47626
|
var _a;
|
|
47409
|
-
return
|
|
47627
|
+
return import_ts_dedent97.dedent`
|
|
47410
47628
|
${((_a = generativeAiGoogleModels[data.model]) == null ? void 0 : _a.displayName) ?? `Google (${data.model})`}
|
|
47411
47629
|
${data.useTopP ? `Top P: ${data.useTopPInput ? "(Using Input)" : data.top_p}` : `Temperature: ${data.useTemperatureInput ? "(Using Input)" : data.temperature}`}
|
|
47412
47630
|
Max Tokens: ${data.maxTokens}
|
|
@@ -47494,7 +47712,7 @@ var ChatGoogleNodeImpl = {
|
|
|
47494
47712
|
},
|
|
47495
47713
|
getUIData() {
|
|
47496
47714
|
return {
|
|
47497
|
-
infoBoxBody:
|
|
47715
|
+
infoBoxBody: import_ts_dedent97.dedent`
|
|
47498
47716
|
Legacy Google chat node.
|
|
47499
47717
|
|
|
47500
47718
|
For new work, prefer \`LLM Chat\`, which keeps provider selection inside one shared node.
|
|
@@ -48502,6 +48720,7 @@ var Rivet = void 0;
|
|
|
48502
48720
|
MCPGetPromptNodeImpl,
|
|
48503
48721
|
MCPToolCallNodeImpl,
|
|
48504
48722
|
ManagedKnowledgeStore,
|
|
48723
|
+
MatchCaseNodeImpl,
|
|
48505
48724
|
MatchNodeImpl,
|
|
48506
48725
|
NODE_PREFAB_INSTANCE_TYPE,
|
|
48507
48726
|
NodeImpl,
|
|
@@ -48880,6 +49099,7 @@ var Rivet = void 0;
|
|
|
48880
49099
|
loopUntilNode,
|
|
48881
49100
|
looseDataValueToDataValue,
|
|
48882
49101
|
looseDataValuesToDataValues,
|
|
49102
|
+
matchCaseNode,
|
|
48883
49103
|
matchNode,
|
|
48884
49104
|
materializeChatV2PipelineFailure,
|
|
48885
49105
|
materializeLLMResponse,
|
|
@@ -48959,6 +49179,7 @@ var Rivet = void 0;
|
|
|
48959
49179
|
reconcileUiGraphChatActionBindings,
|
|
48960
49180
|
reconcileUiGraphRunGraphActionBindings,
|
|
48961
49181
|
referencedGraphAliasNode,
|
|
49182
|
+
regexMatchLegacyDisplayName,
|
|
48962
49183
|
registerBuiltInNodes,
|
|
48963
49184
|
registerIntegration,
|
|
48964
49185
|
registerKnowledgeStoreProvider,
|