agent-yes 1.109.0 → 1.110.0
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-CGb1oNZd.js +8 -0
- package/dist/{SUPPORTED_CLIS-C0AwpO1R.js → SUPPORTED_CLIS-Dh1CAhi9.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{serve-AjtjceCu.js → serve-BmM1r9No.js} +5 -5
- package/dist/{subcommands-CPJDMI84.js → subcommands-D3b7vKgY.js} +2 -2
- package/dist/{subcommands-B-1ABS7S.js → subcommands-D4eVn3eY.js} +1 -1
- package/dist/{ts-BJvj36Z3.js → ts--IvDnRaR.js} +2 -2
- package/dist/{versionChecker-DGSlVqgt.js → versionChecker-DSdFfx6l.js} +2 -2
- package/lab/ui/index.html +68 -2
- package/package.json +3 -2
- package/dist/SUPPORTED_CLIS-BlZnNglM.js +0 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./ts--IvDnRaR.js";
|
|
2
|
+
import "./logger-B9h0djqx.js";
|
|
3
|
+
import "./versionChecker-DSdFfx6l.js";
|
|
4
|
+
import "./pidStore-DBjlqzo8.js";
|
|
5
|
+
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-Dh1CAhi9.js";
|
|
7
|
+
|
|
8
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts--IvDnRaR.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-Dh1CAhi9.js.map
|
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-DSdFfx6l.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-D4eVn3eY.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-CGb1oNZd.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--IvDnRaR.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DSdFfx6l.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--IvDnRaR.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DSdFfx6l.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-Dh1CAhi9.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-D3b7vKgY.js";
|
|
9
9
|
import yargs from "yargs";
|
|
10
10
|
import { mkdir, open, readFile, writeFile } from "fs/promises";
|
|
11
11
|
import { homedir } from "os";
|
|
@@ -552,4 +552,4 @@ Options:
|
|
|
552
552
|
|
|
553
553
|
//#endregion
|
|
554
554
|
export { cmdServe };
|
|
555
|
-
//# sourceMappingURL=serve-
|
|
555
|
+
//# sourceMappingURL=serve-BmM1r9No.js.map
|
|
@@ -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-BmM1r9No.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-D3b7vKgY.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-D3b7vKgY.js";
|
|
5
5
|
|
|
6
6
|
export { cmdHelp, isSubcommand, runSubcommand };
|
|
@@ -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-DSdFfx6l.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--IvDnRaR.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.110.0";
|
|
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-DSdFfx6l.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
<style>
|
|
8
8
|
/* Palette borrowed from codehost (GitHub-dark) so the two feel like one system. */
|
|
9
9
|
:root {
|
|
10
|
+
/* Adapt native form controls / scrollbars to the OS theme too. */
|
|
11
|
+
color-scheme: light dark;
|
|
10
12
|
--bg: #0d1117;
|
|
11
13
|
--panel: #161b22;
|
|
12
14
|
--panel2: #1c2430;
|
|
@@ -22,6 +24,28 @@
|
|
|
22
24
|
--red: #f85149;
|
|
23
25
|
--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
|
|
24
26
|
}
|
|
27
|
+
/* Light theme — GitHub-light, the daylight counterpart of the dark palette
|
|
28
|
+
above. prefers-color-scheme is re-evaluated by the browser the moment the
|
|
29
|
+
OS flips, so every var() consumer recolors in real time, no JS, no reload.
|
|
30
|
+
(The xterm canvas is the one exception — it's repainted from JS, see
|
|
31
|
+
termTheme() below.) */
|
|
32
|
+
@media (prefers-color-scheme: light) {
|
|
33
|
+
:root {
|
|
34
|
+
--bg: #ffffff;
|
|
35
|
+
--panel: #f6f8fa;
|
|
36
|
+
--panel2: #eaeef2;
|
|
37
|
+
--line: #d1d9e0;
|
|
38
|
+
--line2: #d8dee4;
|
|
39
|
+
--fg: #1f2328;
|
|
40
|
+
--muted: #59636e;
|
|
41
|
+
--accent: #0969da;
|
|
42
|
+
--green: #1a7f37;
|
|
43
|
+
--amber: #9a6700;
|
|
44
|
+
--purple: #8250df;
|
|
45
|
+
--pink: #bf3989;
|
|
46
|
+
--red: #cf222e;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
25
49
|
* {
|
|
26
50
|
box-sizing: border-box;
|
|
27
51
|
}
|
|
@@ -617,7 +641,7 @@
|
|
|
617
641
|
min-height: 0;
|
|
618
642
|
overflow: hidden;
|
|
619
643
|
padding: 8px 10px;
|
|
620
|
-
background:
|
|
644
|
+
background: var(--bg);
|
|
621
645
|
}
|
|
622
646
|
.log .xterm {
|
|
623
647
|
height: 100%;
|
|
@@ -813,6 +837,48 @@
|
|
|
813
837
|
let term = null; // xterm.js Terminal rendering the raw PTY stream
|
|
814
838
|
let fit = null;
|
|
815
839
|
|
|
840
|
+
// xterm paints to a <canvas>, so unlike the CSS var() consumers it can't
|
|
841
|
+
// ride prefers-color-scheme on its own — its theme is a JS object. Mirror
|
|
842
|
+
// the OS preference here and re-apply it live when the system flips, so the
|
|
843
|
+
// terminal recolors in lockstep with the rest of the UI.
|
|
844
|
+
const prefersLight = window.matchMedia("(prefers-color-scheme: light)");
|
|
845
|
+
const termTheme = () =>
|
|
846
|
+
prefersLight.matches
|
|
847
|
+
? {
|
|
848
|
+
// GitHub-light terminal palette. xterm's default ANSI slots are
|
|
849
|
+
// tuned for a dark background, so setting only bg/fg/cursor leaves
|
|
850
|
+
// white & bright-white SGR text (37/97) — common in CLI output —
|
|
851
|
+
// near-invisible on #ffffff. Remap the white slots to dark grays
|
|
852
|
+
// and darken the rest so every ANSI color stays legible on light.
|
|
853
|
+
background: "#ffffff",
|
|
854
|
+
foreground: "#1f2328",
|
|
855
|
+
cursor: "#1f2328",
|
|
856
|
+
selectionBackground: "#b6d6ff",
|
|
857
|
+
black: "#24292e",
|
|
858
|
+
red: "#cf222e",
|
|
859
|
+
green: "#116329",
|
|
860
|
+
yellow: "#4d2d00",
|
|
861
|
+
blue: "#0969da",
|
|
862
|
+
magenta: "#8250df",
|
|
863
|
+
cyan: "#1b7c83",
|
|
864
|
+
white: "#6e7781",
|
|
865
|
+
brightBlack: "#57606a",
|
|
866
|
+
brightRed: "#a40e26",
|
|
867
|
+
brightGreen: "#1a7f37",
|
|
868
|
+
brightYellow: "#633c01",
|
|
869
|
+
brightBlue: "#218bff",
|
|
870
|
+
brightMagenta: "#a475f9",
|
|
871
|
+
brightCyan: "#3192aa",
|
|
872
|
+
brightWhite: "#1f2328",
|
|
873
|
+
}
|
|
874
|
+
: { background: "#0d1117", foreground: "#c9d1d9", cursor: "#0d1117" };
|
|
875
|
+
// Exposed so the headless theme e2e can assert the light ANSI palette
|
|
876
|
+
// keeps the white slots dark (legible on a white terminal background).
|
|
877
|
+
window.__termTheme = termTheme;
|
|
878
|
+
prefersLight.addEventListener("change", () => {
|
|
879
|
+
if (term) term.options.theme = termTheme();
|
|
880
|
+
});
|
|
881
|
+
|
|
816
882
|
const $ = (id) => document.getElementById(id);
|
|
817
883
|
const esc = (s) =>
|
|
818
884
|
String(s ?? "").replace(/[&<>]/g, (c) => ({ "&": "&", "<": "<", ">": ">" })[c]);
|
|
@@ -1366,7 +1432,7 @@
|
|
|
1366
1432
|
scrollback: 5000,
|
|
1367
1433
|
fontSize: 12,
|
|
1368
1434
|
fontFamily: 'ui-monospace, "SF Mono", Menlo, monospace',
|
|
1369
|
-
theme:
|
|
1435
|
+
theme: termTheme(),
|
|
1370
1436
|
});
|
|
1371
1437
|
fit = new FitAddon.FitAddon();
|
|
1372
1438
|
term.loadAddon(fit);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-yes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.110.0",
|
|
4
4
|
"description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"test": "vitest run",
|
|
89
89
|
"test:coverage": "vitest run --coverage",
|
|
90
90
|
"test:ui": "vitest run --config tests/ui-test/vitest.config.ts",
|
|
91
|
-
"test:ui-dom": "vitest run --config tests/ui-dom/vitest.config.ts"
|
|
91
|
+
"test:ui-dom": "vitest run --config tests/ui-dom/vitest.config.ts",
|
|
92
|
+
"test:theme": "node tests/ui-test/theme.e2e.mjs"
|
|
92
93
|
},
|
|
93
94
|
"dependencies": {
|
|
94
95
|
"@snomiao/bun-pty": "^0.3.4",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./ts-BJvj36Z3.js";
|
|
2
|
-
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-DGSlVqgt.js";
|
|
4
|
-
import "./pidStore-DBjlqzo8.js";
|
|
5
|
-
import "./globalPidIndex-yVd3mbsV.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C0AwpO1R.js";
|
|
7
|
-
|
|
8
|
-
export { SUPPORTED_CLIS };
|