Class: RailsAiBridge::Serializers::Providers::Collaborators::StackOverviewBuilder
- Inherits:
-
Object
- Object
- RailsAiBridge::Serializers::Providers::Collaborators::StackOverviewBuilder
- Defined in:
- lib/rails_ai_bridge/serializers/providers/collaborators/stack_overview_builder.rb
Overview
Builds the stack overview section for AI context documents. Extracts and formats database, models, routes, auth, async jobs, and migrations information.
Defined Under Namespace
Classes: AsyncPartsExtractor, AsyncStackBuilder, AuthPartsExtractor, AuthStackBuilder, DatabaseStackBuilder, MigrationsStackBuilder, ModelsStackBuilder, StackSectionBuilder
Instance Method Summary collapse
-
#build ⇒ Array<String>
Renders the complete stack overview section.
-
#initialize(context) ⇒ StackOverviewBuilder
constructor
A new instance of StackOverviewBuilder.
Constructor Details
#initialize(context) ⇒ StackOverviewBuilder
Returns a new instance of StackOverviewBuilder.
11 12 13 |
# File 'lib/rails_ai_bridge/serializers/providers/collaborators/stack_overview_builder.rb', line 11 def initialize(context) @context = context end |
Instance Method Details
#build ⇒ Array<String>
Renders the complete stack overview section. Includes database adapter/table count, model count, routes, auth gems, async jobs/mailers/channels, and pending migrations when available. Silently skips any sub-section whose context key is missing or has an +:error+ key.
21 22 23 |
# File 'lib/rails_ai_bridge/serializers/providers/collaborators/stack_overview_builder.rb', line 21 def build StackSectionBuilder.build(@context) end |