ai-agent 0.13.4

Idiomatic agent sdk inspired by the claude code source leak
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Source: /data/home/swei/claudecode/openclaudecode/src/constants/keys.ts
use crate::constants::env::{ai, system};
use crate::utils::env_utils::is_env_truthy;

pub fn get_growthbook_client_key() -> String {
    let user_type = std::env::var(ai::USER_TYPE).unwrap_or_default();
    let enable_growthbook_dev = std::env::var(system::ENABLE_GROWTHBOOK_DEV).unwrap_or_default();

    if user_type == "ant" {
        if is_env_truthy(Some(&enable_growthbook_dev)) {
            "sdk-yZQvlplybuXjYh6L".to_string()
        } else {
            "sdk-xRVcrliHIlrg4og4".to_string()
        }
    } else {
        "sdk-zAZezfDKGoZuXXKe".to_string()
    }
}