Synapse.Domains.CodeReview (Synapse v0.1.1)

View Source

Code 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

Security Actions

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

actions()

@spec actions() :: [module()]

Returns all action modules provided by this domain.

register()

@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.

register(registry)

@spec register(atom() | pid()) :: :ok | {:error, term()}

Registers all code review signal topics with the provided registry.

topics()

@spec topics() :: [atom()]

Returns the list of signal topics registered by this domain.