@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
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {} from '../NodeBase.js';
|
|
2
1
|
import { nanoid } from 'nanoid/non-secure';
|
|
3
|
-
import { NodeImpl } from '../NodeImpl.js';
|
|
4
|
-
import { nodeDefinition } from '../NodeDefinition.js';
|
|
5
|
-
import {} from '../DataValue.js';
|
|
6
|
-
import {} from '../../index.js';
|
|
7
2
|
import { dedent } from 'ts-dedent';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import { nodeDefinition } from '../NodeDefinition.js';
|
|
4
|
+
import {} from '../NodeImpl.js';
|
|
5
|
+
import {} from '../NodeBase.js';
|
|
6
|
+
import { MatchCaseNodeBase } from './MatchCaseNodeBase.js';
|
|
7
|
+
/** Display-only label; the persisted `match` type remains available for existing graphs. */
|
|
8
|
+
export const regexMatchLegacyDisplayName = 'Regex Match (legacy)';
|
|
9
|
+
/** The persisted `match` type stays regex-only for backwards compatibility. */
|
|
10
|
+
export class MatchNodeImpl extends MatchCaseNodeBase {
|
|
11
|
+
caseEditorLabel = 'Cases (regular expressions)';
|
|
12
|
+
caseEditorPlaceholder = 'Case (regular expression)';
|
|
11
13
|
static create() {
|
|
12
|
-
|
|
14
|
+
return {
|
|
13
15
|
type: 'match',
|
|
14
|
-
title:
|
|
16
|
+
title: regexMatchLegacyDisplayName,
|
|
15
17
|
id: nanoid(),
|
|
16
18
|
visualData: {
|
|
17
19
|
x: 0,
|
|
@@ -24,182 +26,27 @@ export class MatchNodeImpl extends NodeImpl {
|
|
|
24
26
|
valueInputMode: 'shared',
|
|
25
27
|
},
|
|
26
28
|
};
|
|
27
|
-
return chartNode;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
id: 'input',
|
|
33
|
-
title: 'Test',
|
|
34
|
-
dataType: 'string',
|
|
35
|
-
required: true,
|
|
36
|
-
description: 'The value that will be tested against each of the cases.',
|
|
37
|
-
},
|
|
38
|
-
];
|
|
39
|
-
if (this.getValueInputMode() === 'shared') {
|
|
40
|
-
inputs.push({
|
|
41
|
-
id: 'value',
|
|
42
|
-
title: 'Custom value',
|
|
43
|
-
dataType: 'any',
|
|
44
|
-
description: 'The optional value passed through to every matching output. If unconnected, the Test value is passed through.',
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
const portIds = this.getCasePortIds();
|
|
49
|
-
this.data.cases.forEach((caseValue, index) => {
|
|
50
|
-
inputs.push({
|
|
51
|
-
id: this.getCaseValueInputId(portIds[index]),
|
|
52
|
-
title: this.getCaseTitle(caseValue, index),
|
|
53
|
-
dataType: 'any',
|
|
54
|
-
description: `The optional custom value emitted when /${caseValue}/ matches the Test value. If unconnected, Test is passed through.`,
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
inputs.push({
|
|
58
|
-
id: 'value-unmatched',
|
|
59
|
-
title: 'Unmatched',
|
|
60
|
-
dataType: 'any',
|
|
61
|
-
description: 'The optional custom value emitted when no regular expression matches the Test value. If unconnected, Test is passed through.',
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return inputs;
|
|
30
|
+
matchesCase(input, caseValue) {
|
|
31
|
+
return new RegExp(caseValue).test(input);
|
|
65
32
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const portIds = this.getCasePortIds();
|
|
69
|
-
for (let i = 0; i < this.data.cases.length; i++) {
|
|
70
|
-
outputs.push({
|
|
71
|
-
id: portIds[i],
|
|
72
|
-
title: this.getCaseTitle(this.data.cases[i], i),
|
|
73
|
-
dataType: 'any',
|
|
74
|
-
description: this.getValueInputMode() === 'shared'
|
|
75
|
-
? `The shared Custom value (or Test if Custom value is unconnected) passed through if the test value matches /${this.data.cases[i]}/.`
|
|
76
|
-
: `The corresponding ${this.getCaseTitle(this.data.cases[i], i)} custom value (or Test if it is unconnected) passed through if the test value matches /${this.data.cases[i]}/.`,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
outputs.push({
|
|
80
|
-
id: 'unmatched',
|
|
81
|
-
title: 'Unmatched',
|
|
82
|
-
dataType: 'any',
|
|
83
|
-
description: this.getValueInputMode() === 'shared'
|
|
84
|
-
? 'The shared Custom value (or Test if Custom value is unconnected) passed through if no regexes match.'
|
|
85
|
-
: 'The Unmatched custom value (or Test if it is unconnected) passed through if no regexes match.',
|
|
86
|
-
});
|
|
87
|
-
return outputs;
|
|
33
|
+
describeCaseMatch(caseValue) {
|
|
34
|
+
return `/${caseValue}/ matches the Test value`;
|
|
88
35
|
}
|
|
89
|
-
|
|
90
|
-
return
|
|
91
|
-
}
|
|
92
|
-
getEditors() {
|
|
93
|
-
return [
|
|
94
|
-
{
|
|
95
|
-
type: 'segmented',
|
|
96
|
-
label: 'Matching cases to trigger',
|
|
97
|
-
dataKey: 'exclusive',
|
|
98
|
-
defaultValue: false,
|
|
99
|
-
options: [
|
|
100
|
-
{ value: false, label: 'Trigger all matching cases' },
|
|
101
|
-
{ value: true, label: 'Trigger first only' },
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
type: 'segmented',
|
|
106
|
-
label: 'Custom case values',
|
|
107
|
-
dataKey: 'valueInputMode',
|
|
108
|
-
defaultValue: 'shared',
|
|
109
|
-
options: [
|
|
110
|
-
{ value: 'shared', label: 'One shared custom value' },
|
|
111
|
-
{ value: 'per-output', label: 'Custom values per case' },
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: 'stringList',
|
|
116
|
-
dataKey: 'cases',
|
|
117
|
-
label: 'Cases (regular expressions)',
|
|
118
|
-
placeholder: 'Case (regular expression)',
|
|
119
|
-
reorderable: true,
|
|
120
|
-
portBinding: {
|
|
121
|
-
side: 'output',
|
|
122
|
-
identity: 'stored-stable-id',
|
|
123
|
-
idDataKey: 'casePortIds',
|
|
124
|
-
legacyPortIdPattern: {
|
|
125
|
-
kind: 'prefix',
|
|
126
|
-
prefix: 'case',
|
|
127
|
-
startIndex: 1,
|
|
128
|
-
},
|
|
129
|
-
companionBindings: [{ side: 'input', prefix: 'value-' }],
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
];
|
|
36
|
+
describeNoCaseMatches() {
|
|
37
|
+
return 'no regular expression matches the Test value';
|
|
133
38
|
}
|
|
134
39
|
static getUIData() {
|
|
135
40
|
return {
|
|
136
41
|
infoBoxBody: dedent `
|
|
137
|
-
|
|
42
|
+
Legacy regex-only routing node. Existing graphs keep their current behavior.
|
|
43
|
+
|
|
44
|
+
For new graphs, use Match case. It supports exact plain-text cases by default and optional regular-expression matching.
|
|
138
45
|
`,
|
|
139
|
-
infoBoxTitle:
|
|
140
|
-
contextMenuTitle:
|
|
46
|
+
infoBoxTitle: `${regexMatchLegacyDisplayName} Node`,
|
|
47
|
+
contextMenuTitle: regexMatchLegacyDisplayName,
|
|
141
48
|
group: ['Logic'],
|
|
142
49
|
};
|
|
143
50
|
}
|
|
144
|
-
async process(inputs) {
|
|
145
|
-
const inputValue = inputs['input'];
|
|
146
|
-
const inputString = inputValue?.value == null ? undefined : coerceType(inputValue, 'string');
|
|
147
|
-
const portIds = this.getCasePortIds();
|
|
148
|
-
const sharedValue = inputs['value'];
|
|
149
|
-
const getTestOutputValue = () => ({
|
|
150
|
-
type: 'string',
|
|
151
|
-
value: inputString,
|
|
152
|
-
});
|
|
153
|
-
const getSharedOutputValue = () => sharedValue ?? getTestOutputValue();
|
|
154
|
-
const getOutputValue = (portId) => this.getValueInputMode() === 'shared'
|
|
155
|
-
? getSharedOutputValue()
|
|
156
|
-
: inputs[this.getCaseValueInputId(portId)] ?? getTestOutputValue();
|
|
157
|
-
const getUnmatchedOutputValue = () => this.getValueInputMode() === 'shared'
|
|
158
|
-
? getSharedOutputValue()
|
|
159
|
-
: inputs['value-unmatched'] ?? getTestOutputValue();
|
|
160
|
-
const cases = this.data.cases;
|
|
161
|
-
let matched = false;
|
|
162
|
-
const output = {};
|
|
163
|
-
for (let i = 0; i < cases.length; i++) {
|
|
164
|
-
const match = inputString !== undefined && new RegExp(cases[i]).test(inputString);
|
|
165
|
-
const canMatch = !this.data.exclusive || !matched;
|
|
166
|
-
if (match && canMatch) {
|
|
167
|
-
matched = true;
|
|
168
|
-
output[portIds[i]] = getOutputValue(portIds[i]);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
output[portIds[i]] = {
|
|
172
|
-
type: 'control-flow-excluded',
|
|
173
|
-
value: undefined,
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
if (!matched) {
|
|
178
|
-
output['unmatched'] = getUnmatchedOutputValue();
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
output['unmatched'] = {
|
|
182
|
-
type: 'control-flow-excluded',
|
|
183
|
-
value: undefined,
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
return output;
|
|
187
|
-
}
|
|
188
|
-
getValueInputMode() {
|
|
189
|
-
return this.data.valueInputMode === 'per-output' ? 'per-output' : 'shared';
|
|
190
|
-
}
|
|
191
|
-
getCasePortIds() {
|
|
192
|
-
return resolveStoredOrderedPortIds(this.data.cases.length, this.data.casePortIds, {
|
|
193
|
-
kind: 'prefix',
|
|
194
|
-
prefix: 'case',
|
|
195
|
-
startIndex: 1,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
getCaseTitle(caseValue, index) {
|
|
199
|
-
return caseValue?.trim() ? caseValue : `Case ${index + 1}`;
|
|
200
|
-
}
|
|
201
|
-
getCaseValueInputId(portId) {
|
|
202
|
-
return `value-${portId}`;
|
|
203
|
-
}
|
|
204
51
|
}
|
|
205
|
-
export const matchNode = nodeDefinition(MatchNodeImpl,
|
|
52
|
+
export const matchNode = nodeDefinition(MatchNodeImpl, regexMatchLegacyDisplayName);
|
|
@@ -30,6 +30,8 @@ export type StringEditorDefinition<T extends ChartNode> = SharedEditorDefinition
|
|
|
30
30
|
export type ToggleEditorDefinition<T extends ChartNode> = SharedEditorDefinitionProps<T> & {
|
|
31
31
|
type: 'toggle';
|
|
32
32
|
dataKey: DataOfType<T, boolean>;
|
|
33
|
+
/** Value rendered when an older node omits this optional boolean setting. */
|
|
34
|
+
defaultValue?: boolean;
|
|
33
35
|
useInputToggleDataKey?: DataOfType<T, boolean>;
|
|
34
36
|
turnOffDataKeysWhenEnabled?: DataOfType<T, boolean>[];
|
|
35
37
|
};
|
|
@@ -11,6 +11,7 @@ export * from './nodes/CodeNode.js';
|
|
|
11
11
|
export * from './nodes/CodeNewNode.js';
|
|
12
12
|
export * from './nodes/ExpressionNode.js';
|
|
13
13
|
export * from './nodes/MatchNode.js';
|
|
14
|
+
export * from './nodes/MatchCaseNode.js';
|
|
14
15
|
export * from './nodes/IfNode.js';
|
|
15
16
|
export * from './nodes/ReadDirectoryNode.js';
|
|
16
17
|
export * from './nodes/ReadFileNode.js';
|
|
@@ -107,12 +108,12 @@ export * from './nodes/MCPToolCallNode.js';
|
|
|
107
108
|
export * from './nodes/MCPGetPromptNode.js';
|
|
108
109
|
export * from './nodes/ReferencedGraphAliasNode.js';
|
|
109
110
|
export * from './nodes/NodePrefabInstanceNode.js';
|
|
110
|
-
export declare const registerBuiltInNodes: (registry: NodeRegistration) => NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "graphCallPath" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "coalesceNew" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/GraphCallPathNode.js").GraphCallPathNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/CoalesceNewNode.js").CoalesceNewNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
111
|
+
export declare const registerBuiltInNodes: (registry: NodeRegistration) => NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "graphCallPath" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "matchCase" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "coalesceNew" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/MatchCaseNode.js").MatchCaseNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/GraphCallPathNode.js").GraphCallPathNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/CoalesceNewNode.js").CoalesceNewNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
111
112
|
type: "mcpDiscovery";
|
|
112
113
|
data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
|
|
113
114
|
variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
|
|
114
115
|
}) | import("./nodes/MCPToolCallNode.js").MCPToolCallNode | import("./nodes/MCPGetPromptNode.js").MCPGetPromptNode | import("./nodes/ReferencedGraphAliasNode.js").ReferencedGraphAliasNode | import("./NodePrefabResolver.js").NodePrefabInstanceNode>;
|
|
115
|
-
declare let globalRivetNodeRegistry: NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "graphCallPath" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "coalesceNew" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/GraphCallPathNode.js").GraphCallPathNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/CoalesceNewNode.js").CoalesceNewNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
116
|
+
declare let globalRivetNodeRegistry: NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "graphCallPath" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "matchCase" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "coalesceNew" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/MatchCaseNode.js").MatchCaseNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/GraphCallPathNode.js").GraphCallPathNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/CoalesceNewNode.js").CoalesceNewNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
116
117
|
type: "mcpDiscovery";
|
|
117
118
|
data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
|
|
118
119
|
variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type NodeUIData } from '../NodeImpl.js';
|
|
2
|
+
import { type ChartNode } from '../NodeBase.js';
|
|
3
|
+
import { type EditorDefinition } from '../EditorDefinition.js';
|
|
4
|
+
import { MatchCaseNodeBase, type MatchCaseReturnValueMode, type MatchCaseRoutingData } from './MatchCaseNodeBase.js';
|
|
5
|
+
export type MatchCaseMode = 'plainText' | 'regex';
|
|
6
|
+
export type MatchCaseReturnValue = MatchCaseReturnValueMode;
|
|
7
|
+
export type MatchCaseNodeData = MatchCaseRoutingData & {
|
|
8
|
+
/** Missing values on Match case nodes mean exact plain-text matching. */
|
|
9
|
+
matchMode?: MatchCaseMode;
|
|
10
|
+
/** Plain-text matching is case-sensitive unless this is explicitly false. */
|
|
11
|
+
caseSensitive?: boolean;
|
|
12
|
+
/** Missing values return boolean true from the active branch. */
|
|
13
|
+
returnValue?: MatchCaseReturnValue;
|
|
14
|
+
};
|
|
15
|
+
export type MatchCaseNode = ChartNode<'matchCase', MatchCaseNodeData>;
|
|
16
|
+
/** Match case is the current routing node; legacy `match` remains regex-only. */
|
|
17
|
+
export declare class MatchCaseNodeImpl extends MatchCaseNodeBase<MatchCaseNode> {
|
|
18
|
+
protected readonly caseEditorLabel = "Cases";
|
|
19
|
+
protected readonly caseEditorPlaceholder = "Case";
|
|
20
|
+
protected readonly casesEditorPlacement = "before-trigger";
|
|
21
|
+
protected readonly customCaseValuesEditorLabel = "";
|
|
22
|
+
protected readonly defaultExclusive = true;
|
|
23
|
+
protected readonly firstMatchingBodyValue = "First matching case";
|
|
24
|
+
protected readonly inputTitle = "Input";
|
|
25
|
+
protected readonly matchingCasesToTriggerOptions: {
|
|
26
|
+
value: boolean;
|
|
27
|
+
label: string;
|
|
28
|
+
}[];
|
|
29
|
+
protected readonly sharedCustomValueInputTitle = "Return value";
|
|
30
|
+
protected readonly triggerEditorLabel = "Trigger";
|
|
31
|
+
static create(): MatchCaseNode;
|
|
32
|
+
protected matchesCase(input: string, caseValue: string): boolean;
|
|
33
|
+
protected describeCaseMatch(caseValue: string): string;
|
|
34
|
+
protected describeNoCaseMatches(): string;
|
|
35
|
+
protected getReturnValueMode(): MatchCaseReturnValue;
|
|
36
|
+
protected getEditorsAfterTrigger(): EditorDefinition<MatchCaseNode>[];
|
|
37
|
+
protected shouldHideCustomCaseValues(data: MatchCaseNodeData): boolean;
|
|
38
|
+
getEditors(): EditorDefinition<MatchCaseNode>[];
|
|
39
|
+
static getUIData(): NodeUIData;
|
|
40
|
+
private getMatchMode;
|
|
41
|
+
private getCaseSensitive;
|
|
42
|
+
}
|
|
43
|
+
export declare const matchCaseNode: import("../NodeDefinition.js").NodeDefinition<MatchCaseNode>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type EditorDefinition } from '../EditorDefinition.js';
|
|
2
|
+
import { type Inputs, type Outputs } from '../GraphProcessor.js';
|
|
3
|
+
import { NodeImpl } from '../NodeImpl.js';
|
|
4
|
+
import { type ChartNode, type NodeInputDefinition, type NodeOutputDefinition } from '../NodeBase.js';
|
|
5
|
+
/** Shared saved routing and custom-value settings for Match case node variants. */
|
|
6
|
+
export type MatchCaseRoutingData = {
|
|
7
|
+
cases: string[];
|
|
8
|
+
casePortIds?: string[];
|
|
9
|
+
/** Missing values preserve the original one-shared-value behavior. */
|
|
10
|
+
valueInputMode?: 'shared' | 'per-output';
|
|
11
|
+
/** If true, only the first matching branch will run. */
|
|
12
|
+
exclusive?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type MatchCaseReturnValueMode = 'true' | 'testValue' | 'custom';
|
|
15
|
+
/**
|
|
16
|
+
* Shared ports, custom-value routing, and case-output handling for the current
|
|
17
|
+
* Match case node and the regex-only compatibility node. Each subclass owns
|
|
18
|
+
* only its matching semantics and editor wording.
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class MatchCaseNodeBase<T extends ChartNode<string, MatchCaseRoutingData>> extends NodeImpl<T> {
|
|
21
|
+
protected abstract readonly caseEditorLabel: string;
|
|
22
|
+
protected abstract readonly caseEditorPlaceholder: string;
|
|
23
|
+
protected readonly casesEditorPlacement: 'before-trigger' | 'after-custom-values';
|
|
24
|
+
protected readonly customCaseValuesEditorLabel: string;
|
|
25
|
+
protected readonly defaultExclusive: boolean;
|
|
26
|
+
protected readonly firstMatchingBodyValue: string;
|
|
27
|
+
protected readonly inputTitle: string;
|
|
28
|
+
protected readonly matchingCasesToTriggerOptions: Array<{
|
|
29
|
+
value: boolean;
|
|
30
|
+
label: string;
|
|
31
|
+
}>;
|
|
32
|
+
protected readonly sharedCustomValueInputTitle: string;
|
|
33
|
+
protected readonly triggerEditorLabel: string;
|
|
34
|
+
protected abstract matchesCase(input: string, caseValue: string): boolean;
|
|
35
|
+
protected abstract describeCaseMatch(caseValue: string): string;
|
|
36
|
+
protected abstract describeNoCaseMatches(): string;
|
|
37
|
+
protected getReturnValueMode(): MatchCaseReturnValueMode;
|
|
38
|
+
protected getEditorsAfterTrigger(): EditorDefinition<T>[];
|
|
39
|
+
protected shouldHideCustomCaseValues(_data: T['data']): boolean;
|
|
40
|
+
getInputDefinitions(): NodeInputDefinition[];
|
|
41
|
+
getOutputDefinitions(): NodeOutputDefinition[];
|
|
42
|
+
getBody(): string;
|
|
43
|
+
getEditors(): EditorDefinition<T>[];
|
|
44
|
+
process(inputs: Inputs): Promise<Outputs>;
|
|
45
|
+
protected getValueInputMode(): 'shared' | 'per-output';
|
|
46
|
+
protected getExclusive(): boolean;
|
|
47
|
+
private getMatchingOutputDescription;
|
|
48
|
+
private getUnmatchedOutputDescription;
|
|
49
|
+
private getCasePortIds;
|
|
50
|
+
private getCaseTitle;
|
|
51
|
+
private getCaseValueInputId;
|
|
52
|
+
}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { type NodeUIData } from '../NodeImpl.js';
|
|
2
|
+
import { type ChartNode } from '../NodeBase.js';
|
|
3
|
+
import { MatchCaseNodeBase, type MatchCaseRoutingData } from './MatchCaseNodeBase.js';
|
|
4
|
+
export type MatchNodeData = MatchCaseRoutingData;
|
|
4
5
|
export type MatchNode = ChartNode<'match', MatchNodeData>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exclusive?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare class MatchNodeImpl extends NodeImpl<MatchNode> {
|
|
6
|
+
/** Display-only label; the persisted `match` type remains available for existing graphs. */
|
|
7
|
+
export declare const regexMatchLegacyDisplayName = "Regex Match (legacy)";
|
|
8
|
+
/** The persisted `match` type stays regex-only for backwards compatibility. */
|
|
9
|
+
export declare class MatchNodeImpl extends MatchCaseNodeBase<MatchNode> {
|
|
10
|
+
protected readonly caseEditorLabel = "Cases (regular expressions)";
|
|
11
|
+
protected readonly caseEditorPlaceholder = "Case (regular expression)";
|
|
14
12
|
static create(): MatchNode;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
getEditors(): EditorDefinition<MatchNode>[];
|
|
13
|
+
protected matchesCase(input: string, caseValue: string): boolean;
|
|
14
|
+
protected describeCaseMatch(caseValue: string): string;
|
|
15
|
+
protected describeNoCaseMatches(): string;
|
|
19
16
|
static getUIData(): NodeUIData;
|
|
20
|
-
process(inputs: Inputs): Promise<Outputs>;
|
|
21
|
-
private getValueInputMode;
|
|
22
|
-
private getCasePortIds;
|
|
23
|
-
private getCaseTitle;
|
|
24
|
-
private getCaseValueInputId;
|
|
25
17
|
}
|
|
26
18
|
export declare const matchNode: import("../NodeDefinition.js").NodeDefinition<MatchNode>;
|