/**
 * Global log prefix for the feature-agent worker process.
 *
 * Set once at startup with agent type and model info, then read by every
 * logger (worker, node-helpers, executors) so that ALL log lines carry
 * the same [agent|model] prefix for easy filtering.
 */
let _prefix = '';
let _phase = '';
/**
 * Set the global log prefix. Call once at worker startup.
 * Example: setLogPrefix('claude-code', 'claude-haiku-4-5') → "[claude-code|claude-haiku-4-5] "
 */
export function setLogPrefix(agentType, model) {
    _prefix = model ? `[${agentType}|${model}] ` : `[${agentType}] `;
}
/**
 * Get the current log prefix. Returns empty string if not set.
 */
export function getLogPrefix() {
    return _prefix;
}
/**
 * Set the current phase/node name. Called by each node at startup.
 */
export function setCurrentPhase(phase) {
    _phase = phase;
}
/**
 * Get the current phase prefix. Returns empty string if not set.
 */
export function getCurrentPhase() {
    return _phase ? `[${_phase}] ` : '';
}
