V1.3.0 #14

Merged
irammini merged 10 commits from dev into main 2026-02-11 00:53:32 +00:00
irammini commented 2026-02-09 00:56:10 +00:00 (Migrated from github.com)

Upgrade curl and exec prompt so they're not experimental anymore.

Upgrade `curl` and `exec` prompt so they're not experimental anymore.
irammini commented 2026-02-09 01:03:18 +00:00 (Migrated from github.com)

In this commit:

  • Implemented clear() method in CurlPrompt to robustly reset cursor and screen state before launching sub-prompts.
  • Updated editHeaders and editBody to use clear() and force a full re-render upon return.
  • Ensures the help message is not overwritten and prevents duplication of the prompt interface.
In this commit: - Implemented `clear()` method in `CurlPrompt` to robustly reset cursor and screen state before launching sub-prompts. - Updated `editHeaders` and `editBody` to use `clear()` and force a full re-render upon return. - Ensures the help message is not overwritten and prevents duplication of the prompt interface.
irammini commented 2026-02-09 02:04:24 +00:00 (Migrated from github.com)

In this commit:

Refactors CurlPrompt to use a Strategy pattern for generating shell-specific command strings.

  • Introduces ShellStrategy interface and implementations for Bash, PowerShell, and Cmd.
  • Adds curl-utils.ts to encapsulate shell logic.
  • Updates CurlPrompt to auto-detect platform (defaults to PowerShell on Windows).
  • Adds interaction to cycle shells using 's' key (restricted to non-URL sections to preserve typing).
  • Ensures correct escaping for JSON bodies and special characters across all shells.
In this commit: Refactors `CurlPrompt` to use a Strategy pattern for generating shell-specific command strings. - Introduces `ShellStrategy` interface and implementations for `Bash`, `PowerShell`, and `Cmd`. - Adds `curl-utils.ts` to encapsulate shell logic. - Updates `CurlPrompt` to auto-detect platform (defaults to PowerShell on Windows). - Adds interaction to cycle shells using 's' key (restricted to non-URL sections to preserve typing). - Ensures correct escaping for JSON bodies and special characters across all shells.
github-advanced-security[bot] (Migrated from github.com) reviewed 2026-02-09 02:05:10 +00:00
@ -0,0 +1,43 @@
export type ShellType = 'bash' | 'powershell' | 'cmd';
github-advanced-security[bot] (Migrated from github.com) commented 2026-02-09 02:05:10 +00:00

Incomplete string escaping or encoding

This does not escape backslash characters in the input.

Show more details

## Incomplete string escaping or encoding This does not escape backslash characters in the input. [Show more details](https://github.com/CodeTease/mep/security/code-scanning/8)
irammini commented 2026-02-09 05:22:35 +00:00 (Migrated from github.com)

In this commit:

  • Replace inherit/ignore stdio with pipe to capture output streams.
  • Display the last line of stdout/stderr next to the spinner to show progress.
  • Handle Ctrl+C safely by killing the child process and rejecting the promise.
  • Attach captured stdout and stderr to the error object on failure for better debugging.
  • Remove experimental warning as stability issues are addressed.
In this commit: - Replace `inherit`/`ignore` stdio with `pipe` to capture output streams. - Display the last line of stdout/stderr next to the spinner to show progress. - Handle `Ctrl+C` safely by killing the child process and rejecting the promise. - Attach captured `stdout` and `stderr` to the error object on failure for better debugging. - Remove experimental warning as stability issues are addressed.
irammini commented 2026-02-09 17:29:57 +00:00 (Migrated from github.com)

I'll do more tests with exec prompt.

I'll do more tests with `exec` prompt.
github-advanced-security[bot] (Migrated from github.com) reviewed 2026-02-11 00:49:30 +00:00
@ -0,0 +31,4 @@
await MepCLI.exec({
message: "Building project...",
command: `node -e "${script.replace(/\n/g, ' ').replace(/"/g, '\\"')}"`
github-advanced-security[bot] (Migrated from github.com) commented 2026-02-11 00:49:30 +00:00

Incomplete string escaping or encoding

This does not escape backslash characters in the input.

Show more details

## Incomplete string escaping or encoding This does not escape backslash characters in the input. [Show more details](https://github.com/CodeTease/mep/security/code-scanning/9)
Sign in to join this conversation.
No description provided.