Expand description
Re-export of harn_modules::asset_paths plus a VM-side convenience
that anchors the project-root walk at the currently-executing
source file (via VM_SOURCE_DIR) and falls back to the existing
source-relative resolver when the path is not an @-prefixed asset
reference.
See harn_modules::asset_paths for the resolver itself (issue #742).
Enums§
- Asset
Ref - A parsed
@-prefixed asset reference.
Functions§
- is_
asset_ path - Returns true when
pathstarts with the@-asset prefix. - parse
- Parse an
@-prefixed path. ReturnsNonefor plain paths so callers can fall back to source-relative resolution. Malformed@-paths (e.g.@foowith no slash) also returnNone; the resolver wrapsNonecases into a parse-time error when the caller knows it has an@prefix. - resolve
- Resolve an
@-prefixed asset path to an absolute filesystem path. - resolve_
or_ source_ relative - Resolve an
@-prefixed asset path against the project root, or fall back to the legacy source-relative resolver whenpathis plain. - stdlib_
prompt_ asset_ path - Return the stdlib prompt-asset path without its
std/prefix.