/**
 * cc session JSONL / agent markdown log → omk ResultEntry adapter.
 *
 * This file is intentionally thin: source parsing, attribution, and segmentation
 * live in sibling modules so studio/report code does not inherit one large adapter.
 */
import { loadCcSessions } from './trace-source.js';
import { segmentBySkill, segmentsToResultEntries } from './trace-segmenter.js';
export { loadCcSessions } from './trace-source.js';
export { extractAttributionSkill, extractAttributionSkillRef, extractCommandSkill, extractCommandSkillRef, extractCommandEnvelopeText, extractMarkdownLogSkill, extractSkillReadFileRef, extractSkillReadFile, extractSkillToolUse, extractSkillToolUseRef, normalizeSkillName, parseSkillRef, stripCommandEnvelopeText, } from './trace-attribution.js';
export { segmentBySkill, segmentsToResultEntries } from './trace-segmenter.js';
/**
 * One-stop conversion: trace path → ResultEntry[].
 */
export function ccTracesToResultEntries(path) {
    const sessions = loadCcSessions(path);
    const segments = sessions.flatMap(segmentBySkill);
    const entries = segmentsToResultEntries(segments);
    return { entries, sessions, segments };
}
//# sourceMappingURL=trace-adapter.js.map