rdsh 0.1.1

Rust port/shim for dsh: fast launcher, token saver, zero behavior breakage via passthrough
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Slim mode: env-only trims. Additive and safe.
// Namespace rule (matches dsh convention: DSH_* is owned by dsh itself,
// so rdsh-private keys live under RDSH_*). The original dsh ignores keys
// it does not know, so these hints cannot break boot.
pub fn slim_env() -> Vec<(String, String)> {
    vec![
        ("RDSH_SLIM".into(), "1".into()),
        ("RDSH_LAZY_PLUGINS".into(), "1".into()),
        ("RDSH_DISABLE_VOICE".into(), "1".into()),
        ("RDSH_DISABLE_AUTO_REVIEW".into(), "1".into()),
        ("RDSH_TOKEN_BUDGET".into(), "8000".into()),
        ("RDSH_TOOL_RESULT_BUDGET".into(), "4000".into()),
    ]
}

pub fn describe() -> String {
    "RDSH_SLIM=1 RDSH_LAZY_PLUGINS=1 RDSH_DISABLE_VOICE=1 RDSH_DISABLE_AUTO_REVIEW=1".to_string()
}