feat: add version_regex field for precise no-cache version detection
copilot-swe-agent[bot]+1: zitons
c23b392
- 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>
feat: replace SHA-256 hash with Content-Length comparison for no-cache projects
copilot-swe-agent[bot]+1: zitons
d667f09
- 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>
feat: use SHA-256 content hash for no-cache projects instead of AI triage
copilot-swe-agent[bot]+1: zitons
172e72f
- 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>
feat: include no-cache projects in Phase 1 update pipeline with AI triage
copilot-swe-agent[bot]+1: zitons
de5f0ee
- 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>
fix: stop perpetual baseline logs for URLs that return no caching headers
copilot-swe-agent[bot]+1: zitons
2acc307
For 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>
Fix etag-cache sensitivity: require Last-Modified for change detection, save cache immediately after probe