@yemi33/minions 0.1.195 → 0.1.197

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.195 (2026-04-02)
3
+ ## 0.1.197 (2026-04-02)
4
4
 
5
5
  ### Engine
6
6
  - engine/ado.js
package/engine/queries.js CHANGED
@@ -287,7 +287,17 @@ function getPullRequests(config) {
287
287
  }
288
288
  }
289
289
  }
290
- allPrs.sort((a, b) => (b.created || '').localeCompare(a.created || ''));
290
+ allPrs.sort((a, b) => {
291
+ // Normalize to YYYY-MM-DD for date comparison (some have full ISO, some date-only)
292
+ const aDate = (a.created || '').slice(0, 10);
293
+ const bDate = (b.created || '').slice(0, 10);
294
+ const dateComp = bDate.localeCompare(aDate);
295
+ if (dateComp !== 0) return dateComp;
296
+ // Same date — sort by PR number descending (newest first)
297
+ const aNum = parseInt((a.id || '').replace(/\D/g, '')) || 0;
298
+ const bNum = parseInt((b.id || '').replace(/\D/g, '')) || 0;
299
+ return bNum - aNum;
300
+ });
291
301
  return allPrs;
292
302
  }
293
303
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.195",
3
+ "version": "0.1.197",
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"