omnius 1.0.116 → 1.0.118
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 +69 -49
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -564766,6 +564766,9 @@ __export(render_exports, {
|
|
|
564766
564766
|
setEmojisEnabled: () => setEmojisEnabled,
|
|
564767
564767
|
ui: () => ui
|
|
564768
564768
|
});
|
|
564769
|
+
function stdoutIsTTY() {
|
|
564770
|
+
return process.stdout.isTTY ?? false;
|
|
564771
|
+
}
|
|
564769
564772
|
function accentFg() {
|
|
564770
564773
|
const a2 = tuiAccent();
|
|
564771
564774
|
return a2 < 0 ? "\x1B[39m" : `\x1B[38;5;${a2}m`;
|
|
@@ -564774,17 +564777,17 @@ function dimFg() {
|
|
|
564774
564777
|
return `\x1B[38;5;${tuiTextDim()}m`;
|
|
564775
564778
|
}
|
|
564776
564779
|
function ansi2(code8, text) {
|
|
564777
|
-
return
|
|
564780
|
+
return stdoutIsTTY() ? `\x1B[${code8}m${text}\x1B[0m` : text;
|
|
564778
564781
|
}
|
|
564779
564782
|
function fg256(code8, text) {
|
|
564780
|
-
return
|
|
564783
|
+
return stdoutIsTTY() ? `\x1B[38;5;${code8}m${text}\x1B[0m` : text;
|
|
564781
564784
|
}
|
|
564782
564785
|
function hyperlink(url, text) {
|
|
564783
|
-
if (!
|
|
564786
|
+
if (!stdoutIsTTY()) return text;
|
|
564784
564787
|
return `\x1B]8;;${url}\x07${text}\x1B]8;;\x07`;
|
|
564785
564788
|
}
|
|
564786
564789
|
function fileLink(filePath) {
|
|
564787
|
-
if (!
|
|
564790
|
+
if (!stdoutIsTTY()) return filePath;
|
|
564788
564791
|
if (filePath.startsWith("/") || filePath.startsWith("~")) {
|
|
564789
564792
|
const absPath = filePath.startsWith("~") ? filePath.replace("~", process.env["HOME"] ?? "") : filePath;
|
|
564790
564793
|
return hyperlink(`file://${absPath}`, filePath);
|
|
@@ -564923,11 +564926,11 @@ function toolColorCode(toolName) {
|
|
|
564923
564926
|
return TOOL_COLOR_CODES[toolName] ?? tuiTextDim();
|
|
564924
564927
|
}
|
|
564925
564928
|
function toolColorSeq(code8, bold = false) {
|
|
564926
|
-
if (!_colorsEnabled || !
|
|
564929
|
+
if (!_colorsEnabled || !stdoutIsTTY()) return "";
|
|
564927
564930
|
return `\x1B[${bold ? "1;" : ""}38;5;${code8}m`;
|
|
564928
564931
|
}
|
|
564929
564932
|
function toolResetSeq() {
|
|
564930
|
-
return _colorsEnabled &&
|
|
564933
|
+
return _colorsEnabled && stdoutIsTTY() ? RESET2 : "";
|
|
564931
564934
|
}
|
|
564932
564935
|
function visibleLen(text) {
|
|
564933
564936
|
return stripAnsi(text).length;
|
|
@@ -564969,10 +564972,10 @@ function wrapToolTextLine(text, width) {
|
|
|
564969
564972
|
out.push(remaining);
|
|
564970
564973
|
return out;
|
|
564971
564974
|
}
|
|
564972
|
-
function buildToolTopBorder(title, metrics2, width, colorCode) {
|
|
564975
|
+
function buildToolTopBorder(title, metrics2, width, colorCode, metricsColorCode = 222) {
|
|
564973
564976
|
const border = toolColorSeq(colorCode);
|
|
564974
564977
|
const titleColor = toolColorSeq(colorCode, true);
|
|
564975
|
-
const metricColor = toolColorSeq(
|
|
564978
|
+
const metricColor = toolColorSeq(metricsColorCode);
|
|
564976
564979
|
const reset = toolResetSeq();
|
|
564977
564980
|
const inner = Math.max(4, width - 2);
|
|
564978
564981
|
const titleVisible = stripAnsi(title);
|
|
@@ -565077,7 +565080,7 @@ function buildToolBoxLines(data, width) {
|
|
|
565077
565080
|
const w = Math.max(40, width);
|
|
565078
565081
|
const innerWidth = Math.max(1, w - 4);
|
|
565079
565082
|
const lines = [
|
|
565080
|
-
buildToolTopBorder(data.title, data.metrics, w, data.colorCode),
|
|
565083
|
+
buildToolTopBorder(data.title, data.metrics, w, data.colorCode, data.metricsColorCode),
|
|
565081
565084
|
buildToolDivider(w, data.colorCode)
|
|
565082
565085
|
];
|
|
565083
565086
|
for (const bodyLine of data.body.length > 0 ? data.body : [{ text: "Done", mode: "wrap", kind: "dim" }]) {
|
|
@@ -565187,7 +565190,8 @@ function buildToolResultBoxLines(toolName, success, output, opts, width) {
|
|
|
565187
565190
|
metrics: metrics2,
|
|
565188
565191
|
body,
|
|
565189
565192
|
footers,
|
|
565190
|
-
colorCode: toolColorCode(toolName)
|
|
565193
|
+
colorCode: success ? toolColorCode(toolName) : TOOL_ERROR_COLOR_CODE,
|
|
565194
|
+
metricsColorCode: success ? void 0 : TOOL_ERROR_COLOR_CODE
|
|
565191
565195
|
}, width);
|
|
565192
565196
|
}
|
|
565193
565197
|
function buildToolResultBody(toolName, success, output, verbose) {
|
|
@@ -565644,7 +565648,7 @@ function formatDuration3(ms) {
|
|
|
565644
565648
|
const secs = Math.floor(totalSecs % 60);
|
|
565645
565649
|
return `${mins}m ${secs}s`;
|
|
565646
565650
|
}
|
|
565647
|
-
var
|
|
565651
|
+
var c3, ui, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLOR_CODES, TOOL_ERROR_COLOR_CODE, BOX_TL2, BOX_TR2, BOX_BL2, BOX_BR2, BOX_H2, BOX_V2, BOX_TJ_L2, BOX_TJ_R2, RESET2, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES, SLASH_COMMANDS2;
|
|
565648
565652
|
var init_render = __esm({
|
|
565649
565653
|
"packages/cli/src/tui/render.ts"() {
|
|
565650
565654
|
"use strict";
|
|
@@ -565655,10 +565659,9 @@ var init_render = __esm({
|
|
|
565655
565659
|
init_text_selection();
|
|
565656
565660
|
init_task_complete_box();
|
|
565657
565661
|
init_model_picker();
|
|
565658
|
-
isTTY2 = process.stdout.isTTY ?? false;
|
|
565659
565662
|
c3 = {
|
|
565660
565663
|
bold: (t2) => ansi2("1", t2),
|
|
565661
|
-
dim: (t2) =>
|
|
565664
|
+
dim: (t2) => stdoutIsTTY() ? `${dimFg()}${t2}\x1B[0m` : t2,
|
|
565662
565665
|
italic: (t2) => ansi2("3", t2),
|
|
565663
565666
|
red: (t2) => ansi2("31", t2),
|
|
565664
565667
|
green: (t2) => ansi2("32", t2),
|
|
@@ -565827,6 +565830,7 @@ var init_render = __esm({
|
|
|
565827
565830
|
transcribe_url: 43,
|
|
565828
565831
|
ask_user: 44
|
|
565829
565832
|
};
|
|
565833
|
+
TOOL_ERROR_COLOR_CODE = 198;
|
|
565830
565834
|
BOX_TL2 = "╭";
|
|
565831
565835
|
BOX_TR2 = "╮";
|
|
565832
565836
|
BOX_BL2 = "╰";
|
|
@@ -573323,6 +573327,13 @@ var init_status_bar = __esm({
|
|
|
573323
573327
|
_inProgressLine = "";
|
|
573324
573328
|
/** Throttled repaint timer for the live streaming tail (partial line). */
|
|
573325
573329
|
_streamingRepaintTimer = null;
|
|
573330
|
+
/**
|
|
573331
|
+
* A dynamic block repaint positions box rows via absolute cursor moves but
|
|
573332
|
+
* does not advance the terminal's live cursor below the expanded block.
|
|
573333
|
+
* The next content write must therefore repaint from scrollback instead of
|
|
573334
|
+
* writing at the stale cursor, or it can overwrite the box bottom border.
|
|
573335
|
+
*/
|
|
573336
|
+
_contentCursorNeedsReplay = false;
|
|
573326
573337
|
/** Auto-scroll to live when new content arrives (disabled when user scrolls back) */
|
|
573327
573338
|
_autoScroll = true;
|
|
573328
573339
|
/** Cached click region for the spacer button */
|
|
@@ -573462,7 +573473,10 @@ var init_status_bar = __esm({
|
|
|
573462
573473
|
}
|
|
573463
573474
|
if (this._autoScroll && !this._mouseSelecting)
|
|
573464
573475
|
this._contentScrollOffset = 0;
|
|
573465
|
-
if (this.active)
|
|
573476
|
+
if (this.active) {
|
|
573477
|
+
this.repaintContent();
|
|
573478
|
+
this._contentCursorNeedsReplay = true;
|
|
573479
|
+
}
|
|
573466
573480
|
}
|
|
573467
573481
|
/** Force a complete footer redraw (public wrapper for renderFooterAndPositionInput).
|
|
573468
573482
|
*
|
|
@@ -575370,6 +575384,12 @@ var init_status_bar = __esm({
|
|
|
575370
575384
|
}
|
|
575371
575385
|
if (bufferedContentChanged) self2.scheduleStreamingRepaint();
|
|
575372
575386
|
}
|
|
575387
|
+
if (self2._contentCursorNeedsReplay && bufferedContentChanged && self2._bufferContent && !isOverlayActive()) {
|
|
575388
|
+
self2._contentCursorNeedsReplay = false;
|
|
575389
|
+
self2.clearStreamingRepaintTimer();
|
|
575390
|
+
self2.repaintContent();
|
|
575391
|
+
return true;
|
|
575392
|
+
}
|
|
575373
575393
|
if (typeof chunk === "string") {
|
|
575374
575394
|
chunk = chunk.replace(/\x1B\[0m/g, `\x1B[0m${CONTENT_BG_SEQ}`).replace(/\n/g, `\x1B[K
|
|
575375
575395
|
${CONTENT_BG_SEQ}`);
|
|
@@ -577003,10 +577023,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
577003
577023
|
|
|
577004
577024
|
// packages/cli/src/tui/tui-select.ts
|
|
577005
577025
|
function ansi3(code8, text) {
|
|
577006
|
-
return
|
|
577026
|
+
return isTTY2 ? `\x1B[${code8}m${text}\x1B[0m` : text;
|
|
577007
577027
|
}
|
|
577008
577028
|
function fg2563(code8, text) {
|
|
577009
|
-
return
|
|
577029
|
+
return isTTY2 ? `\x1B[38;5;${code8}m${text}\x1B[0m` : text;
|
|
577010
577030
|
}
|
|
577011
577031
|
function stripAnsi3(s2) {
|
|
577012
577032
|
return s2.replace(/\x1B\[[0-9;]*m/g, "");
|
|
@@ -577636,14 +577656,14 @@ ${tuiBgSeq()}`);
|
|
|
577636
577656
|
}
|
|
577637
577657
|
});
|
|
577638
577658
|
}
|
|
577639
|
-
var
|
|
577659
|
+
var isTTY2, MENU_ACTIVE_GREEN_256, selectColors;
|
|
577640
577660
|
var init_tui_select = __esm({
|
|
577641
577661
|
"packages/cli/src/tui/tui-select.ts"() {
|
|
577642
577662
|
"use strict";
|
|
577643
577663
|
init_overlay_lock();
|
|
577644
577664
|
init_theme();
|
|
577645
577665
|
init_layout2();
|
|
577646
|
-
|
|
577666
|
+
isTTY2 = process.stdout.isTTY ?? false;
|
|
577647
577667
|
MENU_ACTIVE_GREEN_256 = 154;
|
|
577648
577668
|
selectColors = {
|
|
577649
577669
|
blue: (t2) => fg2563(39, t2),
|
|
@@ -582209,7 +582229,7 @@ var init_workspace_explorer = __esm({
|
|
|
582209
582229
|
import { existsSync as existsSync95 } from "node:fs";
|
|
582210
582230
|
import { extname as extname13, resolve as resolve39 } from "node:path";
|
|
582211
582231
|
function ansi4(code8, text) {
|
|
582212
|
-
return
|
|
582232
|
+
return isTTY3 ? `\x1B[${code8}m${text}\x1B[0m` : text;
|
|
582213
582233
|
}
|
|
582214
582234
|
function stripAnsi4(s2) {
|
|
582215
582235
|
return s2.replace(/\x1B\[[0-9;]*m/g, "");
|
|
@@ -582380,13 +582400,13 @@ function showDropPanel(opts) {
|
|
|
582380
582400
|
render2();
|
|
582381
582401
|
});
|
|
582382
582402
|
}
|
|
582383
|
-
var
|
|
582403
|
+
var isTTY3, dc;
|
|
582384
582404
|
var init_drop_panel = __esm({
|
|
582385
582405
|
"packages/cli/src/tui/drop-panel.ts"() {
|
|
582386
582406
|
"use strict";
|
|
582387
582407
|
init_overlay_lock();
|
|
582388
582408
|
init_layout2();
|
|
582389
|
-
|
|
582409
|
+
isTTY3 = process.stdout.isTTY ?? false;
|
|
582390
582410
|
dc = {
|
|
582391
582411
|
bold: (t2) => ansi4("1", t2),
|
|
582392
582412
|
dim: (t2) => ansi4("38;5;250", t2),
|
|
@@ -584736,7 +584756,7 @@ async function startNeovimMode(opts) {
|
|
|
584736
584756
|
const ptyCols = opts.cols;
|
|
584737
584757
|
const topOffset = opts.topOffset ?? 0;
|
|
584738
584758
|
const ptyRows = Math.max(5, opts.contentRows);
|
|
584739
|
-
if (
|
|
584759
|
+
if (isTTY4) {
|
|
584740
584760
|
const L = layout();
|
|
584741
584761
|
const bottomBound = L.contentBottom;
|
|
584742
584762
|
process.stdout.write(
|
|
@@ -584805,7 +584825,7 @@ async function startNeovimMode(opts) {
|
|
|
584805
584825
|
}
|
|
584806
584826
|
}
|
|
584807
584827
|
function renderToolbar() {
|
|
584808
|
-
if (!
|
|
584828
|
+
if (!isTTY4) return;
|
|
584809
584829
|
const L = layout();
|
|
584810
584830
|
const hdrRow = L.headerContent;
|
|
584811
584831
|
const fg2 = 252;
|
|
@@ -584866,7 +584886,7 @@ async function startNeovimMode(opts) {
|
|
|
584866
584886
|
stdin.setRawMode(true);
|
|
584867
584887
|
}
|
|
584868
584888
|
stdin.resume();
|
|
584869
|
-
if (
|
|
584889
|
+
if (isTTY4) {
|
|
584870
584890
|
process.stdout.write("\x1B[?1002h\x1B[?1006h");
|
|
584871
584891
|
}
|
|
584872
584892
|
state.stdinHandler = (data) => {
|
|
@@ -585165,13 +585185,13 @@ function doCleanup(state) {
|
|
|
585165
585185
|
}
|
|
585166
585186
|
state.opts.onExit?.();
|
|
585167
585187
|
}
|
|
585168
|
-
var
|
|
585188
|
+
var isTTY4, PTY_MODE_ENABLE_RE, STDIN_MOUSE_FOCUS_RE, _state;
|
|
585169
585189
|
var init_neovim_mode = __esm({
|
|
585170
585190
|
"packages/cli/src/tui/neovim-mode.ts"() {
|
|
585171
585191
|
"use strict";
|
|
585172
585192
|
init_setup();
|
|
585173
585193
|
init_layout2();
|
|
585174
|
-
|
|
585194
|
+
isTTY4 = process.stdout.isTTY ?? false;
|
|
585175
585195
|
PTY_MODE_ENABLE_RE = /\x1B\[\?(?:1004|2004)h/g;
|
|
585176
585196
|
STDIN_MOUSE_FOCUS_RE = /\x1B\[<[\d;]+[Mm]|\x1B\[M[\s\S]{3}|\x1B\[[IO]|\x1BO[ABCD]/g;
|
|
585177
585197
|
_state = null;
|
|
@@ -604876,7 +604896,7 @@ function setCarouselWriter(writer) {
|
|
|
604876
604896
|
chromeWrite2 = writer;
|
|
604877
604897
|
}
|
|
604878
604898
|
function fg(code8, text) {
|
|
604879
|
-
return
|
|
604899
|
+
return isTTY5 ? `\x1B[38;5;${code8}m${text}\x1B[0m` : text;
|
|
604880
604900
|
}
|
|
604881
604901
|
function displayWidth(str) {
|
|
604882
604902
|
let w = 0;
|
|
@@ -604914,12 +604934,12 @@ function createRow(phraseIndices, speed, direction, bank2) {
|
|
|
604914
604934
|
const phrases = phraseIndices.map((i2) => bank2[i2 % bank2.length]);
|
|
604915
604935
|
return { phrases, offset: 0, speed, direction, renderedPlain: "" };
|
|
604916
604936
|
}
|
|
604917
|
-
var
|
|
604937
|
+
var isTTY5, chromeWrite2, PHRASES, Carousel;
|
|
604918
604938
|
var init_carousel = __esm({
|
|
604919
604939
|
"packages/cli/src/tui/carousel.ts"() {
|
|
604920
604940
|
"use strict";
|
|
604921
604941
|
init_layout2();
|
|
604922
|
-
|
|
604942
|
+
isTTY5 = process.stdout.isTTY ?? false;
|
|
604923
604943
|
chromeWrite2 = ((data) => {
|
|
604924
604944
|
process.stdout.write(data);
|
|
604925
604945
|
});
|
|
@@ -605031,7 +605051,7 @@ var init_carousel = __esm({
|
|
|
605031
605051
|
* Sets scroll region to row 5+ for all content/readline.
|
|
605032
605052
|
*/
|
|
605033
605053
|
start() {
|
|
605034
|
-
if (!
|
|
605054
|
+
if (!isTTY5) return 0;
|
|
605035
605055
|
this.started = true;
|
|
605036
605056
|
setHeaderHeight(this.reservedRows);
|
|
605037
605057
|
const L = layout();
|
|
@@ -605063,7 +605083,7 @@ var init_carousel = __esm({
|
|
|
605063
605083
|
* Row 4 is left blank as a separator.
|
|
605064
605084
|
*/
|
|
605065
605085
|
renderFrame() {
|
|
605066
|
-
if (!
|
|
605086
|
+
if (!isTTY5) return;
|
|
605067
605087
|
const L = layout();
|
|
605068
605088
|
let buf = "\x1B7";
|
|
605069
605089
|
buf += "\x1B[?7l";
|
|
@@ -605140,7 +605160,7 @@ var init_carousel = __esm({
|
|
|
605140
605160
|
process.stdout.removeListener("resize", this.resizeHandler);
|
|
605141
605161
|
this.resizeHandler = null;
|
|
605142
605162
|
}
|
|
605143
|
-
if (!
|
|
605163
|
+
if (!isTTY5 || !this.started) return;
|
|
605144
605164
|
const L = layout();
|
|
605145
605165
|
let buf = "\x1B7";
|
|
605146
605166
|
for (let i2 = 0; i2 < this.reservedRows; i2++) {
|
|
@@ -605376,13 +605396,13 @@ function createAnimatedBanner(id, name10, frameBuilders, frameDurationMs, author
|
|
|
605376
605396
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
605377
605397
|
};
|
|
605378
605398
|
}
|
|
605379
|
-
var
|
|
605399
|
+
var isTTY6, chromeWrite3, MNEMONIC_ADJECTIVES, MNEMONIC_NOUNS, BannerRenderer;
|
|
605380
605400
|
var init_banner = __esm({
|
|
605381
605401
|
"packages/cli/src/tui/banner.ts"() {
|
|
605382
605402
|
"use strict";
|
|
605383
605403
|
init_theme();
|
|
605384
605404
|
init_layout2();
|
|
605385
|
-
|
|
605405
|
+
isTTY6 = process.stdout.isTTY ?? false;
|
|
605386
605406
|
chromeWrite3 = ((data) => {
|
|
605387
605407
|
process.stdout.write(data);
|
|
605388
605408
|
});
|
|
@@ -605544,7 +605564,7 @@ var init_banner = __esm({
|
|
|
605544
605564
|
* Returns the number of rows reserved (3 banner + 1 separator = 4).
|
|
605545
605565
|
*/
|
|
605546
605566
|
start() {
|
|
605547
|
-
if (!
|
|
605567
|
+
if (!isTTY6 || !this.currentDesign) return 0;
|
|
605548
605568
|
this.renderCurrentFrame();
|
|
605549
605569
|
this._resizeHandler = () => {
|
|
605550
605570
|
setTermSize(process.stdout.rows ?? 24, process.stdout.columns ?? 80);
|
|
@@ -605585,7 +605605,7 @@ var init_banner = __esm({
|
|
|
605585
605605
|
}
|
|
605586
605606
|
/** Render the current frame into the top 3 rows (public for refresh callbacks) */
|
|
605587
605607
|
renderCurrentFrame() {
|
|
605588
|
-
if (!
|
|
605608
|
+
if (!isTTY6 || !this.currentDesign) return;
|
|
605589
605609
|
const frame = this.currentDesign.frames[this.currentFrame];
|
|
605590
605610
|
if (!frame) return;
|
|
605591
605611
|
this.width = termCols();
|
|
@@ -606000,13 +606020,13 @@ __export(syntax_highlight_exports, {
|
|
|
606000
606020
|
prewarm: () => prewarm
|
|
606001
606021
|
});
|
|
606002
606022
|
function highlightingDisabled() {
|
|
606003
|
-
return !
|
|
606023
|
+
return !isTTY7 || noColorEnv || disableEnv;
|
|
606004
606024
|
}
|
|
606005
606025
|
async function loadHighlighter() {
|
|
606006
606026
|
if (_state2.attempted) return _state2.fn;
|
|
606007
606027
|
_state2.attempted = true;
|
|
606008
606028
|
if (highlightingDisabled()) {
|
|
606009
|
-
_state2.reason = !
|
|
606029
|
+
_state2.reason = !isTTY7 ? "non-tty" : noColorEnv ? "NO_COLOR set" : "OMNIUS_TUI_HIGHLIGHT=0";
|
|
606010
606030
|
return null;
|
|
606011
606031
|
}
|
|
606012
606032
|
try {
|
|
@@ -606053,7 +606073,7 @@ function getHighlightStatus() {
|
|
|
606053
606073
|
available: isAvailable(),
|
|
606054
606074
|
attempted: _state2.attempted,
|
|
606055
606075
|
reason: _state2.reason,
|
|
606056
|
-
isTTY:
|
|
606076
|
+
isTTY: isTTY7,
|
|
606057
606077
|
noColor: noColorEnv,
|
|
606058
606078
|
disabledByEnv: disableEnv
|
|
606059
606079
|
};
|
|
@@ -606143,11 +606163,11 @@ function highlightBlock(code8, language) {
|
|
|
606143
606163
|
return code8.split("\n");
|
|
606144
606164
|
}
|
|
606145
606165
|
}
|
|
606146
|
-
var
|
|
606166
|
+
var isTTY7, noColorEnv, disableEnv, _state2;
|
|
606147
606167
|
var init_syntax_highlight = __esm({
|
|
606148
606168
|
"packages/cli/src/tui/syntax-highlight.ts"() {
|
|
606149
606169
|
"use strict";
|
|
606150
|
-
|
|
606170
|
+
isTTY7 = process.stdout?.isTTY ?? false;
|
|
606151
606171
|
noColorEnv = process.env["NO_COLOR"] !== void 0 && process.env["NO_COLOR"] !== "";
|
|
606152
606172
|
disableEnv = process.env["OMNIUS_TUI_HIGHLIGHT"] === "0";
|
|
606153
606173
|
_state2 = {
|
|
@@ -606160,21 +606180,21 @@ var init_syntax_highlight = __esm({
|
|
|
606160
606180
|
|
|
606161
606181
|
// packages/cli/src/tui/stream-renderer.ts
|
|
606162
606182
|
function fg2564(code8, text) {
|
|
606163
|
-
return
|
|
606183
|
+
return isTTY8 ? `\x1B[38;5;${code8}m${text}\x1B[0m` : text;
|
|
606164
606184
|
}
|
|
606165
606185
|
function dimText(text) {
|
|
606166
|
-
return
|
|
606186
|
+
return isTTY8 ? `\x1B[38;5;${tuiTextDim()}m${text}\x1B[0m` : text;
|
|
606167
606187
|
}
|
|
606168
606188
|
function italicText(text) {
|
|
606169
|
-
return
|
|
606189
|
+
return isTTY8 ? `\x1B[3m${text}\x1B[0m` : text;
|
|
606170
606190
|
}
|
|
606171
606191
|
function dimItalic(text) {
|
|
606172
|
-
return
|
|
606192
|
+
return isTTY8 ? `\x1B[3m\x1B[38;5;${tuiTextDim()}m${text}\x1B[0m` : text;
|
|
606173
606193
|
}
|
|
606174
606194
|
function boldText(text) {
|
|
606175
|
-
return
|
|
606195
|
+
return isTTY8 ? `\x1B[1m${text}\x1B[0m` : text;
|
|
606176
606196
|
}
|
|
606177
|
-
var
|
|
606197
|
+
var isTTY8, PASTEL, StreamRenderer;
|
|
606178
606198
|
var init_stream_renderer = __esm({
|
|
606179
606199
|
"packages/cli/src/tui/stream-renderer.ts"() {
|
|
606180
606200
|
"use strict";
|
|
@@ -606182,7 +606202,7 @@ var init_stream_renderer = __esm({
|
|
|
606182
606202
|
init_text_selection();
|
|
606183
606203
|
init_theme();
|
|
606184
606204
|
init_syntax_highlight();
|
|
606185
|
-
|
|
606205
|
+
isTTY8 = process.stdout.isTTY ?? false;
|
|
606186
606206
|
PASTEL = {
|
|
606187
606207
|
key: 222,
|
|
606188
606208
|
// light gold — JSON keys
|
|
@@ -606551,7 +606571,7 @@ var init_stream_renderer = __esm({
|
|
|
606551
606571
|
* Also maintains _cursorCol so emitWrapped can decide when to force a
|
|
606552
606572
|
* wrap on the NEXT partial flush (avoiding bottom-row token pile-up). */
|
|
606553
606573
|
writeRaw(text) {
|
|
606554
|
-
if (
|
|
606574
|
+
if (isTTY8) {
|
|
606555
606575
|
process.stdout.write(`\x1B[?25l\x1B[?7l${text}\x1B[?7h`);
|
|
606556
606576
|
} else {
|
|
606557
606577
|
process.stdout.write(text);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.118",
|
|
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.118",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED