data/memdir/memdir_paths library
Constants
- entrypointName → const String
- Entrypoint file name.
- maxEntrypointBytes → const int
- Maximum bytes from MEMORY.md to include in prompt.
- maxEntrypointLines → const int
- Maximum lines from MEMORY.md to include in prompt.
Functions
-
ensureMemoryDirExists(
{String? projectRoot}) → Future< void> - Ensure the memory directory exists, creating it if needed.
-
getAutoMemEntrypoint(
{String? projectRoot}) → String - Path to the MEMORY.md entrypoint.
-
getAutoMemPath(
{String? projectRoot}) → String -
Get the auto-memory directory for the current project.
Pattern:
~/.neomage/projects/{sanitized-path}/memory/ -
getMemoryBaseDir(
) → String - Default memory base directory (~/.neomage).
-
isAutoMemPath(
String filePath, {String? projectRoot}) → bool - Check if a file path is within the auto-memory directory.
-
validateMemoryPath(
String path) → String? - Validate a memory path for security. Rejects relative paths, root paths, null bytes, etc.