Repository navigation
feat(setup): customize step at the Apply? prompt - #1
Merged
Merged
Conversation
`agbox setup` now asks "Apply? [Y]es / [n]o / [c]ustomize". Customize asks about the settings that vary from machine to machine (profile, agents, agent mode, services, components, user, hostname, timezone, git identity), then shows the updated plan and asks again. Answers are applied as --set overrides and reloaded through load_config, so profiles, validation, --dry-run and the saved config work unchanged. Runs with --yes, --dry-run or no terminal are not affected. Prompts read the terminal through tty_read/tty_printf; AGBOX_TTY lets tests supply answers from a file. Also: the devtools plan line lists gh and Playwright only when enabled, and username/hostname validators are pure functions shared with the wizard. Claude-Session: https://claude.ai/code/session_01LAwbf3NkNHZhz9kMSZZJMC
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.
agbox setupnow asks Apply? [Y]es / [n]o / [c]ustomize. Choosing customize runs a short wizard over the settings that vary between machines:After the questions it lists the changes, reprints the plan and asks again.
Design
--setoverrides. They are reloaded throughload_config, so profile layering, validation,--dry-runandsave_configwork unchanged, and nothing touches the system until the user answers yes.--yes,--dry-runand runs without a terminal never prompt.tty_read/tty_printfinlib/core.sh, and tests feed answers from a file withAGBOX_TTY.devtoolsplan line now matches the GH/PLAYWRIGHT toggles.Tests:
tests/wizard.batscovers the pure pick/toggle helpers,ask_apply, wizard answers, re-prompts, clearing and end of input. Two new CLI tests check the abort path and that customize updates the plan.https://claude.ai/code/session_01LAwbf3NkNHZhz9kMSZZJMC