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

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

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

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity0025✅ Passed
🟡 Medium Severity00500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

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

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

✅ BUILD PASSED - All security checks passed

CopilotAI left a comment

Copy link
Copy Markdown

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.

FileDescription
src/adapters/github.tsSwitches response mode prompt to a list selection and simplifies mapping to isStreamingEnabled.
src/adapters/github.test.tsUpdates tests to expect the list prompt and its choices; adjusts mapping/behavior assertions.
src/adapters/file-upload.tsSwitches response mode prompt to a list selection and simplifies mapping to isStreamingEnabled.
src/adapters/file-upload.test.tsUpdates 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 stagingJun 3, 2026
7 checks passed
Sign up for freeto 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

@chhavi-mandowara-cstk@venky0195@dhruv-parekh-cs