jettypod 4.4.58 → 4.4.60

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.
@@ -137,12 +137,13 @@ function evaluateBashCommand(command, currentBranch, cwd) {
137
137
  }
138
138
 
139
139
  // BLOCKED: Merge from inside worktree (causes CWD corruption)
140
- if (/jettypod\s+(work|tests)\s+merge/.test(command)) {
140
+ // Matches: jettypod work merge, jettypod work tests merge
141
+ if (/jettypod\s+work\s+(tests\s+)?merge/.test(command)) {
141
142
  if (cwd && /\.jettypod-work\//.test(cwd)) {
142
143
  return {
143
144
  allowed: false,
144
- message: 'Cannot merge from inside a worktree. CWD would be deleted.',
145
- hint: 'Run: cd /Users/erikspangenberg/jettypod-source && jettypod work merge <id>'
145
+ message: 'Cannot merge from inside a worktree - your shell CWD would be deleted, corrupting the session.',
146
+ hint: 'First run: cd <main-repo-path>\nThen retry the merge command.'
146
147
  };
147
148
  }
148
149
  }
@@ -1885,10 +1885,10 @@ async function testsMerge(featureId) {
1885
1885
  console.log('⚠️ Failed to delete branch (non-fatal):', err.message);
1886
1886
  }
1887
1887
 
1888
- // Update worktree status in database
1888
+ // Delete worktree record from database (cleanup complete)
1889
1889
  await new Promise((resolve, reject) => {
1890
1890
  db.run(
1891
- `UPDATE worktrees SET status = 'merged' WHERE id = ?`,
1891
+ `DELETE FROM worktrees WHERE id = ?`,
1892
1892
  [worktree.id],
1893
1893
  (err) => {
1894
1894
  if (err) return reject(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jettypod",
3
- "version": "4.4.58",
3
+ "version": "4.4.60",
4
4
  "description": "AI-powered development workflow manager with TDD, BDD, and automatic test generation",
5
5
  "main": "jettypod.js",
6
6
  "bin": {