agent-yes 1.304.2 → 1.305.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SUPPORTED_CLIS-Czys-z07.js → SUPPORTED_CLIS-BtuN8Jno.js} +3 -3
- package/dist/{SUPPORTED_CLIS-T7Sv53Bo.js → SUPPORTED_CLIS-xz97HGFk.js} +2 -2
- package/dist/{agentShare-2m6Z2vy2.js → agentShare-Bx13a3Zs.js} +2 -2
- package/dist/{callback-B38IQXNa.js → callback-CSseYNlQ.js} +2 -2
- package/dist/{callback-DxPucqvt.js → callback-turLEkYO.js} +3 -3
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-BQ-U5pf8.js → cmdPs-DuLjljRT.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-6FYHbi51.js → notifyDaemon-Du7zud2V.js} +2 -2
- package/dist/{parentPingLoop-CeKYccEV.js → parentPingLoop-DevcqVfR.js} +2 -2
- package/dist/{rustBinary-BJbqTNcY.js → rustBinary-DcMdwutV.js} +2 -2
- package/dist/{rustBinary-DD2EpKiN.js → rustBinary-H4aw9Spj.js} +2 -2
- package/dist/{schedule-BrSPuXnv.js → schedule-GTAtx9pc.js} +4 -4
- package/dist/{serve-Gx4dc4LJ.js → serve-DRUfCtkt.js} +24 -22
- package/dist/{setup-7OfVzrI2.js → setup-Bb0VJTJV.js} +2 -2
- package/dist/{shareCmd-CruQ5TDa.js → shareCmd-DBLlNKvE.js} +5 -5
- package/dist/{subcommands-DW-SDIw2.js → subcommands-5Hfj3FRI.js} +1 -1
- package/dist/{subcommands-BqXeFyvv.js → subcommands-BEaUJBT2.js} +17 -17
- package/dist/{terminal-D36_TtJ3.js → terminal-Cjl0C7Ya.js} +2 -2
- package/dist/trayApp-BWLgy2u_.js +5 -0
- package/dist/{trayApp-Hm0H3QAF.js → trayApp-C9bZt7ff.js} +2 -2
- package/dist/{ts-C8pyst8x.js → ts-HJEVAXyh.js} +3 -3
- package/dist/{versionChecker-D_4wDPSc.js → versionChecker-D2r5fiHj.js} +2 -2
- package/dist/{widget-DpJJm-o5.js → widget-DEzS79sn.js} +3 -3
- package/dist/{ws-BPUFhNVb.js → ws-BJQOtqWN.js} +2 -2
- package/dist/{ws-DYCivkyv.js → ws-PYHbe3A1.js} +2 -2
- package/lab/ui/console-logic.js +15 -7
- package/lab/ui/index.html +16 -11
- package/package.json +1 -1
- package/ts/serve.ts +6 -1
- package/dist/trayApp-4sRZjNFr.js +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-D2r5fiHj.js";
|
|
3
|
+
import "./ts-HJEVAXyh.js";
|
|
4
4
|
import "./todoAutomation-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-C6p_AY4D.js";
|
|
7
7
|
import "./pidStore-DUXifdBr.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
9
|
import "./todoStore-msRCEUi1.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-xz97HGFk.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-HJEVAXyh.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-xz97HGFk.js.map
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { ot as resolveOne } from "./subcommands-
|
|
8
|
+
import { ot as resolveOne } from "./subcommands-BEaUJBT2.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.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-Bx13a3Zs.js.map
|
|
@@ -5,13 +5,13 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./subcommands-
|
|
8
|
+
import "./subcommands-BEaUJBT2.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.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-turLEkYO.js";
|
|
16
16
|
|
|
17
17
|
export { cmdCallback };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import { ot as resolveOne } from "./subcommands-
|
|
2
|
+
import { ot as resolveOne } from "./subcommands-BEaUJBT2.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-DRUfCtkt.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-turLEkYO.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-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-D2r5fiHj.js";
|
|
5
|
+
import { m as getRustBinary } from "./rustBinary-DcMdwutV.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-5Hfj3FRI.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-BtuN8Jno.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-BtuN8Jno.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}`);
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { Dt as
|
|
8
|
+
import { Dt as buildAgentForest, G as listRecords, Ot as flattenForest, y as deriveLiveState } from "./subcommands-BEaUJBT2.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
@@ -332,4 +332,4 @@ function readPpidSync(pid) {
|
|
|
332
332
|
|
|
333
333
|
//#endregion
|
|
334
334
|
export { cmdPs };
|
|
335
|
-
//# sourceMappingURL=cmdPs-
|
|
335
|
+
//# sourceMappingURL=cmdPs-DuLjljRT.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-D2r5fiHj.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-HJEVAXyh.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-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-C6p_AY4D.js";
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-
|
|
8
|
+
import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-BEaUJBT2.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
@@ -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-Du7zud2V.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-5Hfj3FRI.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-DevcqVfR.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-D2r5fiHj.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-DcMdwutV.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-D2r5fiHj.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-DcMdwutV.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-D2r5fiHj.js";
|
|
3
|
+
import "./ts-HJEVAXyh.js";
|
|
4
4
|
import "./todoAutomation-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-C6p_AY4D.js";
|
|
7
7
|
import "./pidStore-DUXifdBr.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
9
|
import "./todoStore-msRCEUi1.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-xz97HGFk.js";
|
|
11
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
12
12
|
import { t as ensureBootAutostart } from "./oxmgrService-DlYHmqyI.js";
|
|
13
13
|
import { f as resolveSpawnCwd } from "./workspaceConfig-DBgsu81B.js";
|
|
@@ -125,4 +125,4 @@ async function cmdSchedule(rest) {
|
|
|
125
125
|
|
|
126
126
|
//#endregion
|
|
127
127
|
export { cmdSchedule };
|
|
128
|
-
//# sourceMappingURL=schedule-
|
|
128
|
+
//# sourceMappingURL=schedule-GTAtx9pc.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-D2r5fiHj.js";
|
|
3
|
+
import { c as findSpawnHiddenLauncher } from "./rustBinary-DcMdwutV.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-HJEVAXyh.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-JmJC28YX.js";
|
|
6
6
|
import { u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
|
|
7
7
|
import "./JsonlStore-CB_0sfdT.js";
|
|
@@ -11,21 +11,21 @@ import { r as recordInbox, s as isTerminalReply } from "./messageLog-Dq_ka-Bt.js
|
|
|
11
11
|
import "./todoStore-msRCEUi1.js";
|
|
12
12
|
import "./e2e-BdLf8DvY.js";
|
|
13
13
|
import "./configShared-De4bR5hH.js";
|
|
14
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
-
import { $ as readNotes, Ct as
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-xz97HGFk.js";
|
|
15
|
+
import { $ as readNotes, Ct as withIpcLock, D as extractNeedsInput, Et as TYPING_BADGE, G as listRecords, H as isUserTyping, L as isSlashCommand, O as extractTaskCounts, Q as readLogForRender, St as resolveWorkDir, T as extractBadges, Tt as shouldFramePaste, at as renderRawLogLines, b as deriveLiveStatus, et as readPtysize, g as controlCodeFromName, it as renderRawLog, nt as recentReadEdges, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, rt as renderLogTailLines, tt as recentMessageEdges, wt as framePaste, xt as writeToIpc } from "./subcommands-BEaUJBT2.js";
|
|
16
16
|
import { i as isWebrtcSpec, o as toWebrtcUrl } from "./webrtcLink-DcvacEci.js";
|
|
17
17
|
import "./remotes-BsMGvAay.js";
|
|
18
18
|
import "./roomReplyAlias-B-v76TA8.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-turLEkYO.js";
|
|
23
23
|
import { n as sampleTrees } from "./procStats-DwTxj3rs.js";
|
|
24
24
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
25
25
|
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-DBgsu81B.js";
|
|
26
|
-
import { i as importProvisionModule } from "./ws-
|
|
26
|
+
import { i as importProvisionModule } from "./ws-PYHbe3A1.js";
|
|
27
27
|
import { r as spawnRejectionReason } from "./spawnGate-3YSXiRFS.js";
|
|
28
|
-
import { i as launchTray } from "./trayApp-
|
|
28
|
+
import { i as launchTray } from "./trayApp-C9bZt7ff.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";
|
|
@@ -1347,7 +1347,7 @@ async function warnStrayServeProcesses() {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
async function daemonShareRuntime(args) {
|
|
1349
1349
|
const { daemonShareRuntime: decide } = await import("./serveRust-BfWkeL6T.js");
|
|
1350
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
1350
|
+
const { findAyrsBinary } = await import("./rustBinary-H4aw9Spj.js");
|
|
1351
1351
|
return decide(args, () => !!findAyrsBinary());
|
|
1352
1352
|
}
|
|
1353
1353
|
function explicitWebrtcUrl(args) {
|
|
@@ -1645,7 +1645,7 @@ async function cmdServeStatus(args) {
|
|
|
1645
1645
|
const token = await loadTokenReadOnly();
|
|
1646
1646
|
const daemonArgs = mgr ? await readDaemonServeArgs(mgr) : null;
|
|
1647
1647
|
const installed = daemonArgs !== null;
|
|
1648
|
-
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-
|
|
1648
|
+
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-DBLlNKvE.js");
|
|
1649
1649
|
const shareLink = (installed ? await daemonShareLink(daemonArgs) : await foregroundAyrsShareLink()) ?? await readShareLink();
|
|
1650
1650
|
const running = installed ? await readDaemonRunning(mgr) : false;
|
|
1651
1651
|
const a = daemonArgs ?? [];
|
|
@@ -1779,14 +1779,14 @@ Options:
|
|
|
1779
1779
|
const { planRustServe, SERVE_SUBCOMMANDS } = await import("./serveRust-BfWkeL6T.js");
|
|
1780
1780
|
const plan = planRustServe(rest);
|
|
1781
1781
|
if (plan.kind === "rust-only") {
|
|
1782
|
-
const { ensureAyrsBinary } = await import("./rustBinary-
|
|
1782
|
+
const { ensureAyrsBinary } = await import("./rustBinary-H4aw9Spj.js");
|
|
1783
1783
|
const ayrs = await ensureAyrsBinary();
|
|
1784
1784
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1785
1785
|
process.stderr.write(`ay serve: ${plan.feature} needs the Rust daemon (ayrs), which was not found (bun run build:rs, or reinstall)\n`);
|
|
1786
1786
|
return 1;
|
|
1787
1787
|
}
|
|
1788
1788
|
if (plan.kind === "rust") {
|
|
1789
|
-
const { ensureAyrsBinary } = await import("./rustBinary-
|
|
1789
|
+
const { ensureAyrsBinary } = await import("./rustBinary-H4aw9Spj.js");
|
|
1790
1790
|
const ayrs = await ensureAyrsBinary();
|
|
1791
1791
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1792
1792
|
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");
|
|
@@ -2166,15 +2166,17 @@ Options:
|
|
|
2166
2166
|
const question = status !== "exited" && !r.unresponsive ? await logNeedsInput(r.log_file, r.cli) : null;
|
|
2167
2167
|
const lastActiveAt = r.log_file ? await stat(r.log_file).then((s) => s.mtimeMs).catch(() => r.started_at) : r.started_at;
|
|
2168
2168
|
const lastStdinAt = status !== "exited" ? await resolveLastStdinAt(r) : null;
|
|
2169
|
+
const where = await resolveWorkDir(r);
|
|
2169
2170
|
return {
|
|
2170
2171
|
...r,
|
|
2172
|
+
...where,
|
|
2171
2173
|
last_active_at: lastActiveAt,
|
|
2172
2174
|
last_stdin_at: lastStdinAt,
|
|
2173
2175
|
status: status === "exited" ? status : r.unresponsive ? "stuck" : question ? "needs_input" : status,
|
|
2174
2176
|
question,
|
|
2175
2177
|
title: await logTitle(r.log_file),
|
|
2176
2178
|
status_text: status === "exited" ? null : await logStatusText(r.log_file),
|
|
2177
|
-
git: status === "exited" ? null : await gitStatus(
|
|
2179
|
+
git: status === "exited" ? null : await gitStatus(where.workdir),
|
|
2178
2180
|
tasks: status === "exited" ? null : await logTasks(r.log_file),
|
|
2179
2181
|
badges: status === "exited" ? [] : await logBadges(r.log_file).then(async (b) => await isUserTyping(r.pid) ? [...b, TYPING_BADGE.id] : b),
|
|
2180
2182
|
res: resField(r.pid)
|
|
@@ -2776,7 +2778,7 @@ Options:
|
|
|
2776
2778
|
}
|
|
2777
2779
|
});
|
|
2778
2780
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2779
|
-
const ws = await import("./ws-
|
|
2781
|
+
const ws = await import("./ws-BJQOtqWN.js");
|
|
2780
2782
|
try {
|
|
2781
2783
|
await ws.loadProvision();
|
|
2782
2784
|
} catch (e) {
|
|
@@ -2796,7 +2798,7 @@ Options:
|
|
|
2796
2798
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2797
2799
|
const dirRaw = url.searchParams.get("path");
|
|
2798
2800
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2799
|
-
const ws = await import("./ws-
|
|
2801
|
+
const ws = await import("./ws-BJQOtqWN.js");
|
|
2800
2802
|
let prov;
|
|
2801
2803
|
try {
|
|
2802
2804
|
prov = await ws.loadProvision();
|
|
@@ -2818,7 +2820,7 @@ Options:
|
|
|
2818
2820
|
}
|
|
2819
2821
|
}
|
|
2820
2822
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2821
|
-
const ws = await import("./ws-
|
|
2823
|
+
const ws = await import("./ws-BJQOtqWN.js");
|
|
2822
2824
|
try {
|
|
2823
2825
|
await ws.loadProvision();
|
|
2824
2826
|
} catch (e) {
|
|
@@ -2899,7 +2901,7 @@ Options:
|
|
|
2899
2901
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2900
2902
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2901
2903
|
const [, owner, repo] = m;
|
|
2902
|
-
const ws = await import("./ws-
|
|
2904
|
+
const ws = await import("./ws-BJQOtqWN.js");
|
|
2903
2905
|
let prov;
|
|
2904
2906
|
try {
|
|
2905
2907
|
prov = await ws.loadProvision();
|
|
@@ -3810,7 +3812,7 @@ Options:
|
|
|
3810
3812
|
const perm = body.perm ?? "r";
|
|
3811
3813
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3812
3814
|
try {
|
|
3813
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3815
|
+
const { createScopedShare } = await import("./agentShare-Bx13a3Zs.js");
|
|
3814
3816
|
const share = await createScopedShare({
|
|
3815
3817
|
agent: body.agent,
|
|
3816
3818
|
perm,
|
|
@@ -3825,12 +3827,12 @@ Options:
|
|
|
3825
3827
|
}
|
|
3826
3828
|
}
|
|
3827
3829
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3828
|
-
const { listShares } = await import("./agentShare-
|
|
3830
|
+
const { listShares } = await import("./agentShare-Bx13a3Zs.js");
|
|
3829
3831
|
return Response.json(listShares());
|
|
3830
3832
|
}
|
|
3831
3833
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3832
3834
|
if (req.method === "DELETE" && revokeM) {
|
|
3833
|
-
const { revokeShare } = await import("./agentShare-
|
|
3835
|
+
const { revokeShare } = await import("./agentShare-Bx13a3Zs.js");
|
|
3834
3836
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3835
3837
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3836
3838
|
}
|
|
@@ -4142,7 +4144,7 @@ Options:
|
|
|
4142
4144
|
const shutdown = (resolve) => {
|
|
4143
4145
|
if (heartbeat) clearInterval(heartbeat);
|
|
4144
4146
|
closeShare?.();
|
|
4145
|
-
import("./agentShare-
|
|
4147
|
+
import("./agentShare-Bx13a3Zs.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
4146
4148
|
server?.stop();
|
|
4147
4149
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
4148
4150
|
};
|
|
@@ -4155,4 +4157,4 @@ Options:
|
|
|
4155
4157
|
|
|
4156
4158
|
//#endregion
|
|
4157
4159
|
export { cmdServe, inspectServeDaemon, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
4158
|
-
//# sourceMappingURL=serve-
|
|
4160
|
+
//# sourceMappingURL=serve-DRUfCtkt.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-DRUfCtkt.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-Bb0VJTJV.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-BfWkeL6T.js");
|
|
247
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
247
|
+
const { findAyrsBinary } = await import("./rustBinary-H4aw9Spj.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-WxS1nTIs.js");
|
|
263
|
-
const { isPidAlive } = await import("./subcommands-
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-5Hfj3FRI.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-DRUfCtkt.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-DRUfCtkt.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-DBLlNKvE.js.map
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { $ as readNotes, A as inspectSubmission, B as isUnknownManagerToken, C as envelopeAttribution, D as extractNeedsInput, E as extractMenu, F as isExitRequest, G as listRecords, H as isUserTyping, I as isPidAlive, J as ownedCollapsedPaste, K as matchKeyword, L as isSlashCommand, M as isAgentIdShaped, N as isAgentStuck, O as extractTaskCounts, P as isBareManagerInvocation, Q as readLogForRender, R as isSubcommand, S as enableRenderDiskCache, T as extractBadges, U as lastReadAt, V as isUnreachableWriteErrno, W as lastStdinAt, X as readAgentPtysize, Y as probeStdinReachable, Z as readComposerState, _ as cursorAbs, _t as submitStableDraft, a as READ_PAGE_DEFAULT, at as renderRawLogLines, b as deriveLiveStatus, bt as writeKeysPaced, c as SEND_EXIT_QUEUED, ct as resolveResumeArgs, d as backoffWhileTyping, dt as saveRenderDisk, et as readPtysize, f as buildEnvelope, ft as sendPayloadCapError, g as controlCodeFromName, gt as submitAndConfirm, h as confirmStdinUnreachable, ht as stopTipForCli, i as MAX_RENDER_BYTES, it as renderRawLog, j as interruptSendTarget, k as finalizedLines, l as SEND_EXIT_UNREACHABLE, lt as restartHintLines, m as cmdHelp, mt as stdinActivityPath, n as DRAFT_STABLE_WAITS_MS, nt as recentReadEdges, o as READ_WINDOW_MS, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, q as menuSelectKeys, r as GRACEFUL_EXIT_COMMANDS, rt as renderLogTailLines, s as SEND_BODY_MAX_CHARS, st as resolveReadWindow, t as COMPOSER_WINDOWS, tt as recentMessageEdges, u as TYPING_WINDOW_MS, ut as runSubcommand, v as cwdLabel, vt as suggestAgents, w as envelopeCostFor, x as drainerLauncher, xt as writeToIpc, y as deriveLiveState, yt as waitForLogQuiet, z as isSubmitCode } from "./subcommands-
|
|
8
|
+
import { $ as readNotes, A as inspectSubmission, B as isUnknownManagerToken, C as envelopeAttribution, D as extractNeedsInput, E as extractMenu, F as isExitRequest, G as listRecords, H as isUserTyping, I as isPidAlive, J as ownedCollapsedPaste, K as matchKeyword, L as isSlashCommand, M as isAgentIdShaped, N as isAgentStuck, O as extractTaskCounts, P as isBareManagerInvocation, Q as readLogForRender, R as isSubcommand, S as enableRenderDiskCache, T as extractBadges, U as lastReadAt, V as isUnreachableWriteErrno, W as lastStdinAt, X as readAgentPtysize, Y as probeStdinReachable, Z as readComposerState, _ as cursorAbs, _t as submitStableDraft, a as READ_PAGE_DEFAULT, at as renderRawLogLines, b as deriveLiveStatus, bt as writeKeysPaced, c as SEND_EXIT_QUEUED, ct as resolveResumeArgs, d as backoffWhileTyping, dt as saveRenderDisk, et as readPtysize, f as buildEnvelope, ft as sendPayloadCapError, g as controlCodeFromName, gt as submitAndConfirm, h as confirmStdinUnreachable, ht as stopTipForCli, i as MAX_RENDER_BYTES, it as renderRawLog, j as interruptSendTarget, k as finalizedLines, l as SEND_EXIT_UNREACHABLE, lt as restartHintLines, m as cmdHelp, mt as stdinActivityPath, n as DRAFT_STABLE_WAITS_MS, nt as recentReadEdges, o as READ_WINDOW_MS, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, q as menuSelectKeys, r as GRACEFUL_EXIT_COMMANDS, rt as renderLogTailLines, s as SEND_BODY_MAX_CHARS, st as resolveReadWindow, t as COMPOSER_WINDOWS, tt as recentMessageEdges, u as TYPING_WINDOW_MS, ut as runSubcommand, v as cwdLabel, vt as suggestAgents, w as envelopeCostFor, x as drainerLauncher, xt as writeToIpc, y as deriveLiveState, yt as waitForLogQuiet, z as isSubmitCode } from "./subcommands-BEaUJBT2.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
@@ -2071,7 +2071,7 @@ async function runSubcommand(argv) {
|
|
|
2071
2071
|
switch (sub) {
|
|
2072
2072
|
case "ls":
|
|
2073
2073
|
case "list": return await cmdLs(rest);
|
|
2074
|
-
case "ps": return await (await import("./cmdPs-
|
|
2074
|
+
case "ps": return await (await import("./cmdPs-DuLjljRT.js")).cmdPs(rest);
|
|
2075
2075
|
case "status": return await cmdStatus(rest);
|
|
2076
2076
|
case "whoami": return await cmdWhoami(rest);
|
|
2077
2077
|
case "result": return await cmdResult(rest);
|
|
@@ -2122,31 +2122,31 @@ async function runSubcommand(argv) {
|
|
|
2122
2122
|
return cmdCh(rest);
|
|
2123
2123
|
}
|
|
2124
2124
|
case "term": {
|
|
2125
|
-
const { cmdTerm } = await import("./terminal-
|
|
2125
|
+
const { cmdTerm } = await import("./terminal-Cjl0C7Ya.js");
|
|
2126
2126
|
return cmdTerm(rest);
|
|
2127
2127
|
}
|
|
2128
2128
|
case "widget": {
|
|
2129
|
-
const { cmdWidget } = await import("./widget-
|
|
2129
|
+
const { cmdWidget } = await import("./widget-DEzS79sn.js");
|
|
2130
2130
|
return cmdWidget(rest);
|
|
2131
2131
|
}
|
|
2132
2132
|
case "mint": {
|
|
2133
|
-
const { cmdMint } = await import("./widget-
|
|
2133
|
+
const { cmdMint } = await import("./widget-DEzS79sn.js");
|
|
2134
2134
|
return cmdMint(rest);
|
|
2135
2135
|
}
|
|
2136
2136
|
case "serve": {
|
|
2137
|
-
const { cmdServe } = await import("./serve-
|
|
2137
|
+
const { cmdServe } = await import("./serve-DRUfCtkt.js");
|
|
2138
2138
|
return cmdServe(rest);
|
|
2139
2139
|
}
|
|
2140
2140
|
case "tray": {
|
|
2141
|
-
const { cmdTray } = await import("./trayApp-
|
|
2141
|
+
const { cmdTray } = await import("./trayApp-BWLgy2u_.js");
|
|
2142
2142
|
return cmdTray(rest);
|
|
2143
2143
|
}
|
|
2144
2144
|
case "setup": {
|
|
2145
|
-
const { cmdSetup } = await import("./setup-
|
|
2145
|
+
const { cmdSetup } = await import("./setup-Bb0VJTJV.js");
|
|
2146
2146
|
return cmdSetup(rest);
|
|
2147
2147
|
}
|
|
2148
2148
|
case "ws": {
|
|
2149
|
-
const { cmdWs } = await import("./ws-
|
|
2149
|
+
const { cmdWs } = await import("./ws-BJQOtqWN.js");
|
|
2150
2150
|
return cmdWs(rest);
|
|
2151
2151
|
}
|
|
2152
2152
|
case "schedules":
|
|
@@ -2159,7 +2159,7 @@ async function runSubcommand(argv) {
|
|
|
2159
2159
|
return cmdCron(rest);
|
|
2160
2160
|
}
|
|
2161
2161
|
case "schedule": {
|
|
2162
|
-
const { cmdSchedule } = await import("./schedule-
|
|
2162
|
+
const { cmdSchedule } = await import("./schedule-GTAtx9pc.js");
|
|
2163
2163
|
return cmdSchedule(rest);
|
|
2164
2164
|
}
|
|
2165
2165
|
case "remote": {
|
|
@@ -2167,7 +2167,7 @@ async function runSubcommand(argv) {
|
|
|
2167
2167
|
return cmdRemote(rest);
|
|
2168
2168
|
}
|
|
2169
2169
|
case "share": {
|
|
2170
|
-
const { cmdShare } = await import("./shareCmd-
|
|
2170
|
+
const { cmdShare } = await import("./shareCmd-DBLlNKvE.js");
|
|
2171
2171
|
return cmdShare(rest);
|
|
2172
2172
|
}
|
|
2173
2173
|
case "connect": {
|
|
@@ -2179,7 +2179,7 @@ async function runSubcommand(argv) {
|
|
|
2179
2179
|
return cmdExpose(rest);
|
|
2180
2180
|
}
|
|
2181
2181
|
case "callback": {
|
|
2182
|
-
const { cmdCallback } = await import("./callback-
|
|
2182
|
+
const { cmdCallback } = await import("./callback-CSseYNlQ.js");
|
|
2183
2183
|
return cmdCallback(rest);
|
|
2184
2184
|
}
|
|
2185
2185
|
case "reap":
|
|
@@ -2190,7 +2190,7 @@ async function runSubcommand(argv) {
|
|
|
2190
2190
|
return await cmdDsh(rest);
|
|
2191
2191
|
}
|
|
2192
2192
|
case "gc": {
|
|
2193
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
2193
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-H4aw9Spj.js");
|
|
2194
2194
|
const { gcLogs } = await import("./globalPidIndex-DmDCB_X7.js");
|
|
2195
2195
|
const bins = gcOldBinaryDirs();
|
|
2196
2196
|
const logs = await gcLogs();
|
|
@@ -6342,7 +6342,7 @@ async function cmdAttach(rest) {
|
|
|
6342
6342
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
6343
6343
|
await mkdir(winsizeDir, { recursive: true });
|
|
6344
6344
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
6345
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
6345
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DRUfCtkt.js");
|
|
6346
6346
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
6347
6347
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
6348
6348
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -7091,7 +7091,7 @@ async function cmdNotify(rest) {
|
|
|
7091
7091
|
}
|
|
7092
7092
|
const ensure = async () => {
|
|
7093
7093
|
if (!argv["ensure-daemon"]) return;
|
|
7094
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
7094
|
+
const { ensureDaemon } = await import("./notifyDaemon-Du7zud2V.js");
|
|
7095
7095
|
await ensureDaemon().catch(() => null);
|
|
7096
7096
|
};
|
|
7097
7097
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -7165,7 +7165,7 @@ async function cmdNotifyCursor(args) {
|
|
|
7165
7165
|
}
|
|
7166
7166
|
async function cmdNotifyd(rest) {
|
|
7167
7167
|
const sub = rest[0] ?? "status";
|
|
7168
|
-
const daemon = await import("./notifyDaemon-
|
|
7168
|
+
const daemon = await import("./notifyDaemon-Du7zud2V.js");
|
|
7169
7169
|
switch (sub) {
|
|
7170
7170
|
case "run": return daemon.runDaemon();
|
|
7171
7171
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -7191,5 +7191,5 @@ async function cmdNotifyd(rest) {
|
|
|
7191
7191
|
}
|
|
7192
7192
|
|
|
7193
7193
|
//#endregion
|
|
7194
|
-
export { readNotes as $, inspectSubmission as A, isUnknownManagerToken as B, envelopeAttribution as C,
|
|
7195
|
-
//# sourceMappingURL=subcommands-
|
|
7194
|
+
export { readNotes as $, inspectSubmission as A, isUnknownManagerToken as B, envelopeAttribution as C, withIpcLock as Ct, extractNeedsInput as D, buildAgentForest as Dt, extractMenu as E, TYPING_BADGE as Et, isExitRequest as F, listRecords as G, isUserTyping as H, isPidAlive as I, ownedCollapsedPaste as J, matchKeyword as K, isSlashCommand as L, isAgentIdShaped as M, isAgentStuck as N, extractTaskCounts as O, flattenForest as Ot, isBareManagerInvocation as P, readLogForRender as Q, isSubcommand as R, enableRenderDiskCache as S, resolveWorkDir as St, extractBadges as T, shouldFramePaste as Tt, lastReadAt as U, isUnreachableWriteErrno as V, lastStdinAt as W, readAgentPtysize as X, probeStdinReachable as Y, readComposerState as Z, cursorAbs as _, submitStableDraft as _t, READ_PAGE_DEFAULT as a, renderRawLogLines as at, deriveLiveStatus as b, writeKeysPaced as bt, SEND_EXIT_QUEUED as c, resolveResumeArgs as ct, backoffWhileTyping as d, saveRenderDisk as dt, readPtysize as et, buildEnvelope as f, sendPayloadCapError as ft, controlCodeFromName as g, submitAndConfirm as gt, confirmStdinUnreachable as h, stopTipForCli as ht, MAX_RENDER_BYTES as i, renderRawLog as it, interruptSendTarget as j, finalizedLines as k, SEND_EXIT_UNREACHABLE as l, restartHintLines as lt, cmdHelp as m, stdinActivityPath as mt, DRAFT_STABLE_WAITS_MS as n, recentReadEdges as nt, READ_WINDOW_MS as o, resolveOne as ot, cliDefaults as p, snapshotStatus as pt, menuSelectKeys as q, GRACEFUL_EXIT_COMMANDS as r, renderLogTailLines as rt, SEND_BODY_MAX_CHARS as s, resolveReadWindow as st, COMPOSER_WINDOWS as t, recentMessageEdges as tt, TYPING_WINDOW_MS as u, runSubcommand as ut, cwdLabel as v, suggestAgents as vt, envelopeCostFor as w, framePaste as wt, drainerLauncher as x, writeToIpc as xt, deriveLiveState as y, waitForLogQuiet as yt, isSubmitCode as z };
|
|
7195
|
+
//# sourceMappingURL=subcommands-BEaUJBT2.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-DRUfCtkt.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-Cjl0C7Ya.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { l as findTrayLauncher } from "./rustBinary-DcMdwutV.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-C9bZt7ff.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-D2r5fiHj.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
5
5
|
import { u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DMznYh45.js";
|
|
@@ -2155,7 +2155,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2155
2155
|
}, 100);
|
|
2156
2156
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2157
2157
|
shell.onExit(cleanupHeartbeat);
|
|
2158
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2158
|
+
const { startParentPingLoop } = await import("./parentPingLoop-DevcqVfR.js");
|
|
2159
2159
|
const parentPingLoop = startParentPingLoop({
|
|
2160
2160
|
parentPid,
|
|
2161
2161
|
selfWrapperPid: process.pid,
|
|
@@ -2418,4 +2418,4 @@ function sleep(ms) {
|
|
|
2418
2418
|
|
|
2419
2419
|
//#endregion
|
|
2420
2420
|
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 };
|
|
2421
|
-
//# sourceMappingURL=ts-
|
|
2421
|
+
//# sourceMappingURL=ts-HJEVAXyh.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.
|
|
10
|
+
var version = "1.305.0";
|
|
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-D2r5fiHj.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-DRUfCtkt.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-DRUfCtkt.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-DEzS79sn.js.map
|
|
@@ -5,12 +5,12 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./subcommands-
|
|
8
|
+
import "./subcommands-BEaUJBT2.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.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-PYHbe3A1.js";
|
|
15
15
|
|
|
16
16
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as listRecords } from "./subcommands-
|
|
1
|
+
import { G as listRecords } from "./subcommands-BEaUJBT2.js";
|
|
2
2
|
import { a as getProvisionRoot } from "./workspaceConfig-DBgsu81B.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-PYHbe3A1.js.map
|
package/lab/ui/console-logic.js
CHANGED
|
@@ -104,6 +104,14 @@ export function normCwd(cwd) {
|
|
|
104
104
|
return (cwd || "").replace(/\\/g, "/");
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
// Where an agent works: the dir its shells run in (`workdir`, sampled by the
|
|
108
|
+
// wrapper and sent by serve), else the dir it was spawned in. A lane spawned in
|
|
109
|
+
// one dir that cds into a worktree is shown, grouped and searched by the
|
|
110
|
+
// worktree, not by where it started.
|
|
111
|
+
export function agentDir(e) {
|
|
112
|
+
return (e && (e.workdir || e.cwd)) || "";
|
|
113
|
+
}
|
|
114
|
+
|
|
107
115
|
// Parse owner/repo/branch from a cwd like .../ws/<owner>/<repo>/tree/<branch>.
|
|
108
116
|
// A cwd inside a git submodule keeps trailing path after the worktree branch
|
|
109
117
|
// (e.g. .../tree/share/lib/bot, where lib/bot is a submodule). The owner/repo/
|
|
@@ -112,7 +120,7 @@ export function normCwd(cwd) {
|
|
|
112
120
|
// leaf dir as `sub` to keep nested repos distinguishable. `sub` is "" when the
|
|
113
121
|
// cwd is the worktree root.
|
|
114
122
|
export function repoBranch(e) {
|
|
115
|
-
const m = /\/([^/]+)\/([^/]+)\/tree\/([^/]+)(\/.*)?$/.exec(normCwd(e
|
|
123
|
+
const m = /\/([^/]+)\/([^/]+)\/tree\/([^/]+)(\/.*)?$/.exec(normCwd(agentDir(e)));
|
|
116
124
|
if (!m) return null;
|
|
117
125
|
const sub = (m[4] || "").split("/").filter(Boolean).pop() || "";
|
|
118
126
|
return { owner: m[1], repo: m[2], branch: m[3], sub };
|
|
@@ -460,7 +468,7 @@ export function matches(e, toks) {
|
|
|
460
468
|
" " +
|
|
461
469
|
e.cli +
|
|
462
470
|
" " +
|
|
463
|
-
(e
|
|
471
|
+
agentDir(e) +
|
|
464
472
|
" " +
|
|
465
473
|
e.status +
|
|
466
474
|
" " +
|
|
@@ -537,17 +545,17 @@ function agentForestNodes(list) {
|
|
|
537
545
|
// (longest containing cwd) wins; same-worktree guard keeps an unrelated
|
|
538
546
|
// shared prefix (e.g. /Users/x/ws) from grouping strangers together.
|
|
539
547
|
for (const e of list) {
|
|
540
|
-
if (parentOf.has(e) || !e
|
|
548
|
+
if (parentOf.has(e) || !agentDir(e)) continue;
|
|
541
549
|
const rb = repoBranch(e);
|
|
542
550
|
if (!rb) continue;
|
|
543
|
-
const ecwd = normCwd(e
|
|
551
|
+
const ecwd = normCwd(agentDir(e));
|
|
544
552
|
let best = null;
|
|
545
553
|
for (const c of list) {
|
|
546
|
-
if (c === e || !c
|
|
554
|
+
if (c === e || !agentDir(c) || !ecwd.startsWith(normCwd(agentDir(c)) + "/")) continue;
|
|
547
555
|
const crb = repoBranch(c);
|
|
548
556
|
if (!crb || crb.owner !== rb.owner || crb.repo !== rb.repo || crb.branch !== rb.branch)
|
|
549
557
|
continue;
|
|
550
|
-
if (!best || normCwd(c
|
|
558
|
+
if (!best || normCwd(agentDir(c)).length > normCwd(agentDir(best)).length) best = c;
|
|
551
559
|
}
|
|
552
560
|
if (best) parentOf.set(e, best);
|
|
553
561
|
}
|
|
@@ -984,7 +992,7 @@ export function omniScore(e, query) {
|
|
|
984
992
|
if (title === q) return 100;
|
|
985
993
|
if (title.startsWith(q)) return 80;
|
|
986
994
|
if (title.includes(q)) return 60;
|
|
987
|
-
if ((e
|
|
995
|
+
if (agentDir(e).toLowerCase().includes(q)) return 40;
|
|
988
996
|
if ((e.prompt || "").toLowerCase().includes(q)) return 20;
|
|
989
997
|
return 0;
|
|
990
998
|
}
|
package/lab/ui/index.html
CHANGED
|
@@ -2569,6 +2569,7 @@
|
|
|
2569
2569
|
// script is a module (deferred, runs after the codehost shim above sets
|
|
2570
2570
|
// window.__codehost), so a static import is safe.
|
|
2571
2571
|
import {
|
|
2572
|
+
agentDir,
|
|
2572
2573
|
cliLabel,
|
|
2573
2574
|
repoBranch,
|
|
2574
2575
|
ident,
|
|
@@ -6476,7 +6477,7 @@ my.translate = async (text, lang) => {
|
|
|
6476
6477
|
// Split off the leading "/" before the rtl-ellipsis path span — it sits
|
|
6477
6478
|
// at the bidi paragraph edge and would otherwise get reordered to the
|
|
6478
6479
|
// far end of the line (see the .rcwd-path comment).
|
|
6479
|
-
const cwd = e
|
|
6480
|
+
const cwd = agentDir(e);
|
|
6480
6481
|
const cwdLead = cwd.startsWith("/") ? "/" : "";
|
|
6481
6482
|
$("rcwdlead").textContent = cwdLead;
|
|
6482
6483
|
$("rcwdpath").textContent = cwd.slice(cwdLead.length);
|
|
@@ -7425,7 +7426,7 @@ my.translate = async (text, lang) => {
|
|
|
7425
7426
|
// (forkWorktree needs a worktree with a branch/origin).
|
|
7426
7427
|
function omniForkSource() {
|
|
7427
7428
|
const cur = omniReturnSel ? entries.find((x) => x._key === omniReturnSel) : null;
|
|
7428
|
-
return cur && cur
|
|
7429
|
+
return cur && agentDir(cur) && cur.git && cur.git.branch ? cur : null;
|
|
7429
7430
|
}
|
|
7430
7431
|
|
|
7431
7432
|
// Slash commands that act on the OPEN agent (the omnibox anchor), mirroring the
|
|
@@ -7484,7 +7485,7 @@ my.translate = async (text, lang) => {
|
|
|
7484
7485
|
kind: "fork",
|
|
7485
7486
|
branch: forkSlug(parts.slice(1).join(" "), src.git.branch),
|
|
7486
7487
|
srcBranch: src.git.branch,
|
|
7487
|
-
fromCwd: src
|
|
7488
|
+
fromCwd: agentDir(src),
|
|
7488
7489
|
cli: src.cli,
|
|
7489
7490
|
src: src._src,
|
|
7490
7491
|
});
|
|
@@ -7715,7 +7716,7 @@ my.translate = async (text, lang) => {
|
|
|
7715
7716
|
<span class="dot active"></span>
|
|
7716
7717
|
<div class="omni-main">
|
|
7717
7718
|
<div class="omni-title">✦ Spawn new ${esc(anchor?.cli || "claude")} agent here</div>
|
|
7718
|
-
<div class="omni-sub">${esc(anchor
|
|
7719
|
+
<div class="omni-sub">${esc(agentDir(anchor) || "(host default)")} · prompt: ${esc(q || "(empty)")}</div>
|
|
7719
7720
|
</div></div>`;
|
|
7720
7721
|
}
|
|
7721
7722
|
if (r.kind === "fork") {
|
|
@@ -7807,7 +7808,7 @@ my.translate = async (text, lang) => {
|
|
|
7807
7808
|
<span class="dot ${esc(e.status)}"></span>
|
|
7808
7809
|
<div class="omni-main">
|
|
7809
7810
|
<div class="omni-title">${esc(e.title || cliLabel(e) || ident(e) || "agent")}</div>
|
|
7810
|
-
<div class="omni-sub">${esc((e.cli || "") + " · " + (e
|
|
7811
|
+
<div class="omni-sub">${esc((e.cli || "") + " · " + agentDir(e))}</div>
|
|
7811
7812
|
${snip}
|
|
7812
7813
|
</div></div>`;
|
|
7813
7814
|
})
|
|
@@ -7868,7 +7869,7 @@ my.translate = async (text, lang) => {
|
|
|
7868
7869
|
kind: "fork",
|
|
7869
7870
|
branch: forkSlug(q, forkSrc.git.branch),
|
|
7870
7871
|
srcBranch: forkSrc.git.branch,
|
|
7871
|
-
fromCwd: forkSrc
|
|
7872
|
+
fromCwd: agentDir(forkSrc),
|
|
7872
7873
|
cli: forkSrc.cli,
|
|
7873
7874
|
src: forkSrc._src,
|
|
7874
7875
|
});
|
|
@@ -8043,7 +8044,11 @@ my.translate = async (text, lang) => {
|
|
|
8043
8044
|
if (forceSpawn || (row && row.kind === "spawn")) {
|
|
8044
8045
|
closeOmni(false); // committing — keep the bg as-is, spawnAndSelect takes over
|
|
8045
8046
|
await spawnAndSelect(
|
|
8046
|
-
{
|
|
8047
|
+
{
|
|
8048
|
+
cli: anchor?.cli || "claude",
|
|
8049
|
+
cwd: agentDir(anchor) || undefined,
|
|
8050
|
+
prompt: q || undefined,
|
|
8051
|
+
},
|
|
8047
8052
|
anchor?._src,
|
|
8048
8053
|
);
|
|
8049
8054
|
return;
|
|
@@ -8068,7 +8073,7 @@ my.translate = async (text, lang) => {
|
|
|
8068
8073
|
return;
|
|
8069
8074
|
}
|
|
8070
8075
|
if (row && row.kind === "spawncwd") {
|
|
8071
|
-
const cwd = prompt("Spawn in which working directory?", anchor
|
|
8076
|
+
const cwd = prompt("Spawn in which working directory?", agentDir(anchor));
|
|
8072
8077
|
if (cwd == null) return; // cancelled
|
|
8073
8078
|
closeOmni(false);
|
|
8074
8079
|
await spawnAndSelect(
|
|
@@ -8883,7 +8888,7 @@ my.translate = async (text, lang) => {
|
|
|
8883
8888
|
.filter((e) => (room ? e._src === room : true))
|
|
8884
8889
|
.sort((a, b) => (b.exit_code == null) - (a.exit_code == null));
|
|
8885
8890
|
for (const e of pool) {
|
|
8886
|
-
const c = (e
|
|
8891
|
+
const c = agentDir(e).replace(/\/+$/, "");
|
|
8887
8892
|
if (c && !seen.has(c)) {
|
|
8888
8893
|
seen.add(c);
|
|
8889
8894
|
out.push(`<option value="${esc(c)}"></option>`);
|
|
@@ -8893,7 +8898,7 @@ my.translate = async (text, lang) => {
|
|
|
8893
8898
|
}
|
|
8894
8899
|
function showNew() {
|
|
8895
8900
|
const here = entries.find((x) => x._key === sel);
|
|
8896
|
-
const cwd = here
|
|
8901
|
+
const cwd = agentDir(here);
|
|
8897
8902
|
// CLI preselect chain: current selected agent > last-used > none (forces
|
|
8898
8903
|
// an explicit pick — the Launch handler refuses an empty CLI).
|
|
8899
8904
|
let lastCli = "";
|
|
@@ -9217,7 +9222,7 @@ my.translate = async (text, lang) => {
|
|
|
9217
9222
|
(e) =>
|
|
9218
9223
|
(room ? e._src === room : true) &&
|
|
9219
9224
|
e.exit_code == null &&
|
|
9220
|
-
norm(e
|
|
9225
|
+
norm(agentDir(e)) === norm(spec.cwd),
|
|
9221
9226
|
);
|
|
9222
9227
|
if (
|
|
9223
9228
|
busy &&
|
package/package.json
CHANGED
package/ts/serve.ts
CHANGED
|
@@ -87,6 +87,7 @@ import {
|
|
|
87
87
|
resolveSpawnCwd,
|
|
88
88
|
allowsSkipPermissions,
|
|
89
89
|
} from "./workspaceConfig.ts";
|
|
90
|
+
import { resolveWorkDir } from "./workDir.ts";
|
|
90
91
|
|
|
91
92
|
const DEFAULT_PORT = 0;
|
|
92
93
|
const PORTLESS_APP_NAME = "agent-yes";
|
|
@@ -2538,8 +2539,12 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
2538
2539
|
// collaborator sees input land even when they weren't the one sending it) and can
|
|
2539
2540
|
// sort by it. See resolveLastStdinAt / noteStdinWrite. Null for exited agents.
|
|
2540
2541
|
const lastStdinAt = status !== "exited" ? await resolveLastStdinAt(r) : null;
|
|
2542
|
+
// Where the agent works now (its shells' cwd, sampled by the Rust wrapper),
|
|
2543
|
+
// not just where it was spawned: the console labels and groups agents by it.
|
|
2544
|
+
const where = await resolveWorkDir(r);
|
|
2541
2545
|
return {
|
|
2542
2546
|
...r,
|
|
2547
|
+
...where,
|
|
2543
2548
|
last_active_at: lastActiveAt,
|
|
2544
2549
|
last_stdin_at: lastStdinAt,
|
|
2545
2550
|
// Precedence: exited stays exited; the Rust supervisor's unresponsive flag is
|
|
@@ -2553,7 +2558,7 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
2553
2558
|
question,
|
|
2554
2559
|
title: await logTitle(r.log_file),
|
|
2555
2560
|
status_text: status === "exited" ? null : await logStatusText(r.log_file),
|
|
2556
|
-
git: status === "exited" ? null : await gitStatus(
|
|
2561
|
+
git: status === "exited" ? null : await gitStatus(where.workdir),
|
|
2557
2562
|
// Task progress from the rendered todo block (null when none detected → no
|
|
2558
2563
|
// badge). Skipped for exited agents — their screen is no longer live.
|
|
2559
2564
|
tasks: status === "exited" ? null : await logTasks(r.log_file),
|
package/dist/trayApp-4sRZjNFr.js
DELETED