()
| 120 | * Skipped in CI, non-TTY, dev mode, or when HYPERFRAMES_NO_UPDATE_CHECK is set. |
| 121 | */ |
| 122 | export function printUpdateNotice(): void { |
| 123 | if (updateNoticesSuppressed()) return; |
| 124 | |
| 125 | const meta = getUpdateMeta(); |
| 126 | if (!meta.updateAvailable || !meta.latestVersion) return; |
| 127 | |
| 128 | process.stderr.write( |
| 129 | `\n Update available: ${meta.version} \u2192 ${meta.latestVersion}\n` + |
| 130 | ` Run: npx hyperframes@latest\n\n`, |
| 131 | ); |
| 132 | } |
nothing calls this directly
no test coverage detected