Expand description
Logical scope data and path resolution independent of project configuration.
Structs§
- Artifact
- Access data computed by the caller, without declarations, evals, or owner commands.
- Artifact
Id - An Artifact’s ID:
[A-Za-z0-9][A-Za-z0-9_-]{0,63}, so it can never smuggle a path separator, a dot component, or control text into a scope key or a tool result. - Child
Prefix - File
Target - A local target with at least one entry name. The project root cannot be a file target.
- Input
Path - A validated tool path, distinct from declaration selections. Empty denotes the root.
- Local
Target - A project-relative native path with verified logical entry names. Retain the names so scoped opens can walk pinned directories without reparsing the trusted owner target.
- Logical
Path - Scope
- Scope
Error - Scoped
Path - Uri
Enums§
- Artifact
Kind - Open
Error - Why a scoped open failed. Missing entries stay distinct so callers can name the input.
- Target
- Kind and local selection travel with the target, so a Live URI cannot be a folder.
Constants§
- MAX_
ARTIFACT_ ID_ BYTES - Bound Artifact IDs like artifactize’s Artifact names, so they stay short in tool output.
- MAX_
PATH_ UNITS - Bound logical tool paths in UTF-16 units, matching JSON Schema string limits across supported clients without tying scoped paths to an OS-specific PATH_MAX.
Functions§
- logical_
from_ native - The logical form of a native relative path: its components joined with
/, whatever separator the platform uses.Nonewhen a component is not UTF-8 or not a plain name. - logical_
path - open_
child - Open one entry of a pinned directory without following a symlink.
- open_
input - Open each component relative to its pinned parent, so replacement cannot redirect a read through a link.
- open_
scoped - Open a relative path below an absolute root without following any symlink components.
- scoped_
path - Resolve a physical input below a canonical root. No component may be a symlink.