Merge pull request #1203 from Itsnotaka/main

feat(coding-agent): implement install method detection
This commit is contained in:
Mario Zechner 2026-02-03 01:44:41 +01:00 committed by GitHub
commit 4137ed787b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 61 additions and 5 deletions

View file

@ -48,8 +48,7 @@ import {
getAuthPath,
getDebugLogPath,
getShareViewerUrl,
isBunBinary,
isBunRuntime,
getUpdateInstruction,
VERSION,
} from "../../config.js";
import { type AgentSession, type AgentSessionEvent, parseSkillBlock } from "../../core/agent-session.js";
@ -2768,9 +2767,7 @@ export class InteractiveMode {
}
showNewVersionNotification(newVersion: string): void {
const action = isBunBinary
? `Download from: ${theme.fg("accent", "https://github.com/badlogic/pi-mono/releases/latest")}`
: `Run: ${theme.fg("accent", `${isBunRuntime ? "bun" : "npm"} install -g @mariozechner/pi-coding-agent`)}`;
const action = theme.fg("accent", getUpdateInstruction("@mariozechner/pi-coding-agent"));
const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. `) + action;
const changelogUrl = theme.fg(
"accent",