Documentation
¶
Index ¶
Constants ¶
const ( ScopeGlobal = "global" ScopeLocal = "local" )
Variables ¶
This section is empty.
Functions ¶
func ParseScoped ¶
ParseScoped splits scoped paths such as "global:skills" or "local:.". Bare paths and absolute paths (~/foo, /abs) are not scoped.
func Resolve ¶
Resolve expands ~/ and returns an absolute path. Use at build time for workspace.root config.
func ResolveRel ¶
ResolveRel maps rel against base. Absolute paths and ~/ bypass base. Resolving one level above base is allowed: when the local root is <project>/.agentkit, tools reach the project itself through "..".
func ResolveRelStrict ¶
ResolveRelStrict is ResolveRel with the parent-directory exemption removed: nothing outside base resolves, not even one level up. Use it for roots that are an isolation boundary rather than a convenience default — a per-tenant root sits next to its siblings, so allowing ".." there would let one tenant read and write another's workdir.