Show version number at startup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Corey Johnson 2026-03-12 15:39:01 -07:00
parent d397b32ab5
commit 156d435588

View File

@ -1,6 +1,7 @@
import { loopbackTest, playAudio, startMicListener } from './audio' import { loopbackTest, playAudio, startMicListener } from './audio'
import { handleGuess, getSecret } from './game' import { handleGuess, getSecret } from './game'
import type { GuessResult } from './game' import type { GuessResult } from './game'
import pkg from '../../package.json'
const RESET = '\x1b[0m' const RESET = '\x1b[0m'
const BOLD = '\x1b[1m' const BOLD = '\x1b[1m'
@ -71,7 +72,7 @@ export async function startup(port: number) {
console.clear() console.clear()
console.log() console.log()
console.log(`${BOLD}Corey's Screechy Audio Demo${RESET}`) console.log(`${BOLD}Corey's Screechy Audio Demo${RESET} ${DIM}v${pkg.version}${RESET}`)
console.log() console.log()
const speaker = getDeviceName('output') const speaker = getDeviceName('output')
@ -101,7 +102,7 @@ export async function startup(port: number) {
console.clear() console.clear()
console.log() console.log()
console.log(`${BOLD}Corey's Screechy Audio Demo${RESET}`) console.log(`${BOLD}Corey's Screechy Audio Demo${RESET} ${DIM}v${pkg.version}${RESET}`)
console.log(`${DIM}Speaker: ${speaker} · Mic: ${mic}${RESET}`) console.log(`${DIM}Speaker: ${speaker} · Mic: ${mic}${RESET}`)
console.log() console.log()