import { getLabel } from '../../../shared/i18n/index.js';
export function buildTeamLeaderParallelLoggerOptions(engineOptions, stepName, stepIteration, subStepNames, iteration, maxSteps) {
    const options = {
        subStepNames,
        parentOnStream: engineOptions.onStream,
        progressInfo: { iteration, maxSteps },
    };
    if (engineOptions.taskPrefix != null && engineOptions.taskColorIndex != null) {
        return {
            ...options,
            taskLabel: engineOptions.taskPrefix,
            taskColorIndex: engineOptions.taskColorIndex,
            parentStepName: stepName,
            stepIteration,
        };
    }
    return options;
}
export function emitTeamLeaderProgressHint(engineOptions, kind) {
    const onStream = engineOptions.onStream;
    if (!onStream) {
        return;
    }
    const key = kind === 'decompose'
        ? 'workflow.teamLeader.decomposeWait'
        : 'workflow.teamLeader.feedbackWait';
    const text = `${getLabel(key, engineOptions.language)}\n`;
    onStream({ type: 'text', data: { text } });
}
//# sourceMappingURL=team-leader-streaming.js.map