@yemi33/minions 0.1.893 → 0.1.894
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 +5 -0
- package/bin/minions.js +19 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/minions.js
CHANGED
|
@@ -524,14 +524,26 @@ if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
|
|
|
524
524
|
init();
|
|
525
525
|
} else if (cmd === 'update') {
|
|
526
526
|
console.log('\n Updating Minions...\n');
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
527
|
+
// Dev/symlink installs: PKG_ROOT === MINIONS_HOME — npm update is a no-op (symlink already
|
|
528
|
+
// points to the repo), and `minions init --force` would fail (cwd/.minions is inside PKG_ROOT).
|
|
529
|
+
// Just sync the version file and restart.
|
|
530
|
+
const isSymlinkedDevInstall = path.resolve(PKG_ROOT) === path.resolve(MINIONS_HOME);
|
|
531
|
+
if (isSymlinkedDevInstall) {
|
|
532
|
+
saveInstalledVersion(getPkgVersion());
|
|
533
|
+
console.log(` Version synced to ${getPkgVersion()} (dev/symlink install — pull from git to update code)`);
|
|
534
|
+
} else {
|
|
535
|
+
try {
|
|
536
|
+
execSync('npm install -g @yemi33/minions@latest', { stdio: 'inherit', timeout: 120000 });
|
|
537
|
+
} catch (e) {
|
|
538
|
+
console.error(' npm install failed:', e.message);
|
|
539
|
+
process.exit(1);
|
|
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
|
+
});
|
|
532
546
|
}
|
|
533
|
-
// Re-exec the NEW binary (just installed) so the updated code runs init --force
|
|
534
|
-
execSync('minions init --force', { stdio: 'inherit', timeout: 120000 });
|
|
535
547
|
// Restart engine + dashboard so they pick up the new code
|
|
536
548
|
console.log('\n Restarting engine and dashboard...\n');
|
|
537
549
|
execSync('minions restart', { stdio: 'inherit', timeout: 60000 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.894",
|
|
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"
|