aether-agent-cli 0.1.7

CLI and ACP server for the Aether AI coding agent
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use aether_core::core::Prompt;
use mcp_utils::client::ServerInstructions;
use std::path::Path;

pub async fn build_system_prompt(
    roots_path: &Path,
    instructions: Vec<ServerInstructions>,
    prompt_patterns: Vec<String>,
) -> Result<String, String> {
    let parts =
        vec![Prompt::from_globs(prompt_patterns, roots_path.to_path_buf()), Prompt::mcp_instructions(instructions)];

    Prompt::build_all(&parts).await.map_err(|e| format!("Failed to build system prompt: {e}"))
}