@yemi33/minions 0.1.1827 → 0.1.1828

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,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1828 (2026-05-09)
4
+
5
+ ### Other
6
+ - refactor(cli): atomic clear, soft-fail browser-open, fix stale test message
7
+
3
8
  ## 0.1.1827 (2026-05-09)
4
9
 
5
10
  ### Other
package/bin/minions.js CHANGED
@@ -79,10 +79,11 @@ const isPortListening = (port) => getListeningPids(port).length > 0;
79
79
  // the auto-open. We wipe the file during restart so the post-restart probe
80
80
  // only counts beacons that arrive AFTER the new dashboard is up.
81
81
  function _clearDashboardBrowserState(minionsHome) {
82
- try {
83
- const fp = path.join(minionsHome, 'engine', 'dashboard-browser.json');
84
- fs.writeFileSync(fp, JSON.stringify({ tabs: {}, updatedAt: new Date().toISOString() }));
85
- } catch {}
82
+ // Atomic write so the new dashboard can't read a torn file mid-write.
83
+ shared.safeWrite(
84
+ path.join(minionsHome, 'engine', 'dashboard-browser.json'),
85
+ { tabs: {}, updatedAt: new Date().toISOString() },
86
+ );
86
87
  }
87
88
 
88
89
  async function _waitForBrowserReconnect(minionsHome, { afterMs, timeoutMs = 5000, pollMs = 500 } = {}) {
@@ -760,8 +761,9 @@ if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
760
761
  }
761
762
  console.log('');
762
763
  })().catch(err => {
763
- console.error(`\n ERROR: Restart verification failed: ${err.message}\n`);
764
- process.exit(1);
764
+ // Health check failures already process.exit(1) above; reaching here means
765
+ // the browser-open path threw, which is non-fatal — restart already verified.
766
+ console.log(` Could not open dashboard: ${err.message}`);
765
767
  });
766
768
  } else if (cmd === 'nuke') {
767
769
  ensureInstalled();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "runtime": "copilot",
3
3
  "models": null,
4
- "cachedAt": "2026-05-09T23:03:46.416Z"
4
+ "cachedAt": "2026-05-09T23:11:31.200Z"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.1827",
3
+ "version": "0.1.1828",
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"