docs: upgrade debate example + fix: UWF_HERMES_BIN env support #133
Reference in New Issue
Block a user
Delete Branch "docs/upgrade-debate-example"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
UWF_HERMES_BINenv var support touwf-hermesadapterWhy
Debate example: The original debate (for/against, enum-based) was outdated. xiaonuo's workflow design is significantly better — 3 roles, oneOf routing, bounded termination.
UWF_HERMES_BIN:
uwf-hermeshardcodesspawn("hermes")which fails when hermes is installed in a venv or non-standard location not on non-login PATH (#134). Adding an env var override makes deployment more robust.Changes
examples/debate.yaml— complete rewriteenum→oneOf+constfor$statuspackages/agent-hermes/src/acp-client.ts—UWF_HERMES_BINenv var supportresolveHermesCommand()checks env first, falls back to PATHRef
Refs #134, follows up on #127, #129
LGTM ✅ debate workflow 大升级:
比原来的 continue/conceded 双角色版本强太多了。
docs: upgrade debate example — 3 roles, oneOf routing, bounded terminationto docs: upgrade debate example + fix: UWF_HERMES_BIN env supportLGTM ✅
debate.yaml: 3 角色 + oneOf schema + 有界终止,设计质量很高。Critical Thinking Framework 是不错的 prompt engineering 实践。
acp-client.ts: UWF_HERMES_BIN env var fix 干净利落,spawn 时求值(非模块加载时)是正确做法。
Minor suggestions (non-blocking):
capabilities: []可以省略船新版本,可以合。