MCPcopy Create free account
hub / github.com/Noumena-Network/code / printBanner

Function printBanner

src/bridge/bridgeUI.ts:296–321  ·  view source on GitHub ↗
(config: BridgeConfig, environmentId: string)

Source from the content-addressed store, hash-verified

294
295 return {
296 printBanner(config: BridgeConfig, environmentId: string): void {
297 cachedIngressUrl = config.sessionIngressUrl
298 cachedEnvironmentId = environmentId
299 connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl)
300 regenerateQr(connectUrl)
301
302 if (verbose) {
303 write(chalk.dim(`Remote Control`) + ` v${MACRO.VERSION}\n`)
304 }
305 if (verbose) {
306 if (config.spawnMode !== 'single-session') {
307 write(chalk.dim(`Spawn mode: `) + `${config.spawnMode}\n`)
308 write(
309 chalk.dim(`Max concurrent sessions: `) + `${config.maxSessions}\n`,
310 )
311 }
312 write(chalk.dim(`Environment ID: `) + `${environmentId}\n`)
313 }
314 if (config.sandbox) {
315 write(chalk.dim(`Sandbox: `) + `${chalk.green('Enabled')}\n`)
316 }
317 write('\n')
318
319 // Start connecting spinner — first updateIdleStatus() will stop it
320 startConnecting()
321 },
322
323 logSessionStart(sessionId: string, prompt: string): void {
324 if (verbose) {

Callers 1

runFunction · 0.85

Calls 4

buildBridgeConnectUrlFunction · 0.85
regenerateQrFunction · 0.85
startConnectingFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected