openthrottle 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/dist/init.js +3 -1
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -233,8 +233,10 @@ function copyWorkflow(config) {
233
233
  const dest = join(destDir, 'wake-sandbox.yml');
234
234
  mkdirSync(destDir, { recursive: true });
235
235
  let content = readFileSync(src, 'utf8');
236
+ // Keys already present in the template — don't inject duplicates
237
+ const builtinKeys = new Set([...content.matchAll(/^\s+([A-Z_][A-Z0-9_]*):\s*\$\{\{/gm)].map(m => m[1]));
236
238
  // Inject project-specific secrets into the workflow
237
- const allKeys = config.envAllKeys || [];
239
+ const allKeys = (config.envAllKeys || []).filter(k => !builtinKeys.has(k));
238
240
  if (allKeys.length > 0) {
239
241
  // Add env: entries for secrets
240
242
  const envSecrets = allKeys
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openthrottle",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "CLI for Open Throttle — ship prompts to Daytona sandboxes.",
5
5
  "type": "module",
6
6
  "bin": {