|
Entropic 2.3.8
Local-first agentic inference engine
|
SandboxManager and ScopedSandbox implementation. More...
#include <entropic/core/sandbox.h>#include <entropic/types/logging.h>#include <array>#include <cstdio>#include <cstdlib>#include <random>#include <sstream>#include <pwd.h>#include <signal.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>
Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| static bool | entropic::snapshot_git_project (const std::filesystem::path &source, const std::filesystem::path &target) |
| Copy git-tracked + untracked-not-ignored files from a project. | |
| static bool | entropic::snapshot_plain_copy (const std::filesystem::path &source, const std::filesystem::path &target) |
| Recursive copy for non-git sources (or sandbox-to-sandbox chains). | |
| static bool | entropic::capture_diff (const std::filesystem::path &base, const std::filesystem::path &head, std::string &patch) |
Run git diff --no-index between base and head, capture patch. | |
| static void | entropic::trim_path_prefix (std::string &line, std::string p) |
Strip a directory prefix p from the front of line. | |
| static std::vector< std::filesystem::path > | entropic::diff_files (const std::filesystem::path &base, const std::filesystem::path &head) |
List files differing between base and head via diff -rq-style logic. | |
Variables | |
| static auto | logger = entropic::log::get("core.sandbox") |
SandboxManager and ScopedSandbox implementation.
Replaces the v1.8.6–v2.1.4 git-worktree manager that corrupted the user's repo state (gh#29). All filesystem operations live under ~/.entropic/sandbox/<session-id>/; the user's project directory is read but never written.
Definition in file sandbox.cpp.
|
static |
Definition at line 29 of file sandbox.cpp.