@ainative/cody-cli 0.3.6 → 0.3.8

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -41109,9 +41109,9 @@ var init_oauth = __esm(() => {
41109
41109
  TOKEN_URL: "https://api.ainative.studio/v1/oauth/token",
41110
41110
  API_KEY_URL: "https://api.ainative.studio/api/oauth/create_api_key",
41111
41111
  ROLES_URL: "https://api.ainative.studio/api/oauth/roles",
41112
- CONSOLE_SUCCESS_URL: "https://ainative.studio/oauth/success?app=cody-cli",
41113
- CLAUDEAI_SUCCESS_URL: "https://ainative.studio/oauth/success?app=cody-cli",
41114
- MANUAL_REDIRECT_URL: "https://ainative.studio/oauth/success?app=cody-cli",
41112
+ CONSOLE_SUCCESS_URL: "https://api.ainative.studio/oauth/success?app=cody-cli",
41113
+ CLAUDEAI_SUCCESS_URL: "https://api.ainative.studio/oauth/success?app=cody-cli",
41114
+ MANUAL_REDIRECT_URL: "https://api.ainative.studio/oauth/success?app=cody-cli",
41115
41115
  CLIENT_ID: "ainative-cody-cli-001",
41116
41116
  OAUTH_FILE_SUFFIX: "",
41117
41117
  MCP_PROXY_URL: "https://api.ainative.studio",
@@ -144749,8 +144749,8 @@ function getAnthropicApiKeyWithSource(opts = {}) {
144749
144749
  }
144750
144750
  return { key: null, source: "none" };
144751
144751
  }
144752
- const apiKeyEnv = isRunningOnHomespace() ? undefined : process.env.ANTHROPIC_API_KEY;
144753
- if (preferThirdPartyAuthentication() && apiKeyEnv) {
144752
+ const apiKeyEnv = isRunningOnHomespace() ? undefined : (process.env.AINATIVE_API_KEY || process.env.ANTHROPIC_API_KEY);
144753
+ if (apiKeyEnv) {
144754
144754
  return {
144755
144755
  key: apiKeyEnv,
144756
144756
  source: "ANTHROPIC_API_KEY"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainative/cody-cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {