Jiahao Luo
a11a0f289c
chore(deps): 将包管理器从 npm 迁移到 pnpm
...
- docs: 更新 README 和 README_CN 中的安装说明
- build: 添加 pnpm-lock.yaml 和 .npmrc 配置
- build: 删除 package-lock.json 锁文件
- fix: 解决 peer dependency 冲突(legacy-peer-deps)
- perf: pnpm 提供更快的安装速度和更小的磁盘占用
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-01-05 10:06:31 +08:00
yangjianbo
e51a32881b
merge: 合并 test 分支到 test-dev,解决冲突
...
解决的冲突文件:
- wire_gen.go: 合并 ConcurrencyService/CRSSyncService 参数和 userAttributeHandler
- gateway_handler.go: 合并 pkg/errors 和 antigravity 导入
- gateway_service.go: 合并 validateUpstreamBaseURL 和 GetAvailableModels
- config.example.yaml: 合并 billing/turnstile 配置和额外 gateway 选项
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-03 11:36:31 +08:00
song
7f5ec28488
docs: 添加 Simple Mode 说明和 Antigravity 已知问题
2026-01-02 17:46:39 +08:00
yangjianbo
bd4bf00856
feat(安全): 强化安全策略与配置校验
...
- 增加 CORS/CSP/安全响应头与代理信任配置
- 引入 URL 白名单与私网开关,校验上游与价格源
- 改善 API Key 处理与网关错误返回
- 管理端设置隐藏敏感字段并优化前端提示
- 增加计费熔断与相关配置示例
测试: go test ./...
2026-01-02 17:40:57 +08:00
yangjianbo
e83f0ee307
Merge branch 'main' into test-dev
2025-12-30 09:07:55 +08:00
song
026740b5e5
fix: 删除未使用的代码并修复格式
...
- 删除 client.go 中未使用的 proxyURL 字段
- 删除 AntigravityGatewayService 中未使用的字段和方法
- 修复 gofmt 格式问题
2025-12-29 17:54:38 +08:00
song
eec8b4c91e
docs: 添加 Antigravity 使用说明
2025-12-29 17:19:47 +08:00
yangjianbo
3d617de577
refactor(数据库): 迁移持久层到 Ent 并清理 GORM
...
将仓储层/基础设施改为 Ent + 原生 SQL 执行路径,并移除 AutoMigrate 与 GORM 依赖。
重构内容包括:
- 仓储层改用 Ent/SQL(含 usage_log/account 等复杂查询),统一错误映射
- 基础设施与 setup 初始化切换为 Ent + SQL migrations
- 集成测试与 fixtures 迁移到 Ent 事务模型
- 清理遗留 GORM 模型/依赖,补充迁移与文档说明
- 增加根目录 Makefile 便于前后端编译
测试:
- go test -tags unit ./...
- go test -tags integration ./...
2025-12-29 10:03:27 +08:00
shaw
e6add93ae3
fix(build): add -tags embed to ensure frontend is embedded
...
- Add -tags=embed flag to GoReleaser builds
- Add -tags embed flag to Dockerfile builds
- Fix Dockerfile COPY order to prevent frontend dist being overwritten
- Update README build instructions with embed tag explanation
2025-12-20 19:13:26 +08:00
shaw
ba27026399
docs: 调整源码编译步骤的顺序
2025-12-19 09:47:17 +08:00
shaw
66ba487697
fix: 修复前端github项目地址
2025-12-18 22:47:42 +08:00
shaw
ef3199f0ca
fix: 修复脚本的一些参数问题
2025-12-18 17:25:26 +08:00
shaw
20aee89dcc
fix: Fixed installation issues with the install.sh script.
2025-12-18 16:00:57 +08:00
shaw
642842c29e
First commit
2025-12-18 13:50:39 +08:00