@dianshuv/copilot-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@dianshuv/copilot-api",
3
+ "version": "0.1.0",
4
+ "description": "Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!",
5
+ "author": "dianshuv",
6
+ "type": "module",
7
+ "bin": {
8
+ "copilot-api": "dist/main.mjs"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "npx tsdown",
15
+ "dev": "bun run --watch ./src/main.ts",
16
+ "knip": "knip-bun",
17
+ "lint": "eslint --cache",
18
+ "lint:all": "eslint --cache .",
19
+ "prepack": "npm run build",
20
+ "prepare": "npm run build && (command -v bun >/dev/null 2>&1 && simple-git-hooks || true)",
21
+ "prepublishOnly": "npm run typecheck && npm run lint:all && npm run test",
22
+ "release": "npm publish --access public",
23
+ "start": "NODE_ENV=production bun run ./src/main.ts",
24
+ "test": "bun test tests/*.test.ts",
25
+ "test:all": "bun test tests/*.test.ts && bun test tests/integration/",
26
+ "test:integration": "bun test tests/integration/",
27
+ "typecheck": "tsc"
28
+ },
29
+ "simple-git-hooks": {
30
+ "pre-commit": "bun x lint-staged"
31
+ },
32
+ "lint-staged": {
33
+ "*": "bun run lint --fix"
34
+ },
35
+ "dependencies": {
36
+ "@anthropic-ai/tokenizer": "^0.0.4",
37
+ "citty": "^0.2.0",
38
+ "clipboardy": "^5.1.0",
39
+ "consola": "^3.4.2",
40
+ "fetch-event-stream": "^0.1.6",
41
+ "gpt-tokenizer": "^3.4.0",
42
+ "hono": "^4.11.7",
43
+ "picocolors": "^1.1.1",
44
+ "proxy-from-env": "^1.1.0",
45
+ "srvx": "^0.10.1",
46
+ "tiny-invariant": "^1.3.3",
47
+ "undici": "^7.19.2"
48
+ },
49
+ "devDependencies": {
50
+ "@echristian/eslint-config": "^0.0.54",
51
+ "@types/bun": "^1.3.7",
52
+ "@types/proxy-from-env": "^1.0.4",
53
+ "eslint": "^9.39.2",
54
+ "knip": "^5.82.1",
55
+ "lint-staged": "^16.2.7",
56
+ "prettier-plugin-packagejson": "^3.0.0",
57
+ "simple-git-hooks": "^2.13.1",
58
+ "tsdown": "^0.20.1",
59
+ "typescript": "^5.9.3"
60
+ }
61
+ }