MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / emitProgress

Function emitProgress

plugins/codex/scripts/lib/codex.mjs:191–200  ·  view source on GitHub ↗

* @param {ProgressReporter | null | undefined} onProgress * @param {string | null | undefined} message * @param {string | null | undefined} [phase]

(onProgress, message, phase = null, extra = {})

Source from the content-addressed store, hash-verified

189 * @param {string | null | undefined} [phase]
190 */
191function emitProgress(onProgress, message, phase = null, extra = {}) {
192 if (!onProgress || !message) {
193 return;
194 }
195 if (!phase && Object.keys(extra).length === 0) {
196 onProgress(message);
197 return;
198 }
199 onProgress({ message, phase, ...extra });
200}
201
202function emitLogEvent(onProgress, options = {}) {
203 if (!onProgress) {

Callers 5

completeTurnFunction · 0.85
applyTurnNotificationFunction · 0.85
runAppServerReviewFunction · 0.85
runAppServerTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected