clash_starlark 0.7.2

Starlark policy evaluator for Clash — compiles .star files to JSON policy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
make_full = sandbox(
    name = "make_full",
    default = ask(),
    fs = {
        subpath("$PWD"): allow(FULL),
        glob("$TMPDIR/**"): allow(),
    },
    net = deny(),
    doc = "Make/CMake/Just full: build targets. Full project access, no network.",
)

make = {tool("Bash"): {("make", "cmake", "just"): allow(sandbox = make_full)}}