@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.
package/dist/index.js
CHANGED
|
@@ -3046,7 +3046,7 @@ var require_package = __commonJS({
|
|
|
3046
3046
|
"package.json"(exports2, module2) {
|
|
3047
3047
|
module2.exports = {
|
|
3048
3048
|
name: "@episoda/cli",
|
|
3049
|
-
version: "0.2.
|
|
3049
|
+
version: "0.2.205",
|
|
3050
3050
|
description: "CLI tool for Episoda local development workflow orchestration",
|
|
3051
3051
|
main: "dist/index.js",
|
|
3052
3052
|
types: "dist/index.d.ts",
|
|
@@ -14011,7 +14011,7 @@ async function handlePtySpawn(payload, client) {
|
|
|
14011
14011
|
});
|
|
14012
14012
|
});
|
|
14013
14013
|
if (typeof stdin === "string" && stdin.trim().length > 0) {
|
|
14014
|
-
proc.write(`${stdin
|
|
14014
|
+
proc.write(`${stdin}\r`);
|
|
14015
14015
|
}
|
|
14016
14016
|
proc.onExit(({ exitCode }) => {
|
|
14017
14017
|
const durationMs = Date.now() - session.startedAt;
|
|
@@ -14071,11 +14071,14 @@ function handlePtyStdin(payload) {
|
|
|
14071
14071
|
return { success: false, error: `PTY session ${agent_run_id} belongs to ${target.moduleUid}, not ${module_uid}` };
|
|
14072
14072
|
}
|
|
14073
14073
|
try {
|
|
14074
|
+
if (text.length === 0) {
|
|
14075
|
+
return { success: true };
|
|
14076
|
+
}
|
|
14074
14077
|
if (target.runType === "persistent" && text.trim() === "SHUTDOWN") {
|
|
14075
14078
|
target.pty.kill();
|
|
14076
14079
|
return { success: true };
|
|
14077
14080
|
}
|
|
14078
|
-
target.pty.write(`${text
|
|
14081
|
+
target.pty.write(`${text}\r`);
|
|
14079
14082
|
return { success: true };
|
|
14080
14083
|
} catch (error) {
|
|
14081
14084
|
return { success: false, error: error?.message || "Failed to write PTY stdin" };
|