limina 0.1.2 → 0.1.3
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/chunks/{dep-BPK-6PAr.js → dep-BT-sPH_d.js} +14 -25
- package/chunks/{dep-DJz9JBTi.js → dep-BizOzD0V.js} +88 -166
- package/chunks/{dep-esXeyN9I.js → dep-CDo4z58I.js} +2 -5
- package/chunks/{dep-mnWOqiGN.js → dep-Tb3jeYdU.js} +4 -8
- package/cli.js +1388 -1376
- package/flow-renderer-process.js +4 -6
- package/index.js +2 -3
- package/package.json +2 -2
- package/schemas/tsconfig-schema.json +5 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as __toESM, t as require_picocolors } from "./dep-
|
|
2
|
-
|
|
1
|
+
import { a as __toESM, t as require_picocolors } from "./dep-BT-sPH_d.js";
|
|
3
2
|
//#region ../../node_modules/.pnpm/publint@0.3.17/node_modules/publint/src/shared/utils.js
|
|
4
3
|
/**
|
|
5
4
|
* @param {string[]} path
|
|
@@ -28,7 +27,6 @@ function replaceLast(str, search, replace) {
|
|
|
28
27
|
if (index === -1) return str;
|
|
29
28
|
return str.slice(0, index) + replace + str.slice(index + search.length);
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
31
|
//#region ../../node_modules/.pnpm/publint@0.3.17/node_modules/publint/src/shared/message.js
|
|
34
32
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
@@ -189,6 +187,5 @@ function exportsRel(s) {
|
|
|
189
187
|
if (s[0] === "/") return "." + s;
|
|
190
188
|
return "./" + s;
|
|
191
189
|
}
|
|
192
|
-
|
|
193
190
|
//#endregion
|
|
194
|
-
export { formatMessage, formatMessagePath, getPkgPathValue };
|
|
191
|
+
export { formatMessage, formatMessagePath, getPkgPathValue };
|
|
@@ -3,7 +3,7 @@ const ANSI_RESET = "\x1B[0m";
|
|
|
3
3
|
const ANSI_GREEN = "\x1B[32m";
|
|
4
4
|
const ANSI_RED = "\x1B[31m";
|
|
5
5
|
const ANSI_YELLOW = "\x1B[33m";
|
|
6
|
-
const DEFAULT_TERMINAL_COLUMNS
|
|
6
|
+
const DEFAULT_TERMINAL_COLUMNS = 80;
|
|
7
7
|
const TERMINAL_FRAME_MARGIN_LINES = 1;
|
|
8
8
|
const TERMINAL_FRAME_CONTEXT_LINES = 6;
|
|
9
9
|
const OMITTED_LINES_MARKER = "│ ...";
|
|
@@ -21,7 +21,6 @@ const SPINNER_FRAMES = [
|
|
|
21
21
|
"⠇",
|
|
22
22
|
"⠏"
|
|
23
23
|
];
|
|
24
|
-
const SPINNER_INTERVAL_MS = 80;
|
|
25
24
|
const FLOW_SYMBOL_BY_STATUS = {
|
|
26
25
|
fail: "✕",
|
|
27
26
|
info: "│",
|
|
@@ -121,7 +120,7 @@ function countRenderedTerminalRows(line, columns) {
|
|
|
121
120
|
return rows;
|
|
122
121
|
}
|
|
123
122
|
function countRenderedRows(lines, dimensions) {
|
|
124
|
-
const columns = Math.max(1, dimensions.columns ?? DEFAULT_TERMINAL_COLUMNS
|
|
123
|
+
const columns = Math.max(1, dimensions.columns ?? DEFAULT_TERMINAL_COLUMNS);
|
|
125
124
|
return lines.reduce((sum, line) => sum + countRenderedTerminalRows(line, columns), 0);
|
|
126
125
|
}
|
|
127
126
|
function fitsRenderedLines(lines, dimensions, options = {}) {
|
|
@@ -134,7 +133,7 @@ function fitRenderedLinesToTerminal(lines, dimensions, options = {}) {
|
|
|
134
133
|
if (fitsRenderedLines(lines, dimensions) && !options.omittedLines) return lines;
|
|
135
134
|
if (dimensions.rows === void 0) return options.omittedLines ? addOmittedLinesMarker(lines) : lines;
|
|
136
135
|
const lineLimit = Math.max(1, dimensions.rows - TERMINAL_FRAME_MARGIN_LINES);
|
|
137
|
-
const columns = Math.max(1, dimensions.columns ?? DEFAULT_TERMINAL_COLUMNS
|
|
136
|
+
const columns = Math.max(1, dimensions.columns ?? DEFAULT_TERMINAL_COLUMNS);
|
|
138
137
|
const lastLine = lines.at(-1);
|
|
139
138
|
const shouldPreserveOutro = lastLine?.startsWith("└ ") ?? false;
|
|
140
139
|
const bodyLineCount = lines.length - (shouldPreserveOutro ? 1 : 0);
|
|
@@ -184,10 +183,8 @@ function toWritableText(chunk) {
|
|
|
184
183
|
if (chunk instanceof Uint8Array) return Buffer.from(chunk).toString();
|
|
185
184
|
return chunk;
|
|
186
185
|
}
|
|
187
|
-
|
|
188
186
|
//#endregion
|
|
189
187
|
//#region src/flow/terminal-frame.ts
|
|
190
|
-
const DEFAULT_TERMINAL_COLUMNS = 80;
|
|
191
188
|
var TerminalFrameTracker = class {
|
|
192
189
|
#column = 0;
|
|
193
190
|
#lineCount = 0;
|
|
@@ -239,6 +236,5 @@ function writeWithFlowArgs(write, args) {
|
|
|
239
236
|
if (typeof args[1] === "string") return write(args[0], args[1], args[2]);
|
|
240
237
|
return write(args[0], args[1]);
|
|
241
238
|
}
|
|
242
|
-
|
|
243
239
|
//#endregion
|
|
244
|
-
export {
|
|
240
|
+
export { formatInteractiveLine as a, renderSnapshotLinesForTerminal as c, SPINNER_FRAMES as i, toTreeFlowStatus as l, patchWriteStream as n, formatMessageWithElapsed as o, writeWithFlowArgs as r, hasRunningSnapshotWork as s, TerminalFrameTracker as t, toWritableText as u };
|