UML — smart-base/library

Generated by cat-harness-tools/scripts/gen-uml-overview.ts — do not edit. The library sub-graph of smart-base (smart-base/library), with every attribute read from its node schema.

Sources (same model): PlantUML · Mermaid · Graphviz DOT

Layout
UML class diagram of smart-base/library: one package per named sub-graph, one class per node schema, with its data fields. Portrait layout.
UML class diagram of smart-base/library: one package per named sub-graph, one class per node schema, with its data fields. Landscape layout.

The interactive view lays this diagram out in your browser with Graphviz, and needs JavaScript. Without it, pick Portrait or Landscape, or read the DOT source.

sub-graphdirectorygraph typologiesnode schemanodescohesioninout
smart-base/librarysmart-base/librarylibraryImagesSidecarSchema; ts: VerdictFile; VectorLabelsSidecarSchema; VectorFiguresSidecarSchema; KeywordsFileSchema; ReferencedSourceSchemanot measured

Nodes, cohesion, in and out are the detangler’s pinned measurements for the same directory (bun run cat kg:detangle; skill graph-detanglement). Not measured means the detangler does not scan that directory, not that it has no edges.

Sub-graphs

The same model, drawn by Mermaid

Kept so the page renders even where the PlantUML image is missing, and because Mermaid nodes carry the CSS class that colours them from uml.css.

classDiagram
  direction TB
  namespace smart_base__library {
    class smart_base_library_folio_document_images_v1_folio_document_images_v1["folio-document-images/v1"] {
      <<json: ImagesSidecarSchema>>
      $schema [1] 'folio-document-images/v1'
      doc_id [1] string
      images [1] object[] | null
      undetermined_reason [0..1] string
    }
    class smart_base_library_folio_image_verdicts_v1["folio-image-verdicts/v1"] {
      <<ts: VerdictFile>>
      inspected_by [1] unknown
      inspected_at [1] string
      attribution [0..1] Record~string,  inspected_by: unknown; inspected_at: string ~
      verdicts [1] Record~string, Record~string, Verdict~~
    }
    class smart_base_library_folio_vector_labels_v1_folio_vector_labels_v1["folio-vector-labels/v1"] {
      <<json: VectorLabelsSidecarSchema>>
      $schema [1] 'folio-vector-labels/v1'
      doc_id [1] string
      pages [1] object[] | null
      undetermined_reason [0..1] string
    }
    class smart_base_library_folio_vector_figures_v1_folio_vector_figures_v1["folio-vector-figures/v1"] {
      <<json: VectorFiguresSidecarSchema>>
      $schema [1] 'folio-vector-figures/v1'
      doc_id [1] string
      figures [1] object[] | null
      undetermined_reason [0..1] string
    }
    class smart_base_library_folio_keywords_v1_Document["Document"] {
      <<json: KeywordsFileSchema>>
      term [1] string
      score [1] number
      evidence [0..*] heading[]
    }
    class smart_base_library_folio_keywords_v1_folio_keywords_v1["folio-keywords/v1"] {
      <<json: KeywordsFileSchema>>
      $schema [1] 'folio-keywords/v1'
      entry [1] string
      corpus [1] object
      document [0..*] Document[]
      sections [1] map~object[]~
    }
    class smart_base_library_folio_referenced_source_v1_Outline["Outline"] {
      <<json: ReferencedSourceSchema>>
      level [1] integer
      title [1] string
      page [1] integer | null
    }
    class smart_base_library_folio_referenced_source_v1_folio_referenced_source_v1["folio-referenced-source/v1"] {
      <<json: ReferencedSourceSchema>>
      $schema [1] 'folio-referenced-source/v1'
      identity [1] object
      source [1] object
      outline [0..*] Outline[]
      outline_source [1] embedded | none
      materialization [1] object
      withheld [1] object
      links [0..*] object[]
    }
  }
  smart_base_library_folio_keywords_v1_folio_keywords_v1 *-- "0..*" smart_base_library_folio_keywords_v1_Document : document
  smart_base_library_folio_referenced_source_v1_folio_referenced_source_v1 *-- "0..*" smart_base_library_folio_referenced_source_v1_Outline : outline
  cssClass "smart_base_library_folio_document_images_v1_folio_document_images_v1" fa_uml_kind_library
  cssClass "smart_base_library_folio_image_verdicts_v1" fa_uml_kind_library
  cssClass "smart_base_library_folio_vector_labels_v1_folio_vector_labels_v1" fa_uml_kind_library
  cssClass "smart_base_library_folio_vector_figures_v1_folio_vector_figures_v1" fa_uml_kind_library
  cssClass "smart_base_library_folio_keywords_v1_Document" fa_uml_kind_library
  cssClass "smart_base_library_folio_keywords_v1_folio_keywords_v1" fa_uml_kind_library
  cssClass "smart_base_library_folio_referenced_source_v1_Outline" fa_uml_kind_library
  cssClass "smart_base_library_folio_referenced_source_v1_folio_referenced_source_v1" fa_uml_kind_library

folio-assistant — code under the Apache License 2.0, documentation under CC BY 3.0. Generated schema and API references are rebuilt from source on every push to main.

deployed b08c961 · 2026-10-23T23:11:09Z