FileKbStorage class
File-system implementation of KbStorage.
Keeps the existing Markdown directory layout:
kb/
questions/
answers/
notes/
topics/
areas/
people/
stats/
inbox/
INDEX.md
GRAPH.md
MEMORY.md
- Implemented types
Constructors
- FileKbStorage(Directory kbDir)
Properties
Methods
-
deleteEntity(
String type, String id) → void -
Deletes an entity.
override
-
describeLocation(
String type, String id) → String -
Returns a human-readable location for an entity.
override
-
initialize(
{bool clean = false}) → FutureOr< void> -
Initializes the backend (creates directories, tables, buckets, etc.).
override
-
listEntityIds(
String type) → List< String> -
Lists all entity ids of the given
type.override -
listFilePaths(
String prefix) → List< String> -
Lists logical paths of stored files that start with
prefix.override -
loadContext(
) → KBContext -
Loads existing context: next IDs, people, topics, question summaries.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readEntity(
String type, String id) → String? -
Reads the raw Markdown content of an entity.
override
-
readFile(
String path) → String? -
Reads a structure/index/graph file by its logical path.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeEntity(
String type, String id, String content) → void -
Writes raw Markdown content for an entity.
override
-
writeFile(
String path, String content) → void -
Writes a structure/index/graph file.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited