MCPcopy Create free account
hub / github.com/0xKarl-dev/claw-codes / build_runtime_plugin_state

Function build_runtime_plugin_state

rust/crates/claw-cli/src/main.rs:2424–2432  ·  view source on GitHub ↗
(
)

Source from the content-addressed store, hash-verified

2422}
2423
2424fn build_runtime_plugin_state(
2425) -> Result<(runtime::RuntimeFeatureConfig, GlobalToolRegistry), Box<dyn std::error::Error>> {
2426 let cwd = env::current_dir()?;
2427 let loader = ConfigLoader::default_for(&cwd);
2428 let runtime_config = loader.load()?;
2429 let plugin_manager = build_plugin_manager(&cwd, &loader, &runtime_config);
2430 let tool_registry = GlobalToolRegistry::with_plugin_tools(plugin_manager.aggregated_tools()?)?;
2431 Ok((runtime_config.feature_config().clone(), tool_registry))
2432}
2433
2434fn build_plugin_manager(
2435 cwd: &Path,

Callers 1

build_runtimeFunction · 0.85

Calls 4

build_plugin_managerFunction · 0.85
loadMethod · 0.80
aggregated_toolsMethod · 0.80
feature_configMethod · 0.80

Tested by

no test coverage detected