feat: add run:progress event for real-time progress tracking#10
Conversation
- Add RunProgressEvent interface to events.ts - Modify progress() method in context.ts to emit run:progress event - Export RunProgressEvent type from index.ts - Add test for run:progress event emission - Update API and guide documentation - Update LLM documentation (llms.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughIntroduces a new Changes
Sequence DiagramsequenceDiagram
participant App as Application
participant Ctx as Step Context
participant Store as Storage
participant Event as Event Emitter
participant Listener as Event Listener
App->>Ctx: step.progress(current, total, message)
Ctx->>Ctx: Create progressData object
Ctx->>Store: updateRun(progressData)
Store->>Store: Persist progress state
Ctx->>Event: emit('run:progress', { runId, jobName, progress })
Event->>Listener: Deliver RunProgressEvent
Listener->>Listener: Handle progress update
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
🧰 Additional context used📓 Path-based instructions (1)packages/durably/docs/llms.md📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-12-22T12:46:22.679ZApplied to files:
📚 Learning: 2025-12-22T12:46:22.679ZApplied to files:
📚 Learning: 2025-12-22T12:46:22.679ZApplied to files:
📚 Learning: 2025-12-22T12:46:22.679ZApplied to files:
🧬 Code graph analysis (2)packages/durably/src/events.ts (1)
packages/durably/tests/shared/step.shared.ts (2)
🪛 LanguageToolwebsite/api/events.md[style] ~69-~69: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE) 🔇 Additional comments (13)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
run:progressevent that is emitted whenstep.progress()is called{ runId, jobName, progress: { current, total?, message? } }Changes
events.ts: AddRunProgressEventinterfacecontext.ts: Emitrun:progressevent inprogress()methodindex.ts: ExportRunProgressEventtypeTest plan
run:progressevent emission passes🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
run:progressevent that enables real-time progress tracking, emitting updates when step progress is recorded with payload including run ID, job name, current/total progress, and optional messages.Documentation
✏️ Tip: You can customize this high-level summary in your review settings.