open-agents-ai 0.138.95 → 0.138.96
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 +18 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38606,6 +38606,15 @@ async function startNeovimMode(opts) {
|
|
|
38606
38606
|
cleanedUp: false
|
|
38607
38607
|
};
|
|
38608
38608
|
_state = state;
|
|
38609
|
+
const backLabel = " \u2190 back ";
|
|
38610
|
+
const backStartCol = 2;
|
|
38611
|
+
const backEndCol = backStartCol + backLabel.length - 1;
|
|
38612
|
+
function renderBackButton() {
|
|
38613
|
+
if (!isTTY5)
|
|
38614
|
+
return;
|
|
38615
|
+
process.stdout.write(`\x1B7\x1B[1;${backStartCol}H\x1B]8;;oa-cmd:back\x07\x1B[38;5;245m\x1B[48;5;236m${backLabel}\x1B]8;;\x07\x1B[0m\x1B8`);
|
|
38616
|
+
}
|
|
38617
|
+
renderBackButton();
|
|
38609
38618
|
nvimPty.onData((data) => {
|
|
38610
38619
|
if (state.cleanedUp)
|
|
38611
38620
|
return;
|
|
@@ -38620,6 +38629,7 @@ async function startNeovimMode(opts) {
|
|
|
38620
38629
|
} else {
|
|
38621
38630
|
process.stdout.write(filtered);
|
|
38622
38631
|
}
|
|
38632
|
+
renderBackButton();
|
|
38623
38633
|
});
|
|
38624
38634
|
nvimPty.onExit(() => {
|
|
38625
38635
|
if (!state.cleanedUp) {
|
|
@@ -38652,6 +38662,14 @@ async function startNeovimMode(opts) {
|
|
|
38652
38662
|
toggleFocus(state);
|
|
38653
38663
|
return;
|
|
38654
38664
|
}
|
|
38665
|
+
const backClick = seq.match(/\x1B\[<0;(\d+);1M/);
|
|
38666
|
+
if (backClick) {
|
|
38667
|
+
const clickCol = parseInt(backClick[1]);
|
|
38668
|
+
if (clickCol >= backStartCol && clickCol <= backEndCol) {
|
|
38669
|
+
doCleanup(state);
|
|
38670
|
+
return;
|
|
38671
|
+
}
|
|
38672
|
+
}
|
|
38655
38673
|
if (state.focused) {
|
|
38656
38674
|
let normalized = seq.replace(/\x1BO([ABCD])/g, "\x1B[$1");
|
|
38657
38675
|
if (topOffset > 0) {
|
package/package.json
CHANGED