claude-issue-solver 1.19.0 → 1.19.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.
@@ -10,8 +10,20 @@ const git_1 = require("../utils/git");
10
10
  function truncateBody(body, maxLength = 100) {
11
11
  if (!body)
12
12
  return '';
13
- // Take first line or truncate
14
- const firstLine = body.split('\n')[0].trim();
13
+ // Find first meaningful line (skip markdown headers and empty lines)
14
+ const lines = body.split('\n');
15
+ let firstLine = '';
16
+ for (const line of lines) {
17
+ const trimmed = line.trim();
18
+ // Skip empty lines, markdown headers, and horizontal rules
19
+ if (!trimmed || trimmed.startsWith('#') || trimmed.match(/^-{3,}$|^_{3,}$|^\*{3,}$/)) {
20
+ continue;
21
+ }
22
+ firstLine = trimmed;
23
+ break;
24
+ }
25
+ if (!firstLine)
26
+ return '';
15
27
  if (firstLine.length <= maxLength)
16
28
  return firstLine;
17
29
  return firstLine.substring(0, maxLength - 3) + '...';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-issue-solver",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "description": "Automatically solve GitHub issues using Claude Code",
5
5
  "main": "dist/index.js",
6
6
  "bin": {