feat: add dockerfile base + remove ollama from core + add custom ext

This commit is contained in:
Mohamed Marrouchi
2024-10-27 12:23:32 +01:00
parent 4a8d0aaef1
commit bce390be84
11 changed files with 59 additions and 46 deletions

View File

@@ -1,30 +1,30 @@
{
"name": "hexabot",
"private": true,
"version": "2.0.0",
"version": "2.0.2",
"description": "Hexabot is a solution for creating and managing chatbots across multiple channels, leveraging AI for advanced conversational capabilities. It provides a user-friendly interface for building, training, and deploying chatbots with integrated support for various messaging platforms.",
"author": "Hexastack",
"license": "AGPL-3.0-only",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
"src",
"types",
"!src/**/*.spec.ts",
"!src/.hexabot"
],
"scripts": {
"postinstall": "patch-package",
"build:clean": "rm -rf src/.hexabot",
"build:channels": "mkdir -p src/.hexabot/extensions/channels && find node_modules/ -name 'hexabot-channel-*' -exec cp -R {} src/.hexabot/extensions/channels/ \\;",
"build:helpers": "mkdir -p src/.hexabot/extensions/helpers && find node_modules/ -name 'hexabot-helper-*' -exec cp -R {} src/.hexabot/extensions/helpers/ \\;",
"build:plugins": "mkdir -p src/.hexabot/extensions/plugins && find node_modules/ -name 'hexabot-plugin-*' -exec cp -R {} src/.hexabot/extensions/plugins/ \\;",
"build:extensions": "npm run build:channels && npm run build:helpers && npm run build:plugins",
"build:prepare": "npm run build:clean && npm run build:extensions",
"build": "npm run build:prepare && nest build && npm run copy-types",
"cache:channels": "mkdir -p src/.hexabot/contrib/extensions/channels && find node_modules/ -name 'hexabot-channel-*' -exec cp -R {} src/.hexabot/contrib/extensions/channels/ \\;",
"cache:helpers": "mkdir -p src/.hexabot/contrib/extensions/helpers && find node_modules/ -name 'hexabot-helper-*' -exec cp -R {} src/.hexabot/contrib/extensions/helpers/ \\;",
"cache:plugins": "mkdir -p src/.hexabot/contrib/extensions/plugins && find node_modules/ -name 'hexabot-plugin-*' -exec cp -R {} src/.hexabot/contrib/extensions/plugins/ \\;",
"cache:contrib": "rm -rf src/.hexabot/contrib && npm run cache:channels && npm run cache:helpers && npm run cache:plugins",
"cache:custom": "mkdir -p src/.hexabot/custom/extensions",
"cache:prepare": "npm run cache:contrib && npm run cache:custom",
"build": "npm run cache:prepare && nest build && npm run copy-types",
"copy-types": "cp -R types dist/types",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start",
"doc": "npx @compodoc/compodoc --hideGenerator -p tsconfig.doc.json -s -r 9003 -w",
"start:dev": "npm run build:prepare && nest start --watch",
"start:debug": "npm run build:prepare && nest start --debug 0.0.0.0:9229 --watch",
"start:dev": "npm run cache:prepare && nest start --watch",
"start:debug": "npm run cache:prepare && nest start --debug 0.0.0.0:9229 --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
@@ -39,7 +39,11 @@
"typecheck": "tsc --noEmit",
"reset": "npm install && npm run containers:restart",
"reset:hard": "npm clean-install && npm run containers:rebuild",
"migrate": "npx ts-migrate-mongoose --config-path ./migrations/config/migrate.ts"
"migrate": "npx ts-migrate-mongoose --config-path ./migrations/config/migrate.ts",
"docker:build-base": "docker build --pull --rm -f Dockerfile.base -t hexabot-base:latest .",
"docker:tag-base": "docker tag hexabot-base:latest hexastack/hexabot-base:latest",
"docker:push-base": "docker push hexastack/hexabot-base:latest",
"docker:release-base": "npm run docker:build-base && npm run docker:tag-base && npm run docker:push-base"
},
"dependencies": {
"@nestjs-modules/mailer": "^1.11.2",
@@ -65,8 +69,6 @@
"dotenv": "^16.3.1",
"ejs": "^3.1.9",
"express-session": "^1.17.3",
"hexabot-helper-ollama": "^2.0.0",
"hexabot-plugin-ollama": "^2.0.0",
"joi": "^17.11.0",
"module-alias": "^2.2.3",
"mongoose": "^8.0.0",
@@ -173,4 +175,4 @@
"@/(.*)": "<rootDir>/$1"
}
}
}
}