agent-yes 1.264.0-beta.628.1 → 1.264.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 (25) hide show
  1. package/dist/{SUPPORTED_CLIS-DHWwDTKJ.js → SUPPORTED_CLIS-DlxOPg-j.js} +3 -3
  2. package/dist/{SUPPORTED_CLIS-DeBAuoVP.js → SUPPORTED_CLIS-JcVs6jt7.js} +2 -2
  3. package/dist/{agentShare-DEp7gZ14.js → agentShare-B8h_JkOw.js} +2 -2
  4. package/dist/{callback-Cw-dRDyZ.js → callback-C9rkbjgR.js} +2 -2
  5. package/dist/{callback-CIx2Orco.js → callback-DlJ_glcF.js} +3 -3
  6. package/dist/cli.js +5 -5
  7. package/dist/index.js +2 -2
  8. package/dist/{notifyDaemon-Dfnl2c6t.js → notifyDaemon--TDDJupp.js} +2 -2
  9. package/dist/{rustBinary-HCTnXg6q.js → rustBinary-DA-C6PjH.js} +2 -2
  10. package/dist/{schedule-WIZKf0ft.js → schedule-CdgYYRti.js} +4 -4
  11. package/dist/{serve-B9UA0oas.js → serve-Z8FAjest.js} +20 -29
  12. package/dist/{setup-BRGN1iGT.js → setup-D6B85mUe.js} +2 -2
  13. package/dist/{subcommands-BkIoTWfm.js → subcommands-C2ipqBtq.js} +1 -1
  14. package/dist/{subcommands-WOaagxHL.js → subcommands-C3w4bg6x.js} +13 -13
  15. package/dist/{terminal-CMc3Bibj.js → terminal-iObUHvkj.js} +2 -2
  16. package/dist/{trayApp-gSDxU5Dc.js → trayApp-BUI7SXiY.js} +2 -2
  17. package/dist/trayApp-Cb9a-quB.js +5 -0
  18. package/dist/{ts-D4qcguMU.js → ts-ClHKe4d8.js} +2 -2
  19. package/dist/{versionChecker-D270rzOl.js → versionChecker-DRAbaxo-.js} +2 -2
  20. package/dist/{widget-SY94Yq_J.js → widget-BRBsnbLn.js} +3 -3
  21. package/dist/{ws-CYmvdzxO.js → ws-BppNz49U.js} +2 -2
  22. package/dist/{ws-DAqaWr7F.js → ws-CAFA4oXH.js} +2 -2
  23. package/package.json +1 -1
  24. package/ts/serve.ts +3 -20
  25. package/dist/trayApp-V8xSpWNN.js +0 -5
@@ -1,11 +1,11 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-D270rzOl.js";
3
- import "./ts-D4qcguMU.js";
2
+ import "./versionChecker-DRAbaxo-.js";
3
+ import "./ts-ClHKe4d8.js";
4
4
  import "./todoAutomation-BQRW614S.js";
5
5
  import "./JsonlStore-CPGIR0Wy.js";
6
6
  import "./globalPidIndex-Dq4KY2IV.js";
7
7
  import "./pidStore-DJqSZPJi.js";
8
8
  import "./messageLog-BYFwioFY.js";
9
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DeBAuoVP.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-JcVs6jt7.js";
10
10
 
11
11
  export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-D4qcguMU.js";
1
+ import { t as CLIS_CONFIG } from "./ts-ClHKe4d8.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-DeBAuoVP.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-JcVs6jt7.js.map
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
3
3
  import "./messageLog-BYFwioFY.js";
4
4
  import "./e2e-CUMZC53I.js";
5
5
  import "./configShared-DtHMBCl7.js";
6
- import { L as resolveOne } from "./subcommands-WOaagxHL.js";
6
+ import { L as resolveOne } from "./subcommands-C3w4bg6x.js";
7
7
  import "./webrtcLink-CS4D-3G1.js";
8
8
  import "./remotes-Cn-wszbK.js";
9
9
  import { a as startShare } from "./share-B-e_9WBx.js";
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
229
229
 
230
230
  //#endregion
231
231
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
232
- //# sourceMappingURL=agentShare-DEp7gZ14.js.map
232
+ //# sourceMappingURL=agentShare-B8h_JkOw.js.map
@@ -3,10 +3,10 @@ import "./globalPidIndex-Dq4KY2IV.js";
3
3
  import "./messageLog-BYFwioFY.js";
4
4
  import "./e2e-CUMZC53I.js";
5
5
  import "./configShared-DtHMBCl7.js";
6
- import "./subcommands-WOaagxHL.js";
6
+ import "./subcommands-C3w4bg6x.js";
7
7
  import "./webrtcLink-CS4D-3G1.js";
8
8
  import "./remotes-Cn-wszbK.js";
9
9
  import "./callbackCore-Cg3Ye0ZS.js";
10
- import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CIx2Orco.js";
10
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-DlJ_glcF.js";
11
11
 
12
12
  export { cmdCallback };
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
2
- import { L as resolveOne } from "./subcommands-WOaagxHL.js";
2
+ import { L as resolveOne } from "./subcommands-C3w4bg6x.js";
3
3
  import { a as mintCapability, o as parseExpires } from "./callbackCore-Cg3Ye0ZS.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-B9UA0oas.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-Z8FAjest.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-CIx2Orco.js.map
190
+ //# sourceMappingURL=callback-DlJ_glcF.js.map
package/dist/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bun
2
2
  import { t as invokedCliName } from "./invokedCli-uqM2YYA7.js";
3
3
  import { n as logger } from "./logger-CDIsZ-Pp.js";
4
- import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-D270rzOl.js";
5
- import { r as getRustBinary } from "./rustBinary-HCTnXg6q.js";
4
+ import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-DRAbaxo-.js";
5
+ import { r as getRustBinary } from "./rustBinary-DA-C6PjH.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 } = await import("./subcommands-BkIoTWfm.js");
298
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-C2ipqBtq.js");
299
299
  if (isHelpFlag && process.argv.length === 3) {
300
300
  await cmdHelp(managerCommands);
301
301
  process.exit(0);
@@ -305,7 +305,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
305
305
  process.exit(code ?? 0);
306
306
  }
307
307
  {
308
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DHWwDTKJ.js");
308
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DlxOPg-j.js");
309
309
  if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
310
310
  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`);
311
311
  process.exit(1);
@@ -356,7 +356,7 @@ if (config.useRust) {
356
356
  }
357
357
  }
358
358
  if (rustBinary) {
359
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DHWwDTKJ.js");
359
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DlxOPg-j.js");
360
360
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
361
361
  if (config.verbose) {
362
362
  console.log(`[rust] Using binary: ${rustBinary}`);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-D270rzOl.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-D4qcguMU.js";
2
+ import "./versionChecker-DRAbaxo-.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-ClHKe4d8.js";
4
4
  import { _ as isKnownKind, a as renderTree, b as statesOf, c as monitorHint, d as openStore, f as DONE_STATE, g as initialState, h as canTransition, i as renderDigest, l as CycleError, m as ORPHANED_STATE, o as unblockedTasks, p as LIFECYCLES, r as openBlockers, s as describeBlock, t as reconcileTodos, u as TodoStore, v as nextStates, x as removeControlCharacters, y as requiredGate } from "./todoAutomation-BQRW614S.js";
5
5
  import "./JsonlStore-CPGIR0Wy.js";
6
6
  import "./globalPidIndex-Dq4KY2IV.js";
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
3
3
  import "./messageLog-BYFwioFY.js";
4
4
  import "./e2e-CUMZC53I.js";
5
5
  import "./configShared-DtHMBCl7.js";
6
- import { $ as listInboxParents, P as renderLogTailLines, T as listRecords, X as gcInboxes, Y as appendEvent, Z as hostId, at as notifyDir, et as liveWatchers, it as daemonLockOwnerPath, nt as shouldStealLock, rt as daemonLockDir, tt as readInbox, u as deriveLiveState, y as isPidAlive } from "./subcommands-WOaagxHL.js";
6
+ import { $ as listInboxParents, P as renderLogTailLines, T as listRecords, X as gcInboxes, Y as appendEvent, Z as hostId, at as notifyDir, et as liveWatchers, it as daemonLockOwnerPath, nt as shouldStealLock, rt as daemonLockDir, tt as readInbox, u as deriveLiveState, y as isPidAlive } from "./subcommands-C3w4bg6x.js";
7
7
  import "./webrtcLink-CS4D-3G1.js";
8
8
  import "./remotes-Cn-wszbK.js";
9
9
  import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
@@ -836,4 +836,4 @@ async function ensureDaemon() {
836
836
 
837
837
  //#endregion
838
838
  export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
839
- //# sourceMappingURL=notifyDaemon-Dfnl2c6t.js.map
839
+ //# sourceMappingURL=notifyDaemon--TDDJupp.js.map
@@ -1,4 +1,4 @@
1
- import { r as getInstalledPackage } from "./versionChecker-D270rzOl.js";
1
+ import { r as getInstalledPackage } from "./versionChecker-DRAbaxo-.js";
2
2
  import { execFileSync } from "child_process";
3
3
  import { existsSync, mkdirSync, unlinkSync } from "fs";
4
4
  import { chmod, copyFile } from "fs/promises";
@@ -243,4 +243,4 @@ async function getRustBinary(options = {}) {
243
243
 
244
244
  //#endregion
245
245
  export { findTrayLauncher as n, getRustBinary as r, findSpawnHiddenLauncher as t };
246
- //# sourceMappingURL=rustBinary-HCTnXg6q.js.map
246
+ //# sourceMappingURL=rustBinary-DA-C6PjH.js.map
@@ -1,12 +1,12 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-D270rzOl.js";
3
- import "./ts-D4qcguMU.js";
2
+ import "./versionChecker-DRAbaxo-.js";
3
+ import "./ts-ClHKe4d8.js";
4
4
  import "./todoAutomation-BQRW614S.js";
5
5
  import "./JsonlStore-CPGIR0Wy.js";
6
6
  import "./globalPidIndex-Dq4KY2IV.js";
7
7
  import "./pidStore-DJqSZPJi.js";
8
8
  import "./messageLog-BYFwioFY.js";
9
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DeBAuoVP.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-JcVs6jt7.js";
10
10
  import { f as resolveSpawnCwd } from "./workspaceConfig-Bxuk_MOq.js";
11
11
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-vhOBffJ3.js";
12
12
  import { createHash } from "node:crypto";
@@ -153,4 +153,4 @@ async function cmdSchedule(rest) {
153
153
 
154
154
  //#endregion
155
155
  export { cmdSchedule };
156
- //# sourceMappingURL=schedule-WIZKf0ft.js.map
156
+ //# sourceMappingURL=schedule-CdgYYRti.js.map
@@ -1,7 +1,7 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import { r as getInstalledPackage } from "./versionChecker-D270rzOl.js";
3
- import { t as findSpawnHiddenLauncher } from "./rustBinary-HCTnXg6q.js";
4
- import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-D4qcguMU.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-DRAbaxo-.js";
3
+ import { t as findSpawnHiddenLauncher } from "./rustBinary-DA-C6PjH.js";
4
+ import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-ClHKe4d8.js";
5
5
  import { t as agentYesHome$1 } from "./agentYesHome-CtmsY6I-.js";
6
6
  import { x as removeControlCharacters } from "./todoAutomation-BQRW614S.js";
7
7
  import "./JsonlStore-CPGIR0Wy.js";
@@ -11,17 +11,17 @@ import { r as recordInbox } from "./messageLog-BYFwioFY.js";
11
11
  import { t as pgidForWrapper } from "./reaper-C4BvNylH.js";
12
12
  import "./e2e-CUMZC53I.js";
13
13
  import "./configShared-DtHMBCl7.js";
14
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DeBAuoVP.js";
15
- import { A as readNotes, C as isUserTyping, F as renderRawLog, H as snapshotStatus, I as renderRawLogLines, J as writeToIpc, L as resolveOne, M as recentMessageEdges, N as recentReadEdges, P as renderLogTailLines, Q as isTransientLockMkdirError, T as listRecords, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, h as extractTaskCounts, j as readPtysize, k as readLogForRender, m as extractNeedsInput, ot as TYPING_BADGE } from "./subcommands-WOaagxHL.js";
14
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-JcVs6jt7.js";
15
+ import { A as readNotes, C as isUserTyping, F as renderRawLog, H as snapshotStatus, I as renderRawLogLines, J as writeToIpc, L as resolveOne, M as recentMessageEdges, N as recentReadEdges, P as renderLogTailLines, Q as isTransientLockMkdirError, T as listRecords, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, h as extractTaskCounts, j as readPtysize, k as readLogForRender, m as extractNeedsInput, ot as TYPING_BADGE } from "./subcommands-C3w4bg6x.js";
16
16
  import "./webrtcLink-CS4D-3G1.js";
17
17
  import "./remotes-Cn-wszbK.js";
18
18
  import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Cg3Ye0ZS.js";
19
- import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-CIx2Orco.js";
19
+ import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-DlJ_glcF.js";
20
20
  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-Bxuk_MOq.js";
21
21
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-vhOBffJ3.js";
22
- import { i as importProvisionModule } from "./ws-DAqaWr7F.js";
22
+ import { i as importProvisionModule } from "./ws-CAFA4oXH.js";
23
23
  import { r as spawnRejectionReason } from "./spawnGate-D0E1uRP7.js";
24
- import { i as launchTray } from "./trayApp-gSDxU5Dc.js";
24
+ import { i as launchTray } from "./trayApp-BUI7SXiY.js";
25
25
  import yargs from "yargs";
26
26
  import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
27
27
  import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
@@ -614,16 +614,11 @@ function loginShellEnv() {
614
614
  loginShellEnvCache = null;
615
615
  if (process.platform === "win32") return loginShellEnvCache;
616
616
  try {
617
- const shell = [
618
- process.env.SHELL,
619
- "/bin/zsh",
620
- "/bin/bash",
621
- "/bin/sh"
622
- ].find((s) => Boolean(s && existsSync(s))) ?? "/bin/sh";
617
+ const shell = process.env.SHELL || "/bin/sh";
623
618
  const delim = "_AY_SHELL_ENV_DELIM_";
624
619
  const out = Bun.spawnSync([
625
620
  shell,
626
- "-lic",
621
+ "-lc",
627
622
  `printf %s "${delim}"; env -0; printf %s "${delim}"`
628
623
  ], {
629
624
  stdin: "ignore",
@@ -642,11 +637,7 @@ function loginShellEnv() {
642
637
  if (eq <= 0) continue;
643
638
  env[pair.slice(0, eq)] = pair.slice(eq + 1);
644
639
  }
645
- if (env.PATH) {
646
- const seen = /* @__PURE__ */ new Set();
647
- env.PATH = env.PATH.split(":").filter((p) => p && !seen.has(p) && (seen.add(p), true)).join(":");
648
- loginShellEnvCache = env;
649
- }
640
+ if (env.PATH) loginShellEnvCache = env;
650
641
  } catch {}
651
642
  return loginShellEnvCache;
652
643
  }
@@ -2434,7 +2425,7 @@ Options:
2434
2425
  }
2435
2426
  });
2436
2427
  if (req.method === "GET" && p === "/api/ws") {
2437
- const ws = await import("./ws-CYmvdzxO.js");
2428
+ const ws = await import("./ws-BppNz49U.js");
2438
2429
  try {
2439
2430
  await ws.loadProvision();
2440
2431
  } catch (e) {
@@ -2454,7 +2445,7 @@ Options:
2454
2445
  if (req.method === "GET" && p === "/api/ws/status") {
2455
2446
  const dirRaw = url.searchParams.get("path");
2456
2447
  if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
2457
- const ws = await import("./ws-CYmvdzxO.js");
2448
+ const ws = await import("./ws-BppNz49U.js");
2458
2449
  let prov;
2459
2450
  try {
2460
2451
  prov = await ws.loadProvision();
@@ -2476,7 +2467,7 @@ Options:
2476
2467
  }
2477
2468
  }
2478
2469
  if (req.method === "GET" && p === "/api/ws/repos") {
2479
- const ws = await import("./ws-CYmvdzxO.js");
2470
+ const ws = await import("./ws-BppNz49U.js");
2480
2471
  try {
2481
2472
  await ws.loadProvision();
2482
2473
  } catch (e) {
@@ -2557,7 +2548,7 @@ Options:
2557
2548
  const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
2558
2549
  if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
2559
2550
  const [, owner, repo] = m;
2560
- const ws = await import("./ws-CYmvdzxO.js");
2551
+ const ws = await import("./ws-BppNz49U.js");
2561
2552
  let prov;
2562
2553
  try {
2563
2554
  prov = await ws.loadProvision();
@@ -3465,7 +3456,7 @@ Options:
3465
3456
  const perm = body.perm ?? "r";
3466
3457
  if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
3467
3458
  try {
3468
- const { createScopedShare } = await import("./agentShare-DEp7gZ14.js");
3459
+ const { createScopedShare } = await import("./agentShare-B8h_JkOw.js");
3469
3460
  const share = await createScopedShare({
3470
3461
  agent: body.agent,
3471
3462
  perm,
@@ -3480,12 +3471,12 @@ Options:
3480
3471
  }
3481
3472
  }
3482
3473
  if (req.method === "GET" && p === "/api/shares") {
3483
- const { listShares } = await import("./agentShare-DEp7gZ14.js");
3474
+ const { listShares } = await import("./agentShare-B8h_JkOw.js");
3484
3475
  return Response.json(listShares());
3485
3476
  }
3486
3477
  const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
3487
3478
  if (req.method === "DELETE" && revokeM) {
3488
- const { revokeShare } = await import("./agentShare-DEp7gZ14.js");
3479
+ const { revokeShare } = await import("./agentShare-B8h_JkOw.js");
3489
3480
  const ok = revokeShare(decodeURIComponent(revokeM[1]));
3490
3481
  return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
3491
3482
  }
@@ -3787,7 +3778,7 @@ Options:
3787
3778
  const shutdown = (resolve) => {
3788
3779
  if (heartbeat) clearInterval(heartbeat);
3789
3780
  closeShare?.();
3790
- import("./agentShare-DEp7gZ14.js").then((m) => m.revokeAllShares()).catch(() => {});
3781
+ import("./agentShare-B8h_JkOw.js").then((m) => m.revokeAllShares()).catch(() => {});
3791
3782
  server?.stop();
3792
3783
  Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
3793
3784
  };
@@ -3800,4 +3791,4 @@ Options:
3800
3791
 
3801
3792
  //#endregion
3802
3793
  export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
3803
- //# sourceMappingURL=serve-B9UA0oas.js.map
3794
+ //# sourceMappingURL=serve-Z8FAjest.js.map
@@ -40,7 +40,7 @@ async function cmdSetup(rest) {
40
40
  } catch {}
41
41
  if (noShare) return 0;
42
42
  process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
43
- const { cmdServe } = await import("./serve-B9UA0oas.js");
43
+ const { cmdServe } = await import("./serve-Z8FAjest.js");
44
44
  return cmdServe([
45
45
  "install",
46
46
  "--share",
@@ -50,4 +50,4 @@ async function cmdSetup(rest) {
50
50
 
51
51
  //#endregion
52
52
  export { cmdSetup };
53
- //# sourceMappingURL=setup-BRGN1iGT.js.map
53
+ //# sourceMappingURL=setup-D6B85mUe.js.map
@@ -3,7 +3,7 @@ import "./globalPidIndex-Dq4KY2IV.js";
3
3
  import "./messageLog-BYFwioFY.js";
4
4
  import "./e2e-CUMZC53I.js";
5
5
  import "./configShared-DtHMBCl7.js";
6
- import { A as readNotes, B as restartHintLines, C as isUserTyping, D as menuSelectKeys, E as matchKeyword, F as renderRawLog, G as submitAndConfirm, H as snapshotStatus, I as renderRawLogLines, J as writeToIpc, K as waitForLogQuiet, L as resolveOne, M as recentMessageEdges, N as recentReadEdges, O as readAgentPtysize, P as renderLogTailLines, R as resolveReadWindow, S as isUnknownManagerToken, T as listRecords, U as stdinActivityPath, V as runSubcommand, W as stopTipForCli, _ as isAgentStuck, a as backoffWhileTyping, b as isSlashCommand, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, g as finalizedLines, h as extractTaskCounts, i as TYPING_WINDOW_MS, j as readPtysize, k as readLogForRender, l as cursorAbs, m as extractNeedsInput, n as MAX_RENDER_BYTES, o as cmdDeepseek, p as extractMenu, q as writeKeysPaced, r as READ_PAGE_DEFAULT, s as cmdHelp, t as GRACEFUL_EXIT_COMMANDS, u as deriveLiveState, v as isExitRequest, w as lastStdinAt, x as isSubcommand, y as isPidAlive, z as resolveResumeArgs } from "./subcommands-WOaagxHL.js";
6
+ import { A as readNotes, B as restartHintLines, C as isUserTyping, D as menuSelectKeys, E as matchKeyword, F as renderRawLog, G as submitAndConfirm, H as snapshotStatus, I as renderRawLogLines, J as writeToIpc, K as waitForLogQuiet, L as resolveOne, M as recentMessageEdges, N as recentReadEdges, O as readAgentPtysize, P as renderLogTailLines, R as resolveReadWindow, S as isUnknownManagerToken, T as listRecords, U as stdinActivityPath, V as runSubcommand, W as stopTipForCli, _ as isAgentStuck, a as backoffWhileTyping, b as isSlashCommand, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, g as finalizedLines, h as extractTaskCounts, i as TYPING_WINDOW_MS, j as readPtysize, k as readLogForRender, l as cursorAbs, m as extractNeedsInput, n as MAX_RENDER_BYTES, o as cmdDeepseek, p as extractMenu, q as writeKeysPaced, r as READ_PAGE_DEFAULT, s as cmdHelp, t as GRACEFUL_EXIT_COMMANDS, u as deriveLiveState, v as isExitRequest, w as lastStdinAt, x as isSubcommand, y as isPidAlive, z as resolveResumeArgs } from "./subcommands-C3w4bg6x.js";
7
7
  import "./webrtcLink-CS4D-3G1.js";
8
8
  import "./remotes-Cn-wszbK.js";
9
9
 
@@ -1533,35 +1533,35 @@ async function runSubcommand(argv) {
1533
1533
  return cmdCh(rest);
1534
1534
  }
1535
1535
  case "term": {
1536
- const { cmdTerm } = await import("./terminal-CMc3Bibj.js");
1536
+ const { cmdTerm } = await import("./terminal-iObUHvkj.js");
1537
1537
  return cmdTerm(rest);
1538
1538
  }
1539
1539
  case "widget": {
1540
- const { cmdWidget } = await import("./widget-SY94Yq_J.js");
1540
+ const { cmdWidget } = await import("./widget-BRBsnbLn.js");
1541
1541
  return cmdWidget(rest);
1542
1542
  }
1543
1543
  case "mint": {
1544
- const { cmdMint } = await import("./widget-SY94Yq_J.js");
1544
+ const { cmdMint } = await import("./widget-BRBsnbLn.js");
1545
1545
  return cmdMint(rest);
1546
1546
  }
1547
1547
  case "serve": {
1548
- const { cmdServe } = await import("./serve-B9UA0oas.js");
1548
+ const { cmdServe } = await import("./serve-Z8FAjest.js");
1549
1549
  return cmdServe(rest);
1550
1550
  }
1551
1551
  case "tray": {
1552
- const { cmdTray } = await import("./trayApp-V8xSpWNN.js");
1552
+ const { cmdTray } = await import("./trayApp-Cb9a-quB.js");
1553
1553
  return cmdTray(rest);
1554
1554
  }
1555
1555
  case "setup": {
1556
- const { cmdSetup } = await import("./setup-BRGN1iGT.js");
1556
+ const { cmdSetup } = await import("./setup-D6B85mUe.js");
1557
1557
  return cmdSetup(rest);
1558
1558
  }
1559
1559
  case "ws": {
1560
- const { cmdWs } = await import("./ws-CYmvdzxO.js");
1560
+ const { cmdWs } = await import("./ws-BppNz49U.js");
1561
1561
  return cmdWs(rest);
1562
1562
  }
1563
1563
  case "schedule": {
1564
- const { cmdSchedule } = await import("./schedule-WIZKf0ft.js");
1564
+ const { cmdSchedule } = await import("./schedule-CdgYYRti.js");
1565
1565
  return cmdSchedule(rest);
1566
1566
  }
1567
1567
  case "remote": {
@@ -1573,7 +1573,7 @@ async function runSubcommand(argv) {
1573
1573
  return cmdExpose(rest);
1574
1574
  }
1575
1575
  case "callback": {
1576
- const { cmdCallback } = await import("./callback-Cw-dRDyZ.js");
1576
+ const { cmdCallback } = await import("./callback-C9rkbjgR.js");
1577
1577
  return cmdCallback(rest);
1578
1578
  }
1579
1579
  case "reap":
@@ -4061,7 +4061,7 @@ async function cmdAttach(rest) {
4061
4061
  const winsizeDir = path.join(ayHome, "winsize");
4062
4062
  await mkdir(winsizeDir, { recursive: true });
4063
4063
  const winsizePath = path.join(winsizeDir, String(record.pid));
4064
- const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-B9UA0oas.js");
4064
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Z8FAjest.js");
4065
4065
  const daemonBase = await resolveDaemonHttpBase().catch(() => null);
4066
4066
  const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
4067
4067
  const capViewer = `attach:${process.pid}`;
@@ -4771,7 +4771,7 @@ async function cmdNotify(rest) {
4771
4771
  }
4772
4772
  const ensure = async () => {
4773
4773
  if (!argv["ensure-daemon"]) return;
4774
- const { ensureDaemon } = await import("./notifyDaemon-Dfnl2c6t.js");
4774
+ const { ensureDaemon } = await import("./notifyDaemon--TDDJupp.js");
4775
4775
  await ensureDaemon().catch(() => null);
4776
4776
  };
4777
4777
  await heartbeatWatcher(parent, selfStartedAt);
@@ -4845,7 +4845,7 @@ async function cmdNotifyCursor(args) {
4845
4845
  }
4846
4846
  async function cmdNotifyd(rest) {
4847
4847
  const sub = rest[0] ?? "status";
4848
- const daemon = await import("./notifyDaemon-Dfnl2c6t.js");
4848
+ const daemon = await import("./notifyDaemon--TDDJupp.js");
4849
4849
  switch (sub) {
4850
4850
  case "run": return daemon.runDaemon();
4851
4851
  case "once": return daemon.runDaemon({ once: true });
@@ -4872,4 +4872,4 @@ async function cmdNotifyd(rest) {
4872
4872
 
4873
4873
  //#endregion
4874
4874
  export { listInboxParents as $, readNotes as A, restartHintLines as B, isUserTyping as C, menuSelectKeys as D, matchKeyword as E, renderRawLog as F, submitAndConfirm as G, snapshotStatus as H, renderRawLogLines as I, writeToIpc as J, waitForLogQuiet as K, resolveOne as L, recentMessageEdges as M, recentReadEdges as N, readAgentPtysize as O, renderLogTailLines as P, isTransientLockMkdirError as Q, resolveReadWindow as R, isUnknownManagerToken as S, listRecords as T, stdinActivityPath as U, runSubcommand as V, stopTipForCli as W, gcInboxes as X, appendEvent as Y, hostId as Z, isAgentStuck as _, backoffWhileTyping as a, notifyDir as at, isSlashCommand as b, controlCodeFromName as c, deriveLiveStatus as d, liveWatchers as et, extractBadges as f, finalizedLines as g, extractTaskCounts as h, TYPING_WINDOW_MS as i, daemonLockOwnerPath as it, readPtysize as j, readLogForRender as k, cursorAbs as l, extractNeedsInput as m, MAX_RENDER_BYTES as n, shouldStealLock as nt, cmdDeepseek as o, TYPING_BADGE as ot, extractMenu as p, writeKeysPaced as q, READ_PAGE_DEFAULT as r, daemonLockDir as rt, cmdHelp as s, GRACEFUL_EXIT_COMMANDS as t, readInbox as tt, deriveLiveState as u, isExitRequest as v, lastStdinAt as w, isSubcommand as x, isPidAlive as y, resolveResumeArgs as z };
4875
- //# sourceMappingURL=subcommands-WOaagxHL.js.map
4875
+ //# sourceMappingURL=subcommands-C3w4bg6x.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-B9UA0oas.js");
101
+ const { mintScopedTermToken } = await import("./serve-Z8FAjest.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-CMc3Bibj.js.map
138
+ //# sourceMappingURL=terminal-iObUHvkj.js.map
@@ -1,4 +1,4 @@
1
- import { n as findTrayLauncher } from "./rustBinary-HCTnXg6q.js";
1
+ import { n as findTrayLauncher } from "./rustBinary-DA-C6PjH.js";
2
2
  import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.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-gSDxU5Dc.js.map
100
+ //# sourceMappingURL=trayApp-BUI7SXiY.js.map
@@ -0,0 +1,5 @@
1
+ import "./versionChecker-DRAbaxo-.js";
2
+ import "./rustBinary-DA-C6PjH.js";
3
+ import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-BUI7SXiY.js";
4
+
5
+ export { cmdTray };
@@ -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 { r as getInstalledPackage } from "./versionChecker-D270rzOl.js";
3
+ import { r as getInstalledPackage } from "./versionChecker-DRAbaxo-.js";
4
4
  import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
5
5
  import { d as openStore, p as LIFECYCLES, x as removeControlCharacters } from "./todoAutomation-BQRW614S.js";
6
6
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DBoONoM-.js";
@@ -2299,4 +2299,4 @@ function sleep(ms) {
2299
2299
 
2300
2300
  //#endregion
2301
2301
  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 };
2302
- //# sourceMappingURL=ts-D4qcguMU.js.map
2302
+ //# sourceMappingURL=ts-ClHKe4d8.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.264.0-beta.628.1";
10
+ var version = "1.264.0";
11
11
 
12
12
  //#endregion
13
13
  //#region ts/versionChecker.ts
@@ -215,4 +215,4 @@ async function displayVersion() {
215
215
 
216
216
  //#endregion
217
217
  export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
218
- //# sourceMappingURL=versionChecker-D270rzOl.js.map
218
+ //# sourceMappingURL=versionChecker-DRAbaxo-.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-B9UA0oas.js");
31
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Z8FAjest.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-B9UA0oas.js");
189
+ const { mintScopedTermToken } = await import("./serve-Z8FAjest.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-SY94Yq_J.js.map
205
+ //# sourceMappingURL=widget-BRBsnbLn.js.map
@@ -3,9 +3,9 @@ import "./globalPidIndex-Dq4KY2IV.js";
3
3
  import "./messageLog-BYFwioFY.js";
4
4
  import "./e2e-CUMZC53I.js";
5
5
  import "./configShared-DtHMBCl7.js";
6
- import "./subcommands-WOaagxHL.js";
6
+ import "./subcommands-C3w4bg6x.js";
7
7
  import "./webrtcLink-CS4D-3G1.js";
8
8
  import "./remotes-Cn-wszbK.js";
9
- 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-DAqaWr7F.js";
9
+ 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-CAFA4oXH.js";
10
10
 
11
11
  export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
@@ -1,4 +1,4 @@
1
- import { T as listRecords } from "./subcommands-WOaagxHL.js";
1
+ import { T as listRecords } from "./subcommands-C3w4bg6x.js";
2
2
  import { a as getProvisionRoot } from "./workspaceConfig-Bxuk_MOq.js";
3
3
  import { existsSync } from "fs";
4
4
  import { lstat, opendir } from "fs/promises";
@@ -426,4 +426,4 @@ async function cmdWs(args) {
426
426
 
427
427
  //#endregion
428
428
  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 };
429
- //# sourceMappingURL=ws-DAqaWr7F.js.map
429
+ //# sourceMappingURL=ws-CAFA4oXH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.264.0-beta.628.1",
3
+ "version": "1.264.0",
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.ts CHANGED
@@ -464,21 +464,12 @@ function loginShellEnv(): Record<string, string> | null {
464
464
  loginShellEnvCache = null;
465
465
  if (process.platform === "win32") return loginShellEnvCache;
466
466
  try {
467
- // $SHELL when the daemon has one; a launchd/systemd env usually doesn't,
468
- // so fall back through the common defaults (zsh first — the macOS default).
469
- const shell =
470
- [process.env.SHELL, "/bin/zsh", "/bin/bash", "/bin/sh"].find(
471
- (s): s is string => Boolean(s && existsSync(s)),
472
- ) ?? "/bin/sh";
467
+ const shell = process.env.SHELL || "/bin/sh";
473
468
  // Delimiters fence off the env dump from any banner/prompt noise the rc files
474
469
  // print to stdout; `env -0` is NUL-separated so values with newlines survive.
475
- // `-i` (interactive) on top of `-l`: PATH exports are commonly scattered
476
- // across .zshenv/.zprofile/.zshrc, and a plain login shell never reads
477
- // .zshrc — silently dropping those entries. The timeout guards against an
478
- // rc file that blocks under -i.
479
470
  const delim = "_AY_SHELL_ENV_DELIM_";
480
471
  const res = Bun.spawnSync(
481
- [shell, "-lic", `printf %s "${delim}"; env -0; printf %s "${delim}"`],
472
+ [shell, "-lc", `printf %s "${delim}"; env -0; printf %s "${delim}"`],
482
473
  {
483
474
  stdin: "ignore",
484
475
  stderr: "ignore",
@@ -499,15 +490,7 @@ function loginShellEnv(): Record<string, string> | null {
499
490
  env[pair.slice(0, eq)] = pair.slice(eq + 1);
500
491
  }
501
492
  // Require a usable result — a PATH carrying ~/.bun/bin is the whole point.
502
- if (env.PATH) {
503
- // Order-preserving dedup: rc files re-prepend the same dirs on every
504
- // nesting level (.zshenv/.zprofile/.zshrc each adding ~/.bun/bin again).
505
- const seen = new Set<string>();
506
- env.PATH = env.PATH.split(":")
507
- .filter((p) => p && !seen.has(p) && (seen.add(p), true))
508
- .join(":");
509
- loginShellEnvCache = env;
510
- }
493
+ if (env.PATH) loginShellEnvCache = env;
511
494
  } catch {
512
495
  // best-effort; fall back to process.env
513
496
  }
@@ -1,5 +0,0 @@
1
- import "./versionChecker-D270rzOl.js";
2
- import "./rustBinary-HCTnXg6q.js";
3
- import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-gSDxU5Dc.js";
4
-
5
- export { cmdTray };