apply method

Writes plan: the lock, the skills it lists, and the removals, or only the lock for a plan that leaves skills alone. Holds the project's get lock and throws ProfileResolutionBusyException (resolution-busy) while another holder has it. Throws resolution-stale when wayfinder.json, wayfinder.lock or a package file the plan read in the cache has changed since plan, and ProfileSkillDirectoriesException when a skill directory it would replace is no longer Wayfinder's.

Implementation

Future<ProfileResolutionResult> apply(ProfileResolutionPlan plan) =>
    _withProjectLock(plan.projectRoot, () => _apply(plan));