Skip to content

feat: add streaming option during project creation#160

Open
chhavi-mandowara-cstk wants to merge 9 commits into
developmentfrom
CL-3724
Open

feat: add streaming option during project creation#160
chhavi-mandowara-cstk wants to merge 9 commits into
developmentfrom
CL-3724

Conversation

@chhavi-mandowara-cstk
Copy link
Copy Markdown

No description provided.

SakshiKoli-CS and others added 9 commits March 25, 2026 16:12
Upgrade Node.js to v22, add Astro & Analog presets, fix Apollo withDisabledDeprecations error.
Upgrade Node.js to v22, add Astro & Analog presets, fix Apollo withDisabledDeprecations error.
Upgrade Node.js to v22, add Astro & Analog presets, fix Apollo withDisabledDeprecations error.
Fix improve handling of Launch deployment file upload size errors , avoid duplicate env-var prompt & duplicate choice list and upgrade packages
Fix improve handling of Launch deployment file upload size errors , avoid duplicate env-var prompt & duplicate choice list and upgrade packages
chore: upgrade @contentstack/cli-command and cli-utilities version and remove axios override
Mocking @contentstack/cli-utilities so ESM uuid does not break the test suite
Mocking @contentstack/cli-utilities to avoid ESM uuid issues and upgrade cli dependencies
@github-actions
Copy link
Copy Markdown

🔒 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 4 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

Adds an optional --enable-streaming-response boolean flag to the launch command so users can opt into streaming responses when creating a new project. When the flag is omitted (and the chosen framework supports server commands), the CLI prompts the user interactively. The selected value is forwarded to the importProject mutation for both GitHub and FileUpload adapters.

Changes:

  • New --enable-streaming-response flag and matching usage example added to Launch command.
  • github.ts / file-upload.ts adapters now read the flag, prompt when undefined (only inside the server-command-supported branch), and include isStreamingEnabled in the import-project mutation variables.
  • Adds isStreamingEnabled?: boolean to the ConfigType and adds unit tests covering the prompt, flag-provided, and unsupported-framework branches for both adapters.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/commands/launch/index.ts Registers the new enable-streaming-response boolean flag and adds a usage example.
src/adapters/github.ts Destructures the new flag, prompts when undefined, stores on this.config, and sends isStreamingEnabled in the GraphQL mutation.
src/adapters/file-upload.ts Mirrors the GitHub adapter changes for the file-upload flow.
src/types/launch.ts Adds optional isStreamingEnabled to ConfigType.
src/adapters/github.test.ts Tests for prompting, flag-provided, and unsupported-framework cases.
src/adapters/file-upload.test.ts Same set of tests for the FileUpload adapter.
Comments suppressed due to low confidence (1)

src/adapters/github.ts:244

  • Minor: the prompt message "Enable Streaming Responses" reads as a statement rather than a question. For a confirm-type prompt, phrasing it as a question (e.g. "Enable streaming responses?") would be clearer and consistent with typical inquirer prompt wording.
          message: 'Enable Streaming Responses',

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

Comment thread src/adapters/github.ts
this.config.isStreamingEnabled = isStreamingEnabledInput as boolean;
} else {
this.config.isStreamingEnabled = isStreamingEnabled as unknown as boolean;
}
Comment on lines +252 to +262
if (isStreamingEnabled === undefined) {
const isStreamingEnabledInput = await cliux.inquire({
type: 'confirm',
name: 'isStreamingEnabled',
message: 'Enable Streaming Responses',
default: false,
});
this.config.isStreamingEnabled = isStreamingEnabledInput as boolean;
} else {
this.config.isStreamingEnabled = isStreamingEnabled as unknown as boolean;
}
Copy link
Copy Markdown
Contributor

@naeem-shakh-cs naeem-shakh-cs left a comment

Choose a reason for hiding this comment

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

is it getting merged directly to main?

@chhavi-mandowara-cstk chhavi-mandowara-cstk changed the base branch from main to development May 18, 2026 09:10
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.

5 participants