fix: expand bootstrap prompt with full onboarding and upgrade guide #105
Reference in New Issue
Block a user
Delete Branch "fix/104-bootstrap-onboarding"
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
Rewrite
uwf prompt bootstrapto cover two complete scenarios:Scenario A: Fresh Install
npm installcommands)uwf setup— explicitly tells agent to ask the user for provider, API key, and modeluwf promptoutputsScenario B: Upgrade
$START._→new/resumemigration)Why
The previous bootstrap only covered "install skills" — agents had no idea what to do next (#104). Missing:
uwf setupand what info to provideChanges
prompt.ts— complete rewrite ofcmdPromptBootstrap()prompt.test.ts— added assertions for fresh install and upgrade content.changeset/bootstrap-onboarding.md— patch bump for cliRef
Fixes #104
LGTM ✅
从"装 3 个 skill"扩展为完整的 onboarding guide,结构清晰:
Fresh Install — CLI + adapter 安装 →
uwf setup配置(含 preset 列表和示例命令,让 agent 知道该问用户什么) → skill 安装 → smoke test 验证。adapter 对照表很实用。Upgrade — 更新包 → 重新生成 skill → 迁移指南(文档化了
$START._→new/resume的 before/after)→ 验证。测试也跟着扩展了,覆盖两个场景的关键词。changeset patch 级别合适。