open-agents-ai 0.187.398 → 0.187.399
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 +32 -8
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -533402,17 +533402,31 @@ var init_status_bar = __esm({
|
|
|
533402
533402
|
get hasSuggestions() {
|
|
533403
533403
|
return this._suggestions.length > 0;
|
|
533404
533404
|
}
|
|
533405
|
-
/** Move suggestion highlight up */
|
|
533405
|
+
/** Move suggestion highlight up. Returns false at the top edge so callers can hand off to history. */
|
|
533406
533406
|
suggestUp() {
|
|
533407
|
-
if (this._suggestions.length === 0) return;
|
|
533408
|
-
|
|
533407
|
+
if (this._suggestions.length === 0) return false;
|
|
533408
|
+
if (this._suggestIndex < 0) {
|
|
533409
|
+
this._suggestIndex = this._suggestions.length - 1;
|
|
533410
|
+
} else if (this._suggestIndex > 0) {
|
|
533411
|
+
this._suggestIndex -= 1;
|
|
533412
|
+
} else {
|
|
533413
|
+
return false;
|
|
533414
|
+
}
|
|
533409
533415
|
if (this.active) this.renderFooterPreserveCursor();
|
|
533416
|
+
return true;
|
|
533410
533417
|
}
|
|
533411
|
-
/** Move suggestion highlight down */
|
|
533418
|
+
/** Move suggestion highlight down. Returns false at the bottom edge so callers can hand off to history. */
|
|
533412
533419
|
suggestDown() {
|
|
533413
|
-
if (this._suggestions.length === 0) return;
|
|
533414
|
-
|
|
533420
|
+
if (this._suggestions.length === 0) return false;
|
|
533421
|
+
if (this._suggestIndex < 0) {
|
|
533422
|
+
this._suggestIndex = 0;
|
|
533423
|
+
} else if (this._suggestIndex < this._suggestions.length - 1) {
|
|
533424
|
+
this._suggestIndex += 1;
|
|
533425
|
+
} else {
|
|
533426
|
+
return false;
|
|
533427
|
+
}
|
|
533415
533428
|
if (this.active) this.renderFooterPreserveCursor();
|
|
533429
|
+
return true;
|
|
533416
533430
|
}
|
|
533417
533431
|
/** Accept the currently highlighted suggestion */
|
|
533418
533432
|
suggestAccept() {
|
|
@@ -535063,6 +535077,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
535063
535077
|
else self2.scrollContentDown(1);
|
|
535064
535078
|
return;
|
|
535065
535079
|
}
|
|
535080
|
+
if (self2._suggestions.length > 0) {
|
|
535081
|
+
const handled = key.name === "up" ? self2.suggestUp() : self2.suggestDown();
|
|
535082
|
+
if (handled) return;
|
|
535083
|
+
}
|
|
535066
535084
|
self2.notifyHistoryNavigation();
|
|
535067
535085
|
return origTtyWrite(s2, key);
|
|
535068
535086
|
}
|
|
@@ -535141,19 +535159,25 @@ ${CONTENT_BG_SEQ}`);
|
|
|
535141
535159
|
di.on("ctrl-shift-b", () => self2.armBlockSelection());
|
|
535142
535160
|
di.on("up", () => {
|
|
535143
535161
|
if (self2._suggestions.length > 0) {
|
|
535144
|
-
self2.suggestUp();
|
|
535162
|
+
if (self2.suggestUp()) return;
|
|
535163
|
+
self2.notifyHistoryNavigation();
|
|
535164
|
+
di.historyUp();
|
|
535145
535165
|
} else if (self2.writeDepth > 0 || self2._contentScrollOffset > 0) {
|
|
535146
535166
|
self2.scrollContentUp(1);
|
|
535147
535167
|
} else {
|
|
535168
|
+
self2.notifyHistoryNavigation();
|
|
535148
535169
|
di.historyUp();
|
|
535149
535170
|
}
|
|
535150
535171
|
});
|
|
535151
535172
|
di.on("down", () => {
|
|
535152
535173
|
if (self2._suggestions.length > 0) {
|
|
535153
|
-
self2.suggestDown();
|
|
535174
|
+
if (self2.suggestDown()) return;
|
|
535175
|
+
self2.notifyHistoryNavigation();
|
|
535176
|
+
di.historyDown();
|
|
535154
535177
|
} else if (self2.writeDepth > 0 || self2._contentScrollOffset > 0) {
|
|
535155
535178
|
self2.scrollContentDown(1);
|
|
535156
535179
|
} else {
|
|
535180
|
+
self2.notifyHistoryNavigation();
|
|
535157
535181
|
di.historyDown();
|
|
535158
535182
|
}
|
|
535159
535183
|
});
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.399",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.399",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED