MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / createPlainProgress

Function createPlainProgress

src/ui/shimmer-progress.ts:136–151  ·  view source on GitHub ↗

* Non-TTY fallback: one plain line per phase, no rewrites, no ANSI. * Completion details (counts, timings) are printed by the caller's result * summary, so phase starts are all that's worth logging here.

()

Source from the content-addressed store, hash-verified

134 * summary, so phase starts are all that's worth logging here.
135 */
136function createPlainProgress(): ShimmerProgress {
137 let lastPhase = '';
138
139 return {
140 onProgress(progress: IndexProgress) {
141 if (progress.phase === lastPhase) return;
142 lastPhase = progress.phase;
143 const phaseName = PHASE_NAMES[progress.phase] || progress.phase;
144 process.stdout.write(`${phaseName}...\n`);
145 },
146
147 stop() {
148 return Promise.resolve();
149 },
150 };
151}

Callers 1

createShimmerProgressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected