Commit History
-
feat: 版本管理合并 + version-extractor 集成 + 人工审核 + GH Actions 废弃
- 版本管理合并进项目管理(删独立页,项目加"版本"弹窗) - 项目列表:获取最新版本(走 version-extractor,带 productName + 弹窗人工审核批准/拒绝) - extractor 配置页 + version-review API + extractor-config(DB 存 EXTRACTOR_URL) - github/api.github.com 统一走 version-extractor - 即时抓取 github 用 version-extractor;微任务只记录历史 - GH Actions 控制/派发废弃(API 410);workflow 精简为 TTL sweep - Project 加 last_checked_at + VersionReview/AppSetting 表 - 修复 next build 失败(bench-extract 类型错误) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>a6323af
-
security: 修复 admin 鉴权与未认证写接口
- 移除硬编码 admin/admin123 客户端校验,新增服务端登录: * /api/auth/login(HMAC 签名 HttpOnly cookie) * /api/auth/logout * 凭据来自 ADMIN_USERNAME/ADMIN_PASSWORD 环境变量(生产强制配置) - middleware.ts → proxy.ts(Next 16 新约定,移除弃用警告) - 新增 lib/auth.ts:会话 cookie 签名/校验 + x-admin-key API key 鉴权 - 保护所有写接口:POST/PUT/DELETE /api/projects、/api/versions、 /api/scrape/*、/api/translate(未鉴权返回 401) - 运营脚本(process-github-updates.js)携带 x-admin-key; agent 技能/指令补充鉴权头说明 - 移除全局 Access-Control-Allow-Origin:* 宽松 CORS,改为基础安全响应头 - 清理 lib/utils.ts 死代码 checkAdminAuth,clearAdminAuth 改为调用登出 APIbcc7a1d -
refactor: 合并分裂后端为单进程 Next.js
删除独立 :8000 后端进程(backend-repo/server.js 及整个 backend-repo/), 将其 GitHub 爬取逻辑迁移为类型化模块 lib/github.ts: - fetchGithubRepo/fetchGithubReleases/fetchGithubRepoInfo - fetchGithubTrendingRepos/scrapeGithubTrendingToDb - scrapeGithubReleasesToDb(含 update_source_url 回填) - GitHub/Trending 计划调度状态 + fixGithubIcons 所有代理路由改为直连: - /api/scrape/github、/repo、/trending、/schedule、/fix-icons - /api/everything/changes(直连 Prisma) - POST /api/projects(自动 slug 生成 + 唯一校验) - POST /api/versions(录入后同步 latest_version) 简化 start-dev.js/start-production.js/Dockerfile 为单进程; 删除已过时的 BACKEND_MIGRATION.md。cc875df
-
fix: improve update detection reliability and DB connection stability
- check-updates: 仅凭 ETag 判断变化,无 ETag 一律走 no-cache 路径(含只有 Last-Modified 的情况),移除 owner/repo GitHub API 兜底重复逻辑 - project-updater: changed 项目版本无变化且有 version_regex 时,触发 regex-fixer 子代理修复 URL 和正则 - api/projects/types: 用 findMany+distinct 替换 groupBy,消除多余 OFFSET 参数 - lib/prisma & backend/server.js: 启动时主动 \$connect() 预热连接池,消除首次请求冷启动失败 Co-Authored-By: Claude <noreply@anthropic.com>4ff23d0
-
feat: add version_regex field for precise no-cache version detection
copilot-swe-agent[bot] +1: zitons- prisma/schema.prisma: add version_regex String? @db.Text to Project - prisma/migrations/20260226000003_add_version_regex/migration.sql: ALTER TABLE - app/api/projects/route.ts: expose version_regex in list GET select - app/api/projects/[id]/route.ts: expose version_regex in GET; handle in PUT - scripts/check-updates.js: add fetchText(); no-cache branch: if version_regex set → GET+regex extract version → compare → CHANGED/unchanged/flag for AI; if no capture group → flag for AI; else → Content-Length fallback - github-data-ops.yml: update NOCACHE_MSG to instruct AI to fill version_regex - SKILL.md: document version_regex field and AI fill instructions - references/api.md: add version_regex to field descriptions - Rebuild github-data-ops.skill zip Co-authored-by: zitons <49295983+zitons@users.noreply.github.com>c23b392
-
feat: 新增项目名称模糊查找和总数 API,update_source_url 新增时必填
- GET /api/projects?name= 支持按名称模糊查找 - GET /api/projects/count 返回项目总数 - SKILL.md: update_source_url 标记为新增项目时必填 Co-Authored-By: Claude <noreply@anthropic.com>dd29ba1
-
feat: 添加 ETag/Last-Modified 预检机制,减少重复版本查找
- prisma/schema.prisma: 新增可选字段 update_source_url - 迁移 SQL: 20260226000002_add_update_source_url - Next.js API / backend server.js: GET/PUT 支持 update_source_url 读写 - scripts/check-updates.js: 并发 HEAD 探针,ETag/Last-Modified 变化时 输出项目名到 /tmp/changed-projects.txt - github-data-ops.yml: 新增 actions/cache restore + ETag probe 步骤, 将变化项目列表注入 Claude Code 提示词 - SKILL.md: 文档说明 update_source_url 字段及维护规则 Co-Authored-By: Claude <noreply@anthropic.com>275872a -
feat: 添加项目标签和相关链接功能,更新数据库结构及API接口
39ce3e9
-
调整数据库格式、优化翻译、支持skills更新模式
d2b3c08
-
尝试修 复部署异常
512a11a
-
chore: 更新子模块引用至脏状态版本
72c662a -
将后端迁移到nodejs、新增爬虫管理
3ca405e
-
同步
c803c8f
-
修复前端无法显示样式的问题
vhko9ad8e3d -
修复管理后台无法添加和修改项目的问题
1. 创建了API路由处理projects和versions的CRUD操作 2. 更新了管理页面中的API调用路径,使用正确的API路由 3. 修复了后端数据库操作中的ID获取问题,避免'project not found'错误 这些更改解决了管理后台404错误和'project not found'的问题。d941c80