功能:支持生成版插件注册表元数据#77
Merged
RachelForster merged 7 commits intoJun 8, 2026
Merged
Conversation
This was referenced Jun 6, 2026
Open
Open
Open
Open
| review?: Record<string, unknown>; | ||
| securityScan?: Record<string, unknown>; | ||
| sha256?: string; | ||
| shinsekaiVersion?: string; |
Owner
There was a problem hiding this comment.
Please change this to lowestShinsekaiVersion
| short_description: str | ||
| entry: str | ||
| version: str = "" | ||
| shinsekai_version: str = "" |
| "repo": repo, | ||
| "securityScan": dict(getattr(rec, "security_scan", None) or {}), | ||
| "sha256": str(getattr(rec, "sha256", "") or ""), | ||
| "shinsekaiVersion": str(getattr(rec, "shinsekai_version", "") or ""), |
| short_description="Short card text", | ||
| entry="plugins.demo.plugin:DemoPlugin", | ||
| version="v0.1.0", | ||
| shinsekai_version=">=2.0.0", |
| "review": None, | ||
| "securityScan": {"llm_agent": {"pass": True}}, | ||
| "sha256": "abc123", | ||
| "shinsekaiVersion": ">=2.0.0", |
Owner
RachelForster
left a comment
There was a problem hiding this comment.
Please change the ‘’shinsekai_version‘’
Contributor
Author
|
已按 review 继续补了一轮:
本地已补跑: python -m py_compile core\plugins\registry_catalog.py frontend_bridge_core\plugin_catalog.py
python -m pytest test\unit\test_plugin_registry_catalog.py test\unit\test_frontend_plugin_catalog.py -q
pnpm --dir frontend format:check
cargo test runtime::managed::tests::install_runtime_requirements_tries_configured_indexes_in_order --lib |
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.
关联
变更内容
本 PR 是 #69 拆分计划里的 PR 4,交付主程序读取 generated registry metadata 的能力。
core.plugins.registry_catalog支持新的 generated registry 结构:object map、schema/plugins包装结构、旧plugins.jsonarray 结构。display_name、desc/description、version、shinsekai_version、logo、tags、stars/forks、package.url/sha256/size/r2_key、trust_level/verified/review等。frontend_bridge_core.plugin_catalog将这些字段透传给前端 catalog API。frontend/src/shared/platform/types.ts补齐PluginCatalogItem的 metadata 类型。RachelForster/Shinsekai-Plugin-Registry的 generated cache,并在未显式配置 URL 时 fallback 到旧plugins.json。.as_posix()。与后续 PR 的关系
这个 PR 先合入客户端对新 Registry 数据结构的兼容层;官方包安全安装在 #78,依赖安装优化在 #79,插件市场 UI 与提交助手在 #80 继续接上。这样可以先保证主程序读懂 generated registry,再逐步启用 R2 安装和 UI 体验。
验证
已在 Windows 本地验证:
备注
当前 PR 只让客户端读懂新 registry 数据。即使 generated cache 暂时不存在,也会 fallback 到旧
plugins.json,因此可以先合主程序兼容层,再合 Registry 发布链路。