forked from withcatai/node-llama-cpp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
149 lines (149 loc) · 4.52 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
{
"name": "node-llama-cpp",
"version": "0.1.0",
"description": "Run AI models locally on your machine with node.js bindings for llama.cpp. Force a JSON schema on the model output on the generation level",
"main": "dist/index.js",
"type": "module",
"types": "./dist/index.d.ts",
"bin": {
"node-llama-cpp": "./dist/cli/cli.js"
},
"files": [
"dist/",
"llama/",
"llamaBins/",
"package.json",
"README.md",
"LICENSE"
],
"exports": {
".": {
"import": "./dist/index.js",
"node": "./dist/index.js",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./commands": {
"import": "./dist/commands.js",
"node": "./dist/commands.js",
"types": "./dist/commands.d.ts",
"default": "./dist/commands.js"
},
"./commands.js": {
"import": "./dist/commands.js",
"node": "./dist/commands.js",
"types": "./dist/commands.d.ts",
"default": "./dist/commands.js"
}
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"prepare": "[ \"$CI\" = true ] || [ -d '.husky/_' ] || husky install",
"prebuild": "rimraf ./dist ./tsconfig.tsbuildinfo",
"build": "tsc --build tsconfig.json --force",
"addPostinstallScript": "npm pkg set scripts.postinstall=\"node ./dist/cli/cli.js postinstall\"",
"prewatch": "rimraf ./dist ./tsconfig.tsbuildinfo",
"watch": "tsc --build tsconfig.json --watch --force",
"cmake-js-llama": "cd llama && cmake-js",
"test": "npm run test:typescript && npm run lint:eslint && npm run test:standalone",
"test:standalone": "vitest run ./test",
"test:standalone:interactive": "vitest watch ./test",
"test:typescript": "tsc --build tsconfig.json --dry --force",
"lint": "npm run lint:eslint",
"lint:eslint": "eslint --ext .js --ext .ts .",
"format": "npm run lint:eslint -- --fix",
"dev:setup": "npm run build && node ./dist/cli/cli.js download && npm run docs:generateTypedoc",
"dev:build": "npm run build && node ./dist/cli/cli.js build",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo",
"docs:generateTypedoc": "typedoc && rimraf ./docs/api/index.md ./docs/api/exports.md",
"docs:dev": "npm run docs:generateTypedoc && vitepress dev",
"docs:build": "npm run docs:generateTypedoc && vitepress build",
"docs:preview": "npm run docs:generateTypedoc && vitepress preview"
},
"repository": {
"type": "git",
"url": "git+https://github.com/withcatai/node-llama-cpp.git"
},
"keywords": [
"llama",
"llama-cpp",
"llama.cpp",
"bindings",
"ai",
"cmake",
"cmake-js",
"prebuilt-binaries",
"llm",
"gguf",
"metal",
"cuda",
"grammar",
"json-grammar",
"json-schema-grammar",
"temperature",
"topK",
"topP",
"json-schema",
"raspberry-pi",
"self-hosted",
"local",
"catai"
],
"author": "Gilad S.",
"license": "MIT",
"bugs": {
"url": "https://github.com/withcatai/node-llama-cpp/issues"
},
"homepage": "https://withcatai.github.io/node-llama-cpp/",
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@semantic-release/exec": "^6.0.3",
"@types/cli-progress": "^3.11.0",
"@types/cross-spawn": "^6.0.2",
"@types/fs-extra": "^11.0.1",
"@types/node": "^20.8.4",
"@types/uuid": "^9.0.2",
"@types/which": "^3.0.0",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.46.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-node": "github:giladgd/eslint-plugin-node#dev/giladgd/fixImportExtentionFixingInTypeScript",
"husky": "^8.0.3",
"rimraf": "^5.0.1",
"semantic-release": "^21.0.7",
"ts-node": "^10.9.1",
"tslib": "^2.6.1",
"typedoc": "^0.25.1",
"typedoc-plugin-markdown": "^4.0.0-next.22",
"typedoc-plugin-mdn-links": "^3.1.0",
"typedoc-vitepress-theme": "^1.0.0-next.3",
"typescript": "^5.1.6",
"vitepress": "^1.0.0-rc.20",
"vitest": "^0.34.6",
"zx": "^7.2.3"
},
"dependencies": {
"chalk": "^5.3.0",
"chmodrp": "^1.0.2",
"cli-progress": "^3.12.0",
"cmake-js": "^7.2.1",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",
"env-var": "^7.3.1",
"fs-extra": "^11.1.1",
"log-symbols": "^5.1.0",
"node-addon-api": "^7.0.0",
"octokit": "^3.1.0",
"ora": "^7.0.1",
"simple-git": "^3.19.1",
"uuid": "^9.0.0",
"which": "^4.0.0",
"yargs": "^17.7.2"
}
}