agent-yes 1.209.0 → 1.210.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-BpUR991B.js → SUPPORTED_CLIS-Bt_f3in1.js} +2 -2
- package/dist/SUPPORTED_CLIS-F9c0Petn.js +9 -0
- package/dist/{agentShare-Bbm1buCh.js → agentShare-suZUae3g.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-CuGUVybF.js → notifyDaemon-Clgf_2Nq.js} +2 -2
- package/dist/{rustBinary-D1akhp-t.js → rustBinary-BYMB8sMY.js} +2 -2
- package/dist/{schedule-GpXGrnVP.js → schedule-Cj9kmfyV.js} +4 -4
- package/dist/{serve-DXqNeB3C.js → serve-BNUpxcPX.js} +12 -12
- package/dist/{setup-D7d3G-2r.js → setup-BFzUJMvC.js} +2 -2
- package/dist/{subcommands-BpmSru_8.js → subcommands-B_7mjS2j.js} +1 -1
- package/dist/{subcommands-BBJOPSTV.js → subcommands-Dm3H3p9U.js} +7 -7
- package/dist/{ts-CtJYkOVO.js → ts-D2ZIV4tJ.js} +2 -2
- package/dist/{versionChecker-C9Q1qyKO.js → versionChecker-CrlPY6cd.js} +2 -2
- package/dist/{ws-8BZZijYd.js → ws-D1twskGy.js} +2 -2
- package/lab/ui/console-logic.js +22 -15
- package/lab/ui/index.html +73 -21
- package/lab/ui/sw.js +1 -0
- package/package.json +1 -1
- package/dist/SUPPORTED_CLIS-CzaheLtQ.js +0 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-D2ZIV4tJ.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-Bt_f3in1.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./ts-D2ZIV4tJ.js";
|
|
2
|
+
import "./logger-CDIsZ-Pp.js";
|
|
3
|
+
import "./versionChecker-CrlPY6cd.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-Bt_f3in1.js";
|
|
8
|
+
|
|
9
|
+
export { SUPPORTED_CLIS };
|
|
@@ -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-Dm3H3p9U.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-suZUae3g.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-CrlPY6cd.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-BYMB8sMY.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-B_7mjS2j.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-F9c0Petn.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-D2ZIV4tJ.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-CrlPY6cd.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-Dm3H3p9U.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-Clgf_2Nq.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-CrlPY6cd.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-BYMB8sMY.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-D2ZIV4tJ.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-CrlPY6cd.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-Bt_f3in1.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-Cj9kmfyV.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-D2ZIV4tJ.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-CrlPY6cd.js";
|
|
4
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-BYMB8sMY.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, 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-Bt_f3in1.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, k as renderLogTailLines, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, q as isTransientLockMkdirError, tt as TYPING_BADGE, u as extractBadges } from "./subcommands-Dm3H3p9U.js";
|
|
13
13
|
import "./e2e-jb0Hp43q.js";
|
|
14
14
|
import "./webrtcLink-B7REGtK2.js";
|
|
15
15
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -1868,7 +1868,7 @@ Options:
|
|
|
1868
1868
|
}
|
|
1869
1869
|
});
|
|
1870
1870
|
if (req.method === "GET" && p === "/api/ws") {
|
|
1871
|
-
const ws = await import("./ws-
|
|
1871
|
+
const ws = await import("./ws-D1twskGy.js");
|
|
1872
1872
|
try {
|
|
1873
1873
|
await ws.loadProvision();
|
|
1874
1874
|
} catch (e) {
|
|
@@ -1888,7 +1888,7 @@ Options:
|
|
|
1888
1888
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
1889
1889
|
const dirRaw = url.searchParams.get("path");
|
|
1890
1890
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
1891
|
-
const ws = await import("./ws-
|
|
1891
|
+
const ws = await import("./ws-D1twskGy.js");
|
|
1892
1892
|
let prov;
|
|
1893
1893
|
try {
|
|
1894
1894
|
prov = await ws.loadProvision();
|
|
@@ -2449,7 +2449,7 @@ Options:
|
|
|
2449
2449
|
const perm = body.perm ?? "r";
|
|
2450
2450
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
2451
2451
|
try {
|
|
2452
|
-
const { createScopedShare } = await import("./agentShare-
|
|
2452
|
+
const { createScopedShare } = await import("./agentShare-suZUae3g.js");
|
|
2453
2453
|
const share = await createScopedShare({
|
|
2454
2454
|
agent: body.agent,
|
|
2455
2455
|
perm,
|
|
@@ -2464,12 +2464,12 @@ Options:
|
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
if (req.method === "GET" && p === "/api/shares") {
|
|
2467
|
-
const { listShares } = await import("./agentShare-
|
|
2467
|
+
const { listShares } = await import("./agentShare-suZUae3g.js");
|
|
2468
2468
|
return Response.json(listShares());
|
|
2469
2469
|
}
|
|
2470
2470
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
2471
2471
|
if (req.method === "DELETE" && revokeM) {
|
|
2472
|
-
const { revokeShare } = await import("./agentShare-
|
|
2472
|
+
const { revokeShare } = await import("./agentShare-suZUae3g.js");
|
|
2473
2473
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
2474
2474
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
2475
2475
|
}
|
|
@@ -2655,7 +2655,7 @@ Options:
|
|
|
2655
2655
|
const shutdown = (resolve) => {
|
|
2656
2656
|
if (heartbeat) clearInterval(heartbeat);
|
|
2657
2657
|
closeShare?.();
|
|
2658
|
-
import("./agentShare-
|
|
2658
|
+
import("./agentShare-suZUae3g.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
2659
2659
|
server?.stop();
|
|
2660
2660
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
2661
2661
|
};
|
|
@@ -2668,4 +2668,4 @@ Options:
|
|
|
2668
2668
|
|
|
2669
2669
|
//#endregion
|
|
2670
2670
|
export { cmdServe };
|
|
2671
|
-
//# sourceMappingURL=serve-
|
|
2671
|
+
//# sourceMappingURL=serve-BNUpxcPX.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-BNUpxcPX.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-BFzUJMvC.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-Dm3H3p9U.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-BNUpxcPX.js");
|
|
1241
1241
|
return cmdServe(rest);
|
|
1242
1242
|
}
|
|
1243
1243
|
case "setup": {
|
|
1244
|
-
const { cmdSetup } = await import("./setup-
|
|
1244
|
+
const { cmdSetup } = await import("./setup-BFzUJMvC.js");
|
|
1245
1245
|
return cmdSetup(rest);
|
|
1246
1246
|
}
|
|
1247
1247
|
case "ws": {
|
|
1248
|
-
const { cmdWs } = await import("./ws-
|
|
1248
|
+
const { cmdWs } = await import("./ws-D1twskGy.js");
|
|
1249
1249
|
return cmdWs(rest);
|
|
1250
1250
|
}
|
|
1251
1251
|
case "schedule": {
|
|
1252
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1252
|
+
const { cmdSchedule } = await import("./schedule-Cj9kmfyV.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-Clgf_2Nq.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-Clgf_2Nq.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-Dm3H3p9U.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-CrlPY6cd.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-D2ZIV4tJ.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.210.1";
|
|
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-CrlPY6cd.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-Dm3H3p9U.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-D1twskGy.js.map
|
package/lab/ui/console-logic.js
CHANGED
|
@@ -701,23 +701,30 @@ export function fitTransform(gridW, gridH, paneW, paneH) {
|
|
|
701
701
|
return s > 0.985 && s < 1.04 ? "none" : "scale(" + s.toFixed(4) + ")";
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
//
|
|
705
|
-
//
|
|
706
|
-
//
|
|
707
|
-
//
|
|
708
|
-
//
|
|
709
|
-
//
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
704
|
+
// Fit-by-FONT: the render font size that makes a gridW×gridH-px grid fill the
|
|
705
|
+
// pane. CSS transform:scale() breaks xterm's mouse→cell mapping (events arrive
|
|
706
|
+
// in visual px but xterm divides by the UNSCALED cell metrics, so drag
|
|
707
|
+
// selection lands 1/s off) — so the shared-canvas letterbox scales the font
|
|
708
|
+
// instead: layout, hit-testing, selection, and peer-overlay math all stay
|
|
709
|
+
// native, and glyphs render crisp at their real size rather than as shrunken
|
|
710
|
+
// canvas bitmaps. Returns the new font (fractional px is fine for xterm) or
|
|
711
|
+
// null when the current font already fits snugly — same 0.985–1.04 dead band
|
|
712
|
+
// as fitTransform, so the crisp driver path never churns. Callers re-measure
|
|
713
|
+
// after applying (cell metrics round per-font) and iterate to convergence.
|
|
714
|
+
export function fitFontSize(gridW, gridH, paneW, paneH, currentFont, min = 6, max = 64) {
|
|
715
|
+
if (!gridW || !gridH || paneW <= 0 || paneH <= 0 || !(currentFont > 0)) return null;
|
|
713
716
|
const s = Math.min(paneW / gridW, paneH / gridH);
|
|
714
|
-
|
|
715
|
-
|
|
717
|
+
if (s > 0.985 && s < 1.04) return null;
|
|
718
|
+
return Math.min(max, Math.max(min, currentFont * s));
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
// Residual centering after a font fit: translate-only, in whole px. Unlike a
|
|
722
|
+
// scale, a translate moves the element's rect with it, so xterm's
|
|
723
|
+
// event-coordinate math is unaffected (coords are taken relative to the rect).
|
|
724
|
+
export function centerOffset(gridW, gridH, paneW, paneH) {
|
|
716
725
|
return {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
dx,
|
|
720
|
-
dy,
|
|
726
|
+
dx: Math.max(0, Math.round((paneW - gridW) / 2)),
|
|
727
|
+
dy: Math.max(0, Math.round((paneH - gridH) / 2)),
|
|
721
728
|
};
|
|
722
729
|
}
|
|
723
730
|
|
package/lab/ui/index.html
CHANGED
|
@@ -1801,6 +1801,12 @@
|
|
|
1801
1801
|
background: var(--line);
|
|
1802
1802
|
}
|
|
1803
1803
|
</style>
|
|
1804
|
+
<!-- Fetch the critical console modules while the browser is still parsing the
|
|
1805
|
+
document. Without these hints they are discovered near the end of <body>,
|
|
1806
|
+
adding a serial network step before the first room can connect. -->
|
|
1807
|
+
<link rel="modulepreload" href="./console-logic.js" />
|
|
1808
|
+
<link rel="modulepreload" href="./rtc.js" />
|
|
1809
|
+
<link rel="modulepreload" href="./e2e.js" />
|
|
1804
1810
|
<link
|
|
1805
1811
|
rel="stylesheet"
|
|
1806
1812
|
href="https://cdn.jsdelivr.net/npm/@xterm/xterm@5.5.0/css/xterm.min.css"
|
|
@@ -2164,7 +2170,8 @@
|
|
|
2164
2170
|
selFromBottom,
|
|
2165
2171
|
parseSel,
|
|
2166
2172
|
selSegments,
|
|
2167
|
-
|
|
2173
|
+
fitFontSize,
|
|
2174
|
+
centerOffset,
|
|
2168
2175
|
docTitle,
|
|
2169
2176
|
omniScore,
|
|
2170
2177
|
} from "./console-logic.js";
|
|
@@ -2221,6 +2228,10 @@
|
|
|
2221
2228
|
localStorage.setItem("ay.fontSize", String(termFontSize));
|
|
2222
2229
|
} catch {}
|
|
2223
2230
|
if (term) {
|
|
2231
|
+
// The user changed their DESIRED size — drop any fit-derived render
|
|
2232
|
+
// font and restart the fit from the new desire (applyCanvasScale
|
|
2233
|
+
// converges it; for the driver / min viewer it lands exactly here).
|
|
2234
|
+
renderFontSize = 0;
|
|
2224
2235
|
term.options.fontSize = termFontSize;
|
|
2225
2236
|
// Negotiating host: the grid is canonical (host-owned) — a font change
|
|
2226
2237
|
// here only alters our glyph px, so re-letterbox and report the new
|
|
@@ -3293,7 +3304,19 @@
|
|
|
3293
3304
|
try {
|
|
3294
3305
|
if (!isReadonlyEnt(cur.e) && fit) {
|
|
3295
3306
|
const d = fit.proposeDimensions();
|
|
3296
|
-
if (d && d.cols > 0 && d.rows > 0)
|
|
3307
|
+
if (d && d.cols > 0 && d.rows > 0) {
|
|
3308
|
+
// proposeDimensions measures at the RENDER font, which may be the
|
|
3309
|
+
// fit-derived letterbox size — but capacity is defined at the
|
|
3310
|
+
// user's DESIRED font (termFontSize). Rescale by the font ratio
|
|
3311
|
+
// (cell px ∝ font px), else a letterboxed viewer's grown render
|
|
3312
|
+
// font would shrink its reported cap and feed back into the
|
|
3313
|
+
// negotiation as a death spiral.
|
|
3314
|
+
const k = (renderFontSize || termFontSize) / termFontSize;
|
|
3315
|
+
cap = {
|
|
3316
|
+
cols: Math.max(1, Math.floor(d.cols * k)),
|
|
3317
|
+
rows: Math.max(1, Math.floor(d.rows * k)),
|
|
3318
|
+
};
|
|
3319
|
+
}
|
|
3297
3320
|
}
|
|
3298
3321
|
} catch {}
|
|
3299
3322
|
cur.tx
|
|
@@ -3605,18 +3628,29 @@
|
|
|
3605
3628
|
ov.innerHTML = html.join("");
|
|
3606
3629
|
}
|
|
3607
3630
|
|
|
3608
|
-
// ---- shared canvas:
|
|
3631
|
+
// ---- shared canvas: fit the grid to our pane BY FONT SIZE ---------------
|
|
3609
3632
|
// When we render at the canonical (driver/agent) grid size and it doesn't
|
|
3610
|
-
// match our pane,
|
|
3611
|
-
//
|
|
3612
|
-
//
|
|
3613
|
-
//
|
|
3614
|
-
|
|
3633
|
+
// match our pane, adjust the render FONT so the grid fills the pane —
|
|
3634
|
+
// never a CSS transform:scale(). A scale breaks xterm's mouse→cell
|
|
3635
|
+
// mapping (events arrive in visual px, xterm divides by the unscaled cell
|
|
3636
|
+
// metrics → drag selection lands 1/s off); a font change keeps layout,
|
|
3637
|
+
// hit-testing, and the peer overlay all native, and glyphs render crisp
|
|
3638
|
+
// at their real size. The residual letterbox (cell rounding) is centered
|
|
3639
|
+
// with a translate-only transform, which moves the rect and therefore
|
|
3640
|
+
// does NOT disturb the coordinate math.
|
|
3641
|
+
//
|
|
3642
|
+
// renderFontSize is the fit-derived size actually rendered; termFontSize
|
|
3643
|
+
// stays the USER's desired size — the pinch/menu zoom control and the
|
|
3644
|
+
// capacity (presence cap) basis. For the driver / min viewer the grid
|
|
3645
|
+
// matches the pane at the desired font (dead band) → renderFontSize
|
|
3646
|
+
// converges back to termFontSize and no transform is applied, so the
|
|
3647
|
+
// common path stays byte-for-byte crisp. Best-effort + guarded.
|
|
3648
|
+
let renderFontSize = 0; // 0 = following termFontSize (no fit override)
|
|
3649
|
+
function applyCanvasScale(depth = 0) {
|
|
3615
3650
|
try {
|
|
3616
3651
|
const logEl = $("log");
|
|
3617
3652
|
const xt = logEl && logEl.querySelector(".xterm");
|
|
3618
|
-
if (!xt) return;
|
|
3619
|
-
xt.style.transform = "none"; // measure the natural (unscaled) grid
|
|
3653
|
+
if (!xt || !term) return;
|
|
3620
3654
|
const screen = xt.querySelector(".xterm-screen");
|
|
3621
3655
|
if (!screen) return;
|
|
3622
3656
|
const gw = screen.offsetWidth,
|
|
@@ -3625,12 +3659,18 @@
|
|
|
3625
3659
|
const cs = getComputedStyle(logEl);
|
|
3626
3660
|
const pw = logEl.clientWidth - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight);
|
|
3627
3661
|
const ph = logEl.clientHeight - parseFloat(cs.paddingTop) - parseFloat(cs.paddingBottom);
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
//
|
|
3631
|
-
//
|
|
3632
|
-
|
|
3633
|
-
|
|
3662
|
+
const cur = renderFontSize || termFontSize;
|
|
3663
|
+
const nf = fitFontSize(gw, gh, pw, ph, cur);
|
|
3664
|
+
// Cell metrics round per font size, so one analytic step may land a
|
|
3665
|
+
// hair off — re-measure and iterate (bounded) until inside the band.
|
|
3666
|
+
if (nf != null && Math.abs(nf - cur) >= 0.25 && depth < 3) {
|
|
3667
|
+
renderFontSize = nf;
|
|
3668
|
+
term.options.fontSize = nf;
|
|
3669
|
+
requestAnimationFrame(() => applyCanvasScale(depth + 1));
|
|
3670
|
+
return;
|
|
3671
|
+
}
|
|
3672
|
+
const { dx, dy } = centerOffset(gw, gh, pw, ph);
|
|
3673
|
+
xt.style.transform = dx || dy ? `translate(${dx}px, ${dy}px)` : "none";
|
|
3634
3674
|
} catch {}
|
|
3635
3675
|
}
|
|
3636
3676
|
// Pane geometry changed (window resize, splitter drag, soft keyboard, tab
|
|
@@ -5153,6 +5193,7 @@
|
|
|
5153
5193
|
}
|
|
5154
5194
|
const logEl = $("log");
|
|
5155
5195
|
logEl.innerHTML = "";
|
|
5196
|
+
renderFontSize = 0; // fresh terminal starts at the desired font (no fit override)
|
|
5156
5197
|
term = new Terminal({
|
|
5157
5198
|
convertEol: false,
|
|
5158
5199
|
disableStdin: false,
|
|
@@ -6507,10 +6548,14 @@
|
|
|
6507
6548
|
loadList();
|
|
6508
6549
|
}
|
|
6509
6550
|
|
|
6510
|
-
// Connect to every saved room at once (called on boot).
|
|
6511
|
-
|
|
6551
|
+
// Connect to every saved room at once (called on boot). A room already
|
|
6552
|
+
// started from the URL/hash can be skipped so it gets a brief uncontended
|
|
6553
|
+
// head start before the rest of the fleet performs crypto + ICE setup.
|
|
6554
|
+
function connectAllRooms(exceptRoom = null) {
|
|
6512
6555
|
const r = loadRooms();
|
|
6513
|
-
for (const name of Object.keys(r))
|
|
6556
|
+
for (const name of Object.keys(r)) {
|
|
6557
|
+
if (name !== exceptRoom) addRoomSource(name, r[name].token, r[name].host);
|
|
6558
|
+
}
|
|
6514
6559
|
}
|
|
6515
6560
|
|
|
6516
6561
|
// Back-compat alias: a freshly pasted/linked room is added like any other.
|
|
@@ -7041,8 +7086,15 @@
|
|
|
7041
7086
|
// saved room in the BACKGROUND so a dead/slow room never blanks the page,
|
|
7042
7087
|
// and they all stream their agents into one list at once.
|
|
7043
7088
|
startPolling();
|
|
7044
|
-
if (pending)
|
|
7045
|
-
|
|
7089
|
+
if (pending) {
|
|
7090
|
+
connectRoom(pending.room, pending.token, pending.host);
|
|
7091
|
+
// On a returning console, several simultaneous WebRTC handshakes compete
|
|
7092
|
+
// with the selected room for CPU and network setup. Let that room start
|
|
7093
|
+
// first, then fan out quickly enough that the fleet still feels instant.
|
|
7094
|
+
setTimeout(() => connectAllRooms(pending.room), 150);
|
|
7095
|
+
} else {
|
|
7096
|
+
connectAllRooms();
|
|
7097
|
+
}
|
|
7046
7098
|
}
|
|
7047
7099
|
|
|
7048
7100
|
// Deep-link navigation in an ALREADY-OPEN console. boot() only processes the
|
package/lab/ui/sw.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./ts-CtJYkOVO.js";
|
|
2
|
-
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-C9Q1qyKO.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-BpUR991B.js";
|
|
8
|
-
|
|
9
|
-
export { SUPPORTED_CLIS };
|