Commit Graph
15 Commits
Author SHA1 Message Date
Jeff Gu e5363843af chore: 清理多余的代码变更记录&更新依赖 2026-04-09 21:04:30 +08:00
Jeff Gu d1fbaf0bf6 chore(package): 添加项目仓库和主页信息 2026-04-09 15:19:34 +08:00
Jeff Gu 1ef5502083 feat: 更新项目名称为 One API on Workers 2026-04-09 10:03:02 +08:00
Jeff Gu 6071f18f7a feat(api): 添加前端代理和静态资源处理逻辑
- 增加了对前端开发服务器的代理支持
- 实现了静态资源请求的处理
- 更新了类型定义以支持新环境变量
- 新增了 wrangler.jsonc 配置文件,替换原有的模板文件
2026-04-09 09:39:40 +08:00
dreamhunter2333 50f0e9e3a3 Use npx for wrangler scripts 2026-03-15 18:54:37 +08:00
dreamhunter2333 a85eb362b2 Upgrade hono to 4.12.8 2026-03-15 18:35:20 +08:00
dreamhunter2333andClaude Opus 4.6 6f99358fb5 refactor: 统一 providers 层,提取共享模块消除重复代码
- 提取 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>
2026-03-12 18:24:30 +08:00
dreamhunter2333andClaude Opus 4.5 93d404af5e fix: 回退 chanfana 到 v2,v3 有 breaking changes
chanfana 3.0.0 导致 OpenAPI 端点报错:
TypeError Cannot read properties of undefined (reading 'parent')

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 22:13:55 +08:00
dreamhunter2333andClaude Opus 4.5 2dd7f89075 fix: 回退 zod 到 v3,v4 有 breaking changes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 21:57:16 +08:00
dreamhunter2333andClaude Opus 4.5 cfe475d587 chore: 更新依赖到最新版本
- chanfana 2.8.3 -> 3.0.0
- hono 4.11.1 -> 4.11.7
- zod 3.25.76 -> 4.3.6
- wrangler 4.56.0 -> 4.61.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 21:56:03 +08:00
dreamhunter2333andClaude Opus 4.5 4572e5fc9e feat: 使用 React + Vite + shadcn/ui 重构前端
- 使用 React 19 + TypeScript + Vite 7 重构整个前端
- 集成 shadcn/ui 组件库和 Tailwind CSS v4
- 使用 TanStack Query 管理服务端状态
- 使用 Zustand 管理客户端状态(认证)
- 使用 React Router v7 实现路由
- 实现浅粉色主题,支持深色模式
- 添加 API 拦截器和全局错误处理
- 优化 Toast 通知样式
- 管理页面按钮右对齐
- Token 显示脱敏处理

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 13:24:45 +08:00
dreamhunter2333 e376a8a539 downgrade zod 2025-12-12 20:27:55 +08:00
dreamhunter2333andClaude Opus 4.5 5656052301 chore: 更新依赖包版本
- chanfana: 2.8.1 -> 2.8.3
- hono: 4.8.2 -> 4.10.8
- zod: 3.25.67 -> 4.1.13
- wrangler: 4.20.5 -> 4.53.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 13:21:38 +08:00
dreamhunter2333 aed83f2ec5 feature: update ux 2025-06-23 01:00:53 +08:00
dreamhunter2333 90525cdfd8 init 2025-06-21 19:30:54 +08:00