n8n-workflow
Advanced tools
Comparing version 1.33.1 to 1.34.0
@@ -27,2 +27,3 @@ export declare const BINARY_ENCODING = "base64"; | ||
export declare const AGENT_LANGCHAIN_NODE_TYPE = "@n8n/n8n-nodes-langchain.agent"; | ||
export declare const CHAIN_LLM_LANGCHAIN_NODE_TYPE = "@n8n/n8n-nodes-langchain.chainLlm"; | ||
export declare const OPENAI_LANGCHAIN_NODE_TYPE = "@n8n/n8n-nodes-langchain.openAi"; | ||
@@ -29,0 +30,0 @@ export declare const CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE = "@n8n/n8n-nodes-langchain.chainSummarization"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LANGCHAIN_CUSTOM_TOOLS = exports.WORKFLOW_TOOL_LANGCHAIN_NODE_TYPE = exports.CODE_TOOL_LANGCHAIN_NODE_TYPE = exports.CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE = exports.OPENAI_LANGCHAIN_NODE_TYPE = exports.AGENT_LANGCHAIN_NODE_TYPE = exports.MANUAL_CHAT_TRIGGER_LANGCHAIN_NODE_TYPE = exports.NODES_WITH_RENAMABLE_CONTENT = exports.SCRIPTING_NODE_TYPES = exports.STARTING_NODE_TYPES = exports.FUNCTION_ITEM_NODE_TYPE = exports.FUNCTION_NODE_TYPE = exports.CODE_NODE_TYPE = exports.EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE = exports.START_NODE_TYPE = exports.ERROR_TRIGGER_NODE_TYPE = exports.MANUAL_TRIGGER_NODE_TYPE = exports.WEBHOOK_NODE_TYPE = exports.HTTP_REQUEST_NODE_TYPE = exports.NO_OP_NODE_TYPE = exports.STICKY_NODE_TYPE = exports.UNKNOWN_ERROR_MESSAGE_CRED = exports.UNKNOWN_ERROR_DESCRIPTION = exports.UNKNOWN_ERROR_MESSAGE = exports.FORM_TRIGGER_PATH_IDENTIFIER = exports.CREDENTIAL_EMPTY_VALUE = exports.CODE_EXECUTION_MODES = exports.CODE_LANGUAGES = exports.LOG_LEVELS = exports.WAIT_TIME_UNLIMITED = exports.BINARY_ENCODING = void 0; | ||
exports.LANGCHAIN_CUSTOM_TOOLS = exports.WORKFLOW_TOOL_LANGCHAIN_NODE_TYPE = exports.CODE_TOOL_LANGCHAIN_NODE_TYPE = exports.CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE = exports.OPENAI_LANGCHAIN_NODE_TYPE = exports.CHAIN_LLM_LANGCHAIN_NODE_TYPE = exports.AGENT_LANGCHAIN_NODE_TYPE = exports.MANUAL_CHAT_TRIGGER_LANGCHAIN_NODE_TYPE = exports.NODES_WITH_RENAMABLE_CONTENT = exports.SCRIPTING_NODE_TYPES = exports.STARTING_NODE_TYPES = exports.FUNCTION_ITEM_NODE_TYPE = exports.FUNCTION_NODE_TYPE = exports.CODE_NODE_TYPE = exports.EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE = exports.START_NODE_TYPE = exports.ERROR_TRIGGER_NODE_TYPE = exports.MANUAL_TRIGGER_NODE_TYPE = exports.WEBHOOK_NODE_TYPE = exports.HTTP_REQUEST_NODE_TYPE = exports.NO_OP_NODE_TYPE = exports.STICKY_NODE_TYPE = exports.UNKNOWN_ERROR_MESSAGE_CRED = exports.UNKNOWN_ERROR_DESCRIPTION = exports.UNKNOWN_ERROR_MESSAGE = exports.FORM_TRIGGER_PATH_IDENTIFIER = exports.CREDENTIAL_EMPTY_VALUE = exports.CODE_EXECUTION_MODES = exports.CODE_LANGUAGES = exports.LOG_LEVELS = exports.WAIT_TIME_UNLIMITED = exports.BINARY_ENCODING = void 0; | ||
exports.BINARY_ENCODING = 'base64'; | ||
@@ -39,2 +39,3 @@ exports.WAIT_TIME_UNLIMITED = '3000-01-01T00:00:00.000Z'; | ||
exports.AGENT_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.agent'; | ||
exports.CHAIN_LLM_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.chainLlm'; | ||
exports.OPENAI_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.openAi'; | ||
@@ -41,0 +42,0 @@ exports.CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.chainSummarization'; |
@@ -1,1 +0,1 @@ | ||
export type ExecutionStatus = 'canceled' | 'crashed' | 'error' | 'failed' | 'new' | 'running' | 'success' | 'unknown' | 'waiting' | 'warning'; | ||
export type ExecutionStatus = 'canceled' | 'crashed' | 'error' | 'new' | 'running' | 'success' | 'unknown' | 'waiting' | 'warning'; |
@@ -98,3 +98,3 @@ "use strict"; | ||
otherNodes.forEach((node, index) => { | ||
var _a, _b, _c, _d, _e, _f; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; | ||
nodeGraph.node_types.push(node.type); | ||
@@ -114,3 +114,3 @@ const nodeItem = { | ||
if (node.type === Constants_1.AGENT_LANGCHAIN_NODE_TYPE) { | ||
nodeItem.agent = node.parameters.agent || 'conversationalAgent'; | ||
nodeItem.agent = (_b = node.parameters.agent) !== null && _b !== void 0 ? _b : 'conversationalAgent'; | ||
} | ||
@@ -170,10 +170,10 @@ else if (node.type === Constants_1.HTTP_REQUEST_NODE_TYPE && node.typeVersion === 1) { | ||
nodeItem.prompts = | ||
(((_b = node.parameters) === null || _b === void 0 ? void 0 : _b.messages) || {}).values || []; | ||
(_e = ((_d = (_c = node.parameters) === null || _c === void 0 ? void 0 : _c.messages) !== null && _d !== void 0 ? _d : {}).values) !== null && _e !== void 0 ? _e : []; | ||
} | ||
if (node.type === Constants_1.AGENT_LANGCHAIN_NODE_TYPE) { | ||
const prompts = {}; | ||
if ((_c = node.parameters) === null || _c === void 0 ? void 0 : _c.text) { | ||
if ((_f = node.parameters) === null || _f === void 0 ? void 0 : _f.text) { | ||
prompts.text = node.parameters.text; | ||
} | ||
const nodeOptions = (_d = node.parameters) === null || _d === void 0 ? void 0 : _d.options; | ||
const nodeOptions = (_g = node.parameters) === null || _g === void 0 ? void 0 : _g.options; | ||
if (nodeOptions) { | ||
@@ -201,10 +201,14 @@ const optionalMessagesKeys = [ | ||
if (node.type === Constants_1.CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE) { | ||
nodeItem.prompts = ((((_e = node.parameters) === null || _e === void 0 ? void 0 : _e.options) || {}) | ||
.summarizationMethodAndPrompts || {}).values; | ||
nodeItem.prompts = ((_k = ((_j = (_h = node.parameters) === null || _h === void 0 ? void 0 : _h.options) !== null && _j !== void 0 ? _j : {}) | ||
.summarizationMethodAndPrompts) !== null && _k !== void 0 ? _k : {}).values; | ||
} | ||
if (Constants_1.LANGCHAIN_CUSTOM_TOOLS.includes(node.type)) { | ||
nodeItem.prompts = { | ||
description: ((_f = node.parameters) === null || _f === void 0 ? void 0 : _f.description) || '', | ||
description: (_m = (_l = node.parameters) === null || _l === void 0 ? void 0 : _l.description) !== null && _m !== void 0 ? _m : '', | ||
}; | ||
} | ||
if (node.type === Constants_1.CHAIN_LLM_LANGCHAIN_NODE_TYPE) { | ||
nodeItem.prompts = | ||
(_q = ((_p = (_o = node.parameters) === null || _o === void 0 ? void 0 : _o.messages) !== null && _p !== void 0 ? _p : {}).messageValues) !== null && _q !== void 0 ? _q : []; | ||
} | ||
} | ||
@@ -211,0 +215,0 @@ nodeGraph.nodes[index.toString()] = nodeItem; |
@@ -17,3 +17,3 @@ import type { BinaryFileType, IDisplayOptions, INodeProperties, JsonObject } from './Interfaces'; | ||
}>; | ||
export declare const jsonParse: <T>(jsonString: string, options?: JSONParseOptions<T> | undefined) => T; | ||
export declare const jsonParse: <T>(jsonString: string, options?: JSONParseOptions<T>) => T; | ||
type JSONStringifyOptions = { | ||
@@ -20,0 +20,0 @@ replaceCircularRefs?: boolean; |
@@ -672,2 +672,3 @@ "use strict"; | ||
}, | ||
nodeCause: sourceData.previousNode, | ||
description: 'Item points to a node output which does not exist', | ||
@@ -674,0 +675,0 @@ causeDetailed: `The sourceData points to a node output ‘${previousNodeOutput}‘ which does not exist on node ‘${sourceData.previousNode}‘ (output node did probably supply a wrong one)`, |
{ | ||
"name": "n8n-workflow", | ||
"version": "1.33.1", | ||
"version": "1.34.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
876537
11500