@yemi33/minions 0.1.304 → 0.1.305
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.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine.js
CHANGED
|
@@ -1484,7 +1484,7 @@ function discoverFromWorkItems(config, project) {
|
|
|
1484
1484
|
'- [' + (r.title || r.url) + '](' + r.url + ')' + (r.type ? ' (' + r.type + ')' : '')
|
|
1485
1485
|
).join('\n');
|
|
1486
1486
|
vars.references = refs ? '## References\n\n' + refs : '';
|
|
1487
|
-
const ac = (item.acceptanceCriteria
|
|
1487
|
+
const ac = normalizeAc(item.acceptanceCriteria).map(c => '- [ ] ' + c).join('\n');
|
|
1488
1488
|
vars.acceptance_criteria = ac ? '## Acceptance Criteria\n\n' + ac : '';
|
|
1489
1489
|
|
|
1490
1490
|
// Inject checkpoint context if agent left a checkpoint.json from a prior run
|
|
@@ -1585,6 +1585,12 @@ function discoverFromWorkItems(config, project) {
|
|
|
1585
1585
|
* Build the multi-project context section for central work items.
|
|
1586
1586
|
* Inserted into the playbook via {{scope_section}}.
|
|
1587
1587
|
*/
|
|
1588
|
+
function normalizeAc(ac) {
|
|
1589
|
+
if (Array.isArray(ac)) return ac;
|
|
1590
|
+
if (typeof ac === 'string') return ac.split('\n').map(s => s.replace(/^[-*]\s*/, '').trim()).filter(Boolean);
|
|
1591
|
+
return [];
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1588
1594
|
function buildProjectContext(projects, assignedProject, isFanOut, agentName, agentRole) {
|
|
1589
1595
|
const projectList = projects.map(p => {
|
|
1590
1596
|
let line = `### ${p.name}\n`;
|
|
@@ -1811,7 +1817,7 @@ function discoverCentralWorkItems(config) {
|
|
|
1811
1817
|
'- [' + (r.title || r.url) + '](' + r.url + ')' + (r.type ? ' (' + r.type + ')' : '')
|
|
1812
1818
|
).join('\n');
|
|
1813
1819
|
vars.references = fanRefs ? '## References\n\n' + fanRefs : '';
|
|
1814
|
-
const fanAc = (item.acceptanceCriteria
|
|
1820
|
+
const fanAc = normalizeAc(item.acceptanceCriteria).map(c => '- [ ] ' + c).join('\n');
|
|
1815
1821
|
vars.acceptance_criteria = fanAc ? '## Acceptance Criteria\n\n' + fanAc : '';
|
|
1816
1822
|
|
|
1817
1823
|
if (workType === 'ask') {
|
|
@@ -1887,7 +1893,7 @@ function discoverCentralWorkItems(config) {
|
|
|
1887
1893
|
'- [' + (r.title || r.url) + '](' + r.url + ')' + (r.type ? ' (' + r.type + ')' : '')
|
|
1888
1894
|
).join('\n');
|
|
1889
1895
|
vars.references = normRefs ? '## References\n\n' + normRefs : '';
|
|
1890
|
-
const normAc = (item.acceptanceCriteria
|
|
1896
|
+
const normAc = normalizeAc(item.acceptanceCriteria).map(c => '- [ ] ' + c).join('\n');
|
|
1891
1897
|
vars.acceptance_criteria = normAc ? '## Acceptance Criteria\n\n' + normAc : '';
|
|
1892
1898
|
|
|
1893
1899
|
// Inject checkpoint context if agent left a checkpoint.json from a prior run
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.305",
|
|
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"
|