agent-yes 1.96.0 → 1.98.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.
@@ -0,0 +1,8 @@
1
+ import "./ts-BuFWTNL9.js";
2
+ import "./logger-B9h0djqx.js";
3
+ import "./versionChecker-CpNUvHBx.js";
4
+ import "./pidStore-DBjlqzo8.js";
5
+ import "./globalPidIndex-yVd3mbsV.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C0a9K6I5.js";
7
+
8
+ export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-DkjQJTcB.js";
1
+ import { t as CLIS_CONFIG } from "./ts-BuFWTNL9.js";
2
2
 
3
3
  //#region ts/SUPPORTED_CLIS.ts
4
4
  const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
5
5
 
6
6
  //#endregion
7
7
  export { SUPPORTED_CLIS as t };
8
- //# sourceMappingURL=SUPPORTED_CLIS-B2FAlgXF.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-C0a9K6I5.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-xqnqyGKE.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-CpNUvHBx.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-EieqoC9Z.js");
485
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-fCkYXyTe.js");
486
486
  if (isHelpFlag && process.argv.length === 3) {
487
487
  cmdHelp();
488
488
  process.exit(0);
@@ -496,12 +496,12 @@ await checkAndAutoUpdate();
496
496
  logger.info(versionString());
497
497
  const config = parseCliArgs(process.argv);
498
498
  if (config.tray) {
499
- const { startTray } = await import("./tray-D4cJA4UH.js");
499
+ const { startTray } = await import("./tray-CWQe9DMY.js");
500
500
  await startTray();
501
501
  await new Promise(() => {});
502
502
  }
503
503
  {
504
- const { ensureTray } = await import("./tray-D4cJA4UH.js");
504
+ const { ensureTray } = await import("./tray-CWQe9DMY.js");
505
505
  ensureTray();
506
506
  }
507
507
  if (config.useRust) {
@@ -515,7 +515,7 @@ if (config.useRust) {
515
515
  }
516
516
  }
517
517
  if (rustBinary) {
518
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-G8izHOJP.js");
518
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BtLklR5y.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}`);
@@ -545,7 +545,7 @@ if (config.showVersion) {
545
545
  process.exit(0);
546
546
  }
547
547
  if (config.appendPrompt) {
548
- const { PidStore } = await import("./pidStore-iJY3JFTn.js");
548
+ const { PidStore } = await import("./pidStore-9b3YTuf4.js");
549
549
  const ipcPath = await PidStore.findActiveFifo(process.cwd());
550
550
  if (!ipcPath) {
551
551
  console.error("No active agent with IPC found in current directory.");
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-DkjQJTcB.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-BuFWTNL9.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-xqnqyGKE.js";
4
- import "./pidStore-DTzl6zeh.js";
3
+ import "./versionChecker-CpNUvHBx.js";
4
+ import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
6
 
7
7
  export { AgentContext, CLIS_CONFIG, config, agentYes as default, removeControlCharacters };
@@ -0,0 +1,5 @@
1
+ import "./logger-B9h0djqx.js";
2
+ import { t as PidStore } from "./pidStore-DBjlqzo8.js";
3
+ import "./globalPidIndex-yVd3mbsV.js";
4
+
5
+ export { PidStore };
@@ -6,6 +6,26 @@ import { homedir } from "os";
6
6
  import path from "path";
7
7
  import { lock } from "proper-lockfile";
8
8
 
9
+ //#region ts/agentYesHome.ts
10
+ /**
11
+ * Root directory for cross-runtime, machine-global agent-yes state:
12
+ * the pid index (`pids.jsonl`), FIFO/named-pipe IPC endpoints (`fifo/`),
13
+ * winsize signals, notes, and the serve token.
14
+ *
15
+ * Durable per-session *logs* deliberately do NOT live here — they go under
16
+ * `<cwd>/.agent-yes/` so they stay colocated with the project that produced
17
+ * them (see `PidStore`). Only ephemeral IPC + the discovery index are global,
18
+ * which keeps FIFOs on the local home filesystem (reliable `mkfifo`) and lets
19
+ * `ay ls`/`ay attach` find every agent regardless of the caller's cwd.
20
+ *
21
+ * Resolved at call time (not module load) so tests and callers can override
22
+ * via `$AGENT_YES_HOME` without juggling the module cache.
23
+ */
24
+ function agentYesHome() {
25
+ return process.env.AGENT_YES_HOME ?? path.join(homedir(), ".agent-yes");
26
+ }
27
+
28
+ //#endregion
9
29
  //#region ts/JsonlStore.ts
10
30
  /**
11
31
  * A lightweight NeDB-style JSONL persistence layer.
@@ -184,26 +204,6 @@ function generateId() {
184
204
  return Date.now().toString(36) + (idCounter++).toString(36) + Math.random().toString(36).slice(2, 6);
185
205
  }
186
206
 
187
- //#endregion
188
- //#region ts/agentYesHome.ts
189
- /**
190
- * Root directory for cross-runtime, machine-global agent-yes state:
191
- * the pid index (`pids.jsonl`), FIFO/named-pipe IPC endpoints (`fifo/`),
192
- * winsize signals, notes, and the serve token.
193
- *
194
- * Durable per-session *logs* deliberately do NOT live here — they go under
195
- * `<cwd>/.agent-yes/` so they stay colocated with the project that produced
196
- * them (see `PidStore`). Only ephemeral IPC + the discovery index are global,
197
- * which keeps FIFOs on the local home filesystem (reliable `mkfifo`) and lets
198
- * `ay ls`/`ay attach` find every agent regardless of the caller's cwd.
199
- *
200
- * Resolved at call time (not module load) so tests and callers can override
201
- * via `$AGENT_YES_HOME` without juggling the module cache.
202
- */
203
- function agentYesHome() {
204
- return process.env.AGENT_YES_HOME ?? path.join(homedir(), ".agent-yes");
205
- }
206
-
207
207
  //#endregion
208
208
  //#region ts/pidStore.ts
209
209
  var PidStore = class PidStore {
@@ -380,5 +380,5 @@ pid-db/
380
380
  };
381
381
 
382
382
  //#endregion
383
- export { PidStore as t };
384
- //# sourceMappingURL=pidStore-DTzl6zeh.js.map
383
+ export { agentYesHome as n, PidStore as t };
384
+ //# sourceMappingURL=pidStore-DBjlqzo8.js.map
@@ -276,4 +276,4 @@ function shouldUseLock(_cwd) {
276
276
 
277
277
  //#endregion
278
278
  export { shouldUseLock as i, getRunningAgentCount as n, releaseLock as r, acquireLock as t };
279
- //# sourceMappingURL=runningLock-C22d9SRJ.js.map
279
+ //# sourceMappingURL=runningLock-CJxsoGdb.js.map