bamboo-server 2026.5.3

HTTP server and API layer for the Bamboo agent framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use actix_web::{web, HttpResponse};

use crate::{app_state::AppState, error::AppError};

use super::common::{config_file_path, redacted_config_json};

pub async fn get_bamboo_config(app_state: web::Data<AppState>) -> Result<HttpResponse, AppError> {
    let path = config_file_path(&app_state.app_data_dir);
    if !path.exists() {
        return Ok(HttpResponse::Ok().json(serde_json::json!({})));
    }

    let config = app_state.config.read().await.clone();
    Ok(HttpResponse::Ok().json(redacted_config_json(&config, &app_state.app_data_dir).await?))
}