Re-exports§
pub use graph::Edge;pub use graph::EdgeProperties;pub use graph::GraphFile;pub use graph::Metadata;pub use graph::Node;pub use graph::NodeProperties;pub use graph::Note;pub use output::FindMode;
Modules§
Structs§
Constants§
- EDGE_
TYPE_ RULES - (relation, valid_source_types, valid_target_types) Empty slice = no constraint for that side.
- TYPE_
TO_ PREFIX - Maps node type -> expected id prefix.
- VALID_
RELATIONS - VALID_
TYPES
Functions§
- append_
kg_ feedback - Best-effort append of an
Ffeedback record to<graph>.kglog. - default_
graph_ root - Returns the default graph root directory for this environment.
- feedback_
nudge_ percent - Load the MCP nudge probability from
.kg.toml, defaulting to 20. - resolve_
graph_ path - Resolve a graph identifier/path to an on-disk JSON file.
- run
- Run kg with CLI arguments, printing the result to stdout.
- run_
args - Run kg with CLI arguments, returning the rendered output as a string.
- run_
args_ safe - Run kg with CLI arguments, returning errors as Result instead of exiting.
- sidecar_
user_ short_ uid - Resolve and (if needed) persist
user_short_uidfor sidecar logging.