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
-
feat: 版本提取基准测试工具 scripts/bench-extract.ts
- npx tsx scripts/bench-extract.ts 跑内置测试集 - --cases cases.json 用自定义语料(期望版本需人工验证) - --probe <url> 单 URL 探查(看候选/置信/建议正则) - 输出:每例判定(PASS/FAIL误报/漏/错)+ 置信度 + 信任决策 - 汇总:准确率/各置信度表现/误报/漏检/自动写入正确性 - 内置 10 例 + benchmark/cases.example.json 模板 - 关键价值:逼出需要验证的真值语料;暴露交叉校验挡不住的 golang 类案例(垃圾版本数值更大,需靠置信度门控+AI)d7e828b -
feat: P6 GitHub Actions 后台控制(派发/状态/取消)
- lib/github-actions.ts:workflow_dispatch 派发 / 最近运行状态 / 取消 (GH_DISPATCH_TOKEN + GITHUB_REPO) - /api/ops/gh-actions:GET 状态(主流水线+微任务最近运行)、POST 派发/取消 - /admin/ops 增加 GitHub Actions 控制区块:一键派发完整流水线或微任务、 实时运行状态徽章、取消按钮 - scripts/run-task.js:GH Actions 微任务执行器 (读任务→ccr 执行 AI 任务→结果回传站点 API) - .github/workflows/task-run.yml:微任务 workflow(chrome-devtools MCP + ccr + postgres) - /api/ops/task/[id]/result:任务结果回传端点(x-admin-key 鉴权)2e11d4a -
feat: P1 工业抓取引擎 scripts/crawler.js
新增 scripts/crawler.js(CommonJS,供 CI 与后台任务共用): - 代理池:PROXY_URLS 轮询轮换,403/429 或连续失败自动切换代理 - UA/浏览器头轮换:header-generator 12 组预设(Chrome/Firefox/Edge × Win/Linux/Mac) - TLS 指纹:got-scraping 模拟真实浏览器 TLS/HTTP2 - 指数退避重试(含抖动),默认 3 次 - 礼貌限速:每域名最小间隔(默认 1.2s)+ 全局并发信号量(默认 5) - 反爬降级:普通请求命中反爬/验证码 → 自动切 Playwright stealth 无头重试 - robots.txt 可选遵守 - githubApi:限流感知(x-ratelimit-reset/Retry-After 等待)+ 多 token 轮换(GITHUB_TOKEN_2..5) - fetchPage/fetchJson/headRequest/closeBrowser 导出 scripts/check-updates.js 接入 crawler: - 移除裸 https/http 抓取、手动 Playwright stealth、固定 UA - GitHub 检查改走 crawler.githubApi(限流+多token) - 页面抓取/HEAD 统一走 crawler(代理/UA/重试/反爬降级) .env.example 补充爬虫与多 token 配置d0691f1 -
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 -
chore: 清理 Strapi/Python 遗留代码与构建产物
删除: - Strapi 残留 src/、config/、types/generated/ - Python FastAPI 遗留 backend-repo/(除 server.js 待迁移) - 构建产物 dist/、Crawlee 运行时状态 storage/ - 可疑文件 backend-repo/e -i cd048b...、空文件 ProjectDetail.tsx - 一次性调试脚本(check-*、test-*、fix-db-*、update-*、test-api.html) - 与 eslint.config.mjs 冲突的 .eslintrc.json - 死代码 lib/ensure-ssh-tunnel.js 更新 .gitignore 忽略 dist/storage/env 文件8cbe613
-
feat: 添加 GitHub 项目更新自动处理功能,支持版本比较和翻译更新日志
5b18fa3 -
feat: 优化 GitHub 更新检查逻辑,支持从数据库版本比较并记录未变化状态
c31771f -
feat: 增强 GitHub URL 解析,支持 api.github.com 并添加标签检查逻辑
90017ea -
fix: 修复解析相对 URL 时的空格处理问题
da59a42 -
feat: 添加 RSSHub 雷达规则支持以提取域名并记录匹配信息
013d8f5 -
fix: 更新请求头中的 User-Agent 为共享浏览器用户代理
71c61d1 -
feat: 增加请求超时设置并添加项目分页获取日志
76ab4c1 -
feat: 添加共享浏览器支持以优化项目更新检测
260443a -
fix: improve error handling and update logic in various scripts
a0d9ed2
-
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: use GitHub API for GitHub projects in no-cache pre-detection path
copilot-swe-agent[bot] +1: zitonsCo-authored-by: zitons <49295983+zitons@users.noreply.github.com>e8b390f
-
Use plain curl instead of Playwright for api.github.com and itunes.apple.com regex matching
copilot-swe-agent[bot] +1: zitonsCo-authored-by: zitons <49295983+zitons@users.noreply.github.com>0865c06 -
feat: 添加对正则匹配失败项目的处理逻辑,记录失败项目列表
3c32866 -
fix: 修复 parseGitHubRepo 函数中的空 catch 块,优化内容长度比较逻辑
f632f5b -
feat: 使用 Playwright 更新 fetchText 函数以支持 JS 渲染页面
0cf96f7 -
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: replace SHA-256 hash with Content-Length comparison for no-cache projects
copilot-swe-agent[bot] +1: zitons- check-updates.js: remove crypto/getContentHash; restore NOCACHE_FILE/noCacheNames; headRequest now captures content-length; no-cache branch compares contentLength — changed/absent → AI triage (noCacheNames); same → unchanged - github-data-ops.yml: restore NOCACHE/NOCACHE_MSG prompt block with Content-Length based description - SKILL.md: restore no-cache triage section with Content-Length pre-filter docs; update update_source_url field description; rebuild .skill zip Co-authored-by: zitons <49295983+zitons@users.noreply.github.com>d667f09 -
feat: use SHA-256 content hash for no-cache projects instead of AI triage
copilot-swe-agent[bot] +1: zitons- check-updates.js: add getContentHash() (GET + SHA-256); when HEAD returns no ETag/Last-Modified, fall back to body hash comparison; no-cache projects now get a definitive changed/unchanged result like ETag-tracked ones - Remove NOCACHE_FILE, noCacheNames, all no-cache file infrastructure - github-data-ops.yml: remove NOCACHE variable and NOCACHE_MSG triage prompt - SKILL.md: remove no-cache triage section; update update_source_url docs - Rebuild github-data-ops.skill zip Co-authored-by: zitons <49295983+zitons@users.noreply.github.com>172e72f -
feat: include no-cache projects in Phase 1 update pipeline with AI triage
copilot-swe-agent[bot] +1: zitons- check-updates.js: track no-cache projects (no ETag/Last-Modified headers) and write to /tmp/nocache-projects.txt alongside changed-projects.txt - github-data-ops.yml: read nocache-projects.txt; when non-empty, append triage instructions to Phase 1 prompt (news search, DB age comparison, direct fetch only for high-probability candidates) - SKILL.md: add "no-cache 智能筛查" 3-step triage protocol; update update_source_url field description to explain the no-cache classification - Rebuild github-data-ops.skill zip from updated directory Co-authored-by: zitons <49295983+zitons@users.noreply.github.com>de5f0ee -
fix: stop perpetual baseline logs for URLs that return no caching headers
copilot-swe-agent[bot] +1: zitonsFor non-GitHub URLs that never return ETag or Last-Modified headers, `isFirstCheck` was derived from `!cached.etag && !cached.lastModified` (always true) and the cache write was guarded by `if (result.etag || result.lastModified)` (never true). Together these two bugs ensured the cache entry was never saved, so every run re-logged "baseline — first check" for the same projects. Fix: - `isFirstCheck` now checks `cache[p.id] === undefined` — true only when there is genuinely no prior entry for the project. - The cache entry is always written after a successful HEAD request, so subsequent runs correctly log "no-cache" instead of "baseline". Co-authored-by: zitons <49295983+zitons@users.noreply.github.com>2acc307 -
Fix etag-cache sensitivity: require Last-Modified for change detection, save cache immediately after probe
copilot-swe-agent[bot] +1: zitonsCo-authored-by: zitons <49295983+zitons@users.noreply.github.com>a40ab0e
-
新增 GitHub 令牌支持,优化项目更新检测逻辑
00ba2ba -
修复 GitHub URL 解析逻辑,支持更多路径格式以返回 releases.atom 订阅源
63fa7fd -
增强 GitHub URL 解析功能,支持返回 releases.atom 订阅源
a353292
-
feat: 更新 GitHub Data Ops 工作流名称和调度频率,优化检查逻辑
fix: 修改 check-updates.js 中的 ETag/Last-Modified 比较逻辑,增强准确性 fix: 更新 SKILL.md 中的运营流程和链接验证要求,明确使用 DDGS Search API 的规则94a4b0b -
feat: 增强 ETag/Last-Modified 检查逻辑,支持首次检查和无缓存头处理
3039576
-
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: 运营结束后将新增URL提交至Google Indexing API
- 新增 scripts/submit-to-indexing.js:对比前后 sitemap,提交新增 URL - 工作流新增三步:安装 googleapis、抓取运营前 sitemap、运营后提交新 URL - .gitignore 新增 Google 服务账号 JSON 文件匹配规则,防止密钥误提交 - 需在仓库 Secrets 中添加 GOOGLE_SA_JSON(服务账号 JSON 内容) Co-Authored-By: Claude <noreply@anthropic.com>f95cb6c
-
调整数据库格式、优化翻译、支持skills更新模式
d2b3c08
-
修复ssh
f3af632
-
测试
a4dceb7
-
将后端迁移到nodejs、新增爬虫管理
3ca405e
-
前端遇到了一个问题
Onlookde98fc6