agent-yes 1.111.1 → 1.112.1
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/{SUPPORTED_CLIS-pUfsXbBb.js → SUPPORTED_CLIS-DxYk0BWq.js} +2 -2
- package/dist/SUPPORTED_CLIS-OeK9JJli.js +8 -0
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{serve-_OcRc4Fq.js → serve-B6jO9ifl.js} +5 -5
- package/dist/{subcommands-C1pH8so2.js → subcommands-BdLzSIjI.js} +1 -1
- package/dist/{subcommands-CuujGkMd.js → subcommands-CCV37_dc.js} +2 -2
- package/dist/{ts-D6xbOkQ2.js → ts-gFuntNxO.js} +2 -2
- package/dist/{versionChecker-B4JUR3Fm.js → versionChecker-DlY0TAHI.js} +2 -2
- package/lab/ui/index.html +24 -5
- package/package.json +1 -1
- package/dist/SUPPORTED_CLIS-B9-lhOir.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-gFuntNxO.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/SUPPORTED_CLIS.ts
|
|
4
4
|
const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { SUPPORTED_CLIS as t };
|
|
8
|
-
//# sourceMappingURL=SUPPORTED_CLIS-
|
|
8
|
+
//# sourceMappingURL=SUPPORTED_CLIS-DxYk0BWq.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./ts-gFuntNxO.js";
|
|
2
|
+
import "./logger-B9h0djqx.js";
|
|
3
|
+
import "./versionChecker-DlY0TAHI.js";
|
|
4
|
+
import "./pidStore-DBjlqzo8.js";
|
|
5
|
+
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DxYk0BWq.js";
|
|
7
|
+
|
|
8
|
+
export { SUPPORTED_CLIS };
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { n as logger } from "./logger-B9h0djqx.js";
|
|
3
|
-
import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-
|
|
3
|
+
import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-DlY0TAHI.js";
|
|
4
4
|
import { argv } from "process";
|
|
5
5
|
import { execFileSync, spawn } from "child_process";
|
|
6
6
|
import ms from "ms";
|
|
@@ -482,7 +482,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
482
482
|
{
|
|
483
483
|
const rawArg = process.argv[2];
|
|
484
484
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
485
|
-
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-
|
|
485
|
+
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-BdLzSIjI.js");
|
|
486
486
|
if (isHelpFlag && process.argv.length === 3) {
|
|
487
487
|
cmdHelp();
|
|
488
488
|
process.exit(0);
|
|
@@ -515,7 +515,7 @@ if (config.useRust) {
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
if (rustBinary) {
|
|
518
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
518
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-OeK9JJli.js");
|
|
519
519
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
520
520
|
if (config.verbose) {
|
|
521
521
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-gFuntNxO.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DlY0TAHI.js";
|
|
4
4
|
import "./pidStore-DBjlqzo8.js";
|
|
5
5
|
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-gFuntNxO.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DlY0TAHI.js";
|
|
4
4
|
import "./pidStore-DBjlqzo8.js";
|
|
5
5
|
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DxYk0BWq.js";
|
|
7
7
|
import "./remotes-C3xPRtfg.js";
|
|
8
|
-
import { c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, m as snapshotStatus, r as controlCodeFromName, u as readNotes } from "./subcommands-
|
|
8
|
+
import { c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, m as snapshotStatus, r as controlCodeFromName, u as readNotes } from "./subcommands-CCV37_dc.js";
|
|
9
9
|
import yargs from "yargs";
|
|
10
10
|
import { mkdir, open, readFile, writeFile } from "fs/promises";
|
|
11
11
|
import { homedir, hostname, userInfo } from "os";
|
|
@@ -560,4 +560,4 @@ Options:
|
|
|
560
560
|
|
|
561
561
|
//#endregion
|
|
562
562
|
export { cmdServe };
|
|
563
|
-
//# sourceMappingURL=serve-
|
|
563
|
+
//# sourceMappingURL=serve-B6jO9ifl.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-B9h0djqx.js";
|
|
2
2
|
import "./globalPidIndex-yVd3mbsV.js";
|
|
3
3
|
import "./remotes-C3xPRtfg.js";
|
|
4
|
-
import { a as finalizedLines, c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, h as stopTipForCli, i as cursorAbs, l as matchKeyword, m as snapshotStatus, n as cmdHelp, o as isPidAlive, p as runSubcommand, r as controlCodeFromName, s as isSubcommand, t as GRACEFUL_EXIT_COMMANDS, u as readNotes } from "./subcommands-
|
|
4
|
+
import { a as finalizedLines, c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, h as stopTipForCli, i as cursorAbs, l as matchKeyword, m as snapshotStatus, n as cmdHelp, o as isPidAlive, p as runSubcommand, r as controlCodeFromName, s as isSubcommand, t as GRACEFUL_EXIT_COMMANDS, u as readNotes } from "./subcommands-CCV37_dc.js";
|
|
5
5
|
|
|
6
6
|
export { cmdHelp, isSubcommand, runSubcommand };
|
|
@@ -163,7 +163,7 @@ async function runSubcommand(argv) {
|
|
|
163
163
|
case "restart": return await cmdRestart(rest);
|
|
164
164
|
case "note": return await cmdNote(rest);
|
|
165
165
|
case "serve": {
|
|
166
|
-
const { cmdServe } = await import("./serve-
|
|
166
|
+
const { cmdServe } = await import("./serve-B6jO9ifl.js");
|
|
167
167
|
return cmdServe(rest);
|
|
168
168
|
}
|
|
169
169
|
case "setup": {
|
|
@@ -1595,4 +1595,4 @@ async function cmdStatus(rest) {
|
|
|
1595
1595
|
|
|
1596
1596
|
//#endregion
|
|
1597
1597
|
export { finalizedLines as a, listRecords as c, renderRawLog as d, resolveOne as f, writeToIpc as g, stopTipForCli as h, cursorAbs as i, matchKeyword as l, snapshotStatus as m, cmdHelp as n, isPidAlive as o, runSubcommand as p, controlCodeFromName as r, isSubcommand as s, GRACEFUL_EXIT_COMMANDS as t, readNotes as u };
|
|
1598
|
-
//# sourceMappingURL=subcommands-
|
|
1598
|
+
//# sourceMappingURL=subcommands-CCV37_dc.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as logger, t as addTransport } from "./logger-B9h0djqx.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-DlY0TAHI.js";
|
|
3
3
|
import { n as agentYesHome, t as PidStore } from "./pidStore-DBjlqzo8.js";
|
|
4
4
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-CJxsoGdb.js";
|
|
5
5
|
import { i as readGlobalPids } from "./globalPidIndex-yVd3mbsV.js";
|
|
@@ -1714,4 +1714,4 @@ function sleep(ms) {
|
|
|
1714
1714
|
|
|
1715
1715
|
//#endregion
|
|
1716
1716
|
export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
|
|
1717
|
-
//# sourceMappingURL=ts-
|
|
1717
|
+
//# sourceMappingURL=ts-gFuntNxO.js.map
|
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "agent-yes";
|
|
10
|
-
var version = "1.
|
|
10
|
+
var version = "1.112.1";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -221,4 +221,4 @@ async function displayVersion() {
|
|
|
221
221
|
|
|
222
222
|
//#endregion
|
|
223
223
|
export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
|
|
224
|
-
//# sourceMappingURL=versionChecker-
|
|
224
|
+
//# sourceMappingURL=versionChecker-DlY0TAHI.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -1450,7 +1450,20 @@
|
|
|
1450
1450
|
// feed it, so we just surface the latest title as the header name. Falls
|
|
1451
1451
|
// back to the cli name when the agent never sets one.
|
|
1452
1452
|
term.onTitleChange((t) => {
|
|
1453
|
-
|
|
1453
|
+
const title = t && t.trim();
|
|
1454
|
+
if (sel !== e._key || !title) return;
|
|
1455
|
+
$("rname").textContent = title;
|
|
1456
|
+
// Keep the left panel in lockstep with the terminal header. The row
|
|
1457
|
+
// title otherwise only refreshes on the 3s /api/ls poll, so it visibly
|
|
1458
|
+
// lagged the live terminal. Patch the current entry (entries is
|
|
1459
|
+
// replaced wholesale each poll, so look it up by _key, not via the
|
|
1460
|
+
// captured `e`) and re-render — but only when the title actually
|
|
1461
|
+
// changed, so a TUI re-emitting the same OSC doesn't churn the list.
|
|
1462
|
+
const ent = entries.find((x) => x._key === e._key);
|
|
1463
|
+
if (ent && ent.title !== title) {
|
|
1464
|
+
ent.title = title;
|
|
1465
|
+
renderList();
|
|
1466
|
+
}
|
|
1454
1467
|
});
|
|
1455
1468
|
// Adapt: drive the agent's PTY to the browser terminal size (POST
|
|
1456
1469
|
// /api/resize → winsize + SIGWINCH) so its TUI reflows to match what we
|
|
@@ -1563,13 +1576,19 @@
|
|
|
1563
1576
|
const row = $("list").querySelector('.row[data-key="' + CSS.escape(next._key) + '"]');
|
|
1564
1577
|
if (row) row.scrollIntoView({ block: "nearest" });
|
|
1565
1578
|
}
|
|
1566
|
-
//
|
|
1567
|
-
//
|
|
1568
|
-
//
|
|
1579
|
+
// Cmd+ArrowDown/Up (Mac) or Alt+ArrowDown/Up (Windows/Linux) cycles agents.
|
|
1580
|
+
// The modifier differs per-OS because horizontal arrows mean "go forward/back":
|
|
1581
|
+
// Mac uses Cmd+Left/Right for that, Windows/Linux use Alt+Left/Right — so we
|
|
1582
|
+
// pick the platform's own modifier for the vertical agent-switch combo.
|
|
1583
|
+
// Capture phase on window so it fires BEFORE xterm's textarea handler —
|
|
1584
|
+
// stopPropagation then keeps the combo from being forwarded to the focused
|
|
1585
|
+
// agent's PTY as keystrokes.
|
|
1586
|
+
const IS_MAC = /Mac|iPhone|iPad|iPod/i.test(navigator.platform || navigator.userAgent || "");
|
|
1569
1587
|
window.addEventListener(
|
|
1570
1588
|
"keydown",
|
|
1571
1589
|
(e) => {
|
|
1572
|
-
|
|
1590
|
+
const mod = IS_MAC ? e.metaKey : e.altKey;
|
|
1591
|
+
if (!mod || (e.key !== "ArrowDown" && e.key !== "ArrowUp")) return;
|
|
1573
1592
|
e.preventDefault();
|
|
1574
1593
|
e.stopPropagation();
|
|
1575
1594
|
stepSelection(e.key === "ArrowDown" ? 1 : -1);
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./ts-D6xbOkQ2.js";
|
|
2
|
-
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-B4JUR3Fm.js";
|
|
4
|
-
import "./pidStore-DBjlqzo8.js";
|
|
5
|
-
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-pUfsXbBb.js";
|
|
7
|
-
|
|
8
|
-
export { SUPPORTED_CLIS };
|