@yemi33/minions 0.1.896 → 0.1.897
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/queries.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/queries.js
CHANGED
|
@@ -11,7 +11,7 @@ const shared = require('./shared');
|
|
|
11
11
|
|
|
12
12
|
const { safeRead, safeReadDir, safeJson, safeWrite, getProjects,
|
|
13
13
|
projectWorkItemsPath, projectPrPath, parseSkillFrontmatter, KB_CATEGORIES,
|
|
14
|
-
WI_STATUS, ENGINE_DEFAULTS } = shared;
|
|
14
|
+
WI_STATUS, DONE_STATUSES, PRD_ITEM_STATUS, ENGINE_DEFAULTS } = shared;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Read the first `bytes` and last `bytes` of a file efficiently using byte offsets.
|
|
@@ -955,9 +955,12 @@ function getPrdInfo(config) {
|
|
|
955
955
|
const statusDisplay = { pending: 'missing' };
|
|
956
956
|
for (const item of items) {
|
|
957
957
|
const wi = wiById[item.id];
|
|
958
|
-
//
|
|
958
|
+
// PRD 'updated'/'missing' = intentional rework signal — takes priority over a done work item (#930).
|
|
959
|
+
// Otherwise work item status is source of truth when available (PRD JSON may lag behind).
|
|
959
960
|
// If PRD says dispatched/failed but no work item exists, treat as pending (orphaned — #779)
|
|
960
|
-
const
|
|
961
|
+
const prdFlaggedForRework = item.status === PRD_ITEM_STATUS.UPDATED || item.status === PRD_ITEM_STATUS.MISSING;
|
|
962
|
+
const rawStatus = (wi && !(prdFlaggedForRework && DONE_STATUSES.has(wi.status)))
|
|
963
|
+
? (wi.status || item.status)
|
|
961
964
|
: ((item.status === WI_STATUS.DISPATCHED || item.status === WI_STATUS.FAILED) ? WI_STATUS.PENDING : item.status);
|
|
962
965
|
item.status = statusDisplay[rawStatus] || rawStatus || 'missing';
|
|
963
966
|
// Attach execution metadata for display (agent, PR link, fail reason)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.897",
|
|
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"
|