@valerypopoff/rivet2-core 2.24.0 → 2.26.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 +710 -197
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/cjs/interpolationRuntime.cjs +23 -0
- package/dist/cjs/interpolationRuntime.cjs.map +3 -3
- package/dist/cjs/serialization.cjs +1 -0
- package/dist/cjs/serialization.cjs.map +2 -2
- package/dist/esm/exports.js +4 -0
- package/dist/esm/model/DatasetOwnership.js +9 -0
- package/dist/esm/model/GraphExecutionState.js +3 -0
- package/dist/esm/model/GraphProcessor.js +86 -4
- package/dist/esm/model/LatestDebuggerProtocol.js +156 -0
- package/dist/esm/model/Nodes.js +3 -0
- package/dist/esm/model/RunCostLedger.js +89 -0
- package/dist/esm/model/chat-v2/chatV2CallObserver.js +2 -2
- package/dist/esm/model/chat-v2/chatV2Outputs.js +1 -1
- package/dist/esm/model/chat-v2/chatV2Pipeline.js +5 -0
- package/dist/esm/model/chat-v2/llmChatV2NodeEditors.js +3 -0
- package/dist/esm/model/chat-v2/llmModelCandidate.js +3 -0
- package/dist/esm/model/chat-v2/llmProfile.js +2 -0
- package/dist/esm/model/chat-v2/llmProfileFieldRegistry.js +1 -0
- package/dist/esm/model/chat-v2/llmProfileNodeRuntime.js +2 -1
- package/dist/esm/model/chat-v2/modelRegistry.js +12 -3
- package/dist/esm/model/classifier/profile.js +11 -3
- package/dist/esm/model/classifier/profileExecution.js +2 -1
- package/dist/esm/model/classifier/providers.js +25 -14
- package/dist/esm/model/nodes/AICostNode.js +56 -0
- package/dist/esm/model/nodes/ClassifierEvaluateNode.js +16 -5
- package/dist/esm/model/nodes/ClassifierProfileNode.js +2 -0
- package/dist/esm/model/tokenPricing.js +52 -0
- package/dist/esm/model/tokenPricingEditor.js +9 -0
- package/dist/types/exports.d.ts +4 -0
- package/dist/types/model/DatasetOwnership.d.ts +5 -0
- package/dist/types/model/GraphExecutionState.d.ts +3 -0
- package/dist/types/model/GraphProcessor.d.ts +3 -0
- package/dist/types/model/LatestDebuggerProtocol.d.ts +113 -0
- package/dist/types/model/Nodes.d.ts +3 -2
- package/dist/types/model/ProcessContext.d.ts +3 -0
- package/dist/types/model/RunCostLedger.d.ts +29 -0
- package/dist/types/model/chat-v2/chatV2Outputs.d.ts +1 -1
- package/dist/types/model/chat-v2/chatV2Types.d.ts +2 -0
- package/dist/types/model/chat-v2/llmChatV2NodeData.d.ts +3 -1
- package/dist/types/model/chat-v2/llmProfileFieldRegistry.d.ts +7 -5
- package/dist/types/model/chat-v2/modelRegistry.d.ts +7 -1
- package/dist/types/model/classifier/profile.d.ts +3 -1
- package/dist/types/model/classifier/profileExecution.d.ts +1 -0
- package/dist/types/model/classifier/providers.d.ts +4 -1
- package/dist/types/model/nodes/AICostNode.d.ts +15 -0
- package/dist/types/model/tokenPricing.d.ts +18 -0
- package/dist/types/model/tokenPricingEditor.d.ts +4 -0
- package/package.json +1 -1
package/dist/cjs/bundle.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
AGENT_RESPONSE_TRACE_MAX_PROFILE_ATTEMPTS: () => AGENT_RESPONSE_TRACE_MAX_PROFILE_ATTEMPTS,
|
|
35
35
|
AGENT_RESPONSE_TRACE_MAX_TOOL_CALLS: () => AGENT_RESPONSE_TRACE_MAX_TOOL_CALLS,
|
|
36
36
|
AGENT_RESPONSE_TRACE_SCHEMA_VERSION: () => AGENT_RESPONSE_TRACE_SCHEMA_VERSION,
|
|
37
|
+
AICostNodeImpl: () => AICostNodeImpl,
|
|
37
38
|
ALL_CODE_RUNNER_OPTIONS: () => ALL_CODE_RUNNER_OPTIONS,
|
|
38
39
|
AbortGraphNodeImpl: () => AbortGraphNodeImpl,
|
|
39
40
|
AgentResponseTraceCollector: () => AgentResponseTraceCollector,
|
|
@@ -137,6 +138,7 @@ __export(src_exports, {
|
|
|
137
138
|
KnowledgeDocumentNodeImpl: () => KnowledgeDocumentNodeImpl,
|
|
138
139
|
KnowledgeSourceNodeImpl: () => KnowledgeSourceNodeImpl,
|
|
139
140
|
KnowledgeStoreController: () => KnowledgeStoreController,
|
|
141
|
+
LATEST_DEBUGGER_PATH: () => LATEST_DEBUGGER_PATH,
|
|
140
142
|
LIQUID_DEFAULT_CREDENTIAL_NAMES: () => LIQUID_DEFAULT_CREDENTIAL_NAMES,
|
|
141
143
|
LIQUID_SYSTEM_ONE_ENDPOINT: () => LIQUID_SYSTEM_ONE_ENDPOINT,
|
|
142
144
|
LIQUID_TOKEN_PRICING: () => LIQUID_TOKEN_PRICING,
|
|
@@ -245,6 +247,7 @@ __export(src_exports, {
|
|
|
245
247
|
WatchStreamingOutputNodeImpl: () => WatchStreamingOutputNodeImpl,
|
|
246
248
|
abortGraphNode: () => abortGraphNode,
|
|
247
249
|
addWarning: () => addWarning,
|
|
250
|
+
aiCostNode: () => aiCostNode,
|
|
248
251
|
analyzeCodeOutputs: () => analyzeCodeOutputs,
|
|
249
252
|
anthropicCacheControlTtlOptions: () => anthropicCacheControlTtlOptions,
|
|
250
253
|
anthropicEffortOptions: () => anthropicEffortOptions,
|
|
@@ -278,6 +281,7 @@ __export(src_exports, {
|
|
|
278
281
|
calculateChatV2Cost: () => calculateChatV2Cost,
|
|
279
282
|
calculateChatV2UsageCost: () => calculateChatV2UsageCost,
|
|
280
283
|
calculateClassifierUsageCost: () => calculateClassifierUsageCost,
|
|
284
|
+
calculateTokenUsageCost: () => calculateTokenUsageCost,
|
|
281
285
|
callGraphNode: () => callGraphNode,
|
|
282
286
|
canBeCoerced: () => canBeCoerced,
|
|
283
287
|
canBeCoercedAny: () => canBeCoercedAny,
|
|
@@ -349,6 +353,9 @@ __export(src_exports, {
|
|
|
349
353
|
createKnowledgeStoreFieldDraftDefaults: () => createKnowledgeStoreFieldDraftDefaults,
|
|
350
354
|
createLLMChatV2NodeData: () => createLLMChatV2NodeData,
|
|
351
355
|
createLLMProfileNodeData: () => createLLMProfileNodeData,
|
|
356
|
+
createLatestDebuggerControlResult: () => createLatestDebuggerControlResult,
|
|
357
|
+
createLatestDebuggerDiagnostic: () => createLatestDebuggerDiagnostic,
|
|
358
|
+
createLatestDebuggerSession: () => createLatestDebuggerSession,
|
|
352
359
|
createProjectBundleRuntime: () => createProjectBundleRuntime,
|
|
353
360
|
createResolvedChatV2Provider: () => createResolvedChatV2Provider,
|
|
354
361
|
createRivetLLMProfileHealthIdentity: () => createRivetLLMProfileHealthIdentity,
|
|
@@ -387,6 +394,7 @@ __export(src_exports, {
|
|
|
387
394
|
documentNode: () => documentNode,
|
|
388
395
|
doubleCheckProject: () => doubleCheckProject,
|
|
389
396
|
emptyNodeGraph: () => emptyNodeGraph,
|
|
397
|
+
encodeLatestDebuggerEnvelope: () => encodeLatestDebuggerEnvelope,
|
|
390
398
|
encodeProjectGlobalVariable: () => encodeProjectGlobalVariable,
|
|
391
399
|
encodeRivetWebAppStorageBinaryFrame: () => encodeRivetWebAppStorageBinaryFrame,
|
|
392
400
|
evaluateJsonPath: () => evaluateJsonPath,
|
|
@@ -428,6 +436,7 @@ __export(src_exports, {
|
|
|
428
436
|
getChatV2ModelRegistry: () => getChatV2ModelRegistry,
|
|
429
437
|
getChatV2ProviderCapabilities: () => getChatV2ProviderCapabilities,
|
|
430
438
|
getChatV2ProviderLabel: () => getChatV2ProviderLabel,
|
|
439
|
+
getChatV2SystemTokenPricing: () => getChatV2SystemTokenPricing,
|
|
431
440
|
getClassifierCredentialNamesForDisplay: () => getClassifierCredentialNamesForDisplay,
|
|
432
441
|
getClassifierEvaluateBodySections: () => getClassifierEvaluateBodySections,
|
|
433
442
|
getClassifierModelEditor: () => getClassifierModelEditor,
|
|
@@ -435,6 +444,7 @@ __export(src_exports, {
|
|
|
435
444
|
getClassifierProviderEnvironmentVariableNames: () => getClassifierProviderEnvironmentVariableNames,
|
|
436
445
|
getClassifierQuestionBodySections: () => getClassifierQuestionBodySections,
|
|
437
446
|
getClassifierRequestCount: () => getClassifierRequestCount,
|
|
447
|
+
getClassifierSystemTokenPricing: () => getClassifierSystemTokenPricing,
|
|
438
448
|
getCodeOutputFields: () => getCodeOutputFields,
|
|
439
449
|
getCodeOutputKeys: () => getCodeOutputKeys,
|
|
440
450
|
getCommonChatV2Editors: () => getCommonChatV2Editors,
|
|
@@ -568,8 +578,14 @@ __export(src_exports, {
|
|
|
568
578
|
isKnowledgeSourceReference: () => isKnowledgeSourceReference,
|
|
569
579
|
isKnowledgeStoreProviderFieldDefaultValid: () => isKnowledgeStoreProviderFieldDefaultValid,
|
|
570
580
|
isLLMChatV2StructuredResponseFormat: () => isLLMChatV2StructuredResponseFormat,
|
|
581
|
+
isLatestDebuggerControlResult: () => isLatestDebuggerControlResult,
|
|
582
|
+
isLatestDebuggerDiagnostic: () => isLatestDebuggerDiagnostic,
|
|
583
|
+
isLatestDebuggerExecutionMessage: () => isLatestDebuggerExecutionMessage,
|
|
584
|
+
isLatestDebuggerScope: () => isLatestDebuggerScope,
|
|
585
|
+
isLatestDebuggerSession: () => isLatestDebuggerSession,
|
|
571
586
|
isNodePrefabInstanceNode: () => isNodePrefabInstanceNode,
|
|
572
587
|
isNotFunctionDataValue: () => isNotFunctionDataValue,
|
|
588
|
+
isReportedTokenCount: () => isReportedTokenCount,
|
|
573
589
|
isReservedKnowledgeObjectKey: () => isReservedKnowledgeObjectKey,
|
|
574
590
|
isRivetWebAppRunTerminalEvent: () => isRivetWebAppRunTerminalEvent,
|
|
575
591
|
isRuntimeDebugLoggingEnabled: () => isRuntimeDebugLoggingEnabled,
|
|
@@ -673,6 +689,8 @@ __export(src_exports, {
|
|
|
673
689
|
parseDataBusChannelIndex: () => parseDataBusChannelIndex,
|
|
674
690
|
parseInterpolationExpression: () => parseInterpolationExpression,
|
|
675
691
|
parseInterpolationTemplate: () => parseInterpolationTemplate,
|
|
692
|
+
parseLatestDebuggerPath: () => parseLatestDebuggerPath,
|
|
693
|
+
parseLatestEndpointSegment: () => parseLatestEndpointSegment,
|
|
676
694
|
parseProviderJsonChunk: () => parseProviderJsonChunk,
|
|
677
695
|
parseRivetWebAppBrowserStorageClientMessage: () => parseRivetWebAppBrowserStorageClientMessage,
|
|
678
696
|
parseRivetWebAppBrowserStorageServerMessage: () => parseRivetWebAppBrowserStorageServerMessage,
|
|
@@ -702,6 +720,9 @@ __export(src_exports, {
|
|
|
702
720
|
readFileNode: () => readFileNode,
|
|
703
721
|
readKnowledgeStoreConnectionCredentials: () => readKnowledgeStoreConnectionCredentials,
|
|
704
722
|
readKnowledgeStoreConnectionCredentialsDraft: () => readKnowledgeStoreConnectionCredentialsDraft,
|
|
723
|
+
readLatestDebuggerControl: () => readLatestDebuggerControl,
|
|
724
|
+
readLatestDebuggerEventId: () => readLatestDebuggerEventId,
|
|
725
|
+
readLatestDebuggerExecution: () => readLatestDebuggerExecution,
|
|
705
726
|
reconcileProjectUiGraphBindings: () => reconcileProjectUiGraphBindings,
|
|
706
727
|
reconcileProjectUiGraphButtonBindings: () => reconcileProjectUiGraphButtonBindings,
|
|
707
728
|
reconcileSubgraphTargetBoundary: () => reconcileSubgraphTargetBoundary,
|
|
@@ -713,6 +734,7 @@ __export(src_exports, {
|
|
|
713
734
|
registerIntegration: () => registerIntegration,
|
|
714
735
|
registerKnowledgeStoreProvider: () => registerKnowledgeStoreProvider,
|
|
715
736
|
registerPluginsIntoRegistry: () => registerPluginsIntoRegistry,
|
|
737
|
+
remapOwnedDatasets: () => remapOwnedDatasets,
|
|
716
738
|
removeKnowledgeStoreConnectionCredentials: () => removeKnowledgeStoreConnectionCredentials,
|
|
717
739
|
renderUiGraphOutputValue: () => renderUiGraphOutputValue,
|
|
718
740
|
replaceDatasetNode: () => replaceDatasetNode,
|
|
@@ -804,6 +826,7 @@ __export(src_exports, {
|
|
|
804
826
|
validateProjectGlobalVariables: () => validateProjectGlobalVariables,
|
|
805
827
|
validateProjectUiGraphActionBindings: () => validateProjectUiGraphActionBindings,
|
|
806
828
|
validateProjectUiGraphButtonBindings: () => validateProjectUiGraphButtonBindings,
|
|
829
|
+
validateTokenPricing: () => validateTokenPricing,
|
|
807
830
|
validateUiGraphActionBindings: () => validateUiGraphActionBindings,
|
|
808
831
|
validateUiGraphButtonBindings: () => validateUiGraphButtonBindings,
|
|
809
832
|
vectorNearestNeighborsNode: () => vectorNearestNeighborsNode,
|
|
@@ -823,6 +846,7 @@ __export(exports_exports, {
|
|
|
823
846
|
AGENT_RESPONSE_TRACE_MAX_PROFILE_ATTEMPTS: () => AGENT_RESPONSE_TRACE_MAX_PROFILE_ATTEMPTS,
|
|
824
847
|
AGENT_RESPONSE_TRACE_MAX_TOOL_CALLS: () => AGENT_RESPONSE_TRACE_MAX_TOOL_CALLS,
|
|
825
848
|
AGENT_RESPONSE_TRACE_SCHEMA_VERSION: () => AGENT_RESPONSE_TRACE_SCHEMA_VERSION,
|
|
849
|
+
AICostNodeImpl: () => AICostNodeImpl,
|
|
826
850
|
ALL_CODE_RUNNER_OPTIONS: () => ALL_CODE_RUNNER_OPTIONS,
|
|
827
851
|
AbortGraphNodeImpl: () => AbortGraphNodeImpl,
|
|
828
852
|
AgentResponseTraceCollector: () => AgentResponseTraceCollector,
|
|
@@ -926,6 +950,7 @@ __export(exports_exports, {
|
|
|
926
950
|
KnowledgeDocumentNodeImpl: () => KnowledgeDocumentNodeImpl,
|
|
927
951
|
KnowledgeSourceNodeImpl: () => KnowledgeSourceNodeImpl,
|
|
928
952
|
KnowledgeStoreController: () => KnowledgeStoreController,
|
|
953
|
+
LATEST_DEBUGGER_PATH: () => LATEST_DEBUGGER_PATH,
|
|
929
954
|
LIQUID_DEFAULT_CREDENTIAL_NAMES: () => LIQUID_DEFAULT_CREDENTIAL_NAMES,
|
|
930
955
|
LIQUID_SYSTEM_ONE_ENDPOINT: () => LIQUID_SYSTEM_ONE_ENDPOINT,
|
|
931
956
|
LIQUID_TOKEN_PRICING: () => LIQUID_TOKEN_PRICING,
|
|
@@ -1033,6 +1058,7 @@ __export(exports_exports, {
|
|
|
1033
1058
|
WatchStreamingOutputNodeImpl: () => WatchStreamingOutputNodeImpl,
|
|
1034
1059
|
abortGraphNode: () => abortGraphNode,
|
|
1035
1060
|
addWarning: () => addWarning,
|
|
1061
|
+
aiCostNode: () => aiCostNode,
|
|
1036
1062
|
analyzeCodeOutputs: () => analyzeCodeOutputs,
|
|
1037
1063
|
anthropicCacheControlTtlOptions: () => anthropicCacheControlTtlOptions,
|
|
1038
1064
|
anthropicEffortOptions: () => anthropicEffortOptions,
|
|
@@ -1066,6 +1092,7 @@ __export(exports_exports, {
|
|
|
1066
1092
|
calculateChatV2Cost: () => calculateChatV2Cost,
|
|
1067
1093
|
calculateChatV2UsageCost: () => calculateChatV2UsageCost,
|
|
1068
1094
|
calculateClassifierUsageCost: () => calculateClassifierUsageCost,
|
|
1095
|
+
calculateTokenUsageCost: () => calculateTokenUsageCost,
|
|
1069
1096
|
callGraphNode: () => callGraphNode,
|
|
1070
1097
|
canBeCoerced: () => canBeCoerced,
|
|
1071
1098
|
canBeCoercedAny: () => canBeCoercedAny,
|
|
@@ -1137,6 +1164,9 @@ __export(exports_exports, {
|
|
|
1137
1164
|
createKnowledgeStoreFieldDraftDefaults: () => createKnowledgeStoreFieldDraftDefaults,
|
|
1138
1165
|
createLLMChatV2NodeData: () => createLLMChatV2NodeData,
|
|
1139
1166
|
createLLMProfileNodeData: () => createLLMProfileNodeData,
|
|
1167
|
+
createLatestDebuggerControlResult: () => createLatestDebuggerControlResult,
|
|
1168
|
+
createLatestDebuggerDiagnostic: () => createLatestDebuggerDiagnostic,
|
|
1169
|
+
createLatestDebuggerSession: () => createLatestDebuggerSession,
|
|
1140
1170
|
createProjectBundleRuntime: () => createProjectBundleRuntime,
|
|
1141
1171
|
createResolvedChatV2Provider: () => createResolvedChatV2Provider,
|
|
1142
1172
|
createRivetLLMProfileHealthIdentity: () => createRivetLLMProfileHealthIdentity,
|
|
@@ -1175,6 +1205,7 @@ __export(exports_exports, {
|
|
|
1175
1205
|
documentNode: () => documentNode,
|
|
1176
1206
|
doubleCheckProject: () => doubleCheckProject,
|
|
1177
1207
|
emptyNodeGraph: () => emptyNodeGraph,
|
|
1208
|
+
encodeLatestDebuggerEnvelope: () => encodeLatestDebuggerEnvelope,
|
|
1178
1209
|
encodeProjectGlobalVariable: () => encodeProjectGlobalVariable,
|
|
1179
1210
|
encodeRivetWebAppStorageBinaryFrame: () => encodeRivetWebAppStorageBinaryFrame,
|
|
1180
1211
|
evaluateJsonPath: () => evaluateJsonPath,
|
|
@@ -1216,6 +1247,7 @@ __export(exports_exports, {
|
|
|
1216
1247
|
getChatV2ModelRegistry: () => getChatV2ModelRegistry,
|
|
1217
1248
|
getChatV2ProviderCapabilities: () => getChatV2ProviderCapabilities,
|
|
1218
1249
|
getChatV2ProviderLabel: () => getChatV2ProviderLabel,
|
|
1250
|
+
getChatV2SystemTokenPricing: () => getChatV2SystemTokenPricing,
|
|
1219
1251
|
getClassifierCredentialNamesForDisplay: () => getClassifierCredentialNamesForDisplay,
|
|
1220
1252
|
getClassifierEvaluateBodySections: () => getClassifierEvaluateBodySections,
|
|
1221
1253
|
getClassifierModelEditor: () => getClassifierModelEditor,
|
|
@@ -1223,6 +1255,7 @@ __export(exports_exports, {
|
|
|
1223
1255
|
getClassifierProviderEnvironmentVariableNames: () => getClassifierProviderEnvironmentVariableNames,
|
|
1224
1256
|
getClassifierQuestionBodySections: () => getClassifierQuestionBodySections,
|
|
1225
1257
|
getClassifierRequestCount: () => getClassifierRequestCount,
|
|
1258
|
+
getClassifierSystemTokenPricing: () => getClassifierSystemTokenPricing,
|
|
1226
1259
|
getCodeOutputFields: () => getCodeOutputFields,
|
|
1227
1260
|
getCodeOutputKeys: () => getCodeOutputKeys,
|
|
1228
1261
|
getCommonChatV2Editors: () => getCommonChatV2Editors,
|
|
@@ -1356,8 +1389,14 @@ __export(exports_exports, {
|
|
|
1356
1389
|
isKnowledgeSourceReference: () => isKnowledgeSourceReference,
|
|
1357
1390
|
isKnowledgeStoreProviderFieldDefaultValid: () => isKnowledgeStoreProviderFieldDefaultValid,
|
|
1358
1391
|
isLLMChatV2StructuredResponseFormat: () => isLLMChatV2StructuredResponseFormat,
|
|
1392
|
+
isLatestDebuggerControlResult: () => isLatestDebuggerControlResult,
|
|
1393
|
+
isLatestDebuggerDiagnostic: () => isLatestDebuggerDiagnostic,
|
|
1394
|
+
isLatestDebuggerExecutionMessage: () => isLatestDebuggerExecutionMessage,
|
|
1395
|
+
isLatestDebuggerScope: () => isLatestDebuggerScope,
|
|
1396
|
+
isLatestDebuggerSession: () => isLatestDebuggerSession,
|
|
1359
1397
|
isNodePrefabInstanceNode: () => isNodePrefabInstanceNode,
|
|
1360
1398
|
isNotFunctionDataValue: () => isNotFunctionDataValue,
|
|
1399
|
+
isReportedTokenCount: () => isReportedTokenCount,
|
|
1361
1400
|
isReservedKnowledgeObjectKey: () => isReservedKnowledgeObjectKey,
|
|
1362
1401
|
isRivetWebAppRunTerminalEvent: () => isRivetWebAppRunTerminalEvent,
|
|
1363
1402
|
isRuntimeDebugLoggingEnabled: () => isRuntimeDebugLoggingEnabled,
|
|
@@ -1461,6 +1500,8 @@ __export(exports_exports, {
|
|
|
1461
1500
|
parseDataBusChannelIndex: () => parseDataBusChannelIndex,
|
|
1462
1501
|
parseInterpolationExpression: () => parseInterpolationExpression,
|
|
1463
1502
|
parseInterpolationTemplate: () => parseInterpolationTemplate,
|
|
1503
|
+
parseLatestDebuggerPath: () => parseLatestDebuggerPath,
|
|
1504
|
+
parseLatestEndpointSegment: () => parseLatestEndpointSegment,
|
|
1464
1505
|
parseProviderJsonChunk: () => parseProviderJsonChunk,
|
|
1465
1506
|
parseRivetWebAppBrowserStorageClientMessage: () => parseRivetWebAppBrowserStorageClientMessage,
|
|
1466
1507
|
parseRivetWebAppBrowserStorageServerMessage: () => parseRivetWebAppBrowserStorageServerMessage,
|
|
@@ -1490,6 +1531,9 @@ __export(exports_exports, {
|
|
|
1490
1531
|
readFileNode: () => readFileNode,
|
|
1491
1532
|
readKnowledgeStoreConnectionCredentials: () => readKnowledgeStoreConnectionCredentials,
|
|
1492
1533
|
readKnowledgeStoreConnectionCredentialsDraft: () => readKnowledgeStoreConnectionCredentialsDraft,
|
|
1534
|
+
readLatestDebuggerControl: () => readLatestDebuggerControl,
|
|
1535
|
+
readLatestDebuggerEventId: () => readLatestDebuggerEventId,
|
|
1536
|
+
readLatestDebuggerExecution: () => readLatestDebuggerExecution,
|
|
1493
1537
|
reconcileProjectUiGraphBindings: () => reconcileProjectUiGraphBindings,
|
|
1494
1538
|
reconcileProjectUiGraphButtonBindings: () => reconcileProjectUiGraphButtonBindings,
|
|
1495
1539
|
reconcileSubgraphTargetBoundary: () => reconcileSubgraphTargetBoundary,
|
|
@@ -1501,6 +1545,7 @@ __export(exports_exports, {
|
|
|
1501
1545
|
registerIntegration: () => registerIntegration,
|
|
1502
1546
|
registerKnowledgeStoreProvider: () => registerKnowledgeStoreProvider,
|
|
1503
1547
|
registerPluginsIntoRegistry: () => registerPluginsIntoRegistry,
|
|
1548
|
+
remapOwnedDatasets: () => remapOwnedDatasets,
|
|
1504
1549
|
removeKnowledgeStoreConnectionCredentials: () => removeKnowledgeStoreConnectionCredentials,
|
|
1505
1550
|
renderUiGraphOutputValue: () => renderUiGraphOutputValue,
|
|
1506
1551
|
replaceDatasetNode: () => replaceDatasetNode,
|
|
@@ -1592,6 +1637,7 @@ __export(exports_exports, {
|
|
|
1592
1637
|
validateProjectGlobalVariables: () => validateProjectGlobalVariables,
|
|
1593
1638
|
validateProjectUiGraphActionBindings: () => validateProjectUiGraphActionBindings,
|
|
1594
1639
|
validateProjectUiGraphButtonBindings: () => validateProjectUiGraphButtonBindings,
|
|
1640
|
+
validateTokenPricing: () => validateTokenPricing,
|
|
1595
1641
|
validateUiGraphActionBindings: () => validateUiGraphActionBindings,
|
|
1596
1642
|
validateUiGraphButtonBindings: () => validateUiGraphButtonBindings,
|
|
1597
1643
|
vectorNearestNeighborsNode: () => vectorNearestNeighborsNode,
|
|
@@ -1958,6 +2004,7 @@ async function waitForLLMChatV2RetryCooldown(cooldownMs, signal) {
|
|
|
1958
2004
|
|
|
1959
2005
|
// src/model/chat-v2/llmProfileFieldRegistry.ts
|
|
1960
2006
|
var llmProfileFieldSpecs = [
|
|
2007
|
+
{ key: "tokenPricing" },
|
|
1961
2008
|
{ key: "model", inputId: "model", valueKind: "string" },
|
|
1962
2009
|
{ key: "useModelInput", valueKind: "boolean", resolvedInputToggle: true },
|
|
1963
2010
|
{ key: "temperature", inputId: "temperature", valueKind: "optional-number" },
|
|
@@ -3366,6 +3413,47 @@ function normalizeTemperature(value, label = "Temperature") {
|
|
|
3366
3413
|
return value;
|
|
3367
3414
|
}
|
|
3368
3415
|
|
|
3416
|
+
// src/model/tokenPricing.ts
|
|
3417
|
+
function isReportedTokenCount(value) {
|
|
3418
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
3419
|
+
}
|
|
3420
|
+
function validateTokenPricing(value) {
|
|
3421
|
+
if (value === void 0) return void 0;
|
|
3422
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
3423
|
+
throw new Error("Token pricing override must be an object.");
|
|
3424
|
+
const result = {};
|
|
3425
|
+
for (const key of [
|
|
3426
|
+
"inputPerMillionTokens",
|
|
3427
|
+
"outputPerMillionTokens",
|
|
3428
|
+
"cacheReadPerMillionTokens",
|
|
3429
|
+
"cacheWritePerMillionTokens"
|
|
3430
|
+
]) {
|
|
3431
|
+
const rate = value[key];
|
|
3432
|
+
if (rate === void 0 && key.startsWith("cache")) continue;
|
|
3433
|
+
if (typeof rate !== "number" || !Number.isFinite(rate) || rate < 0)
|
|
3434
|
+
throw new Error(`Token pricing ${key} must be a finite, non-negative USD rate.`);
|
|
3435
|
+
result[key] = rate;
|
|
3436
|
+
}
|
|
3437
|
+
return result;
|
|
3438
|
+
}
|
|
3439
|
+
function calculateTokenUsageCost(pricing, usage) {
|
|
3440
|
+
try {
|
|
3441
|
+
const validated = validateTokenPricing(pricing);
|
|
3442
|
+
if (!validated) return void 0;
|
|
3443
|
+
pricing = validated;
|
|
3444
|
+
} catch {
|
|
3445
|
+
return void 0;
|
|
3446
|
+
}
|
|
3447
|
+
const { inputTokens, outputTokens, inputTokenDetails } = usage ?? {};
|
|
3448
|
+
const read = (inputTokenDetails == null ? void 0 : inputTokenDetails.cacheReadTokens) === void 0 ? 0 : inputTokenDetails.cacheReadTokens;
|
|
3449
|
+
const write = (inputTokenDetails == null ? void 0 : inputTokenDetails.cacheWriteTokens) === void 0 ? 0 : inputTokenDetails.cacheWriteTokens;
|
|
3450
|
+
if (!isReportedTokenCount(inputTokens) || !isReportedTokenCount(outputTokens) || !isReportedTokenCount(read) || !isReportedTokenCount(write))
|
|
3451
|
+
return void 0;
|
|
3452
|
+
if (read + write > inputTokens) return void 0;
|
|
3453
|
+
const total = ((inputTokens - read - write) * pricing.inputPerMillionTokens + read * (pricing.cacheReadPerMillionTokens ?? pricing.inputPerMillionTokens) + write * (pricing.cacheWritePerMillionTokens ?? pricing.inputPerMillionTokens) + outputTokens * pricing.outputPerMillionTokens) / 1e6;
|
|
3454
|
+
return Number.isFinite(total) && total >= 0 ? total : void 0;
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3369
3457
|
// src/model/chat-v2/llmProfile.ts
|
|
3370
3458
|
var credentialSources = /* @__PURE__ */ new Set([
|
|
3371
3459
|
"input",
|
|
@@ -3453,6 +3541,7 @@ function scopeLLMProfileHealthIdentity(profile, fallback) {
|
|
|
3453
3541
|
}
|
|
3454
3542
|
function normalizeConfiguration(data) {
|
|
3455
3543
|
var _a, _b;
|
|
3544
|
+
data = { ...data, tokenPricing: validateTokenPricing(data.tokenPricing) };
|
|
3456
3545
|
for (const field2 of llmProfileStringDataKeys) {
|
|
3457
3546
|
if (typeof data[field2] !== "string") {
|
|
3458
3547
|
throw new Error(`LLM Profile ${field2} must be a string.`);
|
|
@@ -6783,6 +6872,85 @@ function evaluateJsonPath(value, path, wrap = false) {
|
|
|
6783
6872
|
});
|
|
6784
6873
|
}
|
|
6785
6874
|
|
|
6875
|
+
// src/model/RunCostLedger.ts
|
|
6876
|
+
var emptySummary = () => ({ knownCostUsd: 0, hasKnownCost: false, hasUnknownCost: false });
|
|
6877
|
+
function addCost(summary, cost) {
|
|
6878
|
+
if (cost === null) summary.hasUnknownCost = true;
|
|
6879
|
+
else {
|
|
6880
|
+
summary.knownCostUsd += cost;
|
|
6881
|
+
summary.hasKnownCost = true;
|
|
6882
|
+
}
|
|
6883
|
+
}
|
|
6884
|
+
function readSummary(summary, executionPending = false) {
|
|
6885
|
+
if (!Number.isFinite(summary.knownCostUsd)) return { status: "unknown", knownCostUsd: null };
|
|
6886
|
+
if (!summary.hasUnknownCost && !executionPending) return { status: "complete", knownCostUsd: summary.knownCostUsd };
|
|
6887
|
+
if (!summary.hasKnownCost) return { status: "unknown", knownCostUsd: null };
|
|
6888
|
+
return { status: "partial", knownCostUsd: summary.knownCostUsd };
|
|
6889
|
+
}
|
|
6890
|
+
var RunCostLedger = class _RunCostLedger {
|
|
6891
|
+
#parent;
|
|
6892
|
+
#seenCalls;
|
|
6893
|
+
#costs = { llm: emptySummary(), decisionAI: emptySummary(), total: emptySummary() };
|
|
6894
|
+
constructor(parent) {
|
|
6895
|
+
this.#parent = parent;
|
|
6896
|
+
this.#seenCalls = parent ? parent.#seenCalls : /* @__PURE__ */ new Set();
|
|
6897
|
+
}
|
|
6898
|
+
createProjectScope() {
|
|
6899
|
+
return new _RunCostLedger(this);
|
|
6900
|
+
}
|
|
6901
|
+
observeChat(event) {
|
|
6902
|
+
if (typeof event.callId !== "string" || !event.callId) {
|
|
6903
|
+
this.markUnobserved("llm");
|
|
6904
|
+
return;
|
|
6905
|
+
}
|
|
6906
|
+
this.#record(`llm:${event.callId}`, "llm", event.pricing.status === "known" ? event.pricing.costUsd : void 0);
|
|
6907
|
+
}
|
|
6908
|
+
observeClassifier(event) {
|
|
6909
|
+
var _a;
|
|
6910
|
+
if (event.family !== "classifier" || event.attemptIndex === void 0) return;
|
|
6911
|
+
if (typeof event.eventId !== "string" || !event.eventId || !Number.isSafeInteger(event.attemptIndex) || event.attemptIndex < 0) {
|
|
6912
|
+
this.markUnobserved("decisionAI");
|
|
6913
|
+
return;
|
|
6914
|
+
}
|
|
6915
|
+
this.#record(`decision:${event.eventId}`, "decisionAI", (_a = event.classifierUsage) == null ? void 0 : _a.estimatedCostUsd);
|
|
6916
|
+
}
|
|
6917
|
+
/** Legacy Chat does not expose complete per-attempt accounting. */
|
|
6918
|
+
observeLegacy(key, value) {
|
|
6919
|
+
if (typeof value === "number" && Number.isFinite(value) && value > 0) this.#record(`legacy:${key}`, "llm", value);
|
|
6920
|
+
this.markUnobserved("llm");
|
|
6921
|
+
}
|
|
6922
|
+
markUnobserved(family) {
|
|
6923
|
+
for (let scope = this; scope; scope = scope.#parent) {
|
|
6924
|
+
if (family) scope.#costs[family].hasUnknownCost = true;
|
|
6925
|
+
else {
|
|
6926
|
+
scope.#costs.llm.hasUnknownCost = true;
|
|
6927
|
+
scope.#costs.decisionAI.hasUnknownCost = true;
|
|
6928
|
+
}
|
|
6929
|
+
scope.#costs.total.hasUnknownCost = true;
|
|
6930
|
+
}
|
|
6931
|
+
}
|
|
6932
|
+
snapshot(executionPending = false) {
|
|
6933
|
+
return readSummary(this.#costs.total, executionPending);
|
|
6934
|
+
}
|
|
6935
|
+
/** Observed amounts now, not a prediction of unfinished or future calls. */
|
|
6936
|
+
breakdown() {
|
|
6937
|
+
return {
|
|
6938
|
+
llm: readSummary(this.#costs.llm),
|
|
6939
|
+
decisionAI: readSummary(this.#costs.decisionAI),
|
|
6940
|
+
total: this.snapshot()
|
|
6941
|
+
};
|
|
6942
|
+
}
|
|
6943
|
+
#record(id, family, value) {
|
|
6944
|
+
if (this.#seenCalls.has(id)) return;
|
|
6945
|
+
this.#seenCalls.add(id);
|
|
6946
|
+
const cost = typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : null;
|
|
6947
|
+
for (let scope = this; scope; scope = scope.#parent) {
|
|
6948
|
+
addCost(scope.#costs.total, cost);
|
|
6949
|
+
addCost(scope.#costs[family], cost);
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6952
|
+
};
|
|
6953
|
+
|
|
6786
6954
|
// src/model/GraphExecutionState.ts
|
|
6787
6955
|
var GraphInvocationState = class {
|
|
6788
6956
|
rootRunId = void 0;
|
|
@@ -6809,6 +6977,7 @@ var GraphInvocationState = class {
|
|
|
6809
6977
|
successfulAbortTerminalProcessIds = void 0;
|
|
6810
6978
|
totalCost = 0;
|
|
6811
6979
|
costBreakdown;
|
|
6980
|
+
costLedger = new RunCostLedger();
|
|
6812
6981
|
ignoreNodes = void 0;
|
|
6813
6982
|
hasPreloadedData = false;
|
|
6814
6983
|
loadedProjects = void 0;
|
|
@@ -6845,6 +7014,7 @@ var GraphInvocationState = class {
|
|
|
6845
7014
|
this.successfulAbortTerminalProcessIds = /* @__PURE__ */ new Set();
|
|
6846
7015
|
this.totalCost = 0;
|
|
6847
7016
|
this.costBreakdown = void 0;
|
|
7017
|
+
this.costLedger = options2.costLedger ?? new RunCostLedger();
|
|
6848
7018
|
this.nodeAbortControllers = /* @__PURE__ */ new Map();
|
|
6849
7019
|
this.loadedProjects = options2.loadedProjects;
|
|
6850
7020
|
this.graphInputNodeValues = ((_c = options2.sharedOverride) == null ? void 0 : _c.graphInputNodeValues) ?? {};
|
|
@@ -13778,6 +13948,8 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
13778
13948
|
slowMode = false;
|
|
13779
13949
|
#parent;
|
|
13780
13950
|
#recordingProjectScope;
|
|
13951
|
+
/** Captures the caller invocation, independently of lifecycle-parent rewiring. */
|
|
13952
|
+
#projectCostScope;
|
|
13781
13953
|
#abortOwnerOverride;
|
|
13782
13954
|
#sameGraphRunOwnerOverride;
|
|
13783
13955
|
#suppressGraphPartialOutputs = false;
|
|
@@ -14259,7 +14431,8 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
14259
14431
|
processingQueue: new pQueueCompat_default({ concurrency: this.#concurrency.nodeConcurrency }),
|
|
14260
14432
|
createAbortController: () => this.#newAbortController(),
|
|
14261
14433
|
loadedProjects: this.#cacheLoadedProjects && ((_b = this.#runtimeCache) == null ? void 0 : _b.loadedProjects) ? { ...this.#runtimeCache.loadedProjects } : {},
|
|
14262
|
-
sharedOverride: this.#sharedRunStateOverride
|
|
14434
|
+
sharedOverride: this.#sharedRunStateOverride,
|
|
14435
|
+
costLedger: this.#projectCostScope ? this.#projectCostScope.startsProject ? this.#projectCostScope.parentLedger.createProjectScope() : this.#projectCostScope.parentLedger : void 0
|
|
14263
14436
|
});
|
|
14264
14437
|
this.#shared.executionCache ??= /* @__PURE__ */ new Map();
|
|
14265
14438
|
this.#connectedToolContinuationHost.reset();
|
|
@@ -14455,8 +14628,12 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
14455
14628
|
const hostChatV2Observer = this.getRootProcessor().#run.context.onChatV2CallFinished;
|
|
14456
14629
|
const hostLLMChatOutputSnapshotObserver = this.getRootProcessor().#run.context.onLLMChatOutputSnapshot;
|
|
14457
14630
|
const hostLLMProfileAttemptObserver = this.getRootProcessor().#run.context.onLLMProfileAttempt;
|
|
14631
|
+
const costLedger = this.#run.costLedger;
|
|
14632
|
+
const { rootRunId, graphRunId } = this.#run;
|
|
14633
|
+
const isCurrentInvocation = () => this.#run.rootRunId === rootRunId && this.#run.graphRunId === graphRunId;
|
|
14458
14634
|
this.#run.nodeProcessContextBase = {
|
|
14459
14635
|
...this.#run.context,
|
|
14636
|
+
getRunCostBreakdown: () => costLedger.breakdown(),
|
|
14460
14637
|
abortGraph: (error) => {
|
|
14461
14638
|
void (this.#abortOwnerOverride ?? this).abort(error === void 0, error);
|
|
14462
14639
|
},
|
|
@@ -14474,6 +14651,11 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
14474
14651
|
graphOutputs: this.#run.graphOutputs,
|
|
14475
14652
|
graphCallPath: this.#graphCallPath,
|
|
14476
14653
|
onChatV2CallFinished: (event) => {
|
|
14654
|
+
try {
|
|
14655
|
+
costLedger.observeChat(event);
|
|
14656
|
+
} catch {
|
|
14657
|
+
costLedger.markUnobserved("llm");
|
|
14658
|
+
}
|
|
14477
14659
|
try {
|
|
14478
14660
|
const observerResult = hostChatV2Observer == null ? void 0 : hostChatV2Observer(event);
|
|
14479
14661
|
if (observerResult != null && typeof observerResult.then === "function") {
|
|
@@ -14481,6 +14663,7 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
14481
14663
|
}
|
|
14482
14664
|
} catch {
|
|
14483
14665
|
}
|
|
14666
|
+
if (!isCurrentInvocation()) return;
|
|
14484
14667
|
const { rawUsage: _rawUsage, ...traceEvent } = event;
|
|
14485
14668
|
emitDetached(this.#emitter, "llmCallFinished", this.#withExecution(traceEvent));
|
|
14486
14669
|
},
|
|
@@ -14492,9 +14675,14 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
14492
14675
|
}
|
|
14493
14676
|
} catch {
|
|
14494
14677
|
}
|
|
14495
|
-
emitDetached(this.#emitter, "llmChatOutputSnapshot", this.#withExecution(event));
|
|
14678
|
+
if (isCurrentInvocation()) emitDetached(this.#emitter, "llmChatOutputSnapshot", this.#withExecution(event));
|
|
14496
14679
|
},
|
|
14497
14680
|
onLLMProfileAttempt: (event) => {
|
|
14681
|
+
try {
|
|
14682
|
+
costLedger.observeClassifier(event);
|
|
14683
|
+
} catch {
|
|
14684
|
+
costLedger.markUnobserved("decisionAI");
|
|
14685
|
+
}
|
|
14498
14686
|
try {
|
|
14499
14687
|
const observerResult = hostLLMProfileAttemptObserver == null ? void 0 : hostLLMProfileAttemptObserver(event);
|
|
14500
14688
|
if (observerResult != null && typeof observerResult.then === "function") {
|
|
@@ -14502,10 +14690,10 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
14502
14690
|
}
|
|
14503
14691
|
} catch {
|
|
14504
14692
|
}
|
|
14505
|
-
emitDetached(this.#emitter, "llmProfileAttempt", this.#withExecution(event));
|
|
14693
|
+
if (isCurrentInvocation()) emitDetached(this.#emitter, "llmProfileAttempt", this.#withExecution(event));
|
|
14506
14694
|
},
|
|
14507
14695
|
onToolCallFinished: (event) => {
|
|
14508
|
-
emitDetached(this.#emitter, "toolCallFinished", this.#withExecution(event));
|
|
14696
|
+
if (isCurrentInvocation()) emitDetached(this.#emitter, "toolCallFinished", this.#withExecution(event));
|
|
14509
14697
|
},
|
|
14510
14698
|
project: this.#project,
|
|
14511
14699
|
raiseEvent: (event, data) => {
|
|
@@ -15719,6 +15907,11 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
15719
15907
|
}
|
|
15720
15908
|
return processor;
|
|
15721
15909
|
}
|
|
15910
|
+
/** Snapshot the root execution's observed provider estimates after completion. */
|
|
15911
|
+
getRunCostSnapshot() {
|
|
15912
|
+
const root = this.getRootProcessor();
|
|
15913
|
+
return root.#run.costLedger.snapshot(root.isRunning);
|
|
15914
|
+
}
|
|
15722
15915
|
#getEnclosingStreamingWatchInvocation() {
|
|
15723
15916
|
let processor = this;
|
|
15724
15917
|
while (processor) {
|
|
@@ -15814,6 +16007,12 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
15814
16007
|
nodeAbortController.abort(getAbortSignalReason(this.#run.abortController.signal));
|
|
15815
16008
|
}
|
|
15816
16009
|
let continuationFinalized = false;
|
|
16010
|
+
const costLedger = this.#run.costLedger;
|
|
16011
|
+
const accountingKey = `${this.#run.graphRunId}:${processId}:${index}`;
|
|
16012
|
+
let accountingEntered = false;
|
|
16013
|
+
let observedPhysicalCall = false;
|
|
16014
|
+
let cacheHit = false;
|
|
16015
|
+
let accountingOutputs;
|
|
15817
16016
|
try {
|
|
15818
16017
|
const createContextProfileStart = this.#startRuntimeProfile();
|
|
15819
16018
|
let context;
|
|
@@ -15826,7 +16025,10 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
15826
16025
|
nodeAbortController,
|
|
15827
16026
|
partialOutput,
|
|
15828
16027
|
void 0,
|
|
15829
|
-
markResultAsEditorCacheHit
|
|
16028
|
+
markResultAsEditorCacheHit ? () => {
|
|
16029
|
+
cacheHit = true;
|
|
16030
|
+
markResultAsEditorCacheHit();
|
|
16031
|
+
} : void 0
|
|
15830
16032
|
);
|
|
15831
16033
|
} finally {
|
|
15832
16034
|
this.#finishRuntimeProfile("createNodeProcessContext", createContextProfileStart);
|
|
@@ -15835,10 +16037,25 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
15835
16037
|
if (nodeAbortController.signal.aborted) {
|
|
15836
16038
|
throw createGraphAbortErrorFromSignal(nodeAbortController.signal);
|
|
15837
16039
|
}
|
|
16040
|
+
if (node.type === "llmChatV2") {
|
|
16041
|
+
const observer = context.onChatV2CallFinished;
|
|
16042
|
+
context.onChatV2CallFinished = (event) => {
|
|
16043
|
+
observedPhysicalCall = true;
|
|
16044
|
+
observer == null ? void 0 : observer(event);
|
|
16045
|
+
};
|
|
16046
|
+
} else if (node.type === "classifierEvaluate") {
|
|
16047
|
+
const observer = context.onLLMProfileAttempt;
|
|
16048
|
+
context.onLLMProfileAttempt = (event) => {
|
|
16049
|
+
if (event.family === "classifier" && event.attemptIndex !== void 0) observedPhysicalCall = true;
|
|
16050
|
+
observer == null ? void 0 : observer(event);
|
|
16051
|
+
};
|
|
16052
|
+
}
|
|
15838
16053
|
const implementationProfileStart = this.#startRuntimeProfile();
|
|
15839
16054
|
let results;
|
|
15840
16055
|
try {
|
|
16056
|
+
accountingEntered = true;
|
|
15841
16057
|
results = await instance.process(inputValues, context);
|
|
16058
|
+
accountingOutputs = results;
|
|
15842
16059
|
} finally {
|
|
15843
16060
|
this.#finishRuntimeProfile("nodeImplementation", implementationProfileStart);
|
|
15844
16061
|
}
|
|
@@ -15857,6 +16074,18 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
15857
16074
|
this.#discardFailureOutputs(processId, index);
|
|
15858
16075
|
return results;
|
|
15859
16076
|
} finally {
|
|
16077
|
+
if (accountingEntered && !cacheHit) {
|
|
16078
|
+
try {
|
|
16079
|
+
if (["chat", "chatLoop", "chatGoogle", "chatAnthropic", "chatHuggingFace", "getEmbedding"].includes(node.type)) {
|
|
16080
|
+
const cost = accountingOutputs == null ? void 0 : accountingOutputs["cost"];
|
|
16081
|
+
costLedger.observeLegacy(accountingKey, (cost == null ? void 0 : cost.type) === "number" ? cost.value : void 0);
|
|
16082
|
+
} else if ((node.type === "llmChatV2" || node.type === "classifierEvaluate") && !observedPhysicalCall) {
|
|
16083
|
+
costLedger.markUnobserved(node.type === "classifierEvaluate" ? "decisionAI" : "llm");
|
|
16084
|
+
}
|
|
16085
|
+
} catch {
|
|
16086
|
+
costLedger.markUnobserved(node.type === "classifierEvaluate" ? "decisionAI" : "llm");
|
|
16087
|
+
}
|
|
16088
|
+
}
|
|
15860
16089
|
if (!continuationFinalized) {
|
|
15861
16090
|
this.#discardToolCallContinuation(processId, index);
|
|
15862
16091
|
}
|
|
@@ -17179,6 +17408,10 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
17179
17408
|
processor.#externalFunctions = this.#externalFunctions;
|
|
17180
17409
|
processor.#contextValues = this.#contextValues;
|
|
17181
17410
|
processor.#parent = this;
|
|
17411
|
+
processor.#projectCostScope = {
|
|
17412
|
+
parentLedger: this.#run.costLedger,
|
|
17413
|
+
startsProject: ordinary && invocation.startsProject
|
|
17414
|
+
};
|
|
17182
17415
|
processor.#recordingProjectScope = this.#recordingProjectScope;
|
|
17183
17416
|
processor.#graphCallPath = this.#graphCallPath;
|
|
17184
17417
|
processor.#frozenNodeOutputResolver = this.#frozenNodeOutputResolver;
|
|
@@ -17254,7 +17487,8 @@ ${errors.map(({ node }) => `- ${node.title} (${node.id})`).join("\n")}`;
|
|
|
17254
17487
|
kind: "subgraph",
|
|
17255
17488
|
project: subprocessorProject,
|
|
17256
17489
|
graphId: subGraphId,
|
|
17257
|
-
initialExecutionPlan
|
|
17490
|
+
initialExecutionPlan,
|
|
17491
|
+
startsProject: subprocessorProject !== this.#project || node.type === "subGraph" && Boolean(node.data.targetProjectId)
|
|
17258
17492
|
});
|
|
17259
17493
|
} finally {
|
|
17260
17494
|
this.#finishRuntimeProfile("createSubProcessor", createProfileStart);
|
|
@@ -23688,6 +23922,16 @@ var profileSuspensionHints = {
|
|
|
23688
23922
|
duration: "Time to suspend this profile before one recovery attempt."
|
|
23689
23923
|
};
|
|
23690
23924
|
|
|
23925
|
+
// src/model/tokenPricingEditor.ts
|
|
23926
|
+
function getTokenPricingEditor() {
|
|
23927
|
+
return {
|
|
23928
|
+
type: "group",
|
|
23929
|
+
label: "Token pricing",
|
|
23930
|
+
defaultOpen: false,
|
|
23931
|
+
editors: [{ type: "custom", label: "Token pricing", customEditorId: "AIProfilePricing" }]
|
|
23932
|
+
};
|
|
23933
|
+
}
|
|
23934
|
+
|
|
23691
23935
|
// src/model/chat-v2/providerOptions.ts
|
|
23692
23936
|
var import_anthropic2 = require("@ai-sdk/anthropic");
|
|
23693
23937
|
var import_google2 = require("@ai-sdk/google");
|
|
@@ -24194,22 +24438,28 @@ function getChatV2ModelInfo(provider, modelId) {
|
|
|
24194
24438
|
const providerModels = chatV2ModelRegistry[provider];
|
|
24195
24439
|
return providerModels[modelId];
|
|
24196
24440
|
}
|
|
24441
|
+
function getChatV2SystemTokenPricing(provider, modelId) {
|
|
24442
|
+
var _a;
|
|
24443
|
+
const cost = (_a = getChatV2ModelInfo(provider, modelId.trim())) == null ? void 0 : _a.cost;
|
|
24444
|
+
return cost == null ? void 0 : { inputPerMillionTokens: cost.prompt * 1e6, outputPerMillionTokens: cost.completion * 1e6 };
|
|
24445
|
+
}
|
|
24197
24446
|
function calculateChatV2Cost(provider, modelId, promptTokens, completionTokens) {
|
|
24198
24447
|
const model = getChatV2ModelInfo(provider, modelId);
|
|
24199
|
-
if ((model == null ? void 0 : model.cost) == null || !
|
|
24448
|
+
if ((model == null ? void 0 : model.cost) == null || !isReportedTokenCount(promptTokens) || !isReportedTokenCount(completionTokens)) {
|
|
24200
24449
|
return void 0;
|
|
24201
24450
|
}
|
|
24202
24451
|
const cost = model.cost.prompt * promptTokens + model.cost.completion * completionTokens;
|
|
24203
24452
|
return isFiniteNonNegative(cost) ? cost : void 0;
|
|
24204
24453
|
}
|
|
24205
|
-
function calculateChatV2UsageCost(provider, modelId, usage, providerMetadata) {
|
|
24454
|
+
function calculateChatV2UsageCost(provider, modelId, usage, providerMetadata, tokenPricing) {
|
|
24206
24455
|
var _a;
|
|
24456
|
+
if (tokenPricing !== void 0) return calculateTokenUsageCost(tokenPricing, usage);
|
|
24207
24457
|
if (provider === "openrouter") {
|
|
24208
24458
|
const reportedUsage = (_a = providerMetadata == null ? void 0 : providerMetadata.openrouter) == null ? void 0 : _a.usage;
|
|
24209
24459
|
const cost = reportedUsage != null && typeof reportedUsage === "object" ? reportedUsage.cost : void 0;
|
|
24210
24460
|
return isFiniteNonNegative(cost) ? cost : void 0;
|
|
24211
24461
|
}
|
|
24212
|
-
if (
|
|
24462
|
+
if ((usage == null ? void 0 : usage.inputTokens) == null || usage.outputTokens == null) {
|
|
24213
24463
|
return void 0;
|
|
24214
24464
|
}
|
|
24215
24465
|
return calculateChatV2Cost(provider, modelId, usage.inputTokens, usage.outputTokens);
|
|
@@ -25266,6 +25516,7 @@ async function getLLMChatV2Editors(data, context) {
|
|
|
25266
25516
|
},
|
|
25267
25517
|
...!usesProfile ? [
|
|
25268
25518
|
getModelEditors(await getResolvedModelOptions(data, context)),
|
|
25519
|
+
getTokenPricingEditor(),
|
|
25269
25520
|
...getProviderEditors(),
|
|
25270
25521
|
getParameterEditors(),
|
|
25271
25522
|
...data.provider === "custom" ? [] : [getReasoningEditors()]
|
|
@@ -25281,6 +25532,7 @@ async function getLLMProfileEditors(data, context) {
|
|
|
25281
25532
|
const profileData = data;
|
|
25282
25533
|
return [
|
|
25283
25534
|
getModelEditors(await getResolvedModelOptions(profileData, context)),
|
|
25535
|
+
getTokenPricingEditor(),
|
|
25284
25536
|
...getProviderEditors(),
|
|
25285
25537
|
getParameterEditors(),
|
|
25286
25538
|
...profileData.provider === "custom" ? [] : [getReasoningEditors()],
|
|
@@ -26397,11 +26649,17 @@ function notifyChatV2CallFinished(options2, params) {
|
|
|
26397
26649
|
const calculatedCost = safelyRead(
|
|
26398
26650
|
() => {
|
|
26399
26651
|
var _a2;
|
|
26400
|
-
return calculateChatV2UsageCost(
|
|
26652
|
+
return calculateChatV2UsageCost(
|
|
26653
|
+
options2.provider,
|
|
26654
|
+
options2.modelId,
|
|
26655
|
+
resultUsage ?? errorUsage,
|
|
26656
|
+
(_a2 = params.result) == null ? void 0 : _a2.providerMetadata,
|
|
26657
|
+
options2.tokenPricing
|
|
26658
|
+
);
|
|
26401
26659
|
}
|
|
26402
26660
|
);
|
|
26403
26661
|
const costUsd = toUsageNumber(calculatedCost);
|
|
26404
|
-
const hasKnownPricing = (modelInfo == null ? void 0 : modelInfo.cost) != null || options2.provider === "openrouter" && costUsd != null;
|
|
26662
|
+
const hasKnownPricing = options2.tokenPricing != null || (modelInfo == null ? void 0 : modelInfo.cost) != null || options2.provider === "openrouter" && costUsd != null;
|
|
26405
26663
|
const finishReason = safelyRead(() => {
|
|
26406
26664
|
var _a2;
|
|
26407
26665
|
return (_a2 = params.result) == null ? void 0 : _a2.finishReason;
|
|
@@ -27070,7 +27328,13 @@ function normalizeChatV2Usage(usage, options2, providerMetadata) {
|
|
|
27070
27328
|
totalTokens,
|
|
27071
27329
|
cachedTokens,
|
|
27072
27330
|
reasoningTokens,
|
|
27073
|
-
totalCost: calculateChatV2UsageCost(
|
|
27331
|
+
totalCost: calculateChatV2UsageCost(
|
|
27332
|
+
options2.provider,
|
|
27333
|
+
options2.modelId,
|
|
27334
|
+
usage,
|
|
27335
|
+
providerMetadata,
|
|
27336
|
+
options2.tokenPricing
|
|
27337
|
+
)
|
|
27074
27338
|
};
|
|
27075
27339
|
}
|
|
27076
27340
|
function createChatV2ResponseOutput2(response, structuredOutput, responseFormat) {
|
|
@@ -27224,6 +27488,7 @@ async function runChatV2WithRetry(options2, chatOptions, retryPlan, signal, tran
|
|
|
27224
27488
|
const callId = createObservedChatV2CallId(options2);
|
|
27225
27489
|
const callStartedAt = Date.now();
|
|
27226
27490
|
let callWasObserved = false;
|
|
27491
|
+
let completedResponse;
|
|
27227
27492
|
let acceptsResponseEvidence = true;
|
|
27228
27493
|
const retireResponseEvidence = () => {
|
|
27229
27494
|
acceptsResponseEvidence = false;
|
|
@@ -27264,6 +27529,7 @@ async function runChatV2WithRetry(options2, chatOptions, retryPlan, signal, tran
|
|
|
27264
27529
|
onResponseReceived: reportResponseEvidence
|
|
27265
27530
|
};
|
|
27266
27531
|
const result = transportMode === "generate" ? await generateChatV2(attemptChatOptions) : await streamChatV2(attemptChatOptions);
|
|
27532
|
+
completedResponse = result;
|
|
27267
27533
|
signal.throwIfAborted();
|
|
27268
27534
|
await ((_a = options2.responseBodyCapture) == null ? void 0 : _a.flush());
|
|
27269
27535
|
signal.throwIfAborted();
|
|
@@ -27305,6 +27571,7 @@ async function runChatV2WithRetry(options2, chatOptions, retryPlan, signal, tran
|
|
|
27305
27571
|
callId,
|
|
27306
27572
|
attemptIndex: attempt,
|
|
27307
27573
|
outcome: signal.aborted ? "aborted" : "provider-failure",
|
|
27574
|
+
result: completedResponse,
|
|
27308
27575
|
error,
|
|
27309
27576
|
startedAt: callStartedAt,
|
|
27310
27577
|
durationMs: Math.max(0, Date.now() - callStartedAt)
|
|
@@ -28953,6 +29220,7 @@ async function resolveLLMModelCandidate(params) {
|
|
|
28953
29220
|
var _a;
|
|
28954
29221
|
const { plan, profile } = params;
|
|
28955
29222
|
const effectiveData = profile ? applyLLMProfileToNodeData(plan.data, profile) : plan.data;
|
|
29223
|
+
const tokenPricing = validateTokenPricing(effectiveData.tokenPricing);
|
|
28956
29224
|
if (hasLLMChatV2ToolResponseFormatConflict(effectiveData)) {
|
|
28957
29225
|
throw new Error(LLM_CHAT_V2_TOOL_RESPONSE_FORMAT_CONFLICT_COPY.paragraphs[0]);
|
|
28958
29226
|
}
|
|
@@ -29004,6 +29272,7 @@ async function resolveLLMModelCandidate(params) {
|
|
|
29004
29272
|
requestBodyOverlay,
|
|
29005
29273
|
runOptions: {
|
|
29006
29274
|
...baseRunOptions,
|
|
29275
|
+
tokenPricing,
|
|
29007
29276
|
provider,
|
|
29008
29277
|
model: resolvedProvider.model,
|
|
29009
29278
|
modelId,
|
|
@@ -30016,7 +30285,7 @@ function resolveLLMProfileNodeValue(params) {
|
|
|
30016
30285
|
return {
|
|
30017
30286
|
version: LLM_PROFILE_VALUE_VERSION,
|
|
30018
30287
|
credential,
|
|
30019
|
-
configuration,
|
|
30288
|
+
configuration: { ...configuration, tokenPricing: validateTokenPricing(configuration.tokenPricing) },
|
|
30020
30289
|
...profileName === "" ? {} : { profileName },
|
|
30021
30290
|
...projectId == null ? {} : {
|
|
30022
30291
|
healthIdentity: createRivetLLMProfileHealthIdentity({
|
|
@@ -34654,11 +34923,67 @@ var ProjectNameNodeImpl = class extends NodeImpl {
|
|
|
34654
34923
|
};
|
|
34655
34924
|
var projectNameNode = nodeDefinition(ProjectNameNodeImpl, "Project Name");
|
|
34656
34925
|
|
|
34926
|
+
// src/model/nodes/AICostNode.ts
|
|
34927
|
+
var import_non_secure43 = require("nanoid/non-secure");
|
|
34928
|
+
var AICostNodeImpl = class extends NodeImpl {
|
|
34929
|
+
static create() {
|
|
34930
|
+
return {
|
|
34931
|
+
type: "aiCost",
|
|
34932
|
+
title: "AI Cost",
|
|
34933
|
+
id: (0, import_non_secure43.nanoid)(),
|
|
34934
|
+
visualData: { x: 0, y: 0, width: 250 },
|
|
34935
|
+
data: {}
|
|
34936
|
+
};
|
|
34937
|
+
}
|
|
34938
|
+
getInputDefinitions() {
|
|
34939
|
+
return [];
|
|
34940
|
+
}
|
|
34941
|
+
getOutputDefinitions() {
|
|
34942
|
+
return [
|
|
34943
|
+
{ id: "llmCost", title: "LLM cost", dataType: "number" },
|
|
34944
|
+
{ id: "decisionAICost", title: "Decision AI cost", dataType: "number" },
|
|
34945
|
+
{ id: "totalCost", title: "Sum cost", dataType: "number" }
|
|
34946
|
+
];
|
|
34947
|
+
}
|
|
34948
|
+
static getUIData() {
|
|
34949
|
+
return {
|
|
34950
|
+
contextMenuTitle: "AI Cost",
|
|
34951
|
+
infoBoxTitle: "AI Cost",
|
|
34952
|
+
group: ["Debug"],
|
|
34953
|
+
infoBoxBody: "Returns observed AI cost estimates in USD for the current project invocation and projects it calls, excluding callers and sibling invocations. Uses the same accounting as Run statistics. Enable Conditional node to control when it runs; use Did Run to wait for multiple branches. In-flight and future calls are not yet included; unknown prices are not free."
|
|
34954
|
+
};
|
|
34955
|
+
}
|
|
34956
|
+
getBody() {
|
|
34957
|
+
return "Observed AI estimates (USD)\nCurrent project subtree";
|
|
34958
|
+
}
|
|
34959
|
+
getRunActivityDescriptor() {
|
|
34960
|
+
return { primaryOutputPortId: "totalCost" };
|
|
34961
|
+
}
|
|
34962
|
+
async process(_inputs, context) {
|
|
34963
|
+
if (!context.getRunCostBreakdown)
|
|
34964
|
+
throw new Error("AI Cost accounting is unavailable in this execution environment.");
|
|
34965
|
+
const costs = context.getRunCostBreakdown();
|
|
34966
|
+
const value = (cost) => cost.knownCostUsd === null ? { type: "control-flow-excluded", value: void 0 } : { type: "number", value: cost.knownCostUsd };
|
|
34967
|
+
const outputs = {
|
|
34968
|
+
["llmCost"]: value(costs.llm),
|
|
34969
|
+
["decisionAICost"]: value(costs.decisionAI),
|
|
34970
|
+
["totalCost"]: value(costs.total)
|
|
34971
|
+
};
|
|
34972
|
+
if (costs.total.status !== "complete")
|
|
34973
|
+
addWarning(
|
|
34974
|
+
outputs,
|
|
34975
|
+
"Some observed AI costs are unknown. Numeric outputs are known subtotals; unavailable amounts are not zero."
|
|
34976
|
+
);
|
|
34977
|
+
return outputs;
|
|
34978
|
+
}
|
|
34979
|
+
};
|
|
34980
|
+
var aiCostNode = nodeDefinition(AICostNodeImpl, "AI Cost");
|
|
34981
|
+
|
|
34657
34982
|
// src/model/nodes/CoalesceNode.ts
|
|
34658
34983
|
var import_ts_dedent32 = require("ts-dedent");
|
|
34659
34984
|
|
|
34660
34985
|
// src/model/nodes/CoalesceNodeBase.ts
|
|
34661
|
-
var
|
|
34986
|
+
var import_non_secure44 = require("nanoid/non-secure");
|
|
34662
34987
|
var INPUT_PORT_ID_PATTERN = /^input(\d+)$/;
|
|
34663
34988
|
var IGNORE_NULL_LABEL = "Ignore 'null'";
|
|
34664
34989
|
var IGNORE_UNDEFINED_LABEL = "Ignore 'undefined'";
|
|
@@ -34666,7 +34991,7 @@ function createCoalesceNode(type, title) {
|
|
|
34666
34991
|
return {
|
|
34667
34992
|
type,
|
|
34668
34993
|
title,
|
|
34669
|
-
id: (0,
|
|
34994
|
+
id: (0, import_non_secure44.nanoid)(),
|
|
34670
34995
|
data: {
|
|
34671
34996
|
ignoreNull: false,
|
|
34672
34997
|
ignoreUndefined: false
|
|
@@ -34822,14 +35147,14 @@ var CoalesceNewNodeImpl = class extends CoalesceNodeBase {
|
|
|
34822
35147
|
var coalesceNewNode = nodeDefinition(CoalesceNewNodeImpl, "Coalesce");
|
|
34823
35148
|
|
|
34824
35149
|
// src/model/nodes/DidRunNode.ts
|
|
34825
|
-
var
|
|
35150
|
+
var import_non_secure45 = require("nanoid/non-secure");
|
|
34826
35151
|
var DID_RUN_EXPLANATION = 'Outputs true when all connected inputs have run. Falsy or empty values still count as having run, so this is useful for adapting "did this branch run at all?" into a boolean If port.';
|
|
34827
35152
|
var DidRunNodeImpl = class extends NodeImpl {
|
|
34828
35153
|
static create() {
|
|
34829
35154
|
return {
|
|
34830
35155
|
type: "didRun",
|
|
34831
35156
|
title: "Did Run",
|
|
34832
|
-
id: (0,
|
|
35157
|
+
id: (0, import_non_secure45.nanoid)(),
|
|
34833
35158
|
data: {},
|
|
34834
35159
|
visualData: {
|
|
34835
35160
|
x: 0,
|
|
@@ -34897,7 +35222,7 @@ var DidRunNodeImpl = class extends NodeImpl {
|
|
|
34897
35222
|
var didRunNode = nodeDefinition(DidRunNodeImpl, "Did Run");
|
|
34898
35223
|
|
|
34899
35224
|
// src/model/nodes/PassthroughNode.ts
|
|
34900
|
-
var
|
|
35225
|
+
var import_non_secure46 = require("nanoid/non-secure");
|
|
34901
35226
|
var import_ts_dedent34 = require("ts-dedent");
|
|
34902
35227
|
var INPUT_PORT_PATTERN2 = /^input(\d+)$/;
|
|
34903
35228
|
var OUTPUT_PORT_PATTERN2 = /^output(\d+)$/;
|
|
@@ -34921,7 +35246,7 @@ var PassthroughNodeImpl = class extends NodeImpl {
|
|
|
34921
35246
|
const chartNode = {
|
|
34922
35247
|
type: "passthrough",
|
|
34923
35248
|
title: "Passthrough",
|
|
34924
|
-
id: (0,
|
|
35249
|
+
id: (0, import_non_secure46.nanoid)(),
|
|
34925
35250
|
data: {},
|
|
34926
35251
|
visualData: {
|
|
34927
35252
|
x: 0,
|
|
@@ -34982,7 +35307,7 @@ var PassthroughNodeImpl = class extends NodeImpl {
|
|
|
34982
35307
|
var passthroughNode = nodeDefinition(PassthroughNodeImpl, "Passthrough");
|
|
34983
35308
|
|
|
34984
35309
|
// src/model/nodes/DataBusNode.ts
|
|
34985
|
-
var
|
|
35310
|
+
var import_non_secure47 = require("nanoid/non-secure");
|
|
34986
35311
|
var import_ts_dedent35 = require("ts-dedent");
|
|
34987
35312
|
function getConnectedChannelIndices(connections, nodeId) {
|
|
34988
35313
|
const channelIndices = /* @__PURE__ */ new Set();
|
|
@@ -35015,7 +35340,7 @@ var DataBusNodeImpl = class extends NodeImpl {
|
|
|
35015
35340
|
static create = () => ({
|
|
35016
35341
|
type: "dataBus",
|
|
35017
35342
|
title: "Data Bus",
|
|
35018
|
-
id: (0,
|
|
35343
|
+
id: (0, import_non_secure47.nanoid)(),
|
|
35019
35344
|
data: {},
|
|
35020
35345
|
visualData: {
|
|
35021
35346
|
x: 0,
|
|
@@ -35059,13 +35384,13 @@ var DataBusNodeImpl = class extends NodeImpl {
|
|
|
35059
35384
|
var dataBusNode = nodeDefinition(DataBusNodeImpl, "Data Bus");
|
|
35060
35385
|
|
|
35061
35386
|
// src/model/nodes/StartBackgroundBranchNode.ts
|
|
35062
|
-
var
|
|
35387
|
+
var import_non_secure48 = require("nanoid/non-secure");
|
|
35063
35388
|
var import_ts_dedent36 = require("ts-dedent");
|
|
35064
35389
|
var StartBackgroundBranchNodeImpl = class extends NodeImpl {
|
|
35065
35390
|
static create = () => ({
|
|
35066
35391
|
type: "startBackgroundBranch",
|
|
35067
35392
|
title: "Start Async Branch",
|
|
35068
|
-
id: (0,
|
|
35393
|
+
id: (0, import_non_secure48.nanoid)(),
|
|
35069
35394
|
data: {},
|
|
35070
35395
|
visualData: {
|
|
35071
35396
|
x: 0,
|
|
@@ -35116,7 +35441,7 @@ var StartBackgroundBranchNodeImpl = class extends NodeImpl {
|
|
|
35116
35441
|
var startBackgroundBranchNode = nodeDefinition(StartBackgroundBranchNodeImpl, "Start Async Branch");
|
|
35117
35442
|
|
|
35118
35443
|
// src/model/nodes/WatchStreamingOutputNode.ts
|
|
35119
|
-
var
|
|
35444
|
+
var import_non_secure49 = require("nanoid/non-secure");
|
|
35120
35445
|
var import_ts_dedent37 = require("ts-dedent");
|
|
35121
35446
|
var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
35122
35447
|
static create() {
|
|
@@ -35129,7 +35454,7 @@ var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
|
35129
35454
|
maxQueuedUpdates: streamingOutputWatchDefaults.maxQueuedUpdates,
|
|
35130
35455
|
queueOverflowBehavior: streamingOutputWatchDefaults.queueOverflowBehavior
|
|
35131
35456
|
},
|
|
35132
|
-
id: (0,
|
|
35457
|
+
id: (0, import_non_secure49.nanoid)(),
|
|
35133
35458
|
title: "Watch streaming",
|
|
35134
35459
|
type: "watchStreamingOutput",
|
|
35135
35460
|
visualData: { x: 0, y: 0, width: 230 }
|
|
@@ -35239,13 +35564,13 @@ var WatchStreamingOutputNodeImpl = class extends NodeImpl {
|
|
|
35239
35564
|
var watchStreamingOutputNode = nodeDefinition(WatchStreamingOutputNodeImpl, "Watch streaming");
|
|
35240
35565
|
|
|
35241
35566
|
// src/model/nodes/StopWatchingStreamingOutputNode.ts
|
|
35242
|
-
var
|
|
35567
|
+
var import_non_secure50 = require("nanoid/non-secure");
|
|
35243
35568
|
var import_ts_dedent38 = require("ts-dedent");
|
|
35244
35569
|
var StopWatchingStreamingOutputNodeImpl = class extends NodeImpl {
|
|
35245
35570
|
static create() {
|
|
35246
35571
|
return {
|
|
35247
35572
|
data: {},
|
|
35248
|
-
id: (0,
|
|
35573
|
+
id: (0, import_non_secure50.nanoid)(),
|
|
35249
35574
|
title: "Stop watching streaming",
|
|
35250
35575
|
type: "stopWatchingStreamingOutput",
|
|
35251
35576
|
visualData: { x: 0, y: 0, width: 230 }
|
|
@@ -35292,11 +35617,11 @@ var stopWatchingStreamingOutputNode = nodeDefinition(
|
|
|
35292
35617
|
);
|
|
35293
35618
|
|
|
35294
35619
|
// src/model/nodes/StreamValueNode.ts
|
|
35295
|
-
var
|
|
35620
|
+
var import_non_secure51 = require("nanoid/non-secure");
|
|
35296
35621
|
var StreamValueNodeImpl = class extends NodeImpl {
|
|
35297
35622
|
static create() {
|
|
35298
35623
|
return {
|
|
35299
|
-
id: (0,
|
|
35624
|
+
id: (0, import_non_secure51.nanoid)(),
|
|
35300
35625
|
type: "streamValue",
|
|
35301
35626
|
title: "Stream value",
|
|
35302
35627
|
data: {},
|
|
@@ -35329,14 +35654,14 @@ var StreamValueNodeImpl = class extends NodeImpl {
|
|
|
35329
35654
|
var streamValueNode = nodeDefinition(StreamValueNodeImpl, "Stream value");
|
|
35330
35655
|
|
|
35331
35656
|
// src/model/nodes/PopNode.ts
|
|
35332
|
-
var
|
|
35657
|
+
var import_non_secure52 = require("nanoid/non-secure");
|
|
35333
35658
|
var import_ts_dedent39 = require("ts-dedent");
|
|
35334
35659
|
var PopNodeImpl = class extends NodeImpl {
|
|
35335
35660
|
static create() {
|
|
35336
35661
|
const baseNode = {
|
|
35337
35662
|
type: "pop",
|
|
35338
35663
|
title: "Pop",
|
|
35339
|
-
id: (0,
|
|
35664
|
+
id: (0, import_non_secure52.nanoid)(),
|
|
35340
35665
|
visualData: {
|
|
35341
35666
|
x: 0,
|
|
35342
35667
|
y: 0,
|
|
@@ -35417,14 +35742,14 @@ var PopNodeImpl = class extends NodeImpl {
|
|
|
35417
35742
|
var popNode = nodeDefinition(PopNodeImpl, "Pop");
|
|
35418
35743
|
|
|
35419
35744
|
// src/model/nodes/SetGlobalNode.ts
|
|
35420
|
-
var
|
|
35745
|
+
var import_non_secure53 = require("nanoid/non-secure");
|
|
35421
35746
|
var import_ts_dedent40 = require("ts-dedent");
|
|
35422
35747
|
var SetGlobalNodeImpl = class extends NodeImpl {
|
|
35423
35748
|
static create() {
|
|
35424
35749
|
const chartNode = {
|
|
35425
35750
|
type: "setGlobal",
|
|
35426
35751
|
title: "Set Global",
|
|
35427
|
-
id: (0,
|
|
35752
|
+
id: (0, import_non_secure53.nanoid)(),
|
|
35428
35753
|
visualData: {
|
|
35429
35754
|
x: 0,
|
|
35430
35755
|
y: 0,
|
|
@@ -35537,14 +35862,14 @@ var SetGlobalNodeImpl = class extends NodeImpl {
|
|
|
35537
35862
|
var setGlobalNode = nodeDefinition(SetGlobalNodeImpl, "Set Global");
|
|
35538
35863
|
|
|
35539
35864
|
// src/model/nodes/GetGlobalNode.ts
|
|
35540
|
-
var
|
|
35865
|
+
var import_non_secure54 = require("nanoid/non-secure");
|
|
35541
35866
|
var import_ts_dedent41 = require("ts-dedent");
|
|
35542
35867
|
var GetGlobalNodeImpl = class extends NodeImpl {
|
|
35543
35868
|
static create() {
|
|
35544
35869
|
const chartNode = {
|
|
35545
35870
|
type: "getGlobal",
|
|
35546
35871
|
title: "Get Global",
|
|
35547
|
-
id: (0,
|
|
35872
|
+
id: (0, import_non_secure54.nanoid)(),
|
|
35548
35873
|
visualData: {
|
|
35549
35874
|
x: 0,
|
|
35550
35875
|
y: 0,
|
|
@@ -35671,7 +35996,7 @@ var GetGlobalNodeImpl = class extends NodeImpl {
|
|
|
35671
35996
|
var getGlobalNode = nodeDefinition(GetGlobalNodeImpl, "Get Global");
|
|
35672
35997
|
|
|
35673
35998
|
// src/model/nodes/SetStoredValueNode.ts
|
|
35674
|
-
var
|
|
35999
|
+
var import_non_secure55 = require("nanoid/non-secure");
|
|
35675
36000
|
var import_ts_dedent42 = require("ts-dedent");
|
|
35676
36001
|
|
|
35677
36002
|
// src/model/nodes/StoredValueNodeUtils.ts
|
|
@@ -35736,7 +36061,7 @@ var SetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
35736
36061
|
return {
|
|
35737
36062
|
type: "setStoredValue",
|
|
35738
36063
|
title: "Set Stored Value",
|
|
35739
|
-
id: (0,
|
|
36064
|
+
id: (0, import_non_secure55.nanoid)(),
|
|
35740
36065
|
visualData: { x: 0, y: 0, width: 220 },
|
|
35741
36066
|
data: { dataType: "string", key: "key", useKeyInput: false }
|
|
35742
36067
|
};
|
|
@@ -35806,14 +36131,14 @@ var SetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
35806
36131
|
var setStoredValueNode = nodeDefinition(SetStoredValueNodeImpl, "Set Stored Value");
|
|
35807
36132
|
|
|
35808
36133
|
// src/model/nodes/GetStoredValueNode.ts
|
|
35809
|
-
var
|
|
36134
|
+
var import_non_secure56 = require("nanoid/non-secure");
|
|
35810
36135
|
var import_ts_dedent43 = require("ts-dedent");
|
|
35811
36136
|
var GetStoredValueNodeImpl = class extends NodeImpl {
|
|
35812
36137
|
static create() {
|
|
35813
36138
|
return {
|
|
35814
36139
|
type: "getStoredValue",
|
|
35815
36140
|
title: "Get Stored Value",
|
|
35816
|
-
id: (0,
|
|
36141
|
+
id: (0, import_non_secure56.nanoid)(),
|
|
35817
36142
|
visualData: { x: 0, y: 0, width: 220 },
|
|
35818
36143
|
data: { dataType: "string", key: "key", onDemand: false, useKeyInput: false, wait: false }
|
|
35819
36144
|
};
|
|
@@ -35906,12 +36231,12 @@ var GetStoredValueNodeImpl = class extends NodeImpl {
|
|
|
35906
36231
|
var getStoredValueNode = nodeDefinition(GetStoredValueNodeImpl, "Get Stored Value");
|
|
35907
36232
|
|
|
35908
36233
|
// src/model/nodes/WaitForEventNode.ts
|
|
35909
|
-
var
|
|
36234
|
+
var import_non_secure57 = require("nanoid/non-secure");
|
|
35910
36235
|
var import_ts_dedent44 = require("ts-dedent");
|
|
35911
36236
|
var WaitForEventNodeImpl = class extends NodeImpl {
|
|
35912
36237
|
static create() {
|
|
35913
36238
|
return {
|
|
35914
|
-
id: (0,
|
|
36239
|
+
id: (0, import_non_secure57.nanoid)(),
|
|
35915
36240
|
type: "waitForEvent",
|
|
35916
36241
|
title: "Wait For Event",
|
|
35917
36242
|
visualData: { x: 0, y: 0, width: 150 },
|
|
@@ -35986,7 +36311,7 @@ var WaitForEventNodeImpl = class extends NodeImpl {
|
|
|
35986
36311
|
var waitForEventNode = nodeDefinition(WaitForEventNodeImpl, "Wait For Event");
|
|
35987
36312
|
|
|
35988
36313
|
// src/model/nodes/ToolNode.ts
|
|
35989
|
-
var
|
|
36314
|
+
var import_non_secure58 = require("nanoid/non-secure");
|
|
35990
36315
|
var import_ts_dedent45 = require("ts-dedent");
|
|
35991
36316
|
var TOOL_NODE_BODY_PREVIEW_MAX_LINES = 14;
|
|
35992
36317
|
function getToolNodeBodyPreview(data) {
|
|
@@ -36005,7 +36330,7 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
36005
36330
|
const chartNode = {
|
|
36006
36331
|
type: "gptFunction",
|
|
36007
36332
|
title: "Tool",
|
|
36008
|
-
id: (0,
|
|
36333
|
+
id: (0, import_non_secure58.nanoid)(),
|
|
36009
36334
|
visualData: {
|
|
36010
36335
|
x: 0,
|
|
36011
36336
|
y: 0,
|
|
@@ -36195,7 +36520,7 @@ var GptFunctionNodeImpl = class extends NodeImpl {
|
|
|
36195
36520
|
var gptFunctionNode = nodeDefinition(GptFunctionNodeImpl, "Tool");
|
|
36196
36521
|
|
|
36197
36522
|
// src/model/nodes/ToYamlNode.ts
|
|
36198
|
-
var
|
|
36523
|
+
var import_non_secure59 = require("nanoid/non-secure");
|
|
36199
36524
|
var import_yaml2 = __toESM(require("yaml"), 1);
|
|
36200
36525
|
var import_ts_dedent46 = require("ts-dedent");
|
|
36201
36526
|
var ToYamlNodeImpl = class extends NodeImpl {
|
|
@@ -36203,7 +36528,7 @@ var ToYamlNodeImpl = class extends NodeImpl {
|
|
|
36203
36528
|
const chartNode = {
|
|
36204
36529
|
type: "toYaml",
|
|
36205
36530
|
title: "To YAML",
|
|
36206
|
-
id: (0,
|
|
36531
|
+
id: (0, import_non_secure59.nanoid)(),
|
|
36207
36532
|
visualData: {
|
|
36208
36533
|
x: 0,
|
|
36209
36534
|
y: 0,
|
|
@@ -36259,7 +36584,7 @@ var ToYamlNodeImpl = class extends NodeImpl {
|
|
|
36259
36584
|
var toYamlNode = nodeDefinition(ToYamlNodeImpl, "To YAML");
|
|
36260
36585
|
|
|
36261
36586
|
// src/model/nodes/GetEmbeddingNode.ts
|
|
36262
|
-
var
|
|
36587
|
+
var import_non_secure60 = require("nanoid/non-secure");
|
|
36263
36588
|
var import_ts_dedent47 = require("ts-dedent");
|
|
36264
36589
|
|
|
36265
36590
|
// src/integrations/integrations.ts
|
|
@@ -36283,7 +36608,7 @@ function getIntegration(type, integrationKey, context) {
|
|
|
36283
36608
|
var GetEmbeddingNodeImpl = class extends NodeImpl {
|
|
36284
36609
|
static create() {
|
|
36285
36610
|
return {
|
|
36286
|
-
id: (0,
|
|
36611
|
+
id: (0, import_non_secure60.nanoid)(),
|
|
36287
36612
|
type: "getEmbedding",
|
|
36288
36613
|
title: "Get Embedding",
|
|
36289
36614
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -36398,12 +36723,12 @@ var GetEmbeddingNodeImpl = class extends NodeImpl {
|
|
|
36398
36723
|
var getEmbeddingNode = nodeDefinition(GetEmbeddingNodeImpl, "Get Embedding");
|
|
36399
36724
|
|
|
36400
36725
|
// src/model/nodes/VectorStoreNode.ts
|
|
36401
|
-
var
|
|
36726
|
+
var import_non_secure61 = require("nanoid/non-secure");
|
|
36402
36727
|
var import_ts_dedent48 = require("ts-dedent");
|
|
36403
36728
|
var VectorStoreNodeImpl = class extends NodeImpl {
|
|
36404
36729
|
static create() {
|
|
36405
36730
|
return {
|
|
36406
|
-
id: (0,
|
|
36731
|
+
id: (0, import_non_secure61.nanoid)(),
|
|
36407
36732
|
type: "vectorStore",
|
|
36408
36733
|
title: "Vector Store",
|
|
36409
36734
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -36521,12 +36846,12 @@ var VectorStoreNodeImpl = class extends NodeImpl {
|
|
|
36521
36846
|
var vectorStoreNode = nodeDefinition(VectorStoreNodeImpl, "Vector Store");
|
|
36522
36847
|
|
|
36523
36848
|
// src/model/nodes/VectorNearestNeighborsNode.ts
|
|
36524
|
-
var
|
|
36849
|
+
var import_non_secure62 = require("nanoid/non-secure");
|
|
36525
36850
|
var import_ts_dedent49 = require("ts-dedent");
|
|
36526
36851
|
var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
36527
36852
|
static create() {
|
|
36528
36853
|
return {
|
|
36529
|
-
id: (0,
|
|
36854
|
+
id: (0, import_non_secure62.nanoid)(),
|
|
36530
36855
|
type: "vectorNearestNeighbors",
|
|
36531
36856
|
title: "Vector KNN",
|
|
36532
36857
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -36647,12 +36972,12 @@ var VectorNearestNeighborsNodeImpl = class extends NodeImpl {
|
|
|
36647
36972
|
var vectorNearestNeighborsNode = nodeDefinition(VectorNearestNeighborsNodeImpl, "Vector KNN");
|
|
36648
36973
|
|
|
36649
36974
|
// src/model/nodes/KnowledgeSourceNode.ts
|
|
36650
|
-
var
|
|
36975
|
+
var import_non_secure63 = require("nanoid/non-secure");
|
|
36651
36976
|
var import_ts_dedent50 = require("ts-dedent");
|
|
36652
36977
|
var KnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
36653
36978
|
static create() {
|
|
36654
36979
|
return {
|
|
36655
|
-
id: (0,
|
|
36980
|
+
id: (0, import_non_secure63.nanoid)(),
|
|
36656
36981
|
type: "knowledgeSource",
|
|
36657
36982
|
title: "Knowledge Source",
|
|
36658
36983
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -36744,12 +37069,12 @@ var KnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
|
36744
37069
|
var knowledgeSourceNode = nodeDefinition(KnowledgeSourceNodeImpl, "Knowledge Source");
|
|
36745
37070
|
|
|
36746
37071
|
// src/model/nodes/KnowledgeDocumentNode.ts
|
|
36747
|
-
var
|
|
37072
|
+
var import_non_secure64 = require("nanoid/non-secure");
|
|
36748
37073
|
var import_ts_dedent51 = require("ts-dedent");
|
|
36749
37074
|
var KnowledgeDocumentNodeImpl = class extends NodeImpl {
|
|
36750
37075
|
static create() {
|
|
36751
37076
|
return {
|
|
36752
|
-
id: (0,
|
|
37077
|
+
id: (0, import_non_secure64.nanoid)(),
|
|
36753
37078
|
type: "knowledgeDocument",
|
|
36754
37079
|
title: "Knowledge Document",
|
|
36755
37080
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -36826,12 +37151,12 @@ var KnowledgeDocumentNodeImpl = class extends NodeImpl {
|
|
|
36826
37151
|
var knowledgeDocumentNode = nodeDefinition(KnowledgeDocumentNodeImpl, "Knowledge Document");
|
|
36827
37152
|
|
|
36828
37153
|
// src/model/nodes/SyncKnowledgeSourceNode.ts
|
|
36829
|
-
var
|
|
37154
|
+
var import_non_secure65 = require("nanoid/non-secure");
|
|
36830
37155
|
var import_ts_dedent52 = require("ts-dedent");
|
|
36831
37156
|
var SyncKnowledgeSourceNodeImpl = class extends NodeImpl {
|
|
36832
37157
|
static create() {
|
|
36833
37158
|
return {
|
|
36834
|
-
id: (0,
|
|
37159
|
+
id: (0, import_non_secure65.nanoid)(),
|
|
36835
37160
|
type: "syncKnowledgeSource",
|
|
36836
37161
|
title: "Sync Knowledge Source",
|
|
36837
37162
|
visualData: { x: 0, y: 0, width: 290 },
|
|
@@ -36971,11 +37296,11 @@ function normalizeDocumentsInput(value) {
|
|
|
36971
37296
|
var syncKnowledgeSourceNode = nodeDefinition(SyncKnowledgeSourceNodeImpl, "Sync Knowledge Source");
|
|
36972
37297
|
|
|
36973
37298
|
// src/model/nodes/GetKnowledgeSourceStatusNode.ts
|
|
36974
|
-
var
|
|
37299
|
+
var import_non_secure66 = require("nanoid/non-secure");
|
|
36975
37300
|
var GetKnowledgeSourceStatusNodeImpl = class extends NodeImpl {
|
|
36976
37301
|
static create() {
|
|
36977
37302
|
return {
|
|
36978
|
-
id: (0,
|
|
37303
|
+
id: (0, import_non_secure66.nanoid)(),
|
|
36979
37304
|
type: "getKnowledgeSourceStatus",
|
|
36980
37305
|
title: "Get Knowledge Source Status",
|
|
36981
37306
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -37054,12 +37379,12 @@ var getKnowledgeSourceStatusNode = nodeDefinition(
|
|
|
37054
37379
|
);
|
|
37055
37380
|
|
|
37056
37381
|
// src/model/nodes/SearchKnowledgeNode.ts
|
|
37057
|
-
var
|
|
37382
|
+
var import_non_secure67 = require("nanoid/non-secure");
|
|
37058
37383
|
var import_ts_dedent53 = require("ts-dedent");
|
|
37059
37384
|
var SearchKnowledgeNodeImpl = class extends NodeImpl {
|
|
37060
37385
|
static create() {
|
|
37061
37386
|
return {
|
|
37062
|
-
id: (0,
|
|
37387
|
+
id: (0, import_non_secure67.nanoid)(),
|
|
37063
37388
|
type: "searchKnowledge",
|
|
37064
37389
|
title: "Search Knowledge",
|
|
37065
37390
|
visualData: { x: 0, y: 0, width: 270 },
|
|
@@ -37181,12 +37506,12 @@ var SearchKnowledgeNodeImpl = class extends NodeImpl {
|
|
|
37181
37506
|
var searchKnowledgeNode = nodeDefinition(SearchKnowledgeNodeImpl, "Search Knowledge");
|
|
37182
37507
|
|
|
37183
37508
|
// src/model/nodes/BuildKnowledgeContextNode.ts
|
|
37184
|
-
var
|
|
37509
|
+
var import_non_secure68 = require("nanoid/non-secure");
|
|
37185
37510
|
var import_ts_dedent54 = require("ts-dedent");
|
|
37186
37511
|
var BuildKnowledgeContextNodeImpl = class extends NodeImpl {
|
|
37187
37512
|
static create() {
|
|
37188
37513
|
return {
|
|
37189
|
-
id: (0,
|
|
37514
|
+
id: (0, import_non_secure68.nanoid)(),
|
|
37190
37515
|
type: "buildKnowledgeContext",
|
|
37191
37516
|
title: "Build Knowledge Context",
|
|
37192
37517
|
visualData: { x: 0, y: 0, width: 280 },
|
|
@@ -37322,7 +37647,7 @@ function buildMetadataLine(evidence, fields) {
|
|
|
37322
37647
|
var buildKnowledgeContextNode = nodeDefinition(BuildKnowledgeContextNodeImpl, "Build Knowledge Context");
|
|
37323
37648
|
|
|
37324
37649
|
// src/model/nodes/HashNode.ts
|
|
37325
|
-
var
|
|
37650
|
+
var import_non_secure69 = require("nanoid/non-secure");
|
|
37326
37651
|
var crypto = __toESM(require("crypto-js"), 1);
|
|
37327
37652
|
var import_ts_pattern3 = require("ts-pattern");
|
|
37328
37653
|
var import_ts_dedent55 = require("ts-dedent");
|
|
@@ -37332,7 +37657,7 @@ var HashNodeImpl = class extends NodeImpl {
|
|
|
37332
37657
|
const chartNode = {
|
|
37333
37658
|
type: "hash",
|
|
37334
37659
|
title: "Hash",
|
|
37335
|
-
id: (0,
|
|
37660
|
+
id: (0, import_non_secure69.nanoid)(),
|
|
37336
37661
|
visualData: {
|
|
37337
37662
|
x: 0,
|
|
37338
37663
|
y: 0,
|
|
@@ -37411,14 +37736,14 @@ var algorithmDisplayName = {
|
|
|
37411
37736
|
var hashNode = nodeDefinition(HashNodeImpl, "Hash");
|
|
37412
37737
|
|
|
37413
37738
|
// src/model/nodes/AbortGraphNode.ts
|
|
37414
|
-
var
|
|
37739
|
+
var import_non_secure70 = require("nanoid/non-secure");
|
|
37415
37740
|
var import_ts_dedent56 = require("ts-dedent");
|
|
37416
37741
|
var AbortGraphNodeImpl = class extends NodeImpl {
|
|
37417
37742
|
static create() {
|
|
37418
37743
|
const chartNode = {
|
|
37419
37744
|
type: "abortGraph",
|
|
37420
37745
|
title: "Abort Graph",
|
|
37421
|
-
id: (0,
|
|
37746
|
+
id: (0, import_non_secure70.nanoid)(),
|
|
37422
37747
|
visualData: {
|
|
37423
37748
|
x: 0,
|
|
37424
37749
|
y: 0,
|
|
@@ -37500,14 +37825,14 @@ var AbortGraphNodeImpl = class extends NodeImpl {
|
|
|
37500
37825
|
var abortGraphNode = nodeDefinition(AbortGraphNodeImpl, "Abort Graph");
|
|
37501
37826
|
|
|
37502
37827
|
// src/model/nodes/RaceInputsNode.ts
|
|
37503
|
-
var
|
|
37828
|
+
var import_non_secure71 = require("nanoid/non-secure");
|
|
37504
37829
|
var import_ts_dedent57 = require("ts-dedent");
|
|
37505
37830
|
var RaceInputsNodeImpl = class extends NodeImpl {
|
|
37506
37831
|
static create() {
|
|
37507
37832
|
const chartNode = {
|
|
37508
37833
|
type: "raceInputs",
|
|
37509
37834
|
title: "Race Inputs",
|
|
37510
|
-
id: (0,
|
|
37835
|
+
id: (0, import_non_secure71.nanoid)(),
|
|
37511
37836
|
visualData: {
|
|
37512
37837
|
x: 0,
|
|
37513
37838
|
y: 0,
|
|
@@ -37571,14 +37896,14 @@ var RaceInputsNodeImpl = class extends NodeImpl {
|
|
|
37571
37896
|
var raceInputsNode = nodeDefinition(RaceInputsNodeImpl, "Race Inputs");
|
|
37572
37897
|
|
|
37573
37898
|
// src/model/nodes/ToJsonNode.ts
|
|
37574
|
-
var
|
|
37899
|
+
var import_non_secure72 = require("nanoid/non-secure");
|
|
37575
37900
|
var import_ts_dedent58 = require("ts-dedent");
|
|
37576
37901
|
var ToJsonNodeImpl = class extends NodeImpl {
|
|
37577
37902
|
static create() {
|
|
37578
37903
|
const chartNode = {
|
|
37579
37904
|
type: "toJson",
|
|
37580
37905
|
title: "To JSON",
|
|
37581
|
-
id: (0,
|
|
37906
|
+
id: (0, import_non_secure72.nanoid)(),
|
|
37582
37907
|
visualData: {
|
|
37583
37908
|
x: 0,
|
|
37584
37909
|
y: 0,
|
|
@@ -37645,7 +37970,7 @@ var ToJsonNodeImpl = class extends NodeImpl {
|
|
|
37645
37970
|
var toJsonNode = nodeDefinition(ToJsonNodeImpl, "To JSON");
|
|
37646
37971
|
|
|
37647
37972
|
// src/model/nodes/ToBase64Node.ts
|
|
37648
|
-
var
|
|
37973
|
+
var import_non_secure73 = require("nanoid/non-secure");
|
|
37649
37974
|
async function getBytesToEncode(input) {
|
|
37650
37975
|
if (!input) {
|
|
37651
37976
|
throw new Error("No data to encode as base64");
|
|
@@ -37704,7 +38029,7 @@ async function getBytesToEncode(input) {
|
|
|
37704
38029
|
var ToBase64NodeImpl = class extends NodeImpl {
|
|
37705
38030
|
static create() {
|
|
37706
38031
|
return {
|
|
37707
|
-
id: (0,
|
|
38032
|
+
id: (0, import_non_secure73.nanoid)(),
|
|
37708
38033
|
type: "toBase64",
|
|
37709
38034
|
title: "To Base64",
|
|
37710
38035
|
visualData: { x: 0, y: 0, width: 175 },
|
|
@@ -37747,14 +38072,14 @@ var ToBase64NodeImpl = class extends NodeImpl {
|
|
|
37747
38072
|
var toBase64Node = nodeDefinition(ToBase64NodeImpl, "To Base64");
|
|
37748
38073
|
|
|
37749
38074
|
// src/model/nodes/JoinNode.ts
|
|
37750
|
-
var
|
|
38075
|
+
var import_non_secure74 = require("nanoid/non-secure");
|
|
37751
38076
|
var import_ts_dedent59 = require("ts-dedent");
|
|
37752
38077
|
var JoinNodeImpl = class extends NodeImpl {
|
|
37753
38078
|
static create = () => {
|
|
37754
38079
|
const chartNode = {
|
|
37755
38080
|
type: "join",
|
|
37756
38081
|
title: "Join",
|
|
37757
|
-
id: (0,
|
|
38082
|
+
id: (0, import_non_secure74.nanoid)(),
|
|
37758
38083
|
data: {
|
|
37759
38084
|
flatten: true,
|
|
37760
38085
|
joinString: "\n"
|
|
@@ -37853,7 +38178,7 @@ var JoinNodeImpl = class extends NodeImpl {
|
|
|
37853
38178
|
var joinNode = nodeDefinition(JoinNodeImpl, "Coalesce");
|
|
37854
38179
|
|
|
37855
38180
|
// src/model/nodes/FilterNode.ts
|
|
37856
|
-
var
|
|
38181
|
+
var import_non_secure75 = require("nanoid/non-secure");
|
|
37857
38182
|
var import_lodash_es12 = require("lodash");
|
|
37858
38183
|
var import_ts_dedent60 = require("ts-dedent");
|
|
37859
38184
|
var FilterNodeImpl = class extends NodeImpl {
|
|
@@ -37861,7 +38186,7 @@ var FilterNodeImpl = class extends NodeImpl {
|
|
|
37861
38186
|
const chartNode = {
|
|
37862
38187
|
type: "filter",
|
|
37863
38188
|
title: "Filter",
|
|
37864
|
-
id: (0,
|
|
38189
|
+
id: (0, import_non_secure75.nanoid)(),
|
|
37865
38190
|
visualData: {
|
|
37866
38191
|
x: 0,
|
|
37867
38192
|
y: 0,
|
|
@@ -37923,7 +38248,7 @@ var FilterNodeImpl = class extends NodeImpl {
|
|
|
37923
38248
|
var filterNode = nodeDefinition(FilterNodeImpl, "Filter");
|
|
37924
38249
|
|
|
37925
38250
|
// src/model/nodes/JSFilterNode.ts
|
|
37926
|
-
var
|
|
38251
|
+
var import_non_secure76 = require("nanoid/non-secure");
|
|
37927
38252
|
var import_ts_dedent62 = require("ts-dedent");
|
|
37928
38253
|
|
|
37929
38254
|
// src/model/nodes/jsListCallbackHelpers.ts
|
|
@@ -38155,7 +38480,7 @@ var JSFilterNodeImpl = class extends NodeImpl {
|
|
|
38155
38480
|
const chartNode = {
|
|
38156
38481
|
type: "jsFilter",
|
|
38157
38482
|
title: "JS Filter",
|
|
38158
|
-
id: (0,
|
|
38483
|
+
id: (0, import_non_secure76.nanoid)(),
|
|
38159
38484
|
visualData: {
|
|
38160
38485
|
x: 0,
|
|
38161
38486
|
y: 0,
|
|
@@ -38215,7 +38540,7 @@ var JSFilterNodeImpl = class extends NodeImpl {
|
|
|
38215
38540
|
var jsFilterNode = nodeDefinition(JSFilterNodeImpl, "JS Filter");
|
|
38216
38541
|
|
|
38217
38542
|
// src/model/nodes/JSMapNode.ts
|
|
38218
|
-
var
|
|
38543
|
+
var import_non_secure77 = require("nanoid/non-secure");
|
|
38219
38544
|
var import_ts_dedent63 = require("ts-dedent");
|
|
38220
38545
|
var DEFAULT_CALLBACK_BODY2 = "return item;";
|
|
38221
38546
|
var JSMapNodeImpl = class extends NodeImpl {
|
|
@@ -38223,7 +38548,7 @@ var JSMapNodeImpl = class extends NodeImpl {
|
|
|
38223
38548
|
const chartNode = {
|
|
38224
38549
|
type: "jsMap",
|
|
38225
38550
|
title: "JS Map",
|
|
38226
|
-
id: (0,
|
|
38551
|
+
id: (0, import_non_secure77.nanoid)(),
|
|
38227
38552
|
visualData: {
|
|
38228
38553
|
x: 0,
|
|
38229
38554
|
y: 0,
|
|
@@ -38283,7 +38608,7 @@ var JSMapNodeImpl = class extends NodeImpl {
|
|
|
38283
38608
|
var jsMapNode = nodeDefinition(JSMapNodeImpl, "JS Map");
|
|
38284
38609
|
|
|
38285
38610
|
// src/model/nodes/ObjectNode.ts
|
|
38286
|
-
var
|
|
38611
|
+
var import_non_secure78 = require("nanoid/non-secure");
|
|
38287
38612
|
var import_ts_dedent64 = require("ts-dedent");
|
|
38288
38613
|
var DEFAULT_JSON_TEMPLATE = `{
|
|
38289
38614
|
"key": "{{input}}"
|
|
@@ -38372,7 +38697,7 @@ var ObjectNodeImpl = class extends NodeImpl {
|
|
|
38372
38697
|
const chartNode = {
|
|
38373
38698
|
type: "object",
|
|
38374
38699
|
title: "Object",
|
|
38375
|
-
id: (0,
|
|
38700
|
+
id: (0, import_non_secure78.nanoid)(),
|
|
38376
38701
|
visualData: {
|
|
38377
38702
|
x: 0,
|
|
38378
38703
|
y: 0,
|
|
@@ -38473,14 +38798,14 @@ var ObjectNodeImpl = class extends NodeImpl {
|
|
|
38473
38798
|
var objectNode = nodeDefinition(ObjectNodeImpl, "Object");
|
|
38474
38799
|
|
|
38475
38800
|
// src/model/nodes/BooleanNode.ts
|
|
38476
|
-
var
|
|
38801
|
+
var import_non_secure79 = require("nanoid/non-secure");
|
|
38477
38802
|
var import_ts_dedent65 = require("ts-dedent");
|
|
38478
38803
|
var BooleanNodeImpl = class extends NodeImpl {
|
|
38479
38804
|
static create() {
|
|
38480
38805
|
const chartNode = {
|
|
38481
38806
|
type: "boolean",
|
|
38482
38807
|
title: "Bool",
|
|
38483
|
-
id: (0,
|
|
38808
|
+
id: (0, import_non_secure79.nanoid)(),
|
|
38484
38809
|
visualData: {
|
|
38485
38810
|
x: 0,
|
|
38486
38811
|
y: 0,
|
|
@@ -38539,7 +38864,7 @@ var BooleanNodeImpl = class extends NodeImpl {
|
|
|
38539
38864
|
var booleanNode = nodeDefinition(BooleanNodeImpl, "Boolean");
|
|
38540
38865
|
|
|
38541
38866
|
// src/model/nodes/CompareNode.ts
|
|
38542
|
-
var
|
|
38867
|
+
var import_non_secure80 = require("nanoid/non-secure");
|
|
38543
38868
|
var import_lodash_es13 = require("lodash");
|
|
38544
38869
|
var import_ts_pattern4 = require("ts-pattern");
|
|
38545
38870
|
var import_ts_dedent66 = require("ts-dedent");
|
|
@@ -38562,7 +38887,7 @@ var CompareNodeImpl = class extends NodeImpl {
|
|
|
38562
38887
|
const chartNode = {
|
|
38563
38888
|
type: "compare",
|
|
38564
38889
|
title: "Compare",
|
|
38565
|
-
id: (0,
|
|
38890
|
+
id: (0, import_non_secure80.nanoid)(),
|
|
38566
38891
|
visualData: {
|
|
38567
38892
|
x: 0,
|
|
38568
38893
|
y: 0,
|
|
@@ -38662,7 +38987,7 @@ var CompareNodeImpl = class extends NodeImpl {
|
|
|
38662
38987
|
var compareNode = nodeDefinition(CompareNodeImpl, "Compare");
|
|
38663
38988
|
|
|
38664
38989
|
// src/model/nodes/EvaluateNode.ts
|
|
38665
|
-
var
|
|
38990
|
+
var import_non_secure81 = require("nanoid/non-secure");
|
|
38666
38991
|
var import_ts_pattern5 = require("ts-pattern");
|
|
38667
38992
|
var import_ts_dedent67 = require("ts-dedent");
|
|
38668
38993
|
var unaryOperation = ["abs", "negate"];
|
|
@@ -38672,7 +38997,7 @@ var EvaluateNodeImpl = class extends NodeImpl {
|
|
|
38672
38997
|
const chartNode = {
|
|
38673
38998
|
type: "evaluate",
|
|
38674
38999
|
title: "Evaluate",
|
|
38675
|
-
id: (0,
|
|
39000
|
+
id: (0, import_non_secure81.nanoid)(),
|
|
38676
39001
|
visualData: {
|
|
38677
39002
|
x: 0,
|
|
38678
39003
|
y: 0,
|
|
@@ -38786,14 +39111,14 @@ var EvaluateNodeImpl = class extends NodeImpl {
|
|
|
38786
39111
|
var evaluateNode = nodeDefinition(EvaluateNodeImpl, "Evaluate");
|
|
38787
39112
|
|
|
38788
39113
|
// src/model/nodes/NumberNode.ts
|
|
38789
|
-
var
|
|
39114
|
+
var import_non_secure82 = require("nanoid/non-secure");
|
|
38790
39115
|
var import_ts_dedent68 = require("ts-dedent");
|
|
38791
39116
|
var NumberNodeImpl = class extends NodeImpl {
|
|
38792
39117
|
static create() {
|
|
38793
39118
|
const chartNode = {
|
|
38794
39119
|
type: "number",
|
|
38795
39120
|
title: "Number",
|
|
38796
|
-
id: (0,
|
|
39121
|
+
id: (0, import_non_secure82.nanoid)(),
|
|
38797
39122
|
visualData: {
|
|
38798
39123
|
x: 0,
|
|
38799
39124
|
y: 0,
|
|
@@ -38864,7 +39189,7 @@ var NumberNodeImpl = class extends NodeImpl {
|
|
|
38864
39189
|
var numberNode = nodeDefinition(NumberNodeImpl, "Number");
|
|
38865
39190
|
|
|
38866
39191
|
// src/model/nodes/RandomNumberNode.ts
|
|
38867
|
-
var
|
|
39192
|
+
var import_non_secure83 = require("nanoid/non-secure");
|
|
38868
39193
|
var import_ts_dedent69 = require("ts-dedent");
|
|
38869
39194
|
var randomNumberTypeOptions = [
|
|
38870
39195
|
{ value: false, label: "Float" },
|
|
@@ -38875,7 +39200,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
38875
39200
|
const chartNode = {
|
|
38876
39201
|
type: "randomNumber",
|
|
38877
39202
|
title: "Random number",
|
|
38878
|
-
id: (0,
|
|
39203
|
+
id: (0, import_non_secure83.nanoid)(),
|
|
38879
39204
|
visualData: {
|
|
38880
39205
|
x: 0,
|
|
38881
39206
|
y: 0,
|
|
@@ -38973,7 +39298,7 @@ var RandomNumberNodeImpl = class extends NodeImpl {
|
|
|
38973
39298
|
var randomNumberNode = nodeDefinition(RandomNumberNodeImpl, "Random number");
|
|
38974
39299
|
|
|
38975
39300
|
// src/model/nodes/ShuffleNode.ts
|
|
38976
|
-
var
|
|
39301
|
+
var import_non_secure84 = require("nanoid/non-secure");
|
|
38977
39302
|
var import_lodash_es14 = require("lodash");
|
|
38978
39303
|
var import_ts_dedent70 = require("ts-dedent");
|
|
38979
39304
|
var ShuffleNodeImpl = class extends NodeImpl {
|
|
@@ -38981,7 +39306,7 @@ var ShuffleNodeImpl = class extends NodeImpl {
|
|
|
38981
39306
|
const chartNode = {
|
|
38982
39307
|
type: "shuffle",
|
|
38983
39308
|
title: "Shuffle",
|
|
38984
|
-
id: (0,
|
|
39309
|
+
id: (0, import_non_secure84.nanoid)(),
|
|
38985
39310
|
visualData: {
|
|
38986
39311
|
x: 0,
|
|
38987
39312
|
y: 0,
|
|
@@ -39035,14 +39360,14 @@ var ShuffleNodeImpl = class extends NodeImpl {
|
|
|
39035
39360
|
var shuffleNode = nodeDefinition(ShuffleNodeImpl, "Shuffle");
|
|
39036
39361
|
|
|
39037
39362
|
// src/model/nodes/CommentNode.ts
|
|
39038
|
-
var
|
|
39363
|
+
var import_non_secure85 = require("nanoid/non-secure");
|
|
39039
39364
|
var import_ts_dedent71 = require("ts-dedent");
|
|
39040
39365
|
var CommentNodeImpl = class extends NodeImpl {
|
|
39041
39366
|
static create() {
|
|
39042
39367
|
const chartNode = {
|
|
39043
39368
|
type: "comment",
|
|
39044
39369
|
title: "Comment",
|
|
39045
|
-
id: (0,
|
|
39370
|
+
id: (0, import_non_secure85.nanoid)(),
|
|
39046
39371
|
visualData: {
|
|
39047
39372
|
x: 0,
|
|
39048
39373
|
y: 0,
|
|
@@ -39103,11 +39428,11 @@ var CommentNodeImpl = class extends NodeImpl {
|
|
|
39103
39428
|
var commentNode = nodeDefinition(CommentNodeImpl, "Comment");
|
|
39104
39429
|
|
|
39105
39430
|
// src/model/nodes/ImageNode.ts
|
|
39106
|
-
var
|
|
39431
|
+
var import_non_secure86 = require("nanoid/non-secure");
|
|
39107
39432
|
var ImageNodeImpl = class extends NodeImpl {
|
|
39108
39433
|
static create() {
|
|
39109
39434
|
return {
|
|
39110
|
-
id: (0,
|
|
39435
|
+
id: (0, import_non_secure86.nanoid)(),
|
|
39111
39436
|
type: "image",
|
|
39112
39437
|
title: "Image",
|
|
39113
39438
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -39241,11 +39566,11 @@ var ImageNodeImpl = class extends NodeImpl {
|
|
|
39241
39566
|
var imageNode = nodeDefinition(ImageNodeImpl, "Image");
|
|
39242
39567
|
|
|
39243
39568
|
// src/model/nodes/AudioNode.ts
|
|
39244
|
-
var
|
|
39569
|
+
var import_non_secure87 = require("nanoid/non-secure");
|
|
39245
39570
|
var AudioNodeImpl = class extends NodeImpl {
|
|
39246
39571
|
static create() {
|
|
39247
39572
|
return {
|
|
39248
|
-
id: (0,
|
|
39573
|
+
id: (0, import_non_secure87.nanoid)(),
|
|
39249
39574
|
type: "audio",
|
|
39250
39575
|
title: "Audio",
|
|
39251
39576
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -39338,7 +39663,7 @@ var AudioNodeImpl = class extends NodeImpl {
|
|
|
39338
39663
|
var audioNode = nodeDefinition(AudioNodeImpl, "Audio");
|
|
39339
39664
|
|
|
39340
39665
|
// src/model/nodes/HttpCallNode.ts
|
|
39341
|
-
var
|
|
39666
|
+
var import_non_secure88 = require("nanoid/non-secure");
|
|
39342
39667
|
var REQUEST_FAILED_OUTPUT_ID = "requestFailed";
|
|
39343
39668
|
var REQUEST_ERROR_OUTPUT_ID = "requestError";
|
|
39344
39669
|
var STATUS_CODE_OUTPUT_ID = "statusCode";
|
|
@@ -39546,7 +39871,7 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
39546
39871
|
const chartNode = {
|
|
39547
39872
|
type: "httpCall",
|
|
39548
39873
|
title: "Http Call",
|
|
39549
|
-
id: (0,
|
|
39874
|
+
id: (0, import_non_secure88.nanoid)(),
|
|
39550
39875
|
visualData: {
|
|
39551
39876
|
x: 0,
|
|
39552
39877
|
y: 0,
|
|
@@ -39892,14 +40217,14 @@ var HttpCallNodeImpl = class extends NodeImpl {
|
|
|
39892
40217
|
var httpCallNode = nodeDefinition(HttpCallNodeImpl, "Http Call");
|
|
39893
40218
|
|
|
39894
40219
|
// src/model/nodes/DelayNode.ts
|
|
39895
|
-
var
|
|
40220
|
+
var import_non_secure89 = require("nanoid/non-secure");
|
|
39896
40221
|
var import_ts_dedent72 = require("ts-dedent");
|
|
39897
40222
|
var DelayNodeImpl = class extends NodeImpl {
|
|
39898
40223
|
static create() {
|
|
39899
40224
|
const chartNode = {
|
|
39900
40225
|
type: "delay",
|
|
39901
40226
|
title: "Delay",
|
|
39902
|
-
id: (0,
|
|
40227
|
+
id: (0, import_non_secure89.nanoid)(),
|
|
39903
40228
|
visualData: {
|
|
39904
40229
|
x: 0,
|
|
39905
40230
|
y: 0,
|
|
@@ -39981,12 +40306,12 @@ var DelayNodeImpl = class extends NodeImpl {
|
|
|
39981
40306
|
var delayNode = nodeDefinition(DelayNodeImpl, "Delay");
|
|
39982
40307
|
|
|
39983
40308
|
// src/model/nodes/AppendToDatasetNode.ts
|
|
39984
|
-
var
|
|
40309
|
+
var import_non_secure90 = require("nanoid/non-secure");
|
|
39985
40310
|
var import_ts_dedent73 = require("ts-dedent");
|
|
39986
40311
|
var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
39987
40312
|
static create() {
|
|
39988
40313
|
return {
|
|
39989
|
-
id: (0,
|
|
40314
|
+
id: (0, import_non_secure90.nanoid)(),
|
|
39990
40315
|
type: "appendToDataset",
|
|
39991
40316
|
title: "Append to Dataset",
|
|
39992
40317
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -40592,14 +40917,14 @@ var GetDatasetRowNodeImpl = class extends NodeImpl {
|
|
|
40592
40917
|
var getDatasetRowNode = nodeDefinition(GetDatasetRowNodeImpl, "Get Dataset Row");
|
|
40593
40918
|
|
|
40594
40919
|
// src/model/nodes/SliceNode.ts
|
|
40595
|
-
var
|
|
40920
|
+
var import_non_secure91 = require("nanoid/non-secure");
|
|
40596
40921
|
var import_ts_dedent74 = require("ts-dedent");
|
|
40597
40922
|
var SliceNodeImpl = class extends NodeImpl {
|
|
40598
40923
|
static create() {
|
|
40599
40924
|
const chartNode = {
|
|
40600
40925
|
type: "slice",
|
|
40601
40926
|
title: "Slice",
|
|
40602
|
-
id: (0,
|
|
40927
|
+
id: (0, import_non_secure91.nanoid)(),
|
|
40603
40928
|
visualData: {
|
|
40604
40929
|
x: 0,
|
|
40605
40930
|
y: 0,
|
|
@@ -40685,14 +41010,14 @@ var SliceNodeImpl = class extends NodeImpl {
|
|
|
40685
41010
|
var sliceNode = nodeDefinition(SliceNodeImpl, "Slice");
|
|
40686
41011
|
|
|
40687
41012
|
// src/model/nodes/ExtractMarkdownCodeBlocksNode.ts
|
|
40688
|
-
var
|
|
41013
|
+
var import_non_secure92 = require("nanoid/non-secure");
|
|
40689
41014
|
var import_ts_dedent75 = require("ts-dedent");
|
|
40690
41015
|
var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
40691
41016
|
static create() {
|
|
40692
41017
|
const chartNode = {
|
|
40693
41018
|
type: "extractMarkdownCodeBlocks",
|
|
40694
41019
|
title: "Extract Markdown Code Blocks",
|
|
40695
|
-
id: (0,
|
|
41020
|
+
id: (0, import_non_secure92.nanoid)(),
|
|
40696
41021
|
visualData: {
|
|
40697
41022
|
x: 0,
|
|
40698
41023
|
y: 0,
|
|
@@ -40784,7 +41109,7 @@ var extractMarkdownCodeBlocksNode = nodeDefinition(
|
|
|
40784
41109
|
);
|
|
40785
41110
|
|
|
40786
41111
|
// src/model/nodes/AssembleMessageNode.ts
|
|
40787
|
-
var
|
|
41112
|
+
var import_non_secure93 = require("nanoid/non-secure");
|
|
40788
41113
|
var import_lodash_es15 = require("lodash");
|
|
40789
41114
|
var import_ts_pattern6 = require("ts-pattern");
|
|
40790
41115
|
var messageTypeToTitle = {
|
|
@@ -40799,7 +41124,7 @@ var AssembleMessageNodeImpl = class extends NodeImpl {
|
|
|
40799
41124
|
const chartNode = {
|
|
40800
41125
|
type: "assembleMessage",
|
|
40801
41126
|
title: "Assemble Message",
|
|
40802
|
-
id: (0,
|
|
41127
|
+
id: (0, import_non_secure93.nanoid)(),
|
|
40803
41128
|
visualData: {
|
|
40804
41129
|
x: 0,
|
|
40805
41130
|
y: 0,
|
|
@@ -40989,13 +41314,13 @@ var AssembleMessageNodeImpl = class extends NodeImpl {
|
|
|
40989
41314
|
var assembleMessageNode = nodeDefinition(AssembleMessageNodeImpl, "Assemble Prompt");
|
|
40990
41315
|
|
|
40991
41316
|
// src/model/nodes/URLReferenceNode.ts
|
|
40992
|
-
var
|
|
41317
|
+
var import_non_secure94 = require("nanoid/non-secure");
|
|
40993
41318
|
var UrlReferenceNodeImpl = class extends NodeImpl {
|
|
40994
41319
|
static create() {
|
|
40995
41320
|
const chartNode = {
|
|
40996
41321
|
type: "urlReference",
|
|
40997
41322
|
title: "URL Reference",
|
|
40998
|
-
id: (0,
|
|
41323
|
+
id: (0, import_non_secure94.nanoid)(),
|
|
40999
41324
|
visualData: {
|
|
41000
41325
|
x: 0,
|
|
41001
41326
|
y: 0,
|
|
@@ -41064,14 +41389,14 @@ var UrlReferenceNodeImpl = class extends NodeImpl {
|
|
|
41064
41389
|
var urlReferenceNode = nodeDefinition(UrlReferenceNodeImpl, "URL Reference");
|
|
41065
41390
|
|
|
41066
41391
|
// src/model/nodes/DestructureNode.ts
|
|
41067
|
-
var
|
|
41392
|
+
var import_non_secure95 = require("nanoid/non-secure");
|
|
41068
41393
|
var import_ts_dedent76 = require("ts-dedent");
|
|
41069
41394
|
var DestructureNodeImpl = class extends NodeImpl {
|
|
41070
41395
|
static create() {
|
|
41071
41396
|
const chartNode = {
|
|
41072
41397
|
type: "destructure",
|
|
41073
41398
|
title: "Destructure",
|
|
41074
|
-
id: (0,
|
|
41399
|
+
id: (0, import_non_secure95.nanoid)(),
|
|
41075
41400
|
visualData: {
|
|
41076
41401
|
x: 0,
|
|
41077
41402
|
y: 0,
|
|
@@ -41079,7 +41404,7 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
41079
41404
|
},
|
|
41080
41405
|
data: {
|
|
41081
41406
|
paths: ["$.value"],
|
|
41082
|
-
pathPortIds: [(0,
|
|
41407
|
+
pathPortIds: [(0, import_non_secure95.nanoid)()]
|
|
41083
41408
|
}
|
|
41084
41409
|
};
|
|
41085
41410
|
return chartNode;
|
|
@@ -41167,12 +41492,12 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
41167
41492
|
var destructureNode = nodeDefinition(DestructureNodeImpl, "Destructure");
|
|
41168
41493
|
|
|
41169
41494
|
// src/model/nodes/ReplaceDatasetNode.ts
|
|
41170
|
-
var
|
|
41495
|
+
var import_non_secure96 = require("nanoid/non-secure");
|
|
41171
41496
|
var import_ts_dedent77 = require("ts-dedent");
|
|
41172
41497
|
var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
41173
41498
|
static create() {
|
|
41174
41499
|
return {
|
|
41175
|
-
id: (0,
|
|
41500
|
+
id: (0, import_non_secure96.nanoid)(),
|
|
41176
41501
|
type: "replaceDataset",
|
|
41177
41502
|
title: "Replace Dataset",
|
|
41178
41503
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -41343,14 +41668,14 @@ var ListGraphsNodeImpl = class extends NodeImpl {
|
|
|
41343
41668
|
var listGraphsNode = nodeDefinition(ListGraphsNodeImpl, "List Graphs");
|
|
41344
41669
|
|
|
41345
41670
|
// src/model/nodes/GraphReferenceNode.ts
|
|
41346
|
-
var
|
|
41671
|
+
var import_non_secure97 = require("nanoid/non-secure");
|
|
41347
41672
|
var import_ts_dedent78 = require("ts-dedent");
|
|
41348
41673
|
var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
41349
41674
|
static create() {
|
|
41350
41675
|
const chartNode = {
|
|
41351
41676
|
type: "graphReference",
|
|
41352
41677
|
title: "Graph Reference",
|
|
41353
|
-
id: (0,
|
|
41678
|
+
id: (0, import_non_secure97.nanoid)(),
|
|
41354
41679
|
visualData: {
|
|
41355
41680
|
x: 0,
|
|
41356
41681
|
y: 0,
|
|
@@ -41465,7 +41790,7 @@ var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
|
41465
41790
|
var graphReferenceNode = nodeDefinition(GraphReferenceNodeImpl, "Graph Reference");
|
|
41466
41791
|
|
|
41467
41792
|
// src/model/nodes/CallGraphNode.ts
|
|
41468
|
-
var
|
|
41793
|
+
var import_non_secure98 = require("nanoid/non-secure");
|
|
41469
41794
|
var import_ts_dedent79 = require("ts-dedent");
|
|
41470
41795
|
|
|
41471
41796
|
// src/api/looseDataValue.ts
|
|
@@ -41492,7 +41817,7 @@ var CallGraphNodeImpl = class extends NodeImpl {
|
|
|
41492
41817
|
const chartNode = {
|
|
41493
41818
|
type: "callGraph",
|
|
41494
41819
|
title: "Call Graph",
|
|
41495
|
-
id: (0,
|
|
41820
|
+
id: (0, import_non_secure98.nanoid)(),
|
|
41496
41821
|
visualData: {
|
|
41497
41822
|
x: 0,
|
|
41498
41823
|
y: 0,
|
|
@@ -41787,11 +42112,11 @@ function getDelegatedToolCallRecords(input) {
|
|
|
41787
42112
|
var delegateFunctionCallNode = nodeDefinition(DelegateFunctionCallNodeImpl, "Delegate Tool Call");
|
|
41788
42113
|
|
|
41789
42114
|
// src/model/nodes/PlayAudioNode.ts
|
|
41790
|
-
var
|
|
42115
|
+
var import_non_secure99 = require("nanoid/non-secure");
|
|
41791
42116
|
var PlayAudioNodeImpl = class extends NodeImpl {
|
|
41792
42117
|
static create() {
|
|
41793
42118
|
return {
|
|
41794
|
-
id: (0,
|
|
42119
|
+
id: (0, import_non_secure99.nanoid)(),
|
|
41795
42120
|
type: "playAudio",
|
|
41796
42121
|
title: "Play Audio",
|
|
41797
42122
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -41845,11 +42170,11 @@ var PlayAudioNodeImpl = class extends NodeImpl {
|
|
|
41845
42170
|
var playAudioNode = nodeDefinition(PlayAudioNodeImpl, "Play Audio");
|
|
41846
42171
|
|
|
41847
42172
|
// src/model/nodes/DocumentNode.ts
|
|
41848
|
-
var
|
|
42173
|
+
var import_non_secure100 = require("nanoid/non-secure");
|
|
41849
42174
|
var DocumentNodeImpl = class extends NodeImpl {
|
|
41850
42175
|
static create() {
|
|
41851
42176
|
return {
|
|
41852
|
-
id: (0,
|
|
42177
|
+
id: (0, import_non_secure100.nanoid)(),
|
|
41853
42178
|
type: "document",
|
|
41854
42179
|
title: "Document",
|
|
41855
42180
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -42015,7 +42340,7 @@ var DocumentNodeImpl = class extends NodeImpl {
|
|
|
42015
42340
|
var documentNode = nodeDefinition(DocumentNodeImpl, "Document");
|
|
42016
42341
|
|
|
42017
42342
|
// src/model/nodes/ChatLoopNode.ts
|
|
42018
|
-
var
|
|
42343
|
+
var import_non_secure101 = require("nanoid/non-secure");
|
|
42019
42344
|
var import_ts_dedent81 = require("ts-dedent");
|
|
42020
42345
|
var chatLoopLegacyDisplayName = "Chat Loop (legacy)";
|
|
42021
42346
|
var ChatLoopNodeImpl = class extends NodeImpl {
|
|
@@ -42023,7 +42348,7 @@ var ChatLoopNodeImpl = class extends NodeImpl {
|
|
|
42023
42348
|
const chartNode = {
|
|
42024
42349
|
type: "chatLoop",
|
|
42025
42350
|
title: chatLoopLegacyDisplayName,
|
|
42026
|
-
id: (0,
|
|
42351
|
+
id: (0, import_non_secure101.nanoid)(),
|
|
42027
42352
|
visualData: {
|
|
42028
42353
|
x: 0,
|
|
42029
42354
|
y: 0,
|
|
@@ -42156,12 +42481,12 @@ var ChatLoopNodeImpl = class extends NodeImpl {
|
|
|
42156
42481
|
var chatLoopNode = nodeDefinition(ChatLoopNodeImpl, chatLoopLegacyDisplayName);
|
|
42157
42482
|
|
|
42158
42483
|
// src/model/nodes/ReadAllFilesNode.ts
|
|
42159
|
-
var
|
|
42484
|
+
var import_non_secure102 = require("nanoid/non-secure");
|
|
42160
42485
|
var import_ts_dedent82 = require("ts-dedent");
|
|
42161
42486
|
var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
42162
42487
|
static create() {
|
|
42163
42488
|
return {
|
|
42164
|
-
id: (0,
|
|
42489
|
+
id: (0, import_non_secure102.nanoid)(),
|
|
42165
42490
|
type: "readAllFiles",
|
|
42166
42491
|
title: "Read All Files",
|
|
42167
42492
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -42354,14 +42679,14 @@ var ReadAllFilesNodeImpl = class extends NodeImpl {
|
|
|
42354
42679
|
var readAllFilesNode = nodeDefinition(ReadAllFilesNodeImpl, "Read All Files");
|
|
42355
42680
|
|
|
42356
42681
|
// src/model/nodes/ToMarkdownTableNode.ts
|
|
42357
|
-
var
|
|
42682
|
+
var import_non_secure103 = require("nanoid/non-secure");
|
|
42358
42683
|
var import_ts_dedent83 = require("ts-dedent");
|
|
42359
42684
|
var ToMarkdownTableNodeImpl = class extends NodeImpl {
|
|
42360
42685
|
static create() {
|
|
42361
42686
|
const chartNode = {
|
|
42362
42687
|
type: "toMarkdownTable",
|
|
42363
42688
|
title: "To Markdown Table",
|
|
42364
|
-
id: (0,
|
|
42689
|
+
id: (0, import_non_secure103.nanoid)(),
|
|
42365
42690
|
visualData: {
|
|
42366
42691
|
x: 0,
|
|
42367
42692
|
y: 0,
|
|
@@ -42708,7 +43033,7 @@ ${this.data.schedule}`;
|
|
|
42708
43033
|
var cronNode = nodeDefinition(CronNodeImpl, "Cron");
|
|
42709
43034
|
|
|
42710
43035
|
// src/model/nodes/ToTreeNode.ts
|
|
42711
|
-
var
|
|
43036
|
+
var import_non_secure104 = require("nanoid/non-secure");
|
|
42712
43037
|
var import_ts_dedent85 = require("ts-dedent");
|
|
42713
43038
|
var import_lodash_es17 = require("lodash");
|
|
42714
43039
|
var ToTreeNodeImpl = class extends NodeImpl {
|
|
@@ -42716,7 +43041,7 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
42716
43041
|
const chartNode = {
|
|
42717
43042
|
type: "toTree",
|
|
42718
43043
|
title: "To Tree",
|
|
42719
|
-
id: (0,
|
|
43044
|
+
id: (0, import_non_secure104.nanoid)(),
|
|
42720
43045
|
visualData: {
|
|
42721
43046
|
x: 0,
|
|
42722
43047
|
y: 0,
|
|
@@ -42837,14 +43162,14 @@ var ToTreeNodeImpl = class extends NodeImpl {
|
|
|
42837
43162
|
var toTreeNode = nodeDefinition(ToTreeNodeImpl, "To Tree");
|
|
42838
43163
|
|
|
42839
43164
|
// src/model/nodes/LoopUntilNode.ts
|
|
42840
|
-
var
|
|
43165
|
+
var import_non_secure105 = require("nanoid/non-secure");
|
|
42841
43166
|
var import_ts_dedent86 = require("ts-dedent");
|
|
42842
43167
|
var LoopUntilNodeImpl = class extends NodeImpl {
|
|
42843
43168
|
static create() {
|
|
42844
43169
|
const chartNode = {
|
|
42845
43170
|
type: "loopUntil",
|
|
42846
43171
|
title: "Loop Until",
|
|
42847
|
-
id: (0,
|
|
43172
|
+
id: (0, import_non_secure105.nanoid)(),
|
|
42848
43173
|
visualData: {
|
|
42849
43174
|
x: 0,
|
|
42850
43175
|
y: 0,
|
|
@@ -43353,14 +43678,14 @@ var MCPDiscoveryNodeImpl = class extends NodeImpl {
|
|
|
43353
43678
|
var mcpDiscoveryNode = nodeDefinition(MCPDiscoveryNodeImpl, "MCP Discovery");
|
|
43354
43679
|
|
|
43355
43680
|
// src/model/nodes/MCPToolCallNode.ts
|
|
43356
|
-
var
|
|
43681
|
+
var import_non_secure106 = require("nanoid/non-secure");
|
|
43357
43682
|
var import_ts_dedent87 = require("ts-dedent");
|
|
43358
43683
|
var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
43359
43684
|
static create() {
|
|
43360
43685
|
const chartNode = {
|
|
43361
43686
|
type: "mcpToolCall",
|
|
43362
43687
|
title: "MCP Tool Call",
|
|
43363
|
-
id: (0,
|
|
43688
|
+
id: (0, import_non_secure106.nanoid)(),
|
|
43364
43689
|
visualData: {
|
|
43365
43690
|
x: 0,
|
|
43366
43691
|
y: 0,
|
|
@@ -43529,13 +43854,13 @@ var MCPToolCallNodeImpl = class extends NodeImpl {
|
|
|
43529
43854
|
var mcpToolCallNode = nodeDefinition(MCPToolCallNodeImpl, "MCP Tool Call");
|
|
43530
43855
|
|
|
43531
43856
|
// src/model/nodes/MCPGetPromptNode.ts
|
|
43532
|
-
var
|
|
43857
|
+
var import_non_secure107 = require("nanoid/non-secure");
|
|
43533
43858
|
var MCPGetPromptNodeImpl = class extends NodeImpl {
|
|
43534
43859
|
static create() {
|
|
43535
43860
|
const chartNode = {
|
|
43536
43861
|
type: "mcpGetPrompt",
|
|
43537
43862
|
title: "MCP Get Prompt",
|
|
43538
|
-
id: (0,
|
|
43863
|
+
id: (0, import_non_secure107.nanoid)(),
|
|
43539
43864
|
visualData: {
|
|
43540
43865
|
x: 0,
|
|
43541
43866
|
y: 0,
|
|
@@ -43682,7 +44007,7 @@ var MCPGetPromptNodeImpl = class extends NodeImpl {
|
|
|
43682
44007
|
var mcpGetPromptNode = nodeDefinition(MCPGetPromptNodeImpl, "MCP Get Prompt");
|
|
43683
44008
|
|
|
43684
44009
|
// src/model/nodes/ReferencedGraphAliasNode.ts
|
|
43685
|
-
var
|
|
44010
|
+
var import_non_secure108 = require("nanoid/non-secure");
|
|
43686
44011
|
var import_ts_dedent88 = require("ts-dedent");
|
|
43687
44012
|
var ReferencedGraphAliasNodeImpl = class extends NodeImpl {
|
|
43688
44013
|
static create() {
|
|
@@ -43690,7 +44015,7 @@ var ReferencedGraphAliasNodeImpl = class extends NodeImpl {
|
|
|
43690
44015
|
type: "referencedGraphAlias",
|
|
43691
44016
|
title: "",
|
|
43692
44017
|
// Always set initially by the editor
|
|
43693
|
-
id: (0,
|
|
44018
|
+
id: (0, import_non_secure108.nanoid)(),
|
|
43694
44019
|
visualData: {
|
|
43695
44020
|
x: 0,
|
|
43696
44021
|
y: 0,
|
|
@@ -43858,13 +44183,13 @@ function applyMetricOutputSetting(outputs, outputCostDuration) {
|
|
|
43858
44183
|
}
|
|
43859
44184
|
|
|
43860
44185
|
// src/model/nodes/NodePrefabInstanceNode.ts
|
|
43861
|
-
var
|
|
44186
|
+
var import_non_secure109 = require("nanoid/non-secure");
|
|
43862
44187
|
var NodePrefabInstanceNodeImpl = class extends NodeImpl {
|
|
43863
44188
|
static create() {
|
|
43864
44189
|
return {
|
|
43865
44190
|
type: NODE_PREFAB_INSTANCE_TYPE,
|
|
43866
44191
|
title: "Linked node",
|
|
43867
|
-
id: (0,
|
|
44192
|
+
id: (0, import_non_secure109.nanoid)(),
|
|
43868
44193
|
visualData: {
|
|
43869
44194
|
x: 0,
|
|
43870
44195
|
y: 0,
|
|
@@ -43894,7 +44219,7 @@ var NodePrefabInstanceNodeImpl = class extends NodeImpl {
|
|
|
43894
44219
|
var nodePrefabInstanceNode = nodeDefinition(NodePrefabInstanceNodeImpl, "Linked node");
|
|
43895
44220
|
|
|
43896
44221
|
// src/model/nodes/ClassifierQuestionNode.ts
|
|
43897
|
-
var
|
|
44222
|
+
var import_non_secure110 = require("nanoid/non-secure");
|
|
43898
44223
|
|
|
43899
44224
|
// src/model/classifier/limits.ts
|
|
43900
44225
|
var CLASSIFIER_LIMITS = {
|
|
@@ -44790,17 +45115,17 @@ var entryTypeOptions = [
|
|
|
44790
45115
|
{ value: "object", label: "Object" }
|
|
44791
45116
|
];
|
|
44792
45117
|
function createScoreCriterion() {
|
|
44793
|
-
return { id: (0,
|
|
45118
|
+
return { id: (0, import_non_secure110.nanoid)(), type: "text", text: "", lines: [""], objectTemplate: "{}" };
|
|
44794
45119
|
}
|
|
44795
45120
|
function createChoiceCriterion() {
|
|
44796
|
-
return { id: (0,
|
|
45121
|
+
return { id: (0, import_non_secure110.nanoid)(), key: "", text: "", lines: [""], objectTemplate: "{}" };
|
|
44797
45122
|
}
|
|
44798
45123
|
var ClassifierQuestionNodeImpl = class extends NodeImpl {
|
|
44799
45124
|
static create() {
|
|
44800
45125
|
return {
|
|
44801
45126
|
type: "classifierQuestion",
|
|
44802
45127
|
title: "Decision AI Question",
|
|
44803
|
-
id: (0,
|
|
45128
|
+
id: (0, import_non_secure110.nanoid)(),
|
|
44804
45129
|
visualData: { x: 0, y: 0, width: 280 },
|
|
44805
45130
|
data: {
|
|
44806
45131
|
questionType: "choice",
|
|
@@ -45357,7 +45682,7 @@ function hasClassifierCriteriaValue(value) {
|
|
|
45357
45682
|
var classifierQuestionNode = nodeDefinition(ClassifierQuestionNodeImpl, "Decision AI Question");
|
|
45358
45683
|
|
|
45359
45684
|
// src/model/nodes/ClassifierEvaluateNode.ts
|
|
45360
|
-
var
|
|
45685
|
+
var import_non_secure111 = require("nanoid/non-secure");
|
|
45361
45686
|
|
|
45362
45687
|
// src/model/classifier/credentials.ts
|
|
45363
45688
|
var ClassifierCredentialMissingError = class extends Error {
|
|
@@ -46144,7 +46469,11 @@ function createClassifierProvider(spec) {
|
|
|
46144
46469
|
const evaluate = async (input) => {
|
|
46145
46470
|
var _a, _b, _c;
|
|
46146
46471
|
if ("images" in input) throw new Error("Pass image evidence through State, not a separate images field.");
|
|
46147
|
-
const args = {
|
|
46472
|
+
const args = {
|
|
46473
|
+
...input,
|
|
46474
|
+
tokenPricing: validateTokenPricing(input.tokenPricing),
|
|
46475
|
+
fetchImplementation: input.fetchImplementation ?? fetch
|
|
46476
|
+
};
|
|
46148
46477
|
const operation = createOperation(args, provider.label);
|
|
46149
46478
|
operation.check();
|
|
46150
46479
|
if (typeof args.model !== "string") throw new Error("Decision AI model must be a nonblank string.");
|
|
@@ -46223,6 +46552,11 @@ function createClassifierProvider(spec) {
|
|
|
46223
46552
|
function normalizeModelPricing(provider) {
|
|
46224
46553
|
return provider.modelPricing ?? (provider.pricing && provider.defaultModel ? [{ models: [provider.defaultModel], pricing: provider.pricing }] : []);
|
|
46225
46554
|
}
|
|
46555
|
+
function getClassifierSystemTokenPricing(providerId, model) {
|
|
46556
|
+
var _a;
|
|
46557
|
+
const provider = getClassifierProvider(providerId);
|
|
46558
|
+
return (_a = normalizeModelPricing(provider).find((entry) => entry.models.includes((model == null ? void 0 : model.trim()) || provider.defaultModel))) == null ? void 0 : _a.pricing;
|
|
46559
|
+
}
|
|
46226
46560
|
function getClassifierProvider(id) {
|
|
46227
46561
|
const provider = classifierProviders.find((candidate) => candidate.id === (id || jevClassifierProvider.id));
|
|
46228
46562
|
if (!provider) throw new Error(`Unknown Decision AI provider '${id}'.`);
|
|
@@ -46231,7 +46565,12 @@ function getClassifierProvider(id) {
|
|
|
46231
46565
|
function getClassifierProviderEnvironmentVariableNames() {
|
|
46232
46566
|
return [...new Set(classifierProviders.map((provider) => provider.credentialNames.environmentVariableName))];
|
|
46233
46567
|
}
|
|
46234
|
-
function calculateClassifierUsageCost(provider, usage, models) {
|
|
46568
|
+
function calculateClassifierUsageCost(provider, usage, models, tokenPricing) {
|
|
46569
|
+
if (tokenPricing !== void 0)
|
|
46570
|
+
return calculateTokenUsageCost(tokenPricing, {
|
|
46571
|
+
inputTokens: usage.input_tokens,
|
|
46572
|
+
outputTokens: usage.output_tokens
|
|
46573
|
+
});
|
|
46235
46574
|
if (!models) return void 0;
|
|
46236
46575
|
const entries2 = normalizeModelPricing(provider);
|
|
46237
46576
|
const entry = entries2.find(
|
|
@@ -46240,7 +46579,7 @@ function calculateClassifierUsageCost(provider, usage, models) {
|
|
|
46240
46579
|
const base = entry == null ? void 0 : entry.pricing;
|
|
46241
46580
|
const tier = base == null ? void 0 : base.longContext;
|
|
46242
46581
|
const validRates = (rates) => Number.isFinite(rates.inputPerMillionTokens) && rates.inputPerMillionTokens >= 0 && Number.isFinite(rates.outputPerMillionTokens) && rates.outputPerMillionTokens >= 0;
|
|
46243
|
-
if (base == null || !validRates(base) || tier != null && (!Number.isSafeInteger(tier.aboveInputTokens) || tier.aboveInputTokens < 0 || !validRates(tier)) || !
|
|
46582
|
+
if (base == null || !validRates(base) || tier != null && (!Number.isSafeInteger(tier.aboveInputTokens) || tier.aboveInputTokens < 0 || !validRates(tier)) || !isReportedTokenCount(usage.input_tokens) || !isReportedTokenCount(usage.output_tokens)) {
|
|
46244
46583
|
return void 0;
|
|
46245
46584
|
}
|
|
46246
46585
|
const pricing = tier && usage.input_tokens > tier.aboveInputTokens ? tier : base;
|
|
@@ -46460,7 +46799,7 @@ async function callClassifierHttp(args, spec, prepared, buildRequest, operation)
|
|
|
46460
46799
|
"failure",
|
|
46461
46800
|
response.status,
|
|
46462
46801
|
"response-validation",
|
|
46463
|
-
classifierAttemptUsage(body, spec, args.model),
|
|
46802
|
+
classifierAttemptUsage(body, spec, args.model, args.tokenPricing),
|
|
46464
46803
|
error instanceof Error ? error.message : `${providerLabel} returned an invalid Decision AI response.`
|
|
46465
46804
|
);
|
|
46466
46805
|
throw new ClassifierProviderError(
|
|
@@ -46470,7 +46809,7 @@ async function callClassifierHttp(args, spec, prepared, buildRequest, operation)
|
|
|
46470
46809
|
{ cause: error }
|
|
46471
46810
|
);
|
|
46472
46811
|
}
|
|
46473
|
-
report("success", response.status, void 0, classifierAttemptUsage(body, spec, args.model));
|
|
46812
|
+
report("success", response.status, void 0, classifierAttemptUsage(body, spec, args.model, args.tokenPricing));
|
|
46474
46813
|
return {
|
|
46475
46814
|
// Preserve the direct-provider result contract, but graph runs with the
|
|
46476
46815
|
// diagnostic disabled never allocate this second representation.
|
|
@@ -46487,12 +46826,12 @@ async function callClassifierHttp(args, spec, prepared, buildRequest, operation)
|
|
|
46487
46826
|
};
|
|
46488
46827
|
}
|
|
46489
46828
|
}
|
|
46490
|
-
function classifierAttemptUsage(body, provider, requestedModel) {
|
|
46829
|
+
function classifierAttemptUsage(body, provider, requestedModel, tokenPricing) {
|
|
46491
46830
|
if (!body || typeof body !== "object" || Array.isArray(body) || !Object.hasOwn(body, "usage")) return;
|
|
46492
46831
|
const { usage, model } = body;
|
|
46493
|
-
if (!usage || typeof usage !== "object" || Array.isArray(usage) || !Object.hasOwn(usage, "input_tokens") || !Object.hasOwn(usage, "output_tokens") || !
|
|
46832
|
+
if (!usage || typeof usage !== "object" || Array.isArray(usage) || !Object.hasOwn(usage, "input_tokens") || !Object.hasOwn(usage, "output_tokens") || !isReportedTokenCount(usage.input_tokens) || !isReportedTokenCount(usage.output_tokens))
|
|
46494
46833
|
return;
|
|
46495
|
-
const estimatedCostUsd = typeof model === "string" && Object.hasOwn(body, "model") ? calculateClassifierUsageCost(provider, usage, { requestedModel, responseModel: model }) : void 0;
|
|
46834
|
+
const estimatedCostUsd = typeof model === "string" && Object.hasOwn(body, "model") ? calculateClassifierUsageCost(provider, usage, { requestedModel, responseModel: model }, tokenPricing) : void 0;
|
|
46496
46835
|
return {
|
|
46497
46836
|
inputTokens: usage.input_tokens,
|
|
46498
46837
|
outputTokens: usage.output_tokens,
|
|
@@ -46587,6 +46926,7 @@ var DEFAULT_CLASSIFIER_PROFILE_FAILURE_WINDOW_MS = 3e5;
|
|
|
46587
46926
|
var DEFAULT_CLASSIFIER_PROFILE_OPEN_DURATION_MS = 3e5;
|
|
46588
46927
|
var classifierProfileInputIds = ["model", "apiKey"];
|
|
46589
46928
|
var classifierProfileDataKeys = [
|
|
46929
|
+
"tokenPricing",
|
|
46590
46930
|
"provider",
|
|
46591
46931
|
"model",
|
|
46592
46932
|
"useModelInput",
|
|
@@ -46663,11 +47003,12 @@ function normalizeDetachedProfile(value) {
|
|
|
46663
47003
|
throw new Error("Unknown Decision AI API key source.");
|
|
46664
47004
|
classifierProfileResponseTimeout(configuration);
|
|
46665
47005
|
classifierProfileHealthPolicy(configuration);
|
|
47006
|
+
configuration.tokenPricing = validateTokenPricing(configuration.tokenPricing);
|
|
46666
47007
|
return {
|
|
46667
47008
|
version: 1,
|
|
46668
|
-
sourceNodeId: profile.sourceNodeId,
|
|
47009
|
+
...profile.sourceNodeId === void 0 ? {} : { sourceNodeId: profile.sourceNodeId },
|
|
46669
47010
|
// Blank names are absent, but authored whitespace must survive exact-default display aliases.
|
|
46670
|
-
|
|
47011
|
+
...((_a = profile.profileName) == null ? void 0 : _a.trim()) ? { profileName: profile.profileName } : {},
|
|
46671
47012
|
credential: credential.value === void 0 ? {} : { value: credential.value.trim() },
|
|
46672
47013
|
configuration: {
|
|
46673
47014
|
...pickClassifierProfileData(configuration),
|
|
@@ -46703,7 +47044,12 @@ function resolveClassifierProfile(data, inputs, context) {
|
|
|
46703
47044
|
}
|
|
46704
47045
|
return normalizeClassifierProfileValue({
|
|
46705
47046
|
version: 1,
|
|
46706
|
-
configuration: {
|
|
47047
|
+
configuration: {
|
|
47048
|
+
...pickClassifierProfileData({ ...data, tokenPricing: validateTokenPricing(data.tokenPricing) }),
|
|
47049
|
+
provider: provider.id,
|
|
47050
|
+
model,
|
|
47051
|
+
useModelInput: false
|
|
47052
|
+
},
|
|
46707
47053
|
credential: value === void 0 ? {} : { value },
|
|
46708
47054
|
profileName: context.node.title,
|
|
46709
47055
|
sourceNodeId: context.node.id
|
|
@@ -47000,6 +47346,7 @@ async function runClassifierProfiles(input) {
|
|
|
47000
47346
|
...input.state,
|
|
47001
47347
|
questions: input.questions,
|
|
47002
47348
|
apiKey: profile.credential.value,
|
|
47349
|
+
tokenPricing: profile.configuration.tokenPricing,
|
|
47003
47350
|
model,
|
|
47004
47351
|
...Number.isFinite(timeoutMs) ? { timeoutMs } : {},
|
|
47005
47352
|
deadline: input.deadline,
|
|
@@ -47039,7 +47386,7 @@ async function runClassifierProfiles(input) {
|
|
|
47039
47386
|
skipReason: "unreached"
|
|
47040
47387
|
});
|
|
47041
47388
|
}
|
|
47042
|
-
return { result, provider, model };
|
|
47389
|
+
return { result, provider, model, tokenPricing: profile.configuration.tokenPricing };
|
|
47043
47390
|
} catch (error) {
|
|
47044
47391
|
lastError = error;
|
|
47045
47392
|
const providerError = error instanceof ClassifierProviderError ? error : void 0;
|
|
@@ -47095,7 +47442,7 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47095
47442
|
return {
|
|
47096
47443
|
type: "classifierEvaluate",
|
|
47097
47444
|
title: "Decision AI run",
|
|
47098
|
-
id: (0,
|
|
47445
|
+
id: (0, import_non_secure111.nanoid)(),
|
|
47099
47446
|
visualData: { x: 0, y: 0, width: 260 },
|
|
47100
47447
|
// Keep the default model in the provider descriptor rather than
|
|
47101
47448
|
// serializing Jev's model into every new node. A future provider then
|
|
@@ -47185,6 +47532,10 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47185
47532
|
return [
|
|
47186
47533
|
{ type: "custom", label: "Configuration", customEditorId: "ClassifierConfiguration" },
|
|
47187
47534
|
{ ...getClassifierModelEditor(), hideIf: (data) => data.configurationMode === "profile" },
|
|
47535
|
+
{
|
|
47536
|
+
...getTokenPricingEditor(),
|
|
47537
|
+
hideIf: (data) => data.configurationMode === "profile"
|
|
47538
|
+
},
|
|
47188
47539
|
{
|
|
47189
47540
|
type: "group",
|
|
47190
47541
|
label: "Outputs",
|
|
@@ -47193,7 +47544,7 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47193
47544
|
type: "toggle",
|
|
47194
47545
|
label: "Usage details",
|
|
47195
47546
|
dataKey: "outputUsage",
|
|
47196
|
-
helperMessage: "Adds estimated totalCost to Usage
|
|
47547
|
+
helperMessage: "Adds estimated totalCost to Usage using explicit token prices or known model rates. Unknown pricing is omitted. Provider-specific premiums are not included."
|
|
47197
47548
|
},
|
|
47198
47549
|
{
|
|
47199
47550
|
type: "toggle",
|
|
@@ -47341,6 +47692,7 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47341
47692
|
checkPreparation();
|
|
47342
47693
|
if (this.data.configurationMode === "profile")
|
|
47343
47694
|
return this.processProfiles(inputs, context, checkPreparation, attempts, diagnostics);
|
|
47695
|
+
const tokenPricing = validateTokenPricing(this.data.tokenPricing);
|
|
47344
47696
|
const provider = getClassifierProvider(this.data.provider);
|
|
47345
47697
|
if (!provider.browserExecutionSupported && context.executor === "browser") {
|
|
47346
47698
|
throw new Error(
|
|
@@ -47383,6 +47735,7 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47383
47735
|
if (questions.length === 0) throw new Error("Decision AI run requires at least one question.");
|
|
47384
47736
|
const result = await (provider.evaluateInput ?? provider.evaluate).call(provider, {
|
|
47385
47737
|
apiKey,
|
|
47738
|
+
tokenPricing,
|
|
47386
47739
|
model: modelValue,
|
|
47387
47740
|
questions,
|
|
47388
47741
|
retryOnNon200: this.data.retryOnNon200,
|
|
@@ -47406,20 +47759,28 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47406
47759
|
attempts.push(event);
|
|
47407
47760
|
(_a2 = context.onLLMProfileAttempt) == null ? void 0 : _a2.call(context, {
|
|
47408
47761
|
...structuredClone(event),
|
|
47409
|
-
eventId: (0,
|
|
47762
|
+
eventId: (0, import_non_secure111.nanoid)(),
|
|
47410
47763
|
nodeId: this.chartNode.id,
|
|
47411
47764
|
processId: context.processId
|
|
47412
47765
|
});
|
|
47413
47766
|
}
|
|
47414
47767
|
});
|
|
47415
47768
|
checkPreparation();
|
|
47416
|
-
return {
|
|
47769
|
+
return {
|
|
47770
|
+
...this.projectResult(provider, modelValue, result, checkPreparation, tokenPricing),
|
|
47771
|
+
...this.profileEvidence(attempts)
|
|
47772
|
+
};
|
|
47417
47773
|
}
|
|
47418
|
-
projectResult(provider, modelValue, result, checkPreparation) {
|
|
47419
|
-
const totalCost = calculateClassifierUsageCost(
|
|
47420
|
-
|
|
47421
|
-
|
|
47422
|
-
|
|
47774
|
+
projectResult(provider, modelValue, result, checkPreparation, tokenPricing) {
|
|
47775
|
+
const totalCost = calculateClassifierUsageCost(
|
|
47776
|
+
provider,
|
|
47777
|
+
result.response.usage,
|
|
47778
|
+
{
|
|
47779
|
+
requestedModel: modelValue,
|
|
47780
|
+
responseModel: result.response.model
|
|
47781
|
+
},
|
|
47782
|
+
tokenPricing
|
|
47783
|
+
);
|
|
47423
47784
|
const usage = !this.data.outputUsage || totalCost === void 0 ? result.response.usage : { ...result.response.usage, totalCost };
|
|
47424
47785
|
const outputs = {
|
|
47425
47786
|
["answers"]: { type: "object", value: result.response.answers },
|
|
@@ -47483,7 +47844,7 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47483
47844
|
attempts.push(attempt);
|
|
47484
47845
|
(_a2 = context.onLLMProfileAttempt) == null ? void 0 : _a2.call(context, {
|
|
47485
47846
|
...structuredClone(attempt),
|
|
47486
|
-
eventId: (0,
|
|
47847
|
+
eventId: (0, import_non_secure111.nanoid)(),
|
|
47487
47848
|
nodeId: this.chartNode.id,
|
|
47488
47849
|
processId: context.processId
|
|
47489
47850
|
});
|
|
@@ -47491,7 +47852,7 @@ var ClassifierEvaluateNodeImpl = class extends NodeImpl {
|
|
|
47491
47852
|
});
|
|
47492
47853
|
check();
|
|
47493
47854
|
return {
|
|
47494
|
-
...this.projectResult(selected.provider, selected.model, selected.result, check),
|
|
47855
|
+
...this.projectResult(selected.provider, selected.model, selected.result, check, selected.tokenPricing),
|
|
47495
47856
|
...this.profileEvidence(attempts, classifierProfileSummary(profiles, attempts))
|
|
47496
47857
|
};
|
|
47497
47858
|
}
|
|
@@ -47615,13 +47976,13 @@ function flattenQuestions(value, target, check, seen = /* @__PURE__ */ new Set()
|
|
|
47615
47976
|
var classifierEvaluateNode = nodeDefinition(ClassifierEvaluateNodeImpl, "Decision AI run");
|
|
47616
47977
|
|
|
47617
47978
|
// src/model/nodes/ClassifierProfileNode.ts
|
|
47618
|
-
var
|
|
47979
|
+
var import_non_secure112 = require("nanoid/non-secure");
|
|
47619
47980
|
var ClassifierProfileNodeImpl = class extends NodeImpl {
|
|
47620
47981
|
static create() {
|
|
47621
47982
|
return {
|
|
47622
47983
|
type: "classifierProfile",
|
|
47623
47984
|
title: "Decision AI Profile",
|
|
47624
|
-
id: (0,
|
|
47985
|
+
id: (0, import_non_secure112.nanoid)(),
|
|
47625
47986
|
visualData: { x: 0, y: 0, width: 260 },
|
|
47626
47987
|
data: { provider: "jev", responseTimeoutMs: DEFAULT_CLASSIFIER_PROFILE_RESPONSE_TIMEOUT_MS }
|
|
47627
47988
|
};
|
|
@@ -47645,6 +48006,7 @@ var ClassifierProfileNodeImpl = class extends NodeImpl {
|
|
|
47645
48006
|
getEditors() {
|
|
47646
48007
|
return [
|
|
47647
48008
|
getClassifierModelEditor(),
|
|
48009
|
+
getTokenPricingEditor(),
|
|
47648
48010
|
{
|
|
47649
48011
|
type: "group",
|
|
47650
48012
|
label: "Decision AI profile suspension",
|
|
@@ -47736,7 +48098,7 @@ var classifierProfileNode = nodeDefinition(ClassifierProfileNodeImpl, "Decision
|
|
|
47736
48098
|
|
|
47737
48099
|
// src/model/Nodes.ts
|
|
47738
48100
|
var registerBuiltInNodes = (registry) => {
|
|
47739
|
-
return registry.register(toYamlNode).register(userInputNode).register(textNode).register(llmChatV2Node).register(llmProfileNode).register(chatNode).register(promptNode).register(extractRegexNode).register(codeNode).register(codeNewNode).register(expressionNode).register(matchNode).register(matchCaseNode).register(ifNode).register(readDirectoryNode).register(readFileNode).register(ifElseNode).register(chunkNode).register(graphInputNode).register(graphOutputNode).register(subGraphNode).register(arrayNode).register(extractJsonNode).register(assemblePromptNode).register(loopControllerNode).register(trimChatMessagesNode).register(extractYamlNode).register(externalCallNode).register(extractObjectPathNode).register(raiseEventNode).register(reportProgressNode).register(contextNode).register(graphCallPathNode).register(projectNameNode).register(coalesceNode).register(coalesceNewNode).register(didRunNode).register(passthroughNode).register(dataBusNode).register(startBackgroundBranchNode).register(watchStreamingOutputNode).register(stopWatchingStreamingOutputNode).register(streamValueNode).register(catchStreamingChunksNode).register(popNode).register(setGlobalNode).register(getGlobalNode).register(setStoredValueNode).register(getStoredValueNode).register(waitForEventNode).register(gptFunctionNode).register(getEmbeddingNode).register(vectorStoreNode).register(vectorNearestNeighborsNode).register(knowledgeSourceNode).register(knowledgeDocumentNode).register(syncKnowledgeSourceNode).register(getKnowledgeSourceStatusNode).register(searchKnowledgeNode).register(buildKnowledgeContextNode).register(hashNode).register(abortGraphNode).register(raceInputsNode).register(toJsonNode).register(toBase64Node).register(joinNode).register(filterNode).register(jsFilterNode).register(jsMapNode).register(objectNode).register(booleanNode).register(compareNode).register(evaluateNode).register(numberNode).register(randomNumberNode).register(shuffleNode).register(commentNode).register(imageNode).register(audioNode).register(httpCallNode).register(delayNode).register(appendToDatasetNode).register(createDatasetNode).register(loadDatasetNode).register(getAllDatasetsNode).register(splitNode).register(datasetNearestNeighborsNode).register(getDatasetRowNode).register(sliceNode).register(extractMarkdownCodeBlocksNode).register(assembleMessageNode).register(urlReferenceNode).register(destructureNode).register(replaceDatasetNode).register(listGraphsNode).register(graphReferenceNode).register(callGraphNode).register(delegateFunctionCallNode).register(playAudioNode).register(documentNode).register(chatLoopNode).register(readAllFilesNode).register(toMarkdownTableNode).register(cronNode).register(toTreeNode).register(loopUntilNode).register(mcpDiscoveryNode).register(mcpToolCallNode).register(mcpGetPromptNode).register(referencedGraphAliasNode).register(classifierQuestionNode).register(classifierEvaluateNode).register(classifierProfileNode).register(nodePrefabInstanceNode);
|
|
48101
|
+
return registry.register(toYamlNode).register(userInputNode).register(textNode).register(llmChatV2Node).register(llmProfileNode).register(chatNode).register(promptNode).register(extractRegexNode).register(codeNode).register(codeNewNode).register(expressionNode).register(matchNode).register(matchCaseNode).register(ifNode).register(readDirectoryNode).register(readFileNode).register(ifElseNode).register(chunkNode).register(graphInputNode).register(graphOutputNode).register(subGraphNode).register(arrayNode).register(extractJsonNode).register(assemblePromptNode).register(loopControllerNode).register(trimChatMessagesNode).register(extractYamlNode).register(externalCallNode).register(extractObjectPathNode).register(raiseEventNode).register(reportProgressNode).register(contextNode).register(graphCallPathNode).register(projectNameNode).register(aiCostNode).register(coalesceNode).register(coalesceNewNode).register(didRunNode).register(passthroughNode).register(dataBusNode).register(startBackgroundBranchNode).register(watchStreamingOutputNode).register(stopWatchingStreamingOutputNode).register(streamValueNode).register(catchStreamingChunksNode).register(popNode).register(setGlobalNode).register(getGlobalNode).register(setStoredValueNode).register(getStoredValueNode).register(waitForEventNode).register(gptFunctionNode).register(getEmbeddingNode).register(vectorStoreNode).register(vectorNearestNeighborsNode).register(knowledgeSourceNode).register(knowledgeDocumentNode).register(syncKnowledgeSourceNode).register(getKnowledgeSourceStatusNode).register(searchKnowledgeNode).register(buildKnowledgeContextNode).register(hashNode).register(abortGraphNode).register(raceInputsNode).register(toJsonNode).register(toBase64Node).register(joinNode).register(filterNode).register(jsFilterNode).register(jsMapNode).register(objectNode).register(booleanNode).register(compareNode).register(evaluateNode).register(numberNode).register(randomNumberNode).register(shuffleNode).register(commentNode).register(imageNode).register(audioNode).register(httpCallNode).register(delayNode).register(appendToDatasetNode).register(createDatasetNode).register(loadDatasetNode).register(getAllDatasetsNode).register(splitNode).register(datasetNearestNeighborsNode).register(getDatasetRowNode).register(sliceNode).register(extractMarkdownCodeBlocksNode).register(assembleMessageNode).register(urlReferenceNode).register(destructureNode).register(replaceDatasetNode).register(listGraphsNode).register(graphReferenceNode).register(callGraphNode).register(delegateFunctionCallNode).register(playAudioNode).register(documentNode).register(chatLoopNode).register(readAllFilesNode).register(toMarkdownTableNode).register(cronNode).register(toTreeNode).register(loopUntilNode).register(mcpDiscoveryNode).register(mcpToolCallNode).register(mcpGetPromptNode).register(referencedGraphAliasNode).register(classifierQuestionNode).register(classifierEvaluateNode).register(classifierProfileNode).register(nodePrefabInstanceNode);
|
|
47740
48102
|
};
|
|
47741
48103
|
var globalRivetNodeRegistry = registerBuiltInNodes(new NodeRegistration());
|
|
47742
48104
|
function resetGlobalRivetNodeRegistry() {
|
|
@@ -48850,7 +49212,7 @@ function isRecord10(value) {
|
|
|
48850
49212
|
}
|
|
48851
49213
|
|
|
48852
49214
|
// src/plugins/anthropic/nodes/ChatAnthropicNode.ts
|
|
48853
|
-
var
|
|
49215
|
+
var import_non_secure113 = require("nanoid/non-secure");
|
|
48854
49216
|
var import_ts_dedent89 = require("ts-dedent");
|
|
48855
49217
|
var import_p_retry2 = __toESM(require("p-retry-4"), 1);
|
|
48856
49218
|
|
|
@@ -48865,7 +49227,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
48865
49227
|
const chartNode = {
|
|
48866
49228
|
type: "chatAnthropic",
|
|
48867
49229
|
title: "Chat (Anthropic, Legacy)",
|
|
48868
|
-
id: (0,
|
|
49230
|
+
id: (0, import_non_secure113.nanoid)(),
|
|
48869
49231
|
visualData: {
|
|
48870
49232
|
x: 0,
|
|
48871
49233
|
y: 0,
|
|
@@ -49615,7 +49977,7 @@ var anthropicPlugin = {
|
|
|
49615
49977
|
var anthropic_default = anthropicPlugin;
|
|
49616
49978
|
|
|
49617
49979
|
// src/plugins/autoevals/AutoEvalsNode.ts
|
|
49618
|
-
var
|
|
49980
|
+
var import_non_secure114 = require("nanoid/non-secure");
|
|
49619
49981
|
var import_ts_dedent90 = require("ts-dedent");
|
|
49620
49982
|
var import_autoevals = require("autoevals");
|
|
49621
49983
|
var import_ts_pattern7 = require("ts-pattern");
|
|
@@ -49635,7 +49997,7 @@ var AutoEvalsNodeImpl = {
|
|
|
49635
49997
|
const chartNode = {
|
|
49636
49998
|
type: "autoevals",
|
|
49637
49999
|
title: "Autoevals",
|
|
49638
|
-
id: (0,
|
|
50000
|
+
id: (0, import_non_secure114.nanoid)(),
|
|
49639
50001
|
visualData: {
|
|
49640
50002
|
x: 0,
|
|
49641
50003
|
y: 0,
|
|
@@ -49832,7 +50194,7 @@ var autoevalsPlugin = {
|
|
|
49832
50194
|
var autoevals_default = autoevalsPlugin;
|
|
49833
50195
|
|
|
49834
50196
|
// src/plugins/assemblyAi/LemurQaNode.ts
|
|
49835
|
-
var
|
|
50197
|
+
var import_non_secure115 = require("nanoid/non-secure");
|
|
49836
50198
|
var import_ts_dedent91 = require("ts-dedent");
|
|
49837
50199
|
|
|
49838
50200
|
// src/plugins/assemblyAi/lemurHelpers.ts
|
|
@@ -49952,7 +50314,7 @@ var LemurQaNodeImpl = {
|
|
|
49952
50314
|
const chartNode = {
|
|
49953
50315
|
type: "assemblyAiLemurQa",
|
|
49954
50316
|
title: "LeMUR Question & Answers",
|
|
49955
|
-
id: (0,
|
|
50317
|
+
id: (0, import_non_secure115.nanoid)(),
|
|
49956
50318
|
visualData: {
|
|
49957
50319
|
x: 0,
|
|
49958
50320
|
y: 0,
|
|
@@ -50089,14 +50451,14 @@ function applyQuestionEditors(data, question) {
|
|
|
50089
50451
|
var lemurQaNode = pluginNodeDefinition(LemurQaNodeImpl, "LeMUR Q&A");
|
|
50090
50452
|
|
|
50091
50453
|
// src/plugins/assemblyAi/TranscribeAudioNode.ts
|
|
50092
|
-
var
|
|
50454
|
+
var import_non_secure116 = require("nanoid/non-secure");
|
|
50093
50455
|
var import_ts_dedent92 = require("ts-dedent");
|
|
50094
50456
|
var TranscribeAudioNodeImpl = {
|
|
50095
50457
|
create() {
|
|
50096
50458
|
const chartNode = {
|
|
50097
50459
|
type: "assemblyAiTranscribeAudio",
|
|
50098
50460
|
title: "Transcribe Audio",
|
|
50099
|
-
id: (0,
|
|
50461
|
+
id: (0, import_non_secure116.nanoid)(),
|
|
50100
50462
|
visualData: {
|
|
50101
50463
|
x: 0,
|
|
50102
50464
|
y: 0,
|
|
@@ -50210,7 +50572,7 @@ function getAdditionalParameters(data) {
|
|
|
50210
50572
|
}
|
|
50211
50573
|
|
|
50212
50574
|
// src/plugins/assemblyAi/LemurSummaryNode.ts
|
|
50213
|
-
var
|
|
50575
|
+
var import_non_secure117 = require("nanoid/non-secure");
|
|
50214
50576
|
var import_ts_dedent93 = require("ts-dedent");
|
|
50215
50577
|
var import_assemblyai3 = require("assemblyai");
|
|
50216
50578
|
var LemurSummaryNodeImpl = {
|
|
@@ -50218,7 +50580,7 @@ var LemurSummaryNodeImpl = {
|
|
|
50218
50580
|
const chartNode = {
|
|
50219
50581
|
type: "assemblyAiLemurSummary",
|
|
50220
50582
|
title: "LeMUR Summary",
|
|
50221
|
-
id: (0,
|
|
50583
|
+
id: (0, import_non_secure117.nanoid)(),
|
|
50222
50584
|
visualData: {
|
|
50223
50585
|
x: 0,
|
|
50224
50586
|
y: 0,
|
|
@@ -50288,7 +50650,7 @@ var LemurSummaryNodeImpl = {
|
|
|
50288
50650
|
var lemurSummaryNode = pluginNodeDefinition(LemurSummaryNodeImpl, "LeMUR Summary");
|
|
50289
50651
|
|
|
50290
50652
|
// src/plugins/assemblyAi/LemurTaskNode.ts
|
|
50291
|
-
var
|
|
50653
|
+
var import_non_secure118 = require("nanoid/non-secure");
|
|
50292
50654
|
var import_ts_dedent94 = require("ts-dedent");
|
|
50293
50655
|
var import_assemblyai4 = require("assemblyai");
|
|
50294
50656
|
var LemurTaskNodeImpl = {
|
|
@@ -50296,7 +50658,7 @@ var LemurTaskNodeImpl = {
|
|
|
50296
50658
|
const chartNode = {
|
|
50297
50659
|
type: "assemblyAiLemurTask",
|
|
50298
50660
|
title: "LeMUR Task",
|
|
50299
|
-
id: (0,
|
|
50661
|
+
id: (0, import_non_secure118.nanoid)(),
|
|
50300
50662
|
visualData: {
|
|
50301
50663
|
x: 0,
|
|
50302
50664
|
y: 0,
|
|
@@ -50367,14 +50729,14 @@ var LemurTaskNodeImpl = {
|
|
|
50367
50729
|
var lemurTaskNode = pluginNodeDefinition(LemurTaskNodeImpl, "LeMUR Task");
|
|
50368
50730
|
|
|
50369
50731
|
// src/plugins/assemblyAi/LemurActionItemsNode.ts
|
|
50370
|
-
var
|
|
50732
|
+
var import_non_secure119 = require("nanoid/non-secure");
|
|
50371
50733
|
var import_ts_dedent95 = require("ts-dedent");
|
|
50372
50734
|
var LemurActionItemsNodeImpl = {
|
|
50373
50735
|
create() {
|
|
50374
50736
|
const chartNode = {
|
|
50375
50737
|
type: "assemblyAiLemurActionItems",
|
|
50376
50738
|
title: "LeMUR Action Items",
|
|
50377
|
-
id: (0,
|
|
50739
|
+
id: (0, import_non_secure119.nanoid)(),
|
|
50378
50740
|
visualData: {
|
|
50379
50741
|
x: 0,
|
|
50380
50742
|
y: 0,
|
|
@@ -50472,12 +50834,12 @@ var assemblyAiPlugin = {
|
|
|
50472
50834
|
var assemblyAi_default = assemblyAiPlugin;
|
|
50473
50835
|
|
|
50474
50836
|
// src/plugins/huggingface/nodes/ChatHuggingFace.ts
|
|
50475
|
-
var
|
|
50837
|
+
var import_non_secure120 = require("nanoid/non-secure");
|
|
50476
50838
|
var import_inference = require("@huggingface/inference");
|
|
50477
50839
|
var ChatHuggingFaceNodeImpl = {
|
|
50478
50840
|
create() {
|
|
50479
50841
|
return {
|
|
50480
|
-
id: (0,
|
|
50842
|
+
id: (0, import_non_secure120.nanoid)(),
|
|
50481
50843
|
type: "chatHuggingFace",
|
|
50482
50844
|
data: {
|
|
50483
50845
|
model: "",
|
|
@@ -50707,13 +51069,13 @@ var ChatHuggingFaceNodeImpl = {
|
|
|
50707
51069
|
var chatHuggingFaceNode = pluginNodeDefinition(ChatHuggingFaceNodeImpl, "Chat (Hugging Face, Legacy)");
|
|
50708
51070
|
|
|
50709
51071
|
// src/plugins/huggingface/nodes/TextToImageHuggingFace.ts
|
|
50710
|
-
var
|
|
51072
|
+
var import_non_secure121 = require("nanoid/non-secure");
|
|
50711
51073
|
var import_inference2 = require("@huggingface/inference");
|
|
50712
51074
|
var import_ts_dedent96 = require("ts-dedent");
|
|
50713
51075
|
var TextToImageHuggingFaceNodeImpl = {
|
|
50714
51076
|
create() {
|
|
50715
51077
|
return {
|
|
50716
|
-
id: (0,
|
|
51078
|
+
id: (0, import_non_secure121.nanoid)(),
|
|
50717
51079
|
type: "textToImageHuggingFace",
|
|
50718
51080
|
data: {
|
|
50719
51081
|
model: "",
|
|
@@ -54394,7 +54756,7 @@ var openAIPlugin = {
|
|
|
54394
54756
|
};
|
|
54395
54757
|
|
|
54396
54758
|
// src/plugins/google/nodes/ChatGoogleNode.ts
|
|
54397
|
-
var
|
|
54759
|
+
var import_non_secure122 = require("nanoid/non-secure");
|
|
54398
54760
|
var import_ts_dedent97 = require("ts-dedent");
|
|
54399
54761
|
var import_p_retry3 = __toESM(require("p-retry-4"), 1);
|
|
54400
54762
|
var import_ts_pattern8 = require("ts-pattern");
|
|
@@ -54422,7 +54784,7 @@ var ChatGoogleNodeImpl = {
|
|
|
54422
54784
|
const chartNode = {
|
|
54423
54785
|
type: "chatGoogle",
|
|
54424
54786
|
title: "Chat (Google, Legacy)",
|
|
54425
|
-
id: (0,
|
|
54787
|
+
id: (0, import_non_secure122.nanoid)(),
|
|
54426
54788
|
visualData: {
|
|
54427
54789
|
x: 0,
|
|
54428
54790
|
y: 0,
|
|
@@ -55075,6 +55437,14 @@ async function assembleRegistry(specs, loadPlugin) {
|
|
|
55075
55437
|
return { registry, results: { loaded, failed } };
|
|
55076
55438
|
}
|
|
55077
55439
|
|
|
55440
|
+
// src/model/DatasetOwnership.ts
|
|
55441
|
+
function remapOwnedDatasets(datasets, sourceId, targetId) {
|
|
55442
|
+
return datasets.map((dataset) => {
|
|
55443
|
+
if (dataset.meta.projectId !== sourceId) throw new Error("Dataset ownership does not match the source project.");
|
|
55444
|
+
return { ...dataset, meta: { ...dataset.meta, projectId: targetId } };
|
|
55445
|
+
});
|
|
55446
|
+
}
|
|
55447
|
+
|
|
55078
55448
|
// src/api/streaming.ts
|
|
55079
55449
|
async function* getProcessorEvents(processor, spec) {
|
|
55080
55450
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -55459,6 +55829,126 @@ function loadProjectAndAttachedDataFromString(content) {
|
|
|
55459
55829
|
return deserializeProject(content);
|
|
55460
55830
|
}
|
|
55461
55831
|
|
|
55832
|
+
// src/model/LatestDebuggerProtocol.ts
|
|
55833
|
+
var diagnosticCodes = ["history-truncated", "history-gap", "event-too-large", "owner-unavailable"];
|
|
55834
|
+
var LATEST_DEBUGGER_PATH = "/ws/latest-debugger";
|
|
55835
|
+
var managedProcessMessages = {
|
|
55836
|
+
codeConsole: true,
|
|
55837
|
+
nodeStart: true,
|
|
55838
|
+
nodeFinish: true,
|
|
55839
|
+
nodeError: true,
|
|
55840
|
+
nodeExcluded: true,
|
|
55841
|
+
userInput: true,
|
|
55842
|
+
start: true,
|
|
55843
|
+
done: true,
|
|
55844
|
+
abort: true,
|
|
55845
|
+
graphAbort: true,
|
|
55846
|
+
graphStart: true,
|
|
55847
|
+
webAppStoragePatch: true,
|
|
55848
|
+
graphFinish: true,
|
|
55849
|
+
graphOutputsReady: true,
|
|
55850
|
+
partialOutput: true,
|
|
55851
|
+
progress: true,
|
|
55852
|
+
llmCallFinished: true,
|
|
55853
|
+
llmChatOutputSnapshot: true,
|
|
55854
|
+
llmProfileAttempt: true,
|
|
55855
|
+
toolCallFinished: true,
|
|
55856
|
+
nodeOutputsCleared: true,
|
|
55857
|
+
streamingOutputWatchSummary: true,
|
|
55858
|
+
error: true,
|
|
55859
|
+
graphError: true,
|
|
55860
|
+
trace: true,
|
|
55861
|
+
pause: true,
|
|
55862
|
+
resume: true
|
|
55863
|
+
};
|
|
55864
|
+
function isLatestDebuggerExecutionMessage(message2) {
|
|
55865
|
+
return Object.hasOwn(managedProcessMessages, message2) || message2 === "latest-settled" || message2 === "latest-prompt-closed";
|
|
55866
|
+
}
|
|
55867
|
+
function encodeLatestDebuggerEnvelope(serialized, scope, eventId) {
|
|
55868
|
+
if (!scope && !eventId) return serialized;
|
|
55869
|
+
const metadata = JSON.stringify({
|
|
55870
|
+
...eventId ? { rivetEventId: eventId } : {},
|
|
55871
|
+
...scope ? { rivetScope: scope } : {}
|
|
55872
|
+
});
|
|
55873
|
+
return `${metadata.slice(0, -1)},${serialized.slice(1)}`;
|
|
55874
|
+
}
|
|
55875
|
+
function createLatestDebuggerSession(channel) {
|
|
55876
|
+
return { message: "latest-session", data: { protocol: 2, channel, channelIsolation: true, runScopedControls: true } };
|
|
55877
|
+
}
|
|
55878
|
+
function isLatestDebuggerSession(value) {
|
|
55879
|
+
var _a;
|
|
55880
|
+
const frame = value;
|
|
55881
|
+
return (frame == null ? void 0 : frame.message) === "latest-session" && ((_a = frame.data) == null ? void 0 : _a.protocol) === 2 && (frame.data.channel === null || typeof frame.data.channel === "string" && /^[A-Za-z0-9_-]{1,32}$/.test(frame.data.channel)) && frame.data.channelIsolation === true && frame.data.runScopedControls === true;
|
|
55882
|
+
}
|
|
55883
|
+
function readLatestDebuggerExecution(value) {
|
|
55884
|
+
var _a, _b, _c;
|
|
55885
|
+
const frame = value;
|
|
55886
|
+
if (!frame || typeof frame.message !== "string" || !isLatestDebuggerScope(frame.rivetScope)) return;
|
|
55887
|
+
if (!isLatestDebuggerExecutionMessage(frame.message)) return;
|
|
55888
|
+
if (frame.message === "latest-prompt-closed") {
|
|
55889
|
+
const id = (_a = frame.data) == null ? void 0 : _a.promptId;
|
|
55890
|
+
if (typeof id !== "string" || id.length === 0 || id.length > 200) return;
|
|
55891
|
+
}
|
|
55892
|
+
const root = (_c = (_b = frame.data) == null ? void 0 : _b.execution) == null ? void 0 : _c.rootRunId;
|
|
55893
|
+
if (root !== void 0 && root !== frame.rivetScope.rootRunId) return;
|
|
55894
|
+
return value;
|
|
55895
|
+
}
|
|
55896
|
+
function createLatestDebuggerDiagnostic(code) {
|
|
55897
|
+
return { message: "latest-diagnostic", data: { protocol: 1, code } };
|
|
55898
|
+
}
|
|
55899
|
+
function isLatestDebuggerDiagnostic(value) {
|
|
55900
|
+
var _a;
|
|
55901
|
+
const frame = value;
|
|
55902
|
+
return (frame == null ? void 0 : frame.message) === "latest-diagnostic" && ((_a = frame.data) == null ? void 0 : _a.protocol) === 1 && diagnosticCodes.includes(frame.data.code);
|
|
55903
|
+
}
|
|
55904
|
+
function createLatestDebuggerControlResult(commandId, result) {
|
|
55905
|
+
return {
|
|
55906
|
+
message: "latest-control-result",
|
|
55907
|
+
data: { status: result.status, ...result.reason === void 0 ? {} : { reason: result.reason }, commandId }
|
|
55908
|
+
};
|
|
55909
|
+
}
|
|
55910
|
+
function readLatestDebuggerControl(value) {
|
|
55911
|
+
var _a;
|
|
55912
|
+
const message2 = value;
|
|
55913
|
+
const data = message2 == null ? void 0 : message2.data;
|
|
55914
|
+
if ((message2 == null ? void 0 : message2.type) !== "latest-control" || !data || typeof data.commandId !== "string" || !data.commandId || data.commandId.length > 200 || !isLatestDebuggerScope(data.target))
|
|
55915
|
+
return;
|
|
55916
|
+
if (data.action === "pause" || data.action === "resume" || data.action === "abort") return message2;
|
|
55917
|
+
if (data.action === "user-input" && typeof data.promptId === "string" && data.promptId.length > 0 && data.promptId.length <= 200 && ((_a = data.answers) == null ? void 0 : _a.type) === "string[]" && Array.isArray(data.answers.value) && data.answers.value.every((answer) => typeof answer === "string"))
|
|
55918
|
+
return message2;
|
|
55919
|
+
}
|
|
55920
|
+
function readLatestDebuggerEventId(value) {
|
|
55921
|
+
if (!value || typeof value !== "object") return;
|
|
55922
|
+
const id = value.rivetEventId;
|
|
55923
|
+
return typeof id === "string" && /^[a-z0-9:-]{1,200}$/.test(id) ? id : void 0;
|
|
55924
|
+
}
|
|
55925
|
+
function isLatestDebuggerControlResult(value) {
|
|
55926
|
+
var _a;
|
|
55927
|
+
const message2 = value;
|
|
55928
|
+
return (message2 == null ? void 0 : message2.message) === "latest-control-result" && typeof ((_a = message2.data) == null ? void 0 : _a.commandId) === "string" && message2.data.commandId.length > 0 && message2.data.commandId.length <= 200 && ["accepted", "rejected", "outcome-unknown"].includes(message2.data.status) && (message2.data.reason === void 0 || typeof message2.data.reason === "string");
|
|
55929
|
+
}
|
|
55930
|
+
function parseLatestEndpointSegment(segment) {
|
|
55931
|
+
const [endpointName, channel, extra] = segment.split("@");
|
|
55932
|
+
if (!endpointName || !/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/.test(endpointName) || extra !== void 0 || channel !== void 0 && !/^[A-Za-z0-9_-]{1,32}$/.test(channel))
|
|
55933
|
+
throw new Error("Invalid latest endpoint or debugger channel");
|
|
55934
|
+
return { endpointName, channel: channel ?? null };
|
|
55935
|
+
}
|
|
55936
|
+
function parseLatestDebuggerPath(pathname) {
|
|
55937
|
+
const decoded = decodeURIComponent(pathname);
|
|
55938
|
+
if (decoded === LATEST_DEBUGGER_PATH) return null;
|
|
55939
|
+
if (!decoded.startsWith(`${LATEST_DEBUGGER_PATH}@`)) throw new Error("Invalid latest debugger path");
|
|
55940
|
+
const channel = decoded.slice(LATEST_DEBUGGER_PATH.length + 1);
|
|
55941
|
+
if (!/^[A-Za-z0-9_-]{1,32}$/.test(channel)) throw new Error("Invalid debugger channel");
|
|
55942
|
+
return channel;
|
|
55943
|
+
}
|
|
55944
|
+
function isLatestDebuggerScope(value) {
|
|
55945
|
+
if (!value || typeof value !== "object") return false;
|
|
55946
|
+
const scope = value;
|
|
55947
|
+
return (scope.channel === null || typeof scope.channel === "string" && /^[A-Za-z0-9_-]{1,32}$/.test(scope.channel)) && [scope.rootRunId, scope.projectId, scope.owner, scope.incarnation].every(
|
|
55948
|
+
(v) => typeof v === "string" && v.length > 0 && v.length <= 200
|
|
55949
|
+
) && (scope.promptId === void 0 || typeof scope.promptId === "string" && scope.promptId.length > 0 && scope.promptId.length <= 200) && (scope.admittedAt === void 0 || Number.isSafeInteger(scope.admittedAt) && scope.admittedAt >= 0) && (scope.promptLifecycle === void 0 || scope.promptLifecycle === 1);
|
|
55950
|
+
}
|
|
55951
|
+
|
|
55462
55952
|
// src/index.ts
|
|
55463
55953
|
installCodeRunnerNamespace(exports_exports);
|
|
55464
55954
|
var Rivet = void 0;
|
|
@@ -55468,6 +55958,7 @@ var Rivet = void 0;
|
|
|
55468
55958
|
AGENT_RESPONSE_TRACE_MAX_PROFILE_ATTEMPTS,
|
|
55469
55959
|
AGENT_RESPONSE_TRACE_MAX_TOOL_CALLS,
|
|
55470
55960
|
AGENT_RESPONSE_TRACE_SCHEMA_VERSION,
|
|
55961
|
+
AICostNodeImpl,
|
|
55471
55962
|
ALL_CODE_RUNNER_OPTIONS,
|
|
55472
55963
|
AbortGraphNodeImpl,
|
|
55473
55964
|
AgentResponseTraceCollector,
|
|
@@ -55571,6 +56062,7 @@ var Rivet = void 0;
|
|
|
55571
56062
|
KnowledgeDocumentNodeImpl,
|
|
55572
56063
|
KnowledgeSourceNodeImpl,
|
|
55573
56064
|
KnowledgeStoreController,
|
|
56065
|
+
LATEST_DEBUGGER_PATH,
|
|
55574
56066
|
LIQUID_DEFAULT_CREDENTIAL_NAMES,
|
|
55575
56067
|
LIQUID_SYSTEM_ONE_ENDPOINT,
|
|
55576
56068
|
LIQUID_TOKEN_PRICING,
|
|
@@ -55679,6 +56171,7 @@ var Rivet = void 0;
|
|
|
55679
56171
|
WatchStreamingOutputNodeImpl,
|
|
55680
56172
|
abortGraphNode,
|
|
55681
56173
|
addWarning,
|
|
56174
|
+
aiCostNode,
|
|
55682
56175
|
analyzeCodeOutputs,
|
|
55683
56176
|
anthropicCacheControlTtlOptions,
|
|
55684
56177
|
anthropicEffortOptions,
|
|
@@ -55712,6 +56205,7 @@ var Rivet = void 0;
|
|
|
55712
56205
|
calculateChatV2Cost,
|
|
55713
56206
|
calculateChatV2UsageCost,
|
|
55714
56207
|
calculateClassifierUsageCost,
|
|
56208
|
+
calculateTokenUsageCost,
|
|
55715
56209
|
callGraphNode,
|
|
55716
56210
|
canBeCoerced,
|
|
55717
56211
|
canBeCoercedAny,
|
|
@@ -55783,6 +56277,9 @@ var Rivet = void 0;
|
|
|
55783
56277
|
createKnowledgeStoreFieldDraftDefaults,
|
|
55784
56278
|
createLLMChatV2NodeData,
|
|
55785
56279
|
createLLMProfileNodeData,
|
|
56280
|
+
createLatestDebuggerControlResult,
|
|
56281
|
+
createLatestDebuggerDiagnostic,
|
|
56282
|
+
createLatestDebuggerSession,
|
|
55786
56283
|
createProjectBundleRuntime,
|
|
55787
56284
|
createResolvedChatV2Provider,
|
|
55788
56285
|
createRivetLLMProfileHealthIdentity,
|
|
@@ -55821,6 +56318,7 @@ var Rivet = void 0;
|
|
|
55821
56318
|
documentNode,
|
|
55822
56319
|
doubleCheckProject,
|
|
55823
56320
|
emptyNodeGraph,
|
|
56321
|
+
encodeLatestDebuggerEnvelope,
|
|
55824
56322
|
encodeProjectGlobalVariable,
|
|
55825
56323
|
encodeRivetWebAppStorageBinaryFrame,
|
|
55826
56324
|
evaluateJsonPath,
|
|
@@ -55862,6 +56360,7 @@ var Rivet = void 0;
|
|
|
55862
56360
|
getChatV2ModelRegistry,
|
|
55863
56361
|
getChatV2ProviderCapabilities,
|
|
55864
56362
|
getChatV2ProviderLabel,
|
|
56363
|
+
getChatV2SystemTokenPricing,
|
|
55865
56364
|
getClassifierCredentialNamesForDisplay,
|
|
55866
56365
|
getClassifierEvaluateBodySections,
|
|
55867
56366
|
getClassifierModelEditor,
|
|
@@ -55869,6 +56368,7 @@ var Rivet = void 0;
|
|
|
55869
56368
|
getClassifierProviderEnvironmentVariableNames,
|
|
55870
56369
|
getClassifierQuestionBodySections,
|
|
55871
56370
|
getClassifierRequestCount,
|
|
56371
|
+
getClassifierSystemTokenPricing,
|
|
55872
56372
|
getCodeOutputFields,
|
|
55873
56373
|
getCodeOutputKeys,
|
|
55874
56374
|
getCommonChatV2Editors,
|
|
@@ -56002,8 +56502,14 @@ var Rivet = void 0;
|
|
|
56002
56502
|
isKnowledgeSourceReference,
|
|
56003
56503
|
isKnowledgeStoreProviderFieldDefaultValid,
|
|
56004
56504
|
isLLMChatV2StructuredResponseFormat,
|
|
56505
|
+
isLatestDebuggerControlResult,
|
|
56506
|
+
isLatestDebuggerDiagnostic,
|
|
56507
|
+
isLatestDebuggerExecutionMessage,
|
|
56508
|
+
isLatestDebuggerScope,
|
|
56509
|
+
isLatestDebuggerSession,
|
|
56005
56510
|
isNodePrefabInstanceNode,
|
|
56006
56511
|
isNotFunctionDataValue,
|
|
56512
|
+
isReportedTokenCount,
|
|
56007
56513
|
isReservedKnowledgeObjectKey,
|
|
56008
56514
|
isRivetWebAppRunTerminalEvent,
|
|
56009
56515
|
isRuntimeDebugLoggingEnabled,
|
|
@@ -56107,6 +56613,8 @@ var Rivet = void 0;
|
|
|
56107
56613
|
parseDataBusChannelIndex,
|
|
56108
56614
|
parseInterpolationExpression,
|
|
56109
56615
|
parseInterpolationTemplate,
|
|
56616
|
+
parseLatestDebuggerPath,
|
|
56617
|
+
parseLatestEndpointSegment,
|
|
56110
56618
|
parseProviderJsonChunk,
|
|
56111
56619
|
parseRivetWebAppBrowserStorageClientMessage,
|
|
56112
56620
|
parseRivetWebAppBrowserStorageServerMessage,
|
|
@@ -56136,6 +56644,9 @@ var Rivet = void 0;
|
|
|
56136
56644
|
readFileNode,
|
|
56137
56645
|
readKnowledgeStoreConnectionCredentials,
|
|
56138
56646
|
readKnowledgeStoreConnectionCredentialsDraft,
|
|
56647
|
+
readLatestDebuggerControl,
|
|
56648
|
+
readLatestDebuggerEventId,
|
|
56649
|
+
readLatestDebuggerExecution,
|
|
56139
56650
|
reconcileProjectUiGraphBindings,
|
|
56140
56651
|
reconcileProjectUiGraphButtonBindings,
|
|
56141
56652
|
reconcileSubgraphTargetBoundary,
|
|
@@ -56147,6 +56658,7 @@ var Rivet = void 0;
|
|
|
56147
56658
|
registerIntegration,
|
|
56148
56659
|
registerKnowledgeStoreProvider,
|
|
56149
56660
|
registerPluginsIntoRegistry,
|
|
56661
|
+
remapOwnedDatasets,
|
|
56150
56662
|
removeKnowledgeStoreConnectionCredentials,
|
|
56151
56663
|
renderUiGraphOutputValue,
|
|
56152
56664
|
replaceDatasetNode,
|
|
@@ -56238,6 +56750,7 @@ var Rivet = void 0;
|
|
|
56238
56750
|
validateProjectGlobalVariables,
|
|
56239
56751
|
validateProjectUiGraphActionBindings,
|
|
56240
56752
|
validateProjectUiGraphButtonBindings,
|
|
56753
|
+
validateTokenPricing,
|
|
56241
56754
|
validateUiGraphActionBindings,
|
|
56242
56755
|
validateUiGraphButtonBindings,
|
|
56243
56756
|
vectorNearestNeighborsNode,
|