diffsplain 0.2.0 → 0.2.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/package.json
CHANGED
|
@@ -687,12 +687,14 @@ try {
|
|
|
687
687
|
if (result.status !== 0) {
|
|
688
688
|
const detail = result.stderr
|
|
689
689
|
.split('\n')
|
|
690
|
-
.
|
|
691
|
-
(
|
|
692
|
-
|
|
693
|
-
|
|
690
|
+
.map((line) =>
|
|
691
|
+
line.replace(
|
|
692
|
+
/\u001b\[[0-?]*[ -/]*[@-~]/g,
|
|
693
|
+
'',
|
|
694
|
+
),
|
|
694
695
|
)
|
|
695
|
-
.
|
|
696
|
+
.filter((line) => line.trim() && line.length < 600)
|
|
697
|
+
.slice(-8)
|
|
696
698
|
.join('\n');
|
|
697
699
|
throw new Error(
|
|
698
700
|
`${selectedAgent} exited with status ${result.status}${detail ? `\n${detail}` : ''}`,
|