Pack configuration
File operations
YAML operations
Initializer contract
Hook context
Migration contract
Plan results
Exports
ChangeKind
Filesystem effects exposed in a reviewable project plan.Example
Example
ChangePlan
An ordered collection of file and YAML operations returned by a pack hook.— means no declared default):
Parameters and example
Parameters and example
ProjectCLI
Embed init/upgrade planning and custom commands in a company-owned executable.Parameters and example
Parameters and example
ProjectCLI.add_command
Parameters and example
Parameters and example
ProjectCLI.add_studio
Parameters and example
Parameters and example
ProjectCLI.run
Parameters and example
Parameters and example
ProjectChange
A path-level change summary which never exposes configuration contents.— means no declared default):
Parameters and example
Parameters and example
ProjectContext
Pack hook inputs and read-only staged project views; callbacks are trusted code.— means no declared default):
Parameters and example
Parameters and example
ProjectError
A project cannot be safely planned, validated, or changed.Example
Example
ProjectPack
Company-owned scaffolding and consecutive schema migrations, never auto-discovered.Parameters and example
Parameters and example
ProjectPack.initialize
Parameters and example
Parameters and example
ProjectPack.migration
Parameters and example
Parameters and example
ProjectPlan
A combined immutable snapshot plan; apply refuses blockers or changed inputs. Obtain this object from the owning Harnest API; its constructor includes runtime bindings. Fields (— means no declared default):
Example
Example
ProjectPlan.public
Example
Example
ProjectPlan.render
Example
Example
ProjectPlanner
Plan init and upgrade using explicitly supplied trusted project packs.Parameters and example
Parameters and example
ProjectPlanner.plan_init
Parameters and example
Parameters and example
ProjectPlanner.plan_upgrade
Parameters and example
Parameters and example
WritePolicy
Choose whether to fill a missing value or update pack-owned content.Example
Example
apply_project_plan
Reject stale inputs, back up originals, and roll back failed source writes.Parameters and example
Parameters and example
ProjectContext.files
Access this facade throughProjectContext.files; its implementation type is not a public import.
Read snapshot files and declare text/template changes without writing them.
ProjectContext.files.read_text
Parameters and example
Parameters and example
ProjectContext.files.write_text
Parameters and example
Parameters and example
ProjectContext.files.from_template
Parameters and example
Parameters and example
ProjectContext.files.from_file
Parameters and example
Parameters and example
ProjectContext.files.delete
Parameters and example
Parameters and example
ProjectContext.yaml
Access this facade throughProjectContext.yaml; its implementation type is not a public import.
Declare field-level YAML edits; unrelated values survive serialization.
ProjectContext.yaml.read
Parameters and example
Parameters and example
ProjectContext.yaml.set
Parameters and example
Parameters and example
ProjectContext.yaml.rename_key
Parameters and example
Parameters and example