Skip to main content

Module resolver

Module resolver 

Source
Expand description

NAP Resolver — URI → Manifest, with query and version selectors.

The resolver is the primary interface for reading NAP resources. It handles:

  • Full manifest resolution: nap://starwars/character/lukeskywalker
  • Fragment queries: nap://starwars/character/lukeskywalker#references.appears_in
  • Version selectors: branch, commit
  • Subtree extraction for efficient AI/application access

Version and branch are NEVER in the URI. They are orthogonal selectors:

URI + Reference + Revision Selector

Structs§

ResolveConfig
Resolver configuration — set at construction time.
ResolveOptions
Options for resolving a NAP URI. All are optional — omitting all causes the resolver to use its ResolveConfig::default_branch (if configured) or fail with NapError::NoDefaultBranch.
Resolver
The NAP resolver — resolves URIs to manifests or subtrees.

Enums§

ResolveResult
The result of resolving a NAP URI.