mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor(core): Include AI events in log streaming relay (#10768)
This commit is contained in:
@@ -39,7 +39,6 @@ import type {
|
||||
BinaryHelperFunctions,
|
||||
CloseFunction,
|
||||
ContextType,
|
||||
EventNamesAiNodesType,
|
||||
FieldType,
|
||||
FileSystemHelperFunctions,
|
||||
FunctionsBase,
|
||||
@@ -102,6 +101,7 @@ import type {
|
||||
EnsureTypeOptions,
|
||||
SSHTunnelFunctions,
|
||||
SchedulingFunctions,
|
||||
AiEvent,
|
||||
} from 'n8n-workflow';
|
||||
import {
|
||||
NodeConnectionType,
|
||||
@@ -3888,8 +3888,8 @@ export function getExecuteFunctions(
|
||||
constructExecutionMetaData,
|
||||
},
|
||||
nodeHelpers: getNodeHelperFunctions(additionalData, workflow.id),
|
||||
logAiEvent: async (eventName: EventNamesAiNodesType, msg: string) => {
|
||||
return await additionalData.logAiEvent(eventName, {
|
||||
logAiEvent: async (eventName: AiEvent, msg: string) => {
|
||||
return additionalData.logAiEvent(eventName, {
|
||||
executionId: additionalData.executionId ?? 'unsaved-execution',
|
||||
nodeName: node.name,
|
||||
workflowName: workflow.name ?? 'Unnamed workflow',
|
||||
@@ -4039,8 +4039,8 @@ export function getExecuteSingleFunctions(
|
||||
getBinaryDataBuffer: async (propertyName, inputIndex = 0) =>
|
||||
await getBinaryDataBuffer(inputData, itemIndex, propertyName, inputIndex),
|
||||
},
|
||||
logAiEvent: async (eventName: EventNamesAiNodesType, msg: string) => {
|
||||
return await additionalData.logAiEvent(eventName, {
|
||||
logAiEvent: async (eventName: AiEvent, msg: string) => {
|
||||
return additionalData.logAiEvent(eventName, {
|
||||
executionId: additionalData.executionId ?? 'unsaved-execution',
|
||||
nodeName: node.name,
|
||||
workflowName: workflow.name ?? 'Unnamed workflow',
|
||||
|
||||
Reference in New Issue
Block a user