importer

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package importer parses the user's flat Markdown "memory" files (YAML frontmatter: name/description/metadata.type; body with **Why:** / **How to apply:** lines and [[wikilinks]]) into a neutral Memory shape for migration into ken. It is a pure parser — it does not touch the store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	ToSlug string
	Type   string
}

Link is a [[wikilink]] found in the body.

type Memory

type Memory struct {
	Slug      string
	Kind      string // user | feedback | project | reference
	Title     string
	Summary   string
	Problem   string
	Rationale string
	Solution  string
	Links     []Link
	Source    string // filename
}

Memory is one parsed flat-memory file, mapped onto ken's entry fields.

func ParseFile

func ParseFile(path string) (*Memory, error)

ParseFile parses one memory .md file.

Jump to

Keyboard shortcuts

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