forked from caozhiyuan/copilot-api
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
Latest commit
104 lines (104 loc) · 3.21 KB
/
Copy pathpackage.json
File metadata and controls
104 lines (104 loc) · 3.21 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
101
102
103
104
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@encodets/copilot-api",
"version": "2.0.0-rc.25",
"packageManager": "bun@1.3.14",
"description": "GitHub Copilot, OpenAI Codex, and third-party AI provider gateway with OpenAI and Anthropic API compatibility.",
"keywords": [
"github-copilot",
"codex",
"ai-gateway",
"multi-provider"
],
"homepage": "https://github.com/EncodeTS/copilot-api",
"bugs": "https://github.com/EncodeTS/copilot-api/issues",
"repository": {
"type": "git",
"url": "https://github.com/EncodeTS/copilot-api"
},
"license": "MIT",
"author": "EncodeTS",
"publishConfig": {
"access": "public"
},
"type": "module",
"bin": {
"copilot-api": "./dist/main.js"
},
"files": [
"dist",
"pages",
"NOTICE.md"
],
"scripts": {
"audit:production": "bun audit --production --audit-level=high",
"build": "tsdown",
"build:desktop": "tsdown --config tsdown.desktop.config.ts",
"dev": "NODE_USE_SYSTEM_CA=1 bun run --watch ./src/main.ts",
"knip": "knip-bun",
"lint": "eslint --cache",
"lint:all": "eslint --cache .",
"prepack": "bun run build",
"prepare": "node -e \"const fs=require('node:fs');if(fs.existsSync('.git')&&fs.statSync('.git').isDirectory())require('node:child_process').execFileSync('simple-git-hooks',{stdio:'inherit'})\"",
"smoke:zstd-runtime": "node scripts/smoke-zstd-runtime.mjs dist",
"start": "NODE_USE_SYSTEM_CA=1 NODE_ENV=production bun run ./src/main.ts",
"test:coverage": "bun run test:coverage:root && bun run test:coverage:desktop",
"test:coverage:desktop": "bun --cwd=desktop run test:coverage",
"test:coverage:diff": "bun scripts/check-diff-coverage.ts",
"test:coverage:root": "bun scripts/coverage/run-coverage.ts --domain root",
"test:zstd-worker-contract": "bun test tests/zstd-worker-harness.test.ts",
"typecheck": "tsc"
},
"simple-git-hooks": {
"pre-commit": "bunx lint-staged"
},
"lint-staged": {
"*": "bun run lint --fix"
},
"dependencies": {
"@hpcc-js/wasm-zstd": "^1.13.5",
"@modelcontextprotocol/sdk": "^1.29.0",
"citty": "^0.1.6",
"clipboardy": "^5.0.0",
"consola": "^3.4.2",
"fetch-event-stream": "^0.1.5",
"gpt-tokenizer": "^3.0.1",
"hono": "4.12.31",
"proxy-from-env": "^1.1.0",
"sharp": "0.35.3",
"srvx": "^0.11.15",
"tiny-invariant": "^1.3.3",
"undici": "7.29.0",
"winreg": "^1.2.5",
"zod": "^4.1.11"
},
"devDependencies": {
"@eslint/js": "^9.37.0",
"@types/bun": "^1.2.23",
"@types/proxy-from-env": "^1.0.4",
"@types/winreg": "^1.2.36",
"bumpp": "^10.2.3",
"eslint": "^9.37.0",
"eslint-config-flat-gitignore": "^2.1.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-unused-imports": "^4.2.0",
"globals": "^16.3.0",
"knip": "^5.64.1",
"lint-staged": "^16.2.3",
"prettier": "^3.6.2",
"prettier-plugin-packagejson": "^2.5.19",
"simple-git-hooks": "^2.13.1",
"tsdown": "0.21.10",
"typescript": "^5.9.3",
"typescript-eslint": "^8.41.0"
},
"overrides": {
"fast-uri": "3.1.5",
"hono": "4.12.31",
"ip-address": "10.3.1"
},
"engines": {
"node": ">=20"
}
}