@yemi33/minions 0.1.2185 → 0.1.2186
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/dashboard.js +29 -2
- package/package.json +1 -1
package/dashboard.js
CHANGED
|
@@ -3838,7 +3838,9 @@ function buildCCStateRefresh() {
|
|
|
3838
3838
|
if (_refreshCache && now - _refreshCacheTs < REFRESH_TTL) return _refreshCache;
|
|
3839
3839
|
|
|
3840
3840
|
const ts = new Date().toISOString().slice(0, 16);
|
|
3841
|
-
|
|
3841
|
+
// Agent roster carries the current task too — without it a resumed session
|
|
3842
|
+
// sees only that an agent is "busy", never *what* it is busy with.
|
|
3843
|
+
const agents = getAgents().map(a => `- ${a.name}: ${a.status}${a.currentTask ? ' — ' + a.currentTask.slice(0, 50) : ''}`).join('\n');
|
|
3842
3844
|
const projects = PROJECTS.map(p => `- ${p.name} (${p.repo || p.localPath})`).join('\n');
|
|
3843
3845
|
|
|
3844
3846
|
// MCP servers — just names + source for orientation
|
|
@@ -3852,6 +3854,31 @@ function buildCCStateRefresh() {
|
|
|
3852
3854
|
}
|
|
3853
3855
|
} catch { /* optional */ }
|
|
3854
3856
|
|
|
3857
|
+
// Live operational slice — the "what's going on right now" that resumed
|
|
3858
|
+
// sessions previously never saw (W-mpeap2ug only refreshed projects/MCP/
|
|
3859
|
+
// agent-status). Without this, a non-expiring CC/doc-chat session goes stale
|
|
3860
|
+
// on the active dispatch queue, pending depth, and PR/WI counts the moment
|
|
3861
|
+
// the opening preamble scrolls out of the model's recency window. Capped so
|
|
3862
|
+
// the refresh stays under the 2KB ceiling the unit tests enforce.
|
|
3863
|
+
let activitySection = '';
|
|
3864
|
+
try {
|
|
3865
|
+
const dq = getDispatchQueue();
|
|
3866
|
+
const activeArr = dq.active || [];
|
|
3867
|
+
const maxActive = 10;
|
|
3868
|
+
const activeLines = activeArr.slice(0, maxActive)
|
|
3869
|
+
.map(d => `- ${d.agentName || d.agent}: ${(d.task || '').slice(0, 50)}`).join('\n');
|
|
3870
|
+
const overflow = activeArr.length > maxActive ? `\n…and ${activeArr.length - maxActive} more` : '';
|
|
3871
|
+
const active = activeLines ? activeLines + overflow : '(none)';
|
|
3872
|
+
const pending = (dq.pending || []).length;
|
|
3873
|
+
const prCount = getPullRequests().length;
|
|
3874
|
+
const wiCount = getWorkItems().length;
|
|
3875
|
+
activitySection = `
|
|
3876
|
+
|
|
3877
|
+
**Active dispatch:**
|
|
3878
|
+
${active}
|
|
3879
|
+
Queue: ${pending} pending | PRs: ${prCount} | Work items: ${wiCount}`;
|
|
3880
|
+
} catch { /* optional — never let a refresh failure break the turn */ }
|
|
3881
|
+
|
|
3855
3882
|
const result = `### State Refresh (${ts})
|
|
3856
3883
|
|
|
3857
3884
|
**Projects:** ${PROJECTS.length}
|
|
@@ -3860,7 +3887,7 @@ ${projects || '(none)'}
|
|
|
3860
3887
|
**MCP Tools:** ${mcpLine}
|
|
3861
3888
|
|
|
3862
3889
|
**Agents:**
|
|
3863
|
-
${agents || '(none)'}`;
|
|
3890
|
+
${agents || '(none)'}${activitySection}`;
|
|
3864
3891
|
|
|
3865
3892
|
_refreshCache = result;
|
|
3866
3893
|
_refreshCacheTs = now;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2186",
|
|
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"
|