@valerypopoff/rivet2-core 2.7.0 → 2.9.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.
Files changed (44) hide show
  1. package/dist/cjs/bundle.cjs +514 -353
  2. package/dist/cjs/bundle.cjs.map +4 -4
  3. package/dist/cjs/interpolationRuntime.cjs.map +2 -2
  4. package/dist/esm/model/GraphPreprocessor.js +11 -0
  5. package/dist/esm/model/GraphProcessor.js +84 -24
  6. package/dist/esm/model/LegacyChatEditorCache.js +50 -0
  7. package/dist/esm/model/NodeExclusionPolicy.js +1 -0
  8. package/dist/esm/model/Nodes.js +3 -0
  9. package/dist/esm/model/RecordingPlayer.js +20 -2
  10. package/dist/esm/model/StreamingOutputWatch.js +18 -18
  11. package/dist/esm/model/StreamingOutputWatchHistory.js +1 -0
  12. package/dist/esm/model/chat-v2/chatV2Shared.js +2 -1
  13. package/dist/esm/model/chat-v2/llmChatV2NodeEditors.js +2 -1
  14. package/dist/esm/model/nodes/ChatLoopNode.js +8 -4
  15. package/dist/esm/model/nodes/ChatNodeBase.js +18 -13
  16. package/dist/esm/model/nodes/CoalesceNewNode.js +22 -0
  17. package/dist/esm/model/nodes/CoalesceNode.js +15 -133
  18. package/dist/esm/model/nodes/CoalesceNodeBase.js +131 -0
  19. package/dist/esm/model/nodes/CodeNewNode.js +1 -1
  20. package/dist/esm/model/nodes/ExpressionNode.js +1 -1
  21. package/dist/esm/model/nodes/LoopControllerNode.js +6 -4
  22. package/dist/esm/model/nodes/StopWatchingStreamingOutputNode.js +2 -0
  23. package/dist/esm/plugins/anthropic/nodes/ChatAnthropicNode.js +17 -15
  24. package/dist/esm/plugins/google/google.js +8 -128
  25. package/dist/esm/plugins/google/googleGenerativeAi.js +101 -0
  26. package/dist/esm/plugins/google/nodes/ChatGoogleNode.js +36 -15
  27. package/dist/esm/recording/ExecutionRecorder.js +2 -1
  28. package/dist/types/model/ExecutorProtocol.d.ts +1 -0
  29. package/dist/types/model/GraphPreprocessor.d.ts +2 -0
  30. package/dist/types/model/GraphProcessor.d.ts +5 -1
  31. package/dist/types/model/LegacyChatEditorCache.d.ts +39 -0
  32. package/dist/types/model/Nodes.d.ts +3 -2
  33. package/dist/types/model/StreamingOutputWatch.d.ts +13 -11
  34. package/dist/types/model/StreamingOutputWatchHistory.d.ts +2 -0
  35. package/dist/types/model/chat-v2/chatV2Shared.d.ts +1 -0
  36. package/dist/types/model/nodes/ChatLoopNode.d.ts +2 -0
  37. package/dist/types/model/nodes/CoalesceNewNode.d.ts +10 -0
  38. package/dist/types/model/nodes/CoalesceNode.d.ts +9 -15
  39. package/dist/types/model/nodes/CoalesceNodeBase.d.ts +19 -0
  40. package/dist/types/model/nodes/LoopControllerNode.d.ts +2 -0
  41. package/dist/types/plugins/google/google.d.ts +3 -110
  42. package/dist/types/plugins/google/googleGenerativeAi.d.ts +110 -0
  43. package/dist/types/recording/RecordedEvents.d.ts +1 -0
  44. package/package.json +1 -1
@@ -0,0 +1,101 @@
1
+ import {} from '@google/genai';
2
+ export const googleModelsDeprecated = {
3
+ 'gemini-pro': {
4
+ maxTokens: 32760,
5
+ cost: { prompt: NaN, completion: NaN },
6
+ displayName: 'Gemini Pro',
7
+ },
8
+ 'gemini-pro-vision': {
9
+ maxTokens: 16384,
10
+ cost: { prompt: NaN, completion: NaN },
11
+ displayName: 'Gemini Pro Vision',
12
+ },
13
+ };
14
+ export const generativeAiGoogleModels = {
15
+ 'gemini-2.5-pro': {
16
+ maxTokens: 1048576,
17
+ cost: {
18
+ prompt: 1.25 / 1000, // <= 200k tokens, > 200k tokens is 2.5 / 1000
19
+ completion: 10 / 1000, // <= 200k tokens, > 200k tokens is 15 / 1000
20
+ },
21
+ displayName: 'Gemini 2.5 Pro',
22
+ },
23
+ 'gemini-2.5-flash': {
24
+ maxTokens: 1048576,
25
+ cost: { prompt: 0.3 / 1000, completion: 2.5 / 1000 },
26
+ displayName: 'Gemini 2.5 Flash',
27
+ },
28
+ 'gemini-2.5-flash-lite-preview-06-17': {
29
+ maxTokens: 1000000,
30
+ cost: { prompt: 0.1 / 1000, completion: 0.4 / 1000 },
31
+ displayName: 'Gemini 2.5 Flash Lite Preview',
32
+ },
33
+ 'gemini-2.0-flash': {
34
+ maxTokens: 1048576,
35
+ cost: { prompt: 0.1 / 1000, completion: 0.4 / 1000 },
36
+ displayName: 'Gemini 2.0 Flash',
37
+ },
38
+ 'gemini-2.0-flash-lite': {
39
+ maxTokens: 1048576,
40
+ cost: { prompt: 0.075 / 1000, completion: 0.3 / 1000 },
41
+ displayName: 'Gemini 2.0 Flash Lite',
42
+ },
43
+ 'gemini-1.5-pro': {
44
+ maxTokens: 2097152,
45
+ displayName: 'Gemini 1.5 Pro',
46
+ // The retained legacy model stays selectable, but its old catalog did not
47
+ // carry a reliable token rate. Do not turn that absence into a false $0.
48
+ pricing: 'unpriced',
49
+ },
50
+ 'gemini-1.5-flash': {
51
+ maxTokens: 1048576,
52
+ displayName: 'Gemini 1.5 Flash',
53
+ pricing: 'unpriced',
54
+ },
55
+ };
56
+ export const googleModelOptionsDeprecated = Object.entries(googleModelsDeprecated).map(([id, { displayName }]) => ({
57
+ value: id,
58
+ label: displayName,
59
+ }));
60
+ export const generativeAiOptions = Object.entries(generativeAiGoogleModels).map(([id, { displayName }]) => ({
61
+ value: id,
62
+ label: displayName,
63
+ }));
64
+ export async function* streamGenerativeAi({ apiKey, model, systemPrompt, prompt, maxOutputTokens, temperature, topP, topK, signal, tools, thinkingBudget, additionalHeaders, }) {
65
+ const { GoogleGenAI } = await import('@google/genai');
66
+ const genAi = new GoogleGenAI({ apiKey });
67
+ const result = await genAi.models.generateContentStream({
68
+ model,
69
+ contents: prompt,
70
+ config: {
71
+ systemInstruction: systemPrompt,
72
+ maxOutputTokens,
73
+ temperature,
74
+ topP,
75
+ topK,
76
+ tools,
77
+ abortSignal: signal,
78
+ thinkingConfig: { thinkingBudget },
79
+ httpOptions: { headers: { ...additionalHeaders } },
80
+ },
81
+ });
82
+ for await (const chunk of result) {
83
+ const outChunk = {
84
+ completion: undefined,
85
+ finish_reason: undefined,
86
+ function_calls: undefined,
87
+ model,
88
+ };
89
+ const functionCalls = chunk.functionCalls;
90
+ if (functionCalls) {
91
+ outChunk.function_calls = functionCalls;
92
+ }
93
+ if (chunk.candidates) {
94
+ outChunk.completion = chunk.candidates[0]?.content?.parts?.[0]?.text;
95
+ outChunk.finish_reason = chunk.candidates[0]?.finishReason;
96
+ }
97
+ if (outChunk.completion || outChunk.function_calls) {
98
+ yield outChunk;
99
+ }
100
+ }
101
+ }
@@ -14,6 +14,7 @@ import { mapValues } from 'lodash-es';
14
14
  import { coercePromptToChatMessages } from '../../../model/chat/chatMessages.js';
15
15
  import { clampMaxTokensToModelLimit, setRequestAndResponseTokenOutputs } from '../../../model/chat/tokenBudget.js';
16
16
  import { createAssistantMessagesOutput } from '../../../model/chat/streamChatResponse.js';
17
+ import { resolveLegacyChatEditorCache, writeLegacyChatEditorCache } from '../../../model/LegacyChatEditorCache.js';
17
18
  function toGoogleSchemaType(type) {
18
19
  switch (type) {
19
20
  case 'string':
@@ -31,8 +32,6 @@ function toGoogleSchemaType(type) {
31
32
  return undefined;
32
33
  }
33
34
  }
34
- // Temporary
35
- const cache = new Map();
36
35
  export const ChatGoogleNodeImpl = {
37
36
  create() {
38
37
  const chartNode = {
@@ -241,8 +240,9 @@ export const ChatGoogleNodeImpl = {
241
240
  },
242
241
  {
243
242
  type: 'toggle',
244
- label: 'Cache (same inputs, same outputs)',
243
+ label: 'Cache outputs (editor only)',
245
244
  dataKey: 'cache',
245
+ helperMessage: 'Reuses a matching ordinary chat response while this project remains open. Tool-capable requests always run normally.',
246
246
  },
247
247
  {
248
248
  type: 'toggle',
@@ -445,13 +445,22 @@ export const ChatGoogleNodeImpl = {
445
445
  thinkingBudget,
446
446
  additionalHeaders: allAdditionalHeaders,
447
447
  };
448
- const cacheKey = JSON.stringify(options);
449
- if (data.cache) {
450
- const cached = cache.get(cacheKey);
451
- if (cached) {
452
- context.markResultAsEditorCacheHit?.();
453
- return cached;
454
- }
448
+ const { cache, cachedOutputs } = resolveLegacyChatEditorCache({
449
+ context,
450
+ enabled: data.cache && !data.useToolCalling,
451
+ providerIdentity: apiKey
452
+ ? { apiKey, headers: allAdditionalHeaders, transport: 'generative-ai' }
453
+ : {
454
+ applicationCredentials,
455
+ location,
456
+ project,
457
+ transport: 'vertex-ai',
458
+ },
459
+ request: options,
460
+ });
461
+ if (cachedOutputs != null) {
462
+ context.markResultAsEditorCacheHit?.();
463
+ return cachedOutputs;
455
464
  }
456
465
  const startTime = Date.now();
457
466
  let chunks;
@@ -547,7 +556,7 @@ export const ChatGoogleNodeImpl = {
547
556
  const duration = endTime - startTime;
548
557
  output['duration'] = { type: 'number', value: duration };
549
558
  Object.freeze(output);
550
- cache.set(cacheKey, output);
559
+ writeLegacyChatEditorCache(cache, output);
551
560
  return output;
552
561
  }, {
553
562
  retries: 10,
@@ -559,13 +568,25 @@ export const ChatGoogleNodeImpl = {
559
568
  signal: context.signal,
560
569
  onFailedAttempt(err) {
561
570
  context.trace(`ChatGoogleNode failed, retrying: ${err.toString()}`);
562
- const googleError = err;
563
- if (googleError.status && googleError.status >= 400 && googleError.status < 500) {
564
- if (googleError.status === 429) {
571
+ // p-retry gives this callback a failed-attempt wrapper. Reading
572
+ // status from the wrapper makes a provider's deterministic 4xx
573
+ // failure look retryable, even though the original error is
574
+ // available as `error`.
575
+ const providerError = err.error ?? err;
576
+ const googleError = providerError;
577
+ const message = googleError.message ?? String(providerError);
578
+ // Older browser versions of @google/genai expose 4xx failures as
579
+ // `ClientError` with the HTTP status only in the message. Keep
580
+ // the structured fields first for newer SDKs, then recover that
581
+ // documented message shape so invalid requests do not retry.
582
+ const messageStatus = /\bstatus:\s*(\d{3})\b/.exec(message)?.[1];
583
+ const status = googleError.status ?? googleError.code ?? (messageStatus ? Number(messageStatus) : undefined);
584
+ if (status && status >= 400 && status < 500) {
585
+ if (status === 429) {
565
586
  context.trace('Google API rate limit exceeded, retrying...');
566
587
  }
567
588
  else {
568
- throw new Error(`Google API error: ${googleError.status} ${googleError.message}`);
589
+ throw new Error(`Google API error: ${status} ${message}`);
569
590
  }
570
591
  }
571
592
  if (context.signal.aborted) {
@@ -31,11 +31,12 @@ const toRecordedEventMap = {
31
31
  processId,
32
32
  ...(resultOrigin === undefined ? {} : { resultOrigin }),
33
33
  }, execution),
34
- nodeFinish: ({ node, outputs, processId, resultOrigin, durationMs, splitRunDurationMs, execution }) => withExecution(withDuration({
34
+ nodeFinish: ({ node, outputs, processId, resultOrigin, durationMs, splitRunDurationMs, streamingWatchTerminal, execution }) => withExecution(withDuration({
35
35
  nodeId: node.id,
36
36
  outputs,
37
37
  processId,
38
38
  ...(resultOrigin === undefined ? {} : { resultOrigin }),
39
+ ...(streamingWatchTerminal ? { streamingWatchTerminal: true } : {}),
39
40
  }, durationMs, splitRunDurationMs), execution),
40
41
  nodeError: ({ node, error, processId, outputs, splitOutputs, resultOrigin, durationMs, splitRunDurationMs, execution }) => withExecution(withDuration({
41
42
  nodeId: node.id,
@@ -67,6 +67,7 @@ export type SerializedProcessEventMap = {
67
67
  resultOrigin?: NodeResultOrigin;
68
68
  durationMs?: number;
69
69
  splitRunDurationMs?: Record<number, number>;
70
+ streamingWatchTerminal?: boolean;
70
71
  }>;
71
72
  nodeError: WithExecution<{
72
73
  node: ChartNode;
@@ -41,6 +41,8 @@ export type GraphExecutionPlan = Omit<GraphPreprocessorResult, 'nodeInstances'>
41
41
  export type GraphPreprocessorExecutionPlanResult = GraphPreprocessorResult & GraphExecutionPlan;
42
42
  export type GraphPreprocessedState = GraphPreprocessorResult | GraphPreprocessorExecutionPlanResult;
43
43
  type GraphPreprocessorOptions = {
44
+ /** Original definitions for inert input anchors in an internally sliced graph. */
45
+ inputAnchorDefinitions?: GraphNodeDefinitions;
44
46
  buildExecutionPlan?: boolean;
45
47
  definitionContext?: NodeDefinitionContext;
46
48
  graph: NodeGraph;
@@ -8,7 +8,7 @@ import type { GraphExecutionMetadata, InternalProcessContext, ProcessContext, Pr
8
8
  import type { ExecutionRecorder } from '../recording/ExecutionRecorder.js';
9
9
  import type { Tagged } from 'type-fest';
10
10
  import type { NodeRegistration } from './NodeRegistration.js';
11
- import { type GraphExecutionPlan } from './GraphPreprocessor.js';
11
+ import { type GraphExecutionPlan, type GraphNodeDefinitions } from './GraphPreprocessor.js';
12
12
  import { type GraphBoundaryCache } from './GraphBoundaryCache.js';
13
13
  import { type GraphProgress } from './GraphProgress.js';
14
14
  import { type RivetStoredValueStore } from './StoredValueStore.js';
@@ -35,6 +35,7 @@ type WithExecution<T extends object> = T & {
35
35
  } & ReplayEventTiming & EventOccurrenceTiming;
36
36
  declare const graphProcessorGraphOverride: unique symbol;
37
37
  declare const consumedAsyncBranchTriggerOverride: unique symbol;
38
+ declare const asyncBranchInputAnchorsOverride: unique symbol;
38
39
  declare const consumedStreamingWatchNodeOverride: unique symbol;
39
40
  export type NodeResultOrigin = 'executed' | 'preloaded' | 'frozen' | 'editor-cache' | 'unknown';
40
41
  export type ProcessEvents = {
@@ -88,6 +89,8 @@ export type ProcessEvents = {
88
89
  resultOrigin?: NodeResultOrigin;
89
90
  durationMs?: number;
90
91
  splitRunDurationMs?: Record<number, number>;
92
+ /** True only for the one Stop result accepted by a repeated Watch branch. */
93
+ streamingWatchTerminal?: boolean;
91
94
  }>;
92
95
  /** Called when a node has errored during processing. */
93
96
  nodeError: WithExecution<{
@@ -313,6 +316,7 @@ export declare class GraphProcessor {
313
316
  scheduler?: GraphProcessorScheduler;
314
317
  [graphProcessorGraphOverride]?: NodeGraph;
315
318
  [consumedAsyncBranchTriggerOverride]?: NodeId;
319
+ [asyncBranchInputAnchorsOverride]?: GraphNodeDefinitions;
316
320
  [consumedStreamingWatchNodeOverride]?: NodeId;
317
321
  });
318
322
  on: Emittery<ProcessEvents>["on"];
@@ -0,0 +1,39 @@
1
+ import type { Outputs } from './GraphProcessor.js';
2
+ import type { InternalProcessContext } from './ProcessContext.js';
3
+ type LegacyChatEditorCacheKeyParts = {
4
+ graphId: string | undefined;
5
+ nodeId: string;
6
+ nodeType: string;
7
+ providerIdentity: unknown;
8
+ request: unknown;
9
+ };
10
+ export type LegacyChatEditorCache = {
11
+ cache: Map<string, unknown>;
12
+ cacheKey: string;
13
+ };
14
+ /**
15
+ * Builds an opaque cache key for a legacy chat request.
16
+ *
17
+ * Legacy chat nodes may receive credentials and request headers from settings,
18
+ * neither of which belongs in a process-global key (or in clear text in any
19
+ * cache key). The digest scopes entries to the graph/node and all effective
20
+ * request/provider inputs without retaining those values in the Map key.
21
+ */
22
+ export declare function buildLegacyChatEditorCacheKey(parts: LegacyChatEditorCacheKeyParts): string;
23
+ /**
24
+ * Resolves the existing host-owned editor cache for a legacy chat request.
25
+ * Programmatic callers that do not supply an editor cache remain isolated to
26
+ * their GraphProcessor's execution cache instead of sharing process state.
27
+ */
28
+ export declare function resolveLegacyChatEditorCache(params: {
29
+ context: InternalProcessContext;
30
+ enabled: boolean;
31
+ providerIdentity: unknown;
32
+ request: unknown;
33
+ }): {
34
+ cache: LegacyChatEditorCache | undefined;
35
+ cachedOutputs: Outputs | undefined;
36
+ };
37
+ /** Stores a private snapshot so downstream execution cannot mutate a cache entry. */
38
+ export declare function writeLegacyChatEditorCache(cache: LegacyChatEditorCache | undefined, outputs: Outputs): void;
39
+ export {};
@@ -31,6 +31,7 @@ export * from './nodes/RaiseEventNode.js';
31
31
  export * from './nodes/ReportProgressNode.js';
32
32
  export * from './nodes/ContextNode.js';
33
33
  export * from './nodes/CoalesceNode.js';
34
+ export * from './nodes/CoalesceNewNode.js';
34
35
  export * from './nodes/DidRunNode.js';
35
36
  export * from './nodes/PassthroughNode.js';
36
37
  export * from './nodes/DataBusNode.js';
@@ -105,12 +106,12 @@ export * from './nodes/MCPToolCallNode.js';
105
106
  export * from './nodes/MCPGetPromptNode.js';
106
107
  export * from './nodes/ReferencedGraphAliasNode.js';
107
108
  export * from './nodes/NodePrefabInstanceNode.js';
108
- 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" | "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" | "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/CoalesceNode.js").CoalesceNode | 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 & {
109
+ 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" | "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/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 & {
109
110
  type: "mcpDiscovery";
110
111
  data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
111
112
  variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
112
113
  }) | import("./nodes/MCPToolCallNode.js").MCPToolCallNode | import("./nodes/MCPGetPromptNode.js").MCPGetPromptNode | import("./nodes/ReferencedGraphAliasNode.js").ReferencedGraphAliasNode | import("./NodePrefabResolver.js").NodePrefabInstanceNode>;
113
- 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" | "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" | "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/CoalesceNode.js").CoalesceNode | 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 & {
114
+ 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" | "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/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 & {
114
115
  type: "mcpDiscovery";
115
116
  data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
116
117
  variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
@@ -15,7 +15,10 @@ export type StreamingOutputWatchRuntimeSummary = {
15
15
  coalescedUpdates: number;
16
16
  droppedUpdates: number;
17
17
  maximumQueuedUpdates: number;
18
- /** A coordinator failure that is not necessarily a failed child iteration. */
18
+ /**
19
+ * A coordinator failure that is not necessarily a failed child iteration.
20
+ * `missing-stop` is retained only to read historical recording summaries.
21
+ */
19
22
  failureKind?: StreamingOutputWatchFailureKind;
20
23
  };
21
24
  export type StreamingOutputWatchFailureKind = 'branch-failure' | 'missing-stop' | 'queue-overflow';
@@ -46,26 +49,25 @@ export declare const streamingOutputWatchLimits: {
46
49
  /**
47
50
  * Owns bounded, cancellable delivery of a streaming node's immutable output
48
51
  * snapshots. It deliberately knows nothing about graph topology: the owning
49
- * GraphProcessor decides how a snapshot runs and whether accepting Stop is
50
- * required to complete the watch.
52
+ * GraphProcessor decides how a snapshot runs and whether a Stop boundary
53
+ * must be resolved after the stream completes.
51
54
  */
52
55
  export declare class StreamingOutputWatch {
53
56
  #private;
54
- constructor(options: Partial<StreamingOutputWatchOptions>, run: (snapshot: StreamingOutputWatchSnapshot, registerCancel: (cancel: () => void) => void) => Promise<void>, onFailure: (error: Error) => void, { requiresAcceptedStop }?: {
55
- requiresAcceptedStop?: boolean;
56
- });
57
+ constructor(options: Partial<StreamingOutputWatchOptions>, run: (snapshot: StreamingOutputWatchSnapshot, registerCancel: (cancel: () => void) => void) => Promise<void>, onFailure: (error: Error) => void);
57
58
  get hasPending(): boolean;
58
59
  get isAwaitingProducer(): boolean;
59
60
  get stopped(): boolean;
60
61
  /** True only after this Watch can no longer receive or run a snapshot. */
61
62
  get isSettled(): boolean;
62
- get runtimeSummary(): StreamingOutputWatchRuntimeSummary;
63
63
  /**
64
- * A Stop boundary can enqueue ordinary parent-graph work when its node
65
- * completes. Until it settles, its result is not safe to expose
66
- * through the foreground-output boundary.
64
+ * The producer delivered its final snapshot and every scheduled invocation
65
+ * settled without cancellation or failure. The scheduler deliberately does
66
+ * not infer graph topology; GraphProcessor decides whether this means a
67
+ * parent Stop must be excluded.
67
68
  */
68
- get canAffectForegroundOutputs(): boolean;
69
+ get finishedNormally(): boolean;
70
+ get runtimeSummary(): StreamingOutputWatchRuntimeSummary;
69
71
  publish(snapshot: StreamingOutputWatchSnapshot): void;
70
72
  finish(finalSnapshot: StreamingOutputWatchSnapshot): void;
71
73
  /** Preserve the winning invocation's siblings; later owner cancellation cancels all. */
@@ -10,6 +10,8 @@ export type StreamingOutputWatchHistorySummary = StreamingOutputWatchRuntimeSumm
10
10
  omittedIterations: number;
11
11
  retainedIterationUpdateIndexes: number[];
12
12
  selectedIteration?: {
13
+ /** The retained child run that is presented as the Watch terminal page. */
14
+ graphRunId?: GraphRunId;
13
15
  updateIndex: number;
14
16
  reason: 'failure' | 'stop' | 'latest';
15
17
  };
@@ -26,6 +26,7 @@ export type ChatV2CommonNodeData = {
26
26
  useAsGraphPartialOutput?: boolean;
27
27
  };
28
28
  type ChatV2SharedNode = ChartNode<string, ChatV2CommonNodeData>;
29
+ export declare const STREAM_RESPONSE_HELPER_MESSAGE = "Shows streamed response updates in the editor, including direct consumer previews. Ordinary consumers run after the final response; Watch Streaming Output branches can run during streaming.";
29
30
  export type CommonChatV2InputOptions = {
30
31
  systemPromptPortId?: PortId;
31
32
  promptPortId?: PortId;
@@ -5,6 +5,8 @@ import { type InternalProcessContext } from '../ProcessContext.js';
5
5
  import { type EditorDefinition } from '../../index.js';
6
6
  import { type ChatNodeData } from './ChatNodeBase.js';
7
7
  export type ChatLoopNode = ChartNode<'chatLoop', ChatLoopNodeData>;
8
+ /** Display-only label; the persisted node type remains the stable `chatLoop`. */
9
+ export declare const chatLoopLegacyDisplayName = "Chat Loop (legacy)";
8
10
  export type ChatLoopNodeData = ChatNodeData & {
9
11
  userPrompt: string;
10
12
  renderingFormat?: 'text' | 'markdown';
@@ -0,0 +1,10 @@
1
+ import { type NodeUIData } from '../NodeImpl.js';
2
+ import { type ChartNode } from '../NodeBase.js';
3
+ import { CoalesceNodeBase, type CoalesceNodeData } from './CoalesceNodeBase.js';
4
+ export type CoalesceNewNode = ChartNode<'coalesceNew', CoalesceNodeData>;
5
+ export declare class CoalesceNewNodeImpl extends CoalesceNodeBase<CoalesceNewNode> {
6
+ protected readonly includesLegacyConditionalInput = false;
7
+ static create: () => CoalesceNewNode;
8
+ static getUIData(): NodeUIData;
9
+ }
10
+ export declare const coalesceNewNode: import("../NodeDefinition.js").NodeDefinition<CoalesceNewNode>;
@@ -1,20 +1,14 @@
1
- import { NodeImpl, type NodeUIData } from '../NodeImpl.js';
2
- import { type ChartNode, type NodeConnection, type NodeInputDefinition, type NodeOutputDefinition } from '../NodeBase.js';
3
- import { type Inputs, type Outputs } from '../GraphProcessor.js';
4
- import { type EditorDefinition } from '../EditorDefinition.js';
1
+ import { type NodeUIData } from '../NodeImpl.js';
2
+ import { type ChartNode } from '../NodeBase.js';
3
+ import { CoalesceNodeBase, type CoalesceNodeData } from './CoalesceNodeBase.js';
5
4
  export type CoalesceNode = ChartNode<'coalesce', CoalesceNodeData>;
6
- export type CoalesceNodeData = {
7
- ignoreNull?: boolean;
8
- ignoreUndefined?: boolean;
9
- };
10
- export declare class CoalesceNodeImpl extends NodeImpl<CoalesceNode> {
11
- #private;
5
+ /** Display-only label; the persisted node type remains the stable `coalesce`. */
6
+ export declare const coalesceLegacyDisplayName = "Coalesce (legacy)";
7
+ /** The persisted `coalesce` type remains available for existing graphs. */
8
+ export declare class CoalesceNodeImpl extends CoalesceNodeBase<CoalesceNode> {
9
+ protected readonly includesLegacyConditionalInput = true;
12
10
  static create: () => CoalesceNode;
13
- getInputDefinitions(connections: NodeConnection[]): NodeInputDefinition[];
14
- getOutputDefinitions(): NodeOutputDefinition[];
15
- getEditors(): EditorDefinition<CoalesceNode>[];
16
- getBody(): string | undefined;
17
11
  static getUIData(): NodeUIData;
18
- process(inputData: Inputs): Promise<Outputs>;
19
12
  }
13
+ export { type CoalesceNodeData } from './CoalesceNodeBase.js';
20
14
  export declare const coalesceNode: import("../NodeDefinition.js").NodeDefinition<CoalesceNode>;
@@ -0,0 +1,19 @@
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 NodeConnection, type NodeInputDefinition, type NodeOutputDefinition } from '../NodeBase.js';
5
+ export type CoalesceNodeData = {
6
+ ignoreNull?: boolean;
7
+ ignoreUndefined?: boolean;
8
+ };
9
+ export declare function createCoalesceNode<T extends string>(type: T, title: string): ChartNode<T, CoalesceNodeData>;
10
+ /** Shared fallback behavior for the current and compatibility Coalesce nodes. */
11
+ export declare abstract class CoalesceNodeBase<T extends ChartNode<string, CoalesceNodeData>> extends NodeImpl<T> {
12
+ #private;
13
+ protected abstract readonly includesLegacyConditionalInput: boolean;
14
+ getInputDefinitions(connections: NodeConnection[]): NodeInputDefinition[];
15
+ getOutputDefinitions(): NodeOutputDefinition[];
16
+ getEditors(): EditorDefinition<T>[];
17
+ getBody(): string | undefined;
18
+ process(inputData: Inputs): Promise<Outputs>;
19
+ }
@@ -4,6 +4,8 @@ import { type Inputs, type Outputs } from '../GraphProcessor.js';
4
4
  import { type InternalProcessContext } from '../ProcessContext.js';
5
5
  import { type EditorDefinition } from '../../index.js';
6
6
  export type LoopControllerNode = ChartNode<'loopController', LoopControllerNodeData>;
7
+ /** Display-only label; persisted projects keep the stable `loopController` type. */
8
+ export declare const loopControllerLegacyDisplayName = "Loop Controller (legacy)";
7
9
  export type LoopControllerNodeData = {
8
10
  maxIterations?: number;
9
11
  atMaxIterationsAction?: 'break' | 'error';