@episoda/cli 0.2.201 → 0.2.203

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.201",
3049
+ version: "0.2.203",
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,6 +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
6657
  function generateCodexAuthJson(credentials) {
6657
6658
  if (!credentials.refreshToken) {
6658
6659
  throw new Error(
@@ -6679,7 +6680,9 @@ function generateCodexAuthJson(credentials) {
6679
6680
  }
6680
6681
  function generateCodexConfigToml(projectPath) {
6681
6682
  const escapedPath = projectPath.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
6682
- return `[projects."${escapedPath}"]
6683
+ return `model = "${DEFAULT_CODEX_MODEL}"
6684
+
6685
+ [projects."${escapedPath}"]
6683
6686
  trust_level = "trusted"
6684
6687
  `;
6685
6688
  }
@@ -6696,7 +6699,7 @@ function escapeTomlString(value) {
6696
6699
  return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t");
6697
6700
  }
6698
6701
  function generateCodexMcpConfigToml(servers, projectPath) {
6699
- const lines = [];
6702
+ const lines = [`model = "${DEFAULT_CODEX_MODEL}"`, ""];
6700
6703
  if (projectPath) {
6701
6704
  const escapedPath = escapeTomlString(projectPath);
6702
6705
  lines.push(`[projects."${escapedPath}"]`);
@@ -9032,6 +9035,7 @@ var CodexProvider = class {
9032
9035
  args.push("--sandbox", "read-only");
9033
9036
  console.log("[CodexProvider] EP1205: Codex read-only mode - using --sandbox read-only");
9034
9037
  }
9038
+ args.push("--model", session.credentials.preferredModel || DEFAULT_CODEX_MODEL);
9035
9039
  if (resumeSessionId) {
9036
9040
  args.push("resume", resumeSessionId);
9037
9041
  }
@@ -17575,7 +17579,7 @@ var Daemon = class _Daemon {
17575
17579
  const modeConfig = getDaemonModeConfig();
17576
17580
  const environment = modeConfig.mode;
17577
17581
  const containerId = process.env.EPISODA_CONTAINER_ID;
17578
- const capabilities = ["worktree_create_v1"];
17582
+ const capabilities = ["worktree_create_v1", "pty_v1"];
17579
17583
  await client.connect(wsEndpoint.wsUrl, config.access_token, this.machineId, {
17580
17584
  hostname: os17.hostname(),
17581
17585
  osPlatform: os17.platform(),