@yemi33/minions 0.1.456 → 0.1.457

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.456 (2026-04-07)
3
+ ## 0.1.457 (2026-04-07)
4
4
 
5
5
  ### Fixes
6
+ - shared-branch worktree creates branch from main if not found
6
7
  - pre-dispatch live vote check prevents reviewing approved PRs
7
8
 
8
9
  ## 0.1.455 (2026-04-07)
package/engine.js CHANGED
@@ -319,6 +319,11 @@ function spawnAgent(dispatchItem, config) {
319
319
  log('info', `Shared branch ${branchName} already checked out at ${existingWtPath} — reusing`);
320
320
  worktreePath = existingWtPath;
321
321
  } else { throw eShared; }
322
+ } else if (eShared.message?.includes('invalid reference') || eShared.message?.includes('not a valid ref')) {
323
+ // Branch doesn't exist yet (first item in plan) — create it from main
324
+ const mainRef = sanitizeBranch(shared.resolveMainBranch(rootDir, project.mainBranch));
325
+ log('info', `Shared branch ${branchName} not found — creating from ${mainRef}`);
326
+ runWorktreeAdd(rootDir, worktreePath, `-b "${branchName}" ${mainRef}`, _worktreeGitOpts, worktreeCreateRetries);
322
327
  } else { throw eShared; }
323
328
  }
324
329
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.456",
3
+ "version": "0.1.457",
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"