open-agents-ai 0.138.85 → 0.138.86
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 +11 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53439,27 +53439,19 @@ var init_status_bar = __esm({
|
|
|
53439
53439
|
const cmd = hitTestHeaderButton(row, col, w);
|
|
53440
53440
|
if (type === "press" && cmd) {
|
|
53441
53441
|
setPressedButton(cmd);
|
|
53442
|
+
setHoveredButton(null);
|
|
53442
53443
|
this.renderHeaderButtons();
|
|
53444
|
+
if (this._headerButtonHandler)
|
|
53445
|
+
this._headerButtonHandler(cmd);
|
|
53443
53446
|
setTimeout(() => {
|
|
53444
53447
|
setPressedButton(null);
|
|
53445
53448
|
this.renderHeaderButtons();
|
|
53446
|
-
|
|
53447
|
-
this._headerButtonHandler(cmd);
|
|
53448
|
-
}, 100);
|
|
53449
|
-
return;
|
|
53450
|
-
}
|
|
53451
|
-
if (type === "drag") {
|
|
53452
|
-
const prev = globalThis.__oaHoveredBtn;
|
|
53453
|
-
setHoveredButton(cmd);
|
|
53454
|
-
if (cmd !== prev) {
|
|
53455
|
-
globalThis.__oaHoveredBtn = cmd;
|
|
53456
|
-
this.renderHeaderButtons();
|
|
53457
|
-
}
|
|
53449
|
+
}, 150);
|
|
53458
53450
|
return;
|
|
53459
53451
|
}
|
|
53460
53452
|
if (type === "release") {
|
|
53453
|
+
setPressedButton(null);
|
|
53461
53454
|
setHoveredButton(null);
|
|
53462
|
-
globalThis.__oaHoveredBtn = null;
|
|
53463
53455
|
this.renderHeaderButtons();
|
|
53464
53456
|
return;
|
|
53465
53457
|
}
|
|
@@ -56477,18 +56469,19 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
56477
56469
|
}
|
|
56478
56470
|
});
|
|
56479
56471
|
let commandCtxRef = null;
|
|
56472
|
+
let headerBtnActive = null;
|
|
56480
56473
|
statusBar.setHeaderButtonHandler((command) => {
|
|
56481
56474
|
if (!commandCtxRef)
|
|
56482
56475
|
return;
|
|
56476
|
+
if (headerBtnActive)
|
|
56477
|
+
return;
|
|
56478
|
+
headerBtnActive = command;
|
|
56483
56479
|
(async () => {
|
|
56484
56480
|
try {
|
|
56485
|
-
|
|
56486
|
-
statusBar.beginContentWrite();
|
|
56487
|
-
await handleSlashCommand(command, commandCtxRef);
|
|
56488
|
-
if (statusBar.isActive)
|
|
56489
|
-
statusBar.endContentWrite();
|
|
56481
|
+
await writeContentAsync(() => handleSlashCommand(command, commandCtxRef));
|
|
56490
56482
|
} catch {
|
|
56491
56483
|
}
|
|
56484
|
+
headerBtnActive = null;
|
|
56492
56485
|
})();
|
|
56493
56486
|
});
|
|
56494
56487
|
rl.output = null;
|
package/package.json
CHANGED