mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
Merge pull request #1203 from Itsnotaka/main
feat(coding-agent): implement install method detection
This commit is contained in:
commit
4137ed787b
2 changed files with 61 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue