-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
77 lines (77 loc) · 2.64 KB
/
package.json
File metadata and controls
77 lines (77 loc) · 2.64 KB
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
{
"name": "@stackone/defender",
"version": "0.5.3",
"description": "Prompt injection defense framework for AI tool-calling",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"files": [
"dist",
"package.json",
"README.md",
"LICENSE"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.cts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"build": "tsdown --env.NODE_ENV=production --minify && npm run copy-models",
"prebuild:dev": "npm run clean",
"build:dev": "tsdown --env.NODE_ENV=development && npm run copy-models",
"copy-models": "node -e \"const{cpSync,mkdirSync,existsSync}=require('fs'),s='src/classifiers/models/minilm-full-aug',d='dist/models/minilm-full-aug';existsSync(s)?(mkdirSync(d,{recursive:true}),cpSync(s,d,{recursive:true}),console.log('Copied ONNX models to dist/models/')):console.warn('ONNX models not found at',s)\"",
"code:format": "biome format ./src",
"code:format:fix": "biome format --write ./src",
"code:lint": "biome lint --error-on-warnings ./src",
"code:lint:fix": "biome lint --write ./src",
"code:check": "biome check ./src",
"code:check:fix": "biome check --write ./src",
"lint": "npm run code:check",
"lint:fix": "npm run code:check:fix",
"test": "FORCE_COLOR=1 vitest run",
"test:watch": "FORCE_COLOR=1 vitest watch --silent",
"test:typecheck": "tsc --noEmit --project tsconfig.tests.json",
"prepublishOnly": "npm run build",
"publish-release": "npm publish --access=public"
},
"keywords": [
"prompt-injection",
"ai-safety",
"llm",
"guardrails",
"security"
],
"author": "StackOne",
"license": "Apache-2.0",
"dependencies": {
"nanoid": "3.3.11"
},
"devDependencies": {
"@biomejs/biome": "^2.4.5",
"@huggingface/transformers": "3.8.1",
"onnxruntime-node": "1.21.0",
"rimraf": "^6.1.3",
"tsdown": "^0.21.0-beta.2",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"peerDependencies": {
"@huggingface/transformers": "^3.0.0",
"onnxruntime-node": ">=1.16.0"
},
"peerDependenciesMeta": {
"@huggingface/transformers": {
"optional": true
},
"onnxruntime-node": {
"optional": true
}
}
}