Loading...
Loading...
Compare original and translation side by side
Platform: macOS (Apple Silicon)
平台: macOS (Apple Silicon)
rmpkillrmpkill| Step | Component | Command | Reversible? |
|---|---|---|---|
| 1 | Bot process | | Yes (restart bot) |
| 2 | Kokoro venv | | Yes (reinstall) |
| 3 | Shell symlinks | | Yes (re-symlink) |
| 4 | Temp files | | N/A |
| 5 | Secrets (optional) | | Requires re-creation |
| 步骤 | 组件 | 命令 | 是否可逆? |
|---|---|---|---|
| 1 | 机器人进程 | | 是(重启机器人) |
| 2 | Kokoro虚拟环境 | | 是(重新安装) |
| 3 | Shell符号链接 | | 是(重新创建符号链接) |
| 4 | 临时文件 | | 不适用 |
| 5 | 密钥(可选) | | 需要重新创建 |
| Resource | Path | Why Preserved |
|---|---|---|
| Model cache | | ~400MB download, reusable |
| Bot source code | | Git-tracked, not ephemeral |
| mise.toml config | | Configuration SSoT |
| Centralized logs | | Audit trail |
| 资源 | 路径 | 保留原因 |
|---|---|---|
| 模型缓存 | | 约400MB的下载文件,可重复使用 |
| 机器人源代码 | | Git追踪的文件,非临时文件 |
| mise.toml配置 | | 配置的单一可信来源 (SSoT) |
| 集中式日志 | | 审计追踪 |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedrm -f /tmp/kokoro-tts-*.wav
rm -f /tmp/kokoro-tts.lockrm -f /tmp/kokoro-tts-*.wav
rm -f /tmp/kokoro-tts.lockundefinedundefined
---
---1. [Confirm] Ask user which components to remove via AskUserQuestion
2. [Stop] Stop bot process
3. [Venv] Run kokoro-install.sh --uninstall
4. [Symlinks] Remove ~/.local/bin/ symlinks
5. [Temp] Clean /tmp/ TTS files
6. [Secrets] Optionally remove secrets (with confirmation)
7. [Verify] Confirm all selected components removed1. [确认] 通过AskUserQuestion询问用户要移除哪些组件
2. [停止] 停止机器人进程
3. [虚拟环境] 运行kokoro-install.sh --uninstall
4. [符号链接] 移除~/.local/bin/下的符号链接
5. [临时文件] 清理/tmp/下的TTS文件
6. [密钥] 可选地移除密钥(需确认)
7. [验证] 确认所有选中的组件已被移除pgrep -la 'bun.*src/main.ts'ls ~/.local/share/kokoro/.venvls ~/.local/bin/tts_*.shls /tmp/kokoro-tts.lockpgrep -x afplaypgrep -la 'bun.*src/main.ts'ls ~/.local/share/kokoro/.venvls ~/.local/bin/tts_*.shls /tmp/kokoro-tts.lockpgrep -x afplay| Problem | Likely Cause | Fix |
|---|---|---|
| Symlinks still exist after removal | Glob mismatch or permission | |
| Stale lock after removal | Process died without cleanup | |
| Model cache taking space | ~400MB in HuggingFace cache | |
| Bot respawns after kill | Launched with | Check |
| Audio still playing after teardown | | |
| 问题 | 可能原因 | 解决方法 |
|---|---|---|
| 移除后符号链接仍然存在 | 通配符不匹配或权限问题 | |
| 移除后存在无效锁文件 | 进程退出时未清理 | |
| 模型缓存占用空间 | HuggingFace缓存中约400MB的文件 | |
| 杀死进程后机器人重新启动 | 通过launchd的 | 检查 |
| 拆解后音频仍在播放 | | |