claude-yes 1.74.0 → 1.75.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.
@@ -1,4 +1,4 @@
1
- import { t as CLIS_CONFIG } from "./ts-C8vuG5y-.js";
1
+ import { t as CLIS_CONFIG } from "./ts-D_iRstH9.js";
2
2
  import "./logger-B9h0djqx.js";
3
3
  import "./pidStore-CHLHMBEM.js";
4
4
  import "./globalPidIndex-DNEh8a_O.js";
@@ -8,4 +8,4 @@ const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
8
8
 
9
9
  //#endregion
10
10
  export { SUPPORTED_CLIS };
11
- //# sourceMappingURL=SUPPORTED_CLIS-BCn8YIi2.js.map
11
+ //# sourceMappingURL=SUPPORTED_CLIS-Dzf60ENT.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 { n as version, t as name } from "./package-Bn0B_jWZ.js";
3
+ import { n as version, t as name } from "./package-CE0J-uFT.js";
4
4
  import { argv } from "process";
5
5
  import { execFileSync, spawn } from "child_process";
6
6
  import ms from "ms";
@@ -635,7 +635,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
635
635
  }
636
636
  }
637
637
  {
638
- const { isSubcommand, runSubcommand } = await import("./subcommands-CR1i1sjy.js");
638
+ const { isSubcommand, runSubcommand } = await import("./subcommands-DpOqSs-b.js");
639
639
  if (isSubcommand(process.argv[2])) {
640
640
  const code = await runSubcommand(process.argv);
641
641
  process.exit(code ?? 0);
@@ -664,7 +664,7 @@ if (config.useRust) {
664
664
  }
665
665
  }
666
666
  if (rustBinary) {
667
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BCn8YIi2.js");
667
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-Dzf60ENT.js");
668
668
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
669
669
  if (config.verbose) {
670
670
  console.log(`[rust] Using binary: ${rustBinary}`);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-C8vuG5y-.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-D_iRstH9.js";
2
2
  import "./logger-B9h0djqx.js";
3
3
  import "./pidStore-CHLHMBEM.js";
4
4
  import "./globalPidIndex-DNEh8a_O.js";
@@ -1,7 +1,7 @@
1
1
  //#region package.json
2
2
  var name = "agent-yes";
3
- var version = "1.73.2";
3
+ var version = "1.74.0";
4
4
 
5
5
  //#endregion
6
6
  export { version as n, name as t };
7
- //# sourceMappingURL=package-Bn0B_jWZ.js.map
7
+ //# sourceMappingURL=package-CE0J-uFT.js.map
@@ -202,21 +202,25 @@ async function cmdLs(rest) {
202
202
  process.stderr.write(keyword ? `no running agents matched "${keyword}"\n` : "no running agents\n");
203
203
  return 0;
204
204
  }
205
+ const termWidth = process.stdout.columns ?? 120;
206
+ const rawCwds = records.map((r) => shortenPath(r.cwd));
207
+ const widths = {
208
+ pid: Math.max(3, ...records.map((r) => String(r.pid).length)),
209
+ cli: Math.max(3, ...records.map((r) => r.cli.length)),
210
+ status: Math.max(6, ...records.map((r) => r.status.length)),
211
+ age: Math.max(3, ...records.map((r) => humanizeAge(Date.now() - r.started_at).length)),
212
+ cwd: Math.max(3, ...rawCwds.map((c) => c.length))
213
+ };
214
+ const fixedWidth = widths.pid + widths.cli + widths.status + widths.age + widths.cwd + 10;
215
+ const promptBudget = Math.max(20, termWidth - fixedWidth - 1);
205
216
  const rows = records.map((r) => ({
206
217
  pid: String(r.pid),
207
218
  cli: r.cli,
208
219
  status: r.status,
209
220
  age: humanizeAge(Date.now() - r.started_at),
210
221
  cwd: shortenPath(r.cwd),
211
- prompt: truncate(r.prompt ?? "", 60)
222
+ prompt: truncate(r.prompt ?? "", promptBudget)
212
223
  }));
213
- const widths = {
214
- pid: Math.max(3, ...rows.map((r) => r.pid.length)),
215
- cli: Math.max(3, ...rows.map((r) => r.cli.length)),
216
- status: Math.max(6, ...rows.map((r) => r.status.length)),
217
- age: Math.max(3, ...rows.map((r) => r.age.length)),
218
- cwd: Math.max(3, ...rows.map((r) => r.cwd.length))
219
- };
220
224
  const header = [
221
225
  "PID".padEnd(widths.pid),
222
226
  "CLI".padEnd(widths.cli),
@@ -384,4 +388,4 @@ async function writeToIpc(ipcPath, payload) {
384
388
 
385
389
  //#endregion
386
390
  export { isSubcommand, runSubcommand };
387
- //# sourceMappingURL=subcommands-CR1i1sjy.js.map
391
+ //# sourceMappingURL=subcommands-DpOqSs-b.js.map
@@ -1,5 +1,5 @@
1
1
  import { n as logger, t as addTransport } from "./logger-B9h0djqx.js";
2
- import { n as version } from "./package-Bn0B_jWZ.js";
2
+ import { n as version } from "./package-CE0J-uFT.js";
3
3
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DQWJSptq.js";
4
4
  import { t as PidStore } from "./pidStore-CHLHMBEM.js";
5
5
  import { arch, platform } from "process";
@@ -1679,4 +1679,4 @@ function sleep(ms) {
1679
1679
 
1680
1680
  //#endregion
1681
1681
  export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
1682
- //# sourceMappingURL=ts-C8vuG5y-.js.map
1682
+ //# sourceMappingURL=ts-D_iRstH9.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-yes",
3
- "version": "1.74.0",
3
+ "version": "1.75.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",
package/ts/subcommands.ts CHANGED
@@ -272,23 +272,31 @@ async function cmdLs(rest: string[]): Promise<number> {
272
272
  return 0;
273
273
  }
274
274
 
275
+ // Budget the trailing PROMPT column to whatever space is left in the
276
+ // terminal after the fixed columns, so users on wide terminals see more
277
+ // context and users on narrow ones don't get an awkwardly-wrapped table.
278
+ const termWidth = (process.stdout as any).columns ?? 120;
279
+
280
+ const rawCwds = records.map((r) => shortenPath(r.cwd));
281
+ const widths = {
282
+ pid: Math.max(3, ...records.map((r) => String(r.pid).length)),
283
+ cli: Math.max(3, ...records.map((r) => r.cli.length)),
284
+ status: Math.max(6, ...records.map((r) => r.status.length)),
285
+ age: Math.max(3, ...records.map((r) => humanizeAge(Date.now() - r.started_at).length)),
286
+ cwd: Math.max(3, ...rawCwds.map((c) => c.length)),
287
+ };
288
+ const fixedWidth = widths.pid + widths.cli + widths.status + widths.age + widths.cwd + 5 * 2; // 5 separators of " "
289
+ const promptBudget = Math.max(20, termWidth - fixedWidth - 1);
290
+
275
291
  const rows = records.map((r) => ({
276
292
  pid: String(r.pid),
277
293
  cli: r.cli,
278
294
  status: r.status,
279
295
  age: humanizeAge(Date.now() - r.started_at),
280
296
  cwd: shortenPath(r.cwd),
281
- prompt: truncate(r.prompt ?? "", 60),
297
+ prompt: truncate(r.prompt ?? "", promptBudget),
282
298
  }));
283
299
 
284
- const widths = {
285
- pid: Math.max(3, ...rows.map((r) => r.pid.length)),
286
- cli: Math.max(3, ...rows.map((r) => r.cli.length)),
287
- status: Math.max(6, ...rows.map((r) => r.status.length)),
288
- age: Math.max(3, ...rows.map((r) => r.age.length)),
289
- cwd: Math.max(3, ...rows.map((r) => r.cwd.length)),
290
- };
291
-
292
300
  const header =
293
301
  [
294
302
  "PID".padEnd(widths.pid),