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 +5 -3
- package/package.json +1 -1
- package/src/index.ts +5 -3
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
|
-
//
|
|
302
|
-
|
|
303
|
-
|
|
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
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
|
-
//
|
|
362
|
-
|
|
363
|
-
|
|
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) {
|