@yemi33/minions 0.1.842 → 0.1.844

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.842 (2026-04-11)
3
+ ## 0.1.844 (2026-04-11)
4
4
 
5
5
  ### Features
6
6
  - optimistic UI updates for all dashboard actions
@@ -8,6 +8,7 @@
8
8
  - stale PRD shows Regenerate PRD + Resume as-is buttons
9
9
 
10
10
  ### Fixes
11
+ - steering resume failure no longer silently marked as SUCCESS
11
12
  - cli.js reads PID files from wrong directory on reattach
12
13
  - revert modal CSS changes from 227779d that broke plan modal layout
13
14
  - restore text selection → doc-chat flow + regression tests
@@ -21,6 +22,7 @@
21
22
  - diff-aware plan-to-prd triggered by Resume, not auto-dispatch
22
23
 
23
24
  ### Other
25
+ - perf: reduce steering detection latency from 3s to 1s
24
26
  - remove: /api/prd/regenerate endpoint (destructive delete + fresh gen)
25
27
  - refactor: migrate handlePrdRegenerate and handlePlansExecute to queuePlanToPrd
26
28
  - refactor: add PRD_ITEM_STATUS/PRD_MATERIALIZABLE constants, extract queuePlanToPrd
package/engine/cli.js CHANGED
@@ -360,8 +360,8 @@ const commands = {
360
360
  // Start tick loop
361
361
  const tickTimer = setInterval(() => e.tick(), interval);
362
362
 
363
- // Fast poll: check steering every 3s (lightweight — just fs.stat per agent)
364
- // and wakeup signals every 3s (control.json read)
363
+ // Fast poll: check steering every 1s (lightweight — just fs.stat per agent)
364
+ // and wakeup signals every 1s (control.json read)
365
365
  const { checkSteering } = require('./timeout');
366
366
  const fastPollTimer = setInterval(() => {
367
367
  try { checkSteering(); } catch {}
@@ -371,7 +371,7 @@ const commands = {
371
371
  safeWrite(CONTROL_PATH, ctrl);
372
372
  e.tick();
373
373
  }
374
- }, 3000);
374
+ }, 1000);
375
375
 
376
376
  // Teams inbox poll timer — process incoming Teams messages through CC
377
377
  const teams = require('./teams');
package/engine.js CHANGED
@@ -808,8 +808,8 @@ async function spawnAgent(dispatchItem, config) {
808
808
  if (resumeCode !== 0) {
809
809
  log('warn', `Steering resume for ${agentId} exited with code ${resumeCode} | stderr: ${stderr.slice(-300).replace(/\n/g, ' ')}`);
810
810
  try { fs.appendFileSync(liveOutputPath, `\n[steering-failed] Resume exited with code ${resumeCode}. Your message was received but the agent could not continue the session.\n`); } catch {}
811
- activeProcesses.delete(id);
812
- completeDispatch(id, DISPATCH_RESULT.SUCCESS, 'Steering resume failed but original work completed', '', { processWorkItemFailure: false });
811
+ // Don't assume original work completed — run normal close handler to parse output and determine actual result
812
+ onAgentClose(resumeCode);
813
813
  return;
814
814
  }
815
815
  // Successful resume — run normal close handler
@@ -819,7 +819,7 @@ async function spawnAgent(dispatchItem, config) {
819
819
  log('warn', `Steering re-spawn error for ${agentId}: ${err.message}`);
820
820
  try { fs.appendFileSync(liveOutputPath, `\n[steering-failed] Spawn error: ${err.message}. Your message was received but the agent could not resume.\n`); } catch {}
821
821
  activeProcesses.delete(id);
822
- completeDispatch(id, DISPATCH_RESULT.SUCCESS, 'Steering re-spawn error but original work completed', '', { processWorkItemFailure: false });
822
+ completeDispatch(id, DISPATCH_RESULT.ERROR, `Steering re-spawn failed: ${err.message}`);
823
823
  });
824
824
 
825
825
  // Don't run completion hooks — agent is still working
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.842",
3
+ "version": "0.1.844",
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"