simmer-automaton 0.6.5 → 0.6.6

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/dist/index.js CHANGED
@@ -298,9 +298,11 @@ async function executeSkills(selectedSlugs, workspaceDir, logger) {
298
298
  // =============================================================================
299
299
  export default function register(pluginApi) {
300
300
  loadConfig(pluginApi.pluginConfig);
301
- // Fall back to SIMMER_API_KEY env var if no plugin config apiKey
302
- if (!config.apiKey) {
303
- config.apiKey = process.env.SIMMER_API_KEY || "";
301
+ // Env var takes priority; fall back to plugin config only if env var is absent.
302
+ // This prevents placeholder values in openclaw.json from shadowing the real key.
303
+ const envKey = process.env.SIMMER_API_KEY || "";
304
+ if (envKey) {
305
+ config.apiKey = envKey;
304
306
  }
305
307
  if (!config.apiKey) {
306
308
  pluginApi.logger.error("[simmer] No apiKey in plugin config or SIMMER_API_KEY env var — plugin disabled");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simmer-automaton",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Simmer Automaton plugin for OpenClaw — autonomous trading skill orchestration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -358,9 +358,11 @@ async function executeSkills(
358
358
  export default function register(pluginApi: PluginApi) {
359
359
  loadConfig(pluginApi.pluginConfig);
360
360
 
361
- // Fall back to SIMMER_API_KEY env var if no plugin config apiKey
362
- if (!config.apiKey) {
363
- config.apiKey = process.env.SIMMER_API_KEY || "";
361
+ // Env var takes priority; fall back to plugin config only if env var is absent.
362
+ // This prevents placeholder values in openclaw.json from shadowing the real key.
363
+ const envKey = process.env.SIMMER_API_KEY || "";
364
+ if (envKey) {
365
+ config.apiKey = envKey;
364
366
  }
365
367
 
366
368
  if (!config.apiKey) {