The project's copies of Profile skills. Each Profile owns the directory named by its id under each agent root, so no two Profiles share a write. Only a directory holding marker for the id its name claims is ever replaced or removed; any other directory belongs to the user.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
directories(
ProfileId id) → List< String> -
escaping(
String projectRoot) → Future< List< String> > -
The roots that a symbolic link at the root or an ancestor places
outside
projectRoot, where a write or prune would change another project's skills. write refuses them and prune skips them. A link that cannot be resolved counts as outside. -
escapingProblem(
String projectRoot) → Future< String?> -
Why
getmay not install Profile skills underprojectRoot, or null when every root resolves inside the project. It names the roots and no remedy: pointing them inside the project is the host's to say. -
inspect(
String projectRoot, SkillRevision revision) → Future< List< ProfileSkillDirectory> > -
Each directory of
revision's skill, one per root in roots order, with its ProfileSkillDirectoryState: whatgetwould do with it to installrevision, and why it would refuse. Reads only the markers and whether something is there; never writes and never runs Git. -
markerText(
SkillRevision revision) → String -
The marker file's text for
revision. -
prunable(
String projectRoot, Set< ProfileId> keep) → Future<List< String> > - What prune would delete and report, without deleting anything.
-
prune(
String projectRoot, Set< ProfileId> keep) → Future<List< String> > -
Deletes every marked directory whose id is not in
keep, because its Profile no longer ships a skill or is no longer locked, and returns them. Also deletes the marked staged or replaced copies an interrupted write left behind. -
read(
String projectRoot, SkillRevision revision, {int? maxBytes}) → Future< ProfileSkillText?> -
The installed
SKILL.mdofrevision: from the first directory in directories order that holdsrevision, the check stale and validation'sprofile-skill-stalenote make. Null when none does, as beforegetor after the lock moved on, and when that directory has no readable UTF-8SKILL.md.projectRootis the directory of thewayfinder.jsonthat bound the bundle, which a selection names as SelectedProfile.projectRoot. Returns nothing that a symbolic link places outside it, and never writes. -
revisionsOf(
SelectedProfile selection) → List< SkillRevision> -
The skill revision of each package in
selection's chain that ships a skill and has a locked commit, root ancestor first: what read and stale take, with SelectedProfile.projectRoot. Empty for a selection built by hand, which records no commits. -
stale(
String projectRoot, SkillRevision revision) → Future< List< String> > -
The directories of
revision's skill that do not hold it: missing, unmarked, or marked with another revision. A directory under a root that resolves outside the project counts by the marker its link reaches. The paths behindprofile-skill-stale. -
unowned(
String projectRoot, Iterable< ProfileId> ids) → Future<List< String> > -
The directories of
idsthat something occupies without a marker for their id, so the user or another tool owns them andgetmust not replace them: a directory without the marker or with one it cannot read, or a file or symbolic link in its place, as ProfileSkillDirectoryState.unmarked reports. -
write(
String projectRoot, SkillRevision revision, List< SkillFile> files) → Future<void> -
Replaces each of
revision's directories withfilesand the marker. Each directory is staged as a hidden sibling and renamed into place, so an agent never reads a half-written skill. It works under the real path of each skill root, which escaping confines to the project.