@episoda/cli 0.2.216 → 0.2.218

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.
@@ -3051,7 +3051,7 @@ var require_package = __commonJS({
3051
3051
  "package.json"(exports2, module2) {
3052
3052
  module2.exports = {
3053
3053
  name: "@episoda/cli",
3054
- version: "0.2.216",
3054
+ version: "0.2.218",
3055
3055
  description: "CLI tool for Episoda local development workflow orchestration",
3056
3056
  main: "dist/index.js",
3057
3057
  types: "dist/index.d.ts",
@@ -4896,7 +4896,7 @@ function generateCodexAuthJson(credentials) {
4896
4896
  id_token: credentials.idToken || credentials.accessToken,
4897
4897
  // Fallback to access_token if no id_token
4898
4898
  access_token: credentials.accessToken,
4899
- refresh_token: ""
4899
+ refresh_token: credentials.refreshToken || ""
4900
4900
  };
4901
4901
  if (credentials.accountId) {
4902
4902
  tokens.account_id = credentials.accountId;
@@ -7213,6 +7213,10 @@ ${message}`;
7213
7213
  if (useApiKey && session.credentials.apiKey) {
7214
7214
  envVars.ANTHROPIC_API_KEY = session.credentials.apiKey;
7215
7215
  }
7216
+ if (session.credentials.oauthToken) {
7217
+ envVars.CLAUDE_CODE_OAUTH_TOKEN = session.credentials.oauthToken;
7218
+ console.log("[ClaudeProvider] EP1519: Set CLAUDE_CODE_OAUTH_TOKEN for headless OAuth");
7219
+ }
7216
7220
  envVars.CLAUDE_CODE_DISABLE_PLUGIN_CACHE = "1";
7217
7221
  }
7218
7222
  applyFollowupReadOnlyReminder(message, readOnlyReason) {
@@ -13334,6 +13338,7 @@ function createCredentialBootstrap(payload, agentRunId) {
13334
13338
  const trustedProjectRoot = resolveCodexTrustedProjectRoot(payload);
13335
13339
  const configFiles = generateCodexConfig({
13336
13340
  accessToken: bootstrap.oauth.access_token,
13341
+ refreshToken: bootstrap.oauth.refresh_token,
13337
13342
  idToken: bootstrap.oauth.id_token,
13338
13343
  accountId: bootstrap.oauth.account_id
13339
13344
  }, trustedProjectRoot);