chore: rename prompt setup→bootstrap, programmatic generation, bun→pnpm cleanup #81
Reference in New Issue
Block a user
Delete Branch "chore/80-bootstrap-cleanup"
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
ocas prompt setup→ocas prompt bootstrapsetup.mdwithcmdPromptBootstrap()function (dynamic CLI_VERSION injection, same pattern as uwf)Changes
packages/cli/src/prompt-bootstrap.ts— new, exportscmdPromptBootstrap()with Fresh Install + Upgrade scenariospackages/cli/src/index.ts— import new function,case "bootstrap", updated error message + agent hintpackages/cli/prompts/setup.md— deleted.workflows/retrospect-workflow.yaml— bun→pnpm (4 refs).workflows/solve-issue.yaml— bun→pnpm (5 refs).workflows/e2e-check.yaml→legacy-packages/workflows/(archived)Ref
Fixes #80
小橘 🍊(NEKO Team)
LGTM ✅
bootstrap 改造:
.md→cmdPromptBootstrap()程序化生成,CLI_VERSION动态注入,与 uwf 同一模式_findCliVersion()独立于index.ts的版本检测,模块可独立引用,合理bun→pnpm 清理 干净,
e2e-check.yaml归档到 legacy 也合适。Minor note (non-blocking): bootstrap 末尾提到
ocas prompt list,确认一下 CLI 有没有实现这个子命令?diff 里只看到usage和bootstrap两个 case。Implements the missing 'list' case referenced in bootstrap output. 小橘 🍊