omnius 1.0.266 → 1.0.267
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 +68 -53
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -606213,7 +606213,10 @@ var init_status_bar = __esm({
|
|
|
606213
606213
|
const sentinel = `${this.DYNAMIC_BLOCK_MARK_PREFIX}${id}${this.DYNAMIC_BLOCK_MARK_SUFFIX}`;
|
|
606214
606214
|
this._contentLines.push(sentinel);
|
|
606215
606215
|
if (this._contentLines.length > this._contentMaxLines) {
|
|
606216
|
-
this._contentLines.splice(
|
|
606216
|
+
this._contentLines.splice(
|
|
606217
|
+
0,
|
|
606218
|
+
this._contentLines.length - this._contentMaxLines
|
|
606219
|
+
);
|
|
606217
606220
|
this.clampContentScrollOffset();
|
|
606218
606221
|
}
|
|
606219
606222
|
if (this._autoScroll && !this._mouseSelecting)
|
|
@@ -606346,8 +606349,13 @@ var init_status_bar = __esm({
|
|
|
606346
606349
|
];
|
|
606347
606350
|
const model = this.summarizeHeaderModelName();
|
|
606348
606351
|
const transport = this.summarizeHeaderTransport();
|
|
606349
|
-
if (model)
|
|
606350
|
-
|
|
606352
|
+
if (model)
|
|
606353
|
+
parts.push({ text: ` ${model} `, width: stripAnsi(` ${model} `).length });
|
|
606354
|
+
if (transport)
|
|
606355
|
+
parts.push({
|
|
606356
|
+
text: ` ${transport} `,
|
|
606357
|
+
width: stripAnsi(` ${transport} `).length
|
|
606358
|
+
});
|
|
606351
606359
|
if (this._updateLatest) {
|
|
606352
606360
|
const last2 = parts[parts.length - 1];
|
|
606353
606361
|
if (last2) {
|
|
@@ -606566,7 +606574,10 @@ var init_status_bar = __esm({
|
|
|
606566
606574
|
const telegramDot = this._telegramStatus.active ? "●" : "○";
|
|
606567
606575
|
const telegramLabel = this._telegramStatus.activeSubAgents > 0 ? ` ✈ tg ${this._telegramStatus.activeSubAgents} ` : " ✈ tg ";
|
|
606568
606576
|
sysItems.push({
|
|
606569
|
-
render: () => renderBtn(
|
|
606577
|
+
render: () => renderBtn(
|
|
606578
|
+
"telegram",
|
|
606579
|
+
`\x1B[38;5;45m${telegramDot}${telegramLabel}\x1B[0m`
|
|
606580
|
+
) + " ",
|
|
606570
606581
|
w: telegramLabel.length + 2
|
|
606571
606582
|
});
|
|
606572
606583
|
const nexusDot = this._nexusStatus === "connected" || this._nexusStatus === "connecting" ? "●" : "○";
|
|
@@ -607094,7 +607105,9 @@ var init_status_bar = __esm({
|
|
|
607094
607105
|
Promise.resolve().then(() => (init_dist8(), dist_exports3)).then(({ getOllamaPool: getOllamaPool2, resolveDefaultPoolConfig: resolveDefaultPoolConfig2 }) => {
|
|
607095
607106
|
try {
|
|
607096
607107
|
const config = resolveDefaultPoolConfig2();
|
|
607097
|
-
const pool3 = getOllamaPool2({
|
|
607108
|
+
const pool3 = getOllamaPool2({
|
|
607109
|
+
baseInstanceUrl: config.baseInstanceUrl
|
|
607110
|
+
});
|
|
607098
607111
|
broker.setOllamaAffinityProvider((modelName) => {
|
|
607099
607112
|
try {
|
|
607100
607113
|
const status = pool3.status?.();
|
|
@@ -607670,7 +607683,10 @@ var init_status_bar = __esm({
|
|
|
607670
607683
|
if (!this._mouseTrackingEnabled) return;
|
|
607671
607684
|
this._mouseTrackingEnabled = false;
|
|
607672
607685
|
if (process.stdout.isTTY) {
|
|
607673
|
-
this._trueStdoutWrite.call(
|
|
607686
|
+
this._trueStdoutWrite.call(
|
|
607687
|
+
process.stdout,
|
|
607688
|
+
"\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l"
|
|
607689
|
+
);
|
|
607674
607690
|
}
|
|
607675
607691
|
}
|
|
607676
607692
|
/** Re-apply the current mouse preference after overlays, password prompts, or redraws. */
|
|
@@ -608474,10 +608490,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
608474
608490
|
reflowContentLine(line, width) {
|
|
608475
608491
|
const visible = stripAnsi(line);
|
|
608476
608492
|
if (visible.length <= width) return [line];
|
|
608477
|
-
const continuationIndent = this.hangingIndentForVisibleLine(
|
|
608478
|
-
visible,
|
|
608479
|
-
width
|
|
608480
|
-
);
|
|
608493
|
+
const continuationIndent = this.hangingIndentForVisibleLine(visible, width);
|
|
608481
608494
|
const ranges = this.visibleWrapRanges(
|
|
608482
608495
|
visible,
|
|
608483
608496
|
width,
|
|
@@ -608650,46 +608663,28 @@ ${CONTENT_BG_SEQ}`);
|
|
|
608650
608663
|
(line) => line.replace(/\x1B\[[0-9;]*[a-zA-Z]/g, "").replace(/\x1B\]?[^\x07]*\x07/g, "")
|
|
608651
608664
|
);
|
|
608652
608665
|
const text2 = stripped.join("\n");
|
|
608653
|
-
|
|
608654
|
-
|
|
608655
|
-
|
|
608656
|
-
["xsel", "--clipboard", "--input"]
|
|
608657
|
-
];
|
|
608658
|
-
let success = false;
|
|
608659
|
-
for (const [cmd, ...args] of clipboardCmds) {
|
|
608666
|
+
if (text2.length === 0) return;
|
|
608667
|
+
const ok3 = copyText(text2);
|
|
608668
|
+
if (!ok3) {
|
|
608660
608669
|
try {
|
|
608661
|
-
const
|
|
608662
|
-
const
|
|
608663
|
-
|
|
608664
|
-
|
|
608665
|
-
|
|
608666
|
-
|
|
608667
|
-
|
|
608668
|
-
|
|
608669
|
-
|
|
608670
|
-
|
|
608671
|
-
|
|
608672
|
-
setTimeout(() => {
|
|
608673
|
-
if (!success) {
|
|
608674
|
-
try {
|
|
608675
|
-
child.kill();
|
|
608676
|
-
} catch {
|
|
608677
|
-
}
|
|
608678
|
-
}
|
|
608679
|
-
}, 500);
|
|
608680
|
-
break;
|
|
608670
|
+
const fs11 = __require("fs");
|
|
608671
|
+
const os9 = __require("os");
|
|
608672
|
+
const tmpPath = __require("path").join(
|
|
608673
|
+
os9.tmpdir(),
|
|
608674
|
+
"omnius-session-copy.txt"
|
|
608675
|
+
);
|
|
608676
|
+
fs11.writeFileSync(tmpPath, text2, "utf-8");
|
|
608677
|
+
process.stderr.write(
|
|
608678
|
+
`\x1B[38;5;208mClipboard unavailable — session saved to ${tmpPath}\x1B[0m
|
|
608679
|
+
`
|
|
608680
|
+
);
|
|
608681
608681
|
} catch {
|
|
608682
|
-
|
|
608682
|
+
process.stderr.write(
|
|
608683
|
+
`\x1B[38;5;196mFailed to save session to clipboard or temp file.\x1B[0m
|
|
608684
|
+
`
|
|
608685
|
+
);
|
|
608683
608686
|
}
|
|
608684
608687
|
}
|
|
608685
|
-
if (!success) {
|
|
608686
|
-
const fs11 = __require("fs");
|
|
608687
|
-
const os9 = __require("os");
|
|
608688
|
-
const tmpPath = __require("path").join(os9.tmpdir(), "omnius-session-copy.txt");
|
|
608689
|
-
fs11.writeFileSync(tmpPath, text2, "utf-8");
|
|
608690
|
-
process.stderr.write(`\x1B[38;5;208mClipboard unavailable — session saved to ${tmpPath}\x1B[0m
|
|
608691
|
-
`);
|
|
608692
|
-
}
|
|
608693
608688
|
}
|
|
608694
608689
|
/**
|
|
608695
608690
|
* WO-TASK-02 — sync the tasks panel "pager" scope flag with the current
|
|
@@ -608757,7 +608752,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
608757
608752
|
end: startCol + label.length - 1
|
|
608758
608753
|
};
|
|
608759
608754
|
const copyLabel = " ⎘ copy session ";
|
|
608760
|
-
const copyCol = Math.max(
|
|
608755
|
+
const copyCol = Math.max(
|
|
608756
|
+
startCol + label.length + 2,
|
|
608757
|
+
w - copyLabel.length
|
|
608758
|
+
);
|
|
608761
608759
|
if (copyCol + copyLabel.length <= w) {
|
|
608762
608760
|
buf += `\x1B[${spacerRow};${copyCol}H\x1B[38;5;141m${copyLabel}\x1B[0m${CONTENT_BG_SEQ}`;
|
|
608763
608761
|
this._copyBtnRegion = {
|
|
@@ -609268,7 +609266,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609268
609266
|
if (!this.inputStateProvider) return 1;
|
|
609269
609267
|
const availWidth = this.inputTextWidth(termWidth);
|
|
609270
609268
|
const { line } = this.inputStateProvider();
|
|
609271
|
-
return Math.max(
|
|
609269
|
+
return Math.max(
|
|
609270
|
+
1,
|
|
609271
|
+
this.wrapPlainInputText(line, availWidth).rawLines.length
|
|
609272
|
+
);
|
|
609272
609273
|
}
|
|
609273
609274
|
/** Update _currentFooterHeight based on current input + suggestions. Returns true if height changed. */
|
|
609274
609275
|
updateFooterHeight(termWidth) {
|
|
@@ -609344,10 +609345,16 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609344
609345
|
cursorRow: 0,
|
|
609345
609346
|
// Align with bordered input layout: col1 is │, content starts at col2.
|
|
609346
609347
|
// Keep this consistent with the wrapped path (+2) and positionAtInput().
|
|
609347
|
-
cursorCol: Math.min(
|
|
609348
|
+
cursorCol: Math.min(
|
|
609349
|
+
Math.max(1, termWidth - 1),
|
|
609350
|
+
this.promptWidth + cursorPos + 2
|
|
609351
|
+
)
|
|
609348
609352
|
};
|
|
609349
609353
|
}
|
|
609350
|
-
const { rawLines, charPositions } = this.wrapPlainInputText(
|
|
609354
|
+
const { rawLines, charPositions } = this.wrapPlainInputText(
|
|
609355
|
+
fullLine,
|
|
609356
|
+
availWidth
|
|
609357
|
+
);
|
|
609351
609358
|
let cursorLineIdx = rawLines.length - 1;
|
|
609352
609359
|
let cursorColInLine = cursorPos;
|
|
609353
609360
|
for (let i2 = 0; i2 < charPositions.length; i2++) {
|
|
@@ -609366,7 +609373,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609366
609373
|
lines,
|
|
609367
609374
|
cursorRow: cursorLineIdx,
|
|
609368
609375
|
// +2 accounts for the left box border (│ at col 1) and the column after it
|
|
609369
|
-
cursorCol: Math.min(
|
|
609376
|
+
cursorCol: Math.min(
|
|
609377
|
+
Math.max(1, termWidth - 1),
|
|
609378
|
+
this.promptWidth + cursorColInLine + 2
|
|
609379
|
+
)
|
|
609370
609380
|
};
|
|
609371
609381
|
}
|
|
609372
609382
|
/** Set the DECSTBM scroll region to exclude the dynamic footer rows */
|
|
@@ -609543,7 +609553,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609543
609553
|
* If footer height changed, also updates DECSTBM and redraws full footer.
|
|
609544
609554
|
*/
|
|
609545
609555
|
renderInputRowDuringStream(force = false) {
|
|
609546
|
-
if (!this.active || this._resizing && !force || !this.inputStateProvider)
|
|
609556
|
+
if (!this.active || this._resizing && !force || !this.inputStateProvider)
|
|
609557
|
+
return;
|
|
609547
609558
|
const rows = termRows();
|
|
609548
609559
|
const w = getTermWidth();
|
|
609549
609560
|
const oldFooterHeight = this._currentFooterHeight;
|
|
@@ -609992,7 +610003,11 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609992
610003
|
totalToolCalls: this._toolCalls,
|
|
609993
610004
|
successfulToolCalls: this._successfulToolCalls,
|
|
609994
610005
|
failedToolCalls: this._failedToolCalls,
|
|
609995
|
-
toolCallBreakdown: this._toolCallBreakdown.map((t2) => ({
|
|
610006
|
+
toolCallBreakdown: this._toolCallBreakdown.map((t2) => ({
|
|
610007
|
+
name: t2.name,
|
|
610008
|
+
count: t2.count,
|
|
610009
|
+
avgDurationMs: 0
|
|
610010
|
+
})),
|
|
609996
610011
|
contextWindowSize: m2.contextWindowSize,
|
|
609997
610012
|
estimatedContextTokens: m2.estimatedContextTokens,
|
|
609998
610013
|
peakContextTokens: m2.estimatedContextTokens,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.267",
|
|
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.267",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED