const autonomousBashPermission = {
    "*": "allow",
    "rm *": "ask",
    "sudo rm *": "ask",
    "git reset --hard*": "ask",
    "git clean *": "ask",
    "dd *": "ask",
    "sudo dd *": "ask",
    "mkfs*": "ask",
    "sudo mkfs*": "ask",
};
export function createDirectorPermissions(config) {
    const interactive = config.permissions.execution_mode === "interactive";
    const executionAction = interactive ? "ask" : "allow";
    return {
        task: "allow",
        "seed_*": "allow",
        grep: "allow",
        glob: "allow",
        "ast_grep_*": "allow",
        "lsp_*": "allow",
        websearch: "allow",
        webfetch: "allow",
        context7: "allow",
        grep_app: "allow",
        read: "allow",
        skill: "deny",
        question: "deny",
        write: executionAction,
        edit: executionAction,
        apply_patch: executionAction,
        patch: executionAction,
        bash: interactive ? "ask" : autonomousBashPermission,
    };
}
//# sourceMappingURL=permissions.js.map