Repository navigation
fix: VideoTranscript v3.0.1 — 修复 10 项跨端契约、安全边界、解析崩溃与 Android CI 故障 - #2
Merged
Merged
Conversation
…N, extension bridge, SSRF, VTT parsing & search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复清单(v3.0.1)
本次 PR 一次性修复了三轮迭代后全量代码审计与实测复现确认的 10 个真实 Bug,并补齐对应回归测试:
android-actions/setup-android@v3(sdkmanager tools报错),改为直接调用 runner 预装$ANDROID_HOME接受协议并校验platforms;android-36与build-tools;35.0.0。background.ts接入POST /api/extract→ 轮询GET /api/tasks/{task_id}异步协议并支持ACCESS_TOKEN。TransferTranscriptData与兼容JsonElement?分析载荷,启用coerceInputValues = true,彻底消除 Web/扩展 JSON 导入 Android 时的MissingFieldException,同时保留导入包原lastUsedAtMs与 Android 端无损往返。ACCESS_TOKEN冲突修复:/api/health保持无鉴权存活探测(返回auth_required布尔位),/api/extract与/api/tasks/*严格使用hmac.compare_digest校验 Bearer Token。content_scripts.matches放宽至*.youtube.com/*与*.bilibili.com/*,并在面板层增加tab.url直解析兜底。url_guard.py拦截非标准端口与 userinfo(@);B 站短链解析禁用自动重定向、无 Cookie 逐跳校验每个Location目标域名;SESSDATA仅发送给api.bilibili.com。NOTE/STYLE/REGION块,消除正文含-->或空结束时间导致的ValueError/IndexError。maxChars的缺陷(按 Unicode 码点安全切分),补齐 YouTube srv3 XML<p t="..." d="...">与 WebVTTNOTE跳过。searchableText上限从 24k 提至 500k 覆盖 5 小时+ 长视频;转义 SQLiteLIKE通配符%/_;过滤 FTS 保留词并在异常兜底中保留标签搜索。TEST_REPORT.md端口(8765)、健康检查说明与v3.0.1校验和,更新CHANGELOG.md。本地实测结果
pytest:3/3 通过(含 SSRF/端口/userinfo、VTT 畸形行、ACCESS_TOKEN+/api/health回归用例)@videotranscript/shared-core:4/4 通过(含 30k 单行切分、NOTE忽略、YouTube srv3 XML 回归用例)browser-extension(Chromium & Firefox MV3)&web:tsc --noEmit0 错误、构建通过LibraryV3Test跨端 Web JSON 导入 + >24k 检索 + 30k 单行切分回归用例)&:app:assembleRelease全部通过