Pipeline.OptionBuilder (pipeline v0.0.1)
View SourcePipeline wrapper for ClaudeCodeSDK.OptionBuilder with additional pipeline-specific functionality.
Provides preset configurations optimized for different environments and use cases:
- Development: Permissive settings, verbose logging, full tool access
- Production: Restricted settings, minimal tools, safe defaults
- Analysis: Read-only tools, optimized for code analysis
- Chat: Simple conversation settings, basic tools
- Test: Optimized for testing with mock-friendly settings
Summary
Functions
Apply preset-specific optimizations to a configuration.
Build analysis preset options. Optimized for code analysis with read-only tools and detailed reporting.
Build chat preset options. Optimized for simple conversations with minimal tools.
Build development preset options. Optimized for development work with permissive settings and verbose output.
Build production preset options. Optimized for production use with restricted settings and minimal tools.
Build test preset options. Optimized for testing with mock-friendly settings.
Build options based on the current environment. Auto-detects the environment and applies appropriate presets.
Get preset configuration for a specific use case.
List all available presets with their descriptions.
Merge a preset with custom options. Custom options override preset values.
Validate that a preset name is valid.
Types
Functions
@spec apply_preset_optimizations(preset_name() | String.t(), claude_options()) :: claude_options()
Apply preset-specific optimizations to a configuration.
@spec build_analysis_options() :: claude_options()
Build analysis preset options. Optimized for code analysis with read-only tools and detailed reporting.
@spec build_chat_options() :: claude_options()
Build chat preset options. Optimized for simple conversations with minimal tools.
@spec build_development_options() :: claude_options()
Build development preset options. Optimized for development work with permissive settings and verbose output.
@spec build_production_options() :: claude_options()
Build production preset options. Optimized for production use with restricted settings and minimal tools.
@spec build_test_options() :: claude_options()
Build test preset options. Optimized for testing with mock-friendly settings.
@spec for_environment() :: claude_options()
Build options based on the current environment. Auto-detects the environment and applies appropriate presets.
@spec get_preset_config(preset_name() | String.t()) :: %{ name: String.t(), description: String.t(), optimized_for: [String.t()], options: claude_options() }
Get preset configuration for a specific use case.
List all available presets with their descriptions.
@spec merge(preset_name() | String.t(), map() | nil) :: claude_options()
Merge a preset with custom options. Custom options override preset values.
Validate that a preset name is valid.