Repository navigation
feat: externalize Speckit, OpenSpec, and Gaze init from embedded assets (Spec 027) - #90
Merged
Merged
Conversation
…ts (Spec 027) - Remove 13 embedded assets (12 Speckit files from internal/scaffold/assets/specify/ + 1 openspec/config.yaml), reducing embedded asset count from 55 to 42 - Add 3 tool delegations to initSubTools() in scaffold.go: specify init (gated on .specify/ absence), openspec init --tools opencode (gated on openspec/config.yaml absence), gaze init (gated on gaze-reporter.md absence) - Add 2 new uf setup steps: installUV() (Homebrew-first with curl fallback) and installSpecify() (via uv tool install specify-cli, gated on uv availability), increasing step count from 12 to 14 - Remove specify/ from knownAssetPrefixes and mapAssetPath() - Update expectedAssetPaths (55 → 42), add 13 entries to knownNonEmbeddedFiles, update TestRunInit_FreshDir file count (55 → 42) - Add 18 new test functions (7 setup + 11 scaffold delegation) - Update /uf-init command with tool delegation documentation - Add spec artifacts (spec, plan, tasks, research, data-model, quickstart, contracts)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Externalizes Speckit, OpenSpec, and Gaze initialization from embedded scaffold assets to CLI
initcommand delegation. Each tool now owns its own initialization —uf initdelegates tospecify init,openspec init, andgaze initinstead of deploying static copies from the binary.What Changed
internal/scaffold/assets/specify/+ 1openspec/config.yaml). Asset count: 55 → 42.uf init: 3 tool delegations ininitSubTools():specify init— gated on.specify/absenceopenspec init --tools opencode— gated onopenspec/config.yamlabsencegaze init— gated ongaze-reporter.mdabsenceuf setup: 2 new steps (12 → 14):installUV()— Homebrew-first with curl fallbackinstallSpecify()— viauv tool install specify-cli, gated on uv availabilityopenspec/schemas/unbound-force/remains tool-ownedWhy
Embedded assets become stale when the
ufbinary is upgraded but the target repo keeps the old files (user-owned, never overwritten). Delegating to CLIinitcommands means the files always match the installed tool version.