@episoda/cli 0.2.204 → 0.2.205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3051,7 +3051,7 @@ var require_package = __commonJS({
3051
3051
  "package.json"(exports2, module2) {
3052
3052
  module2.exports = {
3053
3053
  name: "@episoda/cli",
3054
- version: "0.2.204",
3054
+ version: "0.2.205",
3055
3055
  description: "CLI tool for Episoda local development workflow orchestration",
3056
3056
  main: "dist/index.js",
3057
3057
  types: "dist/index.d.ts",
@@ -12989,7 +12989,7 @@ async function handlePtySpawn(payload, client) {
12989
12989
  });
12990
12990
  });
12991
12991
  if (typeof stdin === "string" && stdin.trim().length > 0) {
12992
- proc.write(`${stdin.replace(/\n/g, "\r")}\r`);
12992
+ proc.write(`${stdin}\r`);
12993
12993
  }
12994
12994
  proc.onExit(({ exitCode }) => {
12995
12995
  const durationMs = Date.now() - session.startedAt;
@@ -13049,11 +13049,14 @@ function handlePtyStdin(payload) {
13049
13049
  return { success: false, error: `PTY session ${agent_run_id} belongs to ${target.moduleUid}, not ${module_uid}` };
13050
13050
  }
13051
13051
  try {
13052
+ if (text.length === 0) {
13053
+ return { success: true };
13054
+ }
13052
13055
  if (target.runType === "persistent" && text.trim() === "SHUTDOWN") {
13053
13056
  target.pty.kill();
13054
13057
  return { success: true };
13055
13058
  }
13056
- target.pty.write(`${text.replace(/\n/g, "\r")}\r`);
13059
+ target.pty.write(`${text}\r`);
13057
13060
  return { success: true };
13058
13061
  } catch (error) {
13059
13062
  return { success: false, error: error?.message || "Failed to write PTY stdin" };