@yemi33/minions 0.1.548 → 0.1.550
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 +6 -0
- package/dashboard.js +9 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard.js
CHANGED
|
@@ -230,12 +230,13 @@ function getDiskVersion() {
|
|
|
230
230
|
try { diskVersion = require('@yemi33/minions/package.json').version; } catch {}
|
|
231
231
|
}
|
|
232
232
|
let diskCommit = null;
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
let isGitRepo = false;
|
|
234
|
+
// Prefer git (authoritative for repo-based dev), fall back to .minions-commit (installed copies)
|
|
235
|
+
try { diskCommit = require('child_process').execSync('git rev-parse --short HEAD', { cwd: MINIONS_DIR, encoding: 'utf8', timeout: 5000, windowsHide: true }).trim(); isGitRepo = true; } catch {}
|
|
235
236
|
if (!diskCommit) {
|
|
236
|
-
try { diskCommit =
|
|
237
|
+
try { diskCommit = fs.readFileSync(path.join(MINIONS_DIR, '.minions-commit'), 'utf8').trim() || null; } catch {}
|
|
237
238
|
}
|
|
238
|
-
_diskVersionCache = { diskVersion, diskCommit };
|
|
239
|
+
_diskVersionCache = { diskVersion, diskCommit, isGitRepo };
|
|
239
240
|
_diskVersionCacheTs = now;
|
|
240
241
|
return _diskVersionCache;
|
|
241
242
|
}
|
|
@@ -372,7 +373,7 @@ function getStatus() {
|
|
|
372
373
|
installId: safeRead(path.join(MINIONS_DIR, '.install-id')).trim() || null,
|
|
373
374
|
version: (() => {
|
|
374
375
|
const engine = getEngineState();
|
|
375
|
-
const { diskVersion, diskCommit } = getDiskVersion();
|
|
376
|
+
const { diskVersion, diskCommit, isGitRepo } = getDiskVersion();
|
|
376
377
|
const engineStale = !!(engine.codeVersion && diskVersion && engine.codeVersion !== diskVersion) ||
|
|
377
378
|
!!(engine.codeCommit && diskCommit && engine.codeCommit !== diskCommit);
|
|
378
379
|
const dashboardStale = !!(diskVersion && _dashboardVersion.codeVersion && diskVersion !== _dashboardVersion.codeVersion) ||
|
|
@@ -390,7 +391,7 @@ function getStatus() {
|
|
|
390
391
|
stale: engineStale || dashboardStale,
|
|
391
392
|
latest: _npmVersionCache?.latest || null,
|
|
392
393
|
// Only show "update available" for npm installs (no git repo) — repo users manage their own updates
|
|
393
|
-
updateAvailable: !
|
|
394
|
+
updateAvailable: !isGitRepo && !!(diskVersion && _npmVersionCache?.latest && _npmVersionCache.latest !== diskVersion && _compareVersions(_npmVersionCache.latest, diskVersion) > 0),
|
|
394
395
|
_npmCheckError: _npmVersionCache?.error || null,
|
|
395
396
|
};
|
|
396
397
|
})(),
|
|
@@ -3658,7 +3659,7 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
3658
3659
|
// Routes endpoint (self-describing API)
|
|
3659
3660
|
{ method: 'GET', path: '/api/version', desc: 'Current + latest version info with update check', handler: async (req, res) => {
|
|
3660
3661
|
const npm = await checkNpmVersion();
|
|
3661
|
-
const { diskVersion, diskCommit } = getDiskVersion();
|
|
3662
|
+
const { diskVersion, diskCommit, isGitRepo } = getDiskVersion();
|
|
3662
3663
|
const engine = getEngineState();
|
|
3663
3664
|
const engineStale = !!(engine.codeVersion && diskVersion && engine.codeVersion !== diskVersion) ||
|
|
3664
3665
|
!!(engine.codeCommit && diskCommit && engine.codeCommit !== diskCommit);
|
|
@@ -3672,7 +3673,7 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
3672
3673
|
dashboardRunning: _dashboardVersion.codeVersion,
|
|
3673
3674
|
dashboardRunningCommit: _dashboardVersion.codeCommit,
|
|
3674
3675
|
latest: npm.latest,
|
|
3675
|
-
updateAvailable: !
|
|
3676
|
+
updateAvailable: !isGitRepo && !!(diskVersion && npm.latest && _compareVersions(npm.latest, diskVersion) > 0),
|
|
3676
3677
|
engineStale,
|
|
3677
3678
|
dashboardStale,
|
|
3678
3679
|
stale: engineStale || dashboardStale,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.550",
|
|
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"
|