[CYPACK-726] Extract IActivitySink interface and LinearActivitySink implementation#767
Merged
cyrusagent merged 2 commits intocypack-724from Jan 16, 2026
Merged
[CYPACK-726] Extract IActivitySink interface and LinearActivitySink implementation#767cyrusagent merged 2 commits intocypack-724from
cyrusagent merged 2 commits intocypack-724from
Conversation
…tation (CYPACK-726) - Create IActivitySink interface for decoupling activity posting - Implement LinearActivitySink wrapping IIssueTrackerService - Add comprehensive unit tests (20 tests, all passing) - Export from edge-worker package Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…726) Add changelog entry documenting the extraction of IActivitySink interface and LinearActivitySink implementation. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Phase 2 of the activity sink extraction, creating the IActivitySink interface and LinearActivitySink implementation to decouple activity posting from IIssueTrackerService. This enables multiple activity sinks (Linear workspaces, GitHub, etc.) to receive session activities based on session context.
Changes
New Files
packages/edge-worker/src/sinks/IActivitySink.ts- Interface defining activity sink contractpackages/edge-worker/src/sinks/LinearActivitySink.ts- Linear-specific implementation wrapping IIssueTrackerServicepackages/edge-worker/src/sinks/index.ts- Barrel export for sinkspackages/edge-worker/test/LinearActivitySink.test.ts- Comprehensive unit tests (20 tests)Modified Files
packages/edge-worker/src/index.ts- Exported IActivitySink and LinearActivitySinkCHANGELOG.internal.md- Added entry documenting the changesImplementation Details
IActivitySink Interface:
readonly id: string- Unique identifier for the sink (workspace ID)postActivity(sessionId, activity)- Post activities to agent sessionscreateAgentSession(issueId)- Create new agent sessions on issuesLinearActivitySink:
createAgentActivity()for posting activitiescreateAgentSessionOnIssue()for session creationTesting
✅ 20 new unit tests covering:
✅ All tests passing: 410 tests in edge-worker package
✅ Build: All packages build successfully
✅ Type checking: Clean across all packages
✅ Linting: Clean (formatting auto-fixed)
Dependencies
cypack-724Linear Issue
CYPACK-726: Extract IActivitySink interface and LinearActivitySink implementation