@yemi33/minions 0.1.194 → 0.1.196

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.194 (2026-04-02)
3
+ ## 0.1.196 (2026-04-02)
4
4
 
5
5
  ### Engine
6
6
  - engine/ado.js
package/README.md CHANGED
@@ -155,30 +155,56 @@ You can also run scripts directly: `node ~/.minions/engine.js start`, `node ~/.m
155
155
  ## Architecture
156
156
 
157
157
  ```
158
- ┌───────────────────────────────┐
159
- │ ~/.minions/ (central) │
160
- │ │
161
- │ engine.js ← tick 60s │
162
- │ dashboard.js ← :7331 │
163
- │ config.json ← projects │
164
- │ agents/ ← 5 agents │
165
- │ playbooks/ ← templates │
166
- │ plans/ ← approved plans│
167
- │ knowledge/ ← KB store │
168
- │ skills/ ← workflows │
169
- │ notes/ ← knowledge │
170
- └──────┬────────────────────────┘
171
- │ discovers work + dispatches agents
172
- ┌────────────┼────────────────┐
173
- ▼ ▼ ▼
174
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
175
- │ Project A │ │ Project B │ │ Project C │
176
- │ projects/A │ │ projects/B │ │ projects/C │
177
- │ work-items │ │ work-items │ │ work-items │
178
- │ pull-reqs │ │ pull-reqs │ │ pull-reqs │
179
- │ .claude/ │ │ .claude/ │ │ .claude/ │
180
- │ skills/ │ │ skills/ │ │ skills/ │
181
- └──────────────┘ └──────────────┘ └──────────────┘
158
+ ┌──────────────────────────────────────┐
159
+ │ ~/.minions/ (central) │
160
+ │ │
161
+ │ engine.js ← tick 60s │
162
+ │ dashboard.js ← :7331 │
163
+ │ config.json ← projects, │
164
+ │ agents, │
165
+ │ schedules │
166
+ │ routing.md ← dispatch map │
167
+ │ pinned.md ← global ctx │
168
+ │ work-items.json ← central queue│
169
+ │ pull-requests.json ← central PRs │
170
+ │ │
171
+ │ engine/ │
172
+ │ dispatch.json ← pending/ │
173
+ │ active/ │
174
+ │ completed │
175
+ │ control.json ← state/pid │
176
+ │ metrics.json ← token usage │
177
+ │ cooldowns.json ← backoff │
178
+ │ schedule-runs.json ← cron state │
179
+ │ pipeline-runs.json ← run history │
180
+ │ │
181
+ │ agents/ ← 5 agents │
182
+ │ {id}/charter.md ← role def │
183
+ │ {id}/output.log ← last output │
184
+ │ {id}/live-output ← streaming │
185
+ │ │
186
+ │ playbooks/ ← templates │
187
+ │ plans/ ← .md drafts │
188
+ │ prd/ ← .json PRDs │
189
+ │ pipelines/ ← workflows │
190
+ │ meetings/ ← discussions │
191
+ │ knowledge/ ← KB store │
192
+ │ skills/ ← workflows │
193
+ │ notes/ ← inbox + │
194
+ │ notes.md │
195
+ └──────────┬───────────────────────────┘
196
+ │ discovers work + dispatches
197
+ ┌─────────────┼─────────────────┐
198
+ ▼ ▼ ▼
199
+ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
200
+ │ Project A │ │ Project B │ │ Project C │
201
+ │ projects/A/ │ │ projects/B/ │ │ projects/C/ │
202
+ │ work-items │ │ work-items │ │ work-items │
203
+ │ pull-reqs │ │ pull-reqs │ │ pull-reqs │
204
+ │ (repo)/ │ │ (repo)/ │ │ (repo)/ │
205
+ │ .claude/ │ │ .claude/ │ │ .claude/ │
206
+ │ skills/ │ │ skills/ │ │ skills/ │
207
+ └───────────────┘ └───────────────┘ └───────────────┘
182
208
  ```
183
209
 
184
210
  ## What It Does
package/engine/queries.js CHANGED
@@ -287,7 +287,14 @@ 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
+ const dateComp = (b.created || '').localeCompare(a.created || '');
292
+ if (dateComp !== 0) return dateComp;
293
+ // Same date — sort by PR number descending (newest first)
294
+ const aNum = parseInt((a.id || '').replace(/\D/g, '')) || 0;
295
+ const bNum = parseInt((b.id || '').replace(/\D/g, '')) || 0;
296
+ return bNum - aNum;
297
+ });
291
298
  return allPrs;
292
299
  }
293
300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.194",
3
+ "version": "0.1.196",
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"