resolver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(st *store.Store) error

func ResolveWorkspace added in v0.2.0

func ResolveWorkspace(projects []ProjectRef) error

ResolveWorkspace performs a second-pass cross-project wikilink resolution after all per-project Resolve() calls have completed. It handles [project/doc-name] formatted wikilinks that could not be resolved within a single project. Because edges.target has a FOREIGN KEY constraint that references nodes in the same DB, cross-project edges use the same self-edge-with-metadata pattern as links_external: Source == Target == ref.FromNodeID, with {"cross_project": true, "target_project": "...", "target_node_id": "..."} stored in Metadata.

Types

type ProjectRef added in v0.2.0

type ProjectRef struct {
	Name  string
	Store *store.Store
}

ProjectRef is a lightweight project descriptor used by ResolveWorkspace to avoid a circular import between resolver and workspace packages.

Jump to

Keyboard shortcuts

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