omnius 1.0.297 → 1.0.298
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 +16 -7
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -607449,7 +607449,7 @@ var init_status_bar = __esm({
|
|
|
607449
607449
|
const decorateMenuButton = (cmd, label) => {
|
|
607450
607450
|
return linkify(
|
|
607451
607451
|
cmd,
|
|
607452
|
-
`${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}
|
|
607452
|
+
`${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}🭁${label}🭝\x1B[0m${PANEL_BG_SEQ}`
|
|
607453
607453
|
);
|
|
607454
607454
|
};
|
|
607455
607455
|
const renderBtn = (cmd, label) => {
|
|
@@ -607472,7 +607472,11 @@ var init_status_bar = __esm({
|
|
|
607472
607472
|
const menuBtns = [
|
|
607473
607473
|
{ cmd: "help", label: "help", w: "help".length + 2 },
|
|
607474
607474
|
// +2 for spaces
|
|
607475
|
-
{
|
|
607475
|
+
{
|
|
607476
|
+
cmd: "voice",
|
|
607477
|
+
label: this._voiceActive ? this._voiceModelId || "voice" : "voice",
|
|
607478
|
+
w: (this._voiceActive ? this._voiceModelId || "voice" : "voice").length + 2
|
|
607479
|
+
},
|
|
607476
607480
|
// +2 for spaces
|
|
607477
607481
|
{ cmd: "model", label: modelLabel, w: modelLabel.length + 2 },
|
|
607478
607482
|
// +2 for spaces
|
|
@@ -607763,7 +607767,9 @@ var init_status_bar = __esm({
|
|
|
607763
607767
|
buf += `\x1B[${subRow};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
607764
607768
|
buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607765
607769
|
buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
|
|
607766
|
-
const subAgents = this._agentViews.size > 1 ? Array.from(this._agentViews.values()).filter((v) => v.id !== "main").map(
|
|
607770
|
+
const subAgents = this._agentViews.size > 1 ? Array.from(this._agentViews.values()).filter((v) => v.id !== "main").map(
|
|
607771
|
+
(v) => `${v.status === "running" ? "●" : v.status === "completed" ? "✓" : "○"} ${v.label}`
|
|
607772
|
+
).join(" ") : "no sub-agents";
|
|
607767
607773
|
buf += subAgents.substring(0, w - 4);
|
|
607768
607774
|
buf += `\x1B[${subRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607769
607775
|
const sepRow = subRow + 1;
|
|
@@ -607776,7 +607782,7 @@ var init_status_bar = __esm({
|
|
|
607776
607782
|
buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
|
|
607777
607783
|
buf += `scroll: ${scrollPct}`.substring(0, w - 4);
|
|
607778
607784
|
buf += `\x1B[${scrollRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607779
|
-
buf += `\x1B[${scrollRow};1H${BOX_FG}
|
|
607785
|
+
buf += `\x1B[${scrollRow};1H${BOX_FG}╰${"─".repeat(w - 2)}${BOX_FG}╯${RESET4}${PANEL_BG_SEQ}`;
|
|
607780
607786
|
} else {
|
|
607781
607787
|
const scrollRow = hdrRow + 1;
|
|
607782
607788
|
buf += `\x1B[${scrollRow};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
@@ -607784,7 +607790,7 @@ var init_status_bar = __esm({
|
|
|
607784
607790
|
buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
|
|
607785
607791
|
buf += `scroll: ${scrollPct}`.substring(0, w - 4);
|
|
607786
607792
|
buf += `\x1B[${scrollRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607787
|
-
buf += `\x1B[${scrollRow};1H${BOX_FG}
|
|
607793
|
+
buf += `\x1B[${scrollRow};1H${BOX_FG}╰${"─".repeat(w - 2)}${BOX_FG}╯${RESET4}${PANEL_BG_SEQ}`;
|
|
607788
607794
|
}
|
|
607789
607795
|
buf += "\x1B8";
|
|
607790
607796
|
this.termWrite(buf);
|
|
@@ -610069,7 +610075,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610069
610075
|
if (m2.hasPricing && m2.estimatedCost !== void 0) {
|
|
610070
610076
|
const costStr = m2.estimatedCost < 0.01 ? `$${m2.estimatedCost.toFixed(4)}` : m2.estimatedCost < 1 ? `$${m2.estimatedCost.toFixed(3)}` : `$${m2.estimatedCost.toFixed(2)}`;
|
|
610071
610077
|
const costExpanded = pastel2(222, "Cost ") + _StatusBar.digitBarAnsi(Math.round(m2.estimatedCost * 1e4), 222);
|
|
610072
|
-
const costCompact = _StatusBar.digitBarAnsi(
|
|
610078
|
+
const costCompact = _StatusBar.digitBarAnsi(
|
|
610079
|
+
Math.round(m2.estimatedCost * 1e4),
|
|
610080
|
+
222
|
|
610081
|
+
);
|
|
610073
610082
|
sections.push({
|
|
610074
610083
|
expanded: costExpanded,
|
|
610075
610084
|
compact: costCompact,
|
|
@@ -610273,7 +610282,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610273
610282
|
const sec = sections[idx];
|
|
610274
610283
|
const content = isCompact[idx] ? sec.compact : sec.expanded;
|
|
610275
610284
|
const color = sec.btnColor ?? 183;
|
|
610276
|
-
result += ` ${PANEL_BG_SEQ}\x1B[38;5;${
|
|
610285
|
+
result += ` ${PANEL_BG_SEQ}\x1B[38;5;${color}m${content}\x1B[0m `;
|
|
610277
610286
|
}
|
|
610278
610287
|
return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
|
|
610279
610288
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.298",
|
|
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.298",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED