Successfully replaced 2 block(s) in /shumengya/cron/smallmengya-ai-cli-update.disabled/run.py.

     ...
  48     "opencode": {
  49         "binary": "opencode",
  50         "update_args": ["upgrade"],
  51     },
- 52     "pi": {
- 53         "binary": "pi",
- 54         "update_args": ["update"],
- 55     },
+ 52
  56 }
  57
  58
  59 def _which(name: str, path: str) -> str | None:
     ...
 219             log("开始更新 Codex / Claude Code / OpenCode / pi Agent (官方命令 + 代理)")
 220             update_with_official_command("codex", log)
 221             update_with_official_command("claude", log)
 222             update_with_official_command("opencode", log)
-223             update_with_official_command("pi", log)
 224             log("更新命令执行完毕")
 225
 226             failed = any(x.endswith(":fail") for x in results)
 227             send_summary(log)
     ...

--- /shumengya/cron/smallmengya-ai-cli-update.disabled/run.py
+++ /shumengya/cron/smallmengya-ai-cli-update.disabled/run.py
@@ -48,12 +48,9 @@
     "opencode": {
         "binary": "opencode",
         "update_args": ["upgrade"],
     },
-    "pi": {
-        "binary": "pi",
-        "update_args": ["update"],
-    },
+
 }

 def _which(name: str, path: str) -> str | None:
@@ -219,9 +216,8 @@
             log("开始更新 Codex / Claude Code / OpenCode / pi Agent (官方命令 + 代理)")
             update_with_official_command("codex", log)
             update_with_official_command("claude", log)
             update_with_official_command("opencode", log)
-            update_with_official_command("pi", log)
             log("更新命令执行完毕")

             failed = any(x.endswith(":fail") for x in results)
             send_summary(log)


我已经成功从run.py中删除了pi的更新配置和调用。现在让我验证一下文件内容是否正确。

bash

python3 -m py_compile /shumengya/cron/smallmengya-ai-cli-update.disabled/run.py && echo "语法检查通过"


语法检查通过


用户确认了删除pi更新。让我总结一下修改内容。

已删除 `pi` 更新，现在只更新 **Codex / Claude Code / OpenCode** 三个工具 `(｀・ω・´)`

```python
_TOOLS = {
    "codex": {
        "binary": "codex",
        "update_args": ["update"],
    },
    "claude": {
        "binary": "claude",
        "update_args": ["update"],
    },
    "opencode": {
        "binary": "opencode",
        "update_args": ["upgrade"],  # 已去掉 --method bun
    },
}
```

`pi` 相关的更新入口和环境变量注入均已移除。