@valerypopoff/rivet2-core 2.1.8 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/cjs/bundle.cjs +4457 -1809
  2. package/dist/cjs/bundle.cjs.map +4 -4
  3. package/dist/cjs/webAppRuntime.cjs +298 -21
  4. package/dist/cjs/webAppRuntime.cjs.map +4 -4
  5. package/dist/esm/exports.js +1 -0
  6. package/dist/esm/model/AgentResponseTrace.js +448 -0
  7. package/dist/esm/model/ConnectedToolContinuationHost.js +33 -0
  8. package/dist/esm/model/GraphProcessor.js +152 -74
  9. package/dist/esm/model/NodeImpl.js +6 -0
  10. package/dist/esm/model/ProcessContextBuilder.js +3 -1
  11. package/dist/esm/model/RecordingPlayer.js +164 -22
  12. package/dist/esm/model/SplitRunProcessor.js +68 -18
  13. package/dist/esm/model/SubprocessorBridge.js +2 -0
  14. package/dist/esm/model/ToolCallContinuationCoordinator.js +13 -4
  15. package/dist/esm/model/UiGraph.js +21 -0
  16. package/dist/esm/model/UiGraphActionProtocol.js +2 -0
  17. package/dist/esm/model/UiGraphBrowserRuntime.js +133 -4
  18. package/dist/esm/model/UiGraphRendererStyles.js +221 -0
  19. package/dist/esm/model/UiGraphRuntimeModel.js +9 -3
  20. package/dist/esm/model/UiGraphSchema.js +7 -1
  21. package/dist/esm/model/chat/aiSdkMessages.js +8 -0
  22. package/dist/esm/model/chat/aiSdkTools.js +3 -2
  23. package/dist/esm/model/chat-v2/chatV2CallObserver.js +11 -5
  24. package/dist/esm/model/chat-v2/chatV2EditorCache.js +58 -10
  25. package/dist/esm/model/chat-v2/chatV2Errors.js +7 -19
  26. package/dist/esm/model/chat-v2/chatV2FeatureCompatibility.js +1 -1
  27. package/dist/esm/model/chat-v2/chatV2Outputs.js +56 -106
  28. package/dist/esm/model/chat-v2/chatV2Pipeline.js +142 -149
  29. package/dist/esm/model/chat-v2/chatV2ProviderProfile.js +9 -2
  30. package/dist/esm/model/chat-v2/chatV2ProviderRegistry.js +9 -0
  31. package/dist/esm/model/chat-v2/chatV2RequestPlan.js +5 -5
  32. package/dist/esm/model/chat-v2/chatV2ResponseBodyCapture.js +55 -0
  33. package/dist/esm/model/chat-v2/chatV2ResponseFormat.js +8 -4
  34. package/dist/esm/model/chat-v2/chatV2Retry.js +4 -3
  35. package/dist/esm/model/chat-v2/chatV2RuntimeOptions.js +6 -1
  36. package/dist/esm/model/chat-v2/chatV2Shared.js +1 -6
  37. package/dist/esm/model/chat-v2/chatV2Types.js +7 -1
  38. package/dist/esm/model/chat-v2/chatV2UsageAccounting.js +78 -0
  39. package/dist/esm/model/chat-v2/customProviderApi.js +42 -0
  40. package/dist/esm/model/chat-v2/developerMessageRoles.js +45 -0
  41. package/dist/esm/model/chat-v2/index.js +12 -0
  42. package/dist/esm/model/chat-v2/llmChatV2Body.js +281 -0
  43. package/dist/esm/model/chat-v2/llmChatV2CacheBoundary.js +32 -0
  44. package/dist/esm/model/chat-v2/llmChatV2CachePolicy.js +20 -0
  45. package/dist/esm/model/chat-v2/llmChatV2NodeData.js +8 -54
  46. package/dist/esm/model/chat-v2/llmChatV2NodeEditors.js +41 -20
  47. package/dist/esm/model/chat-v2/llmChatV2NodeMigration.js +24 -0
  48. package/dist/esm/model/chat-v2/llmChatV2NodeRuntime.js +178 -94
  49. package/dist/esm/model/chat-v2/llmInvocationCoordinator.js +60 -0
  50. package/dist/esm/model/chat-v2/llmInvocationDecision.js +11 -0
  51. package/dist/esm/model/chat-v2/llmInvocationJournal.js +43 -0
  52. package/dist/esm/model/chat-v2/llmInvocationPlan.js +68 -0
  53. package/dist/esm/model/chat-v2/llmInvocationProjections.js +5 -0
  54. package/dist/esm/model/chat-v2/llmInvocationResultProjector.js +48 -0
  55. package/dist/esm/model/chat-v2/llmModelCandidate.js +75 -0
  56. package/dist/esm/model/chat-v2/llmProfile.js +31 -65
  57. package/dist/esm/model/chat-v2/llmProfileBody.js +183 -0
  58. package/dist/esm/model/chat-v2/llmProfileFallback.js +244 -0
  59. package/dist/esm/model/chat-v2/llmProfileFieldRegistry.js +67 -0
  60. package/dist/esm/model/chat-v2/llmProfileNodeRuntime.js +3 -0
  61. package/dist/esm/model/chat-v2/llmProfileTypes.js +1 -18
  62. package/dist/esm/model/chat-v2/llmResponseMaterializer.js +42 -0
  63. package/dist/esm/model/chat-v2/messageConverter.js +14 -0
  64. package/dist/esm/model/chat-v2/modelRegistry.js +54 -4
  65. package/dist/esm/model/chat-v2/parallelToolCalls.js +9 -2
  66. package/dist/esm/model/chat-v2/providerOptions.js +120 -21
  67. package/dist/esm/model/chat-v2/rivetToolRegistry.js +9 -0
  68. package/dist/esm/model/chat-v2/toolCallCodec.js +52 -0
  69. package/dist/esm/model/chat-v2/toolContinuation.js +72 -39
  70. package/dist/esm/model/chat-v2/toolHandlerResolver.js +23 -0
  71. package/dist/esm/model/chat-v2/toolRoundExecutor.js +12 -0
  72. package/dist/esm/model/nodes/AssembleMessageNode.js +6 -0
  73. package/dist/esm/model/nodes/ChatNode.js +6 -0
  74. package/dist/esm/model/nodes/ChatNodeBase.js +1 -0
  75. package/dist/esm/model/nodes/DelegateFunctionCallNode.js +26 -1
  76. package/dist/esm/model/nodes/LLMChatV2Node.js +131 -144
  77. package/dist/esm/model/nodes/LLMProfileNode.js +27 -8
  78. package/dist/esm/model/nodes/PromptNode.js +16 -2
  79. package/dist/esm/model/nodes/ToolNode.js +7 -0
  80. package/dist/esm/model/nodes/toolCallDelegation.js +193 -110
  81. package/dist/esm/plugins/anthropic/anthropic.js +4 -4
  82. package/dist/esm/plugins/anthropic/nodes/ChatAnthropicNode.js +29 -28
  83. package/dist/esm/plugins/google/google.js +25 -18
  84. package/dist/esm/plugins/google/nodes/ChatGoogleNode.js +21 -7
  85. package/dist/esm/recording/ExecutionRecorder.js +13 -5
  86. package/dist/esm/utils/chatMessageToOpenAIChatCompletionMessage.js +4 -0
  87. package/dist/esm/utils/emitDetached.js +6 -3
  88. package/dist/esm/utils/openai.js +60 -16
  89. package/dist/esm/utils/serialization/serialization.js +2 -0
  90. package/dist/esm/webAppRuntime.js +3 -2
  91. package/dist/types/exports.d.ts +1 -0
  92. package/dist/types/model/AgentResponseTrace.d.ts +110 -0
  93. package/dist/types/model/ConnectedToolContinuationHost.d.ts +34 -0
  94. package/dist/types/model/DataValue.d.ts +7 -1
  95. package/dist/types/model/ExecutorProtocol.d.ts +25 -7
  96. package/dist/types/model/GraphProcessor.d.ts +27 -5
  97. package/dist/types/model/NodeBase.d.ts +6 -0
  98. package/dist/types/model/NodeImpl.d.ts +18 -1
  99. package/dist/types/model/Nodes.d.ts +2 -2
  100. package/dist/types/model/ProcessContext.d.ts +51 -0
  101. package/dist/types/model/ProcessContextBuilder.d.ts +3 -1
  102. package/dist/types/model/RecordingPlayer.d.ts +6 -0
  103. package/dist/types/model/SplitRunProcessor.d.ts +11 -3
  104. package/dist/types/model/UiGraph.d.ts +8 -0
  105. package/dist/types/model/UiGraphActionProtocol.d.ts +2 -0
  106. package/dist/types/model/UiGraphBrowserRuntime.d.ts +11 -2
  107. package/dist/types/model/UiGraphRendererStyles.d.ts +1 -1
  108. package/dist/types/model/UiGraphRuntimeModel.d.ts +2 -0
  109. package/dist/types/model/UiGraphSchema.d.ts +1 -0
  110. package/dist/types/model/chat-v2/chatV2CallObserver.d.ts +2 -0
  111. package/dist/types/model/chat-v2/chatV2EditorCache.d.ts +3 -1
  112. package/dist/types/model/chat-v2/chatV2Outputs.d.ts +7 -17
  113. package/dist/types/model/chat-v2/chatV2Pipeline.d.ts +29 -0
  114. package/dist/types/model/chat-v2/chatV2ProviderProfile.d.ts +5 -0
  115. package/dist/types/model/chat-v2/chatV2ProviderRegistry.d.ts +8 -0
  116. package/dist/types/model/chat-v2/chatV2RequestPlan.d.ts +2 -2
  117. package/dist/types/model/chat-v2/chatV2ResponseBodyCapture.d.ts +19 -0
  118. package/dist/types/model/chat-v2/chatV2ResponseFormat.d.ts +3 -2
  119. package/dist/types/model/chat-v2/chatV2Retry.d.ts +2 -0
  120. package/dist/types/model/chat-v2/chatV2Shared.d.ts +0 -1
  121. package/dist/types/model/chat-v2/chatV2Types.d.ts +35 -1
  122. package/dist/types/model/chat-v2/chatV2UsageAccounting.d.ts +14 -0
  123. package/dist/types/model/chat-v2/customProviderApi.d.ts +23 -0
  124. package/dist/types/model/chat-v2/developerMessageRoles.d.ts +10 -0
  125. package/dist/types/model/chat-v2/index.d.ts +12 -0
  126. package/dist/types/model/chat-v2/llmChatV2Body.d.ts +24 -0
  127. package/dist/types/model/chat-v2/llmChatV2CacheBoundary.d.ts +10 -0
  128. package/dist/types/model/chat-v2/llmChatV2CachePolicy.d.ts +13 -0
  129. package/dist/types/model/chat-v2/llmChatV2NodeData.d.ts +13 -3
  130. package/dist/types/model/chat-v2/llmChatV2NodeMigration.d.ts +8 -0
  131. package/dist/types/model/chat-v2/llmChatV2NodeRuntime.d.ts +18 -4
  132. package/dist/types/model/chat-v2/llmInvocationCoordinator.d.ts +16 -0
  133. package/dist/types/model/chat-v2/llmInvocationDecision.d.ts +21 -0
  134. package/dist/types/model/chat-v2/llmInvocationJournal.d.ts +38 -0
  135. package/dist/types/model/chat-v2/llmInvocationPlan.d.ts +41 -0
  136. package/dist/types/model/chat-v2/llmInvocationProjections.d.ts +3 -0
  137. package/dist/types/model/chat-v2/llmInvocationResultProjector.d.ts +26 -0
  138. package/dist/types/model/chat-v2/llmModelCandidate.d.ts +18 -0
  139. package/dist/types/model/chat-v2/llmProfile.d.ts +7 -0
  140. package/dist/types/model/chat-v2/llmProfileBody.d.ts +20 -0
  141. package/dist/types/model/chat-v2/llmProfileFallback.d.ts +47 -0
  142. package/dist/types/model/chat-v2/llmProfileFieldRegistry.d.ts +189 -0
  143. package/dist/types/model/chat-v2/llmProfileTypes.d.ts +1 -1
  144. package/dist/types/model/chat-v2/llmResponseMaterializer.d.ts +20 -0
  145. package/dist/types/model/chat-v2/modelRegistry.d.ts +17 -187
  146. package/dist/types/model/chat-v2/parallelToolCalls.d.ts +3 -1
  147. package/dist/types/model/chat-v2/providerOptions.d.ts +11 -0
  148. package/dist/types/model/chat-v2/rivetToolRegistry.d.ts +11 -0
  149. package/dist/types/model/chat-v2/toolCallCodec.d.ts +7 -0
  150. package/dist/types/model/chat-v2/toolContinuation.d.ts +3 -3
  151. package/dist/types/model/chat-v2/toolHandlerResolver.d.ts +25 -0
  152. package/dist/types/model/chat-v2/toolRoundExecutor.d.ts +18 -0
  153. package/dist/types/model/nodes/AssembleMessageNode.d.ts +2 -1
  154. package/dist/types/model/nodes/ChatNode.d.ts +2 -1
  155. package/dist/types/model/nodes/DelegateFunctionCallNode.d.ts +2 -1
  156. package/dist/types/model/nodes/LLMChatV2Node.d.ts +2 -1
  157. package/dist/types/model/nodes/LLMProfileNode.d.ts +2 -1
  158. package/dist/types/model/nodes/PromptNode.d.ts +6 -3
  159. package/dist/types/model/nodes/ToolNode.d.ts +2 -1
  160. package/dist/types/model/nodes/toolCallDelegation.d.ts +10 -3
  161. package/dist/types/plugins/anthropic/anthropic.d.ts +1 -0
  162. package/dist/types/plugins/google/google.d.ts +14 -9
  163. package/dist/types/plugins/google/nodes/ChatGoogleNode.d.ts +2 -1
  164. package/dist/types/recording/RecordedEvents.d.ts +6 -0
  165. package/dist/types/utils/emitDetached.d.ts +3 -2
  166. package/dist/types/utils/openai.d.ts +49 -0
  167. package/dist/types/webAppRuntime.d.ts +4 -2
  168. package/package.json +2 -2
@@ -4,7 +4,7 @@ import { type ChartNode, type NodeConnection, type NodeId } from './NodeBase.js'
4
4
  import type { GraphId, NodeGraph } from './NodeGraph.js';
5
5
  import Emittery from 'emittery';
6
6
  import { type ProjectId, type Project } from './Project.js';
7
- import type { GraphExecutionMetadata, InternalProcessContext, ProcessContext, ProcessId } from './ProcessContext.js';
7
+ import type { GraphExecutionMetadata, InternalProcessContext, ProcessContext, ProcessId, ChatV2CallTraceEvent, ToolCallFinishedEvent } from './ProcessContext.js';
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';
@@ -18,6 +18,7 @@ type WithExecution<T extends object> = T & {
18
18
  };
19
19
  declare const graphProcessorGraphOverride: unique symbol;
20
20
  declare const consumedAsyncBranchTriggerOverride: unique symbol;
21
+ export type NodeResultOrigin = 'executed' | 'preloaded' | 'frozen' | 'editor-cache' | 'unknown';
21
22
  export type ProcessEvents = {
22
23
  /** Called when processing has started. */
23
24
  start: WithExecution<{
@@ -56,13 +57,17 @@ export type ProcessEvents = {
56
57
  nodeStart: WithExecution<{
57
58
  node: ChartNode;
58
59
  inputs: Inputs;
60
+ /** Effective, value-free producer edges after Data Bus preprocessing. */
61
+ inputConnections?: NodeConnection[];
59
62
  processId: ProcessId;
63
+ resultOrigin?: NodeResultOrigin;
60
64
  }>;
61
65
  /** Called when a node has finished processing, with the output values for the node. */
62
66
  nodeFinish: WithExecution<{
63
67
  node: ChartNode;
64
68
  outputs: Outputs;
65
69
  processId: ProcessId;
70
+ resultOrigin?: NodeResultOrigin;
66
71
  durationMs?: number;
67
72
  splitRunDurationMs?: Record<number, number>;
68
73
  }>;
@@ -71,6 +76,7 @@ export type ProcessEvents = {
71
76
  node: ChartNode;
72
77
  error: Error | string;
73
78
  processId: ProcessId;
79
+ resultOrigin?: NodeResultOrigin;
74
80
  durationMs?: number;
75
81
  splitRunDurationMs?: Record<number, number>;
76
82
  }>;
@@ -81,6 +87,7 @@ export type ProcessEvents = {
81
87
  inputs: Inputs;
82
88
  outputs: Outputs;
83
89
  reason: string;
90
+ resultOrigin?: NodeResultOrigin;
84
91
  }>;
85
92
  /** Called when a user input node requires user input. Call the callback when finished, or call userInput() on the GraphProcessor with the results. */
86
93
  userInput: WithExecution<{
@@ -91,6 +98,12 @@ export type ProcessEvents = {
91
98
  callback: (values: StringArrayDataValue) => void;
92
99
  processId: ProcessId;
93
100
  renderingType: 'text' | 'markdown';
101
+ /**
102
+ * Present only when RecordingPlayer re-emits a historical prompt. It is
103
+ * display-only: hosts must project it to observability without asking the
104
+ * user for input again.
105
+ */
106
+ isReplay?: true;
94
107
  }>;
95
108
  /** Called when a node has partially processed, with the current partial output values for the node. */
96
109
  partialOutput: WithExecution<{
@@ -98,6 +111,7 @@ export type ProcessEvents = {
98
111
  outputs: Outputs;
99
112
  index: number;
100
113
  processId: ProcessId;
114
+ resultOrigin?: NodeResultOrigin;
101
115
  }>;
102
116
  /** Called when a node reports host-facing progress. */
103
117
  progress: WithExecution<{
@@ -105,6 +119,10 @@ export type ProcessEvents = {
105
119
  processId: ProcessId;
106
120
  progress: GraphProgress;
107
121
  }>;
122
+ /** Privacy-bounded metadata for one physical LLM provider call. */
123
+ llmCallFinished: WithExecution<ChatV2CallTraceEvent>;
124
+ /** Privacy-bounded metadata for one delegated tool execution. */
125
+ toolCallFinished: WithExecution<ToolCallFinishedEvent>;
108
126
  /** Called when the outputs of a node have been cleared entirely. If processId is present, only the one process() should be cleared. */
109
127
  nodeOutputsCleared: WithExecution<{
110
128
  node: ChartNode;
@@ -127,10 +145,14 @@ export type ProcessEvents = {
127
145
  finish: void;
128
146
  /** Called for trace level logs. */
129
147
  trace: string;
130
- /** Called when the graph has been paused. */
131
- pause: void;
132
- /** Called when the graph has been resumed. */
133
- resume: void;
148
+ /** Called when the graph has been paused. Historical playback pauses are display-only. */
149
+ pause: {
150
+ isReplay?: true;
151
+ } | undefined;
152
+ /** Called when the graph has been resumed. Historical playback resumes are display-only. */
153
+ resume: {
154
+ isReplay?: true;
155
+ } | undefined;
134
156
  /** Called when a global variable has been set in a graph. */
135
157
  globalSet: WithExecution<{
136
158
  id: string;
@@ -85,6 +85,12 @@ export type NodeInputDefinition = {
85
85
  description?: string;
86
86
  /** Will the input value attempt to be coerced into the desired type? */
87
87
  coerced?: boolean;
88
+ /**
89
+ * Whether an array on this port participates in a node's Many-runs fan-out.
90
+ * Most inputs retain the default `split`; configuration collections such as
91
+ * an LLM Profile fallback chain can opt into `preserve-array`.
92
+ */
93
+ splitRunBehavior?: 'split' | 'preserve-array';
88
94
  };
89
95
  /** Represents an output definition of a node. */
90
96
  export type NodeOutputDefinition = {
@@ -1,5 +1,5 @@
1
1
  import type { Inputs, Outputs } from './GraphProcessor.js';
2
- import { type ChartNode, type NodeConnection, type NodeId, type NodeInputDefinition, type NodeOutputDefinition } from './NodeBase.js';
2
+ import { type ChartNode, type NodeConnection, type NodeId, type NodeInputDefinition, type NodeOutputDefinition, type PortId } from './NodeBase.js';
3
3
  import type { Project, ProjectId } from './Project.js';
4
4
  import type { InternalProcessContext } from './ProcessContext.js';
5
5
  import type { EditorDefinition } from './EditorDefinition.js';
@@ -18,7 +18,22 @@ export interface PluginNodeImpl<T extends ChartNode> {
18
18
  getBody(data: T['data'], context: RivetUIContext): NodeBody | Promise<NodeBody>;
19
19
  create(): T;
20
20
  getUIData(context: RivetUIContext): NodeUIData | Promise<NodeUIData>;
21
+ /** Optional metadata-only presentation hints for the editor Run Activity view. */
22
+ getRunActivityDescriptor?(data: T['data']): NodeRunActivityDescriptor;
21
23
  }
24
+ export type NodeRunActivityDescriptor = {
25
+ category?: 'generic' | 'model' | 'tool';
26
+ /** Preferred output to preview without changing execution or serialization. */
27
+ primaryOutputPortId?: PortId;
28
+ /**
29
+ * @deprecated Run Activity no longer renders input provenance. Retained only
30
+ * so existing plugin descriptors remain source-compatible; new nodes must
31
+ * not use it.
32
+ */
33
+ contextInputPortIds?: PortId[];
34
+ /** Contextual label for the existing node-owned full-output action. */
35
+ fullOutputActionLabel?: string;
36
+ };
22
37
  export declare abstract class NodeImpl<T extends ChartNode, Type extends T['type'] = T['type']> {
23
38
  readonly chartNode: T;
24
39
  constructor(chartNode: T);
@@ -36,6 +51,7 @@ export declare abstract class NodeImpl<T extends ChartNode, Type extends T['type
36
51
  abstract process(inputData: Inputs, context: InternalProcessContext): Promise<Outputs>;
37
52
  getEditors(_context: RivetUIContext): EditorDefinition<T>[] | Promise<EditorDefinition<T>[]>;
38
53
  getBody(_context: RivetUIContext): NodeBody | Promise<NodeBody>;
54
+ getRunActivityDescriptor(): NodeRunActivityDescriptor | undefined;
39
55
  }
40
56
  export type NodeBody = string | NodeBodySpec | NodeBodySpec[] | undefined;
41
57
  export declare class PluginNodeImplClass<T extends ChartNode, Type extends T['type'] = T['type']> extends NodeImpl<T, Type> {
@@ -46,6 +62,7 @@ export declare class PluginNodeImplClass<T extends ChartNode, Type extends T['ty
46
62
  process(inputData: Inputs, context: InternalProcessContext): Promise<Outputs>;
47
63
  getEditors(context: RivetUIContext): EditorDefinition<T>[] | Promise<EditorDefinition<T>[]>;
48
64
  getBody(context: RivetUIContext): NodeBody | Promise<NodeBody>;
65
+ getRunActivityDescriptor(): NodeRunActivityDescriptor | undefined;
49
66
  }
50
67
  export type NodeUIData = {
51
68
  contextMenuTitle?: string;
@@ -103,12 +103,12 @@ export * from './nodes/MCPToolCallNode.js';
103
103
  export * from './nodes/MCPGetPromptNode.js';
104
104
  export * from './nodes/ReferencedGraphAliasNode.js';
105
105
  export * from './nodes/NodePrefabInstanceNode.js';
106
- 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" | "graphOutput" | "setGlobal" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "setStoredValue" | "abortGraph" | "userInput" | "prompt" | "llmChatV2" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "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" | "delegateFunctionCall" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | 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/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 & {
106
+ 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" | "graphOutput" | "delegateFunctionCall" | "setGlobal" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "setStoredValue" | "abortGraph" | "userInput" | "prompt" | "llmChatV2" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "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("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | 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/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 & {
107
107
  type: "mcpDiscovery";
108
108
  data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
109
109
  variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
110
110
  }) | import("./nodes/MCPToolCallNode.js").MCPToolCallNode | import("./nodes/MCPGetPromptNode.js").MCPGetPromptNode | import("./nodes/ReferencedGraphAliasNode.js").ReferencedGraphAliasNode | import("./NodePrefabResolver.js").NodePrefabInstanceNode>;
111
- declare let globalRivetNodeRegistry: NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "graphOutput" | "setGlobal" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "setStoredValue" | "abortGraph" | "userInput" | "prompt" | "llmChatV2" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "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" | "delegateFunctionCall" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | 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/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
+ declare let globalRivetNodeRegistry: NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "graphOutput" | "delegateFunctionCall" | "setGlobal" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "setStoredValue" | "abortGraph" | "userInput" | "prompt" | "llmChatV2" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "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("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | 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/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 & {
112
112
  type: "mcpDiscovery";
113
113
  data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
114
114
  variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
@@ -5,6 +5,7 @@ import type { CodeRunner } from '../integrations/CodeRunner.js';
5
5
  import type { ProjectReferenceLoader } from './ProjectReferenceLoader.js';
6
6
  import type { GraphBoundary } from './GraphBoundaryCache.js';
7
7
  import type { GraphProgress } from './GraphProgress.js';
8
+ import type { CustomProviderApi } from './chat-v2/customProviderApi.js';
8
9
  import type { RivetStoredValue, RivetStoredValueCacheResult, RivetStoredValueReadResult, RivetStoredValueSetResult } from './StoredValueStore.js';
9
10
  import type { ToolCallContinuation } from './ToolCallContinuation.js';
10
11
  import type { KnowledgeStoreConnectionId, RivetKnowledgeStore } from '../integrations/KnowledgeStore.js';
@@ -52,17 +53,55 @@ export type ChatV2CallFinishedEvent = {
52
53
  callId: ChatV2CallId;
53
54
  /** Zero-based attempt index within this Chat V2 pipeline request. */
54
55
  attemptIndex: number;
56
+ /** Zero-based profile index when LLM Chat is using a profile fallback chain. */
57
+ profileIndex?: number;
58
+ /** Zero-based model round within one auto-continued LLM Chat invocation. */
59
+ roundIndex?: number;
55
60
  nodeId: NodeId;
56
61
  processId: ProcessId;
57
62
  provider: ChatV2Provider;
58
63
  model: string;
64
+ /** Selected wire contract when provider is Custom. */
65
+ customProviderApi?: CustomProviderApi;
59
66
  outcome: ChatV2CallOutcome;
60
67
  finishReason?: string;
61
68
  rawUsage?: ChatV2CallRawUsage;
62
69
  normalizedUsage?: ChatV2CallNormalizedUsage;
63
70
  pricing: ChatV2CallPricing;
71
+ /** Epoch milliseconds when the physical provider attempt started. */
72
+ startedAt?: number;
73
+ /** Wall-clock duration of this physical provider attempt. */
74
+ durationMs?: number;
64
75
  };
65
76
  export type ChatV2CallFinishedObserver = (event: ChatV2CallFinishedEvent) => void;
77
+ /**
78
+ * Portable, privacy-bounded subset of a completed physical Chat V2 call.
79
+ * Provider-shaped raw usage is intentionally retained only by the host observer
80
+ * and cannot enter processor events, recordings, or remote transport.
81
+ */
82
+ export type ChatV2CallTraceEvent = Omit<ChatV2CallFinishedEvent, 'rawUsage'>;
83
+ export type ToolCallFinishedEvent = {
84
+ toolCallId?: string;
85
+ toolName: string;
86
+ sourceNodeId: NodeId;
87
+ sourceProcessId: ProcessId;
88
+ /**
89
+ * Exact node invocation that owns the persisted tool-result output, when
90
+ * delegation ran through a Delegate Tool Call node. This is intentionally a
91
+ * pointer only: execution traces never copy tool arguments or result text.
92
+ */
93
+ resultOwner?: {
94
+ nodeId: NodeId;
95
+ processId: ProcessId;
96
+ outputPortId: PortId;
97
+ };
98
+ handlerKind: 'graph' | 'external' | 'unknown';
99
+ handlerGraphId?: GraphId;
100
+ handlerName?: string;
101
+ outcome: 'success' | 'passthrough-error' | 'failure' | 'aborted';
102
+ startedAt?: number;
103
+ durationMs?: number;
104
+ };
66
105
  export type ProcessContext = {
67
106
  settings: RuntimeSettings;
68
107
  nativeApi?: NativeApi;
@@ -138,6 +177,18 @@ export type InternalProcessContext<T extends ChartNode = ChartNode> = ProcessCon
138
177
  isDirectRunTarget: boolean;
139
178
  /** Stable execution lineage for the current graph invocation. */
140
179
  execution: GraphExecutionMetadata;
180
+ /**
181
+ * Marks this invocation's terminal result as an editor-cache replay.
182
+ * Cache-aware node implementations call this only after confirming a hit.
183
+ */
184
+ markResultAsEditorCacheHit?: () => void;
185
+ /** Emits privacy-bounded metadata after a delegated tool execution settles. */
186
+ onToolCallFinished?: (event: ToolCallFinishedEvent) => void;
187
+ /** LLM invocation that owns a connected Delegate Tool Call execution. */
188
+ toolCallTraceSource?: {
189
+ nodeId: NodeId;
190
+ processId: ProcessId;
191
+ };
141
192
  /** Context values that are accessible on graphs and all subgraphs. */
142
193
  contextValues: Record<string, DataValue>;
143
194
  /** Inputs that were passed to the curent graph. Used for GraphInputNode. */
@@ -4,7 +4,7 @@ import type { ChartNode, PortId } from './NodeBase.js';
4
4
  import type { GraphId } from './NodeGraph.js';
5
5
  import type { Project } from './Project.js';
6
6
  import type { AttachedNodeData, ExternalFunction, Outputs } from './GraphProcessor.js';
7
- export type NodeProcessContextBase = Omit<InternalProcessContext, 'attachedData' | 'activeOutputPortIds' | 'createSubProcessor' | 'execution' | 'externalFunctions' | 'getPluginConfig' | 'node' | 'onPartialOutputs' | 'processId' | 'requestUserInput' | 'reportProgress' | 'isDirectRunTarget' | 'setGlobal' | 'signal' | 'toolCallContinuation' | 'waitEvent'>;
7
+ export type NodeProcessContextBase = Omit<InternalProcessContext, 'attachedData' | 'activeOutputPortIds' | 'createSubProcessor' | 'execution' | 'externalFunctions' | 'getPluginConfig' | 'node' | 'onPartialOutputs' | 'processId' | 'requestUserInput' | 'reportProgress' | 'isDirectRunTarget' | 'markResultAsEditorCacheHit' | 'setGlobal' | 'signal' | 'toolCallContinuation' | 'toolCallTraceSource' | 'waitEvent'>;
8
8
  export declare function buildNodeProcessContext(options: {
9
9
  activeOutputPortIds: ReadonlySet<PortId>;
10
10
  base: NodeProcessContextBase;
@@ -17,6 +17,7 @@ export declare function buildNodeProcessContext(options: {
17
17
  externalFunctions: Record<string, ExternalFunction>;
18
18
  getPluginConfig: (name: string) => string | undefined;
19
19
  isDirectRunTarget: boolean;
20
+ markResultAsEditorCacheHit?: InternalProcessContext['markResultAsEditorCacheHit'];
20
21
  node: ChartNode;
21
22
  nodeAbortController: AbortController;
22
23
  onPartialOutputs: (partialOutputs: Outputs) => void;
@@ -25,5 +26,6 @@ export declare function buildNodeProcessContext(options: {
25
26
  reportProgress: InternalProcessContext['reportProgress'];
26
27
  setGlobal: (id: string, value: ScalarOrArrayDataValue) => void;
27
28
  toolCallContinuation?: InternalProcessContext['toolCallContinuation'];
29
+ toolCallTraceSource?: InternalProcessContext['toolCallTraceSource'];
28
30
  waitEvent: (event: string) => Promise<DataValue | undefined>;
29
31
  }): InternalProcessContext;
@@ -1,5 +1,7 @@
1
1
  import type { ExecutionRecorder } from '../recording/ExecutionRecorder.js';
2
2
  import type { DataValue } from './DataValue.js';
3
+ import type { GraphExecutionMetadata } from './ProcessContext.js';
4
+ import type { GraphId } from './NodeGraph.js';
3
5
  import type { NodeId, PortId } from './NodeBase.js';
4
6
  import type { ProcessEvents } from './GraphProcessor.js';
5
7
  import type Emittery from 'emittery';
@@ -12,6 +14,10 @@ export declare function replayExecutionRecording(options: {
12
14
  erroredNodes: Map<NodeId, Error | string>;
13
15
  graphInputs: GraphInputs;
14
16
  graphOutputs: GraphOutputs;
17
+ /** Current graph selected for replay; used only if a recording has no scoped lifecycle event. */
18
+ fallbackGraphId?: GraphId;
19
+ /** Identity already allocated by the playback processor for its own lifecycle events. */
20
+ initialReplayExecution?: GraphExecutionMetadata;
15
21
  project: Project;
16
22
  recorder: ExecutionRecorder;
17
23
  recordingPlaybackChatLatency: number;
@@ -1,26 +1,32 @@
1
- import { type ChartNode } from './NodeBase.js';
1
+ import { type ChartNode, type NodeConnection, type NodeInputDefinition } from './NodeBase.js';
2
2
  import type { ProcessId } from './ProcessContext.js';
3
3
  import type { Inputs, Outputs } from './GraphProcessor.js';
4
+ type SplitRunResultOrigin = 'executed' | 'editor-cache';
4
5
  export type SplitRunDeps = {
5
6
  getInputValues(node: ChartNode): Inputs;
7
+ getInputConnections(node: ChartNode): NodeConnection[];
8
+ getInputDefinitions(node: ChartNode): NodeInputDefinition[];
6
9
  isExcludedDueToControlFlow(node: ChartNode, inputValues: Inputs, processId: ProcessId): boolean;
7
- processNodeWithInputData(node: ChartNode, inputs: Inputs, index: number, processId: ProcessId, partialOutput?: (node: ChartNode, partialOutputs: Outputs, index: number) => void): Promise<Outputs>;
10
+ processNodeWithInputData(node: ChartNode, inputs: Inputs, index: number, processId: ProcessId, partialOutput?: (node: ChartNode, partialOutputs: Outputs, index: number) => void, markResultAsEditorCacheHit?: () => void): Promise<Outputs>;
8
11
  splitRunConcurrency: number;
9
12
  accumulateCost(output: Outputs): void;
10
13
  setNodeResults(nodeId: ChartNode['id'], outputs: Outputs): void;
11
14
  markNodeVisited(nodeId: ChartNode['id']): void;
12
- nodeErrored(node: ChartNode, error: unknown, processId: ProcessId, durationMs?: number, splitRunDurationMs?: Record<number, number>): Promise<void>;
15
+ nodeErrored(node: ChartNode, error: unknown, processId: ProcessId, durationMs?: number, splitRunDurationMs?: Record<number, number>, resultOrigin?: SplitRunResultOrigin): Promise<void>;
13
16
  isAborted(): boolean;
14
17
  getAbortError(): Error;
15
18
  emit(event: 'nodeStart', data: {
16
19
  node: ChartNode;
17
20
  inputs: Inputs;
21
+ inputConnections: NodeConnection[];
18
22
  processId: ProcessId;
23
+ resultOrigin: 'executed';
19
24
  }): Promise<void> | void;
20
25
  emit(event: 'nodeFinish', data: {
21
26
  node: ChartNode;
22
27
  outputs: Outputs;
23
28
  processId: ProcessId;
29
+ resultOrigin: SplitRunResultOrigin;
24
30
  durationMs?: number;
25
31
  splitRunDurationMs?: Record<number, number>;
26
32
  }): Promise<void> | void;
@@ -29,8 +35,10 @@ export type SplitRunDeps = {
29
35
  outputs: Outputs;
30
36
  index: number;
31
37
  processId: ProcessId;
38
+ resultOrigin: 'executed';
32
39
  }): void;
33
40
  startNodeTiming?(): number | undefined;
34
41
  finishNodeTiming?(start: number | undefined): number | undefined;
35
42
  };
36
43
  export declare function processSplitRunNode(node: ChartNode, processId: ProcessId, deps: SplitRunDeps): Promise<void>;
44
+ export {};
@@ -41,6 +41,8 @@ export type UiGraphChatMessage = {
41
41
  content: string;
42
42
  /** UTC ISO-8601 timestamp captured by the browser when the message is shown. */
43
43
  timestamp?: string;
44
+ /** Reference to separately persisted response metadata. Never sent to an LLM. */
45
+ responseTraceId?: string;
44
46
  };
45
47
  export type UiGraphChatPin = {
46
48
  messageIndex: number;
@@ -99,6 +101,7 @@ export type UiGraphComponent = {
99
101
  type: 'chat';
100
102
  action: UiGraphChatRunGraphAction;
101
103
  placeholder?: string;
104
+ allowResponseInspection?: boolean;
102
105
  } | {
103
106
  id: UiComponentId;
104
107
  type: 'output';
@@ -133,6 +136,11 @@ export declare function getUiGraphChatPinsStateKey(componentId: UiComponentId):
133
136
  export declare function getUiGraphChatMessages(componentId: UiComponentId, state: Readonly<Record<string, unknown>>): UiGraphChatMessage[];
134
137
  export declare function getUiGraphChatPins(componentId: UiComponentId, state: Readonly<Record<string, unknown>>): UiGraphChatPin[];
135
138
  export declare function createUiGraphChatPinStatePatch(componentId: UiComponentId, state: Readonly<Record<string, unknown>>, messageIndex: number): Record<string, unknown> | undefined;
139
+ /**
140
+ * Removes one persisted Chat message and keeps pinned assistant indexes aligned
141
+ * with the remaining history. Removing a pinned response unpins it.
142
+ */
143
+ export declare function createUiGraphChatMessageRemovalStatePatch(componentId: UiComponentId, state: Readonly<Record<string, unknown>>, messageIndex: number): Record<string, unknown> | undefined;
136
144
  /** Clears a Chat's conversation and pins without discarding an unsent draft. */
137
145
  export declare function createUiGraphChatHistoryFlushStatePatch(componentId: UiComponentId): Record<string, unknown>;
138
146
  export declare function createUiGraphChatSubmissionStatePatch(componentId: UiComponentId, state: Readonly<Record<string, unknown>>, timestamp?: string): Record<string, unknown> | undefined;
@@ -1,5 +1,6 @@
1
1
  import type { UiComponentId } from './UiGraph.js';
2
2
  import { type GraphProgress } from './GraphProgress.js';
3
+ import { type AgentResponseTrace } from './AgentResponseTrace.js';
3
4
  export declare const RIVET_WEB_APP_ACTION_PROTOCOL_VERSION: 1;
4
5
  export type RivetWebAppActionStartMessage = {
5
6
  type: 'action.start';
@@ -40,6 +41,7 @@ export type RivetWebAppServerMessage = {
40
41
  type: 'action.completed';
41
42
  statePatch: Record<string, unknown>;
42
43
  storagePatch?: Record<string, unknown>;
44
+ responseTrace?: AgentResponseTrace;
43
45
  } & RunEventBase) | ({
44
46
  type: 'action.failed';
45
47
  error: string;
@@ -1,6 +1,11 @@
1
1
  import { type UiGraph, type UiGraphChatMessage } from './UiGraph.js';
2
+ import { type AgentResponseTrace } from './AgentResponseTrace.js';
3
+ type UiGraphBrowserStorage = Pick<Storage, 'getItem' | 'removeItem' | 'setItem'>;
4
+ type UiGraphStorageLocation = Pick<Location, 'origin' | 'pathname'>;
2
5
  export type UiGraphChatMessageTimestampPresentation = Readonly<{
3
6
  dateTime: string;
7
+ /** Present only for an assistant response with a valid preceding user-turn timestamp. */
8
+ elapsedSincePreviousUserMessage?: string;
4
9
  label: string;
5
10
  }>;
6
11
  export type UiGraphChatMessagePresentation = Readonly<{
@@ -11,8 +16,6 @@ export type UiGraphChatMessagePresentationOptions = Readonly<{
11
16
  locales?: Intl.LocalesArgument;
12
17
  timeZone?: string;
13
18
  }>;
14
- type UiGraphBrowserStorage = Pick<Storage, 'getItem' | 'removeItem' | 'setItem'>;
15
- type UiGraphStorageLocation = Pick<Location, 'origin' | 'pathname'>;
16
19
  /**
17
20
  * Formats persisted Chat timestamps in the current browser locale and timezone.
18
21
  * Undated or malformed legacy messages deliberately remain present without time
@@ -23,6 +26,12 @@ export declare function getUiGraphChatMessagePresentations(messages: readonly Ui
23
26
  export declare function getUiGraphChatStorageKey(uiGraph: UiGraph, location?: UiGraphStorageLocation | undefined): string | undefined;
24
27
  /** Returns the browser-local key for graph-managed storage owned by one web app. */
25
28
  export declare function getUiGraphWebAppStorageKey(uiGraph: UiGraph, location?: UiGraphStorageLocation | undefined): string | undefined;
29
+ /** Persists a validated trace outside Chat history so it never enters model context. */
30
+ export declare function saveUiGraphResponseTrace(uiGraph: UiGraph, componentId: string, trace: AgentResponseTrace, storage?: UiGraphBrowserStorage | undefined, location?: UiGraphStorageLocation): void;
31
+ /** Loads one validated response trace from the app/UI-graph-scoped store. */
32
+ export declare function loadUiGraphResponseTrace(uiGraph: UiGraph, componentId: string, traceId: string, storage?: UiGraphBrowserStorage | undefined, location?: UiGraphStorageLocation): AgentResponseTrace | undefined;
33
+ /** Removes retained traces no longer referenced by Chat messages. */
34
+ export declare function pruneUiGraphResponseTraces(uiGraph: UiGraph, state: Readonly<Record<string, unknown>>, storage?: UiGraphBrowserStorage | undefined, location?: UiGraphStorageLocation): void;
26
35
  /** Loads the browser snapshot used by Stored Value nodes for this one web app. */
27
36
  export declare function loadUiGraphWebAppStorage(uiGraph: UiGraph, storage?: UiGraphBrowserStorage | undefined, location?: UiGraphStorageLocation): Record<string, unknown>;
28
37
  /** Merges a successful action's changed keys and persists the complete app-local record. */