claude-yes 1.76.1 → 1.77.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-NThDjEO4.js → SUPPORTED_CLIS-BTbQvsjD.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{subcommands-DSm9WL-6.js → subcommands-6RKyeRix.js} +10 -1
- package/dist/{ts-DzPtU2gf.js → ts-CXkBbw7M.js} +2 -2
- package/dist/{versionChecker-B-_IVIfU.js → versionChecker-fJ3SnTJx.js} +2 -2
- package/package.json +1 -1
- package/ts/subcommands.ts +25 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-CXkBbw7M.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-fJ3SnTJx.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-BTbQvsjD.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-fJ3SnTJx.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-6RKyeRix.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-BTbQvsjD.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-CXkBbw7M.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-fJ3SnTJx.js";
|
|
4
4
|
import "./pidStore-C1JXxoPi.js";
|
|
5
5
|
import "./globalPidIndex-Cr-g75QF.js";
|
|
6
6
|
|
|
@@ -238,6 +238,10 @@ async function cmdLs(rest) {
|
|
|
238
238
|
r.cwd.padEnd(widths.cwd),
|
|
239
239
|
r.prompt
|
|
240
240
|
].join(" ") + "\n");
|
|
241
|
+
if (!opts.json && records.length > 0) {
|
|
242
|
+
const example = records[0].pid;
|
|
243
|
+
process.stderr.write(`\n cy tail ${example} # view latest output\n cy read ${example} # full rendered log\n cy send ${example} "next: ..." # send a prompt\n cy send ${example} "" --code=ctrl-c # interrupt\n`);
|
|
244
|
+
}
|
|
241
245
|
return 0;
|
|
242
246
|
}
|
|
243
247
|
function humanizeAge(ms) {
|
|
@@ -278,8 +282,12 @@ async function cmdRead(rest, { mode }) {
|
|
|
278
282
|
mode,
|
|
279
283
|
n
|
|
280
284
|
});
|
|
285
|
+
process.stderr.write(`[pid ${record.pid} ${shortenPath(record.cwd)}]\n`);
|
|
281
286
|
process.stdout.write(rendered);
|
|
282
287
|
if (!rendered.endsWith("\n")) process.stdout.write("\n");
|
|
288
|
+
process.stderr.write(`
|
|
289
|
+
cy ls # list all agents
|
|
290
|
+
cy send ${record.pid} "next: ..." # send a prompt\n cy send ${record.pid} "" --code=ctrl-c # interrupt\n`);
|
|
283
291
|
return 0;
|
|
284
292
|
}
|
|
285
293
|
/**
|
|
@@ -331,6 +339,7 @@ async function cmdSend(rest) {
|
|
|
331
339
|
const payload = (message ?? "") + trailing;
|
|
332
340
|
await writeToIpc(fifoPath, payload);
|
|
333
341
|
process.stdout.write(`sent to pid ${record.pid} (${record.cli}): ${truncate(payload, 80)}\n`);
|
|
342
|
+
process.stderr.write(`\n cy tail ${record.pid} # watch output\n cy ls # list all agents\n`);
|
|
334
343
|
return 0;
|
|
335
344
|
}
|
|
336
345
|
function controlCodeFromName(name) {
|
|
@@ -388,4 +397,4 @@ async function writeToIpc(ipcPath, payload) {
|
|
|
388
397
|
|
|
389
398
|
//#endregion
|
|
390
399
|
export { isSubcommand, runSubcommand };
|
|
391
|
-
//# sourceMappingURL=subcommands-
|
|
400
|
+
//# sourceMappingURL=subcommands-6RKyeRix.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-fJ3SnTJx.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-CXkBbw7M.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.77.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-fJ3SnTJx.js.map
|
package/package.json
CHANGED
package/ts/subcommands.ts
CHANGED
|
@@ -321,6 +321,17 @@ async function cmdLs(rest: string[]): Promise<number> {
|
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
+
if (!opts.json && records.length > 0) {
|
|
325
|
+
const example = records[0]!.pid;
|
|
326
|
+
process.stderr.write(
|
|
327
|
+
`\n` +
|
|
328
|
+
` cy tail ${example} # view latest output\n` +
|
|
329
|
+
` cy read ${example} # full rendered log\n` +
|
|
330
|
+
` cy send ${example} "next: ..." # send a prompt\n` +
|
|
331
|
+
` cy send ${example} "" --code=ctrl-c # interrupt\n`,
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
324
335
|
return 0;
|
|
325
336
|
}
|
|
326
337
|
|
|
@@ -385,8 +396,16 @@ async function cmdRead(rest: string[], { mode }: ReadOpts): Promise<number> {
|
|
|
385
396
|
|
|
386
397
|
const buf = await readFile(logPath);
|
|
387
398
|
const rendered = await renderRawLog(buf, { mode, n });
|
|
399
|
+
process.stderr.write(`[pid ${record.pid} ${shortenPath(record.cwd)}]\n`);
|
|
388
400
|
process.stdout.write(rendered);
|
|
389
401
|
if (!rendered.endsWith("\n")) process.stdout.write("\n");
|
|
402
|
+
|
|
403
|
+
process.stderr.write(
|
|
404
|
+
`\n` +
|
|
405
|
+
` cy ls # list all agents\n` +
|
|
406
|
+
` cy send ${record.pid} "next: ..." # send a prompt\n` +
|
|
407
|
+
` cy send ${record.pid} "" --code=ctrl-c # interrupt\n`,
|
|
408
|
+
);
|
|
390
409
|
return 0;
|
|
391
410
|
}
|
|
392
411
|
|
|
@@ -463,6 +482,12 @@ async function cmdSend(rest: string[]): Promise<number> {
|
|
|
463
482
|
const payload = (message ?? "") + trailing;
|
|
464
483
|
await writeToIpc(fifoPath, payload);
|
|
465
484
|
process.stdout.write(`sent to pid ${record.pid} (${record.cli}): ${truncate(payload, 80)}\n`);
|
|
485
|
+
|
|
486
|
+
process.stderr.write(
|
|
487
|
+
`\n` +
|
|
488
|
+
` cy tail ${record.pid} # watch output\n` +
|
|
489
|
+
` cy ls # list all agents\n`,
|
|
490
|
+
);
|
|
466
491
|
return 0;
|
|
467
492
|
}
|
|
468
493
|
|