gitlink-cli/doc/changes/windows-agent-invocation.md

12 lines
834 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Windows Agent Shell 调用说明
在 Windows 上通过 `npm install -g @gitlink-ai/cli` 安装 CLI 后PowerShell 和 CMD 可以直接执行 npm 生成的 shim但部分基于 Git Bash 的 Agent Shell 不能正确处理 `.cmd` 包装器,导致 `gitlink-cli` 命令执行失败。
本次更新不修改 Go 主程序,而是补充稳定的调用约定:
- PowerShell / CMD / macOS / Linux 继续直接使用 `gitlink-cli ...`
- Windows Git Bash 或 shim 不兼容的 Agent Shell 改为通过 Node 直接执行 `@gitlink-ai/cli/bin/cli.js`
-`README`、`README.zh-CN` 和 `skills/gitlink-shared/SKILL.md` 中都增加了可复制的 fallback 命令
这样做可以让 Skill、Agent 提示词和人工排障文档对齐,避免 Windows 上 “PowerShell 可用、Git Bash 失败” 的调用差异继续反复出现。