@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 +10 -0
- package/bin/minions.js +3 -7
- package/engine/cli.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
536
|
+
execSync('npm update -g @yemi33/minions', { stdio: 'inherit', timeout: 120000 });
|
|
537
537
|
} catch (e) {
|
|
538
|
-
console.error(' npm
|
|
538
|
+
console.error(' npm update failed:', e.message);
|
|
539
539
|
process.exit(1);
|
|
540
540
|
}
|
|
541
|
-
|
|
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.
|
|
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"
|