@episoda/cli 0.2.202 → 0.2.204
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/daemon/daemon-process.js +19 -3
- package/dist/daemon/daemon-process.js.map +1 -1
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.204",
|
|
3050
3050
|
description: "CLI tool for Episoda local development workflow orchestration",
|
|
3051
3051
|
main: "dist/index.js",
|
|
3052
3052
|
types: "dist/index.d.ts",
|
|
@@ -6653,7 +6653,7 @@ async function ensureCodexBinary() {
|
|
|
6653
6653
|
}
|
|
6654
6654
|
|
|
6655
6655
|
// src/agent/providers/codex-config.ts
|
|
6656
|
-
var DEFAULT_CODEX_MODEL = "gpt-5.4
|
|
6656
|
+
var DEFAULT_CODEX_MODEL = "gpt-5.4";
|
|
6657
6657
|
function generateCodexAuthJson(credentials) {
|
|
6658
6658
|
if (!credentials.refreshToken) {
|
|
6659
6659
|
throw new Error(
|
|
@@ -13926,7 +13926,18 @@ var path34 = __toESM(require("path"));
|
|
|
13926
13926
|
var INACTIVITY_TIMEOUT_MS3 = 30 * 60 * 1e3;
|
|
13927
13927
|
var sessions = /* @__PURE__ */ new Map();
|
|
13928
13928
|
async function handlePtySpawn(payload, client) {
|
|
13929
|
-
const {
|
|
13929
|
+
const {
|
|
13930
|
+
moduleUid,
|
|
13931
|
+
agent_run_id,
|
|
13932
|
+
run_type = "one_shot",
|
|
13933
|
+
command,
|
|
13934
|
+
args,
|
|
13935
|
+
stdin,
|
|
13936
|
+
env,
|
|
13937
|
+
cwd,
|
|
13938
|
+
cols = 220,
|
|
13939
|
+
rows = 50
|
|
13940
|
+
} = payload;
|
|
13930
13941
|
if (sessions.has(agent_run_id)) {
|
|
13931
13942
|
console.warn(`[PTY] Session already exists for agent_run_id ${agent_run_id}, ignoring spawn`);
|
|
13932
13943
|
return { success: false, error: "PTY session already exists for this agent run." };
|
|
@@ -13968,6 +13979,7 @@ async function handlePtySpawn(payload, client) {
|
|
|
13968
13979
|
pty: proc,
|
|
13969
13980
|
moduleUid,
|
|
13970
13981
|
agent_run_id,
|
|
13982
|
+
runType: run_type,
|
|
13971
13983
|
startedAt: Date.now(),
|
|
13972
13984
|
lastOutputAt: Date.now(),
|
|
13973
13985
|
watchdogTimer: null,
|
|
@@ -14059,6 +14071,10 @@ function handlePtyStdin(payload) {
|
|
|
14059
14071
|
return { success: false, error: `PTY session ${agent_run_id} belongs to ${target.moduleUid}, not ${module_uid}` };
|
|
14060
14072
|
}
|
|
14061
14073
|
try {
|
|
14074
|
+
if (target.runType === "persistent" && text.trim() === "SHUTDOWN") {
|
|
14075
|
+
target.pty.kill();
|
|
14076
|
+
return { success: true };
|
|
14077
|
+
}
|
|
14062
14078
|
target.pty.write(`${text.replace(/\n/g, "\r")}\r`);
|
|
14063
14079
|
return { success: true };
|
|
14064
14080
|
} catch (error) {
|