feat(sync): bootstrap prompt workspaces - #812
Conversation
949c60e to
9292bf0
Compare
9292bf0 to
90e81a3
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
There are 3 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 90e81a3. Configure here.
90e81a3 to
5ea109f
Compare
5ea109f to
e8d2052
Compare
nieblara
left a comment
There was a problem hiding this comment.
LGTM! If it's low hanging fruit enough to make this agent friendly outside an interactive terminal, we should probably do that - can be a follow up imo, though!
4421361 to
9f46cb5
Compare
9f46cb5 to
e12bafe
Compare
4163af1 to
bd37ab6
Compare
bd37ab6 to
84b1ea2
Compare
5246920 to
454b77b
Compare
454b77b to
25acca5
Compare
25acca5 to
be4343a
Compare
Good call! I already have a ticket for this. |
be4343a to
265ccb0
Compare

Context
A repository with no
.launchdarklydirectory needs a guided way to select existing LaunchDarkly variations and create its initial local workspace. This change adds that bootstrap experience and the shared terminal primitives it uses.What changes
Review focus
Verification
go test ./internal/sync/...git diff --checkRelated changes
Review the stack in this order:
Note
Overview
Adds an interactive bootstrap flow for creating a local
.launchdarklyworkspace by picking LaunchDarkly projects, configs, and prompt variations from the API catalog. The flow requires a real TTY, uses Charm Huh forms for single- and multi-select, and routes status/preview output through a smallsync/consolewriter.Selection skips variations that already have local wrappers (with a count in the UI), supports dry-run previews of would-be files, and on commit writes wrappers via
Bootstrap/Addthen updates the sync manifest last—rolling back created files if manifest persistence fails. Dependencies addgithub.com/charmbracelet/huhand bumpbubblesto a newer pre-release.Reviewed by Cursor Bugbot for commit 265ccb0. Bugbot is set up for automated code reviews on this repo. Configure here.