Feat/reported timestamp#64
Conversation
Signed-off-by: Devyash Saini <dysaini2004@gmail.com>
This reverts commit a2fdad5.
Greptile SummaryThis PR introduces an optional
Confidence Score: 3/5The middleware path is correctly wired and the retry-loop timestamp is now stable, but two of the three call paths still silently discard a caller-supplied reportedTimestamp. The direct basicUsageEventConsumer path omits reportedTimestamp from rawPayload before Zod validation, so any caller-provided value is always discarded and replaced by Date.now(). The transformAITokenStream path has the same unfixed gap. Together these mean the feature works only on the middleware path, giving callers a false sense that setting the field has effect. packages/scrawn/src/core/scrawn.ts — the rawPayload construction sites in basicUsageEventConsumer and transformAITokenStream both need reportedTimestamp forwarding. Important Files Changed
|
…d nonnegative guard
Signed-off-by: Devyash Saini <dysaini2004@gmail.com>
No description provided.