mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-28 04:04:58 +03:00
Merge branch 'develop' into feat/add-typebox-ajv
This commit is contained in:
commit
f13df6ab76
@ -1,3 +1,9 @@
|
|||||||
node_modules/
|
__pycache__/
|
||||||
bridges/python/src/.venv/*
|
**/dist/*
|
||||||
dist/*
|
**/build/
|
||||||
|
**/node_modules/
|
||||||
|
**/tmp/*
|
||||||
|
**/src/.venv/*
|
||||||
|
logs/*
|
||||||
|
*.pyc
|
||||||
|
.DS_Store
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:20.04
|
||||||
ENV IS_DOCKER true
|
ENV IS_DOCKER true
|
||||||
|
|
||||||
# Replace shell with bash so we can source files
|
# Replace shell with bash so we can source files
|
||||||
@ -16,6 +16,8 @@ RUN apt-get update && apt-get install --yes -q --no-install-recommends \
|
|||||||
git \
|
git \
|
||||||
wget \
|
wget \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
openssl \
|
||||||
|
libz-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
@ -26,7 +28,10 @@ RUN apt-get update && apt-get install --yes -q --no-install-recommends \
|
|||||||
tk-dev libxml2-dev \
|
tk-dev libxml2-dev \
|
||||||
libxmlsec1-dev \
|
libxmlsec1-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
liblzma-dev
|
liblzma-dev \
|
||||||
|
libgdbm-dev \
|
||||||
|
libnss3-dev \
|
||||||
|
libc6-dev
|
||||||
|
|
||||||
# Run the container as an unprivileged user
|
# Run the container as an unprivileged user
|
||||||
RUN groupadd docker && useradd -g docker -s /bin/bash -m docker
|
RUN groupadd docker && useradd -g docker -s /bin/bash -m docker
|
||||||
|
16
README.md
16
README.md
@ -172,6 +172,13 @@ You'll find a write-up on this [blog post](https://blog.getleon.ai/the-story-beh
|
|||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td align="center" valign="middle" width="128">
|
||||||
|
<a href="https://github.com/Appwrite">
|
||||||
|
<img src="https://github.com/Appwrite.png?size=128" />
|
||||||
|
Appwrite
|
||||||
|
</a><br>
|
||||||
|
<sub><sup>250 USD / month</sup></sub>
|
||||||
|
</td>
|
||||||
<td align="center" valign="middle" width="128">
|
<td align="center" valign="middle" width="128">
|
||||||
<img src="https://getleon.ai/img/anonymous.svg" width="128" />
|
<img src="https://getleon.ai/img/anonymous.svg" width="128" />
|
||||||
Anonymous
|
Anonymous
|
||||||
@ -192,6 +199,13 @@ You'll find a write-up on this [blog post](https://blog.getleon.ai/the-story-beh
|
|||||||
</a><br>
|
</a><br>
|
||||||
<sub><sup>10 USD / month</sup></sub>
|
<sub><sup>10 USD / month</sup></sub>
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center" valign="middle" width="128">
|
||||||
|
<a href="https://github.com/andrinmeier">
|
||||||
|
<img src="https://github.com/andrinmeier.png?size=128" />
|
||||||
|
Andrin Meier
|
||||||
|
</a><br>
|
||||||
|
<sub><sup>10 USD / month</sup></sub>
|
||||||
|
</td>
|
||||||
<td align="center" valign="middle" width="128">
|
<td align="center" valign="middle" width="128">
|
||||||
<a href="http://sponsor.getleon.ai/">
|
<a href="http://sponsor.getleon.ai/">
|
||||||
You?
|
You?
|
||||||
@ -220,7 +234,7 @@ The focus is not only limited to the activity you see on GitHub but also a lot o
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="https://www.aoz.studio">
|
<a href="https://www.aoz.studio">
|
||||||
<img src="https://user-images.githubusercontent.com/1731544/153794939-c42f1b10-a15d-4e82-b448-dc95bfe85b1c.png" alt="AOZ Studio" width="64" />
|
<img src="https://getleon.ai/_next/image?url=%2Fimg%2Fthanks%2Faoz-studio.png&w=384&q=75" alt="AOZ Studio" width="128" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
## 📝 License
|
## 📝 License
|
||||||
|
155
package-lock.json
generated
155
package-lock.json
generated
@ -31,9 +31,11 @@
|
|||||||
"extract-zip": "2.0.1",
|
"extract-zip": "2.0.1",
|
||||||
"fastify": "^4.5.3",
|
"fastify": "^4.5.3",
|
||||||
"fluent-ffmpeg": "^2.1.2",
|
"fluent-ffmpeg": "^2.1.2",
|
||||||
|
"getos": "^3.2.1",
|
||||||
"googleapis": "^67.1.1",
|
"googleapis": "^67.1.1",
|
||||||
"ibm-watson": "^6.1.1",
|
"ibm-watson": "^6.1.1",
|
||||||
"node-wav": "0.0.2",
|
"node-wav": "0.0.2",
|
||||||
|
"os-name": "^4.0.1",
|
||||||
"pretty-bytes": "^5.6.0",
|
"pretty-bytes": "^5.6.0",
|
||||||
"pretty-ms": "^7.0.1",
|
"pretty-ms": "^7.0.1",
|
||||||
"socket.io": "^4.5.2",
|
"socket.io": "^4.5.2",
|
||||||
@ -6735,6 +6737,14 @@
|
|||||||
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
|
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/getos": {
|
||||||
|
"version": "3.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
|
||||||
|
"integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
|
||||||
|
"dependencies": {
|
||||||
|
"async": "^3.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/git-changelog": {
|
"node_modules/git-changelog": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -9900,6 +9910,17 @@
|
|||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/macos-release": {
|
||||||
|
"version": "2.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.0.tgz",
|
||||||
|
"integrity": "sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/make-dir": {
|
"node_modules/make-dir": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -10637,6 +10658,21 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/os-name": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/os-name/-/os-name-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-xl9MAoU97MH1Xt5K9ERft2YfCAoaO6msy1OBA0ozxEC0x0TmIoE6K3QvgJMMZA9yKGLmHXNY/YZoDbiGDj4zYw==",
|
||||||
|
"dependencies": {
|
||||||
|
"macos-release": "^2.5.0",
|
||||||
|
"windows-release": "^4.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/os-tmpdir": {
|
"node_modules/os-tmpdir": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -13111,6 +13147,64 @@
|
|||||||
"string-width": "^1.0.2 || 2 || 3 || 4"
|
"string-width": "^1.0.2 || 2 || 3 || 4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/windows-release": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/windows-release/-/windows-release-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-OxmV4wzDKB1x7AZaZgXMVsdJ1qER1ed83ZrTYd5Bwq2HfJVg3DJS8nqlAG4sMoJ7mu8cuRmLEYyU13BKwctRAg==",
|
||||||
|
"dependencies": {
|
||||||
|
"execa": "^4.0.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/windows-release/node_modules/execa": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
|
||||||
|
"integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
|
||||||
|
"dependencies": {
|
||||||
|
"cross-spawn": "^7.0.0",
|
||||||
|
"get-stream": "^5.0.0",
|
||||||
|
"human-signals": "^1.1.1",
|
||||||
|
"is-stream": "^2.0.0",
|
||||||
|
"merge-stream": "^2.0.0",
|
||||||
|
"npm-run-path": "^4.0.0",
|
||||||
|
"onetime": "^5.1.0",
|
||||||
|
"signal-exit": "^3.0.2",
|
||||||
|
"strip-final-newline": "^2.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sindresorhus/execa?sponsor=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/windows-release/node_modules/get-stream": {
|
||||||
|
"version": "5.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
|
||||||
|
"integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
|
||||||
|
"dependencies": {
|
||||||
|
"pump": "^3.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/windows-release/node_modules/human-signals": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.12.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/wmf": {
|
"node_modules/wmf": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -17906,6 +18000,14 @@
|
|||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"getos": {
|
||||||
|
"version": "3.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
|
||||||
|
"integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
|
||||||
|
"requires": {
|
||||||
|
"async": "^3.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"git-changelog": {
|
"git-changelog": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -20083,6 +20185,11 @@
|
|||||||
"yallist": "^4.0.0"
|
"yallist": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"macos-release": {
|
||||||
|
"version": "2.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.0.tgz",
|
||||||
|
"integrity": "sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g=="
|
||||||
|
},
|
||||||
"make-dir": {
|
"make-dir": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -20559,6 +20666,15 @@
|
|||||||
"os-homedir": {
|
"os-homedir": {
|
||||||
"version": "1.0.2"
|
"version": "1.0.2"
|
||||||
},
|
},
|
||||||
|
"os-name": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/os-name/-/os-name-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-xl9MAoU97MH1Xt5K9ERft2YfCAoaO6msy1OBA0ozxEC0x0TmIoE6K3QvgJMMZA9yKGLmHXNY/YZoDbiGDj4zYw==",
|
||||||
|
"requires": {
|
||||||
|
"macos-release": "^2.5.0",
|
||||||
|
"windows-release": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"os-tmpdir": {
|
"os-tmpdir": {
|
||||||
"version": "1.0.2"
|
"version": "1.0.2"
|
||||||
},
|
},
|
||||||
@ -22109,6 +22225,45 @@
|
|||||||
"string-width": "^1.0.2 || 2 || 3 || 4"
|
"string-width": "^1.0.2 || 2 || 3 || 4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"windows-release": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/windows-release/-/windows-release-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-OxmV4wzDKB1x7AZaZgXMVsdJ1qER1ed83ZrTYd5Bwq2HfJVg3DJS8nqlAG4sMoJ7mu8cuRmLEYyU13BKwctRAg==",
|
||||||
|
"requires": {
|
||||||
|
"execa": "^4.0.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"execa": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
|
||||||
|
"integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
|
||||||
|
"requires": {
|
||||||
|
"cross-spawn": "^7.0.0",
|
||||||
|
"get-stream": "^5.0.0",
|
||||||
|
"human-signals": "^1.1.1",
|
||||||
|
"is-stream": "^2.0.0",
|
||||||
|
"merge-stream": "^2.0.0",
|
||||||
|
"npm-run-path": "^4.0.0",
|
||||||
|
"onetime": "^5.1.0",
|
||||||
|
"signal-exit": "^3.0.2",
|
||||||
|
"strip-final-newline": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"get-stream": {
|
||||||
|
"version": "5.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
|
||||||
|
"integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
|
||||||
|
"requires": {
|
||||||
|
"pump": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"human-signals": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"wmf": {
|
"wmf": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"dev": true
|
"dev": true
|
||||||
|
@ -85,9 +85,11 @@
|
|||||||
"extract-zip": "2.0.1",
|
"extract-zip": "2.0.1",
|
||||||
"fastify": "^4.5.3",
|
"fastify": "^4.5.3",
|
||||||
"fluent-ffmpeg": "^2.1.2",
|
"fluent-ffmpeg": "^2.1.2",
|
||||||
|
"getos": "^3.2.1",
|
||||||
"googleapis": "^67.1.1",
|
"googleapis": "^67.1.1",
|
||||||
"ibm-watson": "^6.1.1",
|
"ibm-watson": "^6.1.1",
|
||||||
"node-wav": "0.0.2",
|
"node-wav": "0.0.2",
|
||||||
|
"os-name": "^4.0.1",
|
||||||
"pretty-bytes": "^5.6.0",
|
"pretty-bytes": "^5.6.0",
|
||||||
"pretty-ms": "^7.0.1",
|
"pretty-ms": "^7.0.1",
|
||||||
"socket.io": "^4.5.2",
|
"socket.io": "^4.5.2",
|
||||||
|
@ -7,6 +7,8 @@ import { command } from 'execa'
|
|||||||
import semver from 'semver'
|
import semver from 'semver'
|
||||||
import kill from 'tree-kill'
|
import kill from 'tree-kill'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
import osName from 'os-name'
|
||||||
|
import getos from 'getos'
|
||||||
|
|
||||||
import { version } from '@@/package.json'
|
import { version } from '@@/package.json'
|
||||||
import { LogHelper } from '@/helpers/log-helper'
|
import { LogHelper } from '@/helpers/log-helper'
|
||||||
@ -133,9 +135,20 @@ dotenv.config()
|
|||||||
platform: os.platform(),
|
platform: os.platform(),
|
||||||
arch: os.arch(),
|
arch: os.arch(),
|
||||||
cpus: os.cpus().length,
|
cpus: os.cpus().length,
|
||||||
release: os.release()
|
release: os.release(),
|
||||||
|
osName: osName(),
|
||||||
|
distro: null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (osInfo.platform === 'linux') {
|
||||||
|
getos((e, os) => {
|
||||||
|
osInfo.distro = os
|
||||||
LogHelper.success(`${JSON.stringify(osInfo)}\n`)
|
LogHelper.success(`${JSON.stringify(osInfo)}\n`)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
LogHelper.success(`${JSON.stringify(osInfo)}\n`)
|
||||||
|
}
|
||||||
|
|
||||||
pastebinData.environment.osDetails = osInfo
|
pastebinData.environment.osDetails = osInfo
|
||||||
;(
|
;(
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
Loading…
Reference in New Issue
Block a user