@rayu-dev/rayu-cli 1.5.13 → 1.5.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayu-dev/rayu-cli",
3
- "version": "1.5.13",
3
+ "version": "1.5.14",
4
4
  "description": "Rayu-CLI — a multi-provider AI coding CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -44,6 +44,21 @@ function writeMarker() {
44
44
  const isWindows = process.platform === 'win32';
45
45
  const ttyDevice = isWindows ? 'CON' : '/dev/tty';
46
46
 
47
+ // Rayu-driven installs (the in-session auto-updater, and the local-install
48
+ // updater) set this. In that case the terminal device is NOT free real estate:
49
+ // it is the terminal an Ink TUI is actively rendering into, so writing here
50
+ // bypasses the parent's piped stdio and smears this banner over the live UI.
51
+ // The banner is redundant there anyway — the user already has Rayu open.
52
+ // Still write the marker so the binary does not replay the welcome later.
53
+ // Keep this env var name in sync with MANAGED_INSTALL_ENV_VAR in
54
+ // src/utils/npmExec.ts (this file is CommonJS run by npm and cannot import it).
55
+ const isManagedInstall = !!process.env.RAYU_MANAGED_INSTALL;
56
+
57
+ if (isManagedInstall) {
58
+ writeMarker();
59
+ process.exit(0);
60
+ }
61
+
47
62
  try {
48
63
  const fd = fs.openSync(ttyDevice, 'w');
49
64
  fs.writeSync(fd, message);