omnius 1.0.97 → 1.0.99
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/index.js +10 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -563745,16 +563745,16 @@ function buildToolTopBorder(title, metrics2, width, colorCode) {
|
|
|
563745
563745
|
let metricsSegment = "";
|
|
563746
563746
|
let fillerWidth;
|
|
563747
563747
|
if (titleSpan + metricsSpan + 4 <= inner) {
|
|
563748
|
-
titleSegment = `${border}
|
|
563749
|
-
metricsSegment = metricsChip ? `${border}
|
|
563748
|
+
titleSegment = `${border}├${titleColor}${titleChip}${reset}${border}┤`;
|
|
563749
|
+
metricsSegment = metricsChip ? `${border}├${metricColor}${metricsChip}${reset}${border}┤` : "";
|
|
563750
563750
|
fillerWidth = inner - titleSpan - metricsSpan - 2;
|
|
563751
563751
|
} else if (titleSpan + 4 <= inner) {
|
|
563752
|
-
titleSegment = `${border}
|
|
563752
|
+
titleSegment = `${border}├${titleColor}${titleChip}${reset}${border}┤`;
|
|
563753
563753
|
fillerWidth = inner - titleSpan - 2;
|
|
563754
563754
|
} else {
|
|
563755
563755
|
const room = Math.max(3, inner - 8);
|
|
563756
563756
|
const truncated = titleVisible.length > room ? titleVisible.slice(0, Math.max(1, room - 1)) + "…" : titleVisible;
|
|
563757
|
-
titleSegment = `${border}
|
|
563757
|
+
titleSegment = `${border}├${titleColor} ${truncated} ${reset}${border}┤`;
|
|
563758
563758
|
fillerWidth = Math.max(0, inner - (truncated.length + 4) - 2);
|
|
563759
563759
|
}
|
|
563760
563760
|
return `${border}${BOX_TL2}${BOX_H2}${titleSegment}${BOX_H2.repeat(Math.max(0, fillerWidth))}${metricsSegment}${BOX_H2}${BOX_TR2}${reset}`;
|
|
@@ -563967,7 +563967,12 @@ function buildToolResultBody(toolName, success, output, verbose) {
|
|
|
563967
563967
|
return codePreviewLines(output, 10);
|
|
563968
563968
|
}
|
|
563969
563969
|
if (toolName === "task_complete") {
|
|
563970
|
-
|
|
563970
|
+
const summary = output && output.trim() ? output : "Done";
|
|
563971
|
+
return summary.split("\n").map((line) => ({
|
|
563972
|
+
text: line,
|
|
563973
|
+
mode: "wrap",
|
|
563974
|
+
kind: "markdown"
|
|
563975
|
+
}));
|
|
563971
563976
|
}
|
|
563972
563977
|
const filtered = output.split("\n").filter((line) => {
|
|
563973
563978
|
const trimmed = line.trim();
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.99",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.99",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED