agent-yes 1.149.1 → 1.149.2

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.
@@ -0,0 +1,8 @@
1
+ import "./ts-Crx7yKKc.js";
2
+ import "./logger-CDIsZ-Pp.js";
3
+ import "./versionChecker-DXaPeO0A.js";
4
+ import "./pidStore-fqXqTKkh.js";
5
+ import "./globalPidIndex-DlmmJlO8.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-l2VfMXSj.js";
7
+
8
+ export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-C6mXcfRr.js";
1
+ import { t as CLIS_CONFIG } from "./ts-Crx7yKKc.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-D5QzyS_H.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-l2VfMXSj.js.map
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  import { t as invokedCliName } from "./invokedCli-uqM2YYA7.js";
3
3
  import { n as logger } from "./logger-CDIsZ-Pp.js";
4
- import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-p0Xn-j6S.js";
4
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-DXaPeO0A.js";
5
5
  import { argv } from "process";
6
6
  import { execFileSync, spawn } from "child_process";
7
7
  import ms from "ms";
@@ -480,7 +480,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
480
480
  const rawArg = process.argv[2];
481
481
  const managerCommands = !invokedCliName(process.argv);
482
482
  const isHelpFlag = rawArg === "-h" || rawArg === "--help";
483
- const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-DExNSMOf.js");
483
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-o4jq4IfK.js");
484
484
  if (isHelpFlag && process.argv.length === 3) {
485
485
  cmdHelp(managerCommands);
486
486
  process.exit(0);
@@ -513,7 +513,7 @@ if (config.useRust) {
513
513
  }
514
514
  }
515
515
  if (rustBinary) {
516
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-Dgj3Fw1j.js");
516
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CsjpklyH.js");
517
517
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
518
518
  if (config.verbose) {
519
519
  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-C6mXcfRr.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-Crx7yKKc.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-p0Xn-j6S.js";
3
+ import "./versionChecker-DXaPeO0A.js";
4
4
  import "./pidStore-fqXqTKkh.js";
5
5
  import "./globalPidIndex-DlmmJlO8.js";
6
6
 
@@ -1,9 +1,9 @@
1
- import "./ts-C6mXcfRr.js";
1
+ import "./ts-Crx7yKKc.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-p0Xn-j6S.js";
3
+ import "./versionChecker-DXaPeO0A.js";
4
4
  import "./pidStore-fqXqTKkh.js";
5
5
  import "./globalPidIndex-DlmmJlO8.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D5QzyS_H.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-l2VfMXSj.js";
7
7
  import { i as resolveSpawnCwd } from "./workspaceConfig-B9VX8tVO.js";
8
8
  import { createHash } from "node:crypto";
9
9
 
@@ -141,4 +141,4 @@ async function cmdSchedule(rest) {
141
141
 
142
142
  //#endregion
143
143
  export { cmdSchedule };
144
- //# sourceMappingURL=schedule-DKni11sT.js.map
144
+ //# sourceMappingURL=schedule-BA6n_cj9.js.map
@@ -1,16 +1,16 @@
1
- import "./ts-C6mXcfRr.js";
1
+ import "./ts-Crx7yKKc.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import { r as getInstalledPackage } from "./versionChecker-p0Xn-j6S.js";
3
+ import { r as getInstalledPackage } from "./versionChecker-DXaPeO0A.js";
4
4
  import "./pidStore-fqXqTKkh.js";
5
5
  import { a as updateGlobalPidStatus } from "./globalPidIndex-DlmmJlO8.js";
6
6
  import { t as pgidForWrapper } from "./reaper-C-eWAxIj.js";
7
7
  import "./configShared-C1C04bbq.js";
8
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D5QzyS_H.js";
8
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-l2VfMXSj.js";
9
9
  import "./e2e-ClOI_aqV.js";
10
10
  import "./webrtcLink-BWhuA74k.js";
11
11
  import "./remotes-qK6uozO4.js";
12
12
  import { i as resolveSpawnCwd, r as isProvisionAllowed, t as getProvisionRoot } from "./workspaceConfig-B9VX8tVO.js";
13
- import { S as snapshotStatus, _ as renderRawLog, c as extractTaskCounts, g as readNotes, i as controlCodeFromName, m as listRecords, o as deriveLiveStatus, w as writeToIpc, y as resolveOne } from "./subcommands-CaF0L7Ev.js";
13
+ import { S as snapshotStatus, _ as renderRawLog, c as extractTaskCounts, g as readNotes, i as controlCodeFromName, m as listRecords, o as deriveLiveStatus, w as writeToIpc, y as resolveOne } from "./subcommands-DFlo3Zj4.js";
14
14
  import yargs from "yargs";
15
15
  import { mkdir, open, readFile, stat, writeFile } from "fs/promises";
16
16
  import { homedir, hostname, userInfo } from "os";
@@ -1235,4 +1235,4 @@ Options:
1235
1235
 
1236
1236
  //#endregion
1237
1237
  export { cmdServe };
1238
- //# sourceMappingURL=serve-ItcHizJH.js.map
1238
+ //# sourceMappingURL=serve-mGlN11ee.js.map
@@ -32,7 +32,7 @@ async function cmdSetup(rest) {
32
32
  if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
33
33
  if (noShare) return 0;
34
34
  process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
35
- const { cmdServe } = await import("./serve-ItcHizJH.js");
35
+ const { cmdServe } = await import("./serve-mGlN11ee.js");
36
36
  return cmdServe([
37
37
  "install",
38
38
  "--share",
@@ -42,4 +42,4 @@ async function cmdSetup(rest) {
42
42
 
43
43
  //#endregion
44
44
  export { cmdSetup };
45
- //# sourceMappingURL=setup-_g7ZMwZB.js.map
45
+ //# sourceMappingURL=setup-Bkm7D9sR.js.map
@@ -554,15 +554,15 @@ async function runSubcommand(argv) {
554
554
  case "restart": return await cmdRestart(rest);
555
555
  case "note": return await cmdNote(rest);
556
556
  case "serve": {
557
- const { cmdServe } = await import("./serve-ItcHizJH.js");
557
+ const { cmdServe } = await import("./serve-mGlN11ee.js");
558
558
  return cmdServe(rest);
559
559
  }
560
560
  case "setup": {
561
- const { cmdSetup } = await import("./setup-_g7ZMwZB.js");
561
+ const { cmdSetup } = await import("./setup-Bkm7D9sR.js");
562
562
  return cmdSetup(rest);
563
563
  }
564
564
  case "schedule": {
565
- const { cmdSchedule } = await import("./schedule-DKni11sT.js");
565
+ const { cmdSchedule } = await import("./schedule-BA6n_cj9.js");
566
566
  return cmdSchedule(rest);
567
567
  }
568
568
  case "remote": {
@@ -2593,4 +2593,4 @@ async function cmdResultSet(rest) {
2593
2593
 
2594
2594
  //#endregion
2595
2595
  export { stopTipForCli as C, snapshotStatus as S, renderRawLog as _, cursorAbs as a, resolveReadWindow as b, extractTaskCounts as c, isExitRequest as d, isPidAlive as f, readNotes as g, matchKeyword as h, controlCodeFromName as i, finalizedLines as l, listRecords as m, READ_PAGE_DEFAULT as n, deriveLiveStatus as o, isSubcommand as p, cmdHelp as r, extractNeedsInput as s, GRACEFUL_EXIT_COMMANDS as t, isAgentStuck as u, renderRawLogLines as v, writeToIpc as w, runSubcommand as x, resolveOne as y };
2596
- //# sourceMappingURL=subcommands-CaF0L7Ev.js.map
2596
+ //# sourceMappingURL=subcommands-DFlo3Zj4.js.map
@@ -4,6 +4,6 @@ import "./configShared-C1C04bbq.js";
4
4
  import "./e2e-ClOI_aqV.js";
5
5
  import "./webrtcLink-BWhuA74k.js";
6
6
  import "./remotes-qK6uozO4.js";
7
- import { C as stopTipForCli, S as snapshotStatus, _ as renderRawLog, a as cursorAbs, b as resolveReadWindow, c as extractTaskCounts, d as isExitRequest, f as isPidAlive, g as readNotes, h as matchKeyword, i as controlCodeFromName, l as finalizedLines, m as listRecords, n as READ_PAGE_DEFAULT, o as deriveLiveStatus, p as isSubcommand, r as cmdHelp, s as extractNeedsInput, t as GRACEFUL_EXIT_COMMANDS, u as isAgentStuck, v as renderRawLogLines, w as writeToIpc, x as runSubcommand, y as resolveOne } from "./subcommands-CaF0L7Ev.js";
7
+ import { C as stopTipForCli, S as snapshotStatus, _ as renderRawLog, a as cursorAbs, b as resolveReadWindow, c as extractTaskCounts, d as isExitRequest, f as isPidAlive, g as readNotes, h as matchKeyword, i as controlCodeFromName, l as finalizedLines, m as listRecords, n as READ_PAGE_DEFAULT, o as deriveLiveStatus, p as isSubcommand, r as cmdHelp, s as extractNeedsInput, t as GRACEFUL_EXIT_COMMANDS, u as isAgentStuck, v as renderRawLogLines, w as writeToIpc, x as runSubcommand, y as resolveOne } from "./subcommands-DFlo3Zj4.js";
8
8
 
9
9
  export { cmdHelp, isSubcommand, runSubcommand };
@@ -1,5 +1,5 @@
1
1
  import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
2
- import { r as getInstalledPackage } from "./versionChecker-p0Xn-j6S.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-DXaPeO0A.js";
3
3
  import { t as agentYesHome } from "./agentYesHome-_eJa3DaX.js";
4
4
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-V4qvXgAw.js";
5
5
  import { t as PidStore } from "./pidStore-fqXqTKkh.js";
@@ -1228,8 +1228,10 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1228
1228
  if (unresolved) continue;
1229
1229
  ptyEnv[key] = value;
1230
1230
  }
1231
+ if (!ptyEnv.TERM) ptyEnv.TERM = "xterm-256color";
1232
+ if (!ptyEnv.COLORTERM) ptyEnv.COLORTERM = "truecolor";
1231
1233
  const ptyOptions = {
1232
- name: "xterm-color",
1234
+ name: ptyEnv.TERM,
1233
1235
  ...getTerminalDimensions(),
1234
1236
  cwd: cwd ?? process.cwd(),
1235
1237
  env: ptyEnv
@@ -1330,7 +1332,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1330
1332
  let [bin, ...args] = [...parseCommandString(cliConf?.binary || cli), ...cliArgs.filter((arg) => !["--continue", "--resume"].includes(arg))];
1331
1333
  logger.info(`Restarting ${cli} ${JSON.stringify([bin, ...args])}`);
1332
1334
  const restartPtyOptions = {
1333
- name: "xterm-color",
1335
+ name: ptyEnv.TERM,
1334
1336
  ...getTerminalDimensions(),
1335
1337
  cwd: cwd ?? process.cwd(),
1336
1338
  env: ptyEnv
@@ -1414,7 +1416,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1414
1416
  } else logger.debug(`restore|no stored session, using default restore args`);
1415
1417
  }
1416
1418
  const restorePtyOptions = {
1417
- name: "xterm-color",
1419
+ name: ptyEnv.TERM,
1418
1420
  ...getTerminalDimensions(),
1419
1421
  cwd: cwd ?? process.cwd(),
1420
1422
  env: ptyEnv
@@ -1800,4 +1802,4 @@ function sleep(ms) {
1800
1802
 
1801
1803
  //#endregion
1802
1804
  export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
1803
- //# sourceMappingURL=ts-C6mXcfRr.js.map
1805
+ //# sourceMappingURL=ts-Crx7yKKc.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.149.1";
10
+ var version = "1.149.2";
11
11
 
12
12
  //#endregion
13
13
  //#region ts/versionChecker.ts
@@ -215,4 +215,4 @@ async function displayVersion() {
215
215
 
216
216
  //#endregion
217
217
  export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
218
- //# sourceMappingURL=versionChecker-p0Xn-j6S.js.map
218
+ //# sourceMappingURL=versionChecker-DXaPeO0A.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.149.1",
3
+ "version": "1.149.2",
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",
package/ts/index.ts CHANGED
@@ -395,8 +395,17 @@ export default async function agentYes({
395
395
  ptyEnv[key] = value;
396
396
  }
397
397
  }
398
+ // The agent runs in a PTY (a real terminal), so advertise terminal
399
+ // capabilities. A console/daemon-spawned agent inherits an env with no TERM/
400
+ // COLORTERM: neither the daemon (no controlling terminal) nor the recovered
401
+ // login-shell env (captured without a tty) carries them — those vars are set
402
+ // by the terminal emulator, not by the shell. Without them the wrapped CLI
403
+ // renders colorless in the web console. Fill only when absent so a
404
+ // terminal-launched agent keeps its real values (e.g. xterm-256color, tmux).
405
+ if (!ptyEnv.TERM) ptyEnv.TERM = "xterm-256color";
406
+ if (!ptyEnv.COLORTERM) ptyEnv.COLORTERM = "truecolor";
398
407
  const ptyOptions = {
399
- name: "xterm-color",
408
+ name: ptyEnv.TERM,
400
409
  ...getTerminalDimensions(),
401
410
  cwd: cwd ?? process.cwd(),
402
411
  env: ptyEnv,
@@ -561,7 +570,7 @@ export default async function agentYes({
561
570
  logger.info(`Restarting ${cli} ${JSON.stringify([bin, ...args])}`);
562
571
 
563
572
  const restartPtyOptions = {
564
- name: "xterm-color",
573
+ name: ptyEnv.TERM,
565
574
  ...getTerminalDimensions(),
566
575
  cwd: cwd ?? process.cwd(),
567
576
  env: ptyEnv,
@@ -667,7 +676,7 @@ export default async function agentYes({
667
676
  }
668
677
 
669
678
  const restorePtyOptions = {
670
- name: "xterm-color",
679
+ name: ptyEnv.TERM,
671
680
  ...getTerminalDimensions(),
672
681
  cwd: cwd ?? process.cwd(),
673
682
  env: ptyEnv,
@@ -1,8 +0,0 @@
1
- import "./ts-C6mXcfRr.js";
2
- import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-p0Xn-j6S.js";
4
- import "./pidStore-fqXqTKkh.js";
5
- import "./globalPidIndex-DlmmJlO8.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D5QzyS_H.js";
7
-
8
- export { SUPPORTED_CLIS };