@valerypopoff/rivet2-core 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle.cjs +2779 -780
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/cjs/interpolationRuntime.cjs +7 -3
- package/dist/cjs/interpolationRuntime.cjs.map +2 -2
- package/dist/esm/api/createProcessor.js +3 -0
- package/dist/esm/exports.js +2 -1
- package/dist/esm/integrations/CodeRunner.js +6 -2
- package/dist/esm/integrations/mcp/MCPBase.js +2 -1
- package/dist/esm/model/ExecutionOutputClone.js +46 -0
- package/dist/esm/model/GlobalVariables.js +452 -0
- package/dist/esm/model/GraphBoundaryEffects.js +12 -4
- package/dist/esm/model/GraphProcessor.js +838 -41
- package/dist/esm/model/Nodes.js +6 -0
- package/dist/esm/model/ProcessContextBuilder.js +3 -1
- package/dist/esm/model/ProjectReferenceLoader.js +36 -1
- package/dist/esm/model/RecordingPlayer.js +39 -4
- package/dist/esm/model/StreamingOutputWatch.js +262 -0
- package/dist/esm/model/StreamingOutputWatchHistory.js +162 -0
- package/dist/esm/model/SubprocessorBridge.js +29 -19
- package/dist/esm/model/chat-v2/llmChatV2OutputClone.js +3 -42
- package/dist/esm/model/nodes/ChatLoopNode.js +8 -4
- package/dist/esm/model/nodes/CodeNewNode.js +5 -2
- package/dist/esm/model/nodes/ExpressionNode.js +5 -2
- package/dist/esm/model/nodes/ExtractObjectPathNode.js +4 -4
- package/dist/esm/model/nodes/GraphOutputNode.js +13 -8
- package/dist/esm/model/nodes/LoopControllerNode.js +6 -4
- package/dist/esm/model/nodes/MCPGetPromptNode.js +2 -1
- package/dist/esm/model/nodes/MCPToolCallNode.js +2 -1
- package/dist/esm/model/nodes/ObjectNode.js +5 -3
- package/dist/esm/model/nodes/PromptNode.js +5 -2
- package/dist/esm/model/nodes/ReferencedGraphAliasNode.js +9 -1
- package/dist/esm/model/nodes/StopWatchingStreamingOutputNode.js +48 -0
- package/dist/esm/model/nodes/SubGraphNode.js +11 -1
- package/dist/esm/model/nodes/TextNode.js +5 -2
- package/dist/esm/model/nodes/ToTreeNode.js +10 -3
- package/dist/esm/model/nodes/ToolNode.js +5 -2
- package/dist/esm/model/nodes/WatchStreamingOutputNode.js +126 -0
- package/dist/esm/model/nodes/jsListCallbackHelpers.js +7 -1
- package/dist/esm/model/nodes/jsValueInterpolation.js +21 -4
- package/dist/esm/plugins/openai/nodes/ThreadMessageNode.js +2 -1
- package/dist/esm/recording/ExecutionRecorder.js +18 -8
- package/dist/esm/utils/interpolation.js +35 -2
- package/dist/esm/utils/serialization/serializationUtils.js +9 -0
- package/dist/esm/utils/serialization/serialization_v4.js +7 -0
- package/dist/types/exports.d.ts +2 -1
- package/dist/types/integrations/CodeRunner.d.ts +3 -3
- package/dist/types/integrations/CodeRunnerOptions.d.ts +5 -0
- package/dist/types/integrations/mcp/MCPBase.d.ts +1 -1
- package/dist/types/model/ExecutionOutputClone.d.ts +11 -0
- package/dist/types/model/ExecutorProtocol.d.ts +9 -2
- package/dist/types/model/GlobalVariables.d.ts +29 -0
- package/dist/types/model/GraphBoundaryEffects.d.ts +7 -1
- package/dist/types/model/GraphProcessor.d.ts +49 -3
- package/dist/types/model/Nodes.d.ts +4 -2
- package/dist/types/model/ProcessContext.d.ts +14 -0
- package/dist/types/model/ProcessContextBuilder.d.ts +3 -1
- package/dist/types/model/Project.d.ts +7 -1
- package/dist/types/model/ProjectReferenceLoader.d.ts +15 -1
- package/dist/types/model/StreamingOutputWatch.d.ts +74 -0
- package/dist/types/model/StreamingOutputWatchHistory.d.ts +60 -0
- package/dist/types/model/SubprocessorBridge.d.ts +2 -0
- package/dist/types/model/chat-v2/llmChatV2OutputClone.d.ts +3 -3
- package/dist/types/model/nodes/ChatLoopNode.d.ts +2 -0
- package/dist/types/model/nodes/ExtractObjectPathNode.d.ts +1 -1
- package/dist/types/model/nodes/GraphOutputNode.d.ts +8 -1
- package/dist/types/model/nodes/LoopControllerNode.d.ts +2 -0
- package/dist/types/model/nodes/ObjectNode.d.ts +1 -1
- package/dist/types/model/nodes/StopWatchingStreamingOutputNode.d.ts +14 -0
- package/dist/types/model/nodes/ToTreeNode.d.ts +5 -1
- package/dist/types/model/nodes/WatchStreamingOutputNode.d.ts +17 -0
- package/dist/types/model/nodes/jsValueInterpolation.d.ts +10 -1
- package/dist/types/recording/RecordedEvents.d.ts +8 -0
- package/dist/types/utils/interpolation.d.ts +14 -5
- package/package.json +1 -1
|
@@ -1505,7 +1505,8 @@ function parseBaseReference(expression, source) {
|
|
|
1505
1505
|
function parseInterpolationExpressionUncached(trimmedExpression) {
|
|
1506
1506
|
for (const [prefix, source] of [
|
|
1507
1507
|
["@graphInputs", "graphInputs"],
|
|
1508
|
-
["@context", "context"]
|
|
1508
|
+
["@context", "context"],
|
|
1509
|
+
["@globals", "globals"]
|
|
1509
1510
|
]) {
|
|
1510
1511
|
if (trimmedExpression.startsWith(`${prefix}.`)) {
|
|
1511
1512
|
return parseBaseReference(trimmedExpression.slice(prefix.length + 1), source);
|
|
@@ -1542,6 +1543,8 @@ function getInterpolationSource(reference, sources) {
|
|
|
1542
1543
|
return sources.graphInputValues;
|
|
1543
1544
|
case "context":
|
|
1544
1545
|
return sources.contextValues;
|
|
1546
|
+
case "globals":
|
|
1547
|
+
return sources.globalValues;
|
|
1545
1548
|
}
|
|
1546
1549
|
}
|
|
1547
1550
|
function resolveInterpolationExpressionRawValue(expression, sources) {
|
|
@@ -1564,11 +1567,12 @@ function resolveInterpolationExpressionRawValue(expression, sources) {
|
|
|
1564
1567
|
return void 0;
|
|
1565
1568
|
}
|
|
1566
1569
|
}
|
|
1567
|
-
function resolveCodeInterpolationExpression(inputs, expression, graphInputValues, contextValues) {
|
|
1570
|
+
function resolveCodeInterpolationExpression(inputs, expression, graphInputValues, contextValues, globalValues) {
|
|
1568
1571
|
return resolveInterpolationExpressionRawValue(expression, {
|
|
1569
1572
|
variables: inputs,
|
|
1570
1573
|
graphInputValues,
|
|
1571
|
-
contextValues
|
|
1574
|
+
contextValues,
|
|
1575
|
+
globalValues
|
|
1572
1576
|
});
|
|
1573
1577
|
}
|
|
1574
1578
|
// Annotate the CommonJS export names for ESM import in node:
|