@monoes/monomindcli 1.14.0 → 1.14.1

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.
@@ -7291,7 +7291,7 @@ function _odtPopulateChatSel() {
7291
7291
  });
7292
7292
 
7293
7293
  // Render [S] groups (collapsed loop reps)
7294
- groups.forEach(g => {
7294
+ sessGroups.forEach(g => {
7295
7295
  const d = new Date(g.ts || 0);
7296
7296
  const ts = d.toLocaleTimeString([],{hour:'2-digit',minute:'2-digit',second:'2-digit'});
7297
7297
  const date = d.toLocaleDateString([],{month:'short',day:'numeric'});
@@ -3519,9 +3519,22 @@ export async function startServer({ port = 4242, projectDir, openBrowser = true
3519
3519
  const routinesData = readJsonSafe(path.join(orgsDir, `${orgName}-routines.json`)) || { routines: [] };
3520
3520
  const approvalsData = readJsonSafe(path.join(orgsDir, `${orgName}-approvals.json`)) || { approvals: [] };
3521
3521
 
3522
- // Check running status: stop file absence AND (in-memory activeOrgRuns OR state-file agents)
3522
+ // Check running status: stop file absence AND (in-memory activeOrgRuns OR state-file agents OR active loop file)
3523
3523
  const stopFile = path.join(orgsDir, '.stops', `${orgName}.stop`);
3524
- const running = !fs.existsSync(stopFile) && (activeOrgRuns.has(orgName) || Object.values(state.agents || {}).some(a => a.status === 'running'));
3524
+ const _loopsDir = path.join(d, '.monomind', 'loops');
3525
+ const _loopRunning = (() => {
3526
+ try {
3527
+ if (!fs.existsSync(_loopsDir)) return false;
3528
+ return fs.readdirSync(_loopsDir).some(f => {
3529
+ if (!f.endsWith('.json') || f.endsWith('.stop')) return false;
3530
+ try {
3531
+ const lp = JSON.parse(fs.readFileSync(path.join(_loopsDir, f), 'utf8'));
3532
+ return lp.status === 'running' && lp.command && lp.command.includes('runorg') && (lp.prompt || '').includes(orgName);
3533
+ } catch { return false; }
3534
+ });
3535
+ } catch { return false; }
3536
+ })();
3537
+ const running = !fs.existsSync(stopFile) && (activeOrgRuns.has(orgName) || Object.values(state.agents || {}).some(a => a.status === 'running') || _loopRunning);
3525
3538
 
3526
3539
  // Read real tasks from the task store and group by status column
3527
3540
  const taskStoreData = readJsonSafe(path.join(d, '.monomind', 'tasks', 'store.json'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoes/monomindcli",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "type": "module",
5
5
  "description": "Monomind CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",