Skip to content

Use inquirer prompt to select response mode#172

Merged
chhavi-mandowara-cstk merged 2 commits into
stagingfrom
development
Jun 3, 2026
Merged

Use inquirer prompt to select response mode#172
chhavi-mandowara-cstk merged 2 commits into
stagingfrom
development

Conversation

@chhavi-mandowara-cstk
Copy link
Copy Markdown
Contributor

feat: use inquirer select prompt for response mode instead of text input

@chhavi-mandowara-cstk chhavi-mandowara-cstk requested review from a team as code owners June 3, 2026 06:45
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the interactive CLI UX by switching the “response mode” prompt from free-text input to an Inquirer list selection, ensuring users can only choose supported modes (buffered or streaming).

Changes:

  • Replaced input + manual validation/normalization with a list prompt for response mode selection in both GitHub and FileUpload adapters.
  • Simplified streaming enablement logic to a direct equality check against the selected value.
  • Updated adapter unit tests to assert the new prompt shape (type: 'list', choices) and adjusted response-mode mapping cases accordingly.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/adapters/github.ts Switches response mode prompt to a list selection and simplifies mapping to isStreamingEnabled.
src/adapters/github.test.ts Updates tests to expect the list prompt and its choices; adjusts mapping/behavior assertions.
src/adapters/file-upload.ts Switches response mode prompt to a list selection and simplifies mapping to isStreamingEnabled.
src/adapters/file-upload.test.ts Updates tests to expect the list prompt and its choices; adjusts mapping/behavior assertions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chhavi-mandowara-cstk chhavi-mandowara-cstk merged commit a93dfd3 into staging Jun 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants