install: treat xiaohe-agent/packages/mytoolkit as the working tree.

Refuse only GHA _work installs; drop the standalone myBin checkout as the install target.
This commit is contained in:
Zhengshou Lai
2026-08-11 21:18:40 +08:00
parent 089da97633
commit 4b2ed13280
3 changed files with 32 additions and 22 deletions
+7 -5
View File
@@ -72,16 +72,18 @@ mytoolkit completion zsh # 打印 zsh 补全脚本
| LaTeX 编译 | `mytoolkit latex compile paper.tex` |
| BibTeX 转 Markdown | `mytoolkit convert refs.bib -o refs.md` |
| AVI 视频转 MP4 | `mytoolkit convert video.avi -o video.mp4` |
| 更新工具本身 | `cd mytoolkit && make install` |
| 更新工具本身 | `cd <xiaohe-agent>/packages/mytoolkit && make install` |
## 安装与更新
```bash
cd ~/workspace/packages/mytoolkit && make install
cd <xiaohe-agent>/packages/mytoolkit && make install
# 或:cd <xiaohe-agent> && make update / ./setup.sh
mytoolkit --version
mytoolkit templates list
python3 -m pip show mytoolkit | grep Editable
# 期望:.../xiaohe-agent/packages/mytoolkit
```
> **重要**:修改 `packages/mytoolkit` 中的源码、或用 `git pull` / `git submodule update` 拉取更新后,**都必须重新执行 `make install`**(或 `mytoolkit update`)。Python 的 editable 安装不会自动跟踪源码改动,不重装则 CLI 调用的仍是旧版本。验证方式:`mytoolkit --version` 或 `which mytoolkit`
> **重要**:修改 `packages/mytoolkit` 源码或 `git submodule update` 须重新 `make install`(或走 monorepo `make update`)。勿从 `~/.xiaohe/actions-runner/_work/...` 安装。旁路备份克隆(如 `~/Documents/myBin/mytoolkit`)不要用来 install
> **唯一真源**mytoolkit 的具体用法、命令参数、模板说明以 **已安装的 mytoolkit 包** 为准(`mytoolkit info paths` 查路径、`mytoolkit info docs <name>` 打印参考文档)。**设计决策与仓库约定**(脚手架取舍、文档生成工作流、命名等)见仓库 `AGENTS.md`。若 `mytoolkit` 命令不可用,可按默认开发路径 `~/workspace/packages/mytoolkit/` 查找。本 skill `references/` 仅作为 `info docs` 未覆盖命令的速查补充。
> **唯一真源**用法以已安装包为准(`mytoolkit info paths` / `info docs`);仓库约定见 `AGENTS.md`。本 skill `references/` 仅作速查补充。