agent-yes 1.292.0-beta.747.1 → 1.292.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.
Files changed (40) hide show
  1. package/README.md +0 -2
  2. package/dist/{SUPPORTED_CLIS-CYk6qzKg.js → SUPPORTED_CLIS-BDLK4Ezp.js} +3 -3
  3. package/dist/{SUPPORTED_CLIS-3ajbbeQn.js → SUPPORTED_CLIS-BfM59Xpj.js} +2 -2
  4. package/dist/{agentShare-Do-mPe4w.js → agentShare-BU4Mkg55.js} +3 -3
  5. package/dist/{callback-r22UuMAp.js → callback-7gzaW-65.js} +3 -3
  6. package/dist/{callback-Cgl3Jysy.js → callback-Bw5PmAIq.js} +3 -3
  7. package/dist/cli.js +7 -7
  8. package/dist/{cmdPs-biiXVDL6.js → cmdPs-DHYXWzXx.js} +3 -3
  9. package/dist/index.js +2 -2
  10. package/dist/{notifyDaemon-Cdw5MEak.js → notifyDaemon-DLqQeAti.js} +3 -3
  11. package/dist/{parentPingLoop-VSZwEu-G.js → parentPingLoop-H6V7_qIA.js} +2 -2
  12. package/dist/{remotes-5P__pAXA.js → remotes-tmKwrr20.js} +2 -2
  13. package/dist/{remotes-CY69MeQB.js → remotes-wPL0JtBs.js} +1 -1
  14. package/dist/{rustBinary-yqhXo2O7.js → rustBinary-CK3xoBVr.js} +3 -21
  15. package/dist/rustBinary-D9wbtLuv.js +4 -0
  16. package/dist/{schedule-wYCyfW9L.js → schedule-CVeX3FUy.js} +4 -4
  17. package/dist/{serve-Cv0Kk2jj.js → serve-Cek2eJS-.js} +18 -59
  18. package/dist/{setup-D3R-WRAt.js → setup-ERJSELGI.js} +3 -3
  19. package/dist/{subcommands-ZIPVN_Ad.js → subcommands-CSAgQgag.js} +2 -2
  20. package/dist/{subcommands-CHbIHTsy.js → subcommands-O-CiI-D5.js} +19 -19
  21. package/dist/{systemPathLink-VV-Vm6y2.js → systemPathLink-BVdk48Vz.js} +1 -1
  22. package/dist/{terminal-bQvFmDJb.js → terminal-CPxIAJy_.js} +2 -2
  23. package/dist/{todoCli-BDttv8mk.js → todoCli-DSQXAcwA.js} +1 -1
  24. package/dist/{tray-DWWsVS7Y.js → tray-CIt9mCKZ.js} +1 -1
  25. package/dist/trayApp-oPSkAWLK.js +5 -0
  26. package/dist/{trayApp-iVkNlV5t.js → trayApp-xQpwYUxK.js} +2 -2
  27. package/dist/{ts-DUyDzkQB.js → ts--tcZ9vtp.js} +3 -3
  28. package/dist/{versionChecker-DHc7yArH.js → versionChecker-CLOLbs5d.js} +2 -2
  29. package/dist/{webrtcRemote-0RGrSwqd.js → webrtcRemote-yvMYsij3.js} +1 -1
  30. package/dist/{widget-DLZwwZqb.js → widget-B2YAkIhz.js} +3 -3
  31. package/dist/{ws-B_Qa1oGo.js → ws-BZdG-J-R.js} +3 -3
  32. package/dist/{ws-R8oUIaAz.js → ws-DRO7LfQQ.js} +2 -2
  33. package/package.json +1 -1
  34. package/ts/rustBinary.ts +0 -22
  35. package/ts/serve.ts +0 -51
  36. package/dist/rustBinary-CNeQN6wU.js +0 -4
  37. package/dist/serveRust-DDQiZmMf.js +0 -127
  38. package/dist/trayApp-CaWtovfb.js +0 -5
  39. package/ts/serveRust.spec.ts +0 -85
  40. package/ts/serveRust.ts +0 -114
package/README.md CHANGED
@@ -32,8 +32,6 @@ shortcut that launches claude with no arguments.
32
32
 
33
33
  For the local web console, install [Portless](https://portless.sh/) once with `npm install -g portless`, then run `ay serve`. It assigns a free internal port and serves the console at `https://agent-yes.localhost/`. `ay serve --port N` remains available for a fixed-port API listener.
34
34
 
35
- Like `ay <cli>`, `ay serve` runs the Rust daemon (`ayrs serve`) by default for the flags it supports — `--webrtc [webrtc://url]`, `--port N`, `--sighost H`. The bare `ay serve` (Portless), `--share`, and the `install`/`status`/`logs` subcommands still run the TypeScript server; `--no-rust` (or `AGENT_YES_NO_RUST=1`) forces it for everything.
36
-
37
35
  ## Features
38
36
 
39
37
  - **Multi-CLI Support**: Works with Claude, Codex, Copilot, and Cursor CLI tools
@@ -1,12 +1,12 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-DHc7yArH.js";
3
- import "./ts-DUyDzkQB.js";
2
+ import "./versionChecker-CLOLbs5d.js";
3
+ import "./ts--tcZ9vtp.js";
4
4
  import "./todoAutomation-CbVVS4re.js";
5
5
  import "./JsonlStore-BqF7AQ6E.js";
6
6
  import "./globalPidIndex-CRH9L9tn.js";
7
7
  import "./pidStore-DXWqzTSz.js";
8
8
  import "./messageLog-Brx3w6zT.js";
9
9
  import "./todoStore-DF6vxHgV.js";
10
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-3ajbbeQn.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BfM59Xpj.js";
11
11
 
12
12
  export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-DUyDzkQB.js";
1
+ import { t as CLIS_CONFIG } from "./ts--tcZ9vtp.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-3ajbbeQn.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-BfM59Xpj.js.map
@@ -5,10 +5,10 @@ import "./pidStore-DXWqzTSz.js";
5
5
  import "./messageLog-Brx3w6zT.js";
6
6
  import "./e2e-z1xpwSAg.js";
7
7
  import "./configShared-DKTgiz7K.js";
8
- import { J as resolveOne } from "./subcommands-CHbIHTsy.js";
8
+ import { J as resolveOne } from "./subcommands-O-CiI-D5.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
- import "./remotes-5P__pAXA.js";
11
+ import "./remotes-tmKwrr20.js";
12
12
  import { o as startShare } from "./share-C9oGvjXT.js";
13
13
 
14
14
  //#region ts/agentShare.ts
@@ -232,4 +232,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
232
232
 
233
233
  //#endregion
234
234
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
235
- //# sourceMappingURL=agentShare-Do-mPe4w.js.map
235
+ //# sourceMappingURL=agentShare-BU4Mkg55.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
2
- import { J as resolveOne } from "./subcommands-CHbIHTsy.js";
2
+ import { J as resolveOne } from "./subcommands-O-CiI-D5.js";
3
3
  import { a as mintCapability, o as parseExpires } from "./callbackCore-Bl2gGcxg.js";
4
4
  import { randomBytes } from "node:crypto";
5
5
  import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
@@ -72,7 +72,7 @@ async function resolveBase(flag) {
72
72
  if (flag) return flag;
73
73
  if (process.env.AGENT_YES_CALLBACK_BASE) return process.env.AGENT_YES_CALLBACK_BASE;
74
74
  try {
75
- const { resolveLocalServeUrl } = await import("./serve-Cv0Kk2jj.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-Cek2eJS-.js");
76
76
  const url = await resolveLocalServeUrl();
77
77
  if (url) return url;
78
78
  } catch {}
@@ -187,4 +187,4 @@ async function cmdCallback(rest) {
187
187
 
188
188
  //#endregion
189
189
  export { loadOrCreateCallbackSecret as i, isCallbackRevoked as n, loadCallbackSecretReadOnly as r, cmdCallback as t };
190
- //# sourceMappingURL=callback-r22UuMAp.js.map
190
+ //# sourceMappingURL=callback-7gzaW-65.js.map
@@ -5,11 +5,11 @@ import "./pidStore-DXWqzTSz.js";
5
5
  import "./messageLog-Brx3w6zT.js";
6
6
  import "./e2e-z1xpwSAg.js";
7
7
  import "./configShared-DKTgiz7K.js";
8
- import "./subcommands-CHbIHTsy.js";
8
+ import "./subcommands-O-CiI-D5.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
- import "./remotes-5P__pAXA.js";
11
+ import "./remotes-tmKwrr20.js";
12
12
  import "./callbackCore-Bl2gGcxg.js";
13
- import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-r22UuMAp.js";
13
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-7gzaW-65.js";
14
14
 
15
15
  export { cmdCallback };
package/dist/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bun
2
2
  import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
3
3
  import { n as logger } from "./logger-CDIsZ-Pp.js";
4
- import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-DHc7yArH.js";
5
- import { d as getRustBinary } from "./rustBinary-yqhXo2O7.js";
4
+ import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-CLOLbs5d.js";
5
+ import { u as getRustBinary } from "./rustBinary-CK3xoBVr.js";
6
6
  import { argv } from "process";
7
7
  import { spawn } from "child_process";
8
8
  import ms from "ms";
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
295
295
  const rawArg = process.argv[2];
296
296
  const managerCommands = !invokedCliName(process.argv);
297
297
  const isHelpFlag = rawArg === "-h" || rawArg === "--help";
298
- const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-ZIPVN_Ad.js");
298
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-CSAgQgag.js");
299
299
  if (isHelpFlag && process.argv.length === 3) {
300
300
  await cmdHelp(managerCommands);
301
301
  process.exit(0);
@@ -309,7 +309,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
309
309
  process.exit(code ?? 0);
310
310
  }
311
311
  {
312
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CYk6qzKg.js");
312
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BDLK4Ezp.js");
313
313
  if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
314
314
  process.stderr.write(`ay: unknown subcommand or CLI '${rawArg}'.\n See 'ay help' for subcommands. To run an agent, name a CLI:\n 'ay <cli> …' (e.g. 'ay claude …') or 'ay --cli <cli> …'.\n`);
315
315
  process.exit(1);
@@ -328,12 +328,12 @@ await checkAndAutoUpdate();
328
328
  logger.info(versionString());
329
329
  const config = parseCliArgs(process.argv);
330
330
  if (config.tray) {
331
- const { startTray } = await import("./tray-DWWsVS7Y.js");
331
+ const { startTray } = await import("./tray-CIt9mCKZ.js");
332
332
  await startTray();
333
333
  await new Promise(() => {});
334
334
  }
335
335
  {
336
- const { ensureTray } = await import("./tray-DWWsVS7Y.js");
336
+ const { ensureTray } = await import("./tray-CIt9mCKZ.js");
337
337
  ensureTray();
338
338
  }
339
339
  if (!config.showVersion && !config.appendPrompt && !config.tray) {
@@ -360,7 +360,7 @@ if (config.useRust) {
360
360
  }
361
361
  }
362
362
  if (rustBinary) {
363
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CYk6qzKg.js");
363
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BDLK4Ezp.js");
364
364
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
365
365
  if (config.verbose) {
366
366
  console.log(`[rust] Using binary: ${rustBinary}`);
@@ -5,10 +5,10 @@ import "./pidStore-DXWqzTSz.js";
5
5
  import "./messageLog-Brx3w6zT.js";
6
6
  import "./e2e-z1xpwSAg.js";
7
7
  import "./configShared-DKTgiz7K.js";
8
- import { F as listRecords, dt as buildAgentForest, ft as flattenForest, h as deriveLiveState } from "./subcommands-CHbIHTsy.js";
8
+ import { F as listRecords, dt as buildAgentForest, ft as flattenForest, h as deriveLiveState } from "./subcommands-O-CiI-D5.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
- import "./remotes-5P__pAXA.js";
11
+ import "./remotes-tmKwrr20.js";
12
12
  import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-CyD8h5nx.js";
13
13
  import yargs from "yargs";
14
14
  import { readFileSync } from "node:fs";
@@ -330,4 +330,4 @@ function readPpidSync(pid) {
330
330
 
331
331
  //#endregion
332
332
  export { cmdPs };
333
- //# sourceMappingURL=cmdPs-biiXVDL6.js.map
333
+ //# sourceMappingURL=cmdPs-DHYXWzXx.js.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-DHc7yArH.js";
3
- import { a as hasTodoStore, i as answerAsk, l as AgentContext, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-DUyDzkQB.js";
2
+ import "./versionChecker-CLOLbs5d.js";
3
+ import { a as hasTodoStore, i as answerAsk, l as AgentContext, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts--tcZ9vtp.js";
4
4
  import { a as renderTree, c as describeBlock, i as renderDigest, l as monitorHint, o as unblockedTasks, r as openBlockers, t as reconcileTodos, u as removeControlCharacters } from "./todoAutomation-CbVVS4re.js";
5
5
  import "./JsonlStore-BqF7AQ6E.js";
6
6
  import "./globalPidIndex-CRH9L9tn.js";
@@ -5,10 +5,10 @@ import "./pidStore-DXWqzTSz.js";
5
5
  import "./messageLog-Brx3w6zT.js";
6
6
  import "./e2e-z1xpwSAg.js";
7
7
  import "./configShared-DKTgiz7K.js";
8
- import { D as isPidAlive, F as listRecords, G as renderLogTailLines, h as deriveLiveState } from "./subcommands-CHbIHTsy.js";
8
+ import { D as isPidAlive, F as listRecords, G as renderLogTailLines, h as deriveLiveState } from "./subcommands-O-CiI-D5.js";
9
9
  import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
- import "./remotes-5P__pAXA.js";
11
+ import "./remotes-tmKwrr20.js";
12
12
  import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
13
13
  import { randomUUID } from "node:crypto";
14
14
  import { execFile, execFileSync } from "node:child_process";
@@ -879,4 +879,4 @@ async function ensureDaemon() {
879
879
 
880
880
  //#endregion
881
881
  export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
882
- //# sourceMappingURL=notifyDaemon-Cdw5MEak.js.map
882
+ //# sourceMappingURL=notifyDaemon-DLqQeAti.js.map
@@ -338,7 +338,7 @@ async function isParentWatching(parentWrapperPid, parentAgentPid, selfAgentPid,
338
338
  logger.debug("[parent-ping] watcher lookup failed:", error);
339
339
  }
340
340
  try {
341
- const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-ZIPVN_Ad.js");
341
+ const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-CSAgQgag.js");
342
342
  const last = await lastReadAt(`agent:${parentAgentPid}`, selfAgentPid);
343
343
  if (last !== null && now - last <= READ_WINDOW_MS) return true;
344
344
  } catch (error) {
@@ -466,4 +466,4 @@ function startParentPingLoop(opts) {
466
466
 
467
467
  //#endregion
468
468
  export { startParentPingLoop };
469
- //# sourceMappingURL=parentPingLoop-VSZwEu-G.js.map
469
+ //# sourceMappingURL=parentPingLoop-H6V7_qIA.js.map
@@ -93,7 +93,7 @@ async function resolveRemoteSpec(spec) {
93
93
  * The bridge lives for the rest of the process (torn down on `process.exit`).
94
94
  */
95
95
  async function resolveWebrtc(link, keyword, label) {
96
- const { startWebrtcBridge } = await import("./webrtcRemote-0RGrSwqd.js");
96
+ const { startWebrtcBridge } = await import("./webrtcRemote-yvMYsij3.js");
97
97
  const bridge = await startWebrtcBridge(link);
98
98
  return {
99
99
  url: bridge.baseUrl,
@@ -181,4 +181,4 @@ async function cmdRemote(rest) {
181
181
 
182
182
  //#endregion
183
183
  export { resolveRemoteSpec as a, readRemotes as i, deleteRemoteAlias as n, writeRemoteAlias as o, parseDirectRemoteSpec as r, cmdRemote as t };
184
- //# sourceMappingURL=remotes-5P__pAXA.js.map
184
+ //# sourceMappingURL=remotes-tmKwrr20.js.map
@@ -1,5 +1,5 @@
1
1
  import "./e2e-z1xpwSAg.js";
2
2
  import "./webrtcLink-CnQf9pmu.js";
3
- import { a as resolveRemoteSpec, i as readRemotes, n as deleteRemoteAlias, o as writeRemoteAlias, r as parseDirectRemoteSpec, t as cmdRemote } from "./remotes-5P__pAXA.js";
3
+ import { a as resolveRemoteSpec, i as readRemotes, n as deleteRemoteAlias, o as writeRemoteAlias, r as parseDirectRemoteSpec, t as cmdRemote } from "./remotes-tmKwrr20.js";
4
4
 
5
5
  export { cmdRemote };
@@ -1,4 +1,4 @@
1
- import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-DHc7yArH.js";
1
+ import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-CLOLbs5d.js";
2
2
  import { execFileSync } from "child_process";
3
3
  import { existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
4
4
  import { chmod, copyFile } from "fs/promises";
@@ -157,24 +157,6 @@ function findTrayLauncher() {
157
157
  for (const p of searchPaths) if (p && existsSync(p)) return p;
158
158
  }
159
159
  /**
160
- * Locate the `ayrs` binary (the Rust `serve` daemon). Same install shapes as
161
- * the agent runtime — a dev `rs/target` build, the downloaded release bin dir
162
- * (CI ships ayrs in every platform bundle since #473), or `~/.cargo/bin` on
163
- * PATH after `bun run build:rs`. Undefined when absent (an older release, or a
164
- * platform whose bundle predates it) — callers fall back to the TS server.
165
- */
166
- function findAyrsBinary() {
167
- const exe = process.platform === "win32" ? "ayrs.exe" : "ayrs";
168
- const dir = import.meta.dirname ?? import.meta.dir;
169
- const searchPaths = [
170
- path.resolve(dir, `../rs/target/release/${exe}`),
171
- path.resolve(dir, `../rs/target/debug/${exe}`),
172
- path.join(getBinDir(), exe),
173
- Bun.which("ayrs") ?? ""
174
- ];
175
- for (const p of searchPaths) if (p && existsSync(p)) return p;
176
- }
177
- /**
178
160
  * Get GitHub release download URL for the binary
179
161
  */
180
162
  function getDownloadUrl(version = "latest") {
@@ -343,5 +325,5 @@ async function getRustBinary(options = {}) {
343
325
  }
344
326
 
345
327
  //#endregion
346
- export { findSpawnHiddenLauncher as a, getBinDir as c, getRustBinary as d, findRustBinary as i, getBinaryName as l, downloadBinary as n, findTrayLauncher as o, findAyrsBinary as r, gcOldBinaryDirs as s, devBuildInfo as t, getDownloadUrl as u };
347
- //# sourceMappingURL=rustBinary-yqhXo2O7.js.map
328
+ export { findTrayLauncher as a, getBinaryName as c, findSpawnHiddenLauncher as i, getDownloadUrl as l, downloadBinary as n, gcOldBinaryDirs as o, findRustBinary as r, getBinDir as s, devBuildInfo as t, getRustBinary as u };
329
+ //# sourceMappingURL=rustBinary-CK3xoBVr.js.map
@@ -0,0 +1,4 @@
1
+ import "./versionChecker-CLOLbs5d.js";
2
+ import { a as findTrayLauncher, c as getBinaryName, i as findSpawnHiddenLauncher, l as getDownloadUrl, n as downloadBinary, o as gcOldBinaryDirs, r as findRustBinary, s as getBinDir, t as devBuildInfo, u as getRustBinary } from "./rustBinary-CK3xoBVr.js";
3
+
4
+ export { gcOldBinaryDirs };
@@ -1,13 +1,13 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-DHc7yArH.js";
3
- import "./ts-DUyDzkQB.js";
2
+ import "./versionChecker-CLOLbs5d.js";
3
+ import "./ts--tcZ9vtp.js";
4
4
  import "./todoAutomation-CbVVS4re.js";
5
5
  import "./JsonlStore-BqF7AQ6E.js";
6
6
  import "./globalPidIndex-CRH9L9tn.js";
7
7
  import "./pidStore-DXWqzTSz.js";
8
8
  import "./messageLog-Brx3w6zT.js";
9
9
  import "./todoStore-DF6vxHgV.js";
10
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-3ajbbeQn.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BfM59Xpj.js";
11
11
  import { f as resolveSpawnCwd } from "./workspaceConfig-DTvPtr5j.js";
12
12
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CipjIwfO.js";
13
13
  import { createHash } from "node:crypto";
@@ -154,4 +154,4 @@ async function cmdSchedule(rest) {
154
154
 
155
155
  //#endregion
156
156
  export { cmdSchedule };
157
- //# sourceMappingURL=schedule-wYCyfW9L.js.map
157
+ //# sourceMappingURL=schedule-CVeX3FUy.js.map
@@ -1,7 +1,7 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import { i as getInstalledPackage } from "./versionChecker-DHc7yArH.js";
3
- import { a as findSpawnHiddenLauncher } from "./rustBinary-yqhXo2O7.js";
4
- import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-DUyDzkQB.js";
2
+ import { i as getInstalledPackage } from "./versionChecker-CLOLbs5d.js";
3
+ import { i as findSpawnHiddenLauncher } from "./rustBinary-CK3xoBVr.js";
4
+ import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts--tcZ9vtp.js";
5
5
  import { t as agentYesHome$1 } from "./agentYesHome-BNtn19J4.js";
6
6
  import { u as removeControlCharacters } from "./todoAutomation-CbVVS4re.js";
7
7
  import "./JsonlStore-BqF7AQ6E.js";
@@ -12,19 +12,19 @@ import { t as pgidForWrapper } from "./reaper-UimuuTfO.js";
12
12
  import "./todoStore-DF6vxHgV.js";
13
13
  import "./e2e-z1xpwSAg.js";
14
14
  import "./configShared-DKTgiz7K.js";
15
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-3ajbbeQn.js";
16
- import { B as readLogForRender, F as listRecords, G as renderLogTailLines, H as readPtysize, J as resolveOne, K as renderRawLog, M as isUserTyping, O as isSlashCommand, S as extractTaskCounts, U as recentMessageEdges, V as readNotes, W as recentReadEdges, ct as framePaste, et as snapshotStatus, g as deriveLiveStatus, lt as shouldFramePaste, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, st as withIpcLock, u as cliDefaults, ut as TYPING_BADGE, x as extractNeedsInput, y as extractBadges } from "./subcommands-CHbIHTsy.js";
15
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BfM59Xpj.js";
16
+ import { B as readLogForRender, F as listRecords, G as renderLogTailLines, H as readPtysize, J as resolveOne, K as renderRawLog, M as isUserTyping, O as isSlashCommand, S as extractTaskCounts, U as recentMessageEdges, V as readNotes, W as recentReadEdges, ct as framePaste, et as snapshotStatus, g as deriveLiveStatus, lt as shouldFramePaste, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, st as withIpcLock, u as cliDefaults, ut as TYPING_BADGE, x as extractNeedsInput, y as extractBadges } from "./subcommands-O-CiI-D5.js";
17
17
  import { c as isTransientLockMkdirError } from "./notifyStore-2SWKGwZI.js";
18
18
  import { i as toWebrtcUrl, n as isWebrtcSpec } from "./webrtcLink-CnQf9pmu.js";
19
- import "./remotes-5P__pAXA.js";
19
+ import "./remotes-tmKwrr20.js";
20
20
  import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Bl2gGcxg.js";
21
- import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-r22UuMAp.js";
21
+ import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-7gzaW-65.js";
22
22
  import { n as sampleTrees } from "./procStats-CyD8h5nx.js";
23
23
  import { a as getProvisionRoot, d as isProvisionAllowed, f as resolveSpawnCwd, i as getProvisionHook, l as hasProvisionHook, o as getSpawnHook, t as allowsSkipPermissions, u as hasSpawnHook } from "./workspaceConfig-DTvPtr5j.js";
24
24
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CipjIwfO.js";
25
- import { i as importProvisionModule } from "./ws-R8oUIaAz.js";
25
+ import { i as importProvisionModule } from "./ws-DRO7LfQQ.js";
26
26
  import { r as spawnRejectionReason } from "./spawnGate-YpHopveO.js";
27
- import { i as launchTray } from "./trayApp-iVkNlV5t.js";
27
+ import { i as launchTray } from "./trayApp-xQpwYUxK.js";
28
28
  import yargs from "yargs";
29
29
  import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
30
30
  import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
@@ -1590,32 +1590,6 @@ async function cmdServeStatus(args) {
1590
1590
  }
1591
1591
  return 0;
1592
1592
  }
1593
- async function runAyrsServe(ayrs, argv) {
1594
- const child = Bun.spawn([ayrs, ...argv], {
1595
- stdio: [
1596
- "inherit",
1597
- "inherit",
1598
- "inherit"
1599
- ],
1600
- env: process.env,
1601
- cwd: process.cwd()
1602
- });
1603
- const forward = (sig) => () => {
1604
- try {
1605
- child.kill(sig);
1606
- } catch {}
1607
- };
1608
- const onInt = forward("SIGINT");
1609
- const onTerm = forward("SIGTERM");
1610
- process.on("SIGINT", onInt);
1611
- process.on("SIGTERM", onTerm);
1612
- try {
1613
- return await child.exited;
1614
- } finally {
1615
- process.off("SIGINT", onInt);
1616
- process.off("SIGTERM", onTerm);
1617
- }
1618
- }
1619
1593
  async function cmdServe(rest) {
1620
1594
  if (rest.includes("-h") || rest.includes("--help")) {
1621
1595
  process.stdout.write(`Usage: ay serve [options]
@@ -1633,11 +1607,6 @@ Modes (default: --http):
1633
1607
  (stable link across restarts; delete the file to rotate).
1634
1608
  --share [URL] Legacy alias for --http --webrtc
1635
1609
 
1636
- Runtime: like \`ay <cli>\`, the Rust daemon (ayrs serve) runs by default for
1637
- the flags it supports — --webrtc [webrtc://url], --port N, --sighost H.
1638
- Everything else (bare \`ay serve\`, --share/--http/--host/--tls-*, the
1639
- subcommands) runs the TypeScript server. --no-rust forces TypeScript.
1640
-
1641
1610
  Options:
1642
1611
  --port N Bypass Portless and listen on a fixed HTTP port
1643
1612
  --host HOST Interface to bind (default: 127.0.0.1; use 0.0.0.0 to expose)
@@ -1648,16 +1617,6 @@ Options:
1648
1617
  ${portlessConsoleUrl()}\n --allow-spawn Deprecated no-op — the console can always spawn agents\n --tls-cert FILE TLS certificate PEM\n --tls-key FILE TLS private key PEM\n\nSubcommands:\n ay serve install install as background daemon (oxmgr; pm2 fallback on Windows without the winfix build)\n ay serve status show daemon/server status (add --json for scripts)\n ay serve uninstall remove daemon\n ay serve logs view daemon logs\n\nOnce running, connect from another machine:\n ay ls <token>@<host>:<port>\n ay remote add <alias> http://<token>@<host>:<port>\n`);
1649
1618
  return 0;
1650
1619
  }
1651
- {
1652
- const { planRustServe } = await import("./serveRust-DDQiZmMf.js");
1653
- const plan = planRustServe(rest);
1654
- if (plan.kind === "rust") {
1655
- const { findAyrsBinary } = await import("./rustBinary-CNeQN6wU.js");
1656
- const ayrs = findAyrsBinary();
1657
- if (ayrs) return runAyrsServe(ayrs, plan.argv);
1658
- process.stderr.write("ay serve: ayrs binary not found — running the TypeScript server (bun run build:rs, or reinstall, to get the Rust daemon)\n");
1659
- } else rest = plan.rest;
1660
- }
1661
1620
  const sub = rest[0];
1662
1621
  if (sub === "status") return cmdServeStatus(rest.slice(1));
1663
1622
  if (sub === "start" || sub === "stop") return cmdServeStartStop(sub);
@@ -2627,7 +2586,7 @@ Options:
2627
2586
  }
2628
2587
  });
2629
2588
  if (req.method === "GET" && p === "/api/ws") {
2630
- const ws = await import("./ws-B_Qa1oGo.js");
2589
+ const ws = await import("./ws-BZdG-J-R.js");
2631
2590
  try {
2632
2591
  await ws.loadProvision();
2633
2592
  } catch (e) {
@@ -2647,7 +2606,7 @@ Options:
2647
2606
  if (req.method === "GET" && p === "/api/ws/status") {
2648
2607
  const dirRaw = url.searchParams.get("path");
2649
2608
  if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
2650
- const ws = await import("./ws-B_Qa1oGo.js");
2609
+ const ws = await import("./ws-BZdG-J-R.js");
2651
2610
  let prov;
2652
2611
  try {
2653
2612
  prov = await ws.loadProvision();
@@ -2669,7 +2628,7 @@ Options:
2669
2628
  }
2670
2629
  }
2671
2630
  if (req.method === "GET" && p === "/api/ws/repos") {
2672
- const ws = await import("./ws-B_Qa1oGo.js");
2631
+ const ws = await import("./ws-BZdG-J-R.js");
2673
2632
  try {
2674
2633
  await ws.loadProvision();
2675
2634
  } catch (e) {
@@ -2750,7 +2709,7 @@ Options:
2750
2709
  const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
2751
2710
  if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
2752
2711
  const [, owner, repo] = m;
2753
- const ws = await import("./ws-B_Qa1oGo.js");
2712
+ const ws = await import("./ws-BZdG-J-R.js");
2754
2713
  let prov;
2755
2714
  try {
2756
2715
  prov = await ws.loadProvision();
@@ -3668,7 +3627,7 @@ Options:
3668
3627
  const perm = body.perm ?? "r";
3669
3628
  if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
3670
3629
  try {
3671
- const { createScopedShare } = await import("./agentShare-Do-mPe4w.js");
3630
+ const { createScopedShare } = await import("./agentShare-BU4Mkg55.js");
3672
3631
  const share = await createScopedShare({
3673
3632
  agent: body.agent,
3674
3633
  perm,
@@ -3683,12 +3642,12 @@ Options:
3683
3642
  }
3684
3643
  }
3685
3644
  if (req.method === "GET" && p === "/api/shares") {
3686
- const { listShares } = await import("./agentShare-Do-mPe4w.js");
3645
+ const { listShares } = await import("./agentShare-BU4Mkg55.js");
3687
3646
  return Response.json(listShares());
3688
3647
  }
3689
3648
  const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
3690
3649
  if (req.method === "DELETE" && revokeM) {
3691
- const { revokeShare } = await import("./agentShare-Do-mPe4w.js");
3650
+ const { revokeShare } = await import("./agentShare-BU4Mkg55.js");
3692
3651
  const ok = revokeShare(decodeURIComponent(revokeM[1]));
3693
3652
  return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
3694
3653
  }
@@ -3994,7 +3953,7 @@ Options:
3994
3953
  const shutdown = (resolve) => {
3995
3954
  if (heartbeat) clearInterval(heartbeat);
3996
3955
  closeShare?.();
3997
- import("./agentShare-Do-mPe4w.js").then((m) => m.revokeAllShares()).catch(() => {});
3956
+ import("./agentShare-BU4Mkg55.js").then((m) => m.revokeAllShares()).catch(() => {});
3998
3957
  server?.stop();
3999
3958
  Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
4000
3959
  };
@@ -4007,4 +3966,4 @@ Options:
4007
3966
 
4008
3967
  //#endregion
4009
3968
  export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
4010
- //# sourceMappingURL=serve-Cv0Kk2jj.js.map
3969
+ //# sourceMappingURL=serve-Cek2eJS-.js.map
@@ -88,7 +88,7 @@ async function cmdSetup(rest) {
88
88
  process.stdout.write(`workspace root: ${abs}\n`);
89
89
  if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
90
90
  try {
91
- const { linkBunBinsToSystemPath } = await import("./systemPathLink-VV-Vm6y2.js");
91
+ const { linkBunBinsToSystemPath } = await import("./systemPathLink-BVdk48Vz.js");
92
92
  const r = linkBunBinsToSystemPath();
93
93
  if (r && (r.linked.length || r.refreshed.length)) {
94
94
  const n = r.linked.length + r.refreshed.length;
@@ -97,7 +97,7 @@ async function cmdSetup(rest) {
97
97
  } catch {}
98
98
  if (noShare) return 0;
99
99
  process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
100
- const { cmdServe } = await import("./serve-Cv0Kk2jj.js");
100
+ const { cmdServe } = await import("./serve-Cek2eJS-.js");
101
101
  return cmdServe([
102
102
  "install",
103
103
  "--share",
@@ -107,4 +107,4 @@ async function cmdSetup(rest) {
107
107
 
108
108
  //#endregion
109
109
  export { cmdSetup };
110
- //# sourceMappingURL=setup-D3R-WRAt.js.map
110
+ //# sourceMappingURL=setup-ERJSELGI.js.map
@@ -5,9 +5,9 @@ import "./pidStore-DXWqzTSz.js";
5
5
  import "./messageLog-Brx3w6zT.js";
6
6
  import "./e2e-z1xpwSAg.js";
7
7
  import "./configShared-DKTgiz7K.js";
8
- import { $ as sendPayloadCapError, A as isUnknownManagerToken, B as readLogForRender, C as finalizedLines, D as isPidAlive, E as isExitRequest, F as listRecords, G as renderLogTailLines, H as readPtysize, I as matchKeyword, J as resolveOne, K as renderRawLog, L as menuSelectKeys, M as isUserTyping, N as lastReadAt, O as isSlashCommand, P as lastStdinAt, Q as runSubcommand, R as probeStdinReachable, S as extractTaskCounts, T as isBareManagerInvocation, U as recentMessageEdges, V as readNotes, W as recentReadEdges, X as resolveResumeArgs, Y as resolveReadWindow, Z as restartHintLines, _ as envelopeAttribution, a as SEND_BODY_MAX_CHARS, at as writeKeysPaced, b as extractMenu, c as backoffWhileTyping, d as cmdHelp, et as snapshotStatus, f as confirmStdinUnreachable, g as deriveLiveStatus, h as deriveLiveState, i as READ_WINDOW_MS, it as waitForLogQuiet, j as isUnreachableWriteErrno, k as isSubcommand, l as buildEnvelope, m as cursorAbs, n as MAX_RENDER_BYTES, nt as stopTipForCli, o as SEND_EXIT_UNREACHABLE, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, r as READ_PAGE_DEFAULT, rt as submitAndConfirm, s as TYPING_WINDOW_MS, t as GRACEFUL_EXIT_COMMANDS, tt as stdinActivityPath, u as cliDefaults, v as envelopeCostFor, w as isAgentStuck, x as extractNeedsInput, y as extractBadges, z as readAgentPtysize } from "./subcommands-CHbIHTsy.js";
8
+ import { $ as sendPayloadCapError, A as isUnknownManagerToken, B as readLogForRender, C as finalizedLines, D as isPidAlive, E as isExitRequest, F as listRecords, G as renderLogTailLines, H as readPtysize, I as matchKeyword, J as resolveOne, K as renderRawLog, L as menuSelectKeys, M as isUserTyping, N as lastReadAt, O as isSlashCommand, P as lastStdinAt, Q as runSubcommand, R as probeStdinReachable, S as extractTaskCounts, T as isBareManagerInvocation, U as recentMessageEdges, V as readNotes, W as recentReadEdges, X as resolveResumeArgs, Y as resolveReadWindow, Z as restartHintLines, _ as envelopeAttribution, a as SEND_BODY_MAX_CHARS, at as writeKeysPaced, b as extractMenu, c as backoffWhileTyping, d as cmdHelp, et as snapshotStatus, f as confirmStdinUnreachable, g as deriveLiveStatus, h as deriveLiveState, i as READ_WINDOW_MS, it as waitForLogQuiet, j as isUnreachableWriteErrno, k as isSubcommand, l as buildEnvelope, m as cursorAbs, n as MAX_RENDER_BYTES, nt as stopTipForCli, o as SEND_EXIT_UNREACHABLE, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, r as READ_PAGE_DEFAULT, rt as submitAndConfirm, s as TYPING_WINDOW_MS, t as GRACEFUL_EXIT_COMMANDS, tt as stdinActivityPath, u as cliDefaults, v as envelopeCostFor, w as isAgentStuck, x as extractNeedsInput, y as extractBadges, z as readAgentPtysize } from "./subcommands-O-CiI-D5.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
- import "./remotes-5P__pAXA.js";
11
+ import "./remotes-tmKwrr20.js";
12
12
 
13
13
  export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };