@yemi33/minions 0.1.895 → 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 +10 -0
- package/engine/cli.js +4 -0
- package/engine/queries.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.897 (2026-04-12)
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
- PRD updated/missing status takes priority over work item done in display (closes #930) (#935)
|
|
7
|
+
|
|
8
|
+
## 0.1.896 (2026-04-12)
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
- auto-sync .minions-version on startup
|
|
12
|
+
|
|
3
13
|
## 0.1.895 (2026-04-11)
|
|
4
14
|
|
|
5
15
|
### Fixes
|
package/engine/cli.js
CHANGED
|
@@ -105,6 +105,10 @@ const commands = {
|
|
|
105
105
|
let codeCommit = null;
|
|
106
106
|
try { codeCommit = require('child_process').execSync('git rev-parse --short HEAD', { cwd: path.resolve(__dirname, '..'), encoding: 'utf8', timeout: 5000, windowsHide: true }).trim(); } catch {}
|
|
107
107
|
safeWrite(CONTROL_PATH, { state: 'running', pid: process.pid, started_at: e.ts(), codeVersion, codeCommit });
|
|
108
|
+
// Keep .minions-version in sync so `minions version` stays accurate after git pulls
|
|
109
|
+
if (codeVersion) {
|
|
110
|
+
try { fs.writeFileSync(path.join(shared.MINIONS_DIR, '.minions-version'), codeVersion); } catch {}
|
|
111
|
+
}
|
|
108
112
|
e.log('info', 'Engine started');
|
|
109
113
|
console.log(`Engine started (PID: ${process.pid})`);
|
|
110
114
|
|
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"
|