- 提取 shared/auth.ts、channel-resolver.ts、route-policy.ts、provider-registry.ts - 提取 shared/openai-stream-utils.ts 和 responses-stream-utils.ts - 统一 index.ts 为 UnifiedProxyEndpoint(303→55行) - 各 provider 文件精简约55%,只保留 buildProxyRequest - 修复 claude-to-openai-proxy.ts 类型错误 - 添加 E2E mock 测试基础设施(mock-upstream + setup + run-e2e) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
524 B
JSON
19 lines
524 B
JSON
{
|
|
"name": "awsl-ai-proxy",
|
|
"scripts": {
|
|
"dev": "wrangler dev",
|
|
"deploy": "wrangler deploy --minify",
|
|
"cf-typegen": "wrangler types --include-env=false"
|
|
},
|
|
"dependencies": {
|
|
"chanfana": "^2.8.3",
|
|
"hono": "^4.11.7",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.9.3",
|
|
"wrangler": "^4.61.1"
|
|
},
|
|
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
}
|