internal/

directory
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT

Directories

Path Synopsis
Package app wires together the mnemos workspace layout, configuration, logger, and storage into a single App value shared across CLI commands.
Package app wires together the mnemos workspace layout, configuration, logger, and storage into a single App value shared across CLI commands.
Package browse lists the OKF tree by walking it on disk and annotating each file with the index metadata mnemos holds for it.
Package browse lists the OKF tree by walking it on disk and annotating each file with the index metadata mnemos holds for it.
Package chunk turns a ParsedDoc into deterministic, line-anchored chunks.
Package chunk turns a ParsedDoc into deterministic, line-anchored chunks.
Package cli defines the mnemos cobra command tree.
Package cli defines the mnemos cobra command tree.
Package config defines the mnemos configuration schema, its built-in defaults, and the loader that merges those defaults with the single mnemos.toml found inside the active MNEMOS_DIR.
Package config defines the mnemos configuration schema, its built-in defaults, and the loader that merges those defaults with the single mnemos.toml found inside the active MNEMOS_DIR.
Package doctor runs read-only health detectors over an indexed OKF tree and returns structured findings.
Package doctor runs read-only health detectors over an indexed OKF tree and returns structured findings.
Package embed turns text into dense sentence embeddings for semantic search.
Package embed turns text into dense sentence embeddings for semantic search.
Package encoding resolves legacy text charset names and decodes their bytes to UTF-8.
Package encoding resolves legacy text charset names and decodes their bytes to UTF-8.
Package eval implements the OKF held-out retrieval evaluation: it derives example-query/expected-document pairs from a bundle, builds a held-out copy of the corpus with those queries stripped from their host chunks, ingests the copy into an ephemeral database, runs each query through the Retriever, and computes doc-level retrieval metrics against a versioned baseline.
Package eval implements the OKF held-out retrieval evaluation: it derives example-query/expected-document pairs from a bundle, builds a held-out copy of the corpus with those queries stripped from their host chunks, ingests the copy into an ephemeral database, runs each query through the Retriever, and computes doc-level retrieval metrics against a versioned baseline.
Package ingest implements the V0 ingestion pipeline: discover files, hash them, skip unchanged ones, parse, chunk, and write documents/chunks/links and an event in a single transaction per document.
Package ingest implements the V0 ingestion pipeline: discover files, hash them, skip unchanged ones, parse, chunk, and write documents/chunks/links and an event in a single transaction per document.
Package mcp exposes the mnemos retrieval surface over the Model Context Protocol.
Package mcp exposes the mnemos retrieval surface over the Model Context Protocol.
Package memory is the verb layer of mnemos: one place that owns the behavior behind every memory operation (search, read, context, list, remember, okfy, forget, move).
Package memory is the verb layer of mnemos: one place that owns the behavior behind every memory operation (search, read, context, list, remember, okfy, forget, move).
Package model holds the core value types shared across the ingestion pipeline: the source descriptor, the parsed-document representation, and the persistence aggregates (Document, Chunk, Link).
Package model holds the core value types shared across the ingestion pipeline: the source descriptor, the parsed-document representation, and the persistence aggregates (Document, Chunk, Link).
Package okf implements an Open Knowledge Format (OKF) v0.1 conformance validator.
Package okf implements an Open Knowledge Format (OKF) v0.1 conformance validator.
Package okfschema is the field-type registry an editor consults to know how a frontmatter key may be edited: which keys are closed enumerations, which hold tag lists, and which the indexer owns and a human must not retype.
Package okfschema is the field-type registry an editor consults to know how a frontmatter key may be edited: which keys are closed enumerations, which hold tag lists, and which the indexer owns and a human must not retype.
Package okfyaml patches an OKF document's YAML frontmatter in place.
Package okfyaml patches an OKF document's YAML frontmatter in place.
Package parse turns raw file bytes into a normalized model.ParsedDoc.
Package parse turns raw file bytes into a normalized model.ParsedDoc.
Package search implements V0 retrieval over the SQLite FTS5 index.
Package search implements V0 retrieval over the SQLite FTS5 index.
Package security holds the guardrails that keep mnemos local-first and secret-free: the SecretScanner that screens captured content before it is written, and the path/exclude rules that bound what the agent can touch.
Package security holds the guardrails that keep mnemos local-first and secret-free: the SecretScanner that screens captured content before it is written, and the path/exclude rules that bound what the agent can touch.
Package storage provides SQLite persistence for mnemos: opening the database with sane PRAGMAs and running embedded goose migrations.
Package storage provides SQLite persistence for mnemos: opening the database with sane PRAGMAs and running embedded goose migrations.
Package testutil provides shared, dependency-light helpers for tests across the mnemos packages: a migrated temp database, file creation, a silent logger, and a working-directory switch.
Package testutil provides shared, dependency-light helpers for tests across the mnemos packages: a migrated temp database, file creation, a silent logger, and a working-directory switch.
Package tui is the terminal editor behind `mnemos edit`: three panes over one OKF document — its link-graph neighborhood, its frontmatter fields, and its body — with the index kept in sync on save.
Package tui is the terminal editor behind `mnemos edit`: three panes over one OKF document — its link-graph neighborhood, its frontmatter fields, and its body — with the index kept in sync on save.
Package version exposes build metadata stamped into the binary via -ldflags -X at build time (see the Makefile).
Package version exposes build metadata stamped into the binary via -ldflags -X at build time (see the Makefile).
Package workspace resolves the single MNEMOS_DIR anchor and the fixed layout derived from it.
Package workspace resolves the single MNEMOS_DIR anchor and the fixed layout derived from it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL