feat: check and sync strict_max_version in manifest.json#178
Open
feat: check and sync strict_max_version in manifest.json#178
Conversation
commit: |
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.
概述
实现自动检查 Zotero 版本并同步 manifest.json 中的
strict_max_version字段。修复 #177
功能特性
strict_max_version(使用最新 beta 主版本号 + 1)strict_max_version过时时发出警告manifest:update-max-version [path]核心变更
src/utils/zotero-version.ts- 新增版本获取工具getZoteroVersionInfo()- 从 API 获取版本信息并缓存parseMajorVersion()- 提取主版本号compareVersions()- 语义版本比较src/core/manifest-command.ts- 新增 CLI 命令类updateMaxVersion()- 更新 manifest.json 中的strict_max_versionsrc/core/builder/manifest.ts- 集成版本检查strict_max_versionsrc/cli.ts- 注册新命令manifest:update-max-version [path]命令src/utils/zotero-version.test.ts- 单元测试API 端点
缓存位置
~/.scaffold/cache/zotero-version.json- 版本信息缓存