colana 1.0.0-beta.72 → 1.0.0-beta.73

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colana",
3
- "version": "1.0.0-beta.72",
3
+ "version": "1.0.0-beta.73",
4
4
  "description": "Agent-First. Multiplied. Multi-agent command center for AI coding agents.",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
@@ -12,7 +12,7 @@ import fs from 'fs';
12
12
  import config from './config.js';
13
13
  import { commandExistsSync, resolveNpmGlobalEntryPoint } from './platform.js';
14
14
  import { isGitRepo } from './git-ops.js';
15
- import { readAuthStore, getOpenClawConfig } from './openclaw-config.js';
15
+ import { readAuthStore, getOpenClawConfig, syncAuthProfilesFromEnv } from './openclaw-config.js';
16
16
  import { refreshPathAfterInstall } from './auto-installer.js';
17
17
 
18
18
  /**
@@ -198,6 +198,8 @@ function checkAiderGitRepo(projectPath) {
198
198
 
199
199
  /**
200
200
  * OpenClaw checks: config must exist and auth profiles must have at least one key.
201
+ * Syncs environment API keys (e.g. ANTHROPIC_API_KEY from Settings) into OpenClaw's
202
+ * auth-profiles.json before checking, so keys saved in Colana are available to the gateway.
201
203
  */
202
204
  function checkOpenClawConfig() {
203
205
  const cfg = getOpenClawConfig();
@@ -211,6 +213,12 @@ function checkOpenClawConfig() {
211
213
  };
212
214
  }
213
215
 
216
+ // Sync API keys from process.env (loaded from Colana Settings) into OpenClaw's
217
+ // auth-profiles.json. This ensures keys saved via the wizard or Settings panel
218
+ // are available before we check — otherwise the gateway ensure (which also syncs)
219
+ // never gets reached because this preflight fails first.
220
+ syncAuthProfilesFromEnv();
221
+
214
222
  const store = readAuthStore();
215
223
  const hasKey = Object.values(store.profiles || {}).some(p => p.key);
216
224
  if (!hasKey) {