Adds CLI command to sync workbench files#36
Merged
Conversation
- Persist source repository info in config.yaml at init time for sync provenance - Read sync paths from source settings.yml, enabling custom forks with additional directories - Apply merge semantics: directories merge without deletions, files overwrite unconditionally - Guard against dirty working tree; require user confirmation before proceeding - Auto-commit sync results with a short SHA reference to the source commit - Update schemas for the new source config block and sync.paths setting Delivers PAP-7087
This was referenced May 17, 2026
aboo
added a commit
that referenced
this pull request
May 17, 2026
## What does this PR do? Adds comprehensive documentation for the new `workbench --sync` command to both the main `README.md` and `packages/workbench-cli/README.md`. This update provides clear guidance on the command's purpose, detailing how it fetches and merges managed workbench files from the source repository to keep a local workbench up to date. It also includes usage examples, the underlying process for applying changes, prerequisites, and new troubleshooting entries. Relates to #36
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.
What does this PR do?
Adds a new
workbench --syncCLI command, enabling users to update their local workbench configuration and managed files from a designated source repository. This feature ensures consistency across workbench instances and simplifies the process of keeping local setups aligned with upstream changes.The command:
.workbench/config.yaml, which is now populated during workbench initialization..opencode,.workbench/schemas,README.md) from the source repository.sync.pathsin.workbench/settings.ymland its schema for customizing which files are managed by the sync process.Relates to PAP-7087