Synapse.Domains.CodeReview (Synapse v0.1.1)
View SourceCode review domain for Synapse.
This module registers code-review-specific signal topics and provides pre-built actions for security and performance analysis of code changes.
Usage
# In application.ex or runtime config
Synapse.Domains.CodeReview.register()Or in config:
config :synapse, :domains, [Synapse.Domains.CodeReview]Signals
This domain registers the following signal topics:
:review_request- Incoming code review requests:review_result- Results from specialist agents:review_summary- Aggregated review summaries:specialist_ready- Specialist availability notifications
Actions
Available actions for building review workflows:
Review Actions
Synapse.Domains.CodeReview.Actions.ClassifyChangeSynapse.Domains.CodeReview.Actions.GenerateSummarySynapse.Domains.CodeReview.Actions.DecideEscalation
Security Actions
Synapse.Domains.CodeReview.Actions.CheckSQLInjectionSynapse.Domains.CodeReview.Actions.CheckXSSSynapse.Domains.CodeReview.Actions.CheckAuthIssues
Performance Actions
Summary
Functions
Returns all action modules provided by this domain.
Registers all code review signal topics with the Signal Registry.
Registers all code review signal topics with the provided registry.
Returns the list of signal topics registered by this domain.
Functions
@spec actions() :: [module()]
Returns all action modules provided by this domain.
@spec register() :: :ok | {:error, term()}
Registers all code review signal topics with the Signal Registry.
Call this function during application startup to enable code review signals.
Registers all code review signal topics with the provided registry.
@spec topics() :: [atom()]
Returns the list of signal topics registered by this domain.