enable

Function enable 

Source
pub fn enable(options: InitOptions) -> Result<EnableResult, EnableError>
Expand description

Enable mi6 hooks for AI coding frameworks.

This is the main entry point for programmatic enabling. It:

  1. Resolves which frameworks to enable (auto-detect or explicit)
  2. Installs hooks for each framework

Note: Port conflict checking should be done by the caller using mi6_otel_server::is_server_running() and mi6_otel_server::find_available_port() before calling this function if OTel is enabled.

§Example

use mi6_core::{InitOptions, enable};

let result = enable(InitOptions::for_framework("claude").otel(true))?;