Skip to main content

Module wizard

Module wizard 

Source
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 ContextPrompter trait.

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§

ConfigHints
Configuration hints collected during init wizard.
DialoguerPrompter
Dialoguer-based prompter for interactive terminal use.
InitWizardResult
Result of the init wizard.
ScriptedPrompter
Scripted prompter for testing with predetermined responses.

Enums§

ScriptedResponse
Types of scripted responses.

Traits§

ContextPrompter
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§

UpdateWizardResult
Result of the update wizard: section name -> new content.