Files
orca/src/main/codex-usage/codex-usage-event-attribution.ts
T
Neil d8cfe374a3 refactor(usage): share attribution and scope filtering
Readiness checklist review: PASS. No proven release-blocking findings. Codex and usage tests: 116 passed; all required CI checks green.
2026-09-18 19:14:38 -07:00

14 lines
588 B
TypeScript

import { attributeUsageEvent } from '../usage/usage-event-attribution'
import type { UsageScanWorktreeRef } from '../usage/usage-provider-contract'
import type { UsageWorktreeResolver } from '../usage/usage-worktree-resolver'
import type { CodexUsageAttributedEvent, CodexUsageParsedEvent } from './types'
export type CodexUsageWorktreeRef = UsageScanWorktreeRef
export async function attributeCodexUsageEvent(
event: CodexUsageParsedEvent,
resolveWorktree: UsageWorktreeResolver
): Promise<CodexUsageAttributedEvent | null> {
return attributeUsageEvent(event, resolveWorktree)
}