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.
- package/dist/{SUPPORTED_CLIS-ujFlzMra.js → SUPPORTED_CLIS-DuXIXbBo.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{subcommands-BVcxPfly.js → subcommands-BT4I9SM0.js} +9 -4
- package/dist/{ts-DJTdHpX6.js → ts-DUtCG3W_.js} +2 -2
- package/dist/{versionChecker-iWnXmXoS.js → versionChecker-CK3Inq3r.js} +2 -2
- package/package.json +1 -1
- package/ts/subcommands.ts +11 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DUtCG3W_.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
384
|
-
if (!keyword) throw new Error("usage: cy send <keyword> <msg
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
224
|
+
//# sourceMappingURL=versionChecker-CK3Inq3r.js.map
|
package/package.json
CHANGED
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
|
|
529
|
+
const rawMessage = positional.slice(1).join(" ");
|
|
530
530
|
|
|
531
531
|
if (!keyword)
|
|
532
|
-
throw new Error("usage: cy send <keyword> <msg
|
|
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
|
-
|
|
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));
|