agent-yes 1.76.0 → 1.76.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,6 +1,6 @@
1
- import { t as CLIS_CONFIG } from "./ts-MmVGVMOz.js";
1
+ import { t as CLIS_CONFIG } from "./ts-DbxSwnlW.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-CAoC4Jzx.js";
3
+ import "./versionChecker-VNi0ht5W.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-DAufh-XY.js.map
12
+ //# sourceMappingURL=SUPPORTED_CLIS-IDfUiHsZ.js.map
package/dist/agent-yes.js CHANGED
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
package/dist/amp-yes.js CHANGED
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
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-CAoC4Jzx.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-VNi0ht5W.js";
4
4
  import { argv } from "process";
5
5
  import { execFileSync, spawn } from "child_process";
6
6
  import ms from "ms";
@@ -504,7 +504,7 @@ if (config.useRust) {
504
504
  }
505
505
  }
506
506
  if (rustBinary) {
507
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DAufh-XY.js");
507
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-IDfUiHsZ.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/codex-yes.js CHANGED
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
package/dist/cy.js CHANGED
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
package/dist/grok-yes.js CHANGED
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
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-MmVGVMOz.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-DbxSwnlW.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-CAoC4Jzx.js";
3
+ import "./versionChecker-VNi0ht5W.js";
4
4
  import "./pidStore-C1JXxoPi.js";
5
5
  import "./globalPidIndex-Cr-g75QF.js";
6
6
 
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
package/dist/qwen-yes.js CHANGED
@@ -3,7 +3,7 @@ import { existsSync } from "node:fs";
3
3
  import { join, dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
6
- if (existsSync(join(root, ".git"))) {
6
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
7
7
  await import("../ts/cli.ts");
8
8
  } else {
9
9
  await import("./cli.js");
@@ -1,5 +1,5 @@
1
1
  import { n as logger, t as addTransport } from "./logger-B9h0djqx.js";
2
- import { r as getInstalledPackage } from "./versionChecker-CAoC4Jzx.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-VNi0ht5W.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-MmVGVMOz.js.map
1682
+ //# sourceMappingURL=ts-DbxSwnlW.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.76.0";
10
+ var version = "1.76.1";
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-CAoC4Jzx.js.map
224
+ //# sourceMappingURL=versionChecker-VNi0ht5W.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.76.0",
3
+ "version": "1.76.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/postbuild.ts CHANGED
@@ -15,15 +15,17 @@ const suffixes = ["-yes"];
15
15
  // Short aliases: maps alias name → target CLI name (alias resolves in parseCliArgs.ts)
16
16
  const shortAliases: Record<string, string> = { cy: "claude" };
17
17
 
18
- // When .git exists (git clone), run TypeScript directly via bun — no build needed.
19
- // When absent (npm install), fall back to compiled dist/cli.js.
18
+ // Under Bun (dev via `bun link`), run TypeScript source directly — no build needed.
19
+ // Under Node (published install or CI), use the compiled dist/cli.js.
20
+ // Detect Bun at runtime: the shebang prefers bun but Node may still invoke us
21
+ // directly (e.g. `node dist/claude-yes.js` in CI), and Node cannot import .ts.
20
22
  const wrapperContent = `\
21
23
  #!/usr/bin/env bun
22
24
  import { existsSync } from "node:fs";
23
25
  import { join, dirname } from "node:path";
24
26
  import { fileURLToPath } from "node:url";
25
27
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
26
- if (existsSync(join(root, ".git"))) {
28
+ if (typeof Bun !== "undefined" && existsSync(join(root, ".git"))) {
27
29
  await import("../ts/cli.ts");
28
30
  } else {
29
31
  await import("./cli.js");