@yemi33/minions 0.1.542 → 0.1.544

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.544 (2026-04-07)
4
+
5
+ ### Features
6
+ - remove inline require('fs') calls from engine/shared.js (#463)
7
+
8
+ ### Fixes
9
+ - await checkLiveReviewStatus in pre-dispatch vote check (closes #462) (#469)
10
+
3
11
  ## 0.1.542 (2026-04-07)
4
12
 
5
13
  ### Fixes
package/engine/shared.js CHANGED
@@ -600,7 +600,7 @@ function projectRoot(project) {
600
600
  function projectStateDir(project) {
601
601
  const name = project.name || path.basename(project.localPath);
602
602
  const dir = path.join(MINIONS_DIR, 'projects', name);
603
- if (!require('fs').existsSync(dir)) require('fs').mkdirSync(dir, { recursive: true });
603
+ if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
604
604
  return dir;
605
605
  }
606
606
 
@@ -705,7 +705,6 @@ function getPrLinks() {
705
705
  // Primary source: derive from all projects/*/pull-requests.json prdItems
706
706
  const projectsDir = path.join(MINIONS_DIR, 'projects');
707
707
  try {
708
- const fs = require('fs');
709
708
  for (const d of fs.readdirSync(projectsDir, { withFileTypes: true })) {
710
709
  if (!d.isDirectory()) continue;
711
710
  try {
@@ -721,7 +720,7 @@ function getPrLinks() {
721
720
  } catch { /* projects dir missing */ }
722
721
  // Fallback: static pr-links.json for entries not covered above
723
722
  try {
724
- const static_ = JSON.parse(require('fs').readFileSync(PR_LINKS_PATH, 'utf8'));
723
+ const static_ = JSON.parse(fs.readFileSync(PR_LINKS_PATH, 'utf8'));
725
724
  for (const [k, v] of Object.entries(static_)) {
726
725
  if (!links[k]) links[k] = v;
727
726
  }
package/engine.js CHANGED
@@ -1396,7 +1396,7 @@ function discoverFromPrs(config, project) {
1396
1396
  // Pre-dispatch live vote check — cached reviewStatus may be stale (poll lag ~6 min)
1397
1397
  try {
1398
1398
  const checkFn = project.repoHost === 'github' ? ghCheckLiveReview : adoCheckLiveReview;
1399
- const liveStatus = checkFn(pr, project);
1399
+ const liveStatus = await checkFn(pr, project);
1400
1400
  if (liveStatus && liveStatus !== 'pending') {
1401
1401
  log('info', `Pre-dispatch vote check: ${pr.id} is ${liveStatus} (cached was pending) — skipping review`);
1402
1402
  pr.reviewStatus = liveStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.542",
3
+ "version": "0.1.544",
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"