feat: discover offers workspace init for monorepos#255
Merged
Conversation
When no .version files or config exist, sley discover now detects monorepo workspace markers and offers the full workspace initialization flow with plugin selection. Also reorders generated .sley.yaml to place workspace section before plugins, matching the documented structure.
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.
Description
When no
.versionfiles or config exist,sley discovernow detects monorepo workspace markers (go.work,pnpm-workspace.yaml,package.jsonworkspaces,Cargo.toml [workspace]) and offers the full workspace initialization flow with plugin selection.Also reorders generated
.sley.yamlto place workspace section before plugins, matching the documented structure and following a logical mental flow: project structure first, then behavior configuration.Related Issue
Notes for Reviewers
discoverremains read-only by default.Run 'sley init --workspace' when ready.--no-interactive) skips the prompt and falls through to the existing "Run sley init" message.