Skip to main content

launch_files

Function launch_files 

Source
pub(crate) fn launch_files(
    mstore: &Store,
    id_store: &Store,
    identity_store: &Store,
    agent_id: &str,
    instance_name: Option<&str>,
    work_dir: &str,
) -> Result<Vec<AgentConfigFile>, String>
Expand description

The files the window’s Launch writes for agent_id into work_dir, rendered in Rust exactly as agent.open renders them (render_agent_config_files), so the window sends no file content of its own. instance_name is the launch’s name for the agent (a modal-supplied one), None for the agent’s own. The launch’s folder is its own (allocated or named by the caller), never the fallback folder every same-name launch shares. Whether the agent is a container agent is the definition’s (agent_type), as in agent.open.