open-agents-ai 0.187.74 → 0.187.76
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 +73 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -248711,7 +248711,7 @@ var init_pdf_to_text = __esm({
|
|
|
248711
248711
|
const start2 = performance.now();
|
|
248712
248712
|
const rawPath = args["path"];
|
|
248713
248713
|
const pages = args["pages"];
|
|
248714
|
-
const
|
|
248714
|
+
const layout2 = args["layout"] === true;
|
|
248715
248715
|
const ocrIfEmpty = args["ocr_if_empty"] !== false;
|
|
248716
248716
|
const language = args["language"] ?? "eng";
|
|
248717
248717
|
if (!rawPath) {
|
|
@@ -248735,7 +248735,7 @@ var init_pdf_to_text = __esm({
|
|
|
248735
248735
|
};
|
|
248736
248736
|
}
|
|
248737
248737
|
const cmdParts = ["pdftotext"];
|
|
248738
|
-
if (
|
|
248738
|
+
if (layout2)
|
|
248739
248739
|
cmdParts.push("-layout");
|
|
248740
248740
|
let firstPage;
|
|
248741
248741
|
let lastPage;
|
|
@@ -278086,6 +278086,60 @@ var init_daemon_registry = __esm({
|
|
|
278086
278086
|
}
|
|
278087
278087
|
});
|
|
278088
278088
|
|
|
278089
|
+
// packages/cli/dist/tui/layout.js
|
|
278090
|
+
function layout() {
|
|
278091
|
+
const rows = _termRows;
|
|
278092
|
+
const cols = _termCols;
|
|
278093
|
+
const fh = _footerHeight;
|
|
278094
|
+
const headerTop = 1;
|
|
278095
|
+
const headerContent = 2;
|
|
278096
|
+
const headerBottom = 3;
|
|
278097
|
+
const contentTop = headerBottom + 1;
|
|
278098
|
+
const footerMetrics = rows;
|
|
278099
|
+
const footerBoxBottom = footerMetrics - 1;
|
|
278100
|
+
const footerBoxTop = rows - fh + 1;
|
|
278101
|
+
const footerInput = footerBoxTop + 1;
|
|
278102
|
+
const contentBottom = footerBoxTop - 1;
|
|
278103
|
+
const contentHeight = Math.max(1, contentBottom - contentTop + 1);
|
|
278104
|
+
return {
|
|
278105
|
+
rows,
|
|
278106
|
+
cols,
|
|
278107
|
+
headerTop,
|
|
278108
|
+
headerContent,
|
|
278109
|
+
headerBottom,
|
|
278110
|
+
contentTop,
|
|
278111
|
+
contentBottom,
|
|
278112
|
+
contentHeight,
|
|
278113
|
+
footerBoxTop,
|
|
278114
|
+
footerInput,
|
|
278115
|
+
footerBoxBottom,
|
|
278116
|
+
footerMetrics,
|
|
278117
|
+
scrollRegionTop: contentTop,
|
|
278118
|
+
scrollRegionBottom: contentBottom,
|
|
278119
|
+
footerHeight: fh,
|
|
278120
|
+
headerHeight: _headerHeight
|
|
278121
|
+
};
|
|
278122
|
+
}
|
|
278123
|
+
function setTermSize(rows, cols) {
|
|
278124
|
+
_termRows = rows;
|
|
278125
|
+
_termCols = cols;
|
|
278126
|
+
}
|
|
278127
|
+
function setFooterHeight(height) {
|
|
278128
|
+
_footerHeight = Math.max(FOOTER_MIN_ROWS, height);
|
|
278129
|
+
}
|
|
278130
|
+
var HEADER_ROWS, FOOTER_MIN_ROWS, _termRows, _termCols, _footerHeight, _headerHeight;
|
|
278131
|
+
var init_layout2 = __esm({
|
|
278132
|
+
"packages/cli/dist/tui/layout.js"() {
|
|
278133
|
+
"use strict";
|
|
278134
|
+
HEADER_ROWS = 3;
|
|
278135
|
+
FOOTER_MIN_ROWS = 4;
|
|
278136
|
+
_termRows = 24;
|
|
278137
|
+
_termCols = 80;
|
|
278138
|
+
_footerHeight = FOOTER_MIN_ROWS;
|
|
278139
|
+
_headerHeight = HEADER_ROWS;
|
|
278140
|
+
}
|
|
278141
|
+
});
|
|
278142
|
+
|
|
278089
278143
|
// packages/cli/dist/tui/status-bar.js
|
|
278090
278144
|
var status_bar_exports = {};
|
|
278091
278145
|
__export(status_bar_exports, {
|
|
@@ -278127,6 +278181,7 @@ var init_status_bar = __esm({
|
|
|
278127
278181
|
init_text_selection();
|
|
278128
278182
|
init_daemon_registry();
|
|
278129
278183
|
init_theme();
|
|
278184
|
+
init_layout2();
|
|
278130
278185
|
EXPERT_TOOL_BASELINES = {
|
|
278131
278186
|
file_read: 12,
|
|
278132
278187
|
structured_read: 15,
|
|
@@ -279677,11 +279732,12 @@ var init_status_bar = __esm({
|
|
|
279677
279732
|
this.updateFooterHeight();
|
|
279678
279733
|
if (this._currentFooterHeight < 4)
|
|
279679
279734
|
this._currentFooterHeight = 4;
|
|
279735
|
+
setTermSize(process.stdout.rows ?? 24, process.stdout.columns ?? 80);
|
|
279736
|
+
setFooterHeight(this._currentFooterHeight);
|
|
279680
279737
|
this.cancelMouseIdle();
|
|
279681
279738
|
this.enableMouseTracking();
|
|
279682
|
-
const
|
|
279683
|
-
const
|
|
279684
|
-
const scrollEnd = pos.scrollEnd;
|
|
279739
|
+
const L = layout();
|
|
279740
|
+
const scrollEnd = L.scrollRegionBottom;
|
|
279685
279741
|
if (this.writeDepth === 1 && !this._origWrite) {
|
|
279686
279742
|
this._origWrite = this._trueStdoutWrite;
|
|
279687
279743
|
const origBound = this._trueStdoutWrite;
|
|
@@ -279856,10 +279912,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
279856
279912
|
positionAtInput() {
|
|
279857
279913
|
if (!this.active)
|
|
279858
279914
|
return;
|
|
279859
|
-
const
|
|
279860
|
-
|
|
279861
|
-
const inputTextRow = pos.inputStartRow + 1;
|
|
279862
|
-
this.termWrite(`\x1B[${inputTextRow};${this.promptWidth + 1}H\x1B[?25h`);
|
|
279915
|
+
const L = layout();
|
|
279916
|
+
this.termWrite(`\x1B[${L.footerInput};${this.promptWidth + 1}H\x1B[?25h`);
|
|
279863
279917
|
}
|
|
279864
279918
|
/** Strip ANSI escape codes to measure visible character width */
|
|
279865
279919
|
static visWidth(s2) {
|
|
@@ -280209,6 +280263,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
280209
280263
|
const newHeight = 1 + 1 + inputLines + suggestionRows;
|
|
280210
280264
|
if (newHeight !== this._currentFooterHeight) {
|
|
280211
280265
|
this._currentFooterHeight = newHeight;
|
|
280266
|
+
setTermSize(process.stdout.rows ?? 24, process.stdout.columns ?? 80);
|
|
280267
|
+
setFooterHeight(newHeight);
|
|
280212
280268
|
return true;
|
|
280213
280269
|
}
|
|
280214
280270
|
return false;
|
|
@@ -294114,15 +294170,15 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
294114
294170
|
let _installProgress = 0;
|
|
294115
294171
|
let _installTotal = 10;
|
|
294116
294172
|
function renderInstallFrame(version4, _frame, statusLine) {
|
|
294117
|
-
const
|
|
294118
|
-
const
|
|
294173
|
+
const L = layout();
|
|
294174
|
+
const cols = L.cols;
|
|
294119
294175
|
const { tuiAccent: getAccent, tuiBgSeq: getBgSeq, tuiBoxFg: getBoxFg } = (init_theme(), __toCommonJS(theme_exports));
|
|
294120
294176
|
const accentColor = getAccent() < 0 ? 252 : getAccent();
|
|
294121
294177
|
const boxFg = getBoxFg();
|
|
294122
294178
|
const bgSeq = getBgSeq();
|
|
294123
|
-
const contentTop =
|
|
294124
|
-
const contentBottom =
|
|
294125
|
-
const contentHeight =
|
|
294179
|
+
const contentTop = L.contentTop;
|
|
294180
|
+
const contentBottom = L.contentBottom;
|
|
294181
|
+
const contentHeight = L.contentHeight;
|
|
294126
294182
|
let buf = "\x1B[?2026h\x1B7\x1B[?25l";
|
|
294127
294183
|
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
294128
294184
|
buf += `\x1B[${r2};1H${bgSeq}\x1B[2K`;
|
|
@@ -294196,12 +294252,10 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
294196
294252
|
dismiss() {
|
|
294197
294253
|
unlockFooterRedraws();
|
|
294198
294254
|
clearInterval(timer);
|
|
294199
|
-
const
|
|
294200
|
-
const contentTop = 4;
|
|
294201
|
-
const contentBottom = rows - 2;
|
|
294255
|
+
const LD = layout();
|
|
294202
294256
|
const { tuiBgSeq: getDismissBg } = (init_theme(), __toCommonJS(theme_exports));
|
|
294203
294257
|
let buf = "\x1B7";
|
|
294204
|
-
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
294258
|
+
for (let r2 = LD.contentTop; r2 <= LD.contentBottom; r2++) {
|
|
294205
294259
|
buf += `\x1B[${r2};1H${getDismissBg()}\x1B[2K`;
|
|
294206
294260
|
}
|
|
294207
294261
|
buf += "\x1B8";
|
|
@@ -295143,6 +295197,7 @@ var init_commands = __esm({
|
|
|
295143
295197
|
init_oa_directory();
|
|
295144
295198
|
init_theme();
|
|
295145
295199
|
init_status_bar();
|
|
295200
|
+
init_layout2();
|
|
295146
295201
|
init_setup();
|
|
295147
295202
|
init_listen();
|
|
295148
295203
|
init_dist();
|
package/package.json
CHANGED