agent-yes 1.291.0 → 1.291.1-beta.742.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-TiOdGi1h.js → SUPPORTED_CLIS-CRRKEBRG.js} +2 -2
- package/dist/{SUPPORTED_CLIS-BZP767UR.js → SUPPORTED_CLIS-CU7m16ky.js} +3 -3
- package/dist/{agentShare-D4N8StHO.js → agentShare-DA9JHBAX.js} +2 -2
- package/dist/{callback-yCpK6Qpg.js → callback-DMTIxhi8.js} +2 -2
- package/dist/{callback-Bc2gnr_f.js → callback-HgxYi_-C.js} +3 -3
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-D5L3Eyh5.js → cmdPs-jMka-edy.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-CvUtRnAB.js → notifyDaemon-EVPn_mfo.js} +2 -2
- package/dist/{parentPingLoop-CVOCiQp2.js → parentPingLoop-B87hqLZ3.js} +2 -2
- package/dist/rustBinary-B7R3qxyn.js +4 -0
- package/dist/{rustBinary-Clbk_K5c.js → rustBinary-CZ1C8zJa.js} +22 -6
- package/dist/{schedule-Ba_4wNVK.js → schedule-CpmqRQM2.js} +4 -4
- package/dist/{serve-CJDQq_Jp.js → serve-Fx8ax2Bl.js} +17 -17
- package/dist/{setup-DwLAkbTC.js → setup-D6Nbkztu.js} +2 -2
- package/dist/{subcommands-x8Pe7DrF.js → subcommands-C_Rklp2A.js} +1 -1
- package/dist/{subcommands-yWgVRM2r.js → subcommands-QKBFk-tQ.js} +15 -15
- package/dist/{terminal-Dv73BTE-.js → terminal-DmmAuLyD.js} +2 -2
- package/dist/trayApp-BRYzwNa_.js +5 -0
- package/dist/{trayApp-BRw8f0mT.js → trayApp-CcX_Limu.js} +2 -2
- package/dist/{ts-C8PxhJZM.js → ts-DXmfJh7A.js} +3 -3
- package/dist/{versionChecker-CWPGASjD.js → versionChecker-CUQ1Yts1.js} +2 -2
- package/dist/{widget-DhBSNUey.js → widget-DT3giHcb.js} +3 -3
- package/dist/{ws-DZ9YAXlY.js → ws-BxXsKjPC.js} +2 -2
- package/dist/{ws-CMX0pkti.js → ws-DzQsi6LE.js} +2 -2
- package/lab/ui/index.html +101 -5
- package/package.json +1 -1
- package/ts/rustBinary.spec.ts +37 -1
- package/ts/rustBinary.ts +18 -3
- package/dist/rustBinary-C_EbyMTk.js +0 -4
- package/dist/trayApp-BjQ5V3WV.js +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DXmfJh7A.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-CRRKEBRG.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-CUQ1Yts1.js";
|
|
3
|
+
import "./ts-DXmfJh7A.js";
|
|
4
4
|
import "./todoAutomation-CbVVS4re.js";
|
|
5
5
|
import "./JsonlStore-BqF7AQ6E.js";
|
|
6
6
|
import "./globalPidIndex-CRH9L9tn.js";
|
|
7
7
|
import "./pidStore-DXWqzTSz.js";
|
|
8
8
|
import "./messageLog-Brx3w6zT.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-CRRKEBRG.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DXWqzTSz.js";
|
|
|
5
5
|
import "./messageLog-Brx3w6zT.js";
|
|
6
6
|
import "./e2e-z1xpwSAg.js";
|
|
7
7
|
import "./configShared-DKTgiz7K.js";
|
|
8
|
-
import { J as resolveOne } from "./subcommands-
|
|
8
|
+
import { J as resolveOne } from "./subcommands-QKBFk-tQ.js";
|
|
9
9
|
import "./notifyStore-2SWKGwZI.js";
|
|
10
10
|
import "./webrtcLink-CnQf9pmu.js";
|
|
11
11
|
import "./remotes-tmKwrr20.js";
|
|
@@ -232,4 +232,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
232
232
|
|
|
233
233
|
//#endregion
|
|
234
234
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
235
|
-
//# sourceMappingURL=agentShare-
|
|
235
|
+
//# sourceMappingURL=agentShare-DA9JHBAX.js.map
|
|
@@ -5,11 +5,11 @@ import "./pidStore-DXWqzTSz.js";
|
|
|
5
5
|
import "./messageLog-Brx3w6zT.js";
|
|
6
6
|
import "./e2e-z1xpwSAg.js";
|
|
7
7
|
import "./configShared-DKTgiz7K.js";
|
|
8
|
-
import "./subcommands-
|
|
8
|
+
import "./subcommands-QKBFk-tQ.js";
|
|
9
9
|
import "./notifyStore-2SWKGwZI.js";
|
|
10
10
|
import "./webrtcLink-CnQf9pmu.js";
|
|
11
11
|
import "./remotes-tmKwrr20.js";
|
|
12
12
|
import "./callbackCore-Bl2gGcxg.js";
|
|
13
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
13
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-HgxYi_-C.js";
|
|
14
14
|
|
|
15
15
|
export { cmdCallback };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-BNtn19J4.js";
|
|
2
|
-
import { J as resolveOne } from "./subcommands-
|
|
2
|
+
import { J as resolveOne } from "./subcommands-QKBFk-tQ.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-Fx8ax2Bl.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-HgxYi_-C.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import {
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-CUQ1Yts1.js";
|
|
5
|
+
import { u as getRustBinary } from "./rustBinary-CZ1C8zJa.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-C_Rklp2A.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-CU7m16ky.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-CU7m16ky.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}`);
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DXWqzTSz.js";
|
|
|
5
5
|
import "./messageLog-Brx3w6zT.js";
|
|
6
6
|
import "./e2e-z1xpwSAg.js";
|
|
7
7
|
import "./configShared-DKTgiz7K.js";
|
|
8
|
-
import { F as listRecords, dt as buildAgentForest, ft as flattenForest, h as deriveLiveState } from "./subcommands-
|
|
8
|
+
import { F as listRecords, dt as buildAgentForest, ft as flattenForest, h as deriveLiveState } from "./subcommands-QKBFk-tQ.js";
|
|
9
9
|
import "./notifyStore-2SWKGwZI.js";
|
|
10
10
|
import "./webrtcLink-CnQf9pmu.js";
|
|
11
11
|
import "./remotes-tmKwrr20.js";
|
|
@@ -330,4 +330,4 @@ function readPpidSync(pid) {
|
|
|
330
330
|
|
|
331
331
|
//#endregion
|
|
332
332
|
export { cmdPs };
|
|
333
|
-
//# sourceMappingURL=cmdPs-
|
|
333
|
+
//# sourceMappingURL=cmdPs-jMka-edy.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-CUQ1Yts1.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-DXmfJh7A.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-CRH9L9tn.js";
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DXWqzTSz.js";
|
|
|
5
5
|
import "./messageLog-Brx3w6zT.js";
|
|
6
6
|
import "./e2e-z1xpwSAg.js";
|
|
7
7
|
import "./configShared-DKTgiz7K.js";
|
|
8
|
-
import { D as isPidAlive, F as listRecords, G as renderLogTailLines, h as deriveLiveState } from "./subcommands-
|
|
8
|
+
import { D as isPidAlive, F as listRecords, G as renderLogTailLines, h as deriveLiveState } from "./subcommands-QKBFk-tQ.js";
|
|
9
9
|
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";
|
|
10
10
|
import "./webrtcLink-CnQf9pmu.js";
|
|
11
11
|
import "./remotes-tmKwrr20.js";
|
|
@@ -879,4 +879,4 @@ async function ensureDaemon() {
|
|
|
879
879
|
|
|
880
880
|
//#endregion
|
|
881
881
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
882
|
-
//# sourceMappingURL=notifyDaemon-
|
|
882
|
+
//# sourceMappingURL=notifyDaemon-EVPn_mfo.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-C_Rklp2A.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-B87hqLZ3.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./versionChecker-CUQ1Yts1.js";
|
|
2
|
+
import { a as findTrayLauncher, c as getBinaryName, i as findSpawnHiddenLauncher, l as getDownloadUrl, n as downloadBinary, o as gcOldBinaryDirs, r as findRustBinary, s as getBinDir, t as devBuildInfo, u as getRustBinary } from "./rustBinary-CZ1C8zJa.js";
|
|
3
|
+
|
|
4
|
+
export { gcOldBinaryDirs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-
|
|
1
|
+
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-CUQ1Yts1.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";
|
|
@@ -255,23 +255,39 @@ function getRustBinaryVersion(binaryPath) {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
|
+
* Locate a local dev build from its binary path: `<rsDir>/target/{release,debug}/agent-yes[.exe]`.
|
|
259
|
+
* Accepts both `/` and `\` separators — `path.resolve` yields backslashes on
|
|
260
|
+
* Windows, and a `/`-only match silently disabled the auto-rebuild there (the
|
|
261
|
+
* stale `target/release` exe then kept shipping bugs already fixed on main).
|
|
262
|
+
* Returns undefined for a downloaded/cached (non-dev) binary.
|
|
263
|
+
*/
|
|
264
|
+
function devBuildInfo(binaryPath) {
|
|
265
|
+
const m = binaryPath.match(/^(.*)[\\/]target[\\/](release|debug)[\\/]agent-yes(?:\.exe)?$/);
|
|
266
|
+
if (!m) return void 0;
|
|
267
|
+
return {
|
|
268
|
+
rsDir: m[1],
|
|
269
|
+
isRelease: m[2] === "release"
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
258
273
|
* Check if a binary path is inside a git repo (dev build), and rebuild if outdated.
|
|
259
274
|
* Returns the same path if up-to-date or rebuilt, undefined if rebuild failed.
|
|
260
275
|
*/
|
|
261
276
|
function autoRebuildIfOutdated(binaryPath, verbose) {
|
|
262
|
-
|
|
277
|
+
const dev = devBuildInfo(binaryPath);
|
|
278
|
+
if (!dev) return true;
|
|
263
279
|
const binaryVersion = getRustBinaryVersion(binaryPath);
|
|
264
280
|
const pkgVersion = getInstalledPackage().version;
|
|
265
281
|
if (verbose) console.log(`[rust] Binary version: ${binaryVersion}, package version: ${pkgVersion}`);
|
|
266
282
|
if (binaryVersion === pkgVersion) return true;
|
|
267
|
-
const rsDir =
|
|
283
|
+
const { rsDir, isRelease } = dev;
|
|
268
284
|
if (!existsSync(path.join(rsDir, "Cargo.toml"))) {
|
|
269
285
|
if (verbose) console.log(`[rust] Cannot find Cargo.toml at ${rsDir}, skipping rebuild`);
|
|
270
286
|
return true;
|
|
271
287
|
}
|
|
272
288
|
process.stderr.write(`\x1b[33m[rust] Binary outdated (${binaryVersion ?? "unknown"} → ${pkgVersion}), rebuilding…\x1b[0m\n`);
|
|
273
289
|
try {
|
|
274
|
-
execFileSync("cargo", ["build", ...
|
|
290
|
+
execFileSync("cargo", ["build", ...isRelease ? ["--release"] : []], {
|
|
275
291
|
cwd: rsDir,
|
|
276
292
|
stdio: "inherit",
|
|
277
293
|
timeout: 3e5
|
|
@@ -309,5 +325,5 @@ async function getRustBinary(options = {}) {
|
|
|
309
325
|
}
|
|
310
326
|
|
|
311
327
|
//#endregion
|
|
312
|
-
export {
|
|
313
|
-
//# sourceMappingURL=rustBinary-
|
|
328
|
+
export { findTrayLauncher as a, getBinaryName as c, findSpawnHiddenLauncher as i, getDownloadUrl as l, downloadBinary as n, gcOldBinaryDirs as o, findRustBinary as r, getBinDir as s, devBuildInfo as t, getRustBinary as u };
|
|
329
|
+
//# sourceMappingURL=rustBinary-CZ1C8zJa.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-CUQ1Yts1.js";
|
|
3
|
+
import "./ts-DXmfJh7A.js";
|
|
4
4
|
import "./todoAutomation-CbVVS4re.js";
|
|
5
5
|
import "./JsonlStore-BqF7AQ6E.js";
|
|
6
6
|
import "./globalPidIndex-CRH9L9tn.js";
|
|
7
7
|
import "./pidStore-DXWqzTSz.js";
|
|
8
8
|
import "./messageLog-Brx3w6zT.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-CRRKEBRG.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-CpmqRQM2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import {
|
|
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-CUQ1Yts1.js";
|
|
3
|
+
import { i as findSpawnHiddenLauncher } from "./rustBinary-CZ1C8zJa.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-DXmfJh7A.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 { B as readLogForRender, F as listRecords, G as renderLogTailLines, H as readPtysize, J as resolveOne, K as renderRawLog, M as isUserTyping, O as isSlashCommand, S as extractTaskCounts, U as recentMessageEdges, V as readNotes, W as recentReadEdges, ct as framePaste, et as snapshotStatus, g as deriveLiveStatus, lt as shouldFramePaste, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, st as withIpcLock, u as cliDefaults, ut as TYPING_BADGE, x as extractNeedsInput, y as extractBadges } from "./subcommands-
|
|
15
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CRRKEBRG.js";
|
|
16
|
+
import { B as readLogForRender, F as listRecords, G as renderLogTailLines, H as readPtysize, J as resolveOne, K as renderRawLog, M as isUserTyping, O as isSlashCommand, S as extractTaskCounts, U as recentMessageEdges, V as readNotes, W as recentReadEdges, ct as framePaste, et as snapshotStatus, g as deriveLiveStatus, lt as shouldFramePaste, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, st as withIpcLock, u as cliDefaults, ut as TYPING_BADGE, x as extractNeedsInput, y as extractBadges } from "./subcommands-QKBFk-tQ.js";
|
|
17
17
|
import { c as isTransientLockMkdirError } from "./notifyStore-2SWKGwZI.js";
|
|
18
18
|
import { i as toWebrtcUrl, n as isWebrtcSpec } from "./webrtcLink-CnQf9pmu.js";
|
|
19
19
|
import "./remotes-tmKwrr20.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-HgxYi_-C.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-DzQsi6LE.js";
|
|
26
26
|
import { r as spawnRejectionReason } from "./spawnGate-YpHopveO.js";
|
|
27
|
-
import { i as launchTray } from "./trayApp-
|
|
27
|
+
import { i as launchTray } from "./trayApp-CcX_Limu.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";
|
|
@@ -2570,7 +2570,7 @@ Options:
|
|
|
2570
2570
|
}
|
|
2571
2571
|
});
|
|
2572
2572
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2573
|
-
const ws = await import("./ws-
|
|
2573
|
+
const ws = await import("./ws-BxXsKjPC.js");
|
|
2574
2574
|
try {
|
|
2575
2575
|
await ws.loadProvision();
|
|
2576
2576
|
} catch (e) {
|
|
@@ -2590,7 +2590,7 @@ Options:
|
|
|
2590
2590
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2591
2591
|
const dirRaw = url.searchParams.get("path");
|
|
2592
2592
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2593
|
-
const ws = await import("./ws-
|
|
2593
|
+
const ws = await import("./ws-BxXsKjPC.js");
|
|
2594
2594
|
let prov;
|
|
2595
2595
|
try {
|
|
2596
2596
|
prov = await ws.loadProvision();
|
|
@@ -2612,7 +2612,7 @@ Options:
|
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2615
|
-
const ws = await import("./ws-
|
|
2615
|
+
const ws = await import("./ws-BxXsKjPC.js");
|
|
2616
2616
|
try {
|
|
2617
2617
|
await ws.loadProvision();
|
|
2618
2618
|
} catch (e) {
|
|
@@ -2693,7 +2693,7 @@ Options:
|
|
|
2693
2693
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2694
2694
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2695
2695
|
const [, owner, repo] = m;
|
|
2696
|
-
const ws = await import("./ws-
|
|
2696
|
+
const ws = await import("./ws-BxXsKjPC.js");
|
|
2697
2697
|
let prov;
|
|
2698
2698
|
try {
|
|
2699
2699
|
prov = await ws.loadProvision();
|
|
@@ -3611,7 +3611,7 @@ Options:
|
|
|
3611
3611
|
const perm = body.perm ?? "r";
|
|
3612
3612
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3613
3613
|
try {
|
|
3614
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3614
|
+
const { createScopedShare } = await import("./agentShare-DA9JHBAX.js");
|
|
3615
3615
|
const share = await createScopedShare({
|
|
3616
3616
|
agent: body.agent,
|
|
3617
3617
|
perm,
|
|
@@ -3626,12 +3626,12 @@ Options:
|
|
|
3626
3626
|
}
|
|
3627
3627
|
}
|
|
3628
3628
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3629
|
-
const { listShares } = await import("./agentShare-
|
|
3629
|
+
const { listShares } = await import("./agentShare-DA9JHBAX.js");
|
|
3630
3630
|
return Response.json(listShares());
|
|
3631
3631
|
}
|
|
3632
3632
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3633
3633
|
if (req.method === "DELETE" && revokeM) {
|
|
3634
|
-
const { revokeShare } = await import("./agentShare-
|
|
3634
|
+
const { revokeShare } = await import("./agentShare-DA9JHBAX.js");
|
|
3635
3635
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3636
3636
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3637
3637
|
}
|
|
@@ -3937,7 +3937,7 @@ Options:
|
|
|
3937
3937
|
const shutdown = (resolve) => {
|
|
3938
3938
|
if (heartbeat) clearInterval(heartbeat);
|
|
3939
3939
|
closeShare?.();
|
|
3940
|
-
import("./agentShare-
|
|
3940
|
+
import("./agentShare-DA9JHBAX.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3941
3941
|
server?.stop();
|
|
3942
3942
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3943
3943
|
};
|
|
@@ -3950,4 +3950,4 @@ Options:
|
|
|
3950
3950
|
|
|
3951
3951
|
//#endregion
|
|
3952
3952
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3953
|
-
//# sourceMappingURL=serve-
|
|
3953
|
+
//# sourceMappingURL=serve-Fx8ax2Bl.js.map
|
|
@@ -97,7 +97,7 @@ async function cmdSetup(rest) {
|
|
|
97
97
|
} catch {}
|
|
98
98
|
if (noShare) return 0;
|
|
99
99
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
100
|
-
const { cmdServe } = await import("./serve-
|
|
100
|
+
const { cmdServe } = await import("./serve-Fx8ax2Bl.js");
|
|
101
101
|
return cmdServe([
|
|
102
102
|
"install",
|
|
103
103
|
"--share",
|
|
@@ -107,4 +107,4 @@ async function cmdSetup(rest) {
|
|
|
107
107
|
|
|
108
108
|
//#endregion
|
|
109
109
|
export { cmdSetup };
|
|
110
|
-
//# sourceMappingURL=setup-
|
|
110
|
+
//# sourceMappingURL=setup-D6Nbkztu.js.map
|
|
@@ -5,7 +5,7 @@ import "./pidStore-DXWqzTSz.js";
|
|
|
5
5
|
import "./messageLog-Brx3w6zT.js";
|
|
6
6
|
import "./e2e-z1xpwSAg.js";
|
|
7
7
|
import "./configShared-DKTgiz7K.js";
|
|
8
|
-
import { $ as sendPayloadCapError, A as isUnknownManagerToken, B as readLogForRender, C as finalizedLines, D as isPidAlive, E as isExitRequest, F as listRecords, G as renderLogTailLines, H as readPtysize, I as matchKeyword, J as resolveOne, K as renderRawLog, L as menuSelectKeys, M as isUserTyping, N as lastReadAt, O as isSlashCommand, P as lastStdinAt, Q as runSubcommand, R as probeStdinReachable, S as extractTaskCounts, T as isBareManagerInvocation, U as recentMessageEdges, V as readNotes, W as recentReadEdges, X as resolveResumeArgs, Y as resolveReadWindow, Z as restartHintLines, _ as envelopeAttribution, a as SEND_BODY_MAX_CHARS, at as writeKeysPaced, b as extractMenu, c as backoffWhileTyping, d as cmdHelp, et as snapshotStatus, f as confirmStdinUnreachable, g as deriveLiveStatus, h as deriveLiveState, i as READ_WINDOW_MS, it as waitForLogQuiet, j as isUnreachableWriteErrno, k as isSubcommand, l as buildEnvelope, m as cursorAbs, n as MAX_RENDER_BYTES, nt as stopTipForCli, o as SEND_EXIT_UNREACHABLE, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, r as READ_PAGE_DEFAULT, rt as submitAndConfirm, s as TYPING_WINDOW_MS, t as GRACEFUL_EXIT_COMMANDS, tt as stdinActivityPath, u as cliDefaults, v as envelopeCostFor, w as isAgentStuck, x as extractNeedsInput, y as extractBadges, z as readAgentPtysize } from "./subcommands-
|
|
8
|
+
import { $ as sendPayloadCapError, A as isUnknownManagerToken, B as readLogForRender, C as finalizedLines, D as isPidAlive, E as isExitRequest, F as listRecords, G as renderLogTailLines, H as readPtysize, I as matchKeyword, J as resolveOne, K as renderRawLog, L as menuSelectKeys, M as isUserTyping, N as lastReadAt, O as isSlashCommand, P as lastStdinAt, Q as runSubcommand, R as probeStdinReachable, S as extractTaskCounts, T as isBareManagerInvocation, U as recentMessageEdges, V as readNotes, W as recentReadEdges, X as resolveResumeArgs, Y as resolveReadWindow, Z as restartHintLines, _ as envelopeAttribution, a as SEND_BODY_MAX_CHARS, at as writeKeysPaced, b as extractMenu, c as backoffWhileTyping, d as cmdHelp, et as snapshotStatus, f as confirmStdinUnreachable, g as deriveLiveStatus, h as deriveLiveState, i as READ_WINDOW_MS, it as waitForLogQuiet, j as isUnreachableWriteErrno, k as isSubcommand, l as buildEnvelope, m as cursorAbs, n as MAX_RENDER_BYTES, nt as stopTipForCli, o as SEND_EXIT_UNREACHABLE, ot as writeToIpc, p as controlCodeFromName, q as renderRawLogLines, r as READ_PAGE_DEFAULT, rt as submitAndConfirm, s as TYPING_WINDOW_MS, t as GRACEFUL_EXIT_COMMANDS, tt as stdinActivityPath, u as cliDefaults, v as envelopeCostFor, w as isAgentStuck, x as extractNeedsInput, y as extractBadges, z as readAgentPtysize } from "./subcommands-QKBFk-tQ.js";
|
|
9
9
|
import "./notifyStore-2SWKGwZI.js";
|
|
10
10
|
import "./webrtcLink-CnQf9pmu.js";
|
|
11
11
|
import "./remotes-tmKwrr20.js";
|
|
@@ -1546,7 +1546,7 @@ async function runSubcommand(argv) {
|
|
|
1546
1546
|
switch (sub) {
|
|
1547
1547
|
case "ls":
|
|
1548
1548
|
case "list": return await cmdLs(rest);
|
|
1549
|
-
case "ps": return await (await import("./cmdPs-
|
|
1549
|
+
case "ps": return await (await import("./cmdPs-jMka-edy.js")).cmdPs(rest);
|
|
1550
1550
|
case "status": return await cmdStatus(rest);
|
|
1551
1551
|
case "whoami": return await cmdWhoami(rest);
|
|
1552
1552
|
case "result": return await cmdResult(rest);
|
|
@@ -1593,35 +1593,35 @@ async function runSubcommand(argv) {
|
|
|
1593
1593
|
return cmdCh(rest);
|
|
1594
1594
|
}
|
|
1595
1595
|
case "term": {
|
|
1596
|
-
const { cmdTerm } = await import("./terminal-
|
|
1596
|
+
const { cmdTerm } = await import("./terminal-DmmAuLyD.js");
|
|
1597
1597
|
return cmdTerm(rest);
|
|
1598
1598
|
}
|
|
1599
1599
|
case "widget": {
|
|
1600
|
-
const { cmdWidget } = await import("./widget-
|
|
1600
|
+
const { cmdWidget } = await import("./widget-DT3giHcb.js");
|
|
1601
1601
|
return cmdWidget(rest);
|
|
1602
1602
|
}
|
|
1603
1603
|
case "mint": {
|
|
1604
|
-
const { cmdMint } = await import("./widget-
|
|
1604
|
+
const { cmdMint } = await import("./widget-DT3giHcb.js");
|
|
1605
1605
|
return cmdMint(rest);
|
|
1606
1606
|
}
|
|
1607
1607
|
case "serve": {
|
|
1608
|
-
const { cmdServe } = await import("./serve-
|
|
1608
|
+
const { cmdServe } = await import("./serve-Fx8ax2Bl.js");
|
|
1609
1609
|
return cmdServe(rest);
|
|
1610
1610
|
}
|
|
1611
1611
|
case "tray": {
|
|
1612
|
-
const { cmdTray } = await import("./trayApp-
|
|
1612
|
+
const { cmdTray } = await import("./trayApp-BRYzwNa_.js");
|
|
1613
1613
|
return cmdTray(rest);
|
|
1614
1614
|
}
|
|
1615
1615
|
case "setup": {
|
|
1616
|
-
const { cmdSetup } = await import("./setup-
|
|
1616
|
+
const { cmdSetup } = await import("./setup-D6Nbkztu.js");
|
|
1617
1617
|
return cmdSetup(rest);
|
|
1618
1618
|
}
|
|
1619
1619
|
case "ws": {
|
|
1620
|
-
const { cmdWs } = await import("./ws-
|
|
1620
|
+
const { cmdWs } = await import("./ws-BxXsKjPC.js");
|
|
1621
1621
|
return cmdWs(rest);
|
|
1622
1622
|
}
|
|
1623
1623
|
case "schedule": {
|
|
1624
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1624
|
+
const { cmdSchedule } = await import("./schedule-CpmqRQM2.js");
|
|
1625
1625
|
return cmdSchedule(rest);
|
|
1626
1626
|
}
|
|
1627
1627
|
case "remote": {
|
|
@@ -1633,7 +1633,7 @@ async function runSubcommand(argv) {
|
|
|
1633
1633
|
return cmdExpose(rest);
|
|
1634
1634
|
}
|
|
1635
1635
|
case "callback": {
|
|
1636
|
-
const { cmdCallback } = await import("./callback-
|
|
1636
|
+
const { cmdCallback } = await import("./callback-DMTIxhi8.js");
|
|
1637
1637
|
return cmdCallback(rest);
|
|
1638
1638
|
}
|
|
1639
1639
|
case "reap":
|
|
@@ -1644,7 +1644,7 @@ async function runSubcommand(argv) {
|
|
|
1644
1644
|
return await cmdDsh(rest);
|
|
1645
1645
|
}
|
|
1646
1646
|
case "gc": {
|
|
1647
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
1647
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-B7R3qxyn.js");
|
|
1648
1648
|
const { gcLogs } = await import("./globalPidIndex-DC93JhHQ.js");
|
|
1649
1649
|
const bins = gcOldBinaryDirs();
|
|
1650
1650
|
const logs = await gcLogs();
|
|
@@ -4351,7 +4351,7 @@ async function cmdAttach(rest) {
|
|
|
4351
4351
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
4352
4352
|
await mkdir(winsizeDir, { recursive: true });
|
|
4353
4353
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
4354
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
4354
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Fx8ax2Bl.js");
|
|
4355
4355
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
4356
4356
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
4357
4357
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -5078,7 +5078,7 @@ async function cmdNotify(rest) {
|
|
|
5078
5078
|
}
|
|
5079
5079
|
const ensure = async () => {
|
|
5080
5080
|
if (!argv["ensure-daemon"]) return;
|
|
5081
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
5081
|
+
const { ensureDaemon } = await import("./notifyDaemon-EVPn_mfo.js");
|
|
5082
5082
|
await ensureDaemon().catch(() => null);
|
|
5083
5083
|
};
|
|
5084
5084
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -5152,7 +5152,7 @@ async function cmdNotifyCursor(args) {
|
|
|
5152
5152
|
}
|
|
5153
5153
|
async function cmdNotifyd(rest) {
|
|
5154
5154
|
const sub = rest[0] ?? "status";
|
|
5155
|
-
const daemon = await import("./notifyDaemon-
|
|
5155
|
+
const daemon = await import("./notifyDaemon-EVPn_mfo.js");
|
|
5156
5156
|
switch (sub) {
|
|
5157
5157
|
case "run": return daemon.runDaemon();
|
|
5158
5158
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -5179,4 +5179,4 @@ async function cmdNotifyd(rest) {
|
|
|
5179
5179
|
|
|
5180
5180
|
//#endregion
|
|
5181
5181
|
export { sendPayloadCapError as $, isUnknownManagerToken as A, readLogForRender as B, finalizedLines as C, isPidAlive as D, isExitRequest as E, listRecords as F, renderLogTailLines as G, readPtysize as H, matchKeyword as I, resolveOne as J, renderRawLog as K, menuSelectKeys as L, isUserTyping as M, lastReadAt as N, isSlashCommand as O, lastStdinAt as P, runSubcommand as Q, probeStdinReachable as R, extractTaskCounts as S, isBareManagerInvocation as T, recentMessageEdges as U, readNotes as V, recentReadEdges as W, resolveResumeArgs as X, resolveReadWindow as Y, restartHintLines as Z, envelopeAttribution as _, SEND_BODY_MAX_CHARS as a, writeKeysPaced as at, extractMenu as b, backoffWhileTyping as c, framePaste as ct, cmdHelp as d, buildAgentForest as dt, snapshotStatus as et, confirmStdinUnreachable as f, flattenForest as ft, deriveLiveStatus as g, deriveLiveState as h, READ_WINDOW_MS as i, waitForLogQuiet as it, isUnreachableWriteErrno as j, isSubcommand as k, buildEnvelope as l, shouldFramePaste as lt, cursorAbs as m, MAX_RENDER_BYTES as n, stopTipForCli as nt, SEND_EXIT_UNREACHABLE as o, writeToIpc as ot, controlCodeFromName as p, renderRawLogLines as q, READ_PAGE_DEFAULT as r, submitAndConfirm as rt, TYPING_WINDOW_MS as s, withIpcLock as st, GRACEFUL_EXIT_COMMANDS as t, stdinActivityPath as tt, cliDefaults as u, TYPING_BADGE as ut, envelopeCostFor as v, isAgentStuck as w, extractNeedsInput as x, extractBadges as y, readAgentPtysize as z };
|
|
5182
|
-
//# sourceMappingURL=subcommands-
|
|
5182
|
+
//# sourceMappingURL=subcommands-QKBFk-tQ.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-Fx8ax2Bl.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-DmmAuLyD.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as findTrayLauncher } from "./rustBinary-CZ1C8zJa.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-CcX_Limu.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-CUQ1Yts1.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";
|
|
@@ -2086,7 +2086,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2086
2086
|
}, 100);
|
|
2087
2087
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2088
2088
|
shell.onExit(cleanupHeartbeat);
|
|
2089
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2089
|
+
const { startParentPingLoop } = await import("./parentPingLoop-B87hqLZ3.js");
|
|
2090
2090
|
const parentPingLoop = startParentPingLoop({
|
|
2091
2091
|
parentPid,
|
|
2092
2092
|
selfWrapperPid: process.pid,
|
|
@@ -2349,4 +2349,4 @@ function sleep(ms) {
|
|
|
2349
2349
|
|
|
2350
2350
|
//#endregion
|
|
2351
2351
|
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 };
|
|
2352
|
-
//# sourceMappingURL=ts-
|
|
2352
|
+
//# sourceMappingURL=ts-DXmfJh7A.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.291.
|
|
10
|
+
var version = "1.291.1-beta.742.1";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -285,4 +285,4 @@ async function displayVersion() {
|
|
|
285
285
|
|
|
286
286
|
//#endregion
|
|
287
287
|
export { versionString as a, getInstalledPackage as i, compareVersions as n, displayVersion as r, checkAndAutoUpdate as t };
|
|
288
|
-
//# sourceMappingURL=versionChecker-
|
|
288
|
+
//# sourceMappingURL=versionChecker-CUQ1Yts1.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-Fx8ax2Bl.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-Fx8ax2Bl.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-DT3giHcb.js.map
|
|
@@ -5,10 +5,10 @@ import "./pidStore-DXWqzTSz.js";
|
|
|
5
5
|
import "./messageLog-Brx3w6zT.js";
|
|
6
6
|
import "./e2e-z1xpwSAg.js";
|
|
7
7
|
import "./configShared-DKTgiz7K.js";
|
|
8
|
-
import "./subcommands-
|
|
8
|
+
import "./subcommands-QKBFk-tQ.js";
|
|
9
9
|
import "./notifyStore-2SWKGwZI.js";
|
|
10
10
|
import "./webrtcLink-CnQf9pmu.js";
|
|
11
11
|
import "./remotes-tmKwrr20.js";
|
|
12
|
-
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-
|
|
12
|
+
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-DzQsi6LE.js";
|
|
13
13
|
|
|
14
14
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as listRecords } from "./subcommands-
|
|
1
|
+
import { F as listRecords } from "./subcommands-QKBFk-tQ.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-DzQsi6LE.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -683,6 +683,30 @@
|
|
|
683
683
|
color: var(--muted);
|
|
684
684
|
font-size: 11.5px;
|
|
685
685
|
}
|
|
686
|
+
/* Collapsed intro. `hidden` does the hiding (see the toggle) — these rules
|
|
687
|
+
only space it out once shown, so the header stays one line by default. */
|
|
688
|
+
.about {
|
|
689
|
+
margin-top: 2px;
|
|
690
|
+
}
|
|
691
|
+
.abouttoggle {
|
|
692
|
+
background: none;
|
|
693
|
+
border: 1px solid var(--line);
|
|
694
|
+
color: var(--muted);
|
|
695
|
+
border-radius: 999px;
|
|
696
|
+
font-size: 11px;
|
|
697
|
+
line-height: 1;
|
|
698
|
+
padding: 2px 6px;
|
|
699
|
+
margin-left: 6px;
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
vertical-align: middle;
|
|
702
|
+
}
|
|
703
|
+
.abouttoggle:hover {
|
|
704
|
+
color: var(--fg);
|
|
705
|
+
}
|
|
706
|
+
.abouttoggle[aria-expanded="true"] {
|
|
707
|
+
color: var(--fg);
|
|
708
|
+
border-color: var(--fg);
|
|
709
|
+
}
|
|
686
710
|
.install code {
|
|
687
711
|
cursor: pointer;
|
|
688
712
|
color: var(--green);
|
|
@@ -2160,12 +2184,27 @@
|
|
|
2160
2184
|
<span class="tag">agent-yes</span> · console
|
|
2161
2185
|
<span class="build" id="buildtag" title="frontend build (deploy commit)"></span>
|
|
2162
2186
|
<a class="envswitch" id="envswitch" hidden></a>
|
|
2187
|
+
<button
|
|
2188
|
+
type="button"
|
|
2189
|
+
class="abouttoggle"
|
|
2190
|
+
id="abouttoggle"
|
|
2191
|
+
aria-expanded="false"
|
|
2192
|
+
aria-controls="about"
|
|
2193
|
+
title="what this is · install commands"
|
|
2194
|
+
>
|
|
2195
|
+
ⓘ
|
|
2196
|
+
</button>
|
|
2163
2197
|
</h1>
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2198
|
+
<!-- The blurb and the install one-liners are read once and then never
|
|
2199
|
+
again, but they cost ~70px of header on every load — on a phone that
|
|
2200
|
+
is a third of the list. Collapsed by default behind the ⓘ; the agent
|
|
2201
|
+
list is what people come back for. -->
|
|
2202
|
+
<div id="about" class="about" hidden>
|
|
2203
|
+
<div class="sub">
|
|
2204
|
+
Live <code>ay ls</code> + per-agent tail & send. Backed by <code>ay serve</code>.
|
|
2205
|
+
</div>
|
|
2206
|
+
<div class="install" title="click to copy">
|
|
2207
|
+
install:
|
|
2169
2208
|
<code class="copy" id="setup-sh">curl -fsSL https://agent-yes.com/setup.sh | sh</code>
|
|
2170
2209
|
<span class="winhint"
|
|
2171
2210
|
>· Windows:
|
|
@@ -2173,6 +2212,7 @@
|
|
|
2173
2212
|
>powershell -c "irm https://agent-yes.com/setup.ps1 | iex"</code
|
|
2174
2213
|
></span
|
|
2175
2214
|
>
|
|
2215
|
+
</div>
|
|
2176
2216
|
</div>
|
|
2177
2217
|
<div class="ibox">
|
|
2178
2218
|
<span class="mag">⌕</span>
|
|
@@ -2727,6 +2767,43 @@
|
|
|
2727
2767
|
$("setup-sh").title = `installs ${installPackage}`;
|
|
2728
2768
|
$("setup-ps").textContent = `powershell -c "irm ${installOrigin}/setup.ps1 | iex"`;
|
|
2729
2769
|
$("setup-ps").title = `installs ${installPackage}`;
|
|
2770
|
+
|
|
2771
|
+
// Intro + install one-liners: read once, then pure header tax on every
|
|
2772
|
+
// later visit. Collapsed by default; the choice persists so someone who
|
|
2773
|
+
// wants them open keeps them open. A first-time visitor with no agents to
|
|
2774
|
+
// look at still needs the install command, so open it for them — that is
|
|
2775
|
+
// the only case where the header is more useful than the list.
|
|
2776
|
+
(() => {
|
|
2777
|
+
const box = $("about");
|
|
2778
|
+
const btn = $("abouttoggle");
|
|
2779
|
+
if (!box || !btn) return;
|
|
2780
|
+
const KEY = "ay.about.open";
|
|
2781
|
+
let open = false;
|
|
2782
|
+
try {
|
|
2783
|
+
const saved = localStorage.getItem(KEY);
|
|
2784
|
+
// No stored preference and no saved rooms yet → first run, so show the
|
|
2785
|
+
// install command. Read the rooms key directly: loadRooms() is a `const`
|
|
2786
|
+
// defined much further down, so calling it from here is a TDZ error.
|
|
2787
|
+
const rooms = localStorage.getItem("ay.rooms");
|
|
2788
|
+
open = saved === null ? !rooms || rooms === "{}" : saved === "1";
|
|
2789
|
+
} catch {
|
|
2790
|
+
/* private mode / storage blocked — stay collapsed */
|
|
2791
|
+
}
|
|
2792
|
+
const apply = () => {
|
|
2793
|
+
box.hidden = !open;
|
|
2794
|
+
btn.setAttribute("aria-expanded", String(open));
|
|
2795
|
+
};
|
|
2796
|
+
btn.addEventListener("click", () => {
|
|
2797
|
+
open = !open;
|
|
2798
|
+
apply();
|
|
2799
|
+
try {
|
|
2800
|
+
localStorage.setItem(KEY, open ? "1" : "0");
|
|
2801
|
+
} catch {
|
|
2802
|
+
/* best effort */
|
|
2803
|
+
}
|
|
2804
|
+
});
|
|
2805
|
+
apply();
|
|
2806
|
+
})();
|
|
2730
2807
|
// Escape for HTML — including BOTH quote styles, because esc() is
|
|
2731
2808
|
// interpolated into double-quoted attribute values (title="${esc(...)}",
|
|
2732
2809
|
// data-key="${esc(...)}", …), not just element text. A remote host controls
|
|
@@ -8278,6 +8355,25 @@ my.translate = async (text, lang) => {
|
|
|
8278
8355
|
// next poll picks up its agents once the tunnel is open.
|
|
8279
8356
|
async function addRoomSource(room, token, host) {
|
|
8280
8357
|
host = host || SIG_DEFAULT;
|
|
8358
|
+
// A codehost room is identified by its TOKEN; the name is a local label
|
|
8359
|
+
// someone typed. Saved rooms are keyed by name (see saveRoom), so honouring
|
|
8360
|
+
// a chosen name lets a SECOND room saved under the same name overwrite the
|
|
8361
|
+
// first one's token — silently, and the lost room is unrecoverable from
|
|
8362
|
+
// this browser. Two people both calling their fleet "fleet" is the obvious
|
|
8363
|
+
// way to hit it. Only the COLLIDING add moves aside — to the token-derived
|
|
8364
|
+
// name the ch: paste form already uses. Renaming unconditionally instead
|
|
8365
|
+
// would re-key every saved room on reconnect, orphaning its old entry and
|
|
8366
|
+
// breaking #room:pid deep links that carry the old name, which is a worse
|
|
8367
|
+
// bug than the one being fixed.
|
|
8368
|
+
//
|
|
8369
|
+
// chName is a 4-char base36 FNV-1a, so it is not injective — but 36^4
|
|
8370
|
+
// against MAX_ROOMS=16 puts an accidental clash near 0.007%, versus a
|
|
8371
|
+
// chosen-name clash that is routine ("fleet", "prod"). It is a better
|
|
8372
|
+
// key here, not a collision-free one.
|
|
8373
|
+
if (host === CH_HOST) {
|
|
8374
|
+
const saved = loadRooms()[room];
|
|
8375
|
+
if (saved && saved.token !== token) room = chName(token);
|
|
8376
|
+
}
|
|
8281
8377
|
saveRoom(room, token, host); // cache so the badge can list & reconnect later
|
|
8282
8378
|
// A codehost room is a connection, not a machine: it contributes one source
|
|
8283
8379
|
// per machine as peers announce themselves (CodehostRoom.syncPeers).
|
package/package.json
CHANGED
package/ts/rustBinary.spec.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
|
2
2
|
import { existsSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import { gcOldBinaryDirs } from "./rustBinary.ts";
|
|
5
|
+
import { devBuildInfo, gcOldBinaryDirs } from "./rustBinary.ts";
|
|
6
6
|
import { _setInstalledPackageForTesting } from "./versionChecker.ts";
|
|
7
7
|
|
|
8
8
|
// Startup GC for the versioned binary download cache (PERFORMANCE-EVENT
|
|
@@ -79,3 +79,39 @@ describe("gcOldBinaryDirs", () => {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
+
|
|
83
|
+
// The dev-build auto-rebuild used a `/`-only path match, so on Windows (where
|
|
84
|
+
// path.resolve yields backslashes) it never recognised target/release and a
|
|
85
|
+
// stale exe kept shipping bugs already fixed on main. Both separators must work.
|
|
86
|
+
describe("devBuildInfo", () => {
|
|
87
|
+
it("recognises a POSIX dev build path", () => {
|
|
88
|
+
expect(devBuildInfo("/repo/alpha/rs/target/release/agent-yes")).toEqual({
|
|
89
|
+
rsDir: "/repo/alpha/rs",
|
|
90
|
+
isRelease: true,
|
|
91
|
+
});
|
|
92
|
+
expect(devBuildInfo("/repo/alpha/rs/target/debug/agent-yes")).toEqual({
|
|
93
|
+
rsDir: "/repo/alpha/rs",
|
|
94
|
+
isRelease: false,
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it("recognises a Windows dev build path with backslashes and .exe", () => {
|
|
99
|
+
expect(devBuildInfo(String.raw`C:\x\alpha\rs\target\release\agent-yes.exe`)).toEqual({
|
|
100
|
+
rsDir: String.raw`C:\x\alpha\rs`,
|
|
101
|
+
isRelease: true,
|
|
102
|
+
});
|
|
103
|
+
expect(devBuildInfo(String.raw`C:\x\alpha\rs\target\debug\agent-yes.exe`)).toEqual({
|
|
104
|
+
rsDir: String.raw`C:\x\alpha\rs`,
|
|
105
|
+
isRelease: false,
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it("returns undefined for a downloaded/cached binary", () => {
|
|
110
|
+
expect(
|
|
111
|
+
devBuildInfo("/home/alice/.cache/agent-yes/bin/1.2.3/agent-yes-linux-x64"),
|
|
112
|
+
).toBeUndefined();
|
|
113
|
+
expect(
|
|
114
|
+
devBuildInfo(String.raw`C:\x\.cache\agent-yes\bin\1.2.3\agent-yes-win32-x64.exe`),
|
|
115
|
+
).toBeUndefined();
|
|
116
|
+
});
|
|
117
|
+
});
|
package/ts/rustBinary.ts
CHANGED
|
@@ -358,13 +358,29 @@ function getRustBinaryVersion(binaryPath: string): string | null {
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Locate a local dev build from its binary path: `<rsDir>/target/{release,debug}/agent-yes[.exe]`.
|
|
363
|
+
* Accepts both `/` and `\` separators — `path.resolve` yields backslashes on
|
|
364
|
+
* Windows, and a `/`-only match silently disabled the auto-rebuild there (the
|
|
365
|
+
* stale `target/release` exe then kept shipping bugs already fixed on main).
|
|
366
|
+
* Returns undefined for a downloaded/cached (non-dev) binary.
|
|
367
|
+
*/
|
|
368
|
+
export function devBuildInfo(
|
|
369
|
+
binaryPath: string,
|
|
370
|
+
): { rsDir: string; isRelease: boolean } | undefined {
|
|
371
|
+
const m = binaryPath.match(/^(.*)[\\/]target[\\/](release|debug)[\\/]agent-yes(?:\.exe)?$/);
|
|
372
|
+
if (!m) return undefined;
|
|
373
|
+
return { rsDir: m[1]!, isRelease: m[2] === "release" };
|
|
374
|
+
}
|
|
375
|
+
|
|
361
376
|
/**
|
|
362
377
|
* Check if a binary path is inside a git repo (dev build), and rebuild if outdated.
|
|
363
378
|
* Returns the same path if up-to-date or rebuilt, undefined if rebuild failed.
|
|
364
379
|
*/
|
|
365
380
|
function autoRebuildIfOutdated(binaryPath: string, verbose: boolean): boolean {
|
|
366
381
|
// Only auto-rebuild for local dev builds (target/release or target/debug)
|
|
367
|
-
|
|
382
|
+
const dev = devBuildInfo(binaryPath);
|
|
383
|
+
if (!dev) {
|
|
368
384
|
return true; // not a dev build, skip
|
|
369
385
|
}
|
|
370
386
|
|
|
@@ -379,7 +395,7 @@ function autoRebuildIfOutdated(binaryPath: string, verbose: boolean): boolean {
|
|
|
379
395
|
}
|
|
380
396
|
|
|
381
397
|
// Find the rs/ directory relative to the binary (binary is at rs/target/release/agent-yes)
|
|
382
|
-
const rsDir =
|
|
398
|
+
const { rsDir, isRelease } = dev;
|
|
383
399
|
if (!existsSync(path.join(rsDir, "Cargo.toml"))) {
|
|
384
400
|
if (verbose) console.log(`[rust] Cannot find Cargo.toml at ${rsDir}, skipping rebuild`);
|
|
385
401
|
return true; // can't rebuild, use as-is
|
|
@@ -390,7 +406,6 @@ function autoRebuildIfOutdated(binaryPath: string, verbose: boolean): boolean {
|
|
|
390
406
|
);
|
|
391
407
|
|
|
392
408
|
try {
|
|
393
|
-
const isRelease = binaryPath.includes("/target/release");
|
|
394
409
|
const args = ["build", ...(isRelease ? ["--release"] : [])];
|
|
395
410
|
execFileSync("cargo", args, {
|
|
396
411
|
cwd: rsDir,
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "./versionChecker-CWPGASjD.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-Clbk_K5c.js";
|
|
3
|
-
|
|
4
|
-
export { gcOldBinaryDirs };
|
package/dist/trayApp-BjQ5V3WV.js
DELETED