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.
- package/dist/commands/list.js +14 -2
- package/package.json +1 -1
package/dist/commands/list.js
CHANGED
|
@@ -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
|
-
//
|
|
14
|
-
const
|
|
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) + '...';
|