@jiggai/recipes 0.4.46 → 0.4.47

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.
@@ -2,7 +2,7 @@
2
2
  "id": "recipes",
3
3
  "name": "Recipes",
4
4
  "description": "Markdown recipes that scaffold agents and teams (workspace-local).",
5
- "version": "0.4.46",
5
+ "version": "0.4.47",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiggai/recipes",
3
- "version": "0.4.46",
3
+ "version": "0.4.47",
4
4
  "description": "ClawRecipes plugin for OpenClaw (markdown recipes -> scaffold agents/teams)",
5
5
  "main": "index.ts",
6
6
  "type": "commonjs",
@@ -1509,8 +1509,9 @@ export async function runWorkflowWorkerTick(api: OpenClawPluginApi, opts: {
1509
1509
 
1510
1510
  // ── Step 2: Invoke the media driver to generate actual media ─────
1511
1511
  const providerSlug = provider;
1512
+ // Load API keys from openclaw.json config (OPENAI_API_KEY, GEMINI_API_KEY, etc.)
1513
+ // The subprocess inherits process.env automatically — only config overrides are needed.
1512
1514
  const configEnv = await loadConfigEnv();
1513
- const mergedEnv = { ...process.env, ...configEnv } as Record<string, string>;
1514
1515
 
1515
1516
  // Find a registered driver, or fall back to auto-discovered generic driver
1516
1517
  let driver = getDriver(providerSlug);
@@ -1525,7 +1526,7 @@ export async function runWorkflowWorkerTick(api: OpenClawPluginApi, opts: {
1525
1526
  api,
1526
1527
  prompt: refinedPrompt,
1527
1528
  outputDir: mediaDir,
1528
- env: mergedEnv,
1529
+ env: configEnv,
1529
1530
  timeout: timeoutMs,
1530
1531
  config: node.config as Record<string, unknown> | undefined,
1531
1532
  });