agent-yes 1.239.0 → 1.239.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-BAjpiDmM.js → SUPPORTED_CLIS-C4CBYeSL.js} +3 -3
- package/dist/{SUPPORTED_CLIS-B1KpRTn6.js → SUPPORTED_CLIS-De3MvJYf.js} +2 -2
- package/dist/{agentShare-6AJaJhF_.js → agentShare-Dy0XIzqN.js} +2 -2
- package/dist/{browser-CEP6GcDq.js → browser-BRMyG4JA.js} +2 -2
- package/dist/{callback-FXxZhg1N.js → callback-DEUF5U-Q.js} +2 -2
- package/dist/{callback-DWCY5gUu.js → callback-P3URlIsk.js} +3 -3
- package/dist/chunk-cZBX9HZv.js +20 -0
- package/dist/cli.js +5 -5
- package/dist/html2canvas-pro.esm-BZqMtqU8.js +10898 -0
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-DrLqT7fy.js → notifyDaemon-CK9GJlPz.js} +2 -2
- package/dist/{rustBinary-BDoH3nyt.js → rustBinary-BVXIioAf.js} +2 -2
- package/dist/{schedule-Br--S5qc.js → schedule-DTaXRtFs.js} +4 -4
- package/dist/{serve-DyQ-oFbD.js → serve-B12ovZgA.js} +13 -13
- package/dist/{setup-BEwSgz1-.js → setup-BQQ5e_MZ.js} +2 -2
- package/dist/{subcommands-CImOH-GZ.js → subcommands-BL3ZoUnA.js} +11 -11
- package/dist/{subcommands-CCsfQjn6.js → subcommands-COL6eUKj.js} +1 -1
- package/dist/{terminal-oxQ_KbyG.js → terminal-BcoLexV7.js} +2 -2
- package/dist/terminal.js +1 -1
- package/dist/{ts-Dg43iOPE.js → ts-B_OFvxWb.js} +3 -3
- package/dist/{versionChecker-D8DinCka.js → versionChecker-B-ao7XzH.js} +2 -2
- package/dist/{widget-CBPw56Wj.js → widget-pdu7F8Uw.js} +14 -5
- package/dist/widget.js +9 -4
- package/dist/widgets.js +1 -1
- package/dist/{ws-RYCFiAx-.js → ws-DRoXg3iR.js} +2 -2
- package/package.json +2 -2
- package/ts/widget.ts +15 -2
- package/dist/chunk-CNLfOXRf.js +0 -43
- package/dist/html2canvas-CWk6nh1H.js +0 -6718
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import { a as hasTodoStore, c as AgentContext, i as answerAsk, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-
|
|
2
|
+
import "./versionChecker-B-ao7XzH.js";
|
|
3
|
+
import { a as hasTodoStore, c as AgentContext, i as answerAsk, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-B_OFvxWb.js";
|
|
4
4
|
import { _ as isKnownKind, a as renderTree, b as statesOf, c as monitorHint, d as openStore, f as DONE_STATE, g as initialState, h as canTransition, i as renderDigest, l as CycleError, m as ORPHANED_STATE, o as unblockedTasks, p as LIFECYCLES, r as openBlockers, s as describeBlock, t as reconcileTodos, u as TodoStore, v as nextStates, x as removeControlCharacters, y as requiredGate } from "./todoAutomation-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-9wVlbPyC.js";
|
|
6
|
-
import { $ as shouldStealLock, C as listRecords, J as hostId, K as appendEvent, Q as readInbox, X as listInboxParents, Z as liveWatchers, _ as isPidAlive, c as deriveLiveState, et as daemonLockDir, j as renderLogTailLines, nt as notifyDir, q as gcInboxes, tt as daemonLockOwnerPath } from "./subcommands-
|
|
6
|
+
import { $ as shouldStealLock, C as listRecords, J as hostId, K as appendEvent, Q as readInbox, X as listInboxParents, Z as liveWatchers, _ as isPidAlive, c as deriveLiveState, et as daemonLockDir, j as renderLogTailLines, nt as notifyDir, q as gcInboxes, tt as daemonLockOwnerPath } from "./subcommands-BL3ZoUnA.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
@@ -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-CK9GJlPz.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-B-ao7XzH.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-BVXIioAf.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-B-ao7XzH.js";
|
|
3
|
+
import "./ts-B_OFvxWb.js";
|
|
4
4
|
import "./todoAutomation-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
7
7
|
import "./pidStore-6EZd5DUv.js";
|
|
8
8
|
import "./messageLog-C-YIzhRj.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-De3MvJYf.js";
|
|
10
10
|
import { d as resolveSpawnCwd } from "./workspaceConfig-DOHygA2x.js";
|
|
11
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
@@ -153,4 +153,4 @@ async function cmdSchedule(rest) {
|
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
155
|
export { cmdSchedule };
|
|
156
|
-
//# sourceMappingURL=schedule-
|
|
156
|
+
//# sourceMappingURL=schedule-DTaXRtFs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { t as findSpawnHiddenLauncher } from "./rustBinary-
|
|
4
|
-
import { i as answerAsk, l as CLAUDE_SESSION_PIN_ENV, o as listAsks } from "./ts-
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-B-ao7XzH.js";
|
|
3
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-BVXIioAf.js";
|
|
4
|
+
import { i as answerAsk, l as CLAUDE_SESSION_PIN_ENV, o as listAsks } from "./ts-B_OFvxWb.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-CtmsY6I-.js";
|
|
6
6
|
import { x as removeControlCharacters } from "./todoAutomation-Buo457VO.js";
|
|
7
7
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
@@ -11,12 +11,12 @@ import { r as recordInbox } from "./messageLog-C-YIzhRj.js";
|
|
|
11
11
|
import { t as pgidForWrapper } from "./reaper-DP49VCKx.js";
|
|
12
12
|
import "./e2e-CEIdJGZ7.js";
|
|
13
13
|
import "./configShared-9wVlbPyC.js";
|
|
14
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
-
import { A as recentReadEdges, C as listRecords, D as readNotes, G as writeToIpc, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, Y as isTransientLockMkdirError, f as extractNeedsInput, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, rt as TYPING_BADGE, u as extractBadges, x as isUserTyping, z as snapshotStatus } from "./subcommands-
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-De3MvJYf.js";
|
|
15
|
+
import { A as recentReadEdges, C as listRecords, D as readNotes, G as writeToIpc, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, Y as isTransientLockMkdirError, f as extractNeedsInput, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, rt as TYPING_BADGE, u as extractBadges, x as isUserTyping, z as snapshotStatus } from "./subcommands-BL3ZoUnA.js";
|
|
16
16
|
import "./webrtcLink-BMYneHbu.js";
|
|
17
17
|
import "./remotes-BxQnNxQv.js";
|
|
18
18
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Dd28_cBM.js";
|
|
19
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
19
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-P3URlIsk.js";
|
|
20
20
|
import { a as getSpawnHook, c as hasProvisionHook, d as resolveSpawnCwd, i as getProvisionRoot, l as hasSpawnHook, r as getProvisionHook, u as isProvisionAllowed } from "./workspaceConfig-DOHygA2x.js";
|
|
21
21
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
|
|
22
22
|
import { r as spawnRejectionReason } from "./spawnGate-BxgS_GlF.js";
|
|
@@ -2246,7 +2246,7 @@ Options:
|
|
|
2246
2246
|
}
|
|
2247
2247
|
});
|
|
2248
2248
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2249
|
-
const ws = await import("./ws-
|
|
2249
|
+
const ws = await import("./ws-DRoXg3iR.js");
|
|
2250
2250
|
try {
|
|
2251
2251
|
await ws.loadProvision();
|
|
2252
2252
|
} catch (e) {
|
|
@@ -2266,7 +2266,7 @@ Options:
|
|
|
2266
2266
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2267
2267
|
const dirRaw = url.searchParams.get("path");
|
|
2268
2268
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2269
|
-
const ws = await import("./ws-
|
|
2269
|
+
const ws = await import("./ws-DRoXg3iR.js");
|
|
2270
2270
|
let prov;
|
|
2271
2271
|
try {
|
|
2272
2272
|
prov = await ws.loadProvision();
|
|
@@ -2989,7 +2989,7 @@ Options:
|
|
|
2989
2989
|
const perm = body.perm ?? "r";
|
|
2990
2990
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
2991
2991
|
try {
|
|
2992
|
-
const { createScopedShare } = await import("./agentShare-
|
|
2992
|
+
const { createScopedShare } = await import("./agentShare-Dy0XIzqN.js");
|
|
2993
2993
|
const share = await createScopedShare({
|
|
2994
2994
|
agent: body.agent,
|
|
2995
2995
|
perm,
|
|
@@ -3004,12 +3004,12 @@ Options:
|
|
|
3004
3004
|
}
|
|
3005
3005
|
}
|
|
3006
3006
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3007
|
-
const { listShares } = await import("./agentShare-
|
|
3007
|
+
const { listShares } = await import("./agentShare-Dy0XIzqN.js");
|
|
3008
3008
|
return Response.json(listShares());
|
|
3009
3009
|
}
|
|
3010
3010
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3011
3011
|
if (req.method === "DELETE" && revokeM) {
|
|
3012
|
-
const { revokeShare } = await import("./agentShare-
|
|
3012
|
+
const { revokeShare } = await import("./agentShare-Dy0XIzqN.js");
|
|
3013
3013
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3014
3014
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3015
3015
|
}
|
|
@@ -3311,7 +3311,7 @@ Options:
|
|
|
3311
3311
|
const shutdown = (resolve) => {
|
|
3312
3312
|
if (heartbeat) clearInterval(heartbeat);
|
|
3313
3313
|
closeShare?.();
|
|
3314
|
-
import("./agentShare-
|
|
3314
|
+
import("./agentShare-Dy0XIzqN.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3315
3315
|
server?.stop();
|
|
3316
3316
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3317
3317
|
};
|
|
@@ -3324,4 +3324,4 @@ Options:
|
|
|
3324
3324
|
|
|
3325
3325
|
//#endregion
|
|
3326
3326
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3327
|
-
//# sourceMappingURL=serve-
|
|
3327
|
+
//# sourceMappingURL=serve-B12ovZgA.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-B12ovZgA.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-BQQ5e_MZ.js.map
|
|
@@ -1267,31 +1267,31 @@ async function runSubcommand(argv) {
|
|
|
1267
1267
|
return cmdCh(rest);
|
|
1268
1268
|
}
|
|
1269
1269
|
case "term": {
|
|
1270
|
-
const { cmdTerm } = await import("./terminal-
|
|
1270
|
+
const { cmdTerm } = await import("./terminal-BcoLexV7.js");
|
|
1271
1271
|
return cmdTerm(rest);
|
|
1272
1272
|
}
|
|
1273
1273
|
case "widget": {
|
|
1274
|
-
const { cmdWidget } = await import("./widget-
|
|
1274
|
+
const { cmdWidget } = await import("./widget-pdu7F8Uw.js");
|
|
1275
1275
|
return cmdWidget(rest);
|
|
1276
1276
|
}
|
|
1277
1277
|
case "mint": {
|
|
1278
|
-
const { cmdMint } = await import("./widget-
|
|
1278
|
+
const { cmdMint } = await import("./widget-pdu7F8Uw.js");
|
|
1279
1279
|
return cmdMint(rest);
|
|
1280
1280
|
}
|
|
1281
1281
|
case "serve": {
|
|
1282
|
-
const { cmdServe } = await import("./serve-
|
|
1282
|
+
const { cmdServe } = await import("./serve-B12ovZgA.js");
|
|
1283
1283
|
return cmdServe(rest);
|
|
1284
1284
|
}
|
|
1285
1285
|
case "setup": {
|
|
1286
|
-
const { cmdSetup } = await import("./setup-
|
|
1286
|
+
const { cmdSetup } = await import("./setup-BQQ5e_MZ.js");
|
|
1287
1287
|
return cmdSetup(rest);
|
|
1288
1288
|
}
|
|
1289
1289
|
case "ws": {
|
|
1290
|
-
const { cmdWs } = await import("./ws-
|
|
1290
|
+
const { cmdWs } = await import("./ws-DRoXg3iR.js");
|
|
1291
1291
|
return cmdWs(rest);
|
|
1292
1292
|
}
|
|
1293
1293
|
case "schedule": {
|
|
1294
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1294
|
+
const { cmdSchedule } = await import("./schedule-DTaXRtFs.js");
|
|
1295
1295
|
return cmdSchedule(rest);
|
|
1296
1296
|
}
|
|
1297
1297
|
case "remote": {
|
|
@@ -1303,7 +1303,7 @@ async function runSubcommand(argv) {
|
|
|
1303
1303
|
return cmdExpose(rest);
|
|
1304
1304
|
}
|
|
1305
1305
|
case "callback": {
|
|
1306
|
-
const { cmdCallback } = await import("./callback-
|
|
1306
|
+
const { cmdCallback } = await import("./callback-DEUF5U-Q.js");
|
|
1307
1307
|
return cmdCallback(rest);
|
|
1308
1308
|
}
|
|
1309
1309
|
case "reap":
|
|
@@ -4341,7 +4341,7 @@ async function cmdNotify(rest) {
|
|
|
4341
4341
|
}
|
|
4342
4342
|
const ensure = async () => {
|
|
4343
4343
|
if (!argv["ensure-daemon"]) return;
|
|
4344
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4344
|
+
const { ensureDaemon } = await import("./notifyDaemon-CK9GJlPz.js");
|
|
4345
4345
|
await ensureDaemon().catch(() => null);
|
|
4346
4346
|
};
|
|
4347
4347
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4415,7 +4415,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4415
4415
|
}
|
|
4416
4416
|
async function cmdNotifyd(rest) {
|
|
4417
4417
|
const sub = rest[0] ?? "status";
|
|
4418
|
-
const daemon = await import("./notifyDaemon-
|
|
4418
|
+
const daemon = await import("./notifyDaemon-CK9GJlPz.js");
|
|
4419
4419
|
switch (sub) {
|
|
4420
4420
|
case "run": return daemon.runDaemon();
|
|
4421
4421
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4442,4 +4442,4 @@ async function cmdNotifyd(rest) {
|
|
|
4442
4442
|
|
|
4443
4443
|
//#endregion
|
|
4444
4444
|
export { shouldStealLock as $, recentReadEdges as A, stdinActivityPath as B, listRecords as C, readNotes as D, readAgentPtysize as E, resolveReadWindow as F, writeToIpc as G, submitAndConfirm as H, resolveResumeArgs as I, hostId as J, appendEvent as K, restartHintLines as L, renderRawLog as M, renderRawLogLines as N, readPtysize as O, resolveOne as P, readInbox as Q, runSubcommand as R, lastStdinAt as S, menuSelectKeys as T, waitForLogQuiet as U, stopTipForCli as V, writeKeysPaced as W, listInboxParents as X, isTransientLockMkdirError as Y, liveWatchers as Z, isPidAlive as _, cmdHelp as a, isUnknownManagerToken as b, deriveLiveState as c, extractMenu as d, daemonLockDir as et, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, renderLogTailLines as j, recentMessageEdges as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, notifyDir as nt, controlCodeFromName as o, extractTaskCounts as p, gcInboxes as q, TYPING_WINDOW_MS as r, TYPING_BADGE as rt, cursorAbs as s, GRACEFUL_EXIT_COMMANDS as t, daemonLockOwnerPath as tt, extractBadges as u, isSlashCommand as v, matchKeyword as w, isUserTyping as x, isSubcommand as y, snapshotStatus as z };
|
|
4445
|
-
//# sourceMappingURL=subcommands-
|
|
4445
|
+
//# sourceMappingURL=subcommands-BL3ZoUnA.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-9wVlbPyC.js";
|
|
6
|
-
import { A as recentReadEdges, B as stdinActivityPath, C as listRecords, D as readNotes, E as readAgentPtysize, F as resolveReadWindow, G as writeToIpc, H as submitAndConfirm, I as resolveResumeArgs, L as restartHintLines, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, R as runSubcommand, S as lastStdinAt, T as menuSelectKeys, U as waitForLogQuiet, V as stopTipForCli, W as writeKeysPaced, _ as isPidAlive, a as cmdHelp, b as isUnknownManagerToken, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderLogTailLines, k as recentMessageEdges, 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 matchKeyword, x as isUserTyping, y as isSubcommand, z as snapshotStatus } from "./subcommands-
|
|
6
|
+
import { A as recentReadEdges, B as stdinActivityPath, C as listRecords, D as readNotes, E as readAgentPtysize, F as resolveReadWindow, G as writeToIpc, H as submitAndConfirm, I as resolveResumeArgs, L as restartHintLines, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, R as runSubcommand, S as lastStdinAt, T as menuSelectKeys, U as waitForLogQuiet, V as stopTipForCli, W as writeKeysPaced, _ as isPidAlive, a as cmdHelp, b as isUnknownManagerToken, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderLogTailLines, k as recentMessageEdges, 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 matchKeyword, x as isUserTyping, y as isSubcommand, z as snapshotStatus } from "./subcommands-BL3ZoUnA.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
|
|
@@ -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-B12ovZgA.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-BcoLexV7.js.map
|
package/dist/terminal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as __esmMin, r as __exportAll } from "./chunk-
|
|
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 { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
+
import { r as getInstalledPackage } from "./versionChecker-B-ao7XzH.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
5
5
|
import { d as openStore, p as LIFECYCLES, x as removeControlCharacters } from "./todoAutomation-Buo457VO.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DBoONoM-.js";
|
|
@@ -2027,4 +2027,4 @@ function sleep(ms) {
|
|
|
2027
2027
|
|
|
2028
2028
|
//#endregion
|
|
2029
2029
|
export { hasTodoStore as a, AgentContext as c, answerAsk as i, CLAUDE_SESSION_PIN_ENV as l, agentYes as n, listAsks as o, config as r, listAsksForProject as s, CLIS_CONFIG as t };
|
|
2030
|
-
//# sourceMappingURL=ts-
|
|
2030
|
+
//# sourceMappingURL=ts-B_OFvxWb.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.239.
|
|
10
|
+
var version = "1.239.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-B-ao7XzH.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-B12ovZgA.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() ?? "";
|
|
@@ -98,8 +98,17 @@ async function cmdWidgetRead(args) {
|
|
|
98
98
|
args: cmdArgs
|
|
99
99
|
})
|
|
100
100
|
});
|
|
101
|
-
const
|
|
102
|
-
|
|
101
|
+
const raw = await res.text();
|
|
102
|
+
let body = {};
|
|
103
|
+
try {
|
|
104
|
+
body = raw ? JSON.parse(raw) : {};
|
|
105
|
+
} catch {
|
|
106
|
+
body = { error: raw };
|
|
107
|
+
}
|
|
108
|
+
if (!res.ok) {
|
|
109
|
+
process.stderr.write(`read ${kind} @ ${viewer}: ${res.status} ${raw || "request failed"}\n`);
|
|
110
|
+
return 1;
|
|
111
|
+
}
|
|
103
112
|
if (body.error) {
|
|
104
113
|
process.stderr.write(`read ${kind} @ ${body.viewer ?? viewer}: ${body.error}\n`);
|
|
105
114
|
return 1;
|
|
@@ -177,7 +186,7 @@ async function cmdMint(args) {
|
|
|
177
186
|
const bad = caps.filter((c) => !KNOWN_CAPS.has(c));
|
|
178
187
|
if (bad.length) throw new Error(`unknown cap(s): ${bad.join(", ")} (valid: ${[...KNOWN_CAPS].join(", ")})`);
|
|
179
188
|
const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
|
|
180
|
-
const { mintScopedTermToken } = await import("./serve-
|
|
189
|
+
const { mintScopedTermToken } = await import("./serve-B12ovZgA.js");
|
|
181
190
|
const r = await mintScopedTermToken(target, {
|
|
182
191
|
ttlSec,
|
|
183
192
|
caps
|
|
@@ -193,4 +202,4 @@ async function cmdMint(args) {
|
|
|
193
202
|
|
|
194
203
|
//#endregion
|
|
195
204
|
export { cmdMint, cmdWidget };
|
|
196
|
-
//# sourceMappingURL=widget-
|
|
205
|
+
//# sourceMappingURL=widget-pdu7F8Uw.js.map
|
package/dist/widget.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { i as __toESM } from "./chunk-CNLfOXRf.js";
|
|
2
|
-
|
|
3
1
|
//#region ts/widget/browser.ts
|
|
4
2
|
var AyWidget = class {
|
|
5
3
|
origin;
|
|
@@ -144,7 +142,7 @@ var AyWidget = class {
|
|
|
144
142
|
}
|
|
145
143
|
async h2c(el, viewport, rect) {
|
|
146
144
|
const g = globalThis;
|
|
147
|
-
const mod = await import("./html2canvas-
|
|
145
|
+
const mod = await import("./html2canvas-pro.esm-BZqMtqU8.js");
|
|
148
146
|
const html2canvas = mod.default ?? mod;
|
|
149
147
|
const opts = {
|
|
150
148
|
backgroundColor: viewport ? "#ffffff" : null,
|
|
@@ -159,7 +157,14 @@ var AyWidget = class {
|
|
|
159
157
|
opts.width = Math.max(1, rect.width);
|
|
160
158
|
opts.height = Math.max(1, rect.height);
|
|
161
159
|
}
|
|
162
|
-
|
|
160
|
+
let canvas;
|
|
161
|
+
try {
|
|
162
|
+
canvas = await html2canvas(el, opts);
|
|
163
|
+
} catch (e) {
|
|
164
|
+
throw new Error(`screenshot render failed: ${String(e?.message ?? e)}`);
|
|
165
|
+
}
|
|
166
|
+
if (!canvas?.width || !canvas?.height) throw new Error("screenshot render produced an empty image — the target may use CSS the renderer can't handle; for a WebGL/<canvas> element register a snapshots hook for an exact capture");
|
|
167
|
+
return canvas;
|
|
163
168
|
}
|
|
164
169
|
/** In the doc html2canvas clones, replace each registered WebGL canvas with the hook's <img>. */
|
|
165
170
|
swapSnapshots(clonedDoc) {
|
package/dist/widgets.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./e2e-CEIdJGZ7.js";
|
|
|
2
2
|
import "./channels-BiGUYTuz.js";
|
|
3
3
|
import "./peer-B5JKF4BP.js";
|
|
4
4
|
import { t as AyChannel } from "./browser-B3dOptjL.js";
|
|
5
|
-
import { t as AyTerminal } from "./browser-
|
|
5
|
+
import { t as AyTerminal } from "./browser-BRMyG4JA.js";
|
|
6
6
|
import { AyWidget } from "./widget.js";
|
|
7
7
|
|
|
8
8
|
export { AyChannel, AyTerminal, AyWidget };
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-9wVlbPyC.js";
|
|
6
|
-
import { C as listRecords } from "./subcommands-
|
|
6
|
+
import { C as listRecords } from "./subcommands-BL3ZoUnA.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { i as getProvisionRoot } from "./workspaceConfig-DOHygA2x.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-DRoXg3iR.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-yes",
|
|
3
|
-
"version": "1.239.
|
|
3
|
+
"version": "1.239.1",
|
|
4
4
|
"description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"@xterm/addon-fit": "^0.11.0",
|
|
163
163
|
"@xterm/xterm": "^6.0.0",
|
|
164
164
|
"codehost": "^0.32.0",
|
|
165
|
-
"html2canvas": "^
|
|
165
|
+
"html2canvas-pro": "^2.3.1",
|
|
166
166
|
"husky": "^9.1.7",
|
|
167
167
|
"lint-staged": "^16.2.7",
|
|
168
168
|
"node-pty": "^1.1.0",
|
package/ts/widget.ts
CHANGED
|
@@ -126,8 +126,21 @@ async function cmdWidgetRead(args: string[]): Promise<number> {
|
|
|
126
126
|
headers: { "content-type": "application/json" },
|
|
127
127
|
body: JSON.stringify({ viewer, kind, args: cmdArgs }),
|
|
128
128
|
});
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
// Read the body as text first: a daemon error (403/404/409) is a plain-text
|
|
130
|
+
// reason (e.g. "scoped token lacks 'screenshot'"), not JSON — parsing it as JSON
|
|
131
|
+
// would swallow the reason. Success bodies ARE JSON (the envelope).
|
|
132
|
+
const raw = await res.text();
|
|
133
|
+
let body: any = {};
|
|
134
|
+
try {
|
|
135
|
+
body = raw ? JSON.parse(raw) : {};
|
|
136
|
+
} catch {
|
|
137
|
+
body = { error: raw }; // non-JSON error text → surface it verbatim
|
|
138
|
+
}
|
|
139
|
+
if (!res.ok) {
|
|
140
|
+
// Surface the daemon's plain-text reason cleanly (e.g. a scoped-token 403), not a stack.
|
|
141
|
+
process.stderr.write(`read ${kind} @ ${viewer}: ${res.status} ${raw || "request failed"}\n`);
|
|
142
|
+
return 1;
|
|
143
|
+
}
|
|
131
144
|
if (body.error) {
|
|
132
145
|
process.stderr.write(`read ${kind} @ ${body.viewer ?? viewer}: ${body.error}\n`);
|
|
133
146
|
return 1;
|
package/dist/chunk-CNLfOXRf.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
|
-
var __exportAll = (all, no_symbols) => {
|
|
11
|
-
let target = {};
|
|
12
|
-
for (var name in all) {
|
|
13
|
-
__defProp(target, name, {
|
|
14
|
-
get: all[name],
|
|
15
|
-
enumerable: true
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
if (!no_symbols) {
|
|
19
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
var __copyProps = (to, from, except, desc) => {
|
|
24
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
25
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
|
-
key = keys[i];
|
|
27
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
28
|
-
__defProp(to, key, {
|
|
29
|
-
get: ((k) => from[k]).bind(null, key),
|
|
30
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return to;
|
|
36
|
-
};
|
|
37
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
38
|
-
value: mod,
|
|
39
|
-
enumerable: true
|
|
40
|
-
}) : target, mod));
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { __toESM as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
|