claude-yes 1.169.0 → 1.169.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.
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-DBYdQgbR.js";
1
+ import { t as CLIS_CONFIG } from "./ts-hUFVxJMw.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-BhtgiqTC.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-CrkCHeYI.js.map
@@ -0,0 +1,8 @@
1
+ import "./ts-hUFVxJMw.js";
2
+ import "./logger-CDIsZ-Pp.js";
3
+ import "./versionChecker-IuFreIkZ.js";
4
+ import "./pidStore-BfoBWUjc.js";
5
+ import "./globalPidIndex-DlmmJlO8.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CrkCHeYI.js";
7
+
8
+ export { SUPPORTED_CLIS };
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-CL0RTOKo.js";
4
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-IuFreIkZ.js";
5
5
  import { argv } from "process";
6
6
  import { execFileSync, spawn } from "child_process";
7
7
  import ms from "ms";
@@ -487,7 +487,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
487
487
  const rawArg = process.argv[2];
488
488
  const managerCommands = !invokedCliName(process.argv);
489
489
  const isHelpFlag = rawArg === "-h" || rawArg === "--help";
490
- const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-B4Pwp2Z_.js");
490
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-B23lSYPq.js");
491
491
  if (isHelpFlag && process.argv.length === 3) {
492
492
  await cmdHelp(managerCommands);
493
493
  process.exit(0);
@@ -529,7 +529,7 @@ if (config.useRust) {
529
529
  }
530
530
  }
531
531
  if (rustBinary) {
532
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-D-ea9sTR.js");
532
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-D6axJyiC.js");
533
533
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
534
534
  if (config.verbose) {
535
535
  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-DBYdQgbR.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-hUFVxJMw.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-CL0RTOKo.js";
3
+ import "./versionChecker-IuFreIkZ.js";
4
4
  import "./pidStore-BfoBWUjc.js";
5
5
  import "./globalPidIndex-DlmmJlO8.js";
6
6
 
@@ -1,9 +1,9 @@
1
- import "./ts-DBYdQgbR.js";
1
+ import "./ts-hUFVxJMw.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-CL0RTOKo.js";
3
+ import "./versionChecker-IuFreIkZ.js";
4
4
  import "./pidStore-BfoBWUjc.js";
5
5
  import "./globalPidIndex-DlmmJlO8.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BhtgiqTC.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CrkCHeYI.js";
7
7
  import { l as resolveSpawnCwd } from "./workspaceConfig-BC03X4Y1.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-CQge8oP_.js.map
144
+ //# sourceMappingURL=schedule-Bh5bm1xO.js.map
@@ -1,16 +1,16 @@
1
- import "./ts-DBYdQgbR.js";
1
+ import "./ts-hUFVxJMw.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import { r as getInstalledPackage } from "./versionChecker-CL0RTOKo.js";
3
+ import { r as getInstalledPackage } from "./versionChecker-IuFreIkZ.js";
4
4
  import "./pidStore-BfoBWUjc.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-CEyhl0WH.js";
8
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BhtgiqTC.js";
8
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CrkCHeYI.js";
9
9
  import "./e2e-BeKjLhmO.js";
10
10
  import "./webrtcLink-BG0Xc4-W.js";
11
11
  import "./remotes-BmAPylU_.js";
12
12
  import { c as isProvisionAllowed, i as getSpawnHook, l as resolveSpawnCwd, r as getProvisionRoot, s as hasSpawnHook } from "./workspaceConfig-BC03X4Y1.js";
13
- import { M as writeToIpc, S as renderRawLog, _ as listRecords, b as readNotes, i as controlCodeFromName, k as snapshotStatus, l as extractNeedsInput, o as deriveLiveStatus, s as extractBadges, u as extractTaskCounts, w as resolveOne, x as readPtysize } from "./subcommands-BV32LcSR.js";
13
+ import { M as writeToIpc, S as renderRawLog, _ as listRecords, b as readNotes, i as controlCodeFromName, k as snapshotStatus, l as extractNeedsInput, o as deriveLiveStatus, s as extractBadges, u as extractTaskCounts, w as resolveOne, x as readPtysize } from "./subcommands-fp7kfr7p.js";
14
14
  import { r as spawnRejectionReason } from "./spawnGate-DzPfa1PZ.js";
15
15
  import yargs from "yargs";
16
16
  import { mkdir, open, readFile, stat, unlink, writeFile } from "fs/promises";
@@ -1464,4 +1464,4 @@ Options:
1464
1464
 
1465
1465
  //#endregion
1466
1466
  export { cmdServe };
1467
- //# sourceMappingURL=serve-tpnNSWeN.js.map
1467
+ //# sourceMappingURL=serve-Bt_KljpT.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-tpnNSWeN.js");
35
+ const { cmdServe } = await import("./serve-Bt_KljpT.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-BSAdV0mz.js.map
45
+ //# sourceMappingURL=setup-D5f1lmYF.js.map
@@ -4,6 +4,6 @@ import "./configShared-CEyhl0WH.js";
4
4
  import "./e2e-BeKjLhmO.js";
5
5
  import "./webrtcLink-BG0Xc4-W.js";
6
6
  import "./remotes-BmAPylU_.js";
7
- import { A as stopTipForCli, C as renderRawLogLines, D as restartHintLines, E as resolveResumeArgs, M as writeToIpc, O as runSubcommand, S as renderRawLog, T as resolveReadWindow, _ as listRecords, a as cursorAbs, b as readNotes, c as extractMenu, d as finalizedLines, f as isAgentStuck, g as isSubcommand, h as isSlashCommand, i as controlCodeFromName, j as writeKeysPaced, k as snapshotStatus, l as extractNeedsInput, m as isPidAlive, n as READ_PAGE_DEFAULT, o as deriveLiveStatus, p as isExitRequest, r as cmdHelp, s as extractBadges, t as GRACEFUL_EXIT_COMMANDS, u as extractTaskCounts, v as matchKeyword, w as resolveOne, x as readPtysize, y as menuSelectKeys } from "./subcommands-BV32LcSR.js";
7
+ import { A as stopTipForCli, C as renderRawLogLines, D as restartHintLines, E as resolveResumeArgs, M as writeToIpc, O as runSubcommand, S as renderRawLog, T as resolveReadWindow, _ as listRecords, a as cursorAbs, b as readNotes, c as extractMenu, d as finalizedLines, f as isAgentStuck, g as isSubcommand, h as isSlashCommand, i as controlCodeFromName, j as writeKeysPaced, k as snapshotStatus, l as extractNeedsInput, m as isPidAlive, n as READ_PAGE_DEFAULT, o as deriveLiveStatus, p as isExitRequest, r as cmdHelp, s as extractBadges, t as GRACEFUL_EXIT_COMMANDS, u as extractTaskCounts, v as matchKeyword, w as resolveOne, x as readPtysize, y as menuSelectKeys } from "./subcommands-fp7kfr7p.js";
8
8
 
9
9
  export { cmdHelp, isSubcommand, runSubcommand };
@@ -614,15 +614,15 @@ async function runSubcommand(argv) {
614
614
  case "restart": return await cmdRestart(rest);
615
615
  case "note": return await cmdNote(rest);
616
616
  case "serve": {
617
- const { cmdServe } = await import("./serve-tpnNSWeN.js");
617
+ const { cmdServe } = await import("./serve-Bt_KljpT.js");
618
618
  return cmdServe(rest);
619
619
  }
620
620
  case "setup": {
621
- const { cmdSetup } = await import("./setup-BSAdV0mz.js");
621
+ const { cmdSetup } = await import("./setup-D5f1lmYF.js");
622
622
  return cmdSetup(rest);
623
623
  }
624
624
  case "schedule": {
625
- const { cmdSchedule } = await import("./schedule-CQge8oP_.js");
625
+ const { cmdSchedule } = await import("./schedule-Bh5bm1xO.js");
626
626
  return cmdSchedule(rest);
627
627
  }
628
628
  case "remote": {
@@ -3059,4 +3059,4 @@ async function cmdResultSet(rest) {
3059
3059
 
3060
3060
  //#endregion
3061
3061
  export { stopTipForCli as A, renderRawLogLines as C, restartHintLines as D, resolveResumeArgs as E, writeToIpc as M, runSubcommand as O, renderRawLog as S, resolveReadWindow as T, listRecords as _, cursorAbs as a, readNotes as b, extractMenu as c, finalizedLines as d, isAgentStuck as f, isSubcommand as g, isSlashCommand as h, controlCodeFromName as i, writeKeysPaced as j, snapshotStatus as k, extractNeedsInput as l, isPidAlive as m, READ_PAGE_DEFAULT as n, deriveLiveStatus as o, isExitRequest as p, cmdHelp as r, extractBadges as s, GRACEFUL_EXIT_COMMANDS as t, extractTaskCounts as u, matchKeyword as v, resolveOne as w, readPtysize as x, menuSelectKeys as y };
3062
- //# sourceMappingURL=subcommands-BV32LcSR.js.map
3062
+ //# sourceMappingURL=subcommands-fp7kfr7p.js.map
@@ -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-CL0RTOKo.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-IuFreIkZ.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-BobVW1_A.js";
5
5
  import { t as PidStore } from "./pidStore-BfoBWUjc.js";
@@ -1579,7 +1579,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1579
1579
  } catch (error) {
1580
1580
  logger.debug(`heartbeat|error: ${error}`);
1581
1581
  }
1582
- }, 800);
1582
+ }, 100);
1583
1583
  const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
1584
1584
  shell.onExit(cleanupHeartbeat);
1585
1585
  if (exitOnIdle) (async () => {
@@ -1805,7 +1805,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1805
1805
  if (exited) return;
1806
1806
  shell.kill();
1807
1807
  resolve();
1808
- }, 5e3))]);
1808
+ }, 2e3))]);
1809
1809
  }
1810
1810
  function getTerminalDimensions() {
1811
1811
  if (!process.stdout.isTTY) return {
@@ -1824,4 +1824,4 @@ function sleep(ms) {
1824
1824
 
1825
1825
  //#endregion
1826
1826
  export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
1827
- //# sourceMappingURL=ts-DBYdQgbR.js.map
1827
+ //# sourceMappingURL=ts-hUFVxJMw.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.169.0";
10
+ var version = "1.169.1";
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-CL0RTOKo.js.map
218
+ //# sourceMappingURL=versionChecker-IuFreIkZ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-yes",
3
- "version": "1.169.0",
3
+ "version": "1.169.1",
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
@@ -896,7 +896,12 @@ export default async function agentYes({
896
896
  // Silently ignore heartbeat errors to avoid disrupting main flow
897
897
  logger.debug(`heartbeat|error: ${error}`);
898
898
  }
899
- }, 800); // Run every 800ms
899
+ }, 100); // Run every 100ms — cheap when unchanged (see the rendered === lastHeartbeatRendered
900
+ // guard above): most ticks bail after one xtermProxy.tail(12) + string compare. A short
901
+ // interval matters for two things this heartbeat drives: no-EOL ready/fatal detection
902
+ // (CSI-redrawn output never fires the newline-driven consoleResponder path) and auto-retry
903
+ // backoff timing precision (AUTO_RETRY_MIN_IDLE_MS gating). Previously 800ms; still coarser
904
+ // than Rust's HEARTBEAT_INTERVAL_MS=50 (rs/src/context.rs) since Rust's per-tick cost is lower.
900
905
 
901
906
  // Clear heartbeat on exit
902
907
  const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
@@ -1312,14 +1317,18 @@ export default async function agentYes({
1312
1317
  await Promise.race([
1313
1318
  pendingExitCode.promise.then(() => (exited = true)), // resolve when shell exits
1314
1319
 
1315
- // if shell doesn't exit in 5 seconds, kill it
1320
+ // if shell doesn't exit in 2 seconds, kill it. Rust's equivalent (rs/src/context.rs)
1321
+ // doesn't wait for the child's own exit at all — it sends the exit command(s) and tears
1322
+ // down immediately. 2s keeps a real grace window for a CLI to actually process `/exit`
1323
+ // (flush session state, close connections) while still bounding the worst case — down
1324
+ // from a previous 5s that mostly just delayed force-killing CLIs that never respond.
1316
1325
  new Promise<void>((resolve) =>
1317
1326
  setTimeout(() => {
1318
1327
  if (exited) return; // if shell already exited, do nothing
1319
1328
  shell.kill(); // kill the shell process if it doesn't exit in time
1320
1329
  resolve();
1321
- }, 5000),
1322
- ), // 5 seconds timeout
1330
+ }, 2000),
1331
+ ), // 2 seconds timeout
1323
1332
  ]);
1324
1333
  }
1325
1334
 
@@ -1,8 +0,0 @@
1
- import "./ts-DBYdQgbR.js";
2
- import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-CL0RTOKo.js";
4
- import "./pidStore-BfoBWUjc.js";
5
- import "./globalPidIndex-DlmmJlO8.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BhtgiqTC.js";
7
-
8
- export { SUPPORTED_CLIS };