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

Function renderConnectingLine

src/bridge/bridgeUI.ts:153–168  ·  view source on GitHub ↗

Render the connecting spinner line (shown before first updateIdleStatus).

()

Source from the content-addressed store, hash-verified

151
152 /** Render the connecting spinner line (shown before first updateIdleStatus). */
153 function renderConnectingLine(): void {
154 clearStatusLines()
155
156 const frame =
157 BRIDGE_SPINNER_FRAMES[connectingTick % BRIDGE_SPINNER_FRAMES.length]!
158 let suffix = ''
159 if (repoName) {
160 suffix += chalk.dim(' \u00b7 ') + chalk.dim(repoName)
161 }
162 if (branch) {
163 suffix += chalk.dim(' \u00b7 ') + chalk.dim(branch)
164 }
165 writeStatus(
166 `${chalk.yellow(frame)} ${chalk.yellow('Connecting')}${suffix}\n`,
167 )
168 }
169
170 /** Start the connecting spinner. Stopped by first updateIdleStatus(). */
171 function startConnecting(): void {

Callers 1

startConnectingFunction · 0.85

Calls 2

clearStatusLinesFunction · 0.85
writeStatusFunction · 0.85

Tested by

no test coverage detected