Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
permission_persister.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
12#pragma once
13
14#include <filesystem>
15#include <mutex>
16#include <string_view>
17
18namespace entropic {
19
37public:
43 explicit PermissionPersister(const std::filesystem::path& config_dir);
44
52 bool save_permission(std::string_view pattern, bool allow);
53
54private:
55 std::filesystem::path config_path_;
56 std::mutex write_mutex_;
57};
58
59} // namespace entropic
Read-modify-write permission patterns in YAML config.
bool save_permission(std::string_view pattern, bool allow)
Save a permission pattern.
Activate model on GPU (WARM → ACTIVE).