Expand description
Interactive wizard for AGENTS.md context initialization and updates.
Responsibilities:
- Collect user preferences for context initialization (project type, config hints).
- Guide users through updating existing AGENTS.md sections interactively.
- Provide testable prompt abstractions via the
ContextPromptertrait.
Not handled here:
- File I/O (handled by the main context module).
- Markdown merging logic (handled by the merge module).
Invariants/assumptions:
- Wizard is only run in interactive TTY environments (enforced by CLI layer).
- User inputs are validated before returning wizard results.
Structs§
- Config
Hints - Configuration hints collected during init wizard.
- Dialoguer
Prompter - Dialoguer-based prompter for interactive terminal use.
- Init
Wizard Result - Result of the init wizard.
- Scripted
Prompter - Scripted prompter for testing with predetermined responses.
Enums§
- Scripted
Response - Types of scripted responses.
Traits§
- Context
Prompter - Trait for prompting user input, allowing testable implementations.
Functions§
- run_
init_ wizard - Run the interactive init wizard.
- run_
update_ wizard - Run the interactive update wizard.
Type Aliases§
- Update
Wizard Result - Result of the update wizard: section name -> new content.