Documentation
¶
Overview ¶
Package scaffoldver tracks which bones binary version scaffolded the current workspace's .bones/ and .claude/skills trees. The scaffold and the binary upgrade independently — brew upgrade replaces the binary but leaves the workspace state alone — so we record the version each time scaffoldOrchestrator runs and detect drift on subsequent invocations.
See ADR 0035 (`docs/adr/0035-scaffold-version-drift.md`) for the rationale and detection strategy.
Index ¶
Constants ¶
const StampPath = ".bones/scaffold_version"
StampPath is the relative location under the workspace root where the scaffold version is recorded. Plain text, single line, no trailing newline-noise to fight.
Deprecated: prefer Path(root) which honors BONES_DIR (issue #291). Kept as a constant so existing tests that hardcode the relative layout still compile.
Variables ¶
This section is empty.
Functions ¶
func Drifted ¶
Drifted reports whether the workspace stamp and the running binary's version disagree. Returns false when:
- the stamp is empty (fresh workspace; nothing to compare against)
- the binary version is "dev" or empty (local build; suppress noise during development)
- the values match
All other cases return true. Caller decides whether to warn.
func Path ¶ added in v0.11.0
Path returns the absolute path of the scaffold-version stamp for the workspace at root. Honors BONES_DIR (issue #291) when set.
Types ¶
This section is empty.