omnius 1.0.90 → 1.0.91
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 +27 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -562625,6 +562625,10 @@ function buildBoxLines(data, width) {
|
|
|
562625
562625
|
lines.push(buildTopBorder(`${GREEN}✔${RESET} ${title}`, metrics2, w));
|
|
562626
562626
|
const innerWidth = Math.max(1, w - 4);
|
|
562627
562627
|
const bodyText = (data.summary ?? "").trim();
|
|
562628
|
+
const hasFooter = (data.testsRun?.length ?? 0) > 0 || (data.filesEdited?.length ?? 0) > 0 || (data.provenanceAnchors?.length ?? 0) > 0;
|
|
562629
|
+
if (bodyText || hasFooter) {
|
|
562630
|
+
lines.push(buildInnerDivider(w));
|
|
562631
|
+
}
|
|
562628
562632
|
if (bodyText) {
|
|
562629
562633
|
lines.push(buildEmptyRow(w));
|
|
562630
562634
|
for (const para of bodyText.split(/\n/)) {
|
|
@@ -562635,9 +562639,8 @@ function buildBoxLines(data, width) {
|
|
|
562635
562639
|
}
|
|
562636
562640
|
lines.push(buildEmptyRow(w));
|
|
562637
562641
|
}
|
|
562638
|
-
const hasFooter = (data.testsRun?.length ?? 0) > 0 || (data.filesEdited?.length ?? 0) > 0 || (data.provenanceAnchors?.length ?? 0) > 0;
|
|
562639
562642
|
if (hasFooter) {
|
|
562640
|
-
lines.push(buildInnerDivider(w));
|
|
562643
|
+
if (bodyText) lines.push(buildInnerDivider(w));
|
|
562641
562644
|
if (data.testsRun?.length) {
|
|
562642
562645
|
lines.push(...buildLabeledFooterLines("Tests", data.testsRun, w));
|
|
562643
562646
|
}
|
|
@@ -562716,9 +562719,9 @@ var init_task_complete_box = __esm({
|
|
|
562716
562719
|
BOX_TJ_L = "├";
|
|
562717
562720
|
BOX_TJ_R = "┤";
|
|
562718
562721
|
RESET = "\x1B[0m";
|
|
562719
|
-
GREEN = "\x1B[38;5;
|
|
562720
|
-
FG_BORDER = "\x1B[38;5;
|
|
562721
|
-
FG_TITLE = "\x1B[1;38;5;
|
|
562722
|
+
GREEN = "\x1B[38;5;154m";
|
|
562723
|
+
FG_BORDER = "\x1B[38;5;154m";
|
|
562724
|
+
FG_TITLE = "\x1B[1;38;5;154m";
|
|
562722
562725
|
FG_METRIC = "\x1B[38;5;222m";
|
|
562723
562726
|
FG_LABEL = "\x1B[38;5;147m";
|
|
562724
562727
|
}
|
|
@@ -585105,6 +585108,13 @@ function formatImageAsciiContext(preview, label) {
|
|
|
585105
585108
|
return `[ASCII preview of image: ${label}]
|
|
585106
585109
|
${preview.ascii}`;
|
|
585107
585110
|
}
|
|
585111
|
+
function hasImageExtension(filePath) {
|
|
585112
|
+
const lower = filePath.toLowerCase();
|
|
585113
|
+
for (const ext of IMAGE_PREVIEW_EXTENSIONS) {
|
|
585114
|
+
if (lower.endsWith(ext)) return true;
|
|
585115
|
+
}
|
|
585116
|
+
return false;
|
|
585117
|
+
}
|
|
585108
585118
|
function extractSavedImagePath(text, repoRoot) {
|
|
585109
585119
|
const patterns = [
|
|
585110
585120
|
/Image generated:\s*([^\n\r]+)/i,
|
|
@@ -585120,18 +585130,29 @@ function extractSavedImagePath(text, repoRoot) {
|
|
|
585120
585130
|
const match = text.match(pattern);
|
|
585121
585131
|
if (!match?.[1]) continue;
|
|
585122
585132
|
const raw = match[1].trim().replace(/\s+\([^)]+\)\s*$/g, "").replace(/^["']|["']$/g, "");
|
|
585133
|
+
if (!hasImageExtension(raw)) continue;
|
|
585123
585134
|
const candidate = raw.startsWith("/") ? raw : resolve40(repoRoot, raw);
|
|
585124
585135
|
if (existsSync99(candidate)) return candidate;
|
|
585125
585136
|
}
|
|
585126
585137
|
return null;
|
|
585127
585138
|
}
|
|
585128
|
-
var DEFAULT_PIXELS, ANSI_PATTERN, TERMINAL_CELL_ASPECT;
|
|
585139
|
+
var DEFAULT_PIXELS, ANSI_PATTERN, TERMINAL_CELL_ASPECT, IMAGE_PREVIEW_EXTENSIONS;
|
|
585129
585140
|
var init_image_ascii_preview = __esm({
|
|
585130
585141
|
"packages/cli/src/tui/image-ascii-preview.ts"() {
|
|
585131
585142
|
"use strict";
|
|
585132
585143
|
DEFAULT_PIXELS = " .,:;i1tfLCG08@";
|
|
585133
585144
|
ANSI_PATTERN = /\x1B\[[0-?]*[ -/]*[@-~]/g;
|
|
585134
585145
|
TERMINAL_CELL_ASPECT = 0.52;
|
|
585146
|
+
IMAGE_PREVIEW_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
585147
|
+
".png",
|
|
585148
|
+
".jpg",
|
|
585149
|
+
".jpeg",
|
|
585150
|
+
".gif",
|
|
585151
|
+
".webp",
|
|
585152
|
+
".bmp",
|
|
585153
|
+
".tiff",
|
|
585154
|
+
".tif"
|
|
585155
|
+
]);
|
|
585135
585156
|
}
|
|
585136
585157
|
});
|
|
585137
585158
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.91",
|
|
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.91",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED