@yemi33/minions 0.1.407 → 0.1.409

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.409 (2026-04-06)
4
+
5
+ ### Fixes
6
+ - npm version check — use npm.cmd on Windows, log errors, expose in API
7
+
8
+ ## 0.1.408 (2026-04-06)
9
+
10
+ ### Fixes
11
+ - minions update auto-restarts engine + dashboard after upgrading
12
+
3
13
  ## 0.1.407 (2026-04-06)
4
14
 
5
15
  ### Features
package/bin/minions.js CHANGED
@@ -483,6 +483,9 @@ if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
483
483
  }
484
484
  // Re-exec the NEW binary (just installed) so the updated code runs init --force
485
485
  execSync('minions init --force', { stdio: 'inherit', timeout: 120000 });
486
+ // Restart engine + dashboard so they pick up the new code
487
+ console.log('\n Restarting engine and dashboard...\n');
488
+ execSync('minions restart', { stdio: 'inherit', timeout: 60000 });
486
489
  } else if (cmd === 'version' || cmd === '--version' || cmd === '-v') {
487
490
  showVersion();
488
491
  } else if (cmd === 'add' || cmd === 'remove' || cmd === 'list' || cmd === 'scan') {
package/dashboard.js CHANGED
@@ -181,15 +181,18 @@ async function checkNpmVersion() {
181
181
  try {
182
182
  // Use npm view — respects user's .npmrc proxy/registry config (unlike raw https.get)
183
183
  const { execFile } = require('child_process');
184
+ // On Windows, detached processes may not have npm on PATH — use npm.cmd explicitly
185
+ const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
184
186
  const version = await new Promise((resolve, reject) => {
185
- execFile('npm', ['view', PKG_NAME, 'version'], { timeout: 15000, windowsHide: true }, (err, stdout) => {
187
+ execFile(npmCmd, ['view', PKG_NAME, 'version'], { timeout: 15000, windowsHide: true, env: process.env }, (err, stdout) => {
186
188
  if (err) reject(err); else resolve((stdout || '').trim());
187
189
  });
188
190
  });
189
191
  _npmVersionCache = { latest: version || null, checkedAt: new Date().toISOString() };
190
192
  _npmVersionCacheTs = now;
191
- } catch {
192
- _npmVersionCache = _npmVersionCache || { latest: null, checkedAt: null, error: 'check failed' };
193
+ } catch (e) {
194
+ console.error('[version-check] npm view failed:', e.message?.split('\n')[0]);
195
+ _npmVersionCache = _npmVersionCache || { latest: null, checkedAt: null, error: e.message?.split('\n')[0] || 'check failed' };
193
196
  }
194
197
  return _npmVersionCache;
195
198
  }
@@ -338,6 +341,7 @@ function getStatus() {
338
341
  stale: engineStale || dashboardStale,
339
342
  latest: _npmVersionCache?.latest || null,
340
343
  updateAvailable: !!(diskVersion && _npmVersionCache?.latest && _npmVersionCache.latest !== diskVersion && _compareVersions(_npmVersionCache.latest, diskVersion) > 0),
344
+ _npmCheckError: _npmVersionCache?.error || null,
341
345
  };
342
346
  })(),
343
347
  timestamp: new Date().toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.407",
3
+ "version": "0.1.409",
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"