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.
@@ -1,6 +1,6 @@
1
- import { t as CLIS_CONFIG } from "./ts-D1iQ6T16.js";
1
+ import { t as CLIS_CONFIG } from "./ts-zHiplVN4.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-BK69HagP.js";
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-BYNrRXLa.js.map
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-BK69HagP.js";
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-Bz2WIEDl.js");
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-BYNrRXLa.js");
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-D1iQ6T16.js";
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-BK69HagP.js";
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-DUUMZWHZ.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-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-CKVANskv.js.map
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-DUUMZWHZ.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-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-CKVANskv.js");
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 in ./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");
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-DUUMZWHZ.js.map
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-BK69HagP.js";
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-D1iQ6T16.js.map
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.0";
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(new URL(import.meta.url).pathname);
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-BK69HagP.js.map
224
+ //# sourceMappingURL=versionChecker-DbGR5bvH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-yes",
3
- "version": "1.90.0",
3
+ "version": "1.90.2",
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
@@ -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 in ./lab/):\n` +
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`,
@@ -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
- const scriptDir = path.dirname(new URL(import.meta.url).pathname);
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
  }