mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 06:04:15 +00:00
Merge pull request #567 from ferologics/feat/bun-update-notification
fix(coding-agent): show release URL for bun binary updates
This commit is contained in:
commit
2d4fa997bc
2 changed files with 12 additions and 9 deletions
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
- `--no-tools` flag to disable all built-in tools, allowing extension-only tool setups ([#555](https://github.com/badlogic/pi-mono/issues/555))
|
- `--no-tools` flag to disable all built-in tools, allowing extension-only tool setups ([#555](https://github.com/badlogic/pi-mono/issues/555))
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Update notification for bun binary installs now shows release download URL instead of npm command ([#567](https://github.com/badlogic/pi-mono/pull/567) by [@ferologics](https://github.com/ferologics))
|
||||||
|
|
||||||
## [0.38.0] - 2026-01-08
|
## [0.38.0] - 2026-01-08
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import {
|
||||||
visibleWidth,
|
visibleWidth,
|
||||||
} from "@mariozechner/pi-tui";
|
} from "@mariozechner/pi-tui";
|
||||||
import { spawn, spawnSync } from "child_process";
|
import { spawn, spawnSync } from "child_process";
|
||||||
import { APP_NAME, getAuthPath, getDebugLogPath, VERSION } from "../../config.js";
|
import { APP_NAME, getAuthPath, getDebugLogPath, isBunBinary, VERSION } from "../../config.js";
|
||||||
import type { AgentSession, AgentSessionEvent } from "../../core/agent-session.js";
|
import type { AgentSession, AgentSessionEvent } from "../../core/agent-session.js";
|
||||||
import type {
|
import type {
|
||||||
ExtensionContext,
|
ExtensionContext,
|
||||||
|
|
@ -2148,17 +2148,16 @@ export class InteractiveMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
showNewVersionNotification(newVersion: string): void {
|
showNewVersionNotification(newVersion: string): void {
|
||||||
|
const updateInstruction = isBunBinary
|
||||||
|
? theme.fg("muted", `New version ${newVersion} is available. Download from: `) +
|
||||||
|
theme.fg("accent", "https://github.com/badlogic/pi-mono/releases/latest")
|
||||||
|
: theme.fg("muted", `New version ${newVersion} is available. Run: `) +
|
||||||
|
theme.fg("accent", "npm install -g @mariozechner/pi-coding-agent");
|
||||||
|
|
||||||
this.chatContainer.addChild(new Spacer(1));
|
this.chatContainer.addChild(new Spacer(1));
|
||||||
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
||||||
this.chatContainer.addChild(
|
this.chatContainer.addChild(
|
||||||
new Text(
|
new Text(`${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction}`, 1, 0),
|
||||||
theme.bold(theme.fg("warning", "Update Available")) +
|
|
||||||
"\n" +
|
|
||||||
theme.fg("muted", `New version ${newVersion} is available. Run: `) +
|
|
||||||
theme.fg("accent", "npm install -g @mariozechner/pi-coding-agent"),
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
|
||||||
this.ui.requestRender();
|
this.ui.requestRender();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue