@orchagent/cli 0.3.121 → 0.3.123

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.
@@ -76,7 +76,9 @@ async function keyBasedLogin(apiKey) {
76
76
  ' unset ORCHAGENT_API_KEY\n');
77
77
  }
78
78
  if (isFirstLogin) {
79
- process.stdout.write('\n Tip: Run `orch doctor` to verify your setup.\n\n');
79
+ process.stdout.write('\n Quick start: Tell Claude Code:\n' +
80
+ ' "Read docs.orchagent.io and build me an agent"\n\n' +
81
+ ' Or manually: orch init my-agent\n\n');
80
82
  }
81
83
  }
82
84
  /**
@@ -106,7 +108,9 @@ async function browserBasedLogin(port) {
106
108
  ' unset ORCHAGENT_API_KEY\n');
107
109
  }
108
110
  if (isFirstLogin) {
109
- process.stdout.write('\n Tip: Run `orch doctor` to verify your setup.\n\n');
111
+ process.stdout.write('\n Quick start: Tell Claude Code:\n' +
112
+ ' "Read docs.orchagent.io and build me an agent"\n\n' +
113
+ ' Or manually: orch init my-agent\n\n');
110
114
  }
111
115
  }
112
116
  catch (err) {
@@ -86,10 +86,12 @@ async function getResolvedConfig(overrides = {}, profile) {
86
86
  const fileConfig = await loadConfig();
87
87
  // If profile specified, get config from profiles
88
88
  const profileConfig = profile ? fileConfig.profiles?.[profile] : undefined;
89
+ // Config file wins over env var for interactive use (login/logout work correctly).
90
+ // CI/CD can use overrides (--key flag) or profiles which still take top priority.
89
91
  const apiKey = overrides.api_key ??
90
- (process.env.ORCHAGENT_API_KEY || undefined) ??
91
92
  profileConfig?.api_key ??
92
- fileConfig.api_key;
93
+ fileConfig.api_key ??
94
+ (process.env.ORCHAGENT_API_KEY || undefined);
93
95
  const apiUrl = overrides.api_url ??
94
96
  process.env.ORCHAGENT_API_URL ??
95
97
  profileConfig?.api_url ??
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchagent/cli",
3
- "version": "0.3.121",
3
+ "version": "0.3.123",
4
4
  "description": "Command-line interface for orchagent — deploy and run AI agents for your team",
5
5
  "license": "MIT",
6
6
  "author": "orchagent <hello@orchagent.io>",