暴露全部api,解决循环import问题

This commit is contained in:
UnCLAS-Prommer
2025-07-08 00:10:31 +08:00
parent 6633d5e273
commit 36974197a8
14 changed files with 89 additions and 702 deletions

View File

@@ -4,11 +4,16 @@
提供插件开发和管理的实用工具
"""
from src.plugin_system.utils.manifest_utils import (
from .manifest_utils import (
ManifestValidator,
ManifestGenerator,
validate_plugin_manifest,
generate_plugin_manifest,
)
__all__ = ["ManifestValidator", "ManifestGenerator", "validate_plugin_manifest", "generate_plugin_manifest"]
__all__ = [
"ManifestValidator",
"ManifestGenerator",
"validate_plugin_manifest",
"generate_plugin_manifest",
]

View File

@@ -305,7 +305,7 @@ class ManifestValidator:
# 检查URL格式可选字段
for url_field in ["homepage_url", "repository_url"]:
if url_field in manifest_data and manifest_data[url_field]:
url = manifest_data[url_field]
url: str = manifest_data[url_field]
if not (url.startswith("http://") or url.startswith("https://")):
self.validation_warnings.append(f"{url_field}建议使用完整的URL格式")