setup: Replace directory-level install with per-asset merge-aware install - #180
Open
davidabram wants to merge 1 commit into
Open
setup: Replace directory-level install with per-asset merge-aware install#180davidabram wants to merge 1 commit into
davidabram wants to merge 1 commit into
Conversation
…tall sce setup previously staged the full catalog into a temp directory and swapped it over the whole .claude/, .opencode/, or .pi/ target directory, destroying any user-owned files (skills, settings.local.json, CLAUDE.md, etc.) living alongside SCE's own assets. The two generated JSON configs (.claude/settings.json, .opencode/opencode.json) had the same problem one level down: written whole, they clobbered a user's permissions, env, model, mcp, or non-SCE hook/plugin entries. Installation now happens per asset: each embedded file is staged and atomically renamed into place individually, and assets the current selection or catalog no longer owns are pruned by relative path instead of the whole directory being rebuilt. The two config files are merged via a new config_merge module that replaces only the SCE-owned fragment (hook entries by marker, plugin paths by prefix) and leaves every other key and entry untouched, idempotently across repeated installs. sce doctor's integration inspection is updated to match: the two merge-target configs are checked by whether their SCE-owned fragment is current rather than by byte-exact sha256, and `--fix` gained a repair path that reinstalls just a drifted merge-target asset.
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.
No description provided.