export const TASK_RECENT_TOOL_CALL_LIMIT = 8;
export const TASK_OUTPUT_LINE_LIMIT = 80;
export const TASK_PARENT_NOTIFICATION_MAX_CHARS = 1600;
export const TASK_DISPLAY_PREVIEW_MAX_CHARS = 180;
/** Build a fresh, zero-initialized usage stats record. */
export function emptyTaskUsage() {
    return {
        input: 0,
        output: 0,
        cacheRead: 0,
        cacheWrite: 0,
        cost: 0,
        turns: 0,
        lastTurnInput: 0
    };
}
/** Build a TaskSubagentResult representing a thrown error during runner setup. */
export function failedTaskSubagentResult(error, model) {
    return {
        text: '',
        toolCalls: [],
        usage: emptyTaskUsage(),
        model,
        exitCode: 1,
        stderr: '',
        errorMessage: error instanceof Error ? error.message : String(error)
    };
}
//# sourceMappingURL=types.js.map