claude-issue-solver 1.40.0 → 1.40.1
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/dist/commands/solve.js +4 -4
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/commands/solve.js
CHANGED
|
@@ -174,8 +174,8 @@ exit 0
|
|
|
174
174
|
const interactiveEnding = `
|
|
175
175
|
echo ""
|
|
176
176
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
177
|
-
echo "Claude session ended. Terminal staying open
|
|
178
|
-
echo "To clean up: claude-issue clean ${issueNumber}"
|
|
177
|
+
echo "Claude session ended. Terminal staying open."
|
|
178
|
+
echo "To clean up after merge: claude-issue clean ${issueNumber}"
|
|
179
179
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
180
180
|
echo ""
|
|
181
181
|
|
|
@@ -183,8 +183,8 @@ echo ""
|
|
|
183
183
|
exec bash --norc --noprofile
|
|
184
184
|
`;
|
|
185
185
|
const modeMessage = autoClose
|
|
186
|
-
? '
|
|
187
|
-
: '
|
|
186
|
+
? 'Terminal will close after PR is created.'
|
|
187
|
+
: 'The terminal stays open for follow-up changes.';
|
|
188
188
|
const runnerContent = `#!/bin/bash
|
|
189
189
|
cd "${worktreePath}"
|
|
190
190
|
|
package/dist/index.js
CHANGED
|
@@ -52,19 +52,18 @@ program.hook('preAction', (thisCommand) => {
|
|
|
52
52
|
// Default command - interactive selection
|
|
53
53
|
program
|
|
54
54
|
.argument('[issue]', 'Issue number to solve')
|
|
55
|
-
.option('-
|
|
55
|
+
.option('-c, --auto-close', 'Close terminal and clean up worktree after PR is created')
|
|
56
56
|
.action(async (issue, options) => {
|
|
57
|
-
const solveOptions = { autoClose: !options.keep };
|
|
58
57
|
if (issue) {
|
|
59
58
|
const issueNumber = parseInt(issue, 10);
|
|
60
59
|
if (isNaN(issueNumber)) {
|
|
61
60
|
console.log(chalk_1.default.red(`❌ Invalid issue number: ${issue}`));
|
|
62
61
|
process.exit(1);
|
|
63
62
|
}
|
|
64
|
-
await (0, solve_1.solveCommand)(issueNumber,
|
|
63
|
+
await (0, solve_1.solveCommand)(issueNumber, { autoClose: options.autoClose });
|
|
65
64
|
}
|
|
66
65
|
else {
|
|
67
|
-
await (0, select_1.selectCommand)(
|
|
66
|
+
await (0, select_1.selectCommand)(options);
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
// List command
|