@yemi33/minions 0.1.421 → 0.1.422

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,8 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.421 (2026-04-06)
3
+ ## 0.1.422 (2026-04-06)
4
4
 
5
5
  ### Features
6
+ - configurable version check interval, default 1 hour
6
7
  - Dashboard robustness — raw string fixes, plan steering clarity, safeWrite race fix
7
8
  - Low-priority cleanup: dedupe regex, consolidate streaming parse, add path validation alignment
8
9
  - Fix 6 medium bugs: dispatch pruning, null guards, skill regex, meeting advancement, CLI PID check, pipeline retry
package/dashboard.js CHANGED
@@ -169,15 +169,17 @@ function getVerifyGuides() {
169
169
  function getArchivedPrds() { return []; }
170
170
  function getEngineState() { return queries.getControl(); }
171
171
 
172
- // ── npm update check (cached for 4 hours) ──────────────────────────────────
172
+ // ── npm update check ────────────────────────────────────────────────────────
173
173
  let _npmVersionCache = null;
174
174
  let _npmVersionCacheTs = 0;
175
- const NPM_CHECK_INTERVAL = 4 * 60 * 60 * 1000; // 4 hours
175
+ function _getVersionCheckInterval() {
176
+ try { return queries.getConfig()?.engine?.versionCheckInterval || shared.ENGINE_DEFAULTS.versionCheckInterval; } catch { return shared.ENGINE_DEFAULTS.versionCheckInterval; }
177
+ }
176
178
  const PKG_NAME = '@yemi33/minions';
177
179
 
178
180
  async function checkNpmVersion() {
179
181
  const now = Date.now();
180
- if (_npmVersionCache && (now - _npmVersionCacheTs) < NPM_CHECK_INTERVAL) return _npmVersionCache;
182
+ if (_npmVersionCache && (now - _npmVersionCacheTs) < _getVersionCheckInterval()) return _npmVersionCache;
181
183
  try {
182
184
  // Use npm view — respects user's .npmrc proxy/registry config
183
185
  // Must use shell:true on Windows because npm is a .cmd batch script
@@ -210,7 +212,7 @@ function _compareVersions(a, b) {
210
212
 
211
213
  // Kick off first npm check on startup, then re-check every 4 hours
212
214
  checkNpmVersion().catch(() => {});
213
- setInterval(() => checkNpmVersion().catch(() => {}), NPM_CHECK_INTERVAL);
215
+ setInterval(() => checkNpmVersion().catch(() => {}), _getVersionCheckInterval());
214
216
 
215
217
  // Cache disk version + git commit (only changes on deploy/pull, not per-request)
216
218
  let _diskVersionCache = null;
package/engine/shared.js CHANGED
@@ -440,6 +440,7 @@ const ENGINE_DEFAULTS = {
440
440
  maxRetries: 3, // max dispatch retries before marking work item as failed
441
441
  pipelineApiRetries: 2, // max attempts for pipeline API calls
442
442
  pipelineApiRetryDelay: 2000, // ms delay between pipeline API retries
443
+ versionCheckInterval: 3600000, // 1 hour — how often to check npm for updates (ms)
443
444
  };
444
445
 
445
446
  // ─── Status & Type Constants ─────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.421",
3
+ "version": "0.1.422",
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"