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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yuanbot-cli
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: YuanBot 安装引导工具 — 一行命令部署 YuanBot AI 虚拟伴侣
5
5
  Project-URL: Homepage, https://grabrun.github.io/YuanBot
6
6
  Project-URL: Repository, https://github.com/Grabrun/YuanBot
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "yuanbot-cli"
7
- version = "1.0.2"
7
+ version = "1.0.4"
8
8
  description = "YuanBot 安装引导工具 — 一行命令部署 YuanBot AI 虚拟伴侣"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -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.2"
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
- result = subprocess.run(
220
- [str(py_venv), "-m", "yuanbot.cli", "config", "init"],
221
- capture_output=True, text=True, cwd=target_dir,
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(f"config init 输出: {result.stderr[-200:]}")
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
- subprocess.run(
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