Class ScaffoldPlanner
java.lang.Object
network.ike.plugin.scaffold.ScaffoldPlanner
Turn a
ScaffoldManifest plus the current disk state and
ScaffoldLockfile into a ScaffoldPlan.
The planner performs read-only disk I/O: it reads current file
bytes at each dest. It never writes. Decisions are
delegated to:
TierHandlerfor file-based tiers;ModelAdapterfor model-managed tiers.
The caller decides which scope (ScaffoldScope.PROJECT or
ScaffoldScope.USER) to plan — typical usage plans project
scope when the goal runs inside a reactor and user scope when the
same goal runs with projectRequired = false for a
fresh-machine bootstrap.
-
Constructor Summary
ConstructorsConstructorDescriptionScaffoldPlanner(TierHandlers tierHandlers, ModelAdapters modelAdapters) Construct a planner with the given handler registries. -
Method Summary
Modifier and TypeMethodDescriptionplan(ScaffoldManifest manifest, ScaffoldLockfile currentLockfile, ScaffoldScope scope, PathResolver pathResolver, TemplateSource templates) Build a plan.
-
Constructor Details
-
ScaffoldPlanner
Construct a planner with the given handler registries. The planner selects a tier handler for file-based tiers and a model adapter forScaffoldTier.MODEL_MANAGEDentries based on each entry's declared tier and (for model-managed entries) its declared model name.- Parameters:
tierHandlers- registry of file-based tier handlersmodelAdapters- registry of model adapters
-
-
Method Details
-
plan
public ScaffoldPlan plan(ScaffoldManifest manifest, ScaffoldLockfile currentLockfile, ScaffoldScope scope, PathResolver pathResolver, TemplateSource templates) Build a plan.- Parameters:
manifest- the manifest to plancurrentLockfile- the current lockfile (may beScaffoldLockfile.empty())scope- the scope to plan — entries outside this scope are ignoredpathResolver- resolver fordest→ absolute pathtemplates- source of template bytes for file-based tiers- Returns:
- the plan
-