@yemi33/minions 0.1.186 → 0.1.187
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/CHANGELOG.md +5 -0
- package/engine/playbook.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/playbook.js
CHANGED
|
@@ -296,9 +296,12 @@ function renderPlaybook(type, vars) {
|
|
|
296
296
|
};
|
|
297
297
|
const allVars = { ...projectVars, ...vars };
|
|
298
298
|
|
|
299
|
-
// Substitute variables
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
// Substitute variables — two passes to resolve nested templates
|
|
300
|
+
// (e.g. pr_section contains {{pr_create_instructions}}, {{branch_name}}, etc.)
|
|
301
|
+
for (let pass = 0; pass < 2; pass++) {
|
|
302
|
+
for (const [key, val] of Object.entries(allVars)) {
|
|
303
|
+
content = content.replace(new RegExp(`\\{\\{${key}\\}\\}`, 'g'), String(val));
|
|
304
|
+
}
|
|
302
305
|
}
|
|
303
306
|
|
|
304
307
|
// Warn on variables that resolved to empty string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.187",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|