Class: RailsAiContext::Serializers::OpencodeSerializer

Inherits:
Object
  • Object
show all
Includes:
CompactSerializerHelper, ContextModeDispatch, StackOverviewHelper, TestCommandDetection, ToolGuideHelper
Defined in:
lib/rails_ai_context/serializers/opencode_serializer.rb

Overview

Generates AGENTS.md optimized for OpenCode. In :compact mode (default), produces ≤150 lines with MCP tool references. In :full mode, delegates to MarkdownSerializer with OpenCode header.

Instance Attribute Summary

Attributes included from ContextModeDispatch

#context

Method Summary

Methods included from ContextModeDispatch

#call, #initialize

Methods included from CountPhrase

call

Methods included from ToolGuideHelper

#api_endpoint_workflow_lines, #api_only?, #build_tools_table, #render_tools_guide, #render_tools_guide_compact, #tool_call, #tool_count, #tool_mode, #tool_rows, #tools_anti_hallucination_section, #tools_antipatterns_section, #tools_detail_guidance, #tools_header, #tools_intro, #tools_name_list, #tools_power_tool_section, #tools_rules_section, #tools_table, #tools_workflow_section, #view_workflow_lines

Methods included from StackOverviewHelper

#arch_labels_hash, #database_adapter_label, #detect_before_actions, #detect_job_files, #detect_service_files, #full_preset_stack_lines, #model_extras_line, #notable_gems_list, #pattern_labels_hash, #project_root, #render_compact_controllers_list, #scope_names, #write_rule_files