/ mervelas / src / cli / update.ts
Swadhin Biswas feat: implement mervelas cli engine, built-in tools, and reactive UI · 4/3/2026
0358986
22 lines · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import chalk from 'chalk'
import { PRODUCT_NAME, PRODUCT_URL } from 'src/constants/product.js'
import { gracefulShutdown } from 'src/utils/gracefulShutdown.js'
import { writeToStdout } from 'src/utils/process.js'

export async function update() {
  writeToStdout(`Current version: ${MACRO.VERSION}\n`)
  writeToStdout('\n')
  writeToStdout(
    chalk.yellow(
      `${PRODUCT_NAME} no longer uses the upstream Anthropic auto-update service.\n`,
    ),
  )
  writeToStdout(
    'Install new builds manually from the project releases or by reinstalling from the Mervelas repository.\n',
  )
  writeToStdout('\n')
  writeToStdout(`Project: ${PRODUCT_URL}\n`)
  writeToStdout(`Releases: ${PRODUCT_URL}/releases\n`)
  await gracefulShutdown(0)
}