yuanbot-cli 1.0.2__tar.gz → 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yuanbot_cli-1.0.2 → yuanbot_cli-1.0.4}/PKG-INFO +1 -1
- {yuanbot_cli-1.0.2 → yuanbot_cli-1.0.4}/pyproject.toml +1 -1
- yuanbot_cli-1.0.4/src/yuanbot_cli/__init__.py +1 -0
- {yuanbot_cli-1.0.2 → yuanbot_cli-1.0.4}/src/yuanbot_cli/cli.py +6 -11
- yuanbot_cli-1.0.2/src/yuanbot_cli/__init__.py +0 -1
- {yuanbot_cli-1.0.2 → yuanbot_cli-1.0.4}/.gitignore +0 -0
- {yuanbot_cli-1.0.2 → yuanbot_cli-1.0.4}/README.md +0 -0
- {yuanbot_cli-1.0.2 → yuanbot_cli-1.0.4}/src/yuanbot_cli/__main__.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.4"
|
|
@@ -55,7 +55,7 @@ def _info(msg: str) -> None:
|
|
|
55
55
|
|
|
56
56
|
# ── 核心安装逻辑 ──────────────────────────
|
|
57
57
|
|
|
58
|
-
VERSION = "1.0.
|
|
58
|
+
VERSION = "1.0.4"
|
|
59
59
|
REPO_URL = "https://github.com/Grabrun/YuanBot.git"
|
|
60
60
|
|
|
61
61
|
|
|
@@ -216,14 +216,12 @@ def _run_install(args: argparse.Namespace) -> None:
|
|
|
216
216
|
|
|
217
217
|
# ── 7. 初始化配置 ───────────────────
|
|
218
218
|
_header("初始化配置")
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
)
|
|
223
|
-
if result.returncode == 0:
|
|
219
|
+
_info("生成配置模板...")
|
|
220
|
+
code = _run_cmd([str(py_venv), "-m", "yuanbot.cli", "config", "init"], cwd=str(target_dir))
|
|
221
|
+
if code == 0:
|
|
224
222
|
_ok("配置模板已生成")
|
|
225
223
|
else:
|
|
226
|
-
_warn(
|
|
224
|
+
_warn("config init 遇到问题,继续执行...")
|
|
227
225
|
print()
|
|
228
226
|
|
|
229
227
|
# ── 8. 配置 AI 提供商 ───────────────
|
|
@@ -282,10 +280,7 @@ def _run_install(args: argparse.Namespace) -> None:
|
|
|
282
280
|
|
|
283
281
|
# ── 9. 运行诊断 ─────────────────────
|
|
284
282
|
_header("运行诊断")
|
|
285
|
-
|
|
286
|
-
[str(py_venv), "-m", "yuanbot.cli", "doctor"],
|
|
287
|
-
cwd=target_dir,
|
|
288
|
-
)
|
|
283
|
+
_run_cmd([str(py_venv), "-m", "yuanbot.cli", "doctor"], cwd=str(target_dir))
|
|
289
284
|
print()
|
|
290
285
|
|
|
291
286
|
# ── 10. 完成 ─────────────────────────
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|