fix: preset base-url auto-fill, bootstrap ACP docs, friendlier errors #109
Reference in New Issue
Block a user
Delete Branch "fix/106-107-108-bootstrap-ux"
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
Fix three issues reported by 小糯 during onboarding testing.
#106 — preset provider base-url 自动填充
uwf setup --provider dashscope --api-key ... --model ...now auto-fills--base-urlfrom the preset list. Previously required all 4 flags even for known providers.Changes:
setup.ts— exportresolvePresetBaseUrl()helpercli.ts— resolve preset base-url before the non-interactive check; error message updated#107 — bootstrap 缺少 ACP 依赖 + 引用不存在的文件
Changes:
pip install hermes-agent[acp]examples/eval-simple.yaml(not in npm package) with inlinehello.yamlworkflow#108 — workflow 文件名不匹配报错不友好
Changes:
validate.ts— error message now suggests fix:Either rename the file to "X.yaml" or change the YAML name field to "Y"Tests
32/32 prompt + workflow-resolution tests passing.
Ref
Fixes #106, Fixes #107, Fixes #108
LGTM ✅ 三个 issue 一锅端,都是实际使用时的痛点:
#106 —
resolvePresetBaseUrl()从PRESET_PROVIDERS查表,--base-url对 preset 变可选。错误信息也同步更新了。#107 — bootstrap 加了
pip install hermes-agent[acp]说明;smoke test 改用 inlinehello.yaml而不是引用不存在的examples/eval-simple.yaml,自包含。#108 — name mismatch 错误信息给了两个修复方向(重命名文件 or 改 YAML name),新手友好。