@ww_nero/mini-cli 1.0.70 → 1.0.71
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 +1 -1
- package/src/chat.js +2 -2
package/package.json
CHANGED
package/src/chat.js
CHANGED
|
@@ -87,10 +87,10 @@ const formatWriteOutput = (result) => {
|
|
|
87
87
|
}
|
|
88
88
|
const content = result.content || '';
|
|
89
89
|
const lines = content.split('\n');
|
|
90
|
-
if (lines.length <=
|
|
90
|
+
if (lines.length <= 20) {
|
|
91
91
|
return content;
|
|
92
92
|
}
|
|
93
|
-
return lines.slice(0,
|
|
93
|
+
return lines.slice(0, 20).join('\n') + '\n...(更多内容)';
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
const formatReplaceOutput = (result) => {
|