docs: 将仓库代码注释统一为中文
CI / docs-check (push) Canceled after 0s
CI / backend-test (push) Canceled after 0s
CI / service-test (push) Canceled after 0s
CI / frontend-test (push) Canceled after 0s
CI / rust-core (push) Canceled after 0s
CI / docs-check (pull_request) Canceled after 0s
CI / backend-test (pull_request) Canceled after 0s
CI / service-test (pull_request) Canceled after 0s
CI / frontend-test (pull_request) Canceled after 0s
CI / rust-core (pull_request) Canceled after 0s

This commit is contained in:
2026-09-10 00:40:56 +08:00
parent 51c592841d
commit d703ab64e3
249 changed files with 707 additions and 900 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""Bounded ZIP extraction for packages uploaded to the AI Core host."""
"""上传到 AI Core 主机的包的有限 ZIP 提取。"""
from __future__ import annotations
import io
@@ -31,7 +31,7 @@ def install_zip(data: bytes, kind: str, storage: Path, install: Callable[[Path],
if kind not in ('skill', 'plugin'):
raise ValueError('Unknown extension kind')
storage.mkdir(parents=True, exist_ok=True)
# Retain successful extraction: Plugin commands and resources use this directory.
# 保留成功提取:Plugin 命令和资源使用此目录。
destination = Path(tempfile.mkdtemp(prefix=f'{kind}-', dir=storage))
try:
with zipfile.ZipFile(io.BytesIO(data)) as archive: