claude-yes 1.88.0 → 1.88.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.
- package/dist/{SUPPORTED_CLIS-VbHPdSIt.js → SUPPORTED_CLIS-CXRwTMf2.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{serve-CAEEkFLd.js → serve-Bk36c6qq.js} +2 -2
- package/dist/{subcommands-Dnh67Qo3.js → subcommands-8Pp3UUwj.js} +1 -1
- package/dist/{subcommands-DIworIYh.js → subcommands-DxafpA6_.js} +37 -23
- package/dist/{ts-CDrRTQFz.js → ts-DGhJYVFb.js} +2 -2
- package/dist/{versionChecker-BjRotlWY.js → versionChecker-DK6U9T31.js} +2 -2
- package/package.json +1 -1
- package/ts/subcommands.ts +40 -21
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DGhJYVFb.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DK6U9T31.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-CXRwTMf2.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-DK6U9T31.js";
|
|
4
4
|
import { argv } from "process";
|
|
5
5
|
import { execFileSync, spawn } from "child_process";
|
|
6
6
|
import ms from "ms";
|
|
@@ -482,7 +482,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
482
482
|
{
|
|
483
483
|
const rawArg = process.argv[2];
|
|
484
484
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
485
|
-
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-
|
|
485
|
+
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-8Pp3UUwj.js");
|
|
486
486
|
if (isHelpFlag && process.argv.length === 3) {
|
|
487
487
|
cmdHelp();
|
|
488
488
|
process.exit(0);
|
|
@@ -515,7 +515,7 @@ if (config.useRust) {
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
if (rustBinary) {
|
|
518
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
518
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CXRwTMf2.js");
|
|
519
519
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
520
520
|
if (config.verbose) {
|
|
521
521
|
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-DGhJYVFb.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DK6U9T31.js";
|
|
4
4
|
import "./pidStore-C1JXxoPi.js";
|
|
5
5
|
import "./globalPidIndex-Cr-g75QF.js";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-B9h0djqx.js";
|
|
2
2
|
import "./globalPidIndex-Cr-g75QF.js";
|
|
3
3
|
import "./remotes-Bjp2GYPz.js";
|
|
4
|
-
import { a as listRecords, c as renderRawLog, d as snapshotStatus, f as writeToIpc, l as resolveOne, n as controlCodeFromName, s as readNotes } from "./subcommands-
|
|
4
|
+
import { a as listRecords, c as renderRawLog, d as snapshotStatus, f as writeToIpc, l as resolveOne, n as controlCodeFromName, s as readNotes } from "./subcommands-DxafpA6_.js";
|
|
5
5
|
import yargs from "yargs";
|
|
6
6
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
7
7
|
import { homedir } from "os";
|
|
@@ -312,4 +312,4 @@ Options:
|
|
|
312
312
|
|
|
313
313
|
//#endregion
|
|
314
314
|
export { cmdServe };
|
|
315
|
-
//# sourceMappingURL=serve-
|
|
315
|
+
//# sourceMappingURL=serve-Bk36c6qq.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-B9h0djqx.js";
|
|
2
2
|
import "./globalPidIndex-Cr-g75QF.js";
|
|
3
3
|
import "./remotes-Bjp2GYPz.js";
|
|
4
|
-
import { a as listRecords, c as renderRawLog, d as snapshotStatus, f as writeToIpc, i as isSubcommand, l as resolveOne, n as controlCodeFromName, o as matchKeyword, r as isPidAlive, s as readNotes, t as cmdHelp, u as runSubcommand } from "./subcommands-
|
|
4
|
+
import { a as listRecords, c as renderRawLog, d as snapshotStatus, f as writeToIpc, i as isSubcommand, l as resolveOne, n as controlCodeFromName, o as matchKeyword, r as isPidAlive, s as readNotes, t as cmdHelp, u as runSubcommand } from "./subcommands-DxafpA6_.js";
|
|
5
5
|
|
|
6
6
|
export { cmdHelp, isSubcommand, runSubcommand };
|
|
@@ -158,7 +158,7 @@ async function runSubcommand(argv) {
|
|
|
158
158
|
case "restart": return await cmdRestart(rest);
|
|
159
159
|
case "note": return await cmdNote(rest);
|
|
160
160
|
case "serve": {
|
|
161
|
-
const { cmdServe } = await import("./serve-
|
|
161
|
+
const { cmdServe } = await import("./serve-Bk36c6qq.js");
|
|
162
162
|
return cmdServe(rest);
|
|
163
163
|
}
|
|
164
164
|
case "remote": {
|
|
@@ -234,27 +234,41 @@ async function pickInteractive(matches) {
|
|
|
234
234
|
} catch {}
|
|
235
235
|
process.stdin.pause();
|
|
236
236
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
237
|
+
let buf = "";
|
|
238
|
+
const onData = (chunk) => {
|
|
239
|
+
buf += chunk;
|
|
240
|
+
while (buf.length > 0) if (buf[0] === "\x1B") {
|
|
241
|
+
if (buf.length < 3) break;
|
|
242
|
+
const seq = buf.slice(0, 3);
|
|
243
|
+
buf = buf.slice(3);
|
|
244
|
+
if (seq === "\x1B[A") {
|
|
245
|
+
sel = Math.max(0, sel - 1);
|
|
246
|
+
redraw();
|
|
247
|
+
} else if (seq === "\x1B[B") {
|
|
248
|
+
sel = Math.min(list.length - 1, sel + 1);
|
|
249
|
+
redraw();
|
|
250
|
+
}
|
|
251
|
+
} else {
|
|
252
|
+
const key = buf[0];
|
|
253
|
+
buf = buf.slice(1);
|
|
254
|
+
if (key === "") {
|
|
255
|
+
cleanup();
|
|
256
|
+
process.stderr.write("\n");
|
|
257
|
+
resolve(null);
|
|
258
|
+
return;
|
|
259
|
+
} else if (key === "\r" || key === "\n") {
|
|
260
|
+
cleanup();
|
|
261
|
+
process.stderr.write("\n");
|
|
262
|
+
resolve(list[sel]);
|
|
263
|
+
return;
|
|
264
|
+
} else if (key >= "1" && key <= String(list.length)) {
|
|
265
|
+
sel = parseInt(key, 10) - 1;
|
|
266
|
+
redraw();
|
|
267
|
+
cleanup();
|
|
268
|
+
process.stderr.write("\n");
|
|
269
|
+
resolve(list[sel]);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
258
272
|
}
|
|
259
273
|
};
|
|
260
274
|
process.stdin.on("data", onData);
|
|
@@ -1173,4 +1187,4 @@ async function cmdStatus(rest) {
|
|
|
1173
1187
|
|
|
1174
1188
|
//#endregion
|
|
1175
1189
|
export { listRecords as a, renderRawLog as c, snapshotStatus as d, writeToIpc as f, isSubcommand as i, resolveOne as l, controlCodeFromName as n, matchKeyword as o, isPidAlive as r, readNotes as s, cmdHelp as t, runSubcommand as u };
|
|
1176
|
-
//# sourceMappingURL=subcommands-
|
|
1190
|
+
//# sourceMappingURL=subcommands-DxafpA6_.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-DK6U9T31.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 { r as readGlobalPids } from "./globalPidIndex-Cr-g75QF.js";
|
|
@@ -1693,4 +1693,4 @@ function sleep(ms) {
|
|
|
1693
1693
|
|
|
1694
1694
|
//#endregion
|
|
1695
1695
|
export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
|
|
1696
|
-
//# sourceMappingURL=ts-
|
|
1696
|
+
//# sourceMappingURL=ts-DGhJYVFb.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.88.
|
|
10
|
+
var version = "1.88.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-
|
|
224
|
+
//# sourceMappingURL=versionChecker-DK6U9T31.js.map
|
package/package.json
CHANGED
package/ts/subcommands.ts
CHANGED
|
@@ -335,27 +335,46 @@ async function pickInteractive(matches: GlobalPidRecord[]): Promise<GlobalPidRec
|
|
|
335
335
|
process.stdin.pause();
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
338
|
+
// Buffer partial escape sequences — arrow keys (\x1b[A/B) can arrive split
|
|
339
|
+
// across multiple data events on some terminals and PTY wrappers.
|
|
340
|
+
let buf = "";
|
|
341
|
+
const onData = (chunk: string) => {
|
|
342
|
+
buf += chunk;
|
|
343
|
+
while (buf.length > 0) {
|
|
344
|
+
if (buf[0] === "\x1b") {
|
|
345
|
+
if (buf.length < 3) break; // wait for rest of sequence
|
|
346
|
+
const seq = buf.slice(0, 3);
|
|
347
|
+
buf = buf.slice(3);
|
|
348
|
+
if (seq === "\x1b[A") {
|
|
349
|
+
sel = Math.max(0, sel - 1);
|
|
350
|
+
redraw();
|
|
351
|
+
} else if (seq === "\x1b[B") {
|
|
352
|
+
sel = Math.min(list.length - 1, sel + 1);
|
|
353
|
+
redraw();
|
|
354
|
+
}
|
|
355
|
+
// ignore other escape sequences
|
|
356
|
+
} else {
|
|
357
|
+
const key = buf[0]!;
|
|
358
|
+
buf = buf.slice(1);
|
|
359
|
+
if (key === "\x03") {
|
|
360
|
+
cleanup();
|
|
361
|
+
process.stderr.write("\n");
|
|
362
|
+
resolve(null);
|
|
363
|
+
return;
|
|
364
|
+
} else if (key === "\r" || key === "\n") {
|
|
365
|
+
cleanup();
|
|
366
|
+
process.stderr.write("\n");
|
|
367
|
+
resolve(list[sel]!);
|
|
368
|
+
return;
|
|
369
|
+
} else if (key >= "1" && key <= String(list.length)) {
|
|
370
|
+
sel = parseInt(key, 10) - 1;
|
|
371
|
+
redraw();
|
|
372
|
+
cleanup();
|
|
373
|
+
process.stderr.write("\n");
|
|
374
|
+
resolve(list[sel]!);
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
359
378
|
}
|
|
360
379
|
};
|
|
361
380
|
|