agent-yes 1.303.1-beta.795.1 → 1.303.1-beta.796.1

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 (32) hide show
  1. package/dist/{SUPPORTED_CLIS-CQ4kmu_J.js → SUPPORTED_CLIS-CIviDeqJ.js} +2 -2
  2. package/dist/{SUPPORTED_CLIS-CLecYP6A.js → SUPPORTED_CLIS-CXQnG41E.js} +3 -3
  3. package/dist/{agentShare-uF3ATV1h.js → agentShare-Bgmp_lGz.js} +2 -2
  4. package/dist/{callback-BpJzLtY5.js → callback-COPj84yO.js} +3 -3
  5. package/dist/{callback-DQ7DRHL7.js → callback-r0aWZF5m.js} +2 -2
  6. package/dist/cli.js +5 -5
  7. package/dist/{cmdPs-Bosj2I4z.js → cmdPs-B-33TYQz.js} +2 -2
  8. package/dist/index.js +2 -2
  9. package/dist/{notifyDaemon-DX4uzK1T.js → notifyDaemon-DcMjfQzN.js} +2 -2
  10. package/dist/{parentPingLoop-B24qLtLv.js → parentPingLoop-jDx6C7cy.js} +2 -2
  11. package/dist/{rustBinary-adqRQq33.js → rustBinary-B_PBE-qv.js} +2 -2
  12. package/dist/{rustBinary-BeH9kG0U.js → rustBinary-Dr29wGvK.js} +2 -2
  13. package/dist/{schedule-CxK6YNA9.js → schedule-Bh5dzjn9.js} +4 -4
  14. package/dist/{serve-DbupM_eA.js → serve-BSCcPxX8.js} +21 -21
  15. package/dist/{setup-CYLu-oBk.js → setup-D-2G5l3p.js} +2 -2
  16. package/dist/{shareCmd-CG3gWAJ6.js → shareCmd-DZyXxoCO.js} +5 -5
  17. package/dist/{subcommands-RofowSNL.js → subcommands-B_h4-tvC.js} +1 -1
  18. package/dist/{subcommands-BdzAkAxM.js → subcommands-BbqJJZT1.js} +45 -33
  19. package/dist/{terminal-crh6newc.js → terminal-Z_Y8hGCW.js} +2 -2
  20. package/dist/{trayApp-QXBOa7lX.js → trayApp-DZJxriXd.js} +2 -2
  21. package/dist/trayApp-D__QcBRd.js +5 -0
  22. package/dist/{ts-DVx2n1y0.js → ts-EMAWQVF3.js} +3 -3
  23. package/dist/{versionChecker-wQIsKbnQ.js → versionChecker-Wfi5fazr.js} +2 -2
  24. package/dist/{widget-Bx1D3jwO.js → widget-BUri84Wp.js} +3 -3
  25. package/dist/{ws-YnvwOIuC.js → ws-BhiUNf9w.js} +2 -2
  26. package/dist/{ws-NlpP_miQ.js → ws-DAtzWRX4.js} +2 -2
  27. package/package.json +1 -1
  28. package/ts/composerGuard.spec.ts +23 -2
  29. package/ts/composerGuard.ts +26 -9
  30. package/ts/subcommands.spec.ts +11 -0
  31. package/ts/subcommands.ts +11 -9
  32. package/dist/trayApp-Dj6ISTtY.js +0 -5
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-DVx2n1y0.js";
1
+ import { t as CLIS_CONFIG } from "./ts-EMAWQVF3.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-CQ4kmu_J.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-CIviDeqJ.js.map
@@ -1,12 +1,12 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-wQIsKbnQ.js";
3
- import "./ts-DVx2n1y0.js";
2
+ import "./versionChecker-Wfi5fazr.js";
3
+ import "./ts-EMAWQVF3.js";
4
4
  import "./todoAutomation-TTp_Qz9G.js";
5
5
  import "./JsonlStore-BpYZZTap.js";
6
6
  import "./globalPidIndex-CRB5KtyL.js";
7
7
  import "./pidStore-433kvh9D.js";
8
8
  import "./messageLog-Dq_ka-Bt.js";
9
9
  import "./todoStore-C9RTz0Vs.js";
10
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CQ4kmu_J.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CIviDeqJ.js";
11
11
 
12
12
  export { SUPPORTED_CLIS };
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
8
8
  import "./webrtcLink-va_gAR77.js";
9
9
  import "./remotes-B2i_QcdG.js";
10
10
  import "./roomReplyAlias-9jb1qmh3.js";
11
- import { rt as resolveOne } from "./subcommands-BdzAkAxM.js";
11
+ import { rt as resolveOne } from "./subcommands-BbqJJZT1.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import { l as startShare } from "./share-CbFetL5H.js";
@@ -234,4 +234,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
234
234
 
235
235
  //#endregion
236
236
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
237
- //# sourceMappingURL=agentShare-uF3ATV1h.js.map
237
+ //# sourceMappingURL=agentShare-Bgmp_lGz.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
2
- import { rt as resolveOne } from "./subcommands-BdzAkAxM.js";
2
+ import { rt as resolveOne } from "./subcommands-BbqJJZT1.js";
3
3
  import { a as mintCapability, o as parseExpires } from "./callbackCore-Deve5pv3.js";
4
4
  import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
5
5
  import path from "node:path";
@@ -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-DbupM_eA.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-BSCcPxX8.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-BpJzLtY5.js.map
190
+ //# sourceMappingURL=callback-COPj84yO.js.map
@@ -8,10 +8,10 @@ import "./configShared-De4bR5hH.js";
8
8
  import "./webrtcLink-va_gAR77.js";
9
9
  import "./remotes-B2i_QcdG.js";
10
10
  import "./roomReplyAlias-9jb1qmh3.js";
11
- import "./subcommands-BdzAkAxM.js";
11
+ import "./subcommands-BbqJJZT1.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import "./callbackCore-Deve5pv3.js";
15
- import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-BpJzLtY5.js";
15
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-COPj84yO.js";
16
16
 
17
17
  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-wQIsKbnQ.js";
5
- import { m as getRustBinary } from "./rustBinary-adqRQq33.js";
4
+ import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-Wfi5fazr.js";
5
+ import { m as getRustBinary } from "./rustBinary-B_PBE-qv.js";
6
6
  import { statSync } from "node:fs";
7
7
  import { isAbsolute } from "node:path";
8
8
  import { argv } from "process";
@@ -378,7 +378,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
378
378
  const rawArg = process.argv[2];
379
379
  const managerCommands = !invokedCliName(process.argv);
380
380
  const isHelpFlag = rawArg === "-h" || rawArg === "--help";
381
- const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-RofowSNL.js");
381
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-B_h4-tvC.js");
382
382
  if (isHelpFlag && process.argv.length === 3) {
383
383
  await cmdHelp(managerCommands);
384
384
  process.exit(0);
@@ -392,7 +392,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
392
392
  process.exit(code ?? 0);
393
393
  }
394
394
  {
395
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CLecYP6A.js");
395
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CXQnG41E.js");
396
396
  if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
397
397
  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`);
398
398
  process.exit(1);
@@ -464,7 +464,7 @@ if (config.useRust) {
464
464
  process.exit(1);
465
465
  }
466
466
  if (rustBinary) {
467
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CLecYP6A.js");
467
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CXQnG41E.js");
468
468
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
469
469
  if (config.verbose) {
470
470
  console.log(`[rust] Using binary: ${rustBinary}`);
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
8
8
  import "./webrtcLink-va_gAR77.js";
9
9
  import "./remotes-B2i_QcdG.js";
10
10
  import "./roomReplyAlias-9jb1qmh3.js";
11
- import { H as listRecords, St as flattenForest, v as deriveLiveState, xt as buildAgentForest } from "./subcommands-BdzAkAxM.js";
11
+ import { H as listRecords, St as flattenForest, v as deriveLiveState, xt as buildAgentForest } from "./subcommands-BbqJJZT1.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-DwTxj3rs.js";
@@ -332,4 +332,4 @@ function readPpidSync(pid) {
332
332
 
333
333
  //#endregion
334
334
  export { cmdPs };
335
- //# sourceMappingURL=cmdPs-Bosj2I4z.js.map
335
+ //# sourceMappingURL=cmdPs-B-33TYQz.js.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-wQIsKbnQ.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-DVx2n1y0.js";
2
+ import "./versionChecker-Wfi5fazr.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-EMAWQVF3.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-TTp_Qz9G.js";
5
5
  import "./JsonlStore-BpYZZTap.js";
6
6
  import "./globalPidIndex-CRB5KtyL.js";
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
8
8
  import "./webrtcLink-va_gAR77.js";
9
9
  import "./remotes-B2i_QcdG.js";
10
10
  import "./roomReplyAlias-9jb1qmh3.js";
11
- import { H as listRecords, P as isPidAlive, et as renderLogTailLines, v as deriveLiveState } from "./subcommands-BdzAkAxM.js";
11
+ import { H as listRecords, P as isPidAlive, et as renderLogTailLines, v as deriveLiveState } from "./subcommands-BbqJJZT1.js";
12
12
  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-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import { readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
@@ -881,4 +881,4 @@ async function ensureDaemon() {
881
881
 
882
882
  //#endregion
883
883
  export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
884
- //# sourceMappingURL=notifyDaemon-DX4uzK1T.js.map
884
+ //# sourceMappingURL=notifyDaemon-DcMjfQzN.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-RofowSNL.js");
341
+ const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-B_h4-tvC.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-B24qLtLv.js.map
469
+ //# sourceMappingURL=parentPingLoop-jDx6C7cy.js.map
@@ -1,4 +1,4 @@
1
- import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-wQIsKbnQ.js";
1
+ import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-Wfi5fazr.js";
2
2
  import { execFileSync } from "child_process";
3
3
  import { accessSync, chmodSync, constants, existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
4
4
  import { chmod, copyFile } from "fs/promises";
@@ -435,4 +435,4 @@ async function getRustBinary(options = {}) {
435
435
 
436
436
  //#endregion
437
437
  export { ensureExecutable as a, findSpawnHiddenLauncher as c, getBinDir as d, getBinaryName as f, hasValidMacSignature as h, ensureAyrsBinary as i, findTrayLauncher as l, getRustBinary as m, devBuildInfo as n, findAyrsBinary as o, getDownloadUrl as p, downloadBinary as r, findRustBinary as s, chmodExtractedBinaries as t, gcOldBinaryDirs as u };
438
- //# sourceMappingURL=rustBinary-adqRQq33.js.map
438
+ //# sourceMappingURL=rustBinary-B_PBE-qv.js.map
@@ -1,4 +1,4 @@
1
- import "./versionChecker-wQIsKbnQ.js";
2
- import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-adqRQq33.js";
1
+ import "./versionChecker-Wfi5fazr.js";
2
+ import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-B_PBE-qv.js";
3
3
 
4
4
  export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
@@ -1,13 +1,13 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-wQIsKbnQ.js";
3
- import "./ts-DVx2n1y0.js";
2
+ import "./versionChecker-Wfi5fazr.js";
3
+ import "./ts-EMAWQVF3.js";
4
4
  import "./todoAutomation-TTp_Qz9G.js";
5
5
  import "./JsonlStore-BpYZZTap.js";
6
6
  import "./globalPidIndex-CRB5KtyL.js";
7
7
  import "./pidStore-433kvh9D.js";
8
8
  import "./messageLog-Dq_ka-Bt.js";
9
9
  import "./todoStore-C9RTz0Vs.js";
10
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CQ4kmu_J.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CIviDeqJ.js";
11
11
  import { f as resolveSpawnCwd } from "./workspaceConfig-DXWyuf1A.js";
12
12
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-B1nCglgu.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-CxK6YNA9.js.map
157
+ //# sourceMappingURL=schedule-Bh5dzjn9.js.map
@@ -1,7 +1,7 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import { i as getInstalledPackage } from "./versionChecker-wQIsKbnQ.js";
3
- import { c as findSpawnHiddenLauncher } from "./rustBinary-adqRQq33.js";
4
- import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-DVx2n1y0.js";
2
+ import { i as getInstalledPackage } from "./versionChecker-Wfi5fazr.js";
3
+ import { c as findSpawnHiddenLauncher } from "./rustBinary-B_PBE-qv.js";
4
+ import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-EMAWQVF3.js";
5
5
  import { t as agentYesHome$1 } from "./agentYesHome-JmJC28YX.js";
6
6
  import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
7
7
  import "./JsonlStore-BpYZZTap.js";
@@ -11,21 +11,21 @@ import { r as recordInbox, s as isTerminalReply } from "./messageLog-Dq_ka-Bt.js
11
11
  import "./todoStore-C9RTz0Vs.js";
12
12
  import "./e2e-BdLf8DvY.js";
13
13
  import "./configShared-De4bR5hH.js";
14
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CQ4kmu_J.js";
14
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CIviDeqJ.js";
15
15
  import { i as isWebrtcSpec, o as toWebrtcUrl } from "./webrtcLink-va_gAR77.js";
16
16
  import "./remotes-B2i_QcdG.js";
17
17
  import "./roomReplyAlias-9jb1qmh3.js";
18
- import { $ as recentReadEdges, D as extractTaskCounts, E as extractNeedsInput, F as isSlashCommand, H as listRecords, Q as recentMessageEdges, X as readNotes, Y as readLogForRender, Z as readPtysize, _t as withIpcLock, bt as TYPING_BADGE, et as renderLogTailLines, f as cliDefaults, gt as writeToIpc, h as controlCodeFromName, nt as renderRawLogLines, rt as resolveOne, tt as renderRawLog, ut as snapshotStatus, vt as framePaste, w as extractBadges, y as deriveLiveStatus, yt as shouldFramePaste, z as isUserTyping } from "./subcommands-BdzAkAxM.js";
18
+ import { $ as recentReadEdges, D as extractTaskCounts, E as extractNeedsInput, F as isSlashCommand, H as listRecords, Q as recentMessageEdges, X as readNotes, Y as readLogForRender, Z as readPtysize, _t as withIpcLock, bt as TYPING_BADGE, et as renderLogTailLines, f as cliDefaults, gt as writeToIpc, h as controlCodeFromName, nt as renderRawLogLines, rt as resolveOne, tt as renderRawLog, ut as snapshotStatus, vt as framePaste, w as extractBadges, y as deriveLiveStatus, yt as shouldFramePaste, z as isUserTyping } from "./subcommands-BbqJJZT1.js";
19
19
  import { c as isTransientLockMkdirError } from "./notifyStore-DIfkfKB2.js";
20
20
  import "./senderAncestry-CVHeKk1Y.js";
21
21
  import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Deve5pv3.js";
22
- import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-BpJzLtY5.js";
22
+ import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-COPj84yO.js";
23
23
  import { n as sampleTrees } from "./procStats-DwTxj3rs.js";
24
24
  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-DXWyuf1A.js";
25
25
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-B1nCglgu.js";
26
- import { i as importProvisionModule } from "./ws-NlpP_miQ.js";
26
+ import { i as importProvisionModule } from "./ws-DAtzWRX4.js";
27
27
  import { r as spawnRejectionReason } from "./spawnGate-CEk6MowO.js";
28
- import { i as launchTray } from "./trayApp-QXBOa7lX.js";
28
+ import { i as launchTray } from "./trayApp-DZJxriXd.js";
29
29
  import { existsSync, realpathSync, renameSync, watch, writeFileSync } from "node:fs";
30
30
  import yargs from "yargs";
31
31
  import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
@@ -1345,7 +1345,7 @@ async function warnStrayServeProcesses() {
1345
1345
  }
1346
1346
  async function daemonShareRuntime(args) {
1347
1347
  const { daemonShareRuntime: decide } = await import("./serveRust-DKhCiKjJ.js");
1348
- const { findAyrsBinary } = await import("./rustBinary-BeH9kG0U.js");
1348
+ const { findAyrsBinary } = await import("./rustBinary-Dr29wGvK.js");
1349
1349
  return decide(args, () => !!findAyrsBinary());
1350
1350
  }
1351
1351
  function explicitWebrtcUrl(args) {
@@ -1643,7 +1643,7 @@ async function cmdServeStatus(args) {
1643
1643
  const token = await loadTokenReadOnly();
1644
1644
  const daemonArgs = mgr ? await readDaemonServeArgs(mgr) : null;
1645
1645
  const installed = daemonArgs !== null;
1646
- const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-CG3gWAJ6.js");
1646
+ const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-DZyXxoCO.js");
1647
1647
  const shareLink = (installed ? await daemonShareLink(daemonArgs) : await foregroundAyrsShareLink()) ?? await readShareLink();
1648
1648
  const running = installed ? await readDaemonRunning(mgr) : false;
1649
1649
  const a = daemonArgs ?? [];
@@ -1777,14 +1777,14 @@ Options:
1777
1777
  const { planRustServe, SERVE_SUBCOMMANDS } = await import("./serveRust-DKhCiKjJ.js");
1778
1778
  const plan = planRustServe(rest);
1779
1779
  if (plan.kind === "rust-only") {
1780
- const { ensureAyrsBinary } = await import("./rustBinary-BeH9kG0U.js");
1780
+ const { ensureAyrsBinary } = await import("./rustBinary-Dr29wGvK.js");
1781
1781
  const ayrs = await ensureAyrsBinary();
1782
1782
  if (ayrs) return runAyrsServe(ayrs, plan.argv);
1783
1783
  process.stderr.write(`ay serve: ${plan.feature} needs the Rust daemon (ayrs), which was not found (bun run build:rs, or reinstall)\n`);
1784
1784
  return 1;
1785
1785
  }
1786
1786
  if (plan.kind === "rust") {
1787
- const { ensureAyrsBinary } = await import("./rustBinary-BeH9kG0U.js");
1787
+ const { ensureAyrsBinary } = await import("./rustBinary-Dr29wGvK.js");
1788
1788
  const ayrs = await ensureAyrsBinary();
1789
1789
  if (ayrs) return runAyrsServe(ayrs, plan.argv);
1790
1790
  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");
@@ -2766,7 +2766,7 @@ Options:
2766
2766
  }
2767
2767
  });
2768
2768
  if (req.method === "GET" && p === "/api/ws") {
2769
- const ws = await import("./ws-YnvwOIuC.js");
2769
+ const ws = await import("./ws-BhiUNf9w.js");
2770
2770
  try {
2771
2771
  await ws.loadProvision();
2772
2772
  } catch (e) {
@@ -2786,7 +2786,7 @@ Options:
2786
2786
  if (req.method === "GET" && p === "/api/ws/status") {
2787
2787
  const dirRaw = url.searchParams.get("path");
2788
2788
  if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
2789
- const ws = await import("./ws-YnvwOIuC.js");
2789
+ const ws = await import("./ws-BhiUNf9w.js");
2790
2790
  let prov;
2791
2791
  try {
2792
2792
  prov = await ws.loadProvision();
@@ -2808,7 +2808,7 @@ Options:
2808
2808
  }
2809
2809
  }
2810
2810
  if (req.method === "GET" && p === "/api/ws/repos") {
2811
- const ws = await import("./ws-YnvwOIuC.js");
2811
+ const ws = await import("./ws-BhiUNf9w.js");
2812
2812
  try {
2813
2813
  await ws.loadProvision();
2814
2814
  } catch (e) {
@@ -2889,7 +2889,7 @@ Options:
2889
2889
  const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
2890
2890
  if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
2891
2891
  const [, owner, repo] = m;
2892
- const ws = await import("./ws-YnvwOIuC.js");
2892
+ const ws = await import("./ws-BhiUNf9w.js");
2893
2893
  let prov;
2894
2894
  try {
2895
2895
  prov = await ws.loadProvision();
@@ -3800,7 +3800,7 @@ Options:
3800
3800
  const perm = body.perm ?? "r";
3801
3801
  if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
3802
3802
  try {
3803
- const { createScopedShare } = await import("./agentShare-uF3ATV1h.js");
3803
+ const { createScopedShare } = await import("./agentShare-Bgmp_lGz.js");
3804
3804
  const share = await createScopedShare({
3805
3805
  agent: body.agent,
3806
3806
  perm,
@@ -3815,12 +3815,12 @@ Options:
3815
3815
  }
3816
3816
  }
3817
3817
  if (req.method === "GET" && p === "/api/shares") {
3818
- const { listShares } = await import("./agentShare-uF3ATV1h.js");
3818
+ const { listShares } = await import("./agentShare-Bgmp_lGz.js");
3819
3819
  return Response.json(listShares());
3820
3820
  }
3821
3821
  const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
3822
3822
  if (req.method === "DELETE" && revokeM) {
3823
- const { revokeShare } = await import("./agentShare-uF3ATV1h.js");
3823
+ const { revokeShare } = await import("./agentShare-Bgmp_lGz.js");
3824
3824
  const ok = revokeShare(decodeURIComponent(revokeM[1]));
3825
3825
  return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
3826
3826
  }
@@ -4132,7 +4132,7 @@ Options:
4132
4132
  const shutdown = (resolve) => {
4133
4133
  if (heartbeat) clearInterval(heartbeat);
4134
4134
  closeShare?.();
4135
- import("./agentShare-uF3ATV1h.js").then((m) => m.revokeAllShares()).catch(() => {});
4135
+ import("./agentShare-Bgmp_lGz.js").then((m) => m.revokeAllShares()).catch(() => {});
4136
4136
  server?.stop();
4137
4137
  Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
4138
4138
  };
@@ -4145,4 +4145,4 @@ Options:
4145
4145
 
4146
4146
  //#endregion
4147
4147
  export { cmdServe, inspectServeDaemon, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
4148
- //# sourceMappingURL=serve-DbupM_eA.js.map
4148
+ //# sourceMappingURL=serve-BSCcPxX8.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-DbupM_eA.js");
100
+ const { cmdServe } = await import("./serve-BSCcPxX8.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-CYLu-oBk.js.map
110
+ //# sourceMappingURL=setup-D-2G5l3p.js.map
@@ -244,7 +244,7 @@ Options:
244
244
  --port N HTTP port (default: ${DEFAULT_SHARE_PORT}, or the daemon's)\n --path /ay tailscale mount path (default: ${DEFAULT_TS_PATH})\n -y, --yes approve the shown commands without prompting\n --json print {mode, url} as JSON\n\nThe URL carries this host's serve token: whoever holds it can read and steer\nevery agent here. Rotate: rm ~/.agent-yes/.serve-token && ay serve install\n`;
245
245
  async function shareRuntimeOf(args) {
246
246
  const { daemonShareRuntime } = await import("./serveRust-DKhCiKjJ.js");
247
- const { findAyrsBinary } = await import("./rustBinary-BeH9kG0U.js");
247
+ const { findAyrsBinary } = await import("./rustBinary-Dr29wGvK.js");
248
248
  return daemonShareRuntime(args ?? [], () => !!findAyrsBinary());
249
249
  }
250
250
  async function daemonShareLink(args) {
@@ -260,7 +260,7 @@ async function daemonShareLink(args) {
260
260
  async function foregroundAyrsShareLink() {
261
261
  const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-_TPYAGWC.js");
262
262
  const { parseWebrtcLink } = await import("./webrtcLink-SsInrVHU.js");
263
- const { isPidAlive } = await import("./subcommands-RofowSNL.js");
263
+ const { isPidAlive } = await import("./subcommands-B_h4-tvC.js");
264
264
  const { agentYesHome } = await import("./agentYesHome-CYNNNP71.js");
265
265
  const { readFile } = await import("fs/promises");
266
266
  const path = await import("path");
@@ -276,7 +276,7 @@ async function foregroundAyrsShareLink() {
276
276
  }
277
277
  }
278
278
  async function cmdShareStatus(mount) {
279
- const { inspectServeDaemon } = await import("./serve-DbupM_eA.js");
279
+ const { inspectServeDaemon } = await import("./serve-BSCcPxX8.js");
280
280
  const [d, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
281
281
  const line = (k, v) => process.stdout.write(`${k.padEnd(11)}${v}\n`);
282
282
  if (d.args === null) {
@@ -323,7 +323,7 @@ async function cmdShare(rest) {
323
323
  process.stderr.write(`ay share: unknown mode '${mode}' — one of ${SHARE_MODES.join(", ")}\n`);
324
324
  return 1;
325
325
  }
326
- const { inspectServeDaemon, cmdServe } = await import("./serve-DbupM_eA.js");
326
+ const { inspectServeDaemon, cmdServe } = await import("./serve-BSCcPxX8.js");
327
327
  const [daemon, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
328
328
  const lanIp = pickLanIp(networkInterfaces());
329
329
  if (!mode) {
@@ -448,4 +448,4 @@ async function cmdShare(rest) {
448
448
 
449
449
  //#endregion
450
450
  export { cmdShare, daemonShareLink, foregroundAyrsShareLink };
451
- //# sourceMappingURL=shareCmd-CG3gWAJ6.js.map
451
+ //# sourceMappingURL=shareCmd-DZyXxoCO.js.map
@@ -8,7 +8,7 @@ import "./configShared-De4bR5hH.js";
8
8
  import "./webrtcLink-va_gAR77.js";
9
9
  import "./remotes-B2i_QcdG.js";
10
10
  import "./roomReplyAlias-9jb1qmh3.js";
11
- import { $ as recentReadEdges, A as isAgentIdShaped, B as lastReadAt, C as envelopeCostFor, D as extractTaskCounts, E as extractNeedsInput, F as isSlashCommand, G as ownedCollapsedPaste, H as listRecords, I as isSubcommand, J as readComposerState, K as probeStdinReachable, L as isUnknownManagerToken, M as isBareManagerInvocation, N as isExitRequest, O as finalizedLines, P as isPidAlive, Q as recentMessageEdges, R as isUnreachableWriteErrno, S as envelopeAttribution, T as extractMenu, U as matchKeyword, V as lastStdinAt, W as menuSelectKeys, X as readNotes, Y as readLogForRender, Z as readPtysize, _ as cwdLabel, a as READ_WINDOW_MS, at as resolveResumeArgs, b as drainerLauncher, c as SEND_EXIT_UNREACHABLE, ct as saveRenderDisk, d as buildEnvelope, dt as stdinActivityPath, et as renderLogTailLines, f as cliDefaults, ft as stopTipForCli, g as cursorAbs, gt as writeToIpc, h as controlCodeFromName, ht as writeKeysPaced, i as READ_PAGE_DEFAULT, it as resolveReadWindow, j as isAgentStuck, k as inspectSubmission, l as TYPING_WINDOW_MS, lt as sendPayloadCapError, m as confirmStdinUnreachable, mt as waitForLogQuiet, n as GRACEFUL_EXIT_COMMANDS, nt as renderRawLogLines, o as SEND_BODY_MAX_CHARS, ot as restartHintLines, p as cmdHelp, pt as submitAndConfirm, q as readAgentPtysize, r as MAX_RENDER_BYTES, rt as resolveOne, s as SEND_EXIT_QUEUED, st as runSubcommand, t as COMPOSER_WINDOWS, tt as renderRawLog, u as backoffWhileTyping, ut as snapshotStatus, v as deriveLiveState, w as extractBadges, x as enableRenderDiskCache, y as deriveLiveStatus, z as isUserTyping } from "./subcommands-BdzAkAxM.js";
11
+ import { $ as recentReadEdges, A as isAgentIdShaped, B as lastReadAt, C as envelopeCostFor, D as extractTaskCounts, E as extractNeedsInput, F as isSlashCommand, G as ownedCollapsedPaste, H as listRecords, I as isSubcommand, J as readComposerState, K as probeStdinReachable, L as isUnknownManagerToken, M as isBareManagerInvocation, N as isExitRequest, O as finalizedLines, P as isPidAlive, Q as recentMessageEdges, R as isUnreachableWriteErrno, S as envelopeAttribution, T as extractMenu, U as matchKeyword, V as lastStdinAt, W as menuSelectKeys, X as readNotes, Y as readLogForRender, Z as readPtysize, _ as cwdLabel, a as READ_WINDOW_MS, at as resolveResumeArgs, b as drainerLauncher, c as SEND_EXIT_UNREACHABLE, ct as saveRenderDisk, d as buildEnvelope, dt as stdinActivityPath, et as renderLogTailLines, f as cliDefaults, ft as stopTipForCli, g as cursorAbs, gt as writeToIpc, h as controlCodeFromName, ht as writeKeysPaced, i as READ_PAGE_DEFAULT, it as resolveReadWindow, j as isAgentStuck, k as inspectSubmission, l as TYPING_WINDOW_MS, lt as sendPayloadCapError, m as confirmStdinUnreachable, mt as waitForLogQuiet, n as GRACEFUL_EXIT_COMMANDS, nt as renderRawLogLines, o as SEND_BODY_MAX_CHARS, ot as restartHintLines, p as cmdHelp, pt as submitAndConfirm, q as readAgentPtysize, r as MAX_RENDER_BYTES, rt as resolveOne, s as SEND_EXIT_QUEUED, st as runSubcommand, t as COMPOSER_WINDOWS, tt as renderRawLog, u as backoffWhileTyping, ut as snapshotStatus, v as deriveLiveState, w as extractBadges, x as enableRenderDiskCache, y as deriveLiveStatus, z as isUserTyping } from "./subcommands-BbqJJZT1.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
 
@@ -1045,6 +1045,16 @@ async function resolveWorkDir(r) {
1045
1045
  * block over the first ghost character must not turn a suggestion into a draft.
1046
1046
  */
1047
1047
  const PROMPT_RE = /^\s*[❯›]($|\s)/u;
1048
+ const ASCII_PROMPT_RE = /^\s*[❯›>]($|\s)/u;
1049
+ const ASCII_PROMPT_CLIS = new Set(["agy"]);
1050
+ /** A row with its leading prompt glyph (and the space after it) removed. */
1051
+ function stripPromptGlyph(line, cli) {
1052
+ return line.replace(cli && ASCII_PROMPT_CLIS.has(cli) ? /^\s*[❯›>]\s*/u : /^\s*[❯›]\s*/u, "");
1053
+ }
1054
+ /** The input-row matcher for a CLI (see ASCII_PROMPT_CLIS). */
1055
+ function promptRe(cli) {
1056
+ return cli && ASCII_PROMPT_CLIS.has(cli) ? ASCII_PROMPT_RE : PROMPT_RE;
1057
+ }
1048
1058
  const SEPARATOR_RE = /^\s*[─━]{3,}/u;
1049
1059
  const FOOTER_RE = /^\s*(?:·\s*)?(?:[←→] .*agents|\? for shortcuts|esc to interrupt|ctrl\+t to|GPT-[^·]*·|gpt-[^·]*·|⏵⏵|⏸|⏎ send|\d+% context left)/iu;
1050
1060
  const FOOTER_SEGMENT_RE = /·\s*(?:[←→] .*agents?|↓ |esc to interrupt)|\(shift\+tab to /u;
@@ -1056,9 +1066,10 @@ const FOOTER_SEGMENT_RE = /·\s*(?:[←→] .*agents?|↓ |esc to interrupt)|\(s
1056
1066
  * any box (Codex) it is the last prompt-looking row. Shared by the draft check
1057
1067
  * and by submission confirmation, so both agree on where history ends.
1058
1068
  */
1059
- function composerPromptRow(texts) {
1060
- for (let i = texts.length - 2; i >= 0; i--) if (SEPARATOR_RE.test(texts[i]) && PROMPT_RE.test(texts[i + 1])) return i + 1;
1061
- return texts.findLastIndex((t) => PROMPT_RE.test(t));
1069
+ function composerPromptRow(texts, cli) {
1070
+ const re = promptRe(cli);
1071
+ for (let i = texts.length - 2; i >= 0; i--) if (SEPARATOR_RE.test(texts[i]) && re.test(texts[i + 1])) return i + 1;
1072
+ return texts.findLastIndex((t) => re.test(t));
1062
1073
  }
1063
1074
  /**
1064
1075
  * Is Claude Code's composer box the bottom of the screen: a rule directly above a
@@ -1071,15 +1082,15 @@ function composerPromptRow(texts) {
1071
1082
  * A real draft longer than MAX_DRAFT_ROWS fails too and reads "hidden", which
1072
1083
  * parks the send just as a draft does.
1073
1084
  */
1074
- function composerBoxed(texts) {
1075
- const prompt = composerPromptRow(texts);
1085
+ function composerBoxed(texts, cli) {
1086
+ const prompt = composerPromptRow(texts, cli);
1076
1087
  if (prompt < 1 || !SEPARATOR_RE.test(texts[prompt - 1])) return false;
1077
1088
  const nonBlank = (rows) => rows.filter((t) => t.trim());
1078
1089
  const close = texts.findIndex((t, i) => i > prompt && isComposerChrome(t));
1079
1090
  if (close < 0) return false;
1080
1091
  const inside = nonBlank(texts.slice(prompt + 1, close));
1081
1092
  const below = nonBlank(texts.slice(close + 1));
1082
- return inside.length <= MAX_DRAFT_ROWS && below.length <= MAX_ROWS_BELOW_BOX && ![...inside, ...below].some((t) => PROMPT_RE.test(t));
1093
+ return inside.length <= MAX_DRAFT_ROWS && below.length <= MAX_ROWS_BELOW_BOX && ![...inside, ...below].some((t) => promptRe(cli).test(t));
1083
1094
  }
1084
1095
  /** Draft rows under the prompt row, before the box is read as stale (see above). */
1085
1096
  const MAX_DRAFT_ROWS = 8;
@@ -1113,8 +1124,8 @@ function isComposerChrome(text, cells) {
1113
1124
  * draft is not. A draft whose own line starts with a prompt glyph can still be
1114
1125
  * misread there.
1115
1126
  */
1116
- function classifyComposer(rows) {
1117
- const prompt = composerPromptRow(rows.map((r) => r.text));
1127
+ function classifyComposer(rows, cli) {
1128
+ const prompt = composerPromptRow(rows.map((r) => r.text), cli);
1118
1129
  if (prompt < 0) return {
1119
1130
  kind: "unknown",
1120
1131
  reason: "no prompt row on screen"
@@ -1129,7 +1140,8 @@ function classifyComposer(rows) {
1129
1140
  }
1130
1141
  let cells = row.cells;
1131
1142
  if (i === prompt) {
1132
- const glyph = cells.findIndex((c) => c.ch === "❯" || c.ch === "›");
1143
+ let glyph = cells.findIndex((c) => c.ch.trim() !== "");
1144
+ if (glyph >= 0 && !promptRe(cli).test(cells[glyph].ch)) glyph = -1;
1133
1145
  cells = glyph >= 0 ? cells.slice(glyph + 1) : cells;
1134
1146
  }
1135
1147
  for (const c of cells) {
@@ -1999,7 +2011,7 @@ async function runSubcommand(argv) {
1999
2011
  switch (sub) {
2000
2012
  case "ls":
2001
2013
  case "list": return await cmdLs(rest);
2002
- case "ps": return await (await import("./cmdPs-Bosj2I4z.js")).cmdPs(rest);
2014
+ case "ps": return await (await import("./cmdPs-B-33TYQz.js")).cmdPs(rest);
2003
2015
  case "status": return await cmdStatus(rest);
2004
2016
  case "whoami": return await cmdWhoami(rest);
2005
2017
  case "result": return await cmdResult(rest);
@@ -2049,35 +2061,35 @@ async function runSubcommand(argv) {
2049
2061
  return cmdCh(rest);
2050
2062
  }
2051
2063
  case "term": {
2052
- const { cmdTerm } = await import("./terminal-crh6newc.js");
2064
+ const { cmdTerm } = await import("./terminal-Z_Y8hGCW.js");
2053
2065
  return cmdTerm(rest);
2054
2066
  }
2055
2067
  case "widget": {
2056
- const { cmdWidget } = await import("./widget-Bx1D3jwO.js");
2068
+ const { cmdWidget } = await import("./widget-BUri84Wp.js");
2057
2069
  return cmdWidget(rest);
2058
2070
  }
2059
2071
  case "mint": {
2060
- const { cmdMint } = await import("./widget-Bx1D3jwO.js");
2072
+ const { cmdMint } = await import("./widget-BUri84Wp.js");
2061
2073
  return cmdMint(rest);
2062
2074
  }
2063
2075
  case "serve": {
2064
- const { cmdServe } = await import("./serve-DbupM_eA.js");
2076
+ const { cmdServe } = await import("./serve-BSCcPxX8.js");
2065
2077
  return cmdServe(rest);
2066
2078
  }
2067
2079
  case "tray": {
2068
- const { cmdTray } = await import("./trayApp-Dj6ISTtY.js");
2080
+ const { cmdTray } = await import("./trayApp-D__QcBRd.js");
2069
2081
  return cmdTray(rest);
2070
2082
  }
2071
2083
  case "setup": {
2072
- const { cmdSetup } = await import("./setup-CYLu-oBk.js");
2084
+ const { cmdSetup } = await import("./setup-D-2G5l3p.js");
2073
2085
  return cmdSetup(rest);
2074
2086
  }
2075
2087
  case "ws": {
2076
- const { cmdWs } = await import("./ws-YnvwOIuC.js");
2088
+ const { cmdWs } = await import("./ws-BhiUNf9w.js");
2077
2089
  return cmdWs(rest);
2078
2090
  }
2079
2091
  case "schedule": {
2080
- const { cmdSchedule } = await import("./schedule-CxK6YNA9.js");
2092
+ const { cmdSchedule } = await import("./schedule-Bh5dzjn9.js");
2081
2093
  return cmdSchedule(rest);
2082
2094
  }
2083
2095
  case "remote": {
@@ -2085,7 +2097,7 @@ async function runSubcommand(argv) {
2085
2097
  return cmdRemote(rest);
2086
2098
  }
2087
2099
  case "share": {
2088
- const { cmdShare } = await import("./shareCmd-CG3gWAJ6.js");
2100
+ const { cmdShare } = await import("./shareCmd-DZyXxoCO.js");
2089
2101
  return cmdShare(rest);
2090
2102
  }
2091
2103
  case "connect": {
@@ -2097,7 +2109,7 @@ async function runSubcommand(argv) {
2097
2109
  return cmdExpose(rest);
2098
2110
  }
2099
2111
  case "callback": {
2100
- const { cmdCallback } = await import("./callback-DQ7DRHL7.js");
2112
+ const { cmdCallback } = await import("./callback-r0aWZF5m.js");
2101
2113
  return cmdCallback(rest);
2102
2114
  }
2103
2115
  case "reap":
@@ -2108,7 +2120,7 @@ async function runSubcommand(argv) {
2108
2120
  return await cmdDsh(rest);
2109
2121
  }
2110
2122
  case "gc": {
2111
- const { gcOldBinaryDirs } = await import("./rustBinary-BeH9kG0U.js");
2123
+ const { gcOldBinaryDirs } = await import("./rustBinary-Dr29wGvK.js");
2112
2124
  const { gcLogs } = await import("./globalPidIndex-Q6NdU1NM.js");
2113
2125
  const bins = gcOldBinaryDirs();
2114
2126
  const logs = await gcLogs();
@@ -4585,7 +4597,7 @@ async function readComposerState(record, windows = COMPOSER_WINDOWS) {
4585
4597
  kind: "unknown",
4586
4598
  reason: "log unreadable or empty"
4587
4599
  };
4588
- const state = classifyComposer(rows);
4600
+ const state = classifyComposer(rows, record.cli);
4589
4601
  if (claude && state.kind === "draft" && !composerBoxed(rows.map((r) => r.text))) return {
4590
4602
  kind: "hidden",
4591
4603
  reason: "its input box is not on screen"
@@ -4859,7 +4871,7 @@ async function backoffWhileTyping(pid, maxWaitMs) {
4859
4871
  };
4860
4872
  }
4861
4873
  /** Attribute the evidence to THIS message, never to redraws or another turn. */
4862
- function inspectSubmission(screen, identity) {
4874
+ function inspectSubmission(screen, identity, cli) {
4863
4875
  const unknown = {
4864
4876
  submission: "not-submitted",
4865
4877
  retry: false,
@@ -4873,7 +4885,7 @@ function inspectSubmission(screen, identity) {
4873
4885
  const wrapped = identity.startsWith("<ay-msg ");
4874
4886
  const closer = wrapped ? compact(`</ay-msg ${identity.slice(8)}>`) : null;
4875
4887
  const occurrences = (text) => Math.max(text.split(needle).length - 1, closer ? text.split(closer).length - 1 : 0);
4876
- const prompt = composerPromptRow(screen);
4888
+ const prompt = composerPromptRow(screen, cli);
4877
4889
  if (prompt < 0) {
4878
4890
  if (wrapped) return unknown;
4879
4891
  let last = screen.length - 1;
@@ -4891,7 +4903,7 @@ function inspectSubmission(screen, identity) {
4891
4903
  const transcript = compact(transcriptLines.join("\n"));
4892
4904
  let transcriptMatches = wrapped ? occurrences(transcript) : 0;
4893
4905
  if (!wrapped) {
4894
- const lines = transcriptLines.map((line) => compact(line.replace(/^\s*[❯›]\s*/u, "")));
4906
+ const lines = transcriptLines.map((line) => compact(stripPromptGlyph(line, cli)));
4895
4907
  for (let start = 0; start < lines.length; start++) {
4896
4908
  let candidate = "";
4897
4909
  for (let end = start; end < lines.length && candidate.length < needle.length; end++) {
@@ -4903,7 +4915,7 @@ function inspectSubmission(screen, identity) {
4903
4915
  }
4904
4916
  }
4905
4917
  }
4906
- const input = [screen[prompt].replace(/^\s*[❯›]\s*/u, "")];
4918
+ const input = [stripPromptGlyph(screen[prompt], cli)];
4907
4919
  for (const line of screen.slice(prompt + 1)) {
4908
4920
  if (isComposerChrome(line)) break;
4909
4921
  input.push(line);
@@ -4966,7 +4978,7 @@ async function submitAndConfirm(record, fifoPath, trailing, identity, beforePast
4966
4978
  const geometry = await readAgentPtysize(record) ?? void 0;
4967
4979
  const cfg = (await cliDefaults())[record.cli];
4968
4980
  let screen = await renderSendScreen(target, geometry);
4969
- const before = inspectSubmission(screen, identity);
4981
+ const before = inspectSubmission(screen, identity, record.cli);
4970
4982
  const baseline = before.transcriptMatches;
4971
4983
  const delivered = (e) => e.submission !== "not-submitted" && e.transcriptMatches > baseline || before.inComposer && e.composerVisible && !e.inComposer;
4972
4984
  const outcome = (e, current) => {
@@ -4983,7 +4995,7 @@ async function submitAndConfirm(record, fifoPath, trailing, identity, beforePast
4983
4995
  if (attempt) {
4984
4996
  await new Promise((r) => setTimeout(r, Math.min(400, 150 * 1.618 ** (attempt - 1))));
4985
4997
  screen = await renderSendScreen(target, geometry);
4986
- const settled = inspectSubmission(screen, identity);
4998
+ const settled = inspectSubmission(screen, identity, record.cli);
4987
4999
  if (delivered(settled)) return outcome(settled, screen);
4988
5000
  if (!canRetry(settled, screen) || cfg?.needsInput?.length && parseMenu(screen, {
4989
5001
  needsInput: cfg.needsInput,
@@ -4993,7 +5005,7 @@ async function submitAndConfirm(record, fifoPath, trailing, identity, beforePast
4993
5005
  await writeToIpc(fifoPath, trailing);
4994
5006
  await waitForLogQuiet(logFile, SEND_CONFIRM_QUIET_MS, SEND_CONFIRM_MAX_MS);
4995
5007
  screen = await renderSendScreen(target, geometry);
4996
- const evidence = inspectSubmission(screen, identity);
5008
+ const evidence = inspectSubmission(screen, identity, record.cli);
4997
5009
  if (delivered(evidence)) return outcome(evidence, screen);
4998
5010
  if (!canRetry(evidence, screen)) break;
4999
5011
  }
@@ -5976,7 +5988,7 @@ async function cmdAttach(rest) {
5976
5988
  const winsizeDir = path.join(ayHome, "winsize");
5977
5989
  await mkdir(winsizeDir, { recursive: true });
5978
5990
  const winsizePath = path.join(winsizeDir, String(record.pid));
5979
- const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DbupM_eA.js");
5991
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-BSCcPxX8.js");
5980
5992
  const daemonBase = await resolveDaemonHttpBase().catch(() => null);
5981
5993
  const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
5982
5994
  const capViewer = `attach:${process.pid}`;
@@ -6725,7 +6737,7 @@ async function cmdNotify(rest) {
6725
6737
  }
6726
6738
  const ensure = async () => {
6727
6739
  if (!argv["ensure-daemon"]) return;
6728
- const { ensureDaemon } = await import("./notifyDaemon-DX4uzK1T.js");
6740
+ const { ensureDaemon } = await import("./notifyDaemon-DcMjfQzN.js");
6729
6741
  await ensureDaemon().catch(() => null);
6730
6742
  };
6731
6743
  await heartbeatWatcher(parent, selfStartedAt);
@@ -6799,7 +6811,7 @@ async function cmdNotifyCursor(args) {
6799
6811
  }
6800
6812
  async function cmdNotifyd(rest) {
6801
6813
  const sub = rest[0] ?? "status";
6802
- const daemon = await import("./notifyDaemon-DX4uzK1T.js");
6814
+ const daemon = await import("./notifyDaemon-DcMjfQzN.js");
6803
6815
  switch (sub) {
6804
6816
  case "run": return daemon.runDaemon();
6805
6817
  case "once": return daemon.runDaemon({ once: true });
@@ -6826,4 +6838,4 @@ async function cmdNotifyd(rest) {
6826
6838
 
6827
6839
  //#endregion
6828
6840
  export { recentReadEdges as $, isAgentIdShaped as A, lastReadAt as B, envelopeCostFor as C, extractTaskCounts as D, extractNeedsInput as E, isSlashCommand as F, ownedCollapsedPaste as G, listRecords as H, isSubcommand as I, readComposerState as J, probeStdinReachable as K, isUnknownManagerToken as L, isBareManagerInvocation as M, isExitRequest as N, finalizedLines as O, isPidAlive as P, recentMessageEdges as Q, isUnreachableWriteErrno as R, envelopeAttribution as S, flattenForest as St, extractMenu as T, matchKeyword as U, lastStdinAt as V, menuSelectKeys as W, readNotes as X, readLogForRender as Y, readPtysize as Z, cwdLabel as _, withIpcLock as _t, READ_WINDOW_MS as a, resolveResumeArgs as at, drainerLauncher as b, TYPING_BADGE as bt, SEND_EXIT_UNREACHABLE as c, saveRenderDisk as ct, buildEnvelope as d, stdinActivityPath as dt, renderLogTailLines as et, cliDefaults as f, stopTipForCli as ft, cursorAbs as g, writeToIpc as gt, controlCodeFromName as h, writeKeysPaced as ht, READ_PAGE_DEFAULT as i, resolveReadWindow as it, isAgentStuck as j, inspectSubmission as k, TYPING_WINDOW_MS as l, sendPayloadCapError as lt, confirmStdinUnreachable as m, waitForLogQuiet as mt, GRACEFUL_EXIT_COMMANDS as n, renderRawLogLines as nt, SEND_BODY_MAX_CHARS as o, restartHintLines as ot, cmdHelp as p, submitAndConfirm as pt, readAgentPtysize as q, MAX_RENDER_BYTES as r, resolveOne as rt, SEND_EXIT_QUEUED as s, runSubcommand as st, COMPOSER_WINDOWS as t, renderRawLog as tt, backoffWhileTyping as u, snapshotStatus as ut, deriveLiveState as v, framePaste as vt, extractBadges as w, enableRenderDiskCache as x, buildAgentForest as xt, deriveLiveStatus as y, shouldFramePaste as yt, isUserTyping as z };
6829
- //# sourceMappingURL=subcommands-BdzAkAxM.js.map
6841
+ //# sourceMappingURL=subcommands-BbqJJZT1.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-DbupM_eA.js");
101
+ const { mintScopedTermToken } = await import("./serve-BSCcPxX8.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-crh6newc.js.map
138
+ //# sourceMappingURL=terminal-Z_Y8hGCW.js.map
@@ -1,4 +1,4 @@
1
- import { l as findTrayLauncher } from "./rustBinary-adqRQq33.js";
1
+ import { l as findTrayLauncher } from "./rustBinary-B_PBE-qv.js";
2
2
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.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-QXBOa7lX.js.map
100
+ //# sourceMappingURL=trayApp-DZJxriXd.js.map
@@ -0,0 +1,5 @@
1
+ import "./versionChecker-Wfi5fazr.js";
2
+ import "./rustBinary-B_PBE-qv.js";
3
+ import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-DZJxriXd.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 { i as getInstalledPackage } from "./versionChecker-wQIsKbnQ.js";
3
+ import { i as getInstalledPackage } from "./versionChecker-Wfi5fazr.js";
4
4
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
5
5
  import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
6
6
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DMznYh45.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-B24qLtLv.js");
2089
+ const { startParentPingLoop } = await import("./parentPingLoop-jDx6C7cy.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-DVx2n1y0.js.map
2352
+ //# sourceMappingURL=ts-EMAWQVF3.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.303.1-beta.795.1";
10
+ var version = "1.303.1-beta.796.1";
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-wQIsKbnQ.js.map
288
+ //# sourceMappingURL=versionChecker-Wfi5fazr.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-DbupM_eA.js");
31
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-BSCcPxX8.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-DbupM_eA.js");
189
+ const { mintScopedTermToken } = await import("./serve-BSCcPxX8.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-Bx1D3jwO.js.map
205
+ //# sourceMappingURL=widget-BUri84Wp.js.map
@@ -8,9 +8,9 @@ import "./configShared-De4bR5hH.js";
8
8
  import "./webrtcLink-va_gAR77.js";
9
9
  import "./remotes-B2i_QcdG.js";
10
10
  import "./roomReplyAlias-9jb1qmh3.js";
11
- import "./subcommands-BdzAkAxM.js";
11
+ import "./subcommands-BbqJJZT1.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
- 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-NlpP_miQ.js";
14
+ 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-DAtzWRX4.js";
15
15
 
16
16
  export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
@@ -1,4 +1,4 @@
1
- import { H as listRecords } from "./subcommands-BdzAkAxM.js";
1
+ import { H as listRecords } from "./subcommands-BbqJJZT1.js";
2
2
  import { a as getProvisionRoot } from "./workspaceConfig-DXWyuf1A.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-NlpP_miQ.js.map
427
+ //# sourceMappingURL=ws-DAtzWRX4.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.303.1-beta.795.1",
3
+ "version": "1.303.1-beta.796.1",
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",
@@ -23,10 +23,10 @@ import {
23
23
  const RULE = "─".repeat(40);
24
24
  const FOOTER = "\x1b[38;2;153;153;153m ⏵⏵ auto mode on (shift+tab to cycle)\x1b[39m";
25
25
 
26
- async function classify(frame: string, cols = 60) {
26
+ async function classify(frame: string, cols = 60, cli?: string) {
27
27
  const term = new Terminal({ cols, rows: 12, allowProposedApi: true });
28
28
  await new Promise<void>((r) => term.write(frame, r));
29
- return classifyComposer(rowsFromXterm(term as never, 40));
29
+ return classifyComposer(rowsFromXterm(term as never, 40), cli);
30
30
  }
31
31
 
32
32
  const box = (inner: string) => `history\r\n${RULE}\r\n❯ ${inner}\x1b[0m\r\n${RULE}\r\n${FOOTER}`;
@@ -170,6 +170,27 @@ describe("classifyComposer", () => {
170
170
  });
171
171
  });
172
172
 
173
+ // agy (Antigravity CLI 1.5.6) draws a claude-shaped box with a plain `>` prompt,
174
+ // as read off a live lane's PTY log.
175
+ const agyBox = (inner: string) =>
176
+ `history\r\n${RULE}\r\n>${inner}\r\n${RULE}\r\n? for shortcuts Gemini 3.8 Flash · low`;
177
+
178
+ describe("agy's ASCII `>` prompt", () => {
179
+ it("reads agy's empty box as empty, not as a one-char draft", async () => {
180
+ expect(await classify(agyBox(""), 60, "agy")).toEqual({ kind: "empty", ghost: false });
181
+ });
182
+
183
+ it("reads typed text in agy's box as a draft", async () => {
184
+ expect(await classify(agyBox(" hi"), 60, "agy")).toEqual({ kind: "draft", chars: 2 });
185
+ });
186
+
187
+ it("keeps `>` a markdown quote, not a prompt, for other CLIs", async () => {
188
+ expect((await classify(agyBox(""), 60)).kind).toBe("unknown");
189
+ expect(composerBoxed(["history", RULE, "> quoted", RULE, "? for shortcuts"])).toBe(false);
190
+ expect(composerBoxed(["history", RULE, ">", RULE, "? for shortcuts"], "agy")).toBe(true);
191
+ });
192
+ });
193
+
173
194
  describe("pending queue", () => {
174
195
  let home: string;
175
196
  const prev = process.env.AGENT_YES_HOME;
@@ -58,6 +58,18 @@ export type ComposerState =
58
58
  | { kind: "hidden"; reason: string };
59
59
 
60
60
  const PROMPT_RE = /^\s*[❯›]($|\s)/u;
61
+ // agy (Antigravity CLI) draws its input row with a plain ASCII `>`. Only for the
62
+ // CLIs listed here: in Claude/Codex transcripts a `> ` row is a markdown quote.
63
+ const ASCII_PROMPT_RE = /^\s*[❯›>]($|\s)/u;
64
+ const ASCII_PROMPT_CLIS = new Set(["agy"]);
65
+ /** A row with its leading prompt glyph (and the space after it) removed. */
66
+ export function stripPromptGlyph(line: string, cli?: string): string {
67
+ return line.replace(cli && ASCII_PROMPT_CLIS.has(cli) ? /^\s*[❯›>]\s*/u : /^\s*[❯›]\s*/u, "");
68
+ }
69
+ /** The input-row matcher for a CLI (see ASCII_PROMPT_CLIS). */
70
+ export function promptRe(cli?: string): RegExp {
71
+ return cli && ASCII_PROMPT_CLIS.has(cli) ? ASCII_PROMPT_RE : PROMPT_RE;
72
+ }
61
73
  // Same chrome inspectSubmission stops at: the separator rule under the box and
62
74
  // the Claude/Codex footer rows.
63
75
  const SEPARATOR_RE = /^\s*[─━]{3,}/u;
@@ -83,11 +95,12 @@ const FOOTER_SEGMENT_RE = /·\s*(?:[←→] .*agents?|↓ |esc to interrupt)|\(s
83
95
  * any box (Codex) it is the last prompt-looking row. Shared by the draft check
84
96
  * and by submission confirmation, so both agree on where history ends.
85
97
  */
86
- export function composerPromptRow(texts: string[]): number {
98
+ export function composerPromptRow(texts: string[], cli?: string): number {
99
+ const re = promptRe(cli);
87
100
  for (let i = texts.length - 2; i >= 0; i--) {
88
- if (SEPARATOR_RE.test(texts[i]!) && PROMPT_RE.test(texts[i + 1]!)) return i + 1;
101
+ if (SEPARATOR_RE.test(texts[i]!) && re.test(texts[i + 1]!)) return i + 1;
89
102
  }
90
- return texts.findLastIndex((t) => PROMPT_RE.test(t));
103
+ return texts.findLastIndex((t) => re.test(t));
91
104
  }
92
105
 
93
106
  /**
@@ -101,8 +114,8 @@ export function composerPromptRow(texts: string[]): number {
101
114
  * A real draft longer than MAX_DRAFT_ROWS fails too and reads "hidden", which
102
115
  * parks the send just as a draft does.
103
116
  */
104
- export function composerBoxed(texts: string[]): boolean {
105
- const prompt = composerPromptRow(texts);
117
+ export function composerBoxed(texts: string[], cli?: string): boolean {
118
+ const prompt = composerPromptRow(texts, cli);
106
119
  if (prompt < 1 || !SEPARATOR_RE.test(texts[prompt - 1]!)) return false;
107
120
  const nonBlank = (rows: string[]) => rows.filter((t) => t.trim());
108
121
  const close = texts.findIndex((t, i) => i > prompt && isComposerChrome(t));
@@ -112,7 +125,7 @@ export function composerBoxed(texts: string[]): boolean {
112
125
  return (
113
126
  inside.length <= MAX_DRAFT_ROWS &&
114
127
  below.length <= MAX_ROWS_BELOW_BOX &&
115
- ![...inside, ...below].some((t) => PROMPT_RE.test(t))
128
+ ![...inside, ...below].some((t) => promptRe(cli).test(t))
116
129
  );
117
130
  }
118
131
 
@@ -150,8 +163,11 @@ export function isComposerChrome(text: string, cells?: ComposerCell[]): boolean
150
163
  * draft is not. A draft whose own line starts with a prompt glyph can still be
151
164
  * misread there.
152
165
  */
153
- export function classifyComposer(rows: ComposerRow[]): ComposerState {
154
- const prompt = composerPromptRow(rows.map((r) => r.text));
166
+ export function classifyComposer(rows: ComposerRow[], cli?: string): ComposerState {
167
+ const prompt = composerPromptRow(
168
+ rows.map((r) => r.text),
169
+ cli,
170
+ );
155
171
  if (prompt < 0) return { kind: "unknown", reason: "no prompt row on screen" };
156
172
  let real = 0;
157
173
  let ghost = false;
@@ -164,7 +180,8 @@ export function classifyComposer(rows: ComposerRow[]): ComposerState {
164
180
  let cells = row.cells;
165
181
  if (i === prompt) {
166
182
  // Skip the indentation and the prompt glyph itself.
167
- const glyph = cells.findIndex((c) => c.ch === "❯" || c.ch === "›");
183
+ let glyph = cells.findIndex((c) => c.ch.trim() !== "");
184
+ if (glyph >= 0 && !promptRe(cli).test(cells[glyph]!.ch)) glyph = -1;
168
185
  cells = glyph >= 0 ? cells.slice(glyph + 1) : cells;
169
186
  }
170
187
  for (const c of cells) {
@@ -1697,6 +1697,17 @@ describe("subcommands.submitAndConfirm (ay send swallowed-Enter fix)", () => {
1697
1697
  }
1698
1698
  });
1699
1699
 
1700
+ it("confirms a send to agy, whose prompt row is a plain `>`", async () => {
1701
+ // Regression: agy received every message, but with no `❯` row on screen
1702
+ // `ay send` reported NOT SUBMITTED (rc 1) each time.
1703
+ const { submissionState } = await loadModule();
1704
+ const marker = "<ay-msg abc12345";
1705
+ const rule = "─".repeat(40);
1706
+ const sent = [rule, `> ${marker} from claude`, " …", "", " Done.", rule, ">", rule];
1707
+ expect(submissionState([...sent, "? for shortcuts"], marker, "agy")).toBe("submitted");
1708
+ expect(submissionState([rule, `> ${marker}`, rule], marker, "agy")).toBe("not-submitted");
1709
+ });
1710
+
1700
1711
  it("requires our identity to move out of the composer into the transcript", async () => {
1701
1712
  const { submissionState, inspectSubmission } = await loadModule();
1702
1713
  const marker = "<ay-msg abc12345";
package/ts/subcommands.ts CHANGED
@@ -132,6 +132,7 @@ import {
132
132
  classifyComposer,
133
133
  composerBoxed,
134
134
  composerPromptRow,
135
+ stripPromptGlyph,
135
136
  DUPLICATE_WINDOW_MS,
136
137
  findRecentDuplicate,
137
138
  noteRecentSend,
@@ -4763,7 +4764,7 @@ export async function readComposerState(
4763
4764
  try {
4764
4765
  const rows = await renderComposerRows({ ...record, log_file: logPath }, windows);
4765
4766
  if (!rows) return { kind: "unknown", reason: "log unreadable or empty" };
4766
- const state = classifyComposer(rows);
4767
+ const state = classifyComposer(rows, record.cli);
4767
4768
  // No window showed the box, so a "draft" was read under some other prompt
4768
4769
  // row, possibly an old turn: say so instead of reporting it as a draft.
4769
4770
  if (claude && state.kind === "draft" && !composerBoxed(rows.map((r) => r.text)))
@@ -5180,6 +5181,7 @@ type SubmissionState = "submitted" | "queued" | "not-submitted";
5180
5181
  export function inspectSubmission(
5181
5182
  screen: string[],
5182
5183
  identity: string,
5184
+ cli?: string,
5183
5185
  ): {
5184
5186
  submission: SubmissionState;
5185
5187
  retry: boolean;
@@ -5211,7 +5213,7 @@ export function inspectSubmission(
5211
5213
  // The same boundary the draft check uses: a quoted `› line` inside our own
5212
5214
  // unsent message must not be taken for the prompt (that would count the
5213
5215
  // message's nonce as transcript evidence — codex review).
5214
- const prompt = composerPromptRow(screen);
5216
+ const prompt = composerPromptRow(screen, cli);
5215
5217
  if (prompt < 0) {
5216
5218
  // No composer on screen: a plain shell (cmd, bash, an ssh session) has no
5217
5219
  // `❯` row to inspect. It echoes the submitted line after its prompt and
@@ -5244,7 +5246,7 @@ export function inspectSubmission(
5244
5246
  // suggestion containing that character. Match whole rendered message lines.
5245
5247
  let transcriptMatches = wrapped ? occurrences(transcript) : 0;
5246
5248
  if (!wrapped) {
5247
- const lines = transcriptLines.map((line) => compact(line.replace(/^\s*[❯›]\s*/u, "")));
5249
+ const lines = transcriptLines.map((line) => compact(stripPromptGlyph(line, cli)));
5248
5250
  for (let start = 0; start < lines.length; start++) {
5249
5251
  let candidate = "";
5250
5252
  for (let end = start; end < lines.length && candidate.length < needle.length; end++) {
@@ -5256,7 +5258,7 @@ export function inspectSubmission(
5256
5258
  }
5257
5259
  }
5258
5260
  }
5259
- const input: string[] = [screen[prompt]!.replace(/^\s*[❯›]\s*/u, "")];
5261
+ const input: string[] = [stripPromptGlyph(screen[prompt]!, cli)];
5260
5262
  for (const line of screen.slice(prompt + 1)) {
5261
5263
  // A rule or the Claude/Codex footer chrome (incl. the model/cwd status row).
5262
5264
  if (isComposerChrome(line)) break;
@@ -5289,8 +5291,8 @@ export function inspectSubmission(
5289
5291
  return { ...unknown, composerVisible: true };
5290
5292
  }
5291
5293
 
5292
- export function submissionState(screen: string[], identity = ""): SubmissionState {
5293
- return inspectSubmission(screen, identity).submission;
5294
+ export function submissionState(screen: string[], identity = "", cli?: string): SubmissionState {
5295
+ return inspectSubmission(screen, identity, cli).submission;
5294
5296
  }
5295
5297
 
5296
5298
  /** A collapsed paste is not delivery evidence; it can only authorize a retry. */
@@ -5346,7 +5348,7 @@ export async function submitAndConfirm(
5346
5348
  const geometry = (await readAgentPtysize(record)) ?? undefined;
5347
5349
  const cfg = (await cliDefaults())[record.cli];
5348
5350
  let screen = await renderSendScreen(target, geometry);
5349
- const before = inspectSubmission(screen, identity);
5351
+ const before = inspectSubmission(screen, identity, record.cli);
5350
5352
  const baseline = before.transcriptMatches;
5351
5353
  // Delivered = a NEW copy in the transcript, or — what a count in a rolling
5352
5354
  // 40-line window cannot show for a repeated raw message like "continue" —
@@ -5373,7 +5375,7 @@ export async function submitAndConfirm(
5373
5375
  await new Promise((r) => setTimeout(r, Math.min(400, 150 * 1.618 ** (attempt - 1))));
5374
5376
  // Recheck after the delay: the target could have accepted the earlier Enter.
5375
5377
  screen = await renderSendScreen(target, geometry);
5376
- const settled = inspectSubmission(screen, identity);
5378
+ const settled = inspectSubmission(screen, identity, record.cli);
5377
5379
  if (delivered(settled)) return outcome(settled, screen);
5378
5380
  if (
5379
5381
  !canRetry(settled, screen) ||
@@ -5385,7 +5387,7 @@ export async function submitAndConfirm(
5385
5387
  await writeToIpc(fifoPath, trailing);
5386
5388
  await waitForLogQuiet(logFile, SEND_CONFIRM_QUIET_MS, SEND_CONFIRM_MAX_MS);
5387
5389
  screen = await renderSendScreen(target, geometry);
5388
- const evidence = inspectSubmission(screen, identity);
5390
+ const evidence = inspectSubmission(screen, identity, record.cli);
5389
5391
  if (delivered(evidence)) return outcome(evidence, screen);
5390
5392
  if (!canRetry(evidence, screen)) break;
5391
5393
  }
@@ -1,5 +0,0 @@
1
- import "./versionChecker-wQIsKbnQ.js";
2
- import "./rustBinary-adqRQq33.js";
3
- import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-QXBOa7lX.js";
4
-
5
- export { cmdTray };