1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-09 11:44:54 +03:00
leon/package.json

148 lines
7.3 KiB
JSON
Raw Normal View History

2019-02-10 15:26:50 +03:00
{
"name": "leon",
2023-05-01 05:23:19 +03:00
"version": "1.0.0-beta.9+dev",
"description": "Server, skills and web app of the Leon personal assistant",
2019-02-10 15:26:50 +03:00
"author": {
"name": "Louis Grenard",
2022-08-23 18:01:46 +03:00
"email": "louis@getleon.ai",
2022-02-19 04:24:34 +03:00
"url": "https://twitter.com/grenlouis"
2019-02-10 15:26:50 +03:00
},
"license": "MIT",
"homepage": "https://getleon.ai",
"repository": {
"type": "git",
"url": "git+https://github.com/leon-ai/leon.git"
},
"bugs": {
"url": "https://github.com/leon-ai/leon/issues"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
2019-02-10 15:26:50 +03:00
"scripts": {
2022-08-28 06:37:32 +03:00
"lint": "ts-node scripts/lint.js",
"test": "npm run test:json && npm run test:over-http && npm run test:unit && npm run test:e2e",
"test:unit": "npm run train en && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing jest --forceExit --silent --projects test/unit/unit.jest.json && npm run train",
2019-02-10 15:26:50 +03:00
"test:e2e": "npm run test:e2e:nlp-modules && npm run test:e2e:modules",
"test:e2e:modules": "ts-node scripts/run-clean-test-dbs.js && npm run train en && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing jest --forceExit --silent --verbose --projects test/e2e/modules/e2e.modules.jest.json && ts-node scripts/run-clean-test-dbs.js && npm run train",
"test:e2e:nlp-modules": "npm run train en && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing jest --forceExit --silent --verbose --setupTestFrameworkScriptFile=./test/paths.setup.js test/e2e/nlp-modules.spec.js && npm run train",
2019-02-10 15:26:50 +03:00
"test:json": "jest --silent --projects test/json/json.jest.json",
"test:over-http": "npm run generate:skills-endpoints && npm run train && cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile LEON_NODE_ENV=testing LEON_HOST=http://localhost LEON_PORT=1338 LEON_HTTP_API_KEY=72aeb5ba324580963114481144385d7179c106fc jest --forceExit --silent --verbose --notify=false --bail --collectCoverage=false test/e2e/over-http.spec.js",
2022-08-28 06:37:32 +03:00
"test:module": "ts-node scripts/test-module.js",
"setup:offline": "ts-node scripts/setup-offline/setup-offline.js",
"setup:offline-stt": "ts-node scripts/setup-offline/run-setup-stt.js",
"setup:offline-tts": "ts-node scripts/setup-offline/run-setup-tts.js",
"setup:offline-hotword": "ts-node scripts/setup-offline/run-setup-hotword.js",
2022-10-07 05:41:04 +03:00
"setup:python-bridge": "ts-node scripts/setup/setup-python-dev-env.js python-bridge",
"setup:tcp-server": "ts-node scripts/setup/setup-python-dev-env.js tcp-server",
2019-02-10 15:26:50 +03:00
"preinstall": "node scripts/setup/preinstall.js",
2022-08-28 06:37:32 +03:00
"postinstall": "ts-node scripts/setup/setup.js",
2021-03-15 20:11:40 +03:00
"dev:app": "vite --config app/vite.config.js",
"dev:server": "npm run train && npm run generate:skills-endpoints && cross-env LEON_NODE_ENV=development tsc-watch --noClear --onSuccess \"nodemon\"",
"dev:server:no-lint": "npm run train && npm run generate:skills-endpoints && cross-env LEON_NODE_ENV=development \"nodemon\"",
2019-05-25 07:07:11 +03:00
"wake": "cross-env LEON_HOST=http://localhost LEON_PORT=1337 node hotword/index.js",
2019-02-10 15:26:50 +03:00
"delete-dist:server": "shx rm -rf ./server/dist",
"clean:python-deps": "shx rm -rf ./bridges/python/src/.venv && npm run postinstall",
2021-12-27 17:57:06 +03:00
"prepare": "husky install",
2022-08-28 06:37:32 +03:00
"generate:skills-endpoints": "ts-node scripts/generate/run-generate-skills-endpoints.js",
"generate:http-api-key": "ts-node scripts/generate/run-generate-http-api-key.js",
2023-01-06 23:18:19 +03:00
"generate:json-schemas": "ts-node scripts/generate/run-generate-json-schemas.js",
2021-12-27 13:02:32 +03:00
"build": "npm run build:app && npm run build:server",
2022-08-28 06:37:32 +03:00
"build:app": "cross-env LEON_NODE_ENV=production ts-node scripts/app/run-build-app.js",
2023-04-30 16:36:07 +03:00
"build:server": "npm run delete-dist:server && npm run train && npm run generate:skills-endpoints && tsc --project tsconfig.json && resolve-tspaths && shx rm -rf server/dist/core server/dist/package.json && shx mv -f server/dist/server/src/* server/dist && shx rm -rf server/dist/server && shx mkdir -p server/dist/tmp",
"build:nodejs-bridge": "ts-node scripts/build-binaries.js nodejs-bridge",
2022-10-07 05:41:04 +03:00
"build:python-bridge": "ts-node scripts/build-binaries.js python-bridge",
"build:tcp-server": "ts-node scripts/build-binaries.js tcp-server",
"start:tcp-server": "cross-env PIPENV_PIPFILE=tcp_server/src/Pipfile pipenv run python tcp_server/src/main.py",
"start": "cross-env LEON_NODE_ENV=production node server/dist/pre-check.js && node server/dist/index.js",
2022-11-06 16:57:04 +03:00
"python-bridge": "cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile pipenv run python bridges/python/src/main.py server/src/intent-object.sample.json",
2022-08-28 06:37:32 +03:00
"train": "ts-node scripts/train/run-train.js",
"prepare-release": "ts-node scripts/release/prepare-release.js",
"skill-package": "ts-node scripts/skill-package.js",
2023-04-30 18:39:39 +03:00
"pre-release:nodejs-bridge": "ts-node scripts/release/pre-release-binaries.js nodejs-bridge",
"pre-release:python-bridge": "ts-node scripts/release/pre-release-binaries.js python-bridge",
"pre-release:tcp-server": "ts-node scripts/release/pre-release-binaries.js tcp-server",
"check": "ts-node scripts/check.js",
"docker:build": "docker build -t leon-ai/leon .",
"docker:run": "docker compose up",
"docker:dev": "docker compose --file=docker-compose.dev.yml up",
"docker:check": "docker run --rm --interactive leon-ai/leon npm run check"
2019-02-10 15:26:50 +03:00
},
"dependencies": {
2023-02-11 06:36:08 +03:00
"@aws-sdk/client-polly": "3.18.0",
2023-03-20 18:37:55 +03:00
"@fastify/static": "6.9.0",
2023-02-11 06:36:08 +03:00
"@ffmpeg-installer/ffmpeg": "1.1.0",
"@ffprobe-installer/ffprobe": "1.4.1",
"@google-cloud/speech": "4.2.0",
"@google-cloud/text-to-speech": "3.2.1",
"@nlpjs/builtin-microsoft": "4.22.7",
"@nlpjs/core-loader": "4.22.7",
"@nlpjs/lang-all": "4.22.12",
"@nlpjs/nlp": "4.22.17",
2022-11-13 15:00:15 +03:00
"@segment/ajv-human-errors": "2.1.2",
"@sinclair/typebox": "0.25.8",
"ajv": "8.11.0",
"ajv-formats": "2.1.1",
2023-02-11 06:36:08 +03:00
"archiver": "5.3.1",
2023-03-20 18:46:27 +03:00
"async": "3.2.4",
"axios": "1.1.2",
2023-02-11 06:36:08 +03:00
"cross-env": "7.0.3",
"dayjs": "1.11.5",
"dotenv": "10.0.0",
"execa": "5.0.0",
"extract-zip": "2.0.1",
2023-03-20 18:37:55 +03:00
"fastify": "4.15.0",
2023-02-11 06:36:08 +03:00
"fluent-ffmpeg": "2.1.2",
"getos": "3.2.1",
"googleapis": "67.1.1",
"ibm-watson": "6.1.1",
2019-02-10 15:26:50 +03:00
"node-wav": "0.0.2",
2023-02-11 06:36:08 +03:00
"os-name": "4.0.1",
"pretty-bytes": "5.6.0",
"pretty-ms": "7.0.1",
"socket.io": "4.5.2",
"socket.io-client": "4.5.2",
"stt": "1.4.0",
"tree-kill": "1.2.2"
2019-02-10 15:26:50 +03:00
},
"devDependencies": {
2023-02-11 06:36:08 +03:00
"@nlpjs/utils": "4.24.1",
"@swc/core": "1.3.14",
2023-03-20 18:35:07 +03:00
"@tsconfig/node16-strictest": "1.0.4",
"@types/archiver": "5.3.2",
"@types/cli-spinner": "0.2.1",
2023-02-11 06:36:08 +03:00
"@types/fluent-ffmpeg": "2.1.20",
"@types/getos": "3.0.1",
2023-02-11 06:36:08 +03:00
"@types/node": "18.7.13",
"@types/node-wav": "0.0.0",
2023-03-20 18:35:07 +03:00
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
2023-05-06 16:38:49 +03:00
"@vercel/ncc": "0.36.1",
2023-02-11 06:36:08 +03:00
"cli-spinner": "0.2.10",
"eslint": "8.22.0",
2023-02-11 06:36:08 +03:00
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-typescript": "3.5.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-unicorn": "43.0.2",
2023-02-11 06:36:08 +03:00
"git-changelog": "2.0.0",
"husky": "7.0.0",
"inquirer": "8.1.0",
"jest": "27.4.7",
"jest-canvas-mock": "2.3.1",
"jest-extended": "2.0.0",
"json": "10.0.0",
"lint-staged": "13.0.3",
"nodemon": "2.0.19",
"prettier": "2.8.7",
2023-03-20 18:35:07 +03:00
"resolve-tspaths": "0.8.8",
2023-02-11 06:36:08 +03:00
"semver": "7.3.5",
"shx": "0.3.3",
"ts-node": "10.9.1",
2023-03-20 18:35:07 +03:00
"tsc-watch": "6.0.0",
"tsconfig-paths": "4.1.2",
"typescript": "5.0.2",
2023-02-11 06:36:08 +03:00
"vite": "3.0.9"
2019-02-10 15:26:50 +03:00
}
}