-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 4.71 KB
/
package.json
File metadata and controls
100 lines (100 loc) · 4.71 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "openai-proxy",
"version": "1.0.0",
"description": "A proxy for OpenAI/Ollama API to enabling tool calls",
"license": "MIT",
"author": "oct4pie",
"type": "module",
"main": "dist/src/index.js",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"clean": "rm -rf dist",
"generate:types": "./scripts/generate-api-types.sh",
"dev": "nodemon --exec tsx src/index.ts",
"start": "npm run build && node --no-deprecation dist/src/index.js",
"start:js": "node --no-deprecation dist/src/index.js",
"start:ts": "ts-node --esm src/index.ts",
"start:translation-demo": "ts-node --esm src/server/translationDemoServer.ts",
"test": "npm run build && mocha \"dist/src/test/{unit,parser,streaming}/**/*.test.js\"",
"test:all": "npm run build && node dist/src/test/runners/run-all-tests.js",
"test:sequential": "npm run build && node dist/src/test/runners/run-integration-sequential.js",
"test:integration": "npm run build && mocha \"dist/src/test/integration/*.test.js\"",
"test:xml": "npm run build && mocha \"dist/src/test/parser/xml/*.test.js\"",
"test:llm": "npm run build && mocha \"dist/src/test/parser/llm-patterns/*.test.js\"",
"test:tool-calling": "npm run build && mocha \"dist/src/test/integration/comprehensive-tool-calling.test.js\"",
"test:dual-client": "npm run build && mocha \"dist/src/test/integration/dual-client-support.test.js\"",
"demo:dual-clients": "npm run build && node demo-dual-clients.js",
"test:edge": "npm run build && mocha \"dist/src/test/parser/edge-cases/*.test.js\"",
"test:html": "npm run build && mocha \"dist/src/test/parser/html/*.test.js\"",
"test:streaming": "npm run build && mocha \"dist/src/test/streaming/*.test.js\"",
"test:unit": "npm run build && mocha \"dist/src/test/unit/**/*.test.js\"",
"test:runners": "npm run build && mocha \"dist/src/test/runners/*.test.js\"",
"test:coverage": "npm run build && c8 mocha \"dist/src/test/{unit,parser,streaming}/**/*.test.js\"",
"test:coverage:all": "npm run build && c8 mocha \"dist/src/test/**/*.test.js\"",
"test:single": "mocha",
"test:tools": "node src/test/runners/run-tool-call-tests.ts",
"test:all-without-integration": "mocha \"src/test/{unit,parser,streaming}/**/*.test.{js,ts}\"",
"test:formats": "ts-node --esm run-format-tests.ts",
"test:formats:compiled": "npm run build && node dist/run-format-tests.js",
"type-check": "tsc --noEmit",
"lint": "eslint . --ext .ts,.js",
"lint:fix": "eslint . --ext .ts,.js --fix",
"check-all": "npm run type-check && npm run lint",
"report:unused": "ts-unused-exports tsconfig.json --ignoreFiles=\".*\\.test\\..*\"",
"report:dup": "jscpd src/",
"report:dup:full": "jscpd src/ --format typescript,javascript",
"complexity:check": "node scripts/check-complexity.js",
"quality:check": "npm run lint && npm run report:dup && npm run report:unused",
"quality:full": "npm run type-check && npm run lint && npm run complexity:check && npm run report:dup",
"ci:quality": "npm run type-check && npm run lint && jscpd src/ --threshold 3",
"audit:duplication": "jscpd src --threshold 5",
"audit:cycles": "madge --circular --extensions ts src/",
"audit:full": "pnpm audit:duplication && pnpm audit:cycles",
"scripts:check-models": "node scripts/check-models.js",
"scripts:test-ollama-proxy": "node scripts/manual/test-ollama-proxy.mjs",
"scripts:test-all-features": "ts-node --esm scripts/manual/test-all-features.ts",
"scripts:test-comprehensive-tools": "ts-node --esm scripts/manual/test-comprehensive-tool-calling.ts"
},
"dependencies": {
"axios": "^1.11.0",
"chalk": "^5.3.0",
"dotenv": "^16.5.0",
"express": "^5.1.0",
"fast-xml-parser": "^5.2.0",
"http-proxy-middleware": "^3.0.5",
"node-fetch": "^3.3.2",
"oboe": "^2.1.7",
"ollama": "^0.6.2",
"openai": "^4.104.0",
"string-width": "^7.2.0"
},
"devDependencies": {
"@eslint/js": "^9.25.1",
"@types/chai": "^5.2.2",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"@types/mocha": "^10.0.10",
"@types/node": "^24.3.0",
"@typescript-eslint/eslint-plugin": "^8.41.0",
"@typescript-eslint/parser": "^8.41.0",
"c8": "^9.1.0",
"chai": "^5.2.0",
"eslint": "^9.25.1",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-sonarjs": "^3.0.5",
"eslint-plugin-unicorn": "^61.0.2",
"eslint-plugin-unused-imports": "^4.3.0",
"globals": "^16.0.0",
"jscpd": "^4.0.5",
"madge": "^8.0.0",
"mocha": "^11.1.0",
"nodemon": "^3.1.10",
"ts-node": "^10.9.2",
"ts-unused-exports": "^9.0.5",
"tsx": "^4.21.0",
"typescript": "^5.9.2"
}
}