agent-yes 1.303.1-beta.796.1 → 1.303.1-beta.797.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.
- package/dist/{SUPPORTED_CLIS-CIviDeqJ.js → SUPPORTED_CLIS-4TmSNFZL.js} +2 -2
- package/dist/{SUPPORTED_CLIS-CXQnG41E.js → SUPPORTED_CLIS-C8tWADVL.js} +3 -3
- package/dist/{agentShare-Bgmp_lGz.js → agentShare-DToo6Dif.js} +2 -2
- package/dist/{callback-COPj84yO.js → callback-CPTHC_xM.js} +3 -3
- package/dist/{callback-r0aWZF5m.js → callback-DqCLdb3u.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-B-33TYQz.js → cmdPs-D4i_hmmb.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-DcMjfQzN.js → notifyDaemon-BGis08ui.js} +2 -2
- package/dist/{parentPingLoop-jDx6C7cy.js → parentPingLoop-CQcq5SUl.js} +2 -2
- package/dist/{rustBinary-B_PBE-qv.js → rustBinary-C2amtY0i.js} +2 -2
- package/dist/{rustBinary-Dr29wGvK.js → rustBinary-DA-Q8r8W.js} +2 -2
- package/dist/{schedule-Bh5dzjn9.js → schedule-CjImNyrT.js} +4 -4
- package/dist/{serve-BSCcPxX8.js → serve-lvURmJF2.js} +21 -21
- package/dist/{setup-D-2G5l3p.js → setup-CaeuVVqC.js} +2 -2
- package/dist/{shareCmd-DZyXxoCO.js → shareCmd-B9spG-zR.js} +5 -5
- package/dist/subcommands-Bd_ofA-U.js +15 -0
- package/dist/{subcommands-BbqJJZT1.js → subcommands-aBkkGEKY.js} +62 -17
- package/dist/{terminal-Z_Y8hGCW.js → terminal-CHo4Oaxl.js} +2 -2
- package/dist/{trayApp-DZJxriXd.js → trayApp-DEG707-9.js} +2 -2
- package/dist/trayApp-SK21P0Jl.js +5 -0
- package/dist/{ts-EMAWQVF3.js → ts-DvmPEsjD.js} +3 -3
- package/dist/{versionChecker-Wfi5fazr.js → versionChecker-BovvukPt.js} +2 -2
- package/dist/{widget-BUri84Wp.js → widget-XphG5afN.js} +3 -3
- package/dist/{ws-DAtzWRX4.js → ws-CV-Rjmjv.js} +2 -2
- package/dist/{ws-BhiUNf9w.js → ws-fVBrMnyx.js} +2 -2
- package/package.json +1 -1
- package/ts/subcommands.spec.ts +47 -0
- package/ts/subcommands.ts +55 -0
- package/dist/subcommands-B_h4-tvC.js +0 -15
- package/dist/trayApp-D__QcBRd.js +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DvmPEsjD.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-
|
|
8
|
+
//# sourceMappingURL=SUPPORTED_CLIS-4TmSNFZL.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-BovvukPt.js";
|
|
3
|
+
import "./ts-DvmPEsjD.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-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-4TmSNFZL.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 {
|
|
11
|
+
import { it as resolveOne } from "./subcommands-aBkkGEKY.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-
|
|
237
|
+
//# sourceMappingURL=agentShare-DToo6Dif.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import {
|
|
2
|
+
import { it as resolveOne } from "./subcommands-aBkkGEKY.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-
|
|
75
|
+
const { resolveLocalServeUrl } = await import("./serve-lvURmJF2.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-
|
|
190
|
+
//# sourceMappingURL=callback-CPTHC_xM.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-
|
|
11
|
+
import "./subcommands-aBkkGEKY.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-
|
|
15
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CPTHC_xM.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-
|
|
5
|
-
import { m as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BovvukPt.js";
|
|
5
|
+
import { m as getRustBinary } from "./rustBinary-C2amtY0i.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-
|
|
381
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-Bd_ofA-U.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-
|
|
395
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C8tWADVL.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-
|
|
467
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C8tWADVL.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 {
|
|
11
|
+
import { Ct as buildAgentForest, U as listRecords, wt as flattenForest, y as deriveLiveState } from "./subcommands-aBkkGEKY.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-
|
|
335
|
+
//# sourceMappingURL=cmdPs-D4i_hmmb.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
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-
|
|
2
|
+
import "./versionChecker-BovvukPt.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-DvmPEsjD.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 {
|
|
11
|
+
import { F as isPidAlive, U as listRecords, tt as renderLogTailLines, y as deriveLiveState } from "./subcommands-aBkkGEKY.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-
|
|
884
|
+
//# sourceMappingURL=notifyDaemon-BGis08ui.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-
|
|
341
|
+
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-Bd_ofA-U.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-
|
|
469
|
+
//# sourceMappingURL=parentPingLoop-CQcq5SUl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-
|
|
1
|
+
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-BovvukPt.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-
|
|
438
|
+
//# sourceMappingURL=rustBinary-C2amtY0i.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
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-
|
|
1
|
+
import "./versionChecker-BovvukPt.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-C2amtY0i.js";
|
|
3
3
|
|
|
4
4
|
export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-BovvukPt.js";
|
|
3
|
+
import "./ts-DvmPEsjD.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-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-4TmSNFZL.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-
|
|
157
|
+
//# sourceMappingURL=schedule-CjImNyrT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { c as findSpawnHiddenLauncher } from "./rustBinary-
|
|
4
|
-
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-
|
|
2
|
+
import { i as getInstalledPackage } from "./versionChecker-BovvukPt.js";
|
|
3
|
+
import { c as findSpawnHiddenLauncher } from "./rustBinary-C2amtY0i.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-DvmPEsjD.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-
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-4TmSNFZL.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
|
|
18
|
+
import { $ as recentMessageEdges, B as isUserTyping, D as extractNeedsInput, I as isSlashCommand, O as extractTaskCounts, Q as readPtysize, St as TYPING_BADGE, T as extractBadges, U as listRecords, X as readLogForRender, Z as readNotes, b as deriveLiveStatus, bt as framePaste, dt as snapshotStatus, et as recentReadEdges, g as controlCodeFromName, it as resolveOne, nt as renderRawLog, p as cliDefaults, rt as renderRawLogLines, tt as renderLogTailLines, vt as writeToIpc, xt as shouldFramePaste, yt as withIpcLock } from "./subcommands-aBkkGEKY.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-
|
|
22
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-CPTHC_xM.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-
|
|
26
|
+
import { i as importProvisionModule } from "./ws-CV-Rjmjv.js";
|
|
27
27
|
import { r as spawnRejectionReason } from "./spawnGate-CEk6MowO.js";
|
|
28
|
-
import { i as launchTray } from "./trayApp-
|
|
28
|
+
import { i as launchTray } from "./trayApp-DEG707-9.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-
|
|
1348
|
+
const { findAyrsBinary } = await import("./rustBinary-DA-Q8r8W.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-
|
|
1646
|
+
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-B9spG-zR.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-
|
|
1780
|
+
const { ensureAyrsBinary } = await import("./rustBinary-DA-Q8r8W.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-
|
|
1787
|
+
const { ensureAyrsBinary } = await import("./rustBinary-DA-Q8r8W.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-
|
|
2769
|
+
const ws = await import("./ws-fVBrMnyx.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-
|
|
2789
|
+
const ws = await import("./ws-fVBrMnyx.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-
|
|
2811
|
+
const ws = await import("./ws-fVBrMnyx.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-
|
|
2892
|
+
const ws = await import("./ws-fVBrMnyx.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-
|
|
3803
|
+
const { createScopedShare } = await import("./agentShare-DToo6Dif.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-
|
|
3818
|
+
const { listShares } = await import("./agentShare-DToo6Dif.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-
|
|
3823
|
+
const { revokeShare } = await import("./agentShare-DToo6Dif.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-
|
|
4135
|
+
import("./agentShare-DToo6Dif.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-
|
|
4148
|
+
//# sourceMappingURL=serve-lvURmJF2.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-
|
|
100
|
+
const { cmdServe } = await import("./serve-lvURmJF2.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-
|
|
110
|
+
//# sourceMappingURL=setup-CaeuVVqC.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-
|
|
247
|
+
const { findAyrsBinary } = await import("./rustBinary-DA-Q8r8W.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-
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-Bd_ofA-U.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-
|
|
279
|
+
const { inspectServeDaemon } = await import("./serve-lvURmJF2.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-
|
|
326
|
+
const { inspectServeDaemon, cmdServe } = await import("./serve-lvURmJF2.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-
|
|
451
|
+
//# sourceMappingURL=shareCmd-B9spG-zR.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./logger-CDIsZ-Pp.js";
|
|
2
|
+
import "./JsonlStore-BpYZZTap.js";
|
|
3
|
+
import "./globalPidIndex-CRB5KtyL.js";
|
|
4
|
+
import "./pidStore-433kvh9D.js";
|
|
5
|
+
import "./messageLog-Dq_ka-Bt.js";
|
|
6
|
+
import "./e2e-BdLf8DvY.js";
|
|
7
|
+
import "./configShared-De4bR5hH.js";
|
|
8
|
+
import "./webrtcLink-va_gAR77.js";
|
|
9
|
+
import "./remotes-B2i_QcdG.js";
|
|
10
|
+
import "./roomReplyAlias-9jb1qmh3.js";
|
|
11
|
+
import { $ as recentMessageEdges, A as inspectSubmission, B as isUserTyping, C as envelopeAttribution, D as extractNeedsInput, E as extractMenu, F as isPidAlive, G as menuSelectKeys, H as lastStdinAt, I as isSlashCommand, J as readAgentPtysize, K as ownedCollapsedPaste, L as isSubcommand, M as isAgentStuck, N as isBareManagerInvocation, O as extractTaskCounts, P as isExitRequest, Q as readPtysize, R as isUnknownManagerToken, S as enableRenderDiskCache, T as extractBadges, U as listRecords, V as lastReadAt, W as matchKeyword, X as readLogForRender, Y as readComposerState, Z as readNotes, _ as cursorAbs, _t as writeKeysPaced, a as READ_PAGE_DEFAULT, at as resolveReadWindow, b as deriveLiveStatus, c as SEND_EXIT_QUEUED, ct as runSubcommand, d as backoffWhileTyping, dt as snapshotStatus, et as recentReadEdges, f as buildEnvelope, ft as stdinActivityPath, g as controlCodeFromName, gt as waitForLogQuiet, h as confirmStdinUnreachable, ht as submitStableDraft, i as MAX_RENDER_BYTES, it as resolveOne, j as isAgentIdShaped, k as finalizedLines, l as SEND_EXIT_UNREACHABLE, lt as saveRenderDisk, m as cmdHelp, mt as submitAndConfirm, n as DRAFT_STABLE_WAITS_MS, nt as renderRawLog, o as READ_WINDOW_MS, ot as resolveResumeArgs, p as cliDefaults, pt as stopTipForCli, q as probeStdinReachable, r as GRACEFUL_EXIT_COMMANDS, rt as renderRawLogLines, s as SEND_BODY_MAX_CHARS, st as restartHintLines, t as COMPOSER_WINDOWS, tt as renderLogTailLines, u as TYPING_WINDOW_MS, ut as sendPayloadCapError, v as cwdLabel, vt as writeToIpc, w as envelopeCostFor, x as drainerLauncher, y as deriveLiveState, z as isUnreachableWriteErrno } from "./subcommands-aBkkGEKY.js";
|
|
12
|
+
import "./notifyStore-DIfkfKB2.js";
|
|
13
|
+
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
|
+
|
|
15
|
+
export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isPidAlive, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
|
|
@@ -2011,7 +2011,7 @@ async function runSubcommand(argv) {
|
|
|
2011
2011
|
switch (sub) {
|
|
2012
2012
|
case "ls":
|
|
2013
2013
|
case "list": return await cmdLs(rest);
|
|
2014
|
-
case "ps": return await (await import("./cmdPs-
|
|
2014
|
+
case "ps": return await (await import("./cmdPs-D4i_hmmb.js")).cmdPs(rest);
|
|
2015
2015
|
case "status": return await cmdStatus(rest);
|
|
2016
2016
|
case "whoami": return await cmdWhoami(rest);
|
|
2017
2017
|
case "result": return await cmdResult(rest);
|
|
@@ -2061,35 +2061,35 @@ async function runSubcommand(argv) {
|
|
|
2061
2061
|
return cmdCh(rest);
|
|
2062
2062
|
}
|
|
2063
2063
|
case "term": {
|
|
2064
|
-
const { cmdTerm } = await import("./terminal-
|
|
2064
|
+
const { cmdTerm } = await import("./terminal-CHo4Oaxl.js");
|
|
2065
2065
|
return cmdTerm(rest);
|
|
2066
2066
|
}
|
|
2067
2067
|
case "widget": {
|
|
2068
|
-
const { cmdWidget } = await import("./widget-
|
|
2068
|
+
const { cmdWidget } = await import("./widget-XphG5afN.js");
|
|
2069
2069
|
return cmdWidget(rest);
|
|
2070
2070
|
}
|
|
2071
2071
|
case "mint": {
|
|
2072
|
-
const { cmdMint } = await import("./widget-
|
|
2072
|
+
const { cmdMint } = await import("./widget-XphG5afN.js");
|
|
2073
2073
|
return cmdMint(rest);
|
|
2074
2074
|
}
|
|
2075
2075
|
case "serve": {
|
|
2076
|
-
const { cmdServe } = await import("./serve-
|
|
2076
|
+
const { cmdServe } = await import("./serve-lvURmJF2.js");
|
|
2077
2077
|
return cmdServe(rest);
|
|
2078
2078
|
}
|
|
2079
2079
|
case "tray": {
|
|
2080
|
-
const { cmdTray } = await import("./trayApp-
|
|
2080
|
+
const { cmdTray } = await import("./trayApp-SK21P0Jl.js");
|
|
2081
2081
|
return cmdTray(rest);
|
|
2082
2082
|
}
|
|
2083
2083
|
case "setup": {
|
|
2084
|
-
const { cmdSetup } = await import("./setup-
|
|
2084
|
+
const { cmdSetup } = await import("./setup-CaeuVVqC.js");
|
|
2085
2085
|
return cmdSetup(rest);
|
|
2086
2086
|
}
|
|
2087
2087
|
case "ws": {
|
|
2088
|
-
const { cmdWs } = await import("./ws-
|
|
2088
|
+
const { cmdWs } = await import("./ws-fVBrMnyx.js");
|
|
2089
2089
|
return cmdWs(rest);
|
|
2090
2090
|
}
|
|
2091
2091
|
case "schedule": {
|
|
2092
|
-
const { cmdSchedule } = await import("./schedule-
|
|
2092
|
+
const { cmdSchedule } = await import("./schedule-CjImNyrT.js");
|
|
2093
2093
|
return cmdSchedule(rest);
|
|
2094
2094
|
}
|
|
2095
2095
|
case "remote": {
|
|
@@ -2097,7 +2097,7 @@ async function runSubcommand(argv) {
|
|
|
2097
2097
|
return cmdRemote(rest);
|
|
2098
2098
|
}
|
|
2099
2099
|
case "share": {
|
|
2100
|
-
const { cmdShare } = await import("./shareCmd-
|
|
2100
|
+
const { cmdShare } = await import("./shareCmd-B9spG-zR.js");
|
|
2101
2101
|
return cmdShare(rest);
|
|
2102
2102
|
}
|
|
2103
2103
|
case "connect": {
|
|
@@ -2109,7 +2109,7 @@ async function runSubcommand(argv) {
|
|
|
2109
2109
|
return cmdExpose(rest);
|
|
2110
2110
|
}
|
|
2111
2111
|
case "callback": {
|
|
2112
|
-
const { cmdCallback } = await import("./callback-
|
|
2112
|
+
const { cmdCallback } = await import("./callback-DqCLdb3u.js");
|
|
2113
2113
|
return cmdCallback(rest);
|
|
2114
2114
|
}
|
|
2115
2115
|
case "reap":
|
|
@@ -2120,7 +2120,7 @@ async function runSubcommand(argv) {
|
|
|
2120
2120
|
return await cmdDsh(rest);
|
|
2121
2121
|
}
|
|
2122
2122
|
case "gc": {
|
|
2123
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
2123
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-DA-Q8r8W.js");
|
|
2124
2124
|
const { gcLogs } = await import("./globalPidIndex-Q6NdU1NM.js");
|
|
2125
2125
|
const bins = gcOldBinaryDirs();
|
|
2126
2126
|
const logs = await gcLogs();
|
|
@@ -4610,6 +4610,49 @@ async function readComposerState(record, windows = COMPOSER_WINDOWS) {
|
|
|
4610
4610
|
};
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
4613
|
+
/** Waits between re-reads of a draft before it counts as abandoned (~15 s in all). */
|
|
4614
|
+
const DRAFT_STABLE_WAITS_MS = [
|
|
4615
|
+
1e3,
|
|
4616
|
+
2e3,
|
|
4617
|
+
4e3,
|
|
4618
|
+
8e3
|
|
4619
|
+
];
|
|
4620
|
+
/** The bottom of the screen as plain text, to tell "unchanged" from "changed". */
|
|
4621
|
+
async function composerFingerprint(record) {
|
|
4622
|
+
if (!record.log_file) return null;
|
|
4623
|
+
try {
|
|
4624
|
+
const rows = await renderComposerRows({
|
|
4625
|
+
...record,
|
|
4626
|
+
log_file: record.log_file
|
|
4627
|
+
});
|
|
4628
|
+
return rows ? rows.slice(-8).map((r) => r.text).join("\n") : null;
|
|
4629
|
+
} catch {
|
|
4630
|
+
return null;
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
/**
|
|
4634
|
+
* The target's input box holds text and has not changed for DRAFT_STABLE_WAITS_MS
|
|
4635
|
+
* (1, 2, 4, 8 s): nobody is typing, so submit it with Enter and report true once
|
|
4636
|
+
* the box reads empty again. Only a draft: a menu or yes/no prompt is a question
|
|
4637
|
+
* agent-yes deliberately does not answer. Any change, or a box that never clears,
|
|
4638
|
+
* returns false and the caller parks the message as before.
|
|
4639
|
+
*/
|
|
4640
|
+
async function submitStableDraft(record, waits = DRAFT_STABLE_WAITS_MS, sleep = (ms) => new Promise((r) => setTimeout(r, ms))) {
|
|
4641
|
+
if ((await readComposerState(record)).kind !== "draft") return false;
|
|
4642
|
+
const base = await composerFingerprint(record);
|
|
4643
|
+
if (base === null) return false;
|
|
4644
|
+
for (const ms of waits) {
|
|
4645
|
+
await sleep(ms);
|
|
4646
|
+
if (await composerFingerprint(record) !== base) return false;
|
|
4647
|
+
}
|
|
4648
|
+
if (!record.fifo_file) return false;
|
|
4649
|
+
await withIpcLock(record.pid, () => writeToIpc(record.fifo_file, "\r"));
|
|
4650
|
+
for (let i = 0; i < 5; i++) {
|
|
4651
|
+
await sleep(500);
|
|
4652
|
+
if ((await readComposerState(record)).kind === "empty") return true;
|
|
4653
|
+
}
|
|
4654
|
+
return false;
|
|
4655
|
+
}
|
|
4613
4656
|
/** Bytes `[from, to)` of a log file. */
|
|
4614
4657
|
async function readLogRange(logPath, from, to) {
|
|
4615
4658
|
const fh = await open(logPath, "r");
|
|
@@ -5168,6 +5211,7 @@ async function cmdSendDrain(rest) {
|
|
|
5168
5211
|
}
|
|
5169
5212
|
const record = (await readGlobalPids()).find((r) => r.pid === pid);
|
|
5170
5213
|
let result = null;
|
|
5214
|
+
if (record && !await isUserTyping(pid)) await submitStableDraft(record);
|
|
5171
5215
|
if (record && !await isUserTyping(pid)) await withIpcLock(pid, async () => {
|
|
5172
5216
|
if (await isUserTyping(pid)) return;
|
|
5173
5217
|
if ((await readComposerState(record)).kind !== "empty") return;
|
|
@@ -5341,6 +5385,7 @@ async function cmdSend(rest) {
|
|
|
5341
5385
|
code: trailing === "\r" ? void 0 : codeName,
|
|
5342
5386
|
wrapped: Boolean(nonce)
|
|
5343
5387
|
};
|
|
5388
|
+
if (fullBody && !noWait && !parkReason && (await listPending(record.pid)).length === 0) await submitStableDraft(record);
|
|
5344
5389
|
try {
|
|
5345
5390
|
await withIpcLock(record.pid, async () => {
|
|
5346
5391
|
const dedupeKey = force || !body ? null : senderKey(mailBase.from);
|
|
@@ -5988,7 +6033,7 @@ async function cmdAttach(rest) {
|
|
|
5988
6033
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
5989
6034
|
await mkdir(winsizeDir, { recursive: true });
|
|
5990
6035
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
5991
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
6036
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-lvURmJF2.js");
|
|
5992
6037
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
5993
6038
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
5994
6039
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -6737,7 +6782,7 @@ async function cmdNotify(rest) {
|
|
|
6737
6782
|
}
|
|
6738
6783
|
const ensure = async () => {
|
|
6739
6784
|
if (!argv["ensure-daemon"]) return;
|
|
6740
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
6785
|
+
const { ensureDaemon } = await import("./notifyDaemon-BGis08ui.js");
|
|
6741
6786
|
await ensureDaemon().catch(() => null);
|
|
6742
6787
|
};
|
|
6743
6788
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -6811,7 +6856,7 @@ async function cmdNotifyCursor(args) {
|
|
|
6811
6856
|
}
|
|
6812
6857
|
async function cmdNotifyd(rest) {
|
|
6813
6858
|
const sub = rest[0] ?? "status";
|
|
6814
|
-
const daemon = await import("./notifyDaemon-
|
|
6859
|
+
const daemon = await import("./notifyDaemon-BGis08ui.js");
|
|
6815
6860
|
switch (sub) {
|
|
6816
6861
|
case "run": return daemon.runDaemon();
|
|
6817
6862
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -6837,5 +6882,5 @@ async function cmdNotifyd(rest) {
|
|
|
6837
6882
|
}
|
|
6838
6883
|
|
|
6839
6884
|
//#endregion
|
|
6840
|
-
export {
|
|
6841
|
-
//# sourceMappingURL=subcommands-
|
|
6885
|
+
export { recentMessageEdges as $, inspectSubmission as A, isUserTyping as B, envelopeAttribution as C, buildAgentForest as Ct, extractNeedsInput as D, extractMenu as E, isPidAlive as F, menuSelectKeys as G, lastStdinAt as H, isSlashCommand as I, readAgentPtysize as J, ownedCollapsedPaste as K, isSubcommand as L, isAgentStuck as M, isBareManagerInvocation as N, extractTaskCounts as O, isExitRequest as P, readPtysize as Q, isUnknownManagerToken as R, enableRenderDiskCache as S, TYPING_BADGE as St, extractBadges as T, listRecords as U, lastReadAt as V, matchKeyword as W, readLogForRender as X, readComposerState as Y, readNotes as Z, cursorAbs as _, writeKeysPaced as _t, READ_PAGE_DEFAULT as a, resolveReadWindow as at, deriveLiveStatus as b, framePaste as bt, SEND_EXIT_QUEUED as c, runSubcommand as ct, backoffWhileTyping as d, snapshotStatus as dt, recentReadEdges as et, buildEnvelope as f, stdinActivityPath as ft, controlCodeFromName as g, waitForLogQuiet as gt, confirmStdinUnreachable as h, submitStableDraft as ht, MAX_RENDER_BYTES as i, resolveOne as it, isAgentIdShaped as j, finalizedLines as k, SEND_EXIT_UNREACHABLE as l, saveRenderDisk as lt, cmdHelp as m, submitAndConfirm as mt, DRAFT_STABLE_WAITS_MS as n, renderRawLog as nt, READ_WINDOW_MS as o, resolveResumeArgs as ot, cliDefaults as p, stopTipForCli as pt, probeStdinReachable as q, GRACEFUL_EXIT_COMMANDS as r, renderRawLogLines as rt, SEND_BODY_MAX_CHARS as s, restartHintLines as st, COMPOSER_WINDOWS as t, renderLogTailLines as tt, TYPING_WINDOW_MS as u, sendPayloadCapError as ut, cwdLabel as v, writeToIpc as vt, envelopeCostFor as w, flattenForest as wt, drainerLauncher as x, shouldFramePaste as xt, deriveLiveState as y, withIpcLock as yt, isUnreachableWriteErrno as z };
|
|
6886
|
+
//# sourceMappingURL=subcommands-aBkkGEKY.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-
|
|
101
|
+
const { mintScopedTermToken } = await import("./serve-lvURmJF2.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-
|
|
138
|
+
//# sourceMappingURL=terminal-CHo4Oaxl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { l as findTrayLauncher } from "./rustBinary-C2amtY0i.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-
|
|
100
|
+
//# sourceMappingURL=trayApp-DEG707-9.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./chunk-cZBX9HZv.js";
|
|
2
2
|
import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
+
import { i as getInstalledPackage } from "./versionChecker-BovvukPt.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-
|
|
2089
|
+
const { startParentPingLoop } = await import("./parentPingLoop-CQcq5SUl.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-
|
|
2352
|
+
//# sourceMappingURL=ts-DvmPEsjD.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.
|
|
10
|
+
var version = "1.303.1-beta.797.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-
|
|
288
|
+
//# sourceMappingURL=versionChecker-BovvukPt.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-
|
|
31
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-lvURmJF2.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-
|
|
189
|
+
const { mintScopedTermToken } = await import("./serve-lvURmJF2.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-
|
|
205
|
+
//# sourceMappingURL=widget-XphG5afN.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as listRecords } from "./subcommands-aBkkGEKY.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-
|
|
427
|
+
//# sourceMappingURL=ws-CV-Rjmjv.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-
|
|
11
|
+
import "./subcommands-aBkkGEKY.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-
|
|
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-CV-Rjmjv.js";
|
|
15
15
|
|
|
16
16
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
package/package.json
CHANGED
package/ts/subcommands.spec.ts
CHANGED
|
@@ -4880,6 +4880,53 @@ describe("readComposerState on a lane idle for hours", { timeout: 60_000 }, () =
|
|
|
4880
4880
|
return readComposerState({ pid: 1111, cli, log_file: file } as never, windows);
|
|
4881
4881
|
}
|
|
4882
4882
|
|
|
4883
|
+
describe("submitStableDraft", () => {
|
|
4884
|
+
async function setup(draft: string) {
|
|
4885
|
+
const { submitStableDraft } = await loadModule();
|
|
4886
|
+
const n = 2000 + logs++;
|
|
4887
|
+
const log_file = path.join(testHome, `${n}.raw.log`);
|
|
4888
|
+
const fifo_file = path.join(testHome, `${n}.fifo`);
|
|
4889
|
+
await writeFile(log_file, idleLog(draft));
|
|
4890
|
+
await writeFile(fifo_file, "");
|
|
4891
|
+
const record = { pid: n, cli: "claude", log_file, fifo_file } as never;
|
|
4892
|
+
return { submitStableDraft, record, log_file, fifo_file };
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
// writeToIpc connects to a named pipe on Windows; this fake FIFO is a plain file.
|
|
4896
|
+
it.skipIf(process.platform === "win32")(
|
|
4897
|
+
"submits a draft that is unchanged at every check, then sees the box clear",
|
|
4898
|
+
async () => {
|
|
4899
|
+
const { submitStableDraft, record, log_file, fifo_file } = await setup("btw how");
|
|
4900
|
+
const waits: number[] = [];
|
|
4901
|
+
const sent = await submitStableDraft(record, [1, 2, 4, 8], async (ms) => {
|
|
4902
|
+
waits.push(ms);
|
|
4903
|
+
// Once Enter has been written, the CLI redraws an empty box.
|
|
4904
|
+
if ((await readFile(fifo_file, "utf-8")).includes("\r"))
|
|
4905
|
+
await writeFile(log_file, idleLog(""));
|
|
4906
|
+
});
|
|
4907
|
+
expect(sent).toBe(true);
|
|
4908
|
+
expect(waits.slice(0, 4)).toEqual([1, 2, 4, 8]);
|
|
4909
|
+
expect(await readFile(fifo_file, "utf-8")).toBe("\r");
|
|
4910
|
+
},
|
|
4911
|
+
);
|
|
4912
|
+
|
|
4913
|
+
it("leaves a draft alone when it changes between checks (someone is typing)", async () => {
|
|
4914
|
+
const { submitStableDraft, record, log_file, fifo_file } = await setup("btw how");
|
|
4915
|
+
let n = 0;
|
|
4916
|
+
const sent = await submitStableDraft(record, [1, 2, 4, 8], async () => {
|
|
4917
|
+
if (++n === 2) await writeFile(log_file, idleLog("btw how are you"));
|
|
4918
|
+
});
|
|
4919
|
+
expect(sent).toBe(false);
|
|
4920
|
+
expect(await readFile(fifo_file, "utf-8")).toBe("");
|
|
4921
|
+
});
|
|
4922
|
+
|
|
4923
|
+
it("does nothing for an empty box", async () => {
|
|
4924
|
+
const { submitStableDraft, record, fifo_file } = await setup("");
|
|
4925
|
+
expect(await submitStableDraft(record, [1], async () => {})).toBe(false);
|
|
4926
|
+
expect(await readFile(fifo_file, "utf-8")).toBe("");
|
|
4927
|
+
});
|
|
4928
|
+
});
|
|
4929
|
+
|
|
4883
4930
|
it("reads the empty composer drawn before the last 32 KB, not the transcript", async () => {
|
|
4884
4931
|
// The 32 KB tail alone renders the old turn as the prompt and its answer as a draft.
|
|
4885
4932
|
expect(await stateOf(idleLog(""))).toEqual({ kind: "empty", ghost: false });
|
package/ts/subcommands.ts
CHANGED
|
@@ -4778,6 +4778,53 @@ export async function readComposerState(
|
|
|
4778
4778
|
}
|
|
4779
4779
|
}
|
|
4780
4780
|
|
|
4781
|
+
/** Waits between re-reads of a draft before it counts as abandoned (~15 s in all). */
|
|
4782
|
+
export const DRAFT_STABLE_WAITS_MS = [1000, 2000, 4000, 8000];
|
|
4783
|
+
|
|
4784
|
+
/** The bottom of the screen as plain text, to tell "unchanged" from "changed". */
|
|
4785
|
+
async function composerFingerprint(record: GlobalPidRecord): Promise<string | null> {
|
|
4786
|
+
if (!record.log_file) return null;
|
|
4787
|
+
try {
|
|
4788
|
+
const rows = await renderComposerRows({ ...record, log_file: record.log_file });
|
|
4789
|
+
return rows
|
|
4790
|
+
? rows
|
|
4791
|
+
.slice(-8)
|
|
4792
|
+
.map((r) => r.text)
|
|
4793
|
+
.join("\n")
|
|
4794
|
+
: null;
|
|
4795
|
+
} catch {
|
|
4796
|
+
return null;
|
|
4797
|
+
}
|
|
4798
|
+
}
|
|
4799
|
+
|
|
4800
|
+
/**
|
|
4801
|
+
* The target's input box holds text and has not changed for DRAFT_STABLE_WAITS_MS
|
|
4802
|
+
* (1, 2, 4, 8 s): nobody is typing, so submit it with Enter and report true once
|
|
4803
|
+
* the box reads empty again. Only a draft: a menu or yes/no prompt is a question
|
|
4804
|
+
* agent-yes deliberately does not answer. Any change, or a box that never clears,
|
|
4805
|
+
* returns false and the caller parks the message as before.
|
|
4806
|
+
*/
|
|
4807
|
+
export async function submitStableDraft(
|
|
4808
|
+
record: GlobalPidRecord,
|
|
4809
|
+
waits: number[] = DRAFT_STABLE_WAITS_MS,
|
|
4810
|
+
sleep: (ms: number) => Promise<void> = (ms) => new Promise((r) => setTimeout(r, ms)),
|
|
4811
|
+
): Promise<boolean> {
|
|
4812
|
+
if ((await readComposerState(record)).kind !== "draft") return false;
|
|
4813
|
+
const base = await composerFingerprint(record);
|
|
4814
|
+
if (base === null) return false;
|
|
4815
|
+
for (const ms of waits) {
|
|
4816
|
+
await sleep(ms);
|
|
4817
|
+
if ((await composerFingerprint(record)) !== base) return false;
|
|
4818
|
+
}
|
|
4819
|
+
if (!record.fifo_file) return false;
|
|
4820
|
+
await withIpcLock(record.pid, () => writeToIpc(record.fifo_file!, "\r"));
|
|
4821
|
+
for (let i = 0; i < 5; i++) {
|
|
4822
|
+
await sleep(500);
|
|
4823
|
+
if ((await readComposerState(record)).kind === "empty") return true;
|
|
4824
|
+
}
|
|
4825
|
+
return false;
|
|
4826
|
+
}
|
|
4827
|
+
|
|
4781
4828
|
/** Bytes `[from, to)` of a log file. */
|
|
4782
4829
|
async function readLogRange(logPath: string, from: number, to: number): Promise<Uint8Array> {
|
|
4783
4830
|
const fh = await open(logPath, "r");
|
|
@@ -5597,6 +5644,9 @@ async function cmdSendDrain(rest: string[]): Promise<number> {
|
|
|
5597
5644
|
}
|
|
5598
5645
|
const record = (await readGlobalPids()).find((r) => r.pid === pid);
|
|
5599
5646
|
let result: Awaited<ReturnType<typeof deliverBody>> | null = null;
|
|
5647
|
+
// A draft nobody touches (unchanged at 1/2/4/8 s) is submitted for its
|
|
5648
|
+
// owner here too, so a message parked behind it is not stuck forever.
|
|
5649
|
+
if (record && !(await isUserTyping(pid))) await submitStableDraft(record);
|
|
5600
5650
|
if (record && !(await isUserTyping(pid))) {
|
|
5601
5651
|
await withIpcLock(pid, async () => {
|
|
5602
5652
|
// Re-check under the lock, right before the write.
|
|
@@ -5971,6 +6021,11 @@ async function cmdSend(rest: string[]): Promise<number> {
|
|
|
5971
6021
|
code: trailing === "\r" ? undefined : codeName,
|
|
5972
6022
|
wrapped: Boolean(nonce),
|
|
5973
6023
|
};
|
|
6024
|
+
// A draft nobody is touching (unchanged at 1, 2, 4, 8 s) is submitted for its
|
|
6025
|
+
// owner, so it does not hold this message until someone clears the box.
|
|
6026
|
+
if (fullBody && !noWait && !parkReason && (await listPending(record.pid)).length === 0) {
|
|
6027
|
+
await submitStableDraft(record);
|
|
6028
|
+
}
|
|
5974
6029
|
// The body and its Enter are ONE transaction: every gap between them (the
|
|
5975
6030
|
// paste-settle wait, the submit-confirm retries) is a window where another
|
|
5976
6031
|
// writer's bytes would land mid-message. See ts/ipcLock.ts.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-BpYZZTap.js";
|
|
3
|
-
import "./globalPidIndex-CRB5KtyL.js";
|
|
4
|
-
import "./pidStore-433kvh9D.js";
|
|
5
|
-
import "./messageLog-Dq_ka-Bt.js";
|
|
6
|
-
import "./e2e-BdLf8DvY.js";
|
|
7
|
-
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./webrtcLink-va_gAR77.js";
|
|
9
|
-
import "./remotes-B2i_QcdG.js";
|
|
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-BbqJJZT1.js";
|
|
12
|
-
import "./notifyStore-DIfkfKB2.js";
|
|
13
|
-
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
|
-
|
|
15
|
-
export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isPidAlive, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
|
package/dist/trayApp-D__QcBRd.js
DELETED