agent-yes 1.291.2 → 1.291.3

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 (29) hide show
  1. package/dist/{SUPPORTED_CLIS-B-K8FhkA.js → SUPPORTED_CLIS-DrAQbmDk.js} +3 -3
  2. package/dist/{SUPPORTED_CLIS-DQi5c4ko.js → SUPPORTED_CLIS-OdfCE2fQ.js} +2 -2
  3. package/dist/{agentShare--wDQrKC-.js → agentShare-DhKSDNOP.js} +2 -2
  4. package/dist/{callback-CaRErEgx.js → callback-CWydR39Z.js} +3 -3
  5. package/dist/{callback-CpKmmA-2.js → callback-CleYhE8x.js} +2 -2
  6. package/dist/cli.js +5 -5
  7. package/dist/{cmdPs-DIKBQnUJ.js → cmdPs-CI9pHuRq.js} +2 -2
  8. package/dist/index.js +2 -2
  9. package/dist/{notifyDaemon-CuBYFCMk.js → notifyDaemon-VMDwAF-v.js} +2 -2
  10. package/dist/{parentPingLoop-Cmk-A4Rb.js → parentPingLoop-B3MuAvoV.js} +2 -2
  11. package/dist/{rustBinary-DYyUaQng.js → rustBinary-BcGw5x3q.js} +2 -2
  12. package/dist/{rustBinary-CyOBwvtc.js → rustBinary-OANXFg2v.js} +2 -2
  13. package/dist/{schedule-B2QUwQB9.js → schedule-Dd-7lGOB.js} +4 -4
  14. package/dist/{serve-DNwUEFwJ.js → serve-DVkSoYOs.js} +35 -19
  15. package/dist/{setup-BhJD_oWT.js → setup-DMbVXiaN.js} +2 -2
  16. package/dist/{subcommands-CHqXbcD9.js → subcommands-BQwThnKL.js} +1 -1
  17. package/dist/{subcommands-PC2oukWv.js → subcommands-BuGPzWwX.js} +15 -15
  18. package/dist/{terminal-BCH-Z2qt.js → terminal-zi7_eVUp.js} +2 -2
  19. package/dist/trayApp-BHbdgLJq.js +5 -0
  20. package/dist/{trayApp-wSPjp4XE.js → trayApp-DmL24N4g.js} +2 -2
  21. package/dist/{ts-CqJvwlM3.js → ts-B2rKKdIF.js} +3 -3
  22. package/dist/{versionChecker-CaM433Zm.js → versionChecker-CetBLqWk.js} +2 -2
  23. package/dist/{widget-DEgDOsnF.js → widget-DS86uQCX.js} +3 -3
  24. package/dist/{ws-KzFPoSZ2.js → ws-AeT_npPH.js} +2 -2
  25. package/dist/{ws-BquLyuJa.js → ws-DEsnD8RN.js} +2 -2
  26. package/package.json +1 -1
  27. package/ts/serve.spec.ts +21 -0
  28. package/ts/serve.ts +30 -2
  29. package/dist/trayApp-crDhVGgC.js +0 -5
@@ -1,12 +1,12 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-CaM433Zm.js";
3
- import "./ts-CqJvwlM3.js";
2
+ import "./versionChecker-CetBLqWk.js";
3
+ import "./ts-B2rKKdIF.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-DQi5c4ko.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-OdfCE2fQ.js";
11
11
 
12
12
  export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-CqJvwlM3.js";
1
+ import { t as CLIS_CONFIG } from "./ts-B2rKKdIF.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-DQi5c4ko.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-OdfCE2fQ.js.map
@@ -5,7 +5,7 @@ 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-PC2oukWv.js";
8
+ import { J as resolveOne } from "./subcommands-BuGPzWwX.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
11
  import "./remotes-tmKwrr20.js";
@@ -232,4 +232,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
232
232
 
233
233
  //#endregion
234
234
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
235
- //# sourceMappingURL=agentShare--wDQrKC-.js.map
235
+ //# sourceMappingURL=agentShare-DhKSDNOP.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
2
- import { J as resolveOne } from "./subcommands-PC2oukWv.js";
2
+ import { J as resolveOne } from "./subcommands-BuGPzWwX.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-DNwUEFwJ.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-DVkSoYOs.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-CaRErEgx.js.map
190
+ //# sourceMappingURL=callback-CWydR39Z.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-PC2oukWv.js";
8
+ import "./subcommands-BuGPzWwX.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
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-CaRErEgx.js";
13
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CWydR39Z.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-CaM433Zm.js";
5
- import { u as getRustBinary } from "./rustBinary-DYyUaQng.js";
4
+ import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-CetBLqWk.js";
5
+ import { u as getRustBinary } from "./rustBinary-BcGw5x3q.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-CHqXbcD9.js");
298
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-BQwThnKL.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-B-K8FhkA.js");
312
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DrAQbmDk.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);
@@ -360,7 +360,7 @@ if (config.useRust) {
360
360
  }
361
361
  }
362
362
  if (rustBinary) {
363
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-B-K8FhkA.js");
363
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DrAQbmDk.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,7 +5,7 @@ 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-PC2oukWv.js";
8
+ import { F as listRecords, dt as buildAgentForest, ft as flattenForest, h as deriveLiveState } from "./subcommands-BuGPzWwX.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
11
  import "./remotes-tmKwrr20.js";
@@ -330,4 +330,4 @@ function readPpidSync(pid) {
330
330
 
331
331
  //#endregion
332
332
  export { cmdPs };
333
- //# sourceMappingURL=cmdPs-DIKBQnUJ.js.map
333
+ //# sourceMappingURL=cmdPs-CI9pHuRq.js.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-CaM433Zm.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-CqJvwlM3.js";
2
+ import "./versionChecker-CetBLqWk.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-B2rKKdIF.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,7 +5,7 @@ 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-PC2oukWv.js";
8
+ import { D as isPidAlive, F as listRecords, G as renderLogTailLines, h as deriveLiveState } from "./subcommands-BuGPzWwX.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
11
  import "./remotes-tmKwrr20.js";
@@ -879,4 +879,4 @@ async function ensureDaemon() {
879
879
 
880
880
  //#endregion
881
881
  export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
882
- //# sourceMappingURL=notifyDaemon-CuBYFCMk.js.map
882
+ //# sourceMappingURL=notifyDaemon-VMDwAF-v.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-CHqXbcD9.js");
341
+ const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-BQwThnKL.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-Cmk-A4Rb.js.map
469
+ //# sourceMappingURL=parentPingLoop-B3MuAvoV.js.map
@@ -1,4 +1,4 @@
1
- import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-CaM433Zm.js";
1
+ import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-CetBLqWk.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";
@@ -326,4 +326,4 @@ async function getRustBinary(options = {}) {
326
326
 
327
327
  //#endregion
328
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-DYyUaQng.js.map
329
+ //# sourceMappingURL=rustBinary-BcGw5x3q.js.map
@@ -1,4 +1,4 @@
1
- import "./versionChecker-CaM433Zm.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-DYyUaQng.js";
1
+ import "./versionChecker-CetBLqWk.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-BcGw5x3q.js";
3
3
 
4
4
  export { gcOldBinaryDirs };
@@ -1,13 +1,13 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-CaM433Zm.js";
3
- import "./ts-CqJvwlM3.js";
2
+ import "./versionChecker-CetBLqWk.js";
3
+ import "./ts-B2rKKdIF.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-DQi5c4ko.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-OdfCE2fQ.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-B2QUwQB9.js.map
157
+ //# sourceMappingURL=schedule-Dd-7lGOB.js.map
@@ -1,7 +1,7 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import { i as getInstalledPackage } from "./versionChecker-CaM433Zm.js";
3
- import { i as findSpawnHiddenLauncher } from "./rustBinary-DYyUaQng.js";
4
- import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-CqJvwlM3.js";
2
+ import { i as getInstalledPackage } from "./versionChecker-CetBLqWk.js";
3
+ import { i as findSpawnHiddenLauncher } from "./rustBinary-BcGw5x3q.js";
4
+ import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-B2rKKdIF.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-DQi5c4ko.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-PC2oukWv.js";
15
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-OdfCE2fQ.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-BuGPzWwX.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
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-CaRErEgx.js";
21
+ import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-CWydR39Z.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-KzFPoSZ2.js";
25
+ import { i as importProvisionModule } from "./ws-AeT_npPH.js";
26
26
  import { r as spawnRejectionReason } from "./spawnGate-YpHopveO.js";
27
- import { i as launchTray } from "./trayApp-wSPjp4XE.js";
27
+ import { i as launchTray } from "./trayApp-DmL24N4g.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";
@@ -1513,6 +1513,16 @@ async function cmdServeDaemon(sub, args) {
1513
1513
  }).exited ?? 1;
1514
1514
  return 1;
1515
1515
  }
1516
+ function shareLinkStatus(shareLink, installed, webrtcish) {
1517
+ if (!shareLink) return {
1518
+ link: null,
1519
+ stale: false
1520
+ };
1521
+ return {
1522
+ link: shareLink,
1523
+ stale: installed && !webrtcish
1524
+ };
1525
+ }
1516
1526
  async function cmdServeStatus(args) {
1517
1527
  const json = args.includes("--json");
1518
1528
  const mgr = await resolveActiveManager();
@@ -1530,6 +1540,7 @@ async function cmdServeStatus(args) {
1530
1540
  const mode = httpish && webrtcish ? "http+webrtc" : webrtcish ? "webrtc" : "http";
1531
1541
  const runningVersion = httpish && token ? await fetchDaemonVersion(port, token) : null;
1532
1542
  const current = getInstalledPackage().version;
1543
+ const share = shareLinkStatus(shareLink, installed, webrtcish);
1533
1544
  if (json) {
1534
1545
  process.stdout.write(JSON.stringify({
1535
1546
  manager: mgr?.id ?? null,
@@ -1544,7 +1555,8 @@ async function cmdServeStatus(args) {
1544
1555
  upToDate: runningVersion !== null && runningVersion === current,
1545
1556
  args: a,
1546
1557
  hasToken: !!token,
1547
- shareLink
1558
+ shareLink: share.link,
1559
+ shareLinkStale: share.stale
1548
1560
  }, null, 2) + "\n");
1549
1561
  return 0;
1550
1562
  }
@@ -1563,7 +1575,11 @@ async function cmdServeStatus(args) {
1563
1575
  } else if (mode === "webrtc") w(`http api: none (webrtc-only)`);
1564
1576
  else w(`http api: not reachable ${local ? `via ${localUrl}` : `on 127.0.0.1:${port}`} (not running)`);
1565
1577
  w(`token: ${token ?? "(none yet — created on first serve)"}`);
1566
- if (shareLink) w(`share link: ${shareLink}`);
1578
+ if (share.link) if (share.stale) {
1579
+ w(`share link: (stale) ${share.link}`);
1580
+ w(` the daemon runs without --share, so nothing hosts that room —`);
1581
+ w(` re-enable with: ay serve install --share`);
1582
+ } else w(`share link: ${share.link}`);
1567
1583
  if (token && httpish) {
1568
1584
  w();
1569
1585
  if (local) w(`console: ${localUrl}`);
@@ -2570,7 +2586,7 @@ Options:
2570
2586
  }
2571
2587
  });
2572
2588
  if (req.method === "GET" && p === "/api/ws") {
2573
- const ws = await import("./ws-BquLyuJa.js");
2589
+ const ws = await import("./ws-DEsnD8RN.js");
2574
2590
  try {
2575
2591
  await ws.loadProvision();
2576
2592
  } catch (e) {
@@ -2590,7 +2606,7 @@ Options:
2590
2606
  if (req.method === "GET" && p === "/api/ws/status") {
2591
2607
  const dirRaw = url.searchParams.get("path");
2592
2608
  if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
2593
- const ws = await import("./ws-BquLyuJa.js");
2609
+ const ws = await import("./ws-DEsnD8RN.js");
2594
2610
  let prov;
2595
2611
  try {
2596
2612
  prov = await ws.loadProvision();
@@ -2612,7 +2628,7 @@ Options:
2612
2628
  }
2613
2629
  }
2614
2630
  if (req.method === "GET" && p === "/api/ws/repos") {
2615
- const ws = await import("./ws-BquLyuJa.js");
2631
+ const ws = await import("./ws-DEsnD8RN.js");
2616
2632
  try {
2617
2633
  await ws.loadProvision();
2618
2634
  } catch (e) {
@@ -2693,7 +2709,7 @@ Options:
2693
2709
  const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
2694
2710
  if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
2695
2711
  const [, owner, repo] = m;
2696
- const ws = await import("./ws-BquLyuJa.js");
2712
+ const ws = await import("./ws-DEsnD8RN.js");
2697
2713
  let prov;
2698
2714
  try {
2699
2715
  prov = await ws.loadProvision();
@@ -3611,7 +3627,7 @@ Options:
3611
3627
  const perm = body.perm ?? "r";
3612
3628
  if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
3613
3629
  try {
3614
- const { createScopedShare } = await import("./agentShare--wDQrKC-.js");
3630
+ const { createScopedShare } = await import("./agentShare-DhKSDNOP.js");
3615
3631
  const share = await createScopedShare({
3616
3632
  agent: body.agent,
3617
3633
  perm,
@@ -3626,12 +3642,12 @@ Options:
3626
3642
  }
3627
3643
  }
3628
3644
  if (req.method === "GET" && p === "/api/shares") {
3629
- const { listShares } = await import("./agentShare--wDQrKC-.js");
3645
+ const { listShares } = await import("./agentShare-DhKSDNOP.js");
3630
3646
  return Response.json(listShares());
3631
3647
  }
3632
3648
  const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
3633
3649
  if (req.method === "DELETE" && revokeM) {
3634
- const { revokeShare } = await import("./agentShare--wDQrKC-.js");
3650
+ const { revokeShare } = await import("./agentShare-DhKSDNOP.js");
3635
3651
  const ok = revokeShare(decodeURIComponent(revokeM[1]));
3636
3652
  return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
3637
3653
  }
@@ -3937,7 +3953,7 @@ Options:
3937
3953
  const shutdown = (resolve) => {
3938
3954
  if (heartbeat) clearInterval(heartbeat);
3939
3955
  closeShare?.();
3940
- import("./agentShare--wDQrKC-.js").then((m) => m.revokeAllShares()).catch(() => {});
3956
+ import("./agentShare-DhKSDNOP.js").then((m) => m.revokeAllShares()).catch(() => {});
3941
3957
  server?.stop();
3942
3958
  Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
3943
3959
  };
@@ -3950,4 +3966,4 @@ Options:
3950
3966
 
3951
3967
  //#endregion
3952
3968
  export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
3953
- //# sourceMappingURL=serve-DNwUEFwJ.js.map
3969
+ //# sourceMappingURL=serve-DVkSoYOs.js.map
@@ -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-DNwUEFwJ.js");
100
+ const { cmdServe } = await import("./serve-DVkSoYOs.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-BhJD_oWT.js.map
110
+ //# sourceMappingURL=setup-DMbVXiaN.js.map
@@ -5,7 +5,7 @@ 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-PC2oukWv.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-BuGPzWwX.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
11
  import "./remotes-tmKwrr20.js";
@@ -1546,7 +1546,7 @@ async function runSubcommand(argv) {
1546
1546
  switch (sub) {
1547
1547
  case "ls":
1548
1548
  case "list": return await cmdLs(rest);
1549
- case "ps": return await (await import("./cmdPs-DIKBQnUJ.js")).cmdPs(rest);
1549
+ case "ps": return await (await import("./cmdPs-CI9pHuRq.js")).cmdPs(rest);
1550
1550
  case "status": return await cmdStatus(rest);
1551
1551
  case "whoami": return await cmdWhoami(rest);
1552
1552
  case "result": return await cmdResult(rest);
@@ -1593,35 +1593,35 @@ async function runSubcommand(argv) {
1593
1593
  return cmdCh(rest);
1594
1594
  }
1595
1595
  case "term": {
1596
- const { cmdTerm } = await import("./terminal-BCH-Z2qt.js");
1596
+ const { cmdTerm } = await import("./terminal-zi7_eVUp.js");
1597
1597
  return cmdTerm(rest);
1598
1598
  }
1599
1599
  case "widget": {
1600
- const { cmdWidget } = await import("./widget-DEgDOsnF.js");
1600
+ const { cmdWidget } = await import("./widget-DS86uQCX.js");
1601
1601
  return cmdWidget(rest);
1602
1602
  }
1603
1603
  case "mint": {
1604
- const { cmdMint } = await import("./widget-DEgDOsnF.js");
1604
+ const { cmdMint } = await import("./widget-DS86uQCX.js");
1605
1605
  return cmdMint(rest);
1606
1606
  }
1607
1607
  case "serve": {
1608
- const { cmdServe } = await import("./serve-DNwUEFwJ.js");
1608
+ const { cmdServe } = await import("./serve-DVkSoYOs.js");
1609
1609
  return cmdServe(rest);
1610
1610
  }
1611
1611
  case "tray": {
1612
- const { cmdTray } = await import("./trayApp-crDhVGgC.js");
1612
+ const { cmdTray } = await import("./trayApp-BHbdgLJq.js");
1613
1613
  return cmdTray(rest);
1614
1614
  }
1615
1615
  case "setup": {
1616
- const { cmdSetup } = await import("./setup-BhJD_oWT.js");
1616
+ const { cmdSetup } = await import("./setup-DMbVXiaN.js");
1617
1617
  return cmdSetup(rest);
1618
1618
  }
1619
1619
  case "ws": {
1620
- const { cmdWs } = await import("./ws-BquLyuJa.js");
1620
+ const { cmdWs } = await import("./ws-DEsnD8RN.js");
1621
1621
  return cmdWs(rest);
1622
1622
  }
1623
1623
  case "schedule": {
1624
- const { cmdSchedule } = await import("./schedule-B2QUwQB9.js");
1624
+ const { cmdSchedule } = await import("./schedule-Dd-7lGOB.js");
1625
1625
  return cmdSchedule(rest);
1626
1626
  }
1627
1627
  case "remote": {
@@ -1633,7 +1633,7 @@ async function runSubcommand(argv) {
1633
1633
  return cmdExpose(rest);
1634
1634
  }
1635
1635
  case "callback": {
1636
- const { cmdCallback } = await import("./callback-CpKmmA-2.js");
1636
+ const { cmdCallback } = await import("./callback-CleYhE8x.js");
1637
1637
  return cmdCallback(rest);
1638
1638
  }
1639
1639
  case "reap":
@@ -1644,7 +1644,7 @@ async function runSubcommand(argv) {
1644
1644
  return await cmdDsh(rest);
1645
1645
  }
1646
1646
  case "gc": {
1647
- const { gcOldBinaryDirs } = await import("./rustBinary-CyOBwvtc.js");
1647
+ const { gcOldBinaryDirs } = await import("./rustBinary-OANXFg2v.js");
1648
1648
  const { gcLogs } = await import("./globalPidIndex-DC93JhHQ.js");
1649
1649
  const bins = gcOldBinaryDirs();
1650
1650
  const logs = await gcLogs();
@@ -4351,7 +4351,7 @@ async function cmdAttach(rest) {
4351
4351
  const winsizeDir = path.join(ayHome, "winsize");
4352
4352
  await mkdir(winsizeDir, { recursive: true });
4353
4353
  const winsizePath = path.join(winsizeDir, String(record.pid));
4354
- const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DNwUEFwJ.js");
4354
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DVkSoYOs.js");
4355
4355
  const daemonBase = await resolveDaemonHttpBase().catch(() => null);
4356
4356
  const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
4357
4357
  const capViewer = `attach:${process.pid}`;
@@ -5078,7 +5078,7 @@ async function cmdNotify(rest) {
5078
5078
  }
5079
5079
  const ensure = async () => {
5080
5080
  if (!argv["ensure-daemon"]) return;
5081
- const { ensureDaemon } = await import("./notifyDaemon-CuBYFCMk.js");
5081
+ const { ensureDaemon } = await import("./notifyDaemon-VMDwAF-v.js");
5082
5082
  await ensureDaemon().catch(() => null);
5083
5083
  };
5084
5084
  await heartbeatWatcher(parent, selfStartedAt);
@@ -5152,7 +5152,7 @@ async function cmdNotifyCursor(args) {
5152
5152
  }
5153
5153
  async function cmdNotifyd(rest) {
5154
5154
  const sub = rest[0] ?? "status";
5155
- const daemon = await import("./notifyDaemon-CuBYFCMk.js");
5155
+ const daemon = await import("./notifyDaemon-VMDwAF-v.js");
5156
5156
  switch (sub) {
5157
5157
  case "run": return daemon.runDaemon();
5158
5158
  case "once": return daemon.runDaemon({ once: true });
@@ -5179,4 +5179,4 @@ async function cmdNotifyd(rest) {
5179
5179
 
5180
5180
  //#endregion
5181
5181
  export { sendPayloadCapError as $, isUnknownManagerToken as A, readLogForRender as B, finalizedLines as C, isPidAlive as D, isExitRequest as E, listRecords as F, renderLogTailLines as G, readPtysize as H, matchKeyword as I, resolveOne as J, renderRawLog as K, menuSelectKeys as L, isUserTyping as M, lastReadAt as N, isSlashCommand as O, lastStdinAt as P, runSubcommand as Q, probeStdinReachable as R, extractTaskCounts as S, isBareManagerInvocation as T, recentMessageEdges as U, readNotes as V, recentReadEdges as W, resolveResumeArgs as X, resolveReadWindow as Y, restartHintLines as Z, envelopeAttribution as _, SEND_BODY_MAX_CHARS as a, writeKeysPaced as at, extractMenu as b, backoffWhileTyping as c, framePaste as ct, cmdHelp as d, buildAgentForest as dt, snapshotStatus as et, confirmStdinUnreachable as f, flattenForest as ft, deriveLiveStatus as g, deriveLiveState as h, READ_WINDOW_MS as i, waitForLogQuiet as it, isUnreachableWriteErrno as j, isSubcommand as k, buildEnvelope as l, shouldFramePaste as lt, cursorAbs as m, MAX_RENDER_BYTES as n, stopTipForCli as nt, SEND_EXIT_UNREACHABLE as o, writeToIpc as ot, controlCodeFromName as p, renderRawLogLines as q, READ_PAGE_DEFAULT as r, submitAndConfirm as rt, TYPING_WINDOW_MS as s, withIpcLock as st, GRACEFUL_EXIT_COMMANDS as t, stdinActivityPath as tt, cliDefaults as u, TYPING_BADGE as ut, envelopeCostFor as v, isAgentStuck as w, extractNeedsInput as x, extractBadges as y, readAgentPtysize as z };
5182
- //# sourceMappingURL=subcommands-PC2oukWv.js.map
5182
+ //# sourceMappingURL=subcommands-BuGPzWwX.js.map
@@ -98,7 +98,7 @@ async function cmdTermMint(args) {
98
98
  if (flags.ro && flags.interactive) throw new Error("--ro and --interactive are mutually exclusive");
99
99
  const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
100
100
  const canSend = flags.interactive === true;
101
- const { mintScopedTermToken } = await import("./serve-DNwUEFwJ.js");
101
+ const { mintScopedTermToken } = await import("./serve-DVkSoYOs.js");
102
102
  const r = await mintScopedTermToken(pid, {
103
103
  ttlSec,
104
104
  canSend
@@ -135,4 +135,4 @@ async function cmdTerm(args) {
135
135
 
136
136
  //#endregion
137
137
  export { cmdTerm };
138
- //# sourceMappingURL=terminal-BCH-Z2qt.js.map
138
+ //# sourceMappingURL=terminal-zi7_eVUp.js.map
@@ -0,0 +1,5 @@
1
+ import "./versionChecker-CetBLqWk.js";
2
+ import "./rustBinary-BcGw5x3q.js";
3
+ import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-DmL24N4g.js";
4
+
5
+ export { cmdTray };
@@ -1,4 +1,4 @@
1
- import { a as findTrayLauncher } from "./rustBinary-DYyUaQng.js";
1
+ import { a as findTrayLauncher } from "./rustBinary-BcGw5x3q.js";
2
2
  import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
3
3
  import { existsSync } from "node:fs";
4
4
  import path from "node:path";
@@ -97,4 +97,4 @@ async function cmdTray(args) {
97
97
 
98
98
  //#endregion
99
99
  export { trayHiddenMarker as a, launchTray as i, hasDesktop as n, isTrayHidden as r, cmdTray as t };
100
- //# sourceMappingURL=trayApp-wSPjp4XE.js.map
100
+ //# sourceMappingURL=trayApp-DmL24N4g.js.map
@@ -1,6 +1,6 @@
1
1
  import { n as __esmMin, r as __exportAll } from "./chunk-cZBX9HZv.js";
2
2
  import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
3
- import { i as getInstalledPackage } from "./versionChecker-CaM433Zm.js";
3
+ import { i as getInstalledPackage } from "./versionChecker-CetBLqWk.js";
4
4
  import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
5
5
  import { u as removeControlCharacters } from "./todoAutomation-CbVVS4re.js";
6
6
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-BOIPD_Vs.js";
@@ -2086,7 +2086,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
2086
2086
  }, 100);
2087
2087
  const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
2088
2088
  shell.onExit(cleanupHeartbeat);
2089
- const { startParentPingLoop } = await import("./parentPingLoop-Cmk-A4Rb.js");
2089
+ const { startParentPingLoop } = await import("./parentPingLoop-B3MuAvoV.js");
2090
2090
  const parentPingLoop = startParentPingLoop({
2091
2091
  parentPid,
2092
2092
  selfWrapperPid: process.pid,
@@ -2349,4 +2349,4 @@ function sleep(ms) {
2349
2349
 
2350
2350
  //#endregion
2351
2351
  export { hasTodoStore as a, permissionBadge as c, answerAsk as i, AgentContext as l, agentYes as n, listAsks as o, config as r, listAsksForProject as s, CLIS_CONFIG as t, CLAUDE_SESSION_PIN_ENV as u };
2352
- //# sourceMappingURL=ts-CqJvwlM3.js.map
2352
+ //# sourceMappingURL=ts-B2rKKdIF.js.map
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
7
7
 
8
8
  //#region package.json
9
9
  var name = "agent-yes";
10
- var version = "1.291.2";
10
+ var version = "1.291.3";
11
11
 
12
12
  //#endregion
13
13
  //#region ts/versionChecker.ts
@@ -285,4 +285,4 @@ async function displayVersion() {
285
285
 
286
286
  //#endregion
287
287
  export { versionString as a, getInstalledPackage as i, compareVersions as n, displayVersion as r, checkAndAutoUpdate as t };
288
- //# sourceMappingURL=versionChecker-CaM433Zm.js.map
288
+ //# sourceMappingURL=versionChecker-CetBLqWk.js.map
@@ -28,7 +28,7 @@ function parseFlags(args, known) {
28
28
  }
29
29
  /** Resolve the local daemon base URL + token (flags override discovery). */
30
30
  async function daemonTarget(flags) {
31
- const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DNwUEFwJ.js");
31
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DVkSoYOs.js");
32
32
  const base = typeof flags.base === "string" ? flags.base : await resolveDaemonHttpBase();
33
33
  if (!base) throw new Error("no running ay serve daemon found — start `ay serve` or pass --base <url> (e.g. http://127.0.0.1:PORT)");
34
34
  const token = typeof flags.token === "string" ? flags.token : await loadTokenReadOnly() ?? "";
@@ -186,7 +186,7 @@ async function cmdMint(args) {
186
186
  const bad = caps.filter((c) => !KNOWN_CAPS.has(c));
187
187
  if (bad.length) throw new Error(`unknown cap(s): ${bad.join(", ")} (valid: ${[...KNOWN_CAPS].join(", ")})`);
188
188
  const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
189
- const { mintScopedTermToken } = await import("./serve-DNwUEFwJ.js");
189
+ const { mintScopedTermToken } = await import("./serve-DVkSoYOs.js");
190
190
  const r = await mintScopedTermToken(target, {
191
191
  ttlSec,
192
192
  caps
@@ -202,4 +202,4 @@ async function cmdMint(args) {
202
202
 
203
203
  //#endregion
204
204
  export { cmdMint, cmdWidget };
205
- //# sourceMappingURL=widget-DEgDOsnF.js.map
205
+ //# sourceMappingURL=widget-DS86uQCX.js.map
@@ -1,4 +1,4 @@
1
- import { F as listRecords } from "./subcommands-PC2oukWv.js";
1
+ import { F as listRecords } from "./subcommands-BuGPzWwX.js";
2
2
  import { a as getProvisionRoot } from "./workspaceConfig-DTvPtr5j.js";
3
3
  import { existsSync } from "fs";
4
4
  import { lstat, opendir } from "fs/promises";
@@ -424,4 +424,4 @@ async function cmdWs(args) {
424
424
 
425
425
  //#endregion
426
426
  export { isPathInside as a, walkWorkspaces as c, importProvisionModule as i, workspaceStatus as l, cmdWs as n, loadProvision as o, collectWorkspaces as r, resolveOperand as s, WS_JSON_SCHEMA as t };
427
- //# sourceMappingURL=ws-KzFPoSZ2.js.map
427
+ //# sourceMappingURL=ws-AeT_npPH.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 "./subcommands-PC2oukWv.js";
8
+ import "./subcommands-BuGPzWwX.js";
9
9
  import "./notifyStore-2SWKGwZI.js";
10
10
  import "./webrtcLink-CnQf9pmu.js";
11
11
  import "./remotes-tmKwrr20.js";
12
- import { a as isPathInside, c as walkWorkspaces, i as importProvisionModule, l as workspaceStatus, n as cmdWs, o as loadProvision, r as collectWorkspaces, s as resolveOperand, t as WS_JSON_SCHEMA } from "./ws-KzFPoSZ2.js";
12
+ import { a as isPathInside, c as walkWorkspaces, i as importProvisionModule, l as workspaceStatus, n as cmdWs, o as loadProvision, r as collectWorkspaces, s as resolveOperand, t as WS_JSON_SCHEMA } from "./ws-AeT_npPH.js";
13
13
 
14
14
  export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.291.2",
3
+ "version": "1.291.3",
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/serve.spec.ts CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  oxmgrVersionHasWindowsFix,
7
7
  parseGitUrl,
8
8
  portlessConsoleUrl,
9
+ shareLinkStatus,
9
10
  } from "./serve.ts";
10
11
 
11
12
  describe("portlessConsoleUrl", () => {
@@ -164,3 +165,23 @@ describe("parseGitUrl", () => {
164
165
  expect(parseGitUrl("file:///etc/passwd")).toBeNull();
165
166
  });
166
167
  });
168
+
169
+ // `ay serve status` reads ~/.agent-yes/.share-link, which outlives the daemon
170
+ // config that minted it: reinstalling without --share leaves the file behind
171
+ // while nothing hosts the room. The link must then be flagged stale, not shown
172
+ // as if it were live.
173
+ describe("shareLinkStatus", () => {
174
+ const link = "https://agent-yes.com/w/#r111111:e1.aaaa";
175
+ it("reports a link as live when the registered daemon shares", () => {
176
+ expect(shareLinkStatus(link, true, true)).toEqual({ link, stale: false });
177
+ });
178
+ it("flags the link stale when the daemon is installed without --share/--webrtc", () => {
179
+ expect(shareLinkStatus(link, true, false)).toEqual({ link, stale: true });
180
+ });
181
+ it("does not call it stale when no daemon is registered (a foreground serve may host it)", () => {
182
+ expect(shareLinkStatus(link, false, false)).toEqual({ link, stale: false });
183
+ });
184
+ it("returns no link when the file is absent", () => {
185
+ expect(shareLinkStatus(null, true, false)).toEqual({ link: null, stale: false });
186
+ });
187
+ });
package/ts/serve.ts CHANGED
@@ -1524,6 +1524,22 @@ async function cmdServeDaemon(sub: string, args: string[]): Promise<number> {
1524
1524
  return 1;
1525
1525
  }
1526
1526
 
1527
+ // How `ay serve status` should report the persisted share link. The link file
1528
+ // outlives the daemon config that minted it: `ay serve install` (no --share)
1529
+ // over an older --share install leaves ~/.agent-yes/.share-link in place while
1530
+ // nothing hosts that room any more. Printing it verbatim then reads as "this
1531
+ // link is live" — an operator opens it, sees "rooms offline / 0 agents", and
1532
+ // debugs the console instead of the daemon. Only a daemon registered WITH
1533
+ // --share/--webrtc can be hosting the room; anything else is `stale`.
1534
+ export function shareLinkStatus(
1535
+ shareLink: string | null,
1536
+ installed: boolean,
1537
+ webrtcish: boolean,
1538
+ ): { link: string | null; stale: boolean } {
1539
+ if (!shareLink) return { link: null, stale: false };
1540
+ return { link: shareLink, stale: installed && !webrtcish };
1541
+ }
1542
+
1527
1543
  // ay serve status — report whether the server is installed as a daemon and/or
1528
1544
  // currently reachable, plus its mode, port, version, token, and share link.
1529
1545
  // Read-only: never mints a token or disturbs the daemon. `--json` for scripts.
@@ -1554,6 +1570,7 @@ async function cmdServeStatus(args: string[]): Promise<number> {
1554
1570
  // Webrtc-only servers open no port, so a null probe there is expected, not down.
1555
1571
  const runningVersion = httpish && token ? await fetchDaemonVersion(port, token) : null;
1556
1572
  const current = getInstalledPackage().version;
1573
+ const share = shareLinkStatus(shareLink, installed, webrtcish);
1557
1574
 
1558
1575
  if (json) {
1559
1576
  process.stdout.write(
@@ -1571,7 +1588,10 @@ async function cmdServeStatus(args: string[]): Promise<number> {
1571
1588
  upToDate: runningVersion !== null && runningVersion === current,
1572
1589
  args: a,
1573
1590
  hasToken: !!token,
1574
- shareLink,
1591
+ shareLink: share.link,
1592
+ // true when the link file is left over from an earlier --share install
1593
+ // and the registered daemon no longer hosts that room.
1594
+ shareLinkStale: share.stale,
1575
1595
  },
1576
1596
  null,
1577
1597
  2,
@@ -1604,7 +1624,15 @@ async function cmdServeStatus(args: string[]): Promise<number> {
1604
1624
  );
1605
1625
  }
1606
1626
  w(`token: ${token ?? "(none yet — created on first serve)"}`);
1607
- if (shareLink) w(`share link: ${shareLink}`);
1627
+ if (share.link) {
1628
+ if (share.stale) {
1629
+ w(`share link: (stale) ${share.link}`);
1630
+ w(` the daemon runs without --share, so nothing hosts that room —`);
1631
+ w(` re-enable with: ay serve install --share`);
1632
+ } else {
1633
+ w(`share link: ${share.link}`);
1634
+ }
1635
+ }
1608
1636
  if (token && httpish) {
1609
1637
  w();
1610
1638
  if (local) w(`console: ${localUrl}`);
@@ -1,5 +0,0 @@
1
- import "./versionChecker-CaM433Zm.js";
2
- import "./rustBinary-DYyUaQng.js";
3
- import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-wSPjp4XE.js";
4
-
5
- export { cmdTray };