MCPcopy
hub / github.com/vudovn/ag-kit / showUpdateNotification

Function showUpdateNotification

cli/bin/index.js:90–100  ·  view source on GitHub ↗
(latestVersion)

Source from the content-addressed store, hash-verified

88};
89
90const showUpdateNotification = (latestVersion) => {
91 if (!latestVersion) return;
92 console.log(
93 chalk.yellow(`
94 ┌────────────────────────────────────────────────────────┐
95 │ Update available: ${chalk.red(pkg.version)} → ${chalk.green(latestVersion)} │
96 │ Run: ${chalk.cyan("npm install -g @vudovn/ag-kit")} │
97 └────────────────────────────────────────────────────────┘
98 `)
99 );
100};
101
102// Global SIGINT Handler for graceful cleanup
103process.on("SIGINT", async () => {

Callers 2

initCommandFunction · 0.85
statusCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected