claude-yes 1.80.0 → 1.81.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-DJTdHpX6.js";
1
+ import { t as CLIS_CONFIG } from "./ts-DUtCG3W_.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-iWnXmXoS.js";
3
+ import "./versionChecker-CK3Inq3r.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-ujFlzMra.js.map
12
+ //# sourceMappingURL=SUPPORTED_CLIS-DuXIXbBo.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-iWnXmXoS.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-CK3Inq3r.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-BVcxPfly.js");
478
+ const { isSubcommand, runSubcommand } = await import("./subcommands-BT4I9SM0.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-ujFlzMra.js");
507
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DuXIXbBo.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-DJTdHpX6.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-DUtCG3W_.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-iWnXmXoS.js";
3
+ import "./versionChecker-CK3Inq3r.js";
4
4
  import "./pidStore-C1JXxoPi.js";
5
5
  import "./globalPidIndex-Cr-g75QF.js";
6
6
 
@@ -380,13 +380,18 @@ async function cmdSend(rest) {
380
380
  const { flags, positional } = parseArgs(rest);
381
381
  const opts = commonOpts(flags);
382
382
  const keyword = positional[0];
383
- const message = positional.slice(1).join(" ");
384
- if (!keyword) throw new Error("usage: cy send <keyword> <msg> [--code=enter|esc|ctrl-c|ctrl-y|tab|none]");
383
+ const rawMessage = positional.slice(1).join(" ");
384
+ if (!keyword) throw new Error("usage: cy send <keyword> <msg|-> [--code=enter|esc|ctrl-c|ctrl-y|tab|none]");
385
385
  const trailing = controlCodeFromName(typeof flags.code === "string" ? flags.code.toLowerCase() : "enter");
386
386
  const record = await resolveOne(keyword, opts);
387
387
  const fifoPath = record.fifo_file;
388
388
  if (!fifoPath) throw new Error(`pid ${record.pid}: no fifo_file recorded — agent was not started with --stdpush (or was spawned by Rust which doesn't yet support FIFO IPC; see ROADMAP item 10)`);
389
- const body = message ?? "";
389
+ let body;
390
+ if (rawMessage === "-") {
391
+ const chunks = [];
392
+ for await (const chunk of process.stdin) chunks.push(chunk);
393
+ body = Buffer.concat(chunks).toString("utf-8").trimEnd();
394
+ } else body = rawMessage;
390
395
  if (body && trailing) {
391
396
  await writeToIpc(fifoPath, body);
392
397
  await new Promise((r) => setTimeout(r, 200));
@@ -479,4 +484,4 @@ async function cmdRestart(rest) {
479
484
 
480
485
  //#endregion
481
486
  export { isSubcommand, runSubcommand };
482
- //# sourceMappingURL=subcommands-BVcxPfly.js.map
487
+ //# sourceMappingURL=subcommands-BT4I9SM0.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-iWnXmXoS.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-CK3Inq3r.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-DJTdHpX6.js.map
1682
+ //# sourceMappingURL=ts-DUtCG3W_.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.80.0";
10
+ var version = "1.81.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-iWnXmXoS.js.map
224
+ //# sourceMappingURL=versionChecker-CK3Inq3r.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-yes",
3
- "version": "1.80.0",
3
+ "version": "1.81.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
@@ -526,10 +526,10 @@ async function cmdSend(rest: string[]): Promise<number> {
526
526
  const { flags, positional } = parseArgs(rest);
527
527
  const opts = commonOpts(flags);
528
528
  const keyword = positional[0];
529
- const message = positional.slice(1).join(" ");
529
+ const rawMessage = positional.slice(1).join(" ");
530
530
 
531
531
  if (!keyword)
532
- throw new Error("usage: cy send <keyword> <msg> [--code=enter|esc|ctrl-c|ctrl-y|tab|none]");
532
+ throw new Error("usage: cy send <keyword> <msg|-> [--code=enter|esc|ctrl-c|ctrl-y|tab|none]");
533
533
 
534
534
  const codeName = typeof flags.code === "string" ? flags.code.toLowerCase() : "enter";
535
535
  const trailing = controlCodeFromName(codeName);
@@ -542,7 +542,15 @@ async function cmdSend(rest: string[]): Promise<number> {
542
542
  );
543
543
  }
544
544
 
545
- const body = message ?? "";
545
+ let body: string;
546
+ if (rawMessage === "-") {
547
+ const chunks: Buffer[] = [];
548
+ for await (const chunk of process.stdin) chunks.push(chunk as Buffer);
549
+ body = Buffer.concat(chunks).toString("utf-8").trimEnd();
550
+ } else {
551
+ body = rawMessage;
552
+ }
553
+
546
554
  if (body && trailing) {
547
555
  await writeToIpc(fifoPath, body);
548
556
  await new Promise((r) => setTimeout(r, 200));