mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 01:11:18 +00:00
ux: fix install and upgrade success messages (#1113)
Fixes two UX issues identified in #1106: 1. Install script: Raw escape codes weren't rendering in log_info - Before: "Run \033[1mspawn\033[0m\033[0;32m to get started\033[0m" - After: Uses printf with proper color variable interpolation 2. Update command: Confusing message after `spawn update` - Before: "Run your spawn command again to use the new version" - After: "Run spawn again to use the new version" - The word "your" implied the user had run some other command, but they explicitly ran `spawn update` Agent: ux-engineer Co-authored-by: Spawn Refactor Service <refactor@spawn.service> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2f75c5b695
commit
de42958eca
3 changed files with 4 additions and 4 deletions
|
|
@ -101,7 +101,7 @@ ensure_in_path() {
|
|||
echo ""
|
||||
"${install_dir}/spawn" version
|
||||
echo ""
|
||||
log_info "Run ${BOLD}spawn${NC}${GREEN} to get started${NC}"
|
||||
printf "${GREEN}[spawn]${NC} Run ${BOLD}spawn${NC} to get started\n"
|
||||
else
|
||||
echo ""
|
||||
log_warn "${BOLD}${install_dir}${NC}${YELLOW} is not in your PATH${NC}"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.2.81",
|
||||
"version": "0.2.82",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -1733,8 +1733,8 @@ async function performUpdate(remoteVersion: string): Promise<void> {
|
|||
try {
|
||||
execSync(INSTALL_CMD, { stdio: "inherit", shell: "/bin/bash" });
|
||||
console.log();
|
||||
p.log.success(`Updated to v${remoteVersion}`);
|
||||
p.log.info("Run your spawn command again to use the new version.");
|
||||
p.log.success(`Updated successfully!`);
|
||||
p.log.info("Run spawn again to use the new version.");
|
||||
} catch {
|
||||
p.log.error("Auto-update failed. Update manually:");
|
||||
console.log();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue