claude-yes 1.90.0 → 1.90.2
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-BYNrRXLa.js → SUPPORTED_CLIS-CFkKrYJK.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{serve-CKVANskv.js → serve-BYPX6VXm.js} +2 -2
- package/dist/{subcommands-Bz2WIEDl.js → subcommands-D5WYWmh-.js} +1 -1
- package/dist/{subcommands-DUUMZWHZ.js → subcommands-LRmJ4_iJ.js} +3 -3
- package/dist/{ts-D1iQ6T16.js → ts-zHiplVN4.js} +2 -2
- package/dist/{versionChecker-BK69HagP.js → versionChecker-DbGR5bvH.js} +3 -3
- package/package.json +1 -1
- package/ts/subcommands.ts +1 -1
- package/ts/versionChecker.ts +5 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-zHiplVN4.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DbGR5bvH.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-CFkKrYJK.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-DbGR5bvH.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-D5WYWmh-.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-CFkKrYJK.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-zHiplVN4.js";
|
|
2
2
|
import "./logger-B9h0djqx.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-DbGR5bvH.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 { c as readNotes, f as snapshotStatus, l as renderRawLog, m as writeToIpc, o as listRecords, r as controlCodeFromName, u as resolveOne } from "./subcommands-
|
|
4
|
+
import { c as readNotes, f as snapshotStatus, l as renderRawLog, m as writeToIpc, o as listRecords, r as controlCodeFromName, u as resolveOne } from "./subcommands-LRmJ4_iJ.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-BYPX6VXm.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 isSubcommand, c as readNotes, d as runSubcommand, f as snapshotStatus, i as isPidAlive, l as renderRawLog, m as writeToIpc, n as cmdHelp, o as listRecords, p as stopTipForCli, r as controlCodeFromName, s as matchKeyword, t as GRACEFUL_EXIT_COMMANDS, u as resolveOne } from "./subcommands-
|
|
4
|
+
import { a as isSubcommand, c as readNotes, d as runSubcommand, f as snapshotStatus, i as isPidAlive, l as renderRawLog, m as writeToIpc, n as cmdHelp, o as listRecords, p as stopTipForCli, r as controlCodeFromName, s as matchKeyword, t as GRACEFUL_EXIT_COMMANDS, u as resolveOne } from "./subcommands-LRmJ4_iJ.js";
|
|
5
5
|
|
|
6
6
|
export { cmdHelp, isSubcommand, runSubcommand };
|
|
@@ -162,7 +162,7 @@ async function runSubcommand(argv) {
|
|
|
162
162
|
case "restart": return await cmdRestart(rest);
|
|
163
163
|
case "note": return await cmdNote(rest);
|
|
164
164
|
case "serve": {
|
|
165
|
-
const { cmdServe } = await import("./serve-
|
|
165
|
+
const { cmdServe } = await import("./serve-BYPX6VXm.js");
|
|
166
166
|
return cmdServe(rest);
|
|
167
167
|
}
|
|
168
168
|
case "remote": {
|
|
@@ -179,7 +179,7 @@ async function runSubcommand(argv) {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
function cmdHelp() {
|
|
182
|
-
process.stdout.write("ay - agent-yes CLI\n\nManagement:\n ay ls [keyword] list running agents\n ay tail [-f] <keyword> stream output (Ctrl-C to stop)\n ay cat <keyword> full log\n ay head <keyword> first N lines\n ay send <keyword> <msg> send a message\n ay attach <keyword> interactive attach (detach: Ctrl-\\)\n ay stop <keyword> graceful shutdown (/exit for claude/codex)\n ay status <keyword> agent status snapshot\n\nRemote:\n ay serve [--port N] start HTTP API server (prints token)\n ay remote add <alias> http://<token>@<host>:<port>\n ay remote ls / rm <alias> manage saved remotes\n ay ls <token>@<host>:<port> connect inline (no alias needed)\n ay send <token>@<host>:<port>:<kw> <msg>\n\nRun an agent:\n ay [claude|codex|gemini|...] [options] -- [prompt]\n ay claude -- \"fix the bug in auth.ts\"\n ay claude --help full agent-runner options\n\nLabs (examples
|
|
182
|
+
process.stdout.write("ay - agent-yes CLI\n\nManagement:\n ay ls [keyword] list running agents\n ay tail [-f] <keyword> stream output (Ctrl-C to stop)\n ay cat <keyword> full log\n ay head <keyword> first N lines\n ay send <keyword> <msg> send a message\n ay attach <keyword> interactive attach (detach: Ctrl-\\)\n ay stop <keyword> graceful shutdown (/exit for claude/codex)\n ay status <keyword> agent status snapshot\n\nRemote:\n ay serve [--port N] start HTTP API server (prints token)\n ay remote add <alias> http://<token>@<host>:<port>\n ay remote ls / rm <alias> manage saved remotes\n ay ls <token>@<host>:<port> connect inline (no alias needed)\n ay send <token>@<host>:<port>:<kw> <msg>\n\nRun an agent:\n ay [claude|codex|gemini|...] [options] -- [prompt]\n ay claude -- \"fix the bug in auth.ts\"\n ay claude --help full agent-runner options\n\nLabs (examples at https://github.com/snomiao/agent-yes/tree/main/lab):\n local-role-play/ designer + builder on one machine\n http-remote/ ay serve remote access demo\n p2p-pairing/ libp2p P2P (needs: cargo build --features swarm)\n");
|
|
183
183
|
return 0;
|
|
184
184
|
}
|
|
185
185
|
function matchKeyword(record, keyword) {
|
|
@@ -1447,4 +1447,4 @@ async function cmdStatus(rest) {
|
|
|
1447
1447
|
|
|
1448
1448
|
//#endregion
|
|
1449
1449
|
export { isSubcommand as a, readNotes as c, runSubcommand as d, snapshotStatus as f, isPidAlive as i, renderRawLog as l, writeToIpc as m, cmdHelp as n, listRecords as o, stopTipForCli as p, controlCodeFromName as r, matchKeyword as s, GRACEFUL_EXIT_COMMANDS as t, resolveOne as u };
|
|
1450
|
-
//# sourceMappingURL=subcommands-
|
|
1450
|
+
//# sourceMappingURL=subcommands-LRmJ4_iJ.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-DbGR5bvH.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-zHiplVN4.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.90.
|
|
10
|
+
var version = "1.90.2";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -86,7 +86,7 @@ async function checkAndAutoUpdate() {
|
|
|
86
86
|
if (process.env.AGENT_YES_NO_UPDATE) return;
|
|
87
87
|
if (process.env.AGENT_YES_UPDATED) return;
|
|
88
88
|
if (import.meta.url.startsWith("file://") && !import.meta.url.includes("node_modules")) {
|
|
89
|
-
const scriptDir = path.dirname(
|
|
89
|
+
const scriptDir = path.dirname(fileURLToPath(import.meta.url));
|
|
90
90
|
const repoRoot = path.resolve(scriptDir, "..");
|
|
91
91
|
if (existsSync(path.join(repoRoot, ".git"))) return;
|
|
92
92
|
}
|
|
@@ -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-DbGR5bvH.js.map
|
package/package.json
CHANGED
package/ts/subcommands.ts
CHANGED
|
@@ -236,7 +236,7 @@ export function cmdHelp(): number {
|
|
|
236
236
|
` ay claude -- "fix the bug in auth.ts"\n` +
|
|
237
237
|
` ay claude --help full agent-runner options\n` +
|
|
238
238
|
`\n` +
|
|
239
|
-
`Labs (examples
|
|
239
|
+
`Labs (examples at https://github.com/snomiao/agent-yes/tree/main/lab):\n` +
|
|
240
240
|
` local-role-play/ designer + builder on one machine\n` +
|
|
241
241
|
` http-remote/ ay serve remote access demo\n` +
|
|
242
242
|
` p2p-pairing/ libp2p P2P (needs: cargo build --features swarm)\n`,
|
package/ts/versionChecker.ts
CHANGED
|
@@ -121,7 +121,11 @@ export async function checkAndAutoUpdate(): Promise<void> {
|
|
|
121
121
|
|
|
122
122
|
// Skip auto-update when running from a linked local dev checkout (git repo)
|
|
123
123
|
if (import.meta.url.startsWith("file://") && !import.meta.url.includes("node_modules")) {
|
|
124
|
-
|
|
124
|
+
// Use fileURLToPath rather than `new URL(url).pathname`: on Windows the
|
|
125
|
+
// pathname of file:///C:/foo is "/C:/foo" (leading slash before the drive
|
|
126
|
+
// letter), which path.dirname/path.resolve misinterpret — the .git lookup
|
|
127
|
+
// then runs against a non-existent path and auto-update fires on dev clones.
|
|
128
|
+
const scriptDir = path.dirname(fileURLToPath(import.meta.url));
|
|
125
129
|
const repoRoot = path.resolve(scriptDir, "..");
|
|
126
130
|
if (existsSync(path.join(repoRoot, ".git"))) return;
|
|
127
131
|
}
|