agent-yes 1.221.1 → 1.221.2
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-BpHO3Olt.js +9 -0
- package/dist/{SUPPORTED_CLIS-CUPF0wEe.js → SUPPORTED_CLIS-XvIdpuka.js} +2 -2
- package/dist/{agentShare-Bbdy8MKW.js → agentShare-lDGMii27.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-CPyPTBL5.js → notifyDaemon-BOC89ozJ.js} +2 -2
- package/dist/{rustBinary-DrQ0MBY_.js → rustBinary-Ct_pVsHF.js} +2 -2
- package/dist/{schedule-Bj2KaiMh.js → schedule-DIV4kZct.js} +4 -4
- package/dist/{serve-C9nCZ2k0.js → serve-Dm0mZ-BT.js} +12 -12
- package/dist/{setup-B70ZV1aE.js → setup-CTCgp9Nr.js} +2 -2
- package/dist/{subcommands-re9wZB3T.js → subcommands-BMw7O4wI.js} +1 -1
- package/dist/{subcommands-DzGeZpfs.js → subcommands-Cu1qWOly.js} +7 -7
- package/dist/{ts-B8jTQxjO.js → ts-DRvx0ZrV.js} +2 -2
- package/dist/{versionChecker-Db6hxBm6.js → versionChecker-BP7lH0Rg.js} +2 -2
- package/dist/{ws-ymzCIG7O.js → ws-BcS028O3.js} +2 -2
- package/lab/ui/index.html +15 -2
- package/package.json +1 -1
- package/dist/SUPPORTED_CLIS-C6e_-_R5.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./ts-DRvx0ZrV.js";
|
|
2
|
+
import "./logger-CDIsZ-Pp.js";
|
|
3
|
+
import "./versionChecker-BP7lH0Rg.js";
|
|
4
|
+
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
+
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
+
import "./messageLog-CxrKJj77.js";
|
|
7
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-XvIdpuka.js";
|
|
8
|
+
|
|
9
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DRvx0ZrV.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-XvIdpuka.js.map
|
|
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { M as resolveOne } from "./subcommands-
|
|
5
|
+
import { M as resolveOne } from "./subcommands-Cu1qWOly.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
232
|
-
//# sourceMappingURL=agentShare-
|
|
232
|
+
//# sourceMappingURL=agentShare-lDGMii27.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-uqM2YYA7.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { n as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BP7lH0Rg.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-Ct_pVsHF.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -285,7 +285,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
285
285
|
const rawArg = process.argv[2];
|
|
286
286
|
const managerCommands = !invokedCliName(process.argv);
|
|
287
287
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
288
|
-
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-
|
|
288
|
+
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-BMw7O4wI.js");
|
|
289
289
|
if (isHelpFlag && process.argv.length === 3) {
|
|
290
290
|
await cmdHelp(managerCommands);
|
|
291
291
|
process.exit(0);
|
|
@@ -327,7 +327,7 @@ if (config.useRust) {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
if (rustBinary) {
|
|
330
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
330
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BpHO3Olt.js");
|
|
331
331
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
332
332
|
if (config.verbose) {
|
|
333
333
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-DRvx0ZrV.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-BP7lH0Rg.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
6
|
import "./messageLog-CxrKJj77.js";
|
|
@@ -2,7 +2,7 @@ import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { $ as daemonLockOwnerPath, G as gcInboxes, J as listInboxParents, K as hostId, Q as daemonLockDir, S as listRecords, W as appendEvent, X as readInbox, Y as liveWatchers, Z as shouldStealLock, _ as isPidAlive, c as deriveLiveState, et as notifyDir, k as renderLogTailLines } from "./subcommands-
|
|
5
|
+
import { $ as daemonLockOwnerPath, G as gcInboxes, J as listInboxParents, K as hostId, Q as daemonLockDir, S as listRecords, W as appendEvent, X as readInbox, Y as liveWatchers, Z as shouldStealLock, _ as isPidAlive, c as deriveLiveState, et as notifyDir, k as renderLogTailLines } from "./subcommands-Cu1qWOly.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -589,4 +589,4 @@ async function ensureDaemon() {
|
|
|
589
589
|
|
|
590
590
|
//#endregion
|
|
591
591
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
592
|
-
//# sourceMappingURL=notifyDaemon-
|
|
592
|
+
//# sourceMappingURL=notifyDaemon-BOC89ozJ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-BP7lH0Rg.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -225,4 +225,4 @@ async function getRustBinary(options = {}) {
|
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
227
|
export { getRustBinary as n, findSpawnHiddenLauncher as t };
|
|
228
|
-
//# sourceMappingURL=rustBinary-
|
|
228
|
+
//# sourceMappingURL=rustBinary-Ct_pVsHF.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-DRvx0ZrV.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-BP7lH0Rg.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
6
|
import "./messageLog-CxrKJj77.js";
|
|
7
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
7
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-XvIdpuka.js";
|
|
8
8
|
import { d as resolveSpawnCwd } from "./workspaceConfig-CjaRvTjf.js";
|
|
9
9
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CwNJuwH5.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
@@ -151,4 +151,4 @@ async function cmdSchedule(rest) {
|
|
|
151
151
|
|
|
152
152
|
//#endregion
|
|
153
153
|
export { cmdSchedule };
|
|
154
|
-
//# sourceMappingURL=schedule-
|
|
154
|
+
//# sourceMappingURL=schedule-DIV4kZct.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-DRvx0ZrV.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
4
|
-
import { t as findSpawnHiddenLauncher } from "./rustBinary-
|
|
3
|
+
import { r as getInstalledPackage } from "./versionChecker-BP7lH0Rg.js";
|
|
4
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-Ct_pVsHF.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-CtHb5b71.js";
|
|
6
6
|
import "./pidStore-BIvsBQ8X.js";
|
|
7
7
|
import { a as updateGlobalPidStatus } from "./globalPidIndex-CoNr7tS8.js";
|
|
8
8
|
import { r as recordInbox } from "./messageLog-CxrKJj77.js";
|
|
9
9
|
import { t as pgidForWrapper } from "./reaper-BUHCyxdF.js";
|
|
10
10
|
import "./configShared-aKTg-sa5.js";
|
|
11
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
12
|
-
import { A as renderRawLog, D as recentMessageEdges, E as readPtysize, L as snapshotStatus, M as resolveOne, O as recentReadEdges, S as listRecords, T as readNotes, U as writeToIpc, b as isUserTyping, f as extractNeedsInput, j as renderRawLogLines, k as renderLogTailLines, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, q as isTransientLockMkdirError, tt as TYPING_BADGE, u as extractBadges } from "./subcommands-
|
|
11
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-XvIdpuka.js";
|
|
12
|
+
import { A as renderRawLog, D as recentMessageEdges, E as readPtysize, L as snapshotStatus, M as resolveOne, O as recentReadEdges, S as listRecords, T as readNotes, U as writeToIpc, b as isUserTyping, f as extractNeedsInput, j as renderRawLogLines, k as renderLogTailLines, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, q as isTransientLockMkdirError, tt as TYPING_BADGE, u as extractBadges } from "./subcommands-Cu1qWOly.js";
|
|
13
13
|
import "./e2e-jb0Hp43q.js";
|
|
14
14
|
import "./webrtcLink-B7REGtK2.js";
|
|
15
15
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -1987,7 +1987,7 @@ Options:
|
|
|
1987
1987
|
}
|
|
1988
1988
|
});
|
|
1989
1989
|
if (req.method === "GET" && p === "/api/ws") {
|
|
1990
|
-
const ws = await import("./ws-
|
|
1990
|
+
const ws = await import("./ws-BcS028O3.js");
|
|
1991
1991
|
try {
|
|
1992
1992
|
await ws.loadProvision();
|
|
1993
1993
|
} catch (e) {
|
|
@@ -2007,7 +2007,7 @@ Options:
|
|
|
2007
2007
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2008
2008
|
const dirRaw = url.searchParams.get("path");
|
|
2009
2009
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2010
|
-
const ws = await import("./ws-
|
|
2010
|
+
const ws = await import("./ws-BcS028O3.js");
|
|
2011
2011
|
let prov;
|
|
2012
2012
|
try {
|
|
2013
2013
|
prov = await ws.loadProvision();
|
|
@@ -2568,7 +2568,7 @@ Options:
|
|
|
2568
2568
|
const perm = body.perm ?? "r";
|
|
2569
2569
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
2570
2570
|
try {
|
|
2571
|
-
const { createScopedShare } = await import("./agentShare-
|
|
2571
|
+
const { createScopedShare } = await import("./agentShare-lDGMii27.js");
|
|
2572
2572
|
const share = await createScopedShare({
|
|
2573
2573
|
agent: body.agent,
|
|
2574
2574
|
perm,
|
|
@@ -2583,12 +2583,12 @@ Options:
|
|
|
2583
2583
|
}
|
|
2584
2584
|
}
|
|
2585
2585
|
if (req.method === "GET" && p === "/api/shares") {
|
|
2586
|
-
const { listShares } = await import("./agentShare-
|
|
2586
|
+
const { listShares } = await import("./agentShare-lDGMii27.js");
|
|
2587
2587
|
return Response.json(listShares());
|
|
2588
2588
|
}
|
|
2589
2589
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
2590
2590
|
if (req.method === "DELETE" && revokeM) {
|
|
2591
|
-
const { revokeShare } = await import("./agentShare-
|
|
2591
|
+
const { revokeShare } = await import("./agentShare-lDGMii27.js");
|
|
2592
2592
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
2593
2593
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
2594
2594
|
}
|
|
@@ -2821,7 +2821,7 @@ Options:
|
|
|
2821
2821
|
const shutdown = (resolve) => {
|
|
2822
2822
|
if (heartbeat) clearInterval(heartbeat);
|
|
2823
2823
|
closeShare?.();
|
|
2824
|
-
import("./agentShare-
|
|
2824
|
+
import("./agentShare-lDGMii27.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
2825
2825
|
server?.stop();
|
|
2826
2826
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
2827
2827
|
};
|
|
@@ -2834,4 +2834,4 @@ Options:
|
|
|
2834
2834
|
|
|
2835
2835
|
//#endregion
|
|
2836
2836
|
export { cmdServe };
|
|
2837
|
-
//# sourceMappingURL=serve-
|
|
2837
|
+
//# sourceMappingURL=serve-Dm0mZ-BT.js.map
|
|
@@ -32,7 +32,7 @@ async function cmdSetup(rest) {
|
|
|
32
32
|
if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
|
|
33
33
|
if (noShare) return 0;
|
|
34
34
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
35
|
-
const { cmdServe } = await import("./serve-
|
|
35
|
+
const { cmdServe } = await import("./serve-Dm0mZ-BT.js");
|
|
36
36
|
return cmdServe([
|
|
37
37
|
"install",
|
|
38
38
|
"--share",
|
|
@@ -42,4 +42,4 @@ async function cmdSetup(rest) {
|
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { cmdSetup };
|
|
45
|
-
//# sourceMappingURL=setup-
|
|
45
|
+
//# sourceMappingURL=setup-CTCgp9Nr.js.map
|
|
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { A as renderRawLog, B as submitAndConfirm, C as matchKeyword, D as recentMessageEdges, E as readPtysize, F as restartHintLines, H as writeKeysPaced, I as runSubcommand, L as snapshotStatus, M as resolveOne, N as resolveReadWindow, O as recentReadEdges, P as resolveResumeArgs, R as stdinActivityPath, S as listRecords, T as readNotes, U as writeToIpc, V as waitForLogQuiet, _ as isPidAlive, a as cmdHelp, b as isUserTyping, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderRawLogLines, k as renderLogTailLines, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as menuSelectKeys, x as lastStdinAt, y as isSubcommand, z as stopTipForCli } from "./subcommands-
|
|
5
|
+
import { A as renderRawLog, B as submitAndConfirm, C as matchKeyword, D as recentMessageEdges, E as readPtysize, F as restartHintLines, H as writeKeysPaced, I as runSubcommand, L as snapshotStatus, M as resolveOne, N as resolveReadWindow, O as recentReadEdges, P as resolveResumeArgs, R as stdinActivityPath, S as listRecords, T as readNotes, U as writeToIpc, V as waitForLogQuiet, _ as isPidAlive, a as cmdHelp, b as isUserTyping, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderRawLogLines, k as renderLogTailLines, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as menuSelectKeys, x as lastStdinAt, y as isSubcommand, z as stopTipForCli } from "./subcommands-Cu1qWOly.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -1237,19 +1237,19 @@ async function runSubcommand(argv) {
|
|
|
1237
1237
|
case "restart": return await cmdRestart(rest);
|
|
1238
1238
|
case "note": return await cmdNote(rest);
|
|
1239
1239
|
case "serve": {
|
|
1240
|
-
const { cmdServe } = await import("./serve-
|
|
1240
|
+
const { cmdServe } = await import("./serve-Dm0mZ-BT.js");
|
|
1241
1241
|
return cmdServe(rest);
|
|
1242
1242
|
}
|
|
1243
1243
|
case "setup": {
|
|
1244
|
-
const { cmdSetup } = await import("./setup-
|
|
1244
|
+
const { cmdSetup } = await import("./setup-CTCgp9Nr.js");
|
|
1245
1245
|
return cmdSetup(rest);
|
|
1246
1246
|
}
|
|
1247
1247
|
case "ws": {
|
|
1248
|
-
const { cmdWs } = await import("./ws-
|
|
1248
|
+
const { cmdWs } = await import("./ws-BcS028O3.js");
|
|
1249
1249
|
return cmdWs(rest);
|
|
1250
1250
|
}
|
|
1251
1251
|
case "schedule": {
|
|
1252
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1252
|
+
const { cmdSchedule } = await import("./schedule-DIV4kZct.js");
|
|
1253
1253
|
return cmdSchedule(rest);
|
|
1254
1254
|
}
|
|
1255
1255
|
case "remote": {
|
|
@@ -4269,7 +4269,7 @@ async function cmdNotify(rest) {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
const ensure = async () => {
|
|
4271
4271
|
if (!argv["ensure-daemon"]) return;
|
|
4272
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4272
|
+
const { ensureDaemon } = await import("./notifyDaemon-BOC89ozJ.js");
|
|
4273
4273
|
await ensureDaemon().catch(() => null);
|
|
4274
4274
|
};
|
|
4275
4275
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4343,7 +4343,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4343
4343
|
}
|
|
4344
4344
|
async function cmdNotifyd(rest) {
|
|
4345
4345
|
const sub = rest[0] ?? "status";
|
|
4346
|
-
const daemon = await import("./notifyDaemon-
|
|
4346
|
+
const daemon = await import("./notifyDaemon-BOC89ozJ.js");
|
|
4347
4347
|
switch (sub) {
|
|
4348
4348
|
case "run": return daemon.runDaemon();
|
|
4349
4349
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4370,4 +4370,4 @@ async function cmdNotifyd(rest) {
|
|
|
4370
4370
|
|
|
4371
4371
|
//#endregion
|
|
4372
4372
|
export { daemonLockOwnerPath as $, renderRawLog as A, submitAndConfirm as B, matchKeyword as C, recentMessageEdges as D, readPtysize as E, restartHintLines as F, gcInboxes as G, writeKeysPaced as H, runSubcommand as I, listInboxParents as J, hostId as K, snapshotStatus as L, resolveOne as M, resolveReadWindow as N, recentReadEdges as O, resolveResumeArgs as P, daemonLockDir as Q, stdinActivityPath as R, listRecords as S, readNotes as T, writeToIpc as U, waitForLogQuiet as V, appendEvent as W, readInbox as X, liveWatchers as Y, shouldStealLock as Z, isPidAlive as _, cmdHelp as a, isUserTyping as b, deriveLiveState as c, extractMenu as d, notifyDir as et, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, renderRawLogLines as j, renderLogTailLines as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, controlCodeFromName as o, extractTaskCounts as p, isTransientLockMkdirError as q, TYPING_WINDOW_MS as r, cursorAbs as s, GRACEFUL_EXIT_COMMANDS as t, TYPING_BADGE as tt, extractBadges as u, isSlashCommand as v, menuSelectKeys as w, lastStdinAt as x, isSubcommand as y, stopTipForCli as z };
|
|
4373
|
-
//# sourceMappingURL=subcommands-
|
|
4373
|
+
//# sourceMappingURL=subcommands-Cu1qWOly.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-BP7lH0Rg.js";
|
|
3
3
|
import { t as agentYesHome } from "./agentYesHome-CtHb5b71.js";
|
|
4
4
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-CNMl13dC.js";
|
|
5
5
|
import { t as PidStore } from "./pidStore-BIvsBQ8X.js";
|
|
@@ -1901,4 +1901,4 @@ function sleep(ms) {
|
|
|
1901
1901
|
|
|
1902
1902
|
//#endregion
|
|
1903
1903
|
export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
|
|
1904
|
-
//# sourceMappingURL=ts-
|
|
1904
|
+
//# sourceMappingURL=ts-DRvx0ZrV.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.221.
|
|
10
|
+
var version = "1.221.2";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -215,4 +215,4 @@ async function displayVersion() {
|
|
|
215
215
|
|
|
216
216
|
//#endregion
|
|
217
217
|
export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
|
|
218
|
-
//# sourceMappingURL=versionChecker-
|
|
218
|
+
//# sourceMappingURL=versionChecker-BP7lH0Rg.js.map
|
|
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { S as listRecords } from "./subcommands-
|
|
5
|
+
import { S as listRecords } from "./subcommands-Cu1qWOly.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -418,4 +418,4 @@ async function cmdWs(args) {
|
|
|
418
418
|
|
|
419
419
|
//#endregion
|
|
420
420
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, workspaceStatus };
|
|
421
|
-
//# sourceMappingURL=ws-
|
|
421
|
+
//# sourceMappingURL=ws-BcS028O3.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -7225,7 +7225,16 @@ my.translate = async (text, lang) => {
|
|
|
7225
7225
|
// left the room dead until a manual reload. Retry with jittered backoff
|
|
7226
7226
|
// until the room is forgotten.
|
|
7227
7227
|
const RTC_BACKOFF_MIN = 1000,
|
|
7228
|
-
RTC_BACKOFF_MAX = 30000
|
|
7228
|
+
RTC_BACKOFF_MAX = 30000,
|
|
7229
|
+
// A room that keeps failing (its daemon is gone, not restarting) backs
|
|
7230
|
+
// off much further: 5 dead saved rooms at the 30s cap meant an 8s
|
|
7231
|
+
// connect attempt was in flight almost continuously — a permanent
|
|
7232
|
+
// signaling + ICE storm that measurably slowed the LIVE rooms and
|
|
7233
|
+
// flooded the console with [ay-perf] connect.fail logs. After
|
|
7234
|
+
// RTC_DEAD_AFTER consecutive failures the cap grows to 5 minutes; one
|
|
7235
|
+
// healthy connect resets everything.
|
|
7236
|
+
RTC_BACKOFF_DEAD_MAX = 300000,
|
|
7237
|
+
RTC_DEAD_AFTER = 5;
|
|
7229
7238
|
async function connectRtcSource(s) {
|
|
7230
7239
|
s.reconnecting = true; // block overlapping attempts while this one is in flight
|
|
7231
7240
|
try {
|
|
@@ -7262,6 +7271,7 @@ my.translate = async (text, lang) => {
|
|
|
7262
7271
|
s.client = c;
|
|
7263
7272
|
s.tx = rtcTx(c);
|
|
7264
7273
|
s.reconnectDelay = RTC_BACKOFF_MIN; // a healthy connect resets the backoff
|
|
7274
|
+
s.failCount = 0; // …and the dead-room escalation (see RTC_BACKOFF_DEAD_MAX)
|
|
7265
7275
|
clearTimeout(s.reconnectTimer); // cancel any reconnect queued during replace
|
|
7266
7276
|
s.reconnectTimer = null;
|
|
7267
7277
|
subscribeSource(s); // re-establish the live delta stream over the new wire
|
|
@@ -7309,7 +7319,8 @@ my.translate = async (text, lang) => {
|
|
|
7309
7319
|
if (s.removed || s.reconnectTimer || s.reconnecting) return;
|
|
7310
7320
|
const base = s.reconnectDelay || RTC_BACKOFF_MIN;
|
|
7311
7321
|
const delay = Math.round(base * (0.75 + Math.random() * 0.5)); // jitter
|
|
7312
|
-
|
|
7322
|
+
const cap = (s.failCount || 0) >= RTC_DEAD_AFTER ? RTC_BACKOFF_DEAD_MAX : RTC_BACKOFF_MAX;
|
|
7323
|
+
s.reconnectDelay = Math.min(base * 2, cap);
|
|
7313
7324
|
s.reconnectTimer = setTimeout(async () => {
|
|
7314
7325
|
s.reconnectTimer = null;
|
|
7315
7326
|
if (s.removed || s.reconnecting) return;
|
|
@@ -7326,6 +7337,7 @@ my.translate = async (text, lang) => {
|
|
|
7326
7337
|
if (sel && sel.startsWith(s.id + "#")) select(sel);
|
|
7327
7338
|
} catch {
|
|
7328
7339
|
s.live = false;
|
|
7340
|
+
s.failCount = (s.failCount || 0) + 1; // dead-room escalation counter
|
|
7329
7341
|
scheduleRtcReconnect(s); // keep trying
|
|
7330
7342
|
}
|
|
7331
7343
|
}, delay);
|
|
@@ -7376,6 +7388,7 @@ my.translate = async (text, lang) => {
|
|
|
7376
7388
|
s.live = true;
|
|
7377
7389
|
} catch (e) {
|
|
7378
7390
|
s.live = false;
|
|
7391
|
+
s.failCount = (s.failCount || 0) + 1; // dead-room escalation counter
|
|
7379
7392
|
scheduleRtcReconnect(s);
|
|
7380
7393
|
}
|
|
7381
7394
|
s.tried = true;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./ts-B8jTQxjO.js";
|
|
2
|
-
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-Db6hxBm6.js";
|
|
4
|
-
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
-
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
-
import "./messageLog-CxrKJj77.js";
|
|
7
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CUPF0wEe.js";
|
|
8
|
-
|
|
9
|
-
export { SUPPORTED_CLIS };
|