Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
421c417
docs: add enterprise product spec and CLAUDE.md
mashoushan1989 Mar 15, 2026
1d4e8ee
feat(enterprise): add enterprise module with Feishu SSO, progressive …
mashoushan1989 Mar 15, 2026
3ab6f7e
chore: add local dev artifacts to .gitignore
mashoushan1989 Mar 15, 2026
e635d8d
feat(enterprise): 添加企业版前端页面和认证中间件
mashoushan1989 Mar 15, 2026
dfb3821
feat(enterprise): 增强分析报表,对齐参考项目字段设计
mashoushan1989 Mar 15, 2026
205ef42
feat(enterprise): 添加额度策略管理 UI 并修复若干问题
mashoushan1989 Mar 15, 2026
ed11ab5
fix(enterprise): 修复额度策略 UI 的 6 个 bug,优化飞书 OAuth 流程
mashoushan1989 Mar 15, 2026
041144f
feat: 添加 PPIO (派欧云) 渠道适配器
mashoushan1989 Mar 15, 2026
f1eb859
fix(enterprise): 优化 OAuth 响应判断和路由权限
mashoushan1989 Mar 15, 2026
eaecf8a
fix(enterprise): 管理后台链接改为新标签页打开,避免认证冲突
mashoushan1989 Mar 15, 2026
72e9286
feat(enterprise): 增强员工排行页筛选功能
mashoushan1989 Mar 15, 2026
00c00f7
feat(enterprise): 增强员工排行表格,支持列选择和排序
mashoushan1989 Mar 15, 2026
d6bc83b
fix(enterprise): 修复排行表格排序相关 bug
mashoushan1989 Mar 15, 2026
8c4c846
feat(enterprise): 添加飞书企业租户白名单校验
mashoushan1989 Mar 15, 2026
809329f
feat(enterprise): 自定义报表功能完整实现
mashoushan1989 Mar 15, 2026
a48a1da
docs(enterprise): 添加项目文档和 Claude Code 配置
mashoushan1989 Mar 15, 2026
d15d355
docs: 更新 CLAUDE.md 企业版模块描述
mashoushan1989 Mar 15, 2026
2dbbad3
fix(enterprise): 修复用户排行聚合逻辑并完善企业功能
mashoushan1989 Mar 17, 2026
f2f1f95
chore: 同步上游修复,包含 reasoning_tokens 统计支持
mashoushan1989 Mar 18, 2026
fe108a8
feat(enterprise): 用户管理页面添加部门层级显示和筛选功能
mashoushan1989 Mar 18, 2026
b909cf1
fix(enterprise): 修复飞书同步逻辑,只遍历 API 返回的部门,新增同步状态显示
mashoushan1989 Mar 18, 2026
7b47b75
fix(enterprise): 企业分析板块 UI 全面优化
mashoushan1989 Mar 19, 2026
454f843
fix(i18n): 修复中文翻译文件 JSON 语法错误导致整站 i18n 失效
mashoushan1989 Mar 19, 2026
7227297
feat(enterprise): 访问控制租户总览、被拒绝登录记录、配额绑定、自定义报告及 PPIO 同步
mashoushan1989 Mar 20, 2026
b8d1c5d
refactor(enterprise/quota): 消除重复代码,优化查询性能
mashoushan1989 Mar 20, 2026
2d49bac
fix(enterprise/ppio): 修复同步后诊断数字不变的问题,消除 V1/V2 重复代码
mashoushan1989 Mar 20, 2026
5e1ae43
fix(enterprise): 自定义报表数据稳定性修复和 UI 优化
mashoushan1989 Mar 21, 2026
335dc4d
refactor(enterprise): 修复自定义报表 Tailwind JIT 动态类失效,提取图例配置
mashoushan1989 Mar 21, 2026
fe3bd2c
feat(enterprise): 权限拆分为查看/编辑双层体系,新增我的接入页面
mashoushan1989 Mar 21, 2026
4a9c1d9
feat(enterprise): PPIO 端点信息展示、权限管控完善、计费数据修正
mashoushan1989 Mar 21, 2026
e8b4ced
feat(enterprise): 模型端点精准展示、配额通知、用户管理完善
mashoushan1989 Mar 21, 2026
3d03e5e
feat(enterprise): 通知设置改为下拉选择+实时预览,PPIO 模型类型推断优化
mashoushan1989 Mar 21, 2026
2e5d65e
fix(enterprise): 修复 PPIO 非聊天模型端点展示及渠道分配缺失
mashoushan1989 Mar 21, 2026
863454d
fix(enterprise): 修复 PPIO 同步后模型不可见及类型筛选缺失
mashoushan1989 Mar 21, 2026
287789a
fix(enterprise): 访问控制租户信息自动从飞书登录获取,修复名称显示不准确
mashoushan1989 Mar 21, 2026
a02beb9
fix(enterprise): PPIO 多模态端点支持 + 用量查询改用 group_id
mashoushan1989 Mar 21, 2026
e8564b6
feat(enterprise): 我的接入页面优化端点类型展示与 Base URL 智能复制
mashoushan1989 Mar 22, 2026
93af85a
fix(enterprise): 优化员工排行部门筛选及分页逻辑,修复 PPIO 渠道分配
mashoushan1989 Mar 22, 2026
09b9d51
fix(enterprise): PPIO 同步将 anthropic-only 模型纳入 openai channel,修复我的接入缺失…
mashoushan1989 Mar 22, 2026
2cd6832
fix(enterprise): 修复分析模块数据正确性问题(P0-P2)
mashoushan1989 Mar 22, 2026
7c7658d
feat(enterprise): 自定义报表 UX 全面优化
mashoushan1989 Mar 22, 2026
47ef4ca
fix(enterprise): PPIO Channel 模型列表启动时自动同步 + 币种符号修正
mashoushan1989 Mar 22, 2026
a0b6e9c
fix(enterprise): 修复企业概览按一级部门筛选数据为空的问题
mashoushan1989 Mar 22, 2026
6bc516f
fix: 修复 P0 MCP 栈溢出、P1 前端 lint 错误及 PPIO 不可用模型同步问题
mashoushan1989 Mar 23, 2026
981f72a
fix(enterprise): 修复 PPIO 模型价格转换单位错误(V1 10000x / V2 10x 偏差)
mashoushan1989 Mar 24, 2026
649264e
feat(enterprise): 新增 Novita 模型同步模块(后端 + 前端)
mashoushan1989 Mar 24, 2026
cc0393a
fix(enterprise): 修复 Novita 同步三个关键问题(API 端点/渠道检测/SQLite 兼容)
mashoushan1989 Mar 24, 2026
8a78c6c
fix(enterprise): 修复 Novita 模型价格转换除数错误(所有价格偏高 10 倍)
mashoushan1989 Mar 24, 2026
e58af89
refactor(enterprise): 统一 PPIO 价格转换逻辑,引入 ppioPricePerMDivisor 常量
mashoushan1989 Mar 24, 2026
d30627a
fix(enterprise): 修复 Novita V2 管理 API 集成,统一 V1+V2 合并同步架构
mashoushan1989 Mar 24, 2026
6946ae3
feat(enterprise): 新增 Novita 模型同步模块(后端 + 前端)
mashoushan1989 Mar 24, 2026
15da8f4
feat(enterprise): 新增 Novita 模型同步模块(含汇率转换)
mashoushan1989 Mar 24, 2026
ab98b50
feat(enterprise): Novita 同步支持自动创建 Channel
mashoushan1989 Mar 24, 2026
080f818
refactor(enterprise): Channel 自动创建事务保护 + 权限检查优化
mashoushan1989 Mar 24, 2026
01d8ed4
feat(enterprise): PPIO/Novita 同步页面引导模式 — 支持直接输入 API Key 自动创建渠道
mashoushan1989 Mar 24, 2026
a5b0a3b
fix(enterprise): 修复部门查询在 PostgreSQL 上的语法错误
mashoushan1989 Mar 24, 2026
d94ad08
fix(enterprise): 修复 SQLite/PostgreSQL 兼容性问题 + context 传播
mashoushan1989 Mar 24, 2026
a01a5d2
fix(enterprise): 修复 Novita/PPIO 同步 SSE 缺失 import 导致编译失败
mashoushan1989 Mar 24, 2026
41953be
refactor: 统一 likeOp() 到 common.LikeOp(),消除 3 处重复定义
mashoushan1989 Mar 24, 2026
735384b
fix(enterprise): PPIO API 域名迁移至 ppinfra.com + Preview 升级 V2
mashoushan1989 Mar 24, 2026
4d501ec
docs: 新增生产部署指南 + 用户使用手册
mashoushan1989 Mar 24, 2026
57d65df
fix(enterprise): 修复「我的接入」页面 Base URL 复制按钮文案及模型列表排序
mashoushan1989 Mar 25, 2026
c50704f
fix(enterprise): PPIO/Novita Anthropic 渠道使用原生 Anthropic adaptor
mashoushan1989 Mar 25, 2026
7138b8e
fix(enterprise): PPIO 渠道查询兼容 ppio.com 和 ppinfra.com 双域名
mashoushan1989 Mar 25, 2026
b263c0a
feat(enterprise): 模型同步自动检测 Responses-only 模型
mashoushan1989 Mar 25, 2026
e4a9374
fix(relay): Anthropic max_tokens 优先使用 ModelConfig 的 max_output_tokens
mashoushan1989 Mar 25, 2026
af5c56a
fix(enterprise): Responses-only 检测优先于 model_type 判断
mashoushan1989 Mar 25, 2026
ec06c24
fix(enterprise): 模型同步 diff 检测纳入 Type 变更
mashoushan1989 Mar 25, 2026
3b14034
fix(enterprise): 修复 responses-only 模型端点展示错误 + Novita diagnostic 补全
mashoushan1989 Mar 25, 2026
f68ac6b
feat(enterprise): JWT session 与 API Key 分离,解决禁用密钥导致登录死循环
mashoushan1989 Mar 26, 2026
a9ced10
docs: 补充服务器运维手册 + 全面更新使用指南
mashoushan1989 Mar 26, 2026
d6faf3c
fix(enterprise): 离职用户自动禁用所有 API Key + 全量同步离职检测
mashoushan1989 Mar 26, 2026
08c16cb
refactor(enterprise): simplify review — 离职逻辑代码清理
mashoushan1989 Mar 26, 2026
7e6157e
fix(enterprise): 额度策略同步覆盖所有 API Key + 请求路径自愈兜底
mashoushan1989 Mar 26, 2026
4ad9ef2
chore: 更新 .gitignore 排除临时文件、数据库、日志和本地配置
mashoushan1989 Mar 26, 2026
b826022
fix(anthropic): beta header 透传 + 响应头转发 + 模型列表更新 + 性能优化
mashoushan1989 Mar 27, 2026
3fd1f1c
fix(enterprise): 模型同步自动推导 tool_choice/vision + Channel Configs 自愈
mashoushan1989 Mar 27, 2026
28b98f2
refactor(ranking): 重新设计员工排行榜 — 新增派生指标列 + 列分组 + UI 升级
mashoushan1989 Mar 27, 2026
b151e6f
fix(ranking): 排名序号随前端排序列动态更新
mashoushan1989 Mar 28, 2026
7a79c81
fix(enterprise): MultiplierInput 默认范围修正 — 允许 0(不限制)和大于 2 的乘数
mashoushan1989 Mar 28, 2026
b45af21
feat(enterprise): 「我的接入」重设计 + 配额修复 + 同步历史 + 通知告警
mashoushan1989 Mar 31, 2026
246b3de
merge(upstream): 合并上游 labring/aiproxy #492–#503
mashoushan1989 Mar 31, 2026
54cb0e7
docs: 更新文档 — 反映上游合并变更和企业版进度
mashoushan1989 Mar 31, 2026
64f1b7f
docs: 添加 PPIO ChannelType 迁移脚本
mashoushan1989 Mar 31, 2026
1493856
fix(billing): ThinkingMode 推理 token 独立计价 — 修复输出价格覆盖 bug
mashoushan1989 Apr 1, 2026
f14b21a
feat(group): Group 显示名称支持 + 日志页面 Group 名称解析
mashoushan1989 Apr 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "if [[ \"$CLAUDE_FILE_PATH\" == *.go ]]; then gofmt -w \"$CLAUDE_FILE_PATH\" 2>/dev/null; fi"
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE '(git push|rm -rf|docker rm|DROP TABLE)'; then python3 ~/.claude/scripts/feishu_confirm.py \"Claude Code 请求执行危险操作:\\n$CLAUDE_TOOL_INPUT\\n\\n是否允许?\"; fi"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "python3 ~/.claude/scripts/feishu_notify.py \"$CLAUDE_NOTIFICATION\" 2>/dev/null || true"
}
]
}
]
}
}
58 changes: 58 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
**/.vscode
**/__debug_bin*
**/.DS_Store

# Core build artifacts & runtime
core/.env.local
core/.env.aiproxy.local
core/aiproxy
core/aiproxy-enterprise
core/aiproxy-dev
core/aiproxy-new
core/aiproxy.log

# Database files
*.db

# Log files
*.log

# Claude / Codex local config
.claude/*.local.md
.claude/QUICK-REFERENCE.md
.claude/QUICKSTART.md
.claude/hookify-rules.md
.claude/workflows.md
.claude/settings.local.json
.codex/

# Backup files
*.bak

# Test config & temp scripts
test-config.env
test-*.sh
test-*.py

# Temporary docs (not part of main docs)
PPIO-*.md
MULTIMODAL-SUPPORT.md
DATA-CONSISTENCY-MEMO.md
QUICK-START.md
SETUP.md
TEST-RESULTS.md
implementation-guide.md
manual-test-setup.md

# Scripts: mock data & temp sync
scripts/generate-mock-data.go
scripts/generate-mock-data.go.bak
scripts/sync-ppio-*.sh
scripts/test-*.sh
scripts/MOCK-DATA-README.md

# Examples (not ready for main)
examples/

# Enterprise temp docs
enterprise/docs/

# Test notification temp dir
core/test-notif/
Loading