claude-yes 1.77.0 → 1.78.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,6 +1,6 @@
1
- import { t as CLIS_CONFIG } from "./ts-CXkBbw7M.js";
1
+ import { t as CLIS_CONFIG } from "./ts-B2M_r506.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-fJ3SnTJx.js";
3
+ import "./versionChecker-CoV20GQ7.js";
4
4
  import "./pidStore-C1JXxoPi.js";
5
5
  import "./globalPidIndex-Cr-g75QF.js";
6
6
 
@@ -9,4 +9,4 @@ const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
9
9
 
10
10
  //#endregion
11
11
  export { SUPPORTED_CLIS };
12
- //# sourceMappingURL=SUPPORTED_CLIS-BTbQvsjD.js.map
12
+ //# sourceMappingURL=SUPPORTED_CLIS-eyTIFAJl.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-fJ3SnTJx.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-CoV20GQ7.js";
4
4
  import { argv } from "process";
5
5
  import { execFileSync, spawn } from "child_process";
6
6
  import ms from "ms";
@@ -475,7 +475,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
475
475
  }
476
476
  }
477
477
  {
478
- const { isSubcommand, runSubcommand } = await import("./subcommands-6RKyeRix.js");
478
+ const { isSubcommand, runSubcommand } = await import("./subcommands-Ctgm4cEn.js");
479
479
  if (isSubcommand(process.argv[2])) {
480
480
  const code = await runSubcommand(process.argv);
481
481
  process.exit(code ?? 0);
@@ -504,7 +504,7 @@ if (config.useRust) {
504
504
  }
505
505
  }
506
506
  if (rustBinary) {
507
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BTbQvsjD.js");
507
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-eyTIFAJl.js");
508
508
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
509
509
  if (config.verbose) {
510
510
  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-CXkBbw7M.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-B2M_r506.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-fJ3SnTJx.js";
3
+ import "./versionChecker-CoV20GQ7.js";
4
4
  import "./pidStore-C1JXxoPi.js";
5
5
  import "./globalPidIndex-Cr-g75QF.js";
6
6
 
@@ -213,13 +213,21 @@ async function cmdLs(rest) {
213
213
  };
214
214
  const fixedWidth = widths.pid + widths.cli + widths.status + widths.age + widths.cwd + 10;
215
215
  const promptBudget = Math.max(20, termWidth - fixedWidth - 1);
216
- const rows = records.map((r) => ({
217
- pid: String(r.pid),
218
- cli: r.cli,
219
- status: r.status,
220
- age: humanizeAge(Date.now() - r.started_at),
221
- cwd: shortenPath(r.cwd),
222
- prompt: truncate(r.prompt ?? "", promptBudget)
216
+ const IDLE_THRESHOLD_MS = 60 * 1e3;
217
+ const rows = await Promise.all(records.map(async (r) => {
218
+ let displayStatus = r.status;
219
+ if (r.status === "active" && r.log_file) {
220
+ const mtime = await stat(r.log_file).then((s) => s.mtimeMs).catch(() => null);
221
+ if (mtime !== null && Date.now() - mtime > IDLE_THRESHOLD_MS) displayStatus = "idle";
222
+ }
223
+ return {
224
+ pid: String(r.pid),
225
+ cli: r.cli,
226
+ status: displayStatus,
227
+ age: humanizeAge(Date.now() - r.started_at),
228
+ cwd: shortenPath(r.cwd),
229
+ prompt: truncate(r.prompt ?? "", promptBudget)
230
+ };
223
231
  }));
224
232
  const header = [
225
233
  "PID".padEnd(widths.pid),
@@ -397,4 +405,4 @@ async function writeToIpc(ipcPath, payload) {
397
405
 
398
406
  //#endregion
399
407
  export { isSubcommand, runSubcommand };
400
- //# sourceMappingURL=subcommands-6RKyeRix.js.map
408
+ //# sourceMappingURL=subcommands-Ctgm4cEn.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-fJ3SnTJx.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-CoV20GQ7.js";
3
3
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-C22d9SRJ.js";
4
4
  import { t as PidStore } from "./pidStore-C1JXxoPi.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-CXkBbw7M.js.map
1682
+ //# sourceMappingURL=ts-B2M_r506.js.map
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
7
7
 
8
8
  //#region package.json
9
9
  var name = "claude-yes";
10
- var version = "1.77.0";
10
+ var version = "1.78.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-fJ3SnTJx.js.map
224
+ //# sourceMappingURL=versionChecker-CoV20GQ7.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-yes",
3
- "version": "1.77.0",
3
+ "version": "1.78.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
@@ -288,14 +288,26 @@ async function cmdLs(rest: string[]): Promise<number> {
288
288
  const fixedWidth = widths.pid + widths.cli + widths.status + widths.age + widths.cwd + 5 * 2; // 5 separators of " "
289
289
  const promptBudget = Math.max(20, termWidth - fixedWidth - 1);
290
290
 
291
- const rows = records.map((r) => ({
292
- pid: String(r.pid),
293
- cli: r.cli,
294
- status: r.status,
295
- age: humanizeAge(Date.now() - r.started_at),
296
- cwd: shortenPath(r.cwd),
297
- prompt: truncate(r.prompt ?? "", promptBudget),
298
- }));
291
+ const IDLE_THRESHOLD_MS = 60 * 1000;
292
+ const rows = await Promise.all(
293
+ records.map(async (r) => {
294
+ let displayStatus = r.status;
295
+ if (r.status === "active" && r.log_file) {
296
+ const mtime = await stat(r.log_file)
297
+ .then((s) => s.mtimeMs)
298
+ .catch(() => null);
299
+ if (mtime !== null && Date.now() - mtime > IDLE_THRESHOLD_MS) displayStatus = "idle";
300
+ }
301
+ return {
302
+ pid: String(r.pid),
303
+ cli: r.cli,
304
+ status: displayStatus,
305
+ age: humanizeAge(Date.now() - r.started_at),
306
+ cwd: shortenPath(r.cwd),
307
+ prompt: truncate(r.prompt ?? "", promptBudget),
308
+ };
309
+ }),
310
+ );
299
311
 
300
312
  const header =
301
313
  [