mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 13:01:14 +03:00
Chore/changed vm2 to @flowiseai/nodevm (#3200)
* changed vm2 to @flowiseai/nodevm * update set-value and lunary version
This commit is contained in:
+4
-1
@@ -57,7 +57,10 @@
|
|||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"faiss-node",
|
"faiss-node",
|
||||||
"sqlite3"
|
"sqlite3"
|
||||||
]
|
],
|
||||||
|
"overrides": {
|
||||||
|
"set-value": "^3.0.3"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.15.0 <19.0.0 || ^20",
|
"node": ">=18.15.0 <19.0.0 || ^20",
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface'
|
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface'
|
||||||
import { NodeVM } from 'vm2'
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
import { DataSource } from 'typeorm'
|
import { DataSource } from 'typeorm'
|
||||||
import { availableDependencies, defaultAllowBuiltInDep, getVars, handleEscapeCharacters, prepareSandboxVars } from '../../../src/utils'
|
import { availableDependencies, defaultAllowBuiltInDep, getVars, handleEscapeCharacters, prepareSandboxVars } from '../../../src/utils'
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { START } from '@langchain/langgraph'
|
import { START } from '@langchain/langgraph'
|
||||||
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
|
import { DataSource } from 'typeorm'
|
||||||
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeParams, ISeqAgentNode } from '../../../src/Interface'
|
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeParams, ISeqAgentNode } from '../../../src/Interface'
|
||||||
import { availableDependencies, defaultAllowBuiltInDep, getVars, prepareSandboxVars } from '../../../src/utils'
|
import { availableDependencies, defaultAllowBuiltInDep, getVars, prepareSandboxVars } from '../../../src/utils'
|
||||||
import { NodeVM } from 'vm2'
|
|
||||||
import { DataSource } from 'typeorm'
|
|
||||||
|
|
||||||
const defaultFunc = `{
|
const defaultFunc = `{
|
||||||
aggregate: {
|
aggregate: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { get } from 'lodash'
|
import { get } from 'lodash'
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { DataSource } from 'typeorm'
|
import { DataSource } from 'typeorm'
|
||||||
import { NodeVM } from 'vm2'
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
import { StructuredTool } from '@langchain/core/tools'
|
import { StructuredTool } from '@langchain/core/tools'
|
||||||
import { ChatMistralAI } from '@langchain/mistralai'
|
import { ChatMistralAI } from '@langchain/mistralai'
|
||||||
import { ChatAnthropic } from '@langchain/anthropic'
|
import { ChatAnthropic } from '@langchain/anthropic'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { DataSource } from 'typeorm'
|
import { DataSource } from 'typeorm'
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { NodeVM } from 'vm2'
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
import { RunnableConfig } from '@langchain/core/runnables'
|
import { RunnableConfig } from '@langchain/core/runnables'
|
||||||
import { CallbackManagerForToolRun, Callbacks, CallbackManager, parseCallbackConfigArg } from '@langchain/core/callbacks/manager'
|
import { CallbackManagerForToolRun, Callbacks, CallbackManager, parseCallbackConfigArg } from '@langchain/core/callbacks/manager'
|
||||||
import { StructuredTool } from '@langchain/core/tools'
|
import { StructuredTool } from '@langchain/core/tools'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { NodeVM } from 'vm2'
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
import { RunnableConfig } from '@langchain/core/runnables'
|
import { RunnableConfig } from '@langchain/core/runnables'
|
||||||
import { StructuredTool, ToolParams } from '@langchain/core/tools'
|
import { StructuredTool, ToolParams } from '@langchain/core/tools'
|
||||||
import { CallbackManagerForToolRun, Callbacks, CallbackManager, parseCallbackConfigArg } from '@langchain/core/callbacks/manager'
|
import { CallbackManagerForToolRun, Callbacks, CallbackManager, parseCallbackConfigArg } from '@langchain/core/callbacks/manager'
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { flatten } from 'lodash'
|
import { flatten } from 'lodash'
|
||||||
import { type StructuredTool } from '@langchain/core/tools'
|
import { type StructuredTool } from '@langchain/core/tools'
|
||||||
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface'
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
import { NodeVM } from 'vm2'
|
|
||||||
import { DataSource } from 'typeorm'
|
import { DataSource } from 'typeorm'
|
||||||
import { availableDependencies, defaultAllowBuiltInDep, getVars, handleEscapeCharacters, prepareSandboxVars } from '../../../src/utils'
|
import { availableDependencies, defaultAllowBuiltInDep, getVars, handleEscapeCharacters, prepareSandboxVars } from '../../../src/utils'
|
||||||
|
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface'
|
||||||
|
|
||||||
class CustomFunction_Utilities implements INode {
|
class CustomFunction_Utilities implements INode {
|
||||||
label: string
|
label: string
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface'
|
import { NodeVM } from '@flowiseai/nodevm'
|
||||||
import { NodeVM } from 'vm2'
|
|
||||||
import { DataSource } from 'typeorm'
|
import { DataSource } from 'typeorm'
|
||||||
import { availableDependencies, defaultAllowBuiltInDep, getVars, handleEscapeCharacters, prepareSandboxVars } from '../../../src/utils'
|
import { availableDependencies, defaultAllowBuiltInDep, getVars, handleEscapeCharacters, prepareSandboxVars } from '../../../src/utils'
|
||||||
|
import { ICommonObject, IDatabaseEntity, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface'
|
||||||
|
|
||||||
class IfElseFunction_Utilities implements INode {
|
class IfElseFunction_Utilities implements INode {
|
||||||
label: string
|
label: string
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"@dqbd/tiktoken": "^1.0.7",
|
"@dqbd/tiktoken": "^1.0.7",
|
||||||
"@e2b/code-interpreter": "^0.0.5",
|
"@e2b/code-interpreter": "^0.0.5",
|
||||||
"@elastic/elasticsearch": "^8.9.0",
|
"@elastic/elasticsearch": "^8.9.0",
|
||||||
|
"@flowiseai/nodevm": "^3.9.25",
|
||||||
"@getzep/zep-cloud": "~1.0.7",
|
"@getzep/zep-cloud": "~1.0.7",
|
||||||
"@getzep/zep-js": "^0.9.0",
|
"@getzep/zep-js": "^0.9.0",
|
||||||
"@gomomento/sdk": "^1.51.1",
|
"@gomomento/sdk": "^1.51.1",
|
||||||
@@ -92,7 +93,7 @@
|
|||||||
"linkifyjs": "^4.1.1",
|
"linkifyjs": "^4.1.1",
|
||||||
"llamaindex": "^0.3.13",
|
"llamaindex": "^0.3.13",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lunary": "^0.6.16",
|
"lunary": "^0.7.10",
|
||||||
"mammoth": "^1.5.1",
|
"mammoth": "^1.5.1",
|
||||||
"meilisearch": "^0.41.0",
|
"meilisearch": "^0.41.0",
|
||||||
"moment": "^2.29.3",
|
"moment": "^2.29.3",
|
||||||
@@ -115,7 +116,6 @@
|
|||||||
"socket.io": "^4.6.1",
|
"socket.io": "^4.6.1",
|
||||||
"srt-parser-2": "^1.2.3",
|
"srt-parser-2": "^1.2.3",
|
||||||
"typeorm": "^0.3.6",
|
"typeorm": "^0.3.6",
|
||||||
"vm2": "^3.9.19",
|
|
||||||
"weaviate-ts-client": "^1.1.0",
|
"weaviate-ts-client": "^1.1.0",
|
||||||
"winston": "^3.9.0",
|
"winston": "^3.9.0",
|
||||||
"ws": "^8.9.0",
|
"ws": "^8.9.0",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const notEmptyRegex = '(.|\\s)*\\S(.|\\s)*' //return true if string is no
|
|||||||
export const FLOWISE_CHATID = 'flowise_chatId'
|
export const FLOWISE_CHATID = 'flowise_chatId'
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* List of dependencies allowed to be import in vm2
|
* List of dependencies allowed to be import in @flowiseai/nodevm
|
||||||
*/
|
*/
|
||||||
export const availableDependencies = [
|
export const availableDependencies = [
|
||||||
'@aws-sdk/client-bedrock-runtime',
|
'@aws-sdk/client-bedrock-runtime',
|
||||||
|
|||||||
Generated
+26
-3326
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user