@phi-code-admin/phi-code 0.76.7 → 0.76.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ import * as os from "node:os";
8
8
  import * as path from "node:path";
9
9
  import { spawn, spawnSync } from "child_process";
10
10
  import { getProviders, } from "phi-code-ai";
11
- import { CombinedAutocompleteProvider, Container, fuzzyFilter, getCapabilities, hyperlink, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "phi-code-tui";
11
+ import { CombinedAutocompleteProvider, Container, fuzzyFilter, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "phi-code-tui";
12
12
  import { APP_NAME, APP_TITLE, getAgentDir, getAuthPath, getDebugLogPath, getDocsPath, getShareViewerUrl, VERSION, } from "../../config.js";
13
13
  import { parseSkillBlock } from "../../core/agent-session.js";
14
14
  import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
@@ -2952,29 +2952,15 @@ export class InteractiveMode {
2952
2952
  this.chatContainer.addChild(new Text(theme.fg("warning", `Warning: ${warningMessage}`), 1, 0));
2953
2953
  this.ui.requestRender();
2954
2954
  }
2955
- showNewVersionNotification(newVersion) {
2956
- const action = theme.fg("accent", `${APP_NAME} update`);
2957
- const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
2958
- const changelogUrl = "https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md";
2959
- const changelogLink = getCapabilities().hyperlinks
2960
- ? hyperlink(theme.fg("accent", "open changelog"), changelogUrl)
2961
- : theme.fg("accent", changelogUrl);
2962
- const changelogLine = theme.fg("muted", "Changelog: ") + changelogLink;
2963
- this.chatContainer.addChild(new Spacer(1));
2964
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2965
- this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction}\n${changelogLine}`, 1, 0));
2966
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2967
- this.ui.requestRender();
2955
+ showNewVersionNotification(_newVersion) {
2956
+ // Update notifications are intentionally disabled: the inherited self-update
2957
+ // flow points at the upstream Pi package (earendil-works/pi-coding-agent),
2958
+ // not phi-code, so the "Update Available" prompt was misleading and `phi
2959
+ // update` broke the install. Re-enable only once self-update targets
2960
+ // @phi-code-admin/phi-code.
2968
2961
  }
2969
- showPackageUpdateNotification(packages) {
2970
- const action = theme.fg("accent", `${APP_NAME} update`);
2971
- const updateInstruction = theme.fg("muted", "Package updates are available. Run ") + action;
2972
- const packageLines = packages.map((pkg) => `- ${pkg}`).join("\n");
2973
- this.chatContainer.addChild(new Spacer(1));
2974
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2975
- this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Package Updates Available"))}\n${updateInstruction}\n${theme.fg("muted", "Packages:")}\n${packageLines}`, 1, 0));
2976
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2977
- this.ui.requestRender();
2962
+ showPackageUpdateNotification(_packages) {
2963
+ // Disabled together with showNewVersionNotification (see above).
2978
2964
  }
2979
2965
  /**
2980
2966
  * Get all queued messages (read-only).