forked from agnaistic/agnai
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
162 lines (162 loc) · 6.76 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "agnai",
"version": "1.0.27",
"description": "Agnostic AI Chat",
"keywords": [],
"license": "AGPL-3.0",
"bin": {
"agnaistic": "./srv/bin.js",
"agnai": "./srv/bin.js"
},
"homepage": "https://github.com/agnaistic/agnai/issues",
"files": [
"poetry.lock",
"pyproject.toml",
"srv/**",
"srv/**/*.map",
"model/**/*.py",
"model/**/*.yml",
"common/*",
"dist/index.*",
"db/.gitkeep",
"dist/*.js",
"dist/*.css",
"dist/*.map"
],
"_moduleAliases": {
"srv": "./srv",
"/srv": "./srv",
"/common": "./common",
"common": "./common"
},
"scripts": {
"clean": "npx rimraf@5 --glob \"dist/*.js\" \"dist/*.css\" \"dist/*.map\"",
"prepublishOnly": "npm run clean && npm run build",
"prebuild": "npm run clean",
"build": "parcel build web/index.html --no-optimize --detailed-report",
"build:prod": "NODE_ENV=production parcel build web/index.html --detailed-report",
"build:win": "parcel build web/index.html --no-optimize --detailed-report",
"build:all": "npm run build && npm run build:server",
"build:all:win": "npm run build:win && npm run build:server",
"build:api": "tsc -p api.tsconfig.json",
"build:server": "tsc -p srv.tsconfig.json",
"build:server:watch": "tsc -p srv.tsconfig.json -w",
"format": "prettier --check \"web/**/*.tsx\" \"web/**/*.ts\" \"web/**/*.css\" \"web/**/*.html\" && prettier --check \"srv/**/*.ts\"",
"format:fix": "prettier \"web/**/*.ts\" \"web/**/*.tsx\" --write && prettier \"srv/**/*.ts\" --write && prettier \"common/**/*.ts\" --write",
"model:init": "python3 -m venv ./.model && .model/bin/pip install poetry==1.4.1 && .model/bin/poetry config virtualenvs.in-project true",
"model:deps": ".model/bin/poetry install --no-interaction --no-ansi",
"model:start": ".model/bin/poetry run python model/app.py",
"model:watch": "nodemon -e py --watch model --exec \"python -m flask --app model/app.py run --host 0.0.0.0 -p 5001\"",
"model": "npm run model:start",
"server": "node srv/start.js",
"server:watch": "nodemon -e js --delay 2 --watch srv --watch common --watch \".env\" --exec \"node --inspect srv/start.js\"",
"start:all": "concurrently -c auto -n web,api,tsc \"parcel web/index.html\" \"npm run server:watch\" \"npm run build:server:watch\"",
"start:web": "parcel web/index.html",
"start": "concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache\" \"npm run server:watch\" \"npm run build:server:watch\"",
"watch": "concurrently -c auto -n web,tsc \"parcel web/index.html --no-cache\" \"npm run build:server:watch\"",
"start:cluster": "concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache\" \"npm run server:watch\" \"npm run build:server:watch\"",
"start:https": "concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache --https\" \"npm run server:watch\" \"npm run build:server:watch\"",
"start:debug": "LOG_LEVEL=debug concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache\" \"npm run server:watch\" \"npm run build:server:watch\"",
"start:public": "concurrently -c auto -n web,api,lt \"parcel watch web/index.html\" \"npm run server:watch\" \"npx lt --port 3001\"",
"start:public:win": "concurrently -c auto -n web,api,lt \"parcel watch web/index.html\" \"npm run server:watch\" \"npx lt --local-host 127.0.0.1 --port 3001\"",
"start:win": "concurrently -c auto -n web,api,tsc \"parcel web/index.html\" \"npm run server:watch\" \"npm run build:server:watch\"",
"selfhost": "npm run deps && npm run build:all && SELF_HOST=1 npm run server",
"selfhost:win": "set \"SELF_HOST=1\" && npm run deps && npm run build:all && npm run server",
"start:debug:win": "set LOG_LEVEL=debug && concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache\" \"npm run server:watch\" \"npm run build:server:watch\"",
"test": "mocha --inline-diffs \"tests/**.spec.js\"",
"snapshot": "UPDATE_SNAPSHOT=1 mocha --inline-diffs \"tests/**.spec.js\"",
"typecheck": "tsc -p tsconfig.json",
"checks": "pnpm format && pnpm typecheck && pnpm test",
"up": "docker compose -p agnai up -d",
"deps": "npx --yes [email protected] install --lockfile",
"web": "parcel web/index.html --no-cache",
"api": "tsc -p api.tsconfig.json --watch"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.309.0",
"@dqbd/tiktoken": "^1.0.2",
"@mlc-ai/web-tokenizers": "^0.1.0",
"adm-zip": "^0.5.10",
"bcryptjs": "^2.4.3",
"chance": "^1.1.11",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"gpt-3-encoder": "^1.1.4",
"jsonwebtoken": "^9.0.0",
"minimist": "^1.2.8",
"mkdirp": "^2.1.4",
"modern-screenshot": "^4.4.15",
"module-alias": "^2.2.2",
"mongodb": "^5.1.0",
"multer": "^1.4.5-lts.1",
"needle": "^3.2.0",
"peggy": "^3.0.2",
"pino": "^8.10.0",
"pino-pretty": "^9.2.0",
"redis": "^4.6.5",
"sentencepiece-js": "^1.1.0",
"throng": "^5.0.0",
"uuid": "^9.0.0",
"ws": "^8.12.1"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@melloware/coloris": "^0.20.0",
"@parcel/config-default": "^2.9.3",
"@parcel/core": "^2.9.3",
"@parcel/resolver-glob": "^2.9.2",
"@parcel/transformer-inline-string": "2.9.3",
"@parcel/transformer-sass": "2.9.3",
"@solidjs/router": "^0.8.2",
"@types/adm-zip": "^0.5.0",
"@types/bcryptjs": "^2.4.2",
"@types/chai": "^4.3.4",
"@types/chance": "^1.1.3",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/google-publisher-tag": "^1.20230410.0",
"@types/js-cookie": "^3.0.2",
"@types/jsonwebtoken": "^9.0.1",
"@types/mocha": "^10.0.1",
"@types/multer": "^1.4.7",
"@types/needle": "^3.2.0",
"@types/node": "^18.13.0",
"@types/showdown": "^2.0.0",
"@types/throng": "^5.0.4",
"@types/uuid": "^9.0.0",
"@types/ws": "^8.5.4",
"babel-preset-solid": "^1.6.9",
"buffer": "^5.5.0",
"chai": "^4.3.7",
"concurrently": "^7.6.0",
"crypto-browserify": "^3.12.0",
"events": "^3.1.0",
"js-cookie": "^3.0.1",
"localforage": "^1.10.0",
"localtunnel": "^2.0.2",
"lucide-solid": "0.252.0",
"mocha": "^10.2.0",
"mocha-chai-jest-snapshot": "^1.1.4",
"nodemon": "^3.0.1",
"parcel": "^2.9.3",
"path-browserify": "^1.0.0",
"png-chunk-text": "^1.0.0",
"png-chunks-encode": "^1.0.0",
"png-chunks-extract": "^1.0.0",
"postcss": "^8.4.21",
"prettier": "^2.8.3",
"prettier-plugin-tailwindcss": "^0.2.1",
"process": "^0.11.10",
"punycode": "^1.4.1",
"showdown": "^2.1.0",
"solid-js": "1.7.6",
"stream-browserify": "^3.0.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.1.3",
"url": "^0.11.0",
"util": "^0.12.3",
"values.js": "^2.1.1",
"zustand": "^4.3.3"
}
}