@yemi33/minions 0.1.467 → 0.1.469

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,14 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.467 (2026-04-07)
3
+ ## 0.1.469 (2026-04-07)
4
4
 
5
5
  ### Fixes
6
+ - only cache sessionId for steering when actually resuming same branch
7
+
8
+ ## 0.1.468 (2026-04-07)
9
+
10
+ ### Fixes
11
+ - plan-to-prd and plan tasks skip worktree creation
6
12
  - plan execute uses mutateJsonFileLocked for atomic check-and-insert
7
13
 
8
14
  ## 0.1.466 (2026-04-07)
package/engine.js CHANGED
@@ -293,7 +293,7 @@ function spawnAgent(dispatchItem, config) {
293
293
  log('info', `Reusing existing worktree for ${branchName}: ${existingWt}`);
294
294
  try { exec(`git fetch origin "${branchName}"`, { ..._gitOpts, cwd: rootDir }); } catch (e) { log('warn', 'git: ' + e.message); }
295
295
  try { exec(`git pull origin "${branchName}"`, { ..._gitOpts, cwd: existingWt }); } catch (e) { log('warn', 'git: ' + e.message); }
296
- } else if (['meeting', 'ask', 'explore'].includes(type)) {
296
+ } else if (['meeting', 'ask', 'explore', 'plan-to-prd', 'plan'].includes(type)) {
297
297
  // Read-only tasks — no worktree needed, run in rootDir
298
298
  log('info', `${type}: read-only task, no worktree needed — running in rootDir`);
299
299
  branchName = null;
@@ -474,10 +474,10 @@ function spawnAgent(dispatchItem, config) {
474
474
  try {
475
475
  const sessionFile = safeJson(path.join(AGENTS_DIR, agentId, 'session.json'));
476
476
  if (sessionFile?.sessionId && sessionFile.savedAt) {
477
- cachedSessionId = sessionFile.sessionId;
478
477
  const sessionAge = Date.now() - new Date(sessionFile.savedAt).getTime();
479
478
  const sameBranch = branchName && sessionFile.branch && sessionFile.branch === branchName;
480
479
  if (sessionAge < 2 * 60 * 60 * 1000 && sameBranch) {
480
+ cachedSessionId = sessionFile.sessionId;
481
481
  args.push('--resume', sessionFile.sessionId);
482
482
  log('info', `Resuming session ${sessionFile.sessionId} for ${agentId} on branch ${branchName} (age: ${Math.round(sessionAge / 60000)}min)`);
483
483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.467",
3
+ "version": "0.1.469",
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"