The Brain instance to read from.
Protected frontThe front-matter fields of a trace's file, which MarkdownImporter reads
back: its id, type, scope, strength, tags and creation time, and its scope
id as scopeId when the trace is filed under one. A trace filed under
'' writes no scopeId, and its import files it under ''. A trace of a
Brain that holds the encoded scope-id form writes scopeIdForm: encoded,
so an import takes its scope id as it is written. A trace a second user
filed on another user's session writes that user's id as turnUserId, so
its import files it as that user's trace, which a delete of the user's
traces finds.
The trace row.
The trace's tags, parsed.
Protected traceDetermine the relative file path for a trace within the output directory.
Default: {scope}/{type}/{id}.md. Each of the three must be a safe file
or folder name (see pathNameProblem), or the trace is refused. Whatever
a subclass returns, the export writes the file only when its resolved
path lies inside the output directory.
The trace row.
Relative path string (no leading slash).
When the trace's scope, type or id is not a safe name; the export reports such a trace in its result instead of writing it.
Export all memory traces as Obsidian-flavoured .md files.
Pre-fetches all knowledge-edge relationships into an in-memory cache,
then delegates to the parent export() method. Directory creation,
file writing and the checks on each trace's path are handled there; only
buildFileContent is overridden.
Root directory to write the Obsidian vault into.
Optional options: ExportOptionsOptional export configuration.
The traces left out, with the reason for each.
Protected buildBuild Obsidian-flavoured Markdown for a trace.
Additions over the base implementation:
#tagName inline hashtags in the body.knowledge_edges) are rendered as
[[Node Label]] wikilinks appended at the bottom of the note.Parsed trace row.
Full Markdown file content with front-matter.
Protected Readonly brainThe Brain instance to read from.
Exports memory traces as an Obsidian-compatible Markdown vault.
Usage: