AdoptionRequest class final
What to adopt: the Profile package at source, applied to the bundle directory bundle of the project at projectRoot.
Constructors
-
AdoptionRequest({required String projectRoot, required AdoptionSource source, ProfileId? profile, String bundle = KnowledgeSeeds.bundle, bool ignoreOkfLock = true, bool bindExisting = false, List<
AdoptionSeedConcept> concepts = const [], ProjectVocabulary vocabulary = ProjectVocabulary.none, String logAction = KnowledgeSeeds.logAction, String logDescription = KnowledgeSeeds.logDescription, List<String> instructionLines = const [], DateTime? date, bool offline = false, ProfileFetchPolicy? allowFetch, List<String> hostInputs = const []}) -
const
Properties
- allowFetch → ProfileFetchPolicy?
-
Decides each clone or refresh planning would make, when not offline:
the named source, its default branch, and every parent the chain
reaches, including one in another repository. A refused fetch throws
ProfileFetchRequiredExceptionnaming it, before it runs; the fetches allowed before it stay in the Profile cache. Null allows every fetch. A host asks the person about the named source before planning, then about each fetch a refusal names, and plans again with it allowed.final - bindExisting → bool
-
Bind a bundle directory that already holds files instead of
reporting it as a conflict. A bound bundle must pass OKF, and nothing
is written in it. An absent directory, or one that holds nothing but
okf's
.okf.lock, is seeded either way.final - bundle → String
-
The bundle directory, relative to projectRoot, as a POSIX path.
final
-
concepts
→ List<
AdoptionSeedConcept> -
Concepts to seed beside the root files. With any, every index is the
one the Profile's generated-index rules expect, as
validate --fixwrites it.final - date → DateTime?
-
The first log entry's day; the adoption's clock when null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostInputs
→ List<
String> -
Project files or directories, as project-relative POSIX paths, that
the host read to make the request or that its own step writes, such
as
AGENTS.md. Planning digests each, as it does the files adoption writes, and applying refuses the plan withadoption-stalebefore writing anything when one changed since, absent or present, so the host's step shares adoption's staleness check.final - ignoreOkfLock → bool
-
Add a
.gitignoreline for the.okf.lockfile okf keeps at the bundle root, unless.gitignorealready ignores it.final -
instructionLines
→ List<
String> -
Lines a Profile's adoption guidance adds to the end of the
### Knowledge bundleblock the plan returns.final - logAction → String
-
The first log entry. A Profile's adoption guidance may word it.
final
- logDescription → String
-
final
- offline → bool
-
Never reach the network: planning reads the Profile cache as it is,
without refreshing a branch, and throws
ProfileFetchRequiredException(fetch-required), naming the fetch, when it still needs one.final - profile → ProfileId?
-
The Profile id the request expects, which keys the
wayfinder.jsonentry; null takes the id the package at source declares. When given, the package must declare it: planning throwsAdoptionProfileConflictException(adoption-profile-conflict) for one that declares another.final - projectRoot → String
-
The directory that will hold
wayfinder.json.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → AdoptionSource
-
final
- vocabulary → ProjectVocabulary
-
The project's own types, tags, relationship names and actors, which
wayfinder.jsondeclares for the seed concepts that use them. Never the Profile's own vocabulary; usually empty at adoption.final
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