Repository navigation
feat: move opencode.json management from uf setup to uf init (Spec 017) - #67
Merged
Merged
Conversation
- Add configureOpencodeJSON() to scaffold with Dewey MCP server
and Swarm plugin entries, idempotent with --force overwrite
- Add ReadFile, WriteFile, DryRun to scaffold.Options for
injectable I/O and dry-run support
- Fix uf doctor MCP key mismatch ("mcp" canonical, "mcpServers"
fallback) and array-style command field extraction
- Remove configureOpencodeJSON() from setup, renumber 16→15 steps
- Forward ReadFile/WriteFile/DryRun in runUnboundInit() injection chain
- Legacy mcpServers.dewey treated as already configured (no duplicates)
- Byte-identical output on no-change re-runs (FR-016)
- 16 new scaffold tests, 4 new doctor tests, 1 integration test
- Full spec artifacts (spec, plan, tasks, data-model, research)
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
opencode.jsonmanagement fromuf setuptouf initso developers get Dewey MCP + Swarm plugin config fromuf initaloneconfigureOpencodeJSON()in scaffold: creates/updatesopencode.jsonwithmcp.dewey(when dewey in PATH) andopencode-swarm-plugin(when.hive/exists)--forceoverwrites stale entries,DryRunsupportuf doctorMCP key mismatch: checks"mcp"first (canonical),"mcpServers"fallbackuf doctorcommand field extraction: handles both string and array-stylecommandfieldsconfigureOpencodeJSON()from setup, renumber 16 to 15 stepsReadFile/WriteFile/DryRuninrunUnboundInit()injection chainmcpServers.deweytreated as already configured (no duplicate entries)Spec Artifacts
Full Speckit pipeline at
specs/017-init-opencode-config/: spec (21 FRs, 4 user stories), plan, tasks (37 completed), data-model, research (6 decisions), quickstart, checklist.Constitution Check
All 4 principles PASS. Review council approved with advisories (5 Divisor reviewers, 2 iterations).