@yemi33/minions 0.1.894 → 0.1.896

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.896 (2026-04-12)
4
+
5
+ ### Fixes
6
+ - auto-sync .minions-version on startup
7
+
8
+ ## 0.1.895 (2026-04-11)
9
+
10
+ ### Fixes
11
+ - revert unnecessary changes for real npm installs
12
+
3
13
  ## 0.1.894 (2026-04-11)
4
14
 
5
15
  ### Fixes
package/bin/minions.js CHANGED
@@ -533,16 +533,12 @@ if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
533
533
  console.log(` Version synced to ${getPkgVersion()} (dev/symlink install — pull from git to update code)`);
534
534
  } else {
535
535
  try {
536
- execSync('npm install -g @yemi33/minions@latest', { stdio: 'inherit', timeout: 120000 });
536
+ execSync('npm update -g @yemi33/minions', { stdio: 'inherit', timeout: 120000 });
537
537
  } catch (e) {
538
- console.error(' npm install failed:', e.message);
538
+ console.error(' npm update failed:', e.message);
539
539
  process.exit(1);
540
540
  }
541
- // Pass MINIONS_HOME explicitly so init updates the right directory, not cwd/.minions
542
- execSync('minions init --force', {
543
- stdio: 'inherit', timeout: 120000,
544
- env: { ...process.env, MINIONS_HOME },
545
- });
541
+ execSync('minions init --force', { stdio: 'inherit', timeout: 120000 });
546
542
  }
547
543
  // Restart engine + dashboard so they pick up the new code
548
544
  console.log('\n Restarting engine and dashboard...\n');
package/engine/cli.js CHANGED
@@ -105,6 +105,10 @@ const commands = {
105
105
  let codeCommit = null;
106
106
  try { codeCommit = require('child_process').execSync('git rev-parse --short HEAD', { cwd: path.resolve(__dirname, '..'), encoding: 'utf8', timeout: 5000, windowsHide: true }).trim(); } catch {}
107
107
  safeWrite(CONTROL_PATH, { state: 'running', pid: process.pid, started_at: e.ts(), codeVersion, codeCommit });
108
+ // Keep .minions-version in sync so `minions version` stays accurate after git pulls
109
+ if (codeVersion) {
110
+ try { fs.writeFileSync(path.join(shared.MINIONS_DIR, '.minions-version'), codeVersion); } catch {}
111
+ }
108
112
  e.log('info', 'Engine started');
109
113
  console.log(`Engine started (PID: ${process.pid})`);
110
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.894",
3
+ "version": "0.1.896",
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"