@episoda/cli 0.2.197 → 0.2.198
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.
|
@@ -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.198",
|
|
3050
3050
|
description: "CLI tool for Episoda local development workflow orchestration",
|
|
3051
3051
|
main: "dist/index.js",
|
|
3052
3052
|
types: "dist/index.d.ts",
|
|
@@ -13016,6 +13016,9 @@ function createCredentialBootstrap(payload, agentRunId) {
|
|
|
13016
13016
|
if (!bootstrap?.oauth?.access_token) {
|
|
13017
13017
|
return { env: {}, cleanupDirs: [] };
|
|
13018
13018
|
}
|
|
13019
|
+
if (bootstrap.provider === "codex" && !bootstrap.oauth.refresh_token) {
|
|
13020
|
+
throw new Error("Codex PTY spawn aborted: refresh_token is missing from credential bundle. Please reconnect Codex in Settings.");
|
|
13021
|
+
}
|
|
13019
13022
|
const baseDir = fs30.mkdtempSync(path30.join(os14.tmpdir(), `episoda-pty-${agentRunId}-`));
|
|
13020
13023
|
const cleanupDirs = [baseDir];
|
|
13021
13024
|
if (bootstrap.provider === "claude") {
|
|
@@ -13040,6 +13043,9 @@ function createCredentialBootstrap(payload, agentRunId) {
|
|
|
13040
13043
|
const authPayload = {
|
|
13041
13044
|
auth_mode: "chatgpt",
|
|
13042
13045
|
OPENAI_API_KEY: null,
|
|
13046
|
+
// EP1473: Codex CLI 0.104.0+ requires last_refresh during token/model bootstrap.
|
|
13047
|
+
// Without it, Codex fails with "Token data is not available" before any work begins.
|
|
13048
|
+
last_refresh: (/* @__PURE__ */ new Date()).toISOString(),
|
|
13043
13049
|
tokens: {
|
|
13044
13050
|
access_token: bootstrap.oauth.access_token,
|
|
13045
13051
|
refresh_token: bootstrap.oauth.refresh_token,
|