|
Entropic 2.3.8
Local-first agentic inference engine
|
Tracks file read state for read-before-write enforcement. More...
#include <entropic/mcp/servers/filesystem.h>
Public Member Functions | |
| void | record_read (const std::string &path, size_t hash) |
| Record that a file was read. | |
| bool | was_read_unchanged (const std::string &path, size_t current_hash) const |
| Check if a file was read and content unchanged. | |
| bool | was_read (const std::string &path) const |
| Check if a file was ever read. | |
Tracks file read state for read-before-write enforcement.
Definition at line 30 of file filesystem.h.
| void entropic::FileAccessTracker::record_read | ( | const std::string & | path, |
| size_t | hash | ||
| ) |
Record that a file was read.
Record that a file was read with its content hash.
| path | Canonical file path. |
| hash | Content hash at time of read. |
| path | Canonical file path. |
| hash | Content hash at time of read. |
Definition at line 43 of file filesystem.cpp.
| bool entropic::FileAccessTracker::was_read | ( | const std::string & | path | ) | const |
Check if a file was ever read.
Check if a file was ever read in this session.
| path | Canonical file path. |
| path | Canonical file path. |
Definition at line 74 of file filesystem.cpp.
| bool entropic::FileAccessTracker::was_read_unchanged | ( | const std::string & | path, |
| size_t | current_hash | ||
| ) | const |
Check if a file was read and content unchanged.
Check if file was read and content is unchanged.
| path | Canonical file path. |
| current_hash | Current content hash. |
| path | Canonical file path. |
| current_hash | Current content hash. |
Definition at line 57 of file filesystem.cpp.