docs(skills): AGENTS.md 改成「现象 → 命令」排错清单
删掉服务器背景、agent-executor-init、SKILL.md 说明之类的旁白。只保留: 报什么错 → 敲什么命令。四份都在 20 行内。
This commit is contained in:
+10
-19
@@ -1,27 +1,18 @@
|
||||
# office:本机环境
|
||||
# office
|
||||
|
||||
服务器由镜像与 `agent-executor-init` 准备(跑同目录 `install.sh`)。本机不要跑它,按下面装,装完不需要重启。
|
||||
`office: command not found`
|
||||
|
||||
```sh
|
||||
PATH="$(dirname "$AGENT_SKILLS_DEPS")/office/scripts:$PATH" office help
|
||||
```
|
||||
|
||||
`office.core binary missing`
|
||||
|
||||
```sh
|
||||
SK="$(dirname "$AGENT_SKILLS_DEPS")/office"
|
||||
```
|
||||
|
||||
## 缺二进制(报 `office.core binary missing`)
|
||||
|
||||
```sh
|
||||
mkdir -p "$SK/bin"
|
||||
curl -fL --progress-bar -o "$SK/bin/officecli" \
|
||||
https://github.com/iOfficeAI/OfficeCLI/releases/latest/download/officecli-mac-x64
|
||||
chmod +x "$SK/bin/officecli" && "$SK/bin/officecli" --version
|
||||
chmod +x "$SK/bin/officecli"
|
||||
```
|
||||
|
||||
资产名:mac Intel `officecli-mac-x64`、Apple Silicon `officecli-mac-arm64`、Linux `officecli-linux-x64` / `officecli-linux-arm64`。
|
||||
GitHub 慢时加 `https://gh-proxy.com/` 前缀。用 `latest` 即可,不必对齐服务器的 pin。
|
||||
|
||||
## `office` 命令不在 PATH
|
||||
|
||||
本机启动器不注入 PATH。按次指定目录:
|
||||
|
||||
```sh
|
||||
PATH="$SK/scripts:$PATH" office help
|
||||
```
|
||||
资产按 `uname -sm` 选:`officecli-mac-x64` / `officecli-mac-arm64` / `officecli-linux-x64` / `officecli-linux-arm64`。下载慢就在地址前加 `https://gh-proxy.com/`。
|
||||
|
||||
Reference in New Issue
Block a user