feat(coding-agent): Add built-in update command (#3680)

This commit is contained in:
Armin Ronacher
2026-04-25 13:09:33 +02:00
committed by GitHub
parent 0b271a2c4f
commit dcf2651631
7 changed files with 372 additions and 35 deletions

View File

@@ -54,7 +54,6 @@ import {
getDebugLogPath,
getDocsPath,
getShareViewerUrl,
getUpdateInstruction,
VERSION,
} from "../../config.js";
import { type AgentSession, type AgentSessionEvent, parseSkillBlock } from "../../core/agent-session.js";
@@ -3515,8 +3514,8 @@ export class InteractiveMode {
}
showNewVersionNotification(newVersion: string): void {
const action = theme.fg("accent", getUpdateInstruction("@mariozechner/pi-coding-agent"));
const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. `) + action;
const action = theme.fg("accent", `${APP_NAME} update`);
const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
const changelogUrl = theme.fg(
"accent",
"https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md",