-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
package.json
213 lines (213 loc) · 8.55 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
{
"name": "agnai",
"version": "1.0.27",
"description": "Agnostic AI Chat",
"keywords": [],
"license": "AGPL-3.0",
"bin": {
"agnaistic": "./srv/bin.js",
"agnai": "./srv/bin.js"
},
"browserslist": "> 0.1%, not ie 11",
"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: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/**/*.css\" \"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 && npm run model:deps",
"model:deps": ".model/bin/poetry install --no-interaction --no-ansi || exit 0",
"model:start": ".model/bin/poetry run python model/app.py",
"model:watch": "npm run model:init && nodemon -e py --watch model --exec \".model/bin/poetry run python model/app.py\"",
"model": "npm run model:init && 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: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:watch\"",
"start:all": "PIPELINE_PROXY=true concurrently -c auto -n web,api,tsc,pipe \"parcel web/index.html --no-cache\" \"npm run server:watch\" \"npm run build:watch\" \"npm run model:watch\"",
"watch": "concurrently -c auto -n web,tsc \"parcel web/index.html --no-cache\" \"npm run build:watch\"",
"start:cluster": "concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache\" \"npm run server:watch\" \"npm run build:watch\"",
"start:https": "concurrently -c auto -n web,api,tsc \"parcel web/index.html --no-cache --https\" \"npm run server:watch\" \"npm run build: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: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:watch\"",
"start:win:all": "set PIPELINE_PROXY=true && concurrently -c auto -n web,api,tsc,pipe \"parcel web/index.html\" \"npm run server:watch\" \"npm run build:watch\" \"npm run model: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:watch\"",
"test": "mocha --inline-diffs --exit \"tests/**.spec.js\"",
"snapshot": "mocha --inline-diffs --exit \"tests/**.spec.js\" --update",
"typecheck": "tsc -p tsconfig.json --noEmit",
"check": "pnpm typecheck && pnpm test",
"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": {
"@agnai/sentencepiece-js": "^1.1.1",
"@agnai/web-tokenizers": "^0.1.3",
"@aws-sdk/client-s3": "^3.309.0",
"@css-hooks/solid": "^1.0.1",
"@dqbd/tiktoken": "^1.0.2",
"@thisbeyond/solid-dnd": "^0.7.5",
"adm-zip": "^0.5.10",
"bcryptjs": "^2.4.3",
"chance": "^1.1.11",
"cors": "^2.8.5",
"cytoscape": "^3.29.2",
"cytoscape-dagre": "^2.5.0",
"dotenv": "^16.0.3",
"easy-speech": "^2.3.1",
"evtstore": "^12.0.1",
"express": "^4.18.2",
"google-auth-library": "^9.11.0",
"gpt-3-encoder": "^1.1.4",
"iconv-lite": "0.6.3",
"js-tiktoken": "^1.0.14",
"jsonwebtoken": "^9.0.0",
"localtunnel": "^2.0.2",
"minimist": "^1.2.8",
"mkdirp": "^2.1.4",
"modern-screenshot": "^4.4.15",
"module-alias": "^2.2.2",
"mongodb": "^5.7.0",
"multer": "1.4.5-lts.1",
"nai-js-tokenizer": "1.0.1",
"needle": "^3.2.0",
"partial-json": "^0.1.7",
"patreon-api.ts": "^0.1.0",
"peggy": "^3.0.2",
"pino": "^8.10.0",
"pino-pretty": "^9.2.0",
"redis": "^4.6.5",
"shepherd.js": "^13.0.3",
"stripe": "^13.7.0",
"throng": "^5.0.0",
"uuid": "^9.0.0",
"wikijs": "^6.4.1",
"ws": "^8.12.1"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@melloware/coloris": "^0.20.0",
"@parcel/config-default": "^2.12.0",
"@parcel/core": "^2.12.0",
"@parcel/resolver-glob": "^2.12.0",
"@parcel/transformer-inline-string": "2.12.0",
"@parcel/transformer-sass": "2.12.0",
"@solidjs/router": "^0.13.1",
"@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/cytoscape": "^3.21.4",
"@types/cytoscape-dagre": "^2.3.3",
"@types/dompurify": "^3.0.2",
"@types/express": "^4.17.17",
"@types/google-publisher-tag": "^1.20230410.0",
"@types/js-cookie": "^3.0.2",
"@types/jsonwebtoken": "^9.0.1",
"@types/localtunnel": "^2.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/sortablejs": "^1.15.1",
"@types/throng": "^5.0.4",
"@types/uuid": "^9.0.0",
"@types/ws": "^8.5.4",
"@xenova/transformers": "^2.7.0",
"assert": "^2.0.0",
"babel-preset-solid": "^1.6.9",
"browserify-zlib": "^0.2.0",
"browserslist": "^4.24.2",
"buffer": "^5.5.0",
"chai": "^4.3.7",
"concurrently": "^7.6.0",
"crypto-browserify": "^3.12.0",
"dompurify": "^3.0.5",
"events": "^3.1.0",
"exifreader": "^4.13.0",
"https-browserify": "^1.0.0",
"js-cookie": "^3.0.1",
"jwt-decode": "^4.0.0",
"libsodium-wrappers-sumo": "^0.7.11",
"localforage": "^1.10.0",
"lucide-solid": "0.356.0",
"mocha": "^10.2.0",
"mocha-chai-jest-snapshot": "^1.1.4",
"nodemon": "^3.0.1",
"parcel": "^2.12.0",
"path-browserify": "^1.0.0",
"pdfdataextract": "^3.2.0",
"pdfjs-dist": "2.10.377",
"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",
"querystring-es3": "^0.2.1",
"showdown": "^2.1.0",
"solid-js": "1.8.17",
"solid-refresh": "^0.7.5",
"sortablejs": "^1.15.0",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"string_decoder": "^1.3.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.4.5",
"url": "^0.11.1",
"util": "^0.12.3",
"values.js": "^2.1.1",
"vite": "^5.3.3",
"vite-plugin-solid": "^2.10.2",
"vite-tsconfig-paths": "^4.3.2",
"zustand": "^4.5.2"
},
"@parcel/resolver-default": {
"packageExports": true
},
"alias": {
"easy-speech": "easy-speech/dist/EasySpeech.cjs.js"
},
"exports": {
"easy-speech": "./node_modules/easy-speech/dist/EasySpeech.cjs.js"
}
}