jonah-fleet 1.30.4 → 1.30.5

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
@@ -5,6 +5,13 @@ All notable changes to `jonah-fleet` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.30.5](https://github.com/Jonah-Projects/jonah-fleet/compare/v1.30.4...v1.30.5) (2026-10-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **worktree:** disambiguate base ref against local origin/main branch ([#519](https://github.com/Jonah-Projects/jonah-fleet/issues/519)) ([1e3e6f2](https://github.com/Jonah-Projects/jonah-fleet/commit/1e3e6f2cdc2e5e774fc050be5686254de935d798))
14
+
8
15
  ## [1.30.4](https://github.com/Jonah-Projects/jonah-fleet/compare/v1.30.3...v1.30.4) (2026-10-01)
9
16
 
10
17
 
package/dist/index.js CHANGED
@@ -3854,16 +3854,15 @@ async function createWorktree(repoRoot, options) {
3854
3854
  }
3855
3855
  }
3856
3856
  let baseRef = options.baseRef;
3857
- if (!baseRef) {
3858
- try {
3859
- await execFileAsync3("git", ["rev-parse", "--verify", "origin/main"], { cwd: repoRoot });
3860
- baseRef = "origin/main";
3861
- } catch {
3857
+ if (!baseRef || baseRef === "origin/main") {
3858
+ const candidates = ["refs/remotes/origin/main", "refs/heads/main", "main"];
3859
+ baseRef = "HEAD";
3860
+ for (const candidate of candidates) {
3862
3861
  try {
3863
- await execFileAsync3("git", ["rev-parse", "--verify", "main"], { cwd: repoRoot });
3864
- baseRef = "main";
3862
+ await execFileAsync3("git", ["rev-parse", "--verify", candidate], { cwd: repoRoot });
3863
+ baseRef = candidate;
3864
+ break;
3865
3865
  } catch {
3866
- baseRef = "HEAD";
3867
3866
  }
3868
3867
  }
3869
3868
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jonah-fleet",
3
- "version": "1.30.4",
3
+ "version": "1.30.5",
4
4
  "description": "Standalone autonomous agent fleet with Symphony orchestration, claim protocols, and continuous improvement loops",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",