episoda 0.2.86 → 0.2.87

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.
@@ -2748,7 +2748,7 @@ var require_package = __commonJS({
2748
2748
  "package.json"(exports2, module2) {
2749
2749
  module2.exports = {
2750
2750
  name: "episoda",
2751
- version: "0.2.86",
2751
+ version: "0.2.87",
2752
2752
  description: "CLI tool for Episoda local development workflow orchestration",
2753
2753
  main: "dist/index.js",
2754
2754
  types: "dist/index.d.ts",
@@ -5021,14 +5021,18 @@ async function ensureCodexBinary() {
5021
5021
 
5022
5022
  // src/agent/codex-config.ts
5023
5023
  function generateCodexAuthJson(credentials) {
5024
+ if (!credentials.refreshToken) {
5025
+ throw new Error(
5026
+ "Codex refresh token is missing. Please re-authenticate with Codex in Settings > AI Providers."
5027
+ );
5028
+ }
5024
5029
  const tokens = {
5025
5030
  id_token: credentials.idToken || credentials.accessToken,
5026
5031
  // Fallback to access_token if no id_token
5027
- access_token: credentials.accessToken
5032
+ access_token: credentials.accessToken,
5033
+ refresh_token: credentials.refreshToken
5034
+ // EP1139: Required field
5028
5035
  };
5029
- if (credentials.refreshToken) {
5030
- tokens.refresh_token = credentials.refreshToken;
5031
- }
5032
5036
  if (credentials.accountId) {
5033
5037
  tokens.account_id = credentials.accountId;
5034
5038
  }