@hsupu/copilot-api 0.7.15 → 0.7.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hsupu/copilot-api",
3
- "version": "0.7.15",
3
+ "version": "0.7.17",
4
4
  "description": "Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!",
5
5
  "keywords": [
6
6
  "proxy",
@@ -17,14 +17,16 @@
17
17
  "author": "hsupu",
18
18
  "type": "module",
19
19
  "bin": {
20
- "copilot-api": "dist/main.js"
20
+ "copilot-api": "dist/main.mjs"
21
21
  },
22
22
  "files": [
23
23
  "dist"
24
24
  ],
25
25
  "scripts": {
26
- "build": "npx tsdown",
26
+ "build": "npm run build:ui && npx tsdown",
27
+ "build:ui": "cd src/ui/history-v2 && bun install && bun run build",
27
28
  "dev": "bun run --watch ./src/main.ts",
29
+ "dev:ui": "cd src/ui/history-v2 && bun run dev",
28
30
  "knip": "knip-bun",
29
31
  "lint": "eslint --cache",
30
32
  "lint:all": "eslint --cache .",
@@ -32,8 +34,12 @@
32
34
  "prepare": "npm run build && (command -v bun >/dev/null 2>&1 && simple-git-hooks || true)",
33
35
  "release": "bumpp && npm publish --access public",
34
36
  "start": "NODE_ENV=production bun run ./src/main.ts",
35
- "test": "bun test tests/*.test.ts",
36
- "test:all": "bun test tests/*.test.ts && bun test tests/integration/",
37
+ "test": "bun test tests/unit/",
38
+ "test:all": "bun test tests/",
39
+ "test:ci": "bun test tests/unit/ tests/component/ tests/contract/ tests/integration/",
40
+ "test:component": "bun test tests/component/",
41
+ "test:contract": "bun test tests/contract/",
42
+ "test:e2e": "bun test tests/e2e/",
37
43
  "test:integration": "bun test tests/integration/",
38
44
  "typecheck": "tsc"
39
45
  },
@@ -44,30 +50,28 @@
44
50
  "*": "bun run lint --fix"
45
51
  },
46
52
  "dependencies": {
47
- "@anthropic-ai/tokenizer": "^0.0.4",
48
53
  "citty": "^0.2.0",
49
- "clipboardy": "^5.1.0",
50
54
  "consola": "^3.4.2",
51
55
  "fetch-event-stream": "^0.1.6",
52
56
  "gpt-tokenizer": "^3.4.0",
53
- "hono": "^4.11.7",
57
+ "hono": "^4.11.8",
54
58
  "picocolors": "^1.1.1",
55
59
  "proxy-from-env": "^1.1.0",
56
- "srvx": "^0.10.1",
60
+ "srvx": "^0.11.2",
57
61
  "tiny-invariant": "^1.3.3",
58
- "undici": "^7.19.2"
62
+ "undici": "^7.21.0"
59
63
  },
60
64
  "devDependencies": {
61
65
  "@echristian/eslint-config": "^0.0.54",
62
- "@types/bun": "^1.3.7",
66
+ "@types/bun": "^1.3.8",
63
67
  "@types/proxy-from-env": "^1.0.4",
64
- "bumpp": "^10.4.0",
68
+ "bumpp": "^10.4.1",
65
69
  "eslint": "^9.39.2",
66
- "knip": "^5.82.1",
70
+ "knip": "^5.83.1",
67
71
  "lint-staged": "^16.2.7",
68
72
  "prettier-plugin-packagejson": "^3.0.0",
69
73
  "simple-git-hooks": "^2.13.1",
70
- "tsdown": "^0.20.1",
74
+ "tsdown": "^0.20.3",
71
75
  "typescript": "^5.9.3"
72
76
  }
73
77
  }