MCPcopy Create free account
hub / github.com/browserbase/stagehand / writeUpdateNotice

Function writeUpdateNotice

packages/cli/src/lib/update.ts:169–181  ·  view source on GitHub ↗
(
  currentVersion: string,
  latestVersion: string,
)

Source from the content-addressed store, hash-verified

167}
168
169function writeUpdateNotice(
170 currentVersion: string,
171 latestVersion: string,
172): void {
173 process.stderr.write(
174 [
175 `Update available: ${currentVersion} -> ${latestVersion}.`,
176 "Run:",
177 ` npm i -g ${CLI_PACKAGE_NAME}@latest`,
178 "",
179 ].join("\n"),
180 );
181}
182
183async function fetchLatestCliVersion(): Promise<string | null> {
184 const controller = new AbortController();

Callers 1

maybeAutoUpdateCliFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected