fix: setup UX improvements (#114) #115
Reference in New Issue
Block a user
Delete Branch "fix/114-setup-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
Address all 6 feedback items from #114.
Changes
🔴 Main fixes
which uwf-<agent>+which hermes(for uwf-hermes), prints install command if missing"uwf-hermes" not found in PATH. Run: which uwf-hermesinstead of raw spawn error🟡 Minor fixes
NODE_OPTIONS=--disable-warning=ExperimentalWarninginjected into spawned adapter processesConfig saved to ~/.uwf/config.yaml ✓on stderr after successful writeTests
806/806 passing ✅
Ref
Fixes #114
LGTM ✅ 6 条反馈全解决,几个亮点:
"uwf-hermes" not found in PATH,附which命令,这个体验差距很大NODE_OPTIONS --disable-warning=ExperimentalWarning注入到 spawn env 里,前景和后台两个路径都覆盖了,且 filter(Boolean) 正确处理了已有 NODE_OPTIONS 的拼接__dirname向上找@united-workforce/cli的 package.json,兼容 src/ 和 dist/ 两种路径,最多走 5 层,稳妥which uwf-<agent>,hermes 还额外查which hermes,预警前置.bashrc,列举常见 shell config 让用户自己对号入座c0e0e561f3tofde87b6274