feat(experts): add built-in expert skills with per-agent activation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -57,6 +57,27 @@ async fn main() {
|
||||
chat_channel_manager: codeg_lib::app_state::default_chat_channel_manager(),
|
||||
});
|
||||
|
||||
// Install bundled expert skills into the central store
|
||||
// (`~/.codeg/skills/`). Runs in the background; failures are logged
|
||||
// but non-fatal.
|
||||
tokio::spawn(async move {
|
||||
let report = codeg_lib::commands::experts::ensure_central_experts_installed().await;
|
||||
if !report.errors.is_empty() {
|
||||
eprintln!(
|
||||
"[Experts] install finished with {} error(s): {:?}",
|
||||
report.errors.len(),
|
||||
report.errors
|
||||
);
|
||||
} else {
|
||||
eprintln!(
|
||||
"[Experts] install ok: installed={} updated={} pending_review={}",
|
||||
report.installed_count,
|
||||
report.updated_count,
|
||||
report.pending_user_review.len()
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
// Start chat channel background tasks (event subscriber, command dispatcher, scheduler, auto-connect)
|
||||
state
|
||||
.chat_channel_manager
|
||||
|
||||
Reference in New Issue
Block a user