agent-hub-runtime 0.6.0

AgentHub desktop and companion CLI runtime for Tauri applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::core::{
    herdr::{
        control::{HerdrControl, OpenedWorkspace},
        hc::Core,
        session::SESSION,
    },
    skill_store::SkillStore,
};
use anyhow::{Context, Result};

pub fn prepare_managed_workspace(
    store: &SkillStore,
    project_id: &str,
    path: &str,
) -> Result<OpenedWorkspace> {
    let core = Core::discover().context("Install Herdr Core (hc) before starting a task")?;
    HerdrControl::for_core(core).ensure(store, SESSION, project_id, Some(path))
}