guanghulab/.hlpd-protocol
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

31 lines
981 B
Plaintext
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.

# HLDP执行协议 · D146
# HLDP不是文档格式——是铸渊→工具系统的指令协议
## 新增字段
@exec: 可执行命令。用编号引用工具和参数。一行一条。
编号查 .code-map 翻译成实际路径后执行。
格式: <编号> <参数...>
例: VA-050 /tmp/new.jpg /tmp/ref.jpg
@check: 执行后校验。返回0=通过非0=不通过。
格式: <编号> <参数...>
例: TL-CHECK qwen-vision 风格一致性 85
@rollback: 失败回滚。可选。
## 工具系统收到HLDP后的操作
1. 解析 @exec 行 → 提取编号和参数
2. 编号 → 查 .code-map → 拿到路径/指令
3. 替换参数 → 组成完整命令
4. 执行 → 返回输出
5. 解析 @check → 校验 → 通过/不通过
## 工具系统不需要知道
- HLDP里写了什么背景故事
- trigger/lock/why 是什么意思
- 为什么要执行这个命令
工具系统只做: 解析 @exec → 查表 → 执行 → 返回。