agent-yes 1.289.1 → 1.289.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-C6_VxImO.js → SUPPORTED_CLIS-B0yuAuOD.js} +3 -3
- package/dist/{SUPPORTED_CLIS-CBNdhpd4.js → SUPPORTED_CLIS-D0U7TKIX.js} +2 -2
- package/dist/{agentShare-PhYdXbL2.js → agentShare-GlhYufwK.js} +2 -2
- package/dist/{callback-BDCOysI-.js → callback-BHJXrWxz.js} +3 -3
- package/dist/{callback-CP05hZn7.js → callback-CVNEcTS5.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-B52kXXpe.js → cmdPs-Cf0t1P_s.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-Bojc28kF.js → notifyDaemon-C6r_ynZf.js} +2 -2
- package/dist/{parentPingLoop-Dxpm9wtF.js → parentPingLoop-DQizZRsh.js} +2 -2
- package/dist/{rustBinary-CMykcigu.js → rustBinary-CVgyiEnn.js} +2 -2
- package/dist/{rustBinary-bQ9sURYY.js → rustBinary-DakOxgOA.js} +2 -2
- package/dist/{schedule-BDmt0whh.js → schedule-C94DQRwM.js} +4 -4
- package/dist/{serve-CT0gsdsz.js → serve-8TR1TI4k.js} +17 -17
- package/dist/{setup-ucGNvWrX.js → setup-Cph-p-hr.js} +2 -2
- package/dist/{subcommands-hbgT2ByF.js → subcommands-Cpq883bD.js} +1 -1
- package/dist/{subcommands-DxlJxfVv.js → subcommands-CzU0lY1D.js} +16 -16
- package/dist/{terminal-C0zJ0yKF.js → terminal-D8eDPkaZ.js} +2 -2
- package/dist/trayApp-CL2Ea3VN.js +5 -0
- package/dist/{trayApp-BxLHwhEb.js → trayApp-DhRkQrl_.js} +2 -2
- package/dist/{ts-C5heUEpv.js → ts-BNU0Af5L.js} +3 -3
- package/dist/{versionChecker-BJQ2rkHG.js → versionChecker-BPI-qD1o.js} +2 -2
- package/dist/{widget-DVa5f5d1.js → widget-ZarTusWV.js} +3 -3
- package/dist/{ws-zbz-7rr8.js → ws-CKMnkjsd.js} +2 -2
- package/dist/{ws-DCXeAGZy.js → ws-DMxJyo0-.js} +2 -2
- package/package.json +1 -1
- package/ts/subcommands.spec.ts +2 -2
- package/ts/subcommands.ts +4 -1
- package/dist/trayApp-DRpjdKB4.js +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-BPI-qD1o.js";
|
|
3
|
+
import "./ts-BNU0Af5L.js";
|
|
4
4
|
import "./todoAutomation-CbVVS4re.js";
|
|
5
5
|
import "./JsonlStore-BqF7AQ6E.js";
|
|
6
6
|
import "./globalPidIndex-DoaKEUkO.js";
|
|
7
7
|
import "./pidStore-B73xnAeT.js";
|
|
8
8
|
import "./messageLog-DdjBNqgt.js";
|
|
9
9
|
import "./todoStore-DF6vxHgV.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D0U7TKIX.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-BNU0Af5L.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-D0U7TKIX.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-DoaKEUkO.js";
|
|
|
3
3
|
import "./messageLog-DdjBNqgt.js";
|
|
4
4
|
import "./e2e-z1xpwSAg.js";
|
|
5
5
|
import "./configShared-DKTgiz7K.js";
|
|
6
|
-
import { z as resolveOne } from "./subcommands-
|
|
6
|
+
import { z as resolveOne } from "./subcommands-CzU0lY1D.js";
|
|
7
7
|
import "./notifyStore-2SWKGwZI.js";
|
|
8
8
|
import "./webrtcLink-DLaJfTcB.js";
|
|
9
9
|
import "./remotes-BjsglpjL.js";
|
|
@@ -230,4 +230,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
230
230
|
|
|
231
231
|
//#endregion
|
|
232
232
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
233
|
-
//# sourceMappingURL=agentShare-
|
|
233
|
+
//# sourceMappingURL=agentShare-GlhYufwK.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
|
|
2
|
-
import { z as resolveOne } from "./subcommands-
|
|
2
|
+
import { z as resolveOne } from "./subcommands-CzU0lY1D.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-Bl2gGcxg.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
@@ -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-8TR1TI4k.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-BHJXrWxz.js.map
|
|
@@ -3,11 +3,11 @@ import "./globalPidIndex-DoaKEUkO.js";
|
|
|
3
3
|
import "./messageLog-DdjBNqgt.js";
|
|
4
4
|
import "./e2e-z1xpwSAg.js";
|
|
5
5
|
import "./configShared-DKTgiz7K.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-CzU0lY1D.js";
|
|
7
7
|
import "./notifyStore-2SWKGwZI.js";
|
|
8
8
|
import "./webrtcLink-DLaJfTcB.js";
|
|
9
9
|
import "./remotes-BjsglpjL.js";
|
|
10
10
|
import "./callbackCore-Bl2gGcxg.js";
|
|
11
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
11
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-BHJXrWxz.js";
|
|
12
12
|
|
|
13
13
|
export { cmdCallback };
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { l as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BPI-qD1o.js";
|
|
5
|
+
import { l as getRustBinary } from "./rustBinary-CVgyiEnn.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
295
295
|
const rawArg = process.argv[2];
|
|
296
296
|
const managerCommands = !invokedCliName(process.argv);
|
|
297
297
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
298
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-
|
|
298
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-Cpq883bD.js");
|
|
299
299
|
if (isHelpFlag && process.argv.length === 3) {
|
|
300
300
|
await cmdHelp(managerCommands);
|
|
301
301
|
process.exit(0);
|
|
@@ -309,7 +309,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
309
309
|
process.exit(code ?? 0);
|
|
310
310
|
}
|
|
311
311
|
{
|
|
312
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
312
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-B0yuAuOD.js");
|
|
313
313
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
314
314
|
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`);
|
|
315
315
|
process.exit(1);
|
|
@@ -360,7 +360,7 @@ if (config.useRust) {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
if (rustBinary) {
|
|
363
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
363
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-B0yuAuOD.js");
|
|
364
364
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
365
365
|
if (config.verbose) {
|
|
366
366
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-DoaKEUkO.js";
|
|
|
3
3
|
import "./messageLog-DdjBNqgt.js";
|
|
4
4
|
import "./e2e-z1xpwSAg.js";
|
|
5
5
|
import "./configShared-DKTgiz7K.js";
|
|
6
|
-
import { $ as buildAgentForest, D as listRecords, et as flattenForest, u as deriveLiveState } from "./subcommands-
|
|
6
|
+
import { $ as buildAgentForest, D as listRecords, et as flattenForest, u as deriveLiveState } from "./subcommands-CzU0lY1D.js";
|
|
7
7
|
import "./notifyStore-2SWKGwZI.js";
|
|
8
8
|
import "./webrtcLink-DLaJfTcB.js";
|
|
9
9
|
import "./remotes-BjsglpjL.js";
|
|
@@ -328,4 +328,4 @@ function readPpidSync(pid) {
|
|
|
328
328
|
|
|
329
329
|
//#endregion
|
|
330
330
|
export { cmdPs };
|
|
331
|
-
//# sourceMappingURL=cmdPs-
|
|
331
|
+
//# sourceMappingURL=cmdPs-Cf0t1P_s.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-BPI-qD1o.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-BNU0Af5L.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-CbVVS4re.js";
|
|
5
5
|
import "./JsonlStore-BqF7AQ6E.js";
|
|
6
6
|
import "./globalPidIndex-DoaKEUkO.js";
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-DoaKEUkO.js";
|
|
|
3
3
|
import "./messageLog-DdjBNqgt.js";
|
|
4
4
|
import "./e2e-z1xpwSAg.js";
|
|
5
5
|
import "./configShared-DKTgiz7K.js";
|
|
6
|
-
import { D as listRecords, I as renderLogTailLines, b as isPidAlive, u as deriveLiveState } from "./subcommands-
|
|
6
|
+
import { D as listRecords, I as renderLogTailLines, b as isPidAlive, u as deriveLiveState } from "./subcommands-CzU0lY1D.js";
|
|
7
7
|
import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-2SWKGwZI.js";
|
|
8
8
|
import "./webrtcLink-DLaJfTcB.js";
|
|
9
9
|
import "./remotes-BjsglpjL.js";
|
|
@@ -871,4 +871,4 @@ async function ensureDaemon() {
|
|
|
871
871
|
|
|
872
872
|
//#endregion
|
|
873
873
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
874
|
-
//# sourceMappingURL=notifyDaemon-
|
|
874
|
+
//# sourceMappingURL=notifyDaemon-C6r_ynZf.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-Cpq883bD.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-DQizZRsh.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-BPI-qD1o.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -310,4 +310,4 @@ async function getRustBinary(options = {}) {
|
|
|
310
310
|
|
|
311
311
|
//#endregion
|
|
312
312
|
export { gcOldBinaryDirs as a, getDownloadUrl as c, findTrayLauncher as i, getRustBinary as l, findRustBinary as n, getBinDir as o, findSpawnHiddenLauncher as r, getBinaryName as s, downloadBinary as t };
|
|
313
|
-
//# sourceMappingURL=rustBinary-
|
|
313
|
+
//# sourceMappingURL=rustBinary-CVgyiEnn.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
2
|
-
import { a as gcOldBinaryDirs, c as getDownloadUrl, i as findTrayLauncher, l as getRustBinary, n as findRustBinary, o as getBinDir, r as findSpawnHiddenLauncher, s as getBinaryName, t as downloadBinary } from "./rustBinary-
|
|
1
|
+
import "./versionChecker-BPI-qD1o.js";
|
|
2
|
+
import { a as gcOldBinaryDirs, c as getDownloadUrl, i as findTrayLauncher, l as getRustBinary, n as findRustBinary, o as getBinDir, r as findSpawnHiddenLauncher, s as getBinaryName, t as downloadBinary } from "./rustBinary-CVgyiEnn.js";
|
|
3
3
|
|
|
4
4
|
export { gcOldBinaryDirs };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-BPI-qD1o.js";
|
|
3
|
+
import "./ts-BNU0Af5L.js";
|
|
4
4
|
import "./todoAutomation-CbVVS4re.js";
|
|
5
5
|
import "./JsonlStore-BqF7AQ6E.js";
|
|
6
6
|
import "./globalPidIndex-DoaKEUkO.js";
|
|
7
7
|
import "./pidStore-B73xnAeT.js";
|
|
8
8
|
import "./messageLog-DdjBNqgt.js";
|
|
9
9
|
import "./todoStore-DF6vxHgV.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D0U7TKIX.js";
|
|
11
11
|
import { f as resolveSpawnCwd } from "./workspaceConfig-DTvPtr5j.js";
|
|
12
12
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CipjIwfO.js";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -154,4 +154,4 @@ async function cmdSchedule(rest) {
|
|
|
154
154
|
|
|
155
155
|
//#endregion
|
|
156
156
|
export { cmdSchedule };
|
|
157
|
-
//# sourceMappingURL=schedule-
|
|
157
|
+
//# sourceMappingURL=schedule-C94DQRwM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { r 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-BPI-qD1o.js";
|
|
3
|
+
import { r as findSpawnHiddenLauncher } from "./rustBinary-CVgyiEnn.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-BNU0Af5L.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-BNtn19J4.js";
|
|
6
6
|
import { u as removeControlCharacters } from "./todoAutomation-CbVVS4re.js";
|
|
7
7
|
import "./JsonlStore-BqF7AQ6E.js";
|
|
@@ -12,19 +12,19 @@ import { t as pgidForWrapper } from "./reaper-UimuuTfO.js";
|
|
|
12
12
|
import "./todoStore-DF6vxHgV.js";
|
|
13
13
|
import "./e2e-z1xpwSAg.js";
|
|
14
14
|
import "./configShared-DKTgiz7K.js";
|
|
15
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
16
|
-
import { D as listRecords, F as recentReadEdges, I as renderLogTailLines, L as renderRawLog, M as readNotes, N as readPtysize, P as recentMessageEdges, Q as TYPING_BADGE, R as renderRawLogLines, W as snapshotStatus, X as writeToIpc, Z as withIpcLock, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, h as extractTaskCounts, j as readLogForRender, m as extractNeedsInput, w as isUserTyping, z as resolveOne } from "./subcommands-
|
|
15
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D0U7TKIX.js";
|
|
16
|
+
import { D as listRecords, F as recentReadEdges, I as renderLogTailLines, L as renderRawLog, M as readNotes, N as readPtysize, P as recentMessageEdges, Q as TYPING_BADGE, R as renderRawLogLines, W as snapshotStatus, X as writeToIpc, Z as withIpcLock, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, h as extractTaskCounts, j as readLogForRender, m as extractNeedsInput, w as isUserTyping, z as resolveOne } from "./subcommands-CzU0lY1D.js";
|
|
17
17
|
import { c as isTransientLockMkdirError } from "./notifyStore-2SWKGwZI.js";
|
|
18
18
|
import "./webrtcLink-DLaJfTcB.js";
|
|
19
19
|
import "./remotes-BjsglpjL.js";
|
|
20
20
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Bl2gGcxg.js";
|
|
21
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
21
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-BHJXrWxz.js";
|
|
22
22
|
import { n as sampleTrees } from "./procStats-CyD8h5nx.js";
|
|
23
23
|
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-DTvPtr5j.js";
|
|
24
24
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CipjIwfO.js";
|
|
25
|
-
import { i as importProvisionModule } from "./ws-
|
|
25
|
+
import { i as importProvisionModule } from "./ws-CKMnkjsd.js";
|
|
26
26
|
import { r as spawnRejectionReason } from "./spawnGate-B26UnzqP.js";
|
|
27
|
-
import { i as launchTray } from "./trayApp-
|
|
27
|
+
import { i as launchTray } from "./trayApp-DhRkQrl_.js";
|
|
28
28
|
import yargs from "yargs";
|
|
29
29
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
30
30
|
import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
|
|
@@ -2582,7 +2582,7 @@ Options:
|
|
|
2582
2582
|
}
|
|
2583
2583
|
});
|
|
2584
2584
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2585
|
-
const ws = await import("./ws-
|
|
2585
|
+
const ws = await import("./ws-DMxJyo0-.js");
|
|
2586
2586
|
try {
|
|
2587
2587
|
await ws.loadProvision();
|
|
2588
2588
|
} catch (e) {
|
|
@@ -2602,7 +2602,7 @@ Options:
|
|
|
2602
2602
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2603
2603
|
const dirRaw = url.searchParams.get("path");
|
|
2604
2604
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2605
|
-
const ws = await import("./ws-
|
|
2605
|
+
const ws = await import("./ws-DMxJyo0-.js");
|
|
2606
2606
|
let prov;
|
|
2607
2607
|
try {
|
|
2608
2608
|
prov = await ws.loadProvision();
|
|
@@ -2624,7 +2624,7 @@ Options:
|
|
|
2624
2624
|
}
|
|
2625
2625
|
}
|
|
2626
2626
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2627
|
-
const ws = await import("./ws-
|
|
2627
|
+
const ws = await import("./ws-DMxJyo0-.js");
|
|
2628
2628
|
try {
|
|
2629
2629
|
await ws.loadProvision();
|
|
2630
2630
|
} catch (e) {
|
|
@@ -2705,7 +2705,7 @@ Options:
|
|
|
2705
2705
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2706
2706
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2707
2707
|
const [, owner, repo] = m;
|
|
2708
|
-
const ws = await import("./ws-
|
|
2708
|
+
const ws = await import("./ws-DMxJyo0-.js");
|
|
2709
2709
|
let prov;
|
|
2710
2710
|
try {
|
|
2711
2711
|
prov = await ws.loadProvision();
|
|
@@ -3616,7 +3616,7 @@ Options:
|
|
|
3616
3616
|
const perm = body.perm ?? "r";
|
|
3617
3617
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3618
3618
|
try {
|
|
3619
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3619
|
+
const { createScopedShare } = await import("./agentShare-GlhYufwK.js");
|
|
3620
3620
|
const share = await createScopedShare({
|
|
3621
3621
|
agent: body.agent,
|
|
3622
3622
|
perm,
|
|
@@ -3631,12 +3631,12 @@ Options:
|
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
3633
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3634
|
-
const { listShares } = await import("./agentShare-
|
|
3634
|
+
const { listShares } = await import("./agentShare-GlhYufwK.js");
|
|
3635
3635
|
return Response.json(listShares());
|
|
3636
3636
|
}
|
|
3637
3637
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3638
3638
|
if (req.method === "DELETE" && revokeM) {
|
|
3639
|
-
const { revokeShare } = await import("./agentShare-
|
|
3639
|
+
const { revokeShare } = await import("./agentShare-GlhYufwK.js");
|
|
3640
3640
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3641
3641
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3642
3642
|
}
|
|
@@ -3942,7 +3942,7 @@ Options:
|
|
|
3942
3942
|
const shutdown = (resolve) => {
|
|
3943
3943
|
if (heartbeat) clearInterval(heartbeat);
|
|
3944
3944
|
closeShare?.();
|
|
3945
|
-
import("./agentShare-
|
|
3945
|
+
import("./agentShare-GlhYufwK.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3946
3946
|
server?.stop();
|
|
3947
3947
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3948
3948
|
};
|
|
@@ -3955,4 +3955,4 @@ Options:
|
|
|
3955
3955
|
|
|
3956
3956
|
//#endregion
|
|
3957
3957
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3958
|
-
//# sourceMappingURL=serve-
|
|
3958
|
+
//# sourceMappingURL=serve-8TR1TI4k.js.map
|
|
@@ -40,7 +40,7 @@ async function cmdSetup(rest) {
|
|
|
40
40
|
} catch {}
|
|
41
41
|
if (noShare) return 0;
|
|
42
42
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
43
|
-
const { cmdServe } = await import("./serve-
|
|
43
|
+
const { cmdServe } = await import("./serve-8TR1TI4k.js");
|
|
44
44
|
return cmdServe([
|
|
45
45
|
"install",
|
|
46
46
|
"--share",
|
|
@@ -50,4 +50,4 @@ async function cmdSetup(rest) {
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { cmdSetup };
|
|
53
|
-
//# sourceMappingURL=setup-
|
|
53
|
+
//# sourceMappingURL=setup-Cph-p-hr.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-DoaKEUkO.js";
|
|
|
3
3
|
import "./messageLog-DdjBNqgt.js";
|
|
4
4
|
import "./e2e-z1xpwSAg.js";
|
|
5
5
|
import "./configShared-DKTgiz7K.js";
|
|
6
|
-
import { A as readAgentPtysize, B as resolveReadWindow, C as isUnknownManagerToken, D as listRecords, E as lastStdinAt, F as recentReadEdges, G as stdinActivityPath, H as restartHintLines, I as renderLogTailLines, J as waitForLogQuiet, K as stopTipForCli, L as renderRawLog, M as readNotes, N as readPtysize, O as matchKeyword, P as recentMessageEdges, R as renderRawLogLines, S as isSubcommand, T as lastReadAt, U as runSubcommand, V as resolveResumeArgs, W as snapshotStatus, X as writeToIpc, Y as writeKeysPaced, _ as isAgentStuck, a as TYPING_WINDOW_MS, b as isPidAlive, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, g as finalizedLines, h as extractTaskCounts, i as READ_WINDOW_MS, j as readLogForRender, k as menuSelectKeys, l as cursorAbs, m as extractNeedsInput, n as MAX_RENDER_BYTES, o as backoffWhileTyping, p as extractMenu, q as submitAndConfirm, r as READ_PAGE_DEFAULT, s as cmdHelp, t as GRACEFUL_EXIT_COMMANDS, u as deriveLiveState, v as isBareManagerInvocation, w as isUserTyping, x as isSlashCommand, y as isExitRequest, z as resolveOne } from "./subcommands-
|
|
6
|
+
import { A as readAgentPtysize, B as resolveReadWindow, C as isUnknownManagerToken, D as listRecords, E as lastStdinAt, F as recentReadEdges, G as stdinActivityPath, H as restartHintLines, I as renderLogTailLines, J as waitForLogQuiet, K as stopTipForCli, L as renderRawLog, M as readNotes, N as readPtysize, O as matchKeyword, P as recentMessageEdges, R as renderRawLogLines, S as isSubcommand, T as lastReadAt, U as runSubcommand, V as resolveResumeArgs, W as snapshotStatus, X as writeToIpc, Y as writeKeysPaced, _ as isAgentStuck, a as TYPING_WINDOW_MS, b as isPidAlive, c as controlCodeFromName, d as deriveLiveStatus, f as extractBadges, g as finalizedLines, h as extractTaskCounts, i as READ_WINDOW_MS, j as readLogForRender, k as menuSelectKeys, l as cursorAbs, m as extractNeedsInput, n as MAX_RENDER_BYTES, o as backoffWhileTyping, p as extractMenu, q as submitAndConfirm, r as READ_PAGE_DEFAULT, s as cmdHelp, t as GRACEFUL_EXIT_COMMANDS, u as deriveLiveState, v as isBareManagerInvocation, w as isUserTyping, x as isSlashCommand, y as isExitRequest, z as resolveOne } from "./subcommands-CzU0lY1D.js";
|
|
7
7
|
import "./notifyStore-2SWKGwZI.js";
|
|
8
8
|
import "./webrtcLink-DLaJfTcB.js";
|
|
9
9
|
import "./remotes-BjsglpjL.js";
|
|
@@ -831,7 +831,7 @@ const SEND_CONFIRM_MIN_GROWTH_BYTES = 8;
|
|
|
831
831
|
const SEND_SUBMIT_MAX_RETRIES = 2;
|
|
832
832
|
const SEND_TYPING_POLL_MS = 200;
|
|
833
833
|
const SEND_TYPING_MAX_WAIT_MS = 1e4;
|
|
834
|
-
const SEND_BODY_MAX_CHARS =
|
|
834
|
+
const SEND_BODY_MAX_CHARS = 1024;
|
|
835
835
|
/**
|
|
836
836
|
* Whether `name` is a subcommand. `managerCommands` (default true, for the
|
|
837
837
|
* generic `ay`/`agent-yes` entry) additionally admits manager-only commands
|
|
@@ -906,7 +906,7 @@ async function runSubcommand(argv) {
|
|
|
906
906
|
switch (sub) {
|
|
907
907
|
case "ls":
|
|
908
908
|
case "list": return await cmdLs(rest);
|
|
909
|
-
case "ps": return await (await import("./cmdPs-
|
|
909
|
+
case "ps": return await (await import("./cmdPs-Cf0t1P_s.js")).cmdPs(rest);
|
|
910
910
|
case "status": return await cmdStatus(rest);
|
|
911
911
|
case "whoami": return await cmdWhoami(rest);
|
|
912
912
|
case "result": return await cmdResult(rest);
|
|
@@ -953,35 +953,35 @@ async function runSubcommand(argv) {
|
|
|
953
953
|
return cmdCh(rest);
|
|
954
954
|
}
|
|
955
955
|
case "term": {
|
|
956
|
-
const { cmdTerm } = await import("./terminal-
|
|
956
|
+
const { cmdTerm } = await import("./terminal-D8eDPkaZ.js");
|
|
957
957
|
return cmdTerm(rest);
|
|
958
958
|
}
|
|
959
959
|
case "widget": {
|
|
960
|
-
const { cmdWidget } = await import("./widget-
|
|
960
|
+
const { cmdWidget } = await import("./widget-ZarTusWV.js");
|
|
961
961
|
return cmdWidget(rest);
|
|
962
962
|
}
|
|
963
963
|
case "mint": {
|
|
964
|
-
const { cmdMint } = await import("./widget-
|
|
964
|
+
const { cmdMint } = await import("./widget-ZarTusWV.js");
|
|
965
965
|
return cmdMint(rest);
|
|
966
966
|
}
|
|
967
967
|
case "serve": {
|
|
968
|
-
const { cmdServe } = await import("./serve-
|
|
968
|
+
const { cmdServe } = await import("./serve-8TR1TI4k.js");
|
|
969
969
|
return cmdServe(rest);
|
|
970
970
|
}
|
|
971
971
|
case "tray": {
|
|
972
|
-
const { cmdTray } = await import("./trayApp-
|
|
972
|
+
const { cmdTray } = await import("./trayApp-CL2Ea3VN.js");
|
|
973
973
|
return cmdTray(rest);
|
|
974
974
|
}
|
|
975
975
|
case "setup": {
|
|
976
|
-
const { cmdSetup } = await import("./setup-
|
|
976
|
+
const { cmdSetup } = await import("./setup-Cph-p-hr.js");
|
|
977
977
|
return cmdSetup(rest);
|
|
978
978
|
}
|
|
979
979
|
case "ws": {
|
|
980
|
-
const { cmdWs } = await import("./ws-
|
|
980
|
+
const { cmdWs } = await import("./ws-DMxJyo0-.js");
|
|
981
981
|
return cmdWs(rest);
|
|
982
982
|
}
|
|
983
983
|
case "schedule": {
|
|
984
|
-
const { cmdSchedule } = await import("./schedule-
|
|
984
|
+
const { cmdSchedule } = await import("./schedule-C94DQRwM.js");
|
|
985
985
|
return cmdSchedule(rest);
|
|
986
986
|
}
|
|
987
987
|
case "remote": {
|
|
@@ -993,7 +993,7 @@ async function runSubcommand(argv) {
|
|
|
993
993
|
return cmdExpose(rest);
|
|
994
994
|
}
|
|
995
995
|
case "callback": {
|
|
996
|
-
const { cmdCallback } = await import("./callback-
|
|
996
|
+
const { cmdCallback } = await import("./callback-CVNEcTS5.js");
|
|
997
997
|
return cmdCallback(rest);
|
|
998
998
|
}
|
|
999
999
|
case "reap":
|
|
@@ -1004,7 +1004,7 @@ async function runSubcommand(argv) {
|
|
|
1004
1004
|
return await cmdDsh(rest);
|
|
1005
1005
|
}
|
|
1006
1006
|
case "gc": {
|
|
1007
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
1007
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-DakOxgOA.js");
|
|
1008
1008
|
const res = gcOldBinaryDirs();
|
|
1009
1009
|
if (res.removed.length === 0) process.stdout.write("no old agent-yes binary cache dirs to remove\n");
|
|
1010
1010
|
else {
|
|
@@ -3481,7 +3481,7 @@ async function cmdAttach(rest) {
|
|
|
3481
3481
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
3482
3482
|
await mkdir(winsizeDir, { recursive: true });
|
|
3483
3483
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
3484
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
3484
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-8TR1TI4k.js");
|
|
3485
3485
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
3486
3486
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
3487
3487
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -4199,7 +4199,7 @@ async function cmdNotify(rest) {
|
|
|
4199
4199
|
}
|
|
4200
4200
|
const ensure = async () => {
|
|
4201
4201
|
if (!argv["ensure-daemon"]) return;
|
|
4202
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4202
|
+
const { ensureDaemon } = await import("./notifyDaemon-C6r_ynZf.js");
|
|
4203
4203
|
await ensureDaemon().catch(() => null);
|
|
4204
4204
|
};
|
|
4205
4205
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4273,7 +4273,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4273
4273
|
}
|
|
4274
4274
|
async function cmdNotifyd(rest) {
|
|
4275
4275
|
const sub = rest[0] ?? "status";
|
|
4276
|
-
const daemon = await import("./notifyDaemon-
|
|
4276
|
+
const daemon = await import("./notifyDaemon-C6r_ynZf.js");
|
|
4277
4277
|
switch (sub) {
|
|
4278
4278
|
case "run": return daemon.runDaemon();
|
|
4279
4279
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4300,4 +4300,4 @@ async function cmdNotifyd(rest) {
|
|
|
4300
4300
|
|
|
4301
4301
|
//#endregion
|
|
4302
4302
|
export { buildAgentForest as $, readAgentPtysize as A, resolveReadWindow as B, isUnknownManagerToken as C, listRecords as D, lastStdinAt as E, recentReadEdges as F, stdinActivityPath as G, restartHintLines as H, renderLogTailLines as I, waitForLogQuiet as J, stopTipForCli as K, renderRawLog as L, readNotes as M, readPtysize as N, matchKeyword as O, recentMessageEdges as P, TYPING_BADGE as Q, renderRawLogLines as R, isSubcommand as S, lastReadAt as T, runSubcommand as U, resolveResumeArgs as V, snapshotStatus as W, writeToIpc as X, writeKeysPaced as Y, withIpcLock as Z, isAgentStuck as _, TYPING_WINDOW_MS as a, isPidAlive as b, controlCodeFromName as c, deriveLiveStatus as d, flattenForest as et, extractBadges as f, finalizedLines as g, extractTaskCounts as h, READ_WINDOW_MS as i, readLogForRender as j, menuSelectKeys as k, cursorAbs as l, extractNeedsInput as m, MAX_RENDER_BYTES as n, backoffWhileTyping as o, extractMenu as p, submitAndConfirm as q, READ_PAGE_DEFAULT as r, cmdHelp as s, GRACEFUL_EXIT_COMMANDS as t, deriveLiveState as u, isBareManagerInvocation as v, isUserTyping as w, isSlashCommand as x, isExitRequest as y, resolveOne as z };
|
|
4303
|
-
//# sourceMappingURL=subcommands-
|
|
4303
|
+
//# sourceMappingURL=subcommands-CzU0lY1D.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-8TR1TI4k.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-D8eDPkaZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { i as findTrayLauncher } from "./rustBinary-CVgyiEnn.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-BNtn19J4.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-DhRkQrl_.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-BPI-qD1o.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
|
|
5
5
|
import { u as removeControlCharacters } from "./todoAutomation-CbVVS4re.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-BOIPD_Vs.js";
|
|
@@ -2085,7 +2085,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2085
2085
|
}, 100);
|
|
2086
2086
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2087
2087
|
shell.onExit(cleanupHeartbeat);
|
|
2088
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2088
|
+
const { startParentPingLoop } = await import("./parentPingLoop-DQizZRsh.js");
|
|
2089
2089
|
const parentPingLoop = startParentPingLoop({
|
|
2090
2090
|
parentPid,
|
|
2091
2091
|
selfWrapperPid: process.pid,
|
|
@@ -2348,4 +2348,4 @@ function sleep(ms) {
|
|
|
2348
2348
|
|
|
2349
2349
|
//#endregion
|
|
2350
2350
|
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 };
|
|
2351
|
-
//# sourceMappingURL=ts-
|
|
2351
|
+
//# sourceMappingURL=ts-BNU0Af5L.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.289.
|
|
10
|
+
var version = "1.289.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 a, getInstalledPackage as i, compareVersions as n, displayVersion as r, checkAndAutoUpdate as t };
|
|
218
|
-
//# sourceMappingURL=versionChecker-
|
|
218
|
+
//# sourceMappingURL=versionChecker-BPI-qD1o.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-8TR1TI4k.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-8TR1TI4k.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-ZarTusWV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as listRecords } from "./subcommands-
|
|
1
|
+
import { D as listRecords } from "./subcommands-CzU0lY1D.js";
|
|
2
2
|
import { a as getProvisionRoot } from "./workspaceConfig-DTvPtr5j.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-CKMnkjsd.js.map
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-DoaKEUkO.js";
|
|
|
3
3
|
import "./messageLog-DdjBNqgt.js";
|
|
4
4
|
import "./e2e-z1xpwSAg.js";
|
|
5
5
|
import "./configShared-DKTgiz7K.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-CzU0lY1D.js";
|
|
7
7
|
import "./notifyStore-2SWKGwZI.js";
|
|
8
8
|
import "./webrtcLink-DLaJfTcB.js";
|
|
9
9
|
import "./remotes-BjsglpjL.js";
|
|
10
|
-
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-
|
|
10
|
+
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-CKMnkjsd.js";
|
|
11
11
|
|
|
12
12
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
package/package.json
CHANGED
package/ts/subcommands.spec.ts
CHANGED
|
@@ -1692,10 +1692,10 @@ describe("subcommands.cmdSend safety guards", () => {
|
|
|
1692
1692
|
return true;
|
|
1693
1693
|
};
|
|
1694
1694
|
try {
|
|
1695
|
-
const long = "x".repeat(
|
|
1695
|
+
const long = "x".repeat(1025);
|
|
1696
1696
|
const code = await runSubcommand(["bun", "cli.js", "send", String(process.pid), long]);
|
|
1697
1697
|
expect(code).toBe(1);
|
|
1698
|
-
expect(stderr.join("")).toMatch(/over the
|
|
1698
|
+
expect(stderr.join("")).toMatch(/over the 1024-char limit/);
|
|
1699
1699
|
expect(stderr.join("")).toMatch(/ay send <keyword> - < file\.txt/);
|
|
1700
1700
|
} finally {
|
|
1701
1701
|
process.stderr.write = orig;
|
package/ts/subcommands.ts
CHANGED
|
@@ -488,7 +488,10 @@ const SEND_TYPING_MAX_WAIT_MS = 10_000;
|
|
|
488
488
|
// stdin — it's a document, and pasting it mid-session fuses with / truncates the
|
|
489
489
|
// agent's terminal. Reject it outright and point at the stdin/file path so the
|
|
490
490
|
// full text survives instead of being silently mangled by a bracketed paste.
|
|
491
|
-
|
|
491
|
+
// Lowered 4096 → 1024 (operator 2026-08-20): past ~1KB the bracketed paste keeps
|
|
492
|
+
// re-rendering long enough that the trailing Enter lands mid-paste and is
|
|
493
|
+
// swallowed, so the body sits unsent in the target's input line.
|
|
494
|
+
const SEND_BODY_MAX_CHARS = 1024;
|
|
492
495
|
|
|
493
496
|
/**
|
|
494
497
|
* Whether `name` is a subcommand. `managerCommands` (default true, for the
|
package/dist/trayApp-DRpjdKB4.js
DELETED