Documentation
¶
Overview ¶
Package config loads and validates rocketclaw configuration files.
Index ¶
Constants ¶
const DefaultWorkDir = ".rocketclaw"
DefaultWorkDir is the generated runtime directory for rocketclaw configs.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Workspace string `json:"workspace"`
WorkDir string `json:"-"`
Overlays []string `json:"overlays,omitempty"`
Environment []string `json:"environment,omitempty"`
EmergencySafeWords []string `json:"emergency_safe_words,omitempty"`
ThreadAgents ThreadAgents `json:"thread_agents,omitempty"`
MinimumWaitAfterHumanInteraction string `json:"minimum_wait_after_human_interaction"`
MinimumWaitAfterHumanInteractionDuration time.Duration `json:"-"`
Logging LoggingConfig `json:"logging"`
MCPExternal MCPExternalConfig `json:"mcp_external"`
Slack SlackConfig `json:"slack"`
OpenAI OpenAIConfig `json:"openai"`
Instrumentation InstrumentationConfig `json:"instrumentation"`
}
Config is the top-level rocketclaw runtime configuration.
func (*Config) WorkDirName ¶
WorkDirName returns the selected generated runtime directory name.
type InstrumentationConfig ¶ added in v0.0.12
type InstrumentationConfig struct {
Enabled bool `json:"enabled"`
CollectorEndpoint string `json:"collector_endpoint"`
ProjectName string `json:"project_name"`
APIKey string `json:"api_key"`
HideInputs bool `json:"hide_inputs"`
HideOutputs bool `json:"hide_outputs"`
}
InstrumentationConfig configures OpenTelemetry/OpenInference tracing.
type LoggingConfig ¶
type LoggingConfig struct {
Level string `json:"level"`
}
LoggingConfig controls rocketclaw logging.
type MCPExternalConfig ¶
type MCPExternalConfig struct {
Enabled bool `json:"enabled"`
ListenAddr string `json:"listen_addr"`
AllowedAgents []string `json:"allowed_agents,omitempty"`
}
MCPExternalConfig configures the persistent external MCP HTTP server.
type OpenAIConfig ¶
type OpenAIConfig struct {
APIKey string `json:"api_key"`
APIBaseURL string `json:"api_base_url"`
RocketCodeAuth string `json:"rocketcode_auth"`
}
OpenAIConfig configures the OpenAI client used by RocketCode.
type SlackConfig ¶
type SlackConfig struct {
Enabled bool `json:"enabled"`
BotToken string `json:"bot_token"`
AppToken string `json:"app_token"`
Room string `json:"room"`
HumanUserID string `json:"human_user_id"`
SocialMode TextSocialConfig `json:"social_mode"`
}
SlackConfig configures the Slack DM connector.
type TextSocialChannelConfig ¶ added in v0.0.7
type TextSocialChannelConfig struct {
Channel string `json:"channel"`
Agents []string `json:"agents,omitempty"`
AllowedUserIDs []string `json:"allowed_user_ids,omitempty"`
}
TextSocialChannelConfig configures one primary text social-mode channel.
type TextSocialConfig ¶ added in v0.0.7
type TextSocialConfig struct {
Enabled bool `json:"enabled"`
Channels []TextSocialChannelConfig `json:"channels,omitempty"`
ContextMessages int `json:"context_messages"`
}
TextSocialConfig configures mention-triggered primary text channel conversations.
type ThreadAgent ¶
ThreadAgent configures one Slack emoji prefix thread target.
type ThreadAgents ¶
type ThreadAgents map[string]ThreadAgent
ThreadAgents maps Slack emoji prefixes to thread routing config.