agent-yes 1.304.1 → 1.304.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-Czys-z07.js +12 -0
- package/dist/{SUPPORTED_CLIS-D1BObsKi.js → SUPPORTED_CLIS-T7Sv53Bo.js} +2 -2
- package/dist/{agentShare-pQedI_ay.js → agentShare-2m6Z2vy2.js} +4 -4
- package/dist/{askCli-KmMf-3wA.js → askCli-Dtxxwl28.js} +3 -3
- package/dist/{callback-WJ1STnzc.js → callback-B38IQXNa.js} +4 -4
- package/dist/{callback-Bd_uX6c9.js → callback-DxPucqvt.js} +3 -3
- package/dist/cli.js +10 -10
- package/dist/{cmdKill-CzSBfWmx.js → cmdKill-DUyZ7Dch.js} +2 -2
- package/dist/{cmdPs-Bzld9JDB.js → cmdPs-BQ-U5pf8.js} +4 -4
- package/dist/{cwdConflictWarn-y-epQyOj.js → cwdConflictWarn-ml6Qs3Qu.js} +2 -2
- package/dist/{forkNested-3heLs5XC.js → forkNested-DHuYbpaf.js} +3 -3
- package/dist/{globalPidIndex-BsjlId-h.js → globalPidIndex-C6p_AY4D.js} +5 -2
- package/dist/globalPidIndex-DmDCB_X7.js +4 -0
- package/dist/index.js +4 -4
- package/dist/{notifyDaemon-D_fT6Xht.js → notifyDaemon-6FYHbi51.js} +4 -4
- package/dist/{parentLink-MBUD3oY2.js → parentLink-B7_kEM1v.js} +2 -2
- package/dist/{parentLink-BcAYcO9L.js → parentLink-UiM6WoKm.js} +2 -2
- package/dist/{parentPingLoop-CVqnIzti.js → parentPingLoop-CeKYccEV.js} +4 -4
- package/dist/pidStore-B89BOF_T.js +6 -0
- package/dist/{pidStore-C50VPk3E.js → pidStore-DUXifdBr.js} +2 -2
- package/dist/{rustBinary-AJOmpsZY.js → rustBinary-BJbqTNcY.js} +2 -2
- package/dist/{rustBinary-BEUXAC5F.js → rustBinary-DD2EpKiN.js} +2 -2
- package/dist/{schedule-CeSvliXR.js → schedule-BrSPuXnv.js} +6 -6
- package/dist/{serve-Dn24AExp.js → serve-Gx4dc4LJ.js} +24 -24
- package/dist/{setup-onxpwXOt.js → setup-7OfVzrI2.js} +2 -2
- package/dist/{shareCmd-Bfxkzdm6.js → shareCmd-CruQ5TDa.js} +5 -5
- package/dist/{spawnGate-Dj_WaS29.js → spawnGate-3YSXiRFS.js} +2 -2
- package/dist/spawnGate-I4p2fbz7.js +5 -0
- package/dist/{subcommands--RGuFC68.js → subcommands-BqXeFyvv.js} +102 -31
- package/dist/{subcommands-B-VG0io0.js → subcommands-DW-SDIw2.js} +3 -3
- package/dist/{terminal-Jsj7SgxD.js → terminal-D36_TtJ3.js} +2 -2
- package/dist/{todoCli-CU9vSJSJ.js → todoCli-uJ3nK9j4.js} +3 -3
- package/dist/{todoIdentity-CzS1e7VL.js → todoIdentity-DeDp7LKl.js} +2 -2
- package/dist/trayApp-4sRZjNFr.js +5 -0
- package/dist/{trayApp-lEZ-Wa4D.js → trayApp-Hm0H3QAF.js} +2 -2
- package/dist/{ts-DLPvUXQS.js → ts-C8pyst8x.js} +6 -6
- package/dist/{versionChecker-Dtj0d8dY.js → versionChecker-D_4wDPSc.js} +2 -2
- package/dist/{widget-CyoP4Stv.js → widget-DpJJm-o5.js} +3 -3
- package/dist/{ws-DtFNNKlC.js → ws-BPUFhNVb.js} +4 -4
- package/dist/{ws-CDZj5r8l.js → ws-DYCivkyv.js} +2 -2
- package/package.json +1 -1
- package/ts/subcommands.ts +97 -10
- package/dist/SUPPORTED_CLIS-R2KdLsVb.js +0 -12
- package/dist/globalPidIndex-uoz8Esqz.js +0 -4
- package/dist/pidStore-COkPjpW8.js +0 -6
- package/dist/spawnGate-Dfj9V76w.js +0 -5
- package/dist/trayApp-Bngl2X4e.js +0 -5
|
@@ -244,7 +244,7 @@ Options:
|
|
|
244
244
|
--port N HTTP port (default: ${DEFAULT_SHARE_PORT}, or the daemon's)\n --path /ay tailscale mount path (default: ${DEFAULT_TS_PATH})\n -y, --yes approve the shown commands without prompting\n --json print {mode, url} as JSON\n\nThe URL carries this host's serve token: whoever holds it can read and steer\nevery agent here. Rotate: rm ~/.agent-yes/.serve-token && ay serve install\n`;
|
|
245
245
|
async function shareRuntimeOf(args) {
|
|
246
246
|
const { daemonShareRuntime } = await import("./serveRust-BfWkeL6T.js");
|
|
247
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
247
|
+
const { findAyrsBinary } = await import("./rustBinary-DD2EpKiN.js");
|
|
248
248
|
return daemonShareRuntime(args ?? [], () => !!findAyrsBinary());
|
|
249
249
|
}
|
|
250
250
|
async function daemonShareLink(args) {
|
|
@@ -260,7 +260,7 @@ async function daemonShareLink(args) {
|
|
|
260
260
|
async function foregroundAyrsShareLink() {
|
|
261
261
|
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-_TPYAGWC.js");
|
|
262
262
|
const { parseWebrtcLink } = await import("./webrtcLink-WxS1nTIs.js");
|
|
263
|
-
const { isPidAlive } = await import("./subcommands-
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-DW-SDIw2.js");
|
|
264
264
|
const { agentYesHome } = await import("./agentYesHome-CYNNNP71.js");
|
|
265
265
|
const { readFile } = await import("fs/promises");
|
|
266
266
|
const path = await import("path");
|
|
@@ -276,7 +276,7 @@ async function foregroundAyrsShareLink() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
async function cmdShareStatus(mount) {
|
|
279
|
-
const { inspectServeDaemon } = await import("./serve-
|
|
279
|
+
const { inspectServeDaemon } = await import("./serve-Gx4dc4LJ.js");
|
|
280
280
|
const [d, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
|
|
281
281
|
const line = (k, v) => process.stdout.write(`${k.padEnd(11)}${v}\n`);
|
|
282
282
|
if (d.args === null) {
|
|
@@ -323,7 +323,7 @@ async function cmdShare(rest) {
|
|
|
323
323
|
process.stderr.write(`ay share: unknown mode '${mode}' — one of ${SHARE_MODES.join(", ")}\n`);
|
|
324
324
|
return 1;
|
|
325
325
|
}
|
|
326
|
-
const { inspectServeDaemon, cmdServe } = await import("./serve-
|
|
326
|
+
const { inspectServeDaemon, cmdServe } = await import("./serve-Gx4dc4LJ.js");
|
|
327
327
|
const [daemon, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
|
|
328
328
|
const lanIp = pickLanIp(networkInterfaces());
|
|
329
329
|
if (!mode) {
|
|
@@ -448,4 +448,4 @@ async function cmdShare(rest) {
|
|
|
448
448
|
|
|
449
449
|
//#endregion
|
|
450
450
|
export { cmdShare, daemonShareLink, foregroundAyrsShareLink };
|
|
451
|
-
//# sourceMappingURL=shareCmd-
|
|
451
|
+
//# sourceMappingURL=shareCmd-CruQ5TDa.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as readGlobalPids } from "./globalPidIndex-C6p_AY4D.js";
|
|
2
2
|
import { n as getMaxAgents, r as getMinFreeMb, s as getSpawnWaitMs } from "./workspaceConfig-DBgsu81B.js";
|
|
3
3
|
import { readFile } from "fs/promises";
|
|
4
4
|
|
|
@@ -104,4 +104,4 @@ async function waitForSpawnCapacity(opts) {
|
|
|
104
104
|
|
|
105
105
|
//#endregion
|
|
106
106
|
export { waitForSpawnCapacity as i, spawnGateEnabled as n, spawnRejectionReason as r, memAvailableMb as t };
|
|
107
|
-
//# sourceMappingURL=spawnGate-
|
|
107
|
+
//# sourceMappingURL=spawnGate-3YSXiRFS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as PidStore } from "./pidStore-
|
|
3
|
+
import { c as updateGlobalPidStatus, o as readGlobalPids, r as getGlobalPidIndexPath } from "./globalPidIndex-C6p_AY4D.js";
|
|
4
|
+
import { t as PidStore } from "./pidStore-DUXifdBr.js";
|
|
5
5
|
import { a as recordOutbox, i as recordMessage, n as readMailbox, o as senderLabel, t as partyMatches } from "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import { t as loadSharedCliDefaults } from "./configShared-De4bR5hH.js";
|
|
7
7
|
import { n as localHost, r as localUser, t as formatIdentity } from "./identity-Ckav3-Up.js";
|
|
@@ -2071,7 +2071,7 @@ async function runSubcommand(argv) {
|
|
|
2071
2071
|
switch (sub) {
|
|
2072
2072
|
case "ls":
|
|
2073
2073
|
case "list": return await cmdLs(rest);
|
|
2074
|
-
case "ps": return await (await import("./cmdPs-
|
|
2074
|
+
case "ps": return await (await import("./cmdPs-BQ-U5pf8.js")).cmdPs(rest);
|
|
2075
2075
|
case "status": return await cmdStatus(rest);
|
|
2076
2076
|
case "whoami": return await cmdWhoami(rest);
|
|
2077
2077
|
case "result": return await cmdResult(rest);
|
|
@@ -2095,11 +2095,11 @@ async function runSubcommand(argv) {
|
|
|
2095
2095
|
case "stop": return await cmdStop(rest);
|
|
2096
2096
|
case "exit": return await cmdExit(rest);
|
|
2097
2097
|
case "restart": return await cmdRestart(rest);
|
|
2098
|
-
case "kill": return await (await import("./cmdKill-
|
|
2098
|
+
case "kill": return await (await import("./cmdKill-DUyZ7Dch.js")).cmdKill(rest);
|
|
2099
2099
|
case "note": return await cmdNote(rest);
|
|
2100
2100
|
case "ask":
|
|
2101
2101
|
case "answer": {
|
|
2102
|
-
const { runAskSubcommand, runAnswerSubcommand } = await import("./askCli-
|
|
2102
|
+
const { runAskSubcommand, runAnswerSubcommand } = await import("./askCli-Dtxxwl28.js");
|
|
2103
2103
|
const deps = {
|
|
2104
2104
|
resolveAgent: (keyword) => resolveOne(keyword, {
|
|
2105
2105
|
all: true,
|
|
@@ -2113,7 +2113,7 @@ async function runSubcommand(argv) {
|
|
|
2113
2113
|
return sub === "ask" ? await runAskSubcommand(rest, deps) : await runAnswerSubcommand(rest, deps);
|
|
2114
2114
|
}
|
|
2115
2115
|
case "todo": {
|
|
2116
|
-
const { runTodoSubcommand } = await import("./todoCli-
|
|
2116
|
+
const { runTodoSubcommand } = await import("./todoCli-uJ3nK9j4.js");
|
|
2117
2117
|
return runTodoSubcommand(rest);
|
|
2118
2118
|
}
|
|
2119
2119
|
case "ch":
|
|
@@ -2122,31 +2122,31 @@ async function runSubcommand(argv) {
|
|
|
2122
2122
|
return cmdCh(rest);
|
|
2123
2123
|
}
|
|
2124
2124
|
case "term": {
|
|
2125
|
-
const { cmdTerm } = await import("./terminal-
|
|
2125
|
+
const { cmdTerm } = await import("./terminal-D36_TtJ3.js");
|
|
2126
2126
|
return cmdTerm(rest);
|
|
2127
2127
|
}
|
|
2128
2128
|
case "widget": {
|
|
2129
|
-
const { cmdWidget } = await import("./widget-
|
|
2129
|
+
const { cmdWidget } = await import("./widget-DpJJm-o5.js");
|
|
2130
2130
|
return cmdWidget(rest);
|
|
2131
2131
|
}
|
|
2132
2132
|
case "mint": {
|
|
2133
|
-
const { cmdMint } = await import("./widget-
|
|
2133
|
+
const { cmdMint } = await import("./widget-DpJJm-o5.js");
|
|
2134
2134
|
return cmdMint(rest);
|
|
2135
2135
|
}
|
|
2136
2136
|
case "serve": {
|
|
2137
|
-
const { cmdServe } = await import("./serve-
|
|
2137
|
+
const { cmdServe } = await import("./serve-Gx4dc4LJ.js");
|
|
2138
2138
|
return cmdServe(rest);
|
|
2139
2139
|
}
|
|
2140
2140
|
case "tray": {
|
|
2141
|
-
const { cmdTray } = await import("./trayApp-
|
|
2141
|
+
const { cmdTray } = await import("./trayApp-4sRZjNFr.js");
|
|
2142
2142
|
return cmdTray(rest);
|
|
2143
2143
|
}
|
|
2144
2144
|
case "setup": {
|
|
2145
|
-
const { cmdSetup } = await import("./setup-
|
|
2145
|
+
const { cmdSetup } = await import("./setup-7OfVzrI2.js");
|
|
2146
2146
|
return cmdSetup(rest);
|
|
2147
2147
|
}
|
|
2148
2148
|
case "ws": {
|
|
2149
|
-
const { cmdWs } = await import("./ws-
|
|
2149
|
+
const { cmdWs } = await import("./ws-BPUFhNVb.js");
|
|
2150
2150
|
return cmdWs(rest);
|
|
2151
2151
|
}
|
|
2152
2152
|
case "schedules":
|
|
@@ -2159,7 +2159,7 @@ async function runSubcommand(argv) {
|
|
|
2159
2159
|
return cmdCron(rest);
|
|
2160
2160
|
}
|
|
2161
2161
|
case "schedule": {
|
|
2162
|
-
const { cmdSchedule } = await import("./schedule-
|
|
2162
|
+
const { cmdSchedule } = await import("./schedule-BrSPuXnv.js");
|
|
2163
2163
|
return cmdSchedule(rest);
|
|
2164
2164
|
}
|
|
2165
2165
|
case "remote": {
|
|
@@ -2167,7 +2167,7 @@ async function runSubcommand(argv) {
|
|
|
2167
2167
|
return cmdRemote(rest);
|
|
2168
2168
|
}
|
|
2169
2169
|
case "share": {
|
|
2170
|
-
const { cmdShare } = await import("./shareCmd-
|
|
2170
|
+
const { cmdShare } = await import("./shareCmd-CruQ5TDa.js");
|
|
2171
2171
|
return cmdShare(rest);
|
|
2172
2172
|
}
|
|
2173
2173
|
case "connect": {
|
|
@@ -2179,7 +2179,7 @@ async function runSubcommand(argv) {
|
|
|
2179
2179
|
return cmdExpose(rest);
|
|
2180
2180
|
}
|
|
2181
2181
|
case "callback": {
|
|
2182
|
-
const { cmdCallback } = await import("./callback-
|
|
2182
|
+
const { cmdCallback } = await import("./callback-B38IQXNa.js");
|
|
2183
2183
|
return cmdCallback(rest);
|
|
2184
2184
|
}
|
|
2185
2185
|
case "reap":
|
|
@@ -2190,8 +2190,8 @@ async function runSubcommand(argv) {
|
|
|
2190
2190
|
return await cmdDsh(rest);
|
|
2191
2191
|
}
|
|
2192
2192
|
case "gc": {
|
|
2193
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
2194
|
-
const { gcLogs } = await import("./globalPidIndex-
|
|
2193
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-DD2EpKiN.js");
|
|
2194
|
+
const { gcLogs } = await import("./globalPidIndex-DmDCB_X7.js");
|
|
2195
2195
|
const bins = gcOldBinaryDirs();
|
|
2196
2196
|
const logs = await gcLogs();
|
|
2197
2197
|
if (bins.removed.length === 0) process.stdout.write("no old agent-yes binary cache dirs to remove\n");
|
|
@@ -3446,7 +3446,7 @@ async function cmdLs(rest) {
|
|
|
3446
3446
|
}).option("interval", {
|
|
3447
3447
|
type: "number",
|
|
3448
3448
|
default: 2,
|
|
3449
|
-
description: "
|
|
3449
|
+
description: "Fallback poll interval in seconds for --watch on Windows"
|
|
3450
3450
|
}).option("latest", {
|
|
3451
3451
|
type: "boolean",
|
|
3452
3452
|
default: false,
|
|
@@ -3497,11 +3497,78 @@ async function cmdLs(rest) {
|
|
|
3497
3497
|
cwdScope: typeof argv.cwd === "string" ? path.resolve(argv.cwd) : null
|
|
3498
3498
|
};
|
|
3499
3499
|
if (argv.watch) {
|
|
3500
|
-
const
|
|
3501
|
-
|
|
3500
|
+
const fallbackMs = Math.max(500, (Number.isFinite(argv.interval) ? argv.interval : 2) * 1e3);
|
|
3501
|
+
const rescanMs = Math.max(15e3, fallbackMs * 15);
|
|
3502
|
+
const tailers = /* @__PURE__ */ new Map();
|
|
3503
|
+
const indexFiles = new Set([
|
|
3504
|
+
getGlobalPidIndexPath(),
|
|
3505
|
+
path.join(process.cwd(), ".agent-yes", "pid-records.jsonl"),
|
|
3506
|
+
...opts.cwdScope ? [path.join(opts.cwdScope, ".agent-yes", "pid-records.jsonl")] : []
|
|
3507
|
+
]);
|
|
3508
|
+
let timer;
|
|
3509
|
+
let fallback;
|
|
3502
3510
|
let prev = /* @__PURE__ */ new Map();
|
|
3503
|
-
|
|
3511
|
+
let pending = Promise.resolve();
|
|
3512
|
+
let closing = false;
|
|
3513
|
+
const identityOf = async (file) => {
|
|
3514
|
+
try {
|
|
3515
|
+
const info = await stat(file);
|
|
3516
|
+
return `${info.dev}:${info.ino}`;
|
|
3517
|
+
} catch {
|
|
3518
|
+
return null;
|
|
3519
|
+
}
|
|
3520
|
+
};
|
|
3521
|
+
const follow = async (file, checkIdentity = false) => {
|
|
3522
|
+
if (process.platform === "win32") return;
|
|
3523
|
+
const existing = tailers.get(file);
|
|
3524
|
+
if (existing && !checkIdentity) return;
|
|
3525
|
+
const identity = await identityOf(file);
|
|
3526
|
+
if (existing && (!checkIdentity || existing.identity === identity)) return;
|
|
3527
|
+
if (existing) {
|
|
3528
|
+
tailers.delete(file);
|
|
3529
|
+
existing.child.kill("SIGTERM");
|
|
3530
|
+
}
|
|
3531
|
+
const child = spawn("tail", [
|
|
3532
|
+
"-f",
|
|
3533
|
+
"-n",
|
|
3534
|
+
"0",
|
|
3535
|
+
file
|
|
3536
|
+
], { stdio: [
|
|
3537
|
+
"ignore",
|
|
3538
|
+
"pipe",
|
|
3539
|
+
"ignore"
|
|
3540
|
+
] });
|
|
3541
|
+
child.stdout?.on("data", schedule);
|
|
3542
|
+
const forget = () => {
|
|
3543
|
+
if (tailers.get(file)?.child === child) tailers.delete(file);
|
|
3544
|
+
};
|
|
3545
|
+
child.on("error", forget);
|
|
3546
|
+
child.on("exit", forget);
|
|
3547
|
+
tailers.set(file, {
|
|
3548
|
+
child,
|
|
3549
|
+
identity
|
|
3550
|
+
});
|
|
3551
|
+
};
|
|
3552
|
+
const queueSnapshot = (checkIdentity = false) => {
|
|
3553
|
+
pending = pending.then(() => snapshot(checkIdentity)).catch((error) => {
|
|
3554
|
+
process.stderr.write(`ay ls --watch: ${String(error)}\n`);
|
|
3555
|
+
});
|
|
3556
|
+
};
|
|
3557
|
+
const schedule = () => {
|
|
3558
|
+
if (closing) return;
|
|
3559
|
+
if (timer) clearTimeout(timer);
|
|
3560
|
+
timer = setTimeout(() => {
|
|
3561
|
+
queueSnapshot();
|
|
3562
|
+
}, 75);
|
|
3563
|
+
};
|
|
3564
|
+
const snapshot = async (checkIdentity = false) => {
|
|
3504
3565
|
const recs = await listRecords(keyword, opts);
|
|
3566
|
+
const targets = new Set([...indexFiles, ...recs.map((record) => record.log_file).filter((file) => !!file)]);
|
|
3567
|
+
for (const [file, follower] of tailers) if (!targets.has(file)) {
|
|
3568
|
+
tailers.delete(file);
|
|
3569
|
+
follower.child.kill("SIGTERM");
|
|
3570
|
+
}
|
|
3571
|
+
await Promise.all([...targets].map((file) => follow(file, checkIdentity)));
|
|
3505
3572
|
const cur = await Promise.all(recs.map(async (r) => {
|
|
3506
3573
|
const { state, question } = await deriveLiveState(r);
|
|
3507
3574
|
return {
|
|
@@ -3516,15 +3583,19 @@ async function cmdLs(rest) {
|
|
|
3516
3583
|
for (const e of events) process.stdout.write(JSON.stringify(e) + "\n");
|
|
3517
3584
|
prev = next;
|
|
3518
3585
|
};
|
|
3519
|
-
|
|
3586
|
+
process.stderr.write(process.platform === "win32" ? `watching agents with a ${fallbackMs / 1e3}s fallback poll… (Ctrl-C to stop)\n` : `watching agent indexes and logs with tail -f; rescanning for replacement files every ${rescanMs / 1e3}s… (Ctrl-C to stop)\n`);
|
|
3587
|
+
for (const file of indexFiles) await follow(file);
|
|
3588
|
+
await snapshot();
|
|
3520
3589
|
await new Promise((resolve) => {
|
|
3521
|
-
const timer = setInterval(() => {
|
|
3522
|
-
tick();
|
|
3523
|
-
}, intervalMs);
|
|
3524
3590
|
process.on("SIGINT", () => {
|
|
3525
|
-
|
|
3591
|
+
closing = true;
|
|
3592
|
+
if (timer) clearTimeout(timer);
|
|
3593
|
+
if (fallback) clearInterval(fallback);
|
|
3594
|
+
for (const follower of tailers.values()) follower.child.kill("SIGTERM");
|
|
3526
3595
|
resolve();
|
|
3527
3596
|
});
|
|
3597
|
+
if (process.platform === "win32") fallback = setInterval(schedule, fallbackMs);
|
|
3598
|
+
else fallback = setInterval(() => queueSnapshot(true), rescanMs);
|
|
3528
3599
|
});
|
|
3529
3600
|
return 0;
|
|
3530
3601
|
}
|
|
@@ -6271,7 +6342,7 @@ async function cmdAttach(rest) {
|
|
|
6271
6342
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
6272
6343
|
await mkdir(winsizeDir, { recursive: true });
|
|
6273
6344
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
6274
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
6345
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Gx4dc4LJ.js");
|
|
6275
6346
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
6276
6347
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
6277
6348
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -7020,7 +7091,7 @@ async function cmdNotify(rest) {
|
|
|
7020
7091
|
}
|
|
7021
7092
|
const ensure = async () => {
|
|
7022
7093
|
if (!argv["ensure-daemon"]) return;
|
|
7023
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
7094
|
+
const { ensureDaemon } = await import("./notifyDaemon-6FYHbi51.js");
|
|
7024
7095
|
await ensureDaemon().catch(() => null);
|
|
7025
7096
|
};
|
|
7026
7097
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -7094,7 +7165,7 @@ async function cmdNotifyCursor(args) {
|
|
|
7094
7165
|
}
|
|
7095
7166
|
async function cmdNotifyd(rest) {
|
|
7096
7167
|
const sub = rest[0] ?? "status";
|
|
7097
|
-
const daemon = await import("./notifyDaemon-
|
|
7168
|
+
const daemon = await import("./notifyDaemon-6FYHbi51.js");
|
|
7098
7169
|
switch (sub) {
|
|
7099
7170
|
case "run": return daemon.runDaemon();
|
|
7100
7171
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -7121,4 +7192,4 @@ async function cmdNotifyd(rest) {
|
|
|
7121
7192
|
|
|
7122
7193
|
//#endregion
|
|
7123
7194
|
export { readNotes as $, inspectSubmission as A, isUnknownManagerToken as B, envelopeAttribution as C, framePaste as Ct, extractNeedsInput as D, flattenForest as Dt, extractMenu as E, buildAgentForest as Et, isExitRequest as F, listRecords as G, isUserTyping as H, isPidAlive as I, ownedCollapsedPaste as J, matchKeyword as K, isSlashCommand as L, isAgentIdShaped as M, isAgentStuck as N, extractTaskCounts as O, isBareManagerInvocation as P, readLogForRender as Q, isSubcommand as R, enableRenderDiskCache as S, withIpcLock as St, extractBadges as T, TYPING_BADGE as Tt, lastReadAt as U, isUnreachableWriteErrno as V, lastStdinAt as W, readAgentPtysize as X, probeStdinReachable as Y, readComposerState as Z, cursorAbs as _, submitStableDraft as _t, READ_PAGE_DEFAULT as a, renderRawLogLines as at, deriveLiveStatus as b, writeKeysPaced as bt, SEND_EXIT_QUEUED as c, resolveResumeArgs as ct, backoffWhileTyping as d, saveRenderDisk as dt, readPtysize as et, buildEnvelope as f, sendPayloadCapError as ft, controlCodeFromName as g, submitAndConfirm as gt, confirmStdinUnreachable as h, stopTipForCli as ht, MAX_RENDER_BYTES as i, renderRawLog as it, interruptSendTarget as j, finalizedLines as k, SEND_EXIT_UNREACHABLE as l, restartHintLines as lt, cmdHelp as m, stdinActivityPath as mt, DRAFT_STABLE_WAITS_MS as n, recentReadEdges as nt, READ_WINDOW_MS as o, resolveOne as ot, cliDefaults as p, snapshotStatus as pt, menuSelectKeys as q, GRACEFUL_EXIT_COMMANDS as r, renderLogTailLines as rt, SEND_BODY_MAX_CHARS as s, resolveReadWindow as st, COMPOSER_WINDOWS as t, recentMessageEdges as tt, TYPING_WINDOW_MS as u, runSubcommand as ut, cwdLabel as v, suggestAgents as vt, envelopeCostFor as w, shouldFramePaste as wt, drainerLauncher as x, writeToIpc as xt, deriveLiveState as y, waitForLogQuiet as yt, isSubmitCode as z };
|
|
7124
|
-
//# sourceMappingURL=subcommands
|
|
7195
|
+
//# sourceMappingURL=subcommands-BqXeFyvv.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
3
|
+
import "./globalPidIndex-C6p_AY4D.js";
|
|
4
|
+
import "./pidStore-DUXifdBr.js";
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { $ as readNotes, A as inspectSubmission, B as isUnknownManagerToken, C as envelopeAttribution, D as extractNeedsInput, E as extractMenu, F as isExitRequest, G as listRecords, H as isUserTyping, I as isPidAlive, J as ownedCollapsedPaste, K as matchKeyword, L as isSlashCommand, M as isAgentIdShaped, N as isAgentStuck, O as extractTaskCounts, P as isBareManagerInvocation, Q as readLogForRender, R as isSubcommand, S as enableRenderDiskCache, T as extractBadges, U as lastReadAt, V as isUnreachableWriteErrno, W as lastStdinAt, X as readAgentPtysize, Y as probeStdinReachable, Z as readComposerState, _ as cursorAbs, _t as submitStableDraft, a as READ_PAGE_DEFAULT, at as renderRawLogLines, b as deriveLiveStatus, bt as writeKeysPaced, c as SEND_EXIT_QUEUED, ct as resolveResumeArgs, d as backoffWhileTyping, dt as saveRenderDisk, et as readPtysize, f as buildEnvelope, ft as sendPayloadCapError, g as controlCodeFromName, gt as submitAndConfirm, h as confirmStdinUnreachable, ht as stopTipForCli, i as MAX_RENDER_BYTES, it as renderRawLog, j as interruptSendTarget, k as finalizedLines, l as SEND_EXIT_UNREACHABLE, lt as restartHintLines, m as cmdHelp, mt as stdinActivityPath, n as DRAFT_STABLE_WAITS_MS, nt as recentReadEdges, o as READ_WINDOW_MS, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, q as menuSelectKeys, r as GRACEFUL_EXIT_COMMANDS, rt as renderLogTailLines, s as SEND_BODY_MAX_CHARS, st as resolveReadWindow, t as COMPOSER_WINDOWS, tt as recentMessageEdges, u as TYPING_WINDOW_MS, ut as runSubcommand, v as cwdLabel, vt as suggestAgents, w as envelopeCostFor, x as drainerLauncher, xt as writeToIpc, y as deriveLiveState, yt as waitForLogQuiet, z as isSubmitCode } from "./subcommands
|
|
8
|
+
import { $ as readNotes, A as inspectSubmission, B as isUnknownManagerToken, C as envelopeAttribution, D as extractNeedsInput, E as extractMenu, F as isExitRequest, G as listRecords, H as isUserTyping, I as isPidAlive, J as ownedCollapsedPaste, K as matchKeyword, L as isSlashCommand, M as isAgentIdShaped, N as isAgentStuck, O as extractTaskCounts, P as isBareManagerInvocation, Q as readLogForRender, R as isSubcommand, S as enableRenderDiskCache, T as extractBadges, U as lastReadAt, V as isUnreachableWriteErrno, W as lastStdinAt, X as readAgentPtysize, Y as probeStdinReachable, Z as readComposerState, _ as cursorAbs, _t as submitStableDraft, a as READ_PAGE_DEFAULT, at as renderRawLogLines, b as deriveLiveStatus, bt as writeKeysPaced, c as SEND_EXIT_QUEUED, ct as resolveResumeArgs, d as backoffWhileTyping, dt as saveRenderDisk, et as readPtysize, f as buildEnvelope, ft as sendPayloadCapError, g as controlCodeFromName, gt as submitAndConfirm, h as confirmStdinUnreachable, ht as stopTipForCli, i as MAX_RENDER_BYTES, it as renderRawLog, j as interruptSendTarget, k as finalizedLines, l as SEND_EXIT_UNREACHABLE, lt as restartHintLines, m as cmdHelp, mt as stdinActivityPath, n as DRAFT_STABLE_WAITS_MS, nt as recentReadEdges, o as READ_WINDOW_MS, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, q as menuSelectKeys, r as GRACEFUL_EXIT_COMMANDS, rt as renderLogTailLines, s as SEND_BODY_MAX_CHARS, st as resolveReadWindow, t as COMPOSER_WINDOWS, tt as recentMessageEdges, u as TYPING_WINDOW_MS, ut as runSubcommand, v as cwdLabel, vt as suggestAgents, w as envelopeCostFor, x as drainerLauncher, xt as writeToIpc, y as deriveLiveState, yt as waitForLogQuiet, z as isSubmitCode } from "./subcommands-BqXeFyvv.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
@@ -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-Gx4dc4LJ.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-D36_TtJ3.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import { a as renderTree, c as describeBlock, i as renderDigest, n as buildTreeJSON, o as unblockedTasks, s as blockedOnAgent, t as reconcileTodos, u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
|
|
3
3
|
import "./JsonlStore-CB_0sfdT.js";
|
|
4
|
-
import {
|
|
4
|
+
import { o as readGlobalPids } from "./globalPidIndex-C6p_AY4D.js";
|
|
5
5
|
import { a as LIFECYCLES, l as isKnownKind, r as openStore, t as CycleError } from "./todoStore-msRCEUi1.js";
|
|
6
|
-
import { a as resolveTodoRoot, i as resolveSelf, n as SELF_OWNER, r as ownerLiveness, t as NO_OWNER } from "./todoIdentity-
|
|
6
|
+
import { a as resolveTodoRoot, i as resolveSelf, n as SELF_OWNER, r as ownerLiveness, t as NO_OWNER } from "./todoIdentity-DeDp7LKl.js";
|
|
7
7
|
import yargs from "yargs";
|
|
8
8
|
|
|
9
9
|
//#region ts/todoCli.ts
|
|
@@ -583,4 +583,4 @@ async function runTodoSubcommand(rest0) {
|
|
|
583
583
|
|
|
584
584
|
//#endregion
|
|
585
585
|
export { runTodoSubcommand };
|
|
586
|
-
//# sourceMappingURL=todoCli-
|
|
586
|
+
//# sourceMappingURL=todoCli-uJ3nK9j4.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as readGlobalPids } from "./globalPidIndex-C6p_AY4D.js";
|
|
2
2
|
import { execFile } from "child_process";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { promisify } from "util";
|
|
@@ -135,4 +135,4 @@ function ownerLiveness(owner, agents) {
|
|
|
135
135
|
|
|
136
136
|
//#endregion
|
|
137
137
|
export { resolveTodoRoot as a, resolveSelf as i, SELF_OWNER as n, ownerLiveness as r, NO_OWNER as t };
|
|
138
|
-
//# sourceMappingURL=todoIdentity-
|
|
138
|
+
//# sourceMappingURL=todoIdentity-DeDp7LKl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { l as findTrayLauncher } from "./rustBinary-BJbqTNcY.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.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-Hm0H3QAF.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
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-D_4wDPSc.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
5
5
|
import { u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DMznYh45.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as PidStore } from "./pidStore-
|
|
7
|
+
import { o as readGlobalPids } from "./globalPidIndex-C6p_AY4D.js";
|
|
8
|
+
import { t as PidStore } from "./pidStore-DUXifdBr.js";
|
|
9
9
|
import { r as recordInbox } from "./messageLog-Dq_ka-Bt.js";
|
|
10
10
|
import { n as register, r as sweep } from "./reaper-C2cuougX.js";
|
|
11
11
|
import { a as LIFECYCLES, r as openStore } from "./todoStore-msRCEUi1.js";
|
|
@@ -1672,7 +1672,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
1672
1672
|
})();
|
|
1673
1673
|
const originalPrompt = prompt;
|
|
1674
1674
|
if (prompt && inheritedParentPid) try {
|
|
1675
|
-
const { resolveSpawner } = await import("./parentLink-
|
|
1675
|
+
const { resolveSpawner } = await import("./parentLink-B7_kEM1v.js");
|
|
1676
1676
|
const spawner = await resolveSpawner(inheritedParentPid);
|
|
1677
1677
|
if (spawner) {
|
|
1678
1678
|
const { buildInitMsg } = await import("./initMsg-GPU52N-j.js");
|
|
@@ -2155,7 +2155,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2155
2155
|
}, 100);
|
|
2156
2156
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2157
2157
|
shell.onExit(cleanupHeartbeat);
|
|
2158
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2158
|
+
const { startParentPingLoop } = await import("./parentPingLoop-CeKYccEV.js");
|
|
2159
2159
|
const parentPingLoop = startParentPingLoop({
|
|
2160
2160
|
parentPid,
|
|
2161
2161
|
selfWrapperPid: process.pid,
|
|
@@ -2418,4 +2418,4 @@ function sleep(ms) {
|
|
|
2418
2418
|
|
|
2419
2419
|
//#endregion
|
|
2420
2420
|
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 };
|
|
2421
|
-
//# sourceMappingURL=ts-
|
|
2421
|
+
//# sourceMappingURL=ts-C8pyst8x.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.304.
|
|
10
|
+
var version = "1.304.2";
|
|
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-D_4wDPSc.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-Gx4dc4LJ.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-Gx4dc4LJ.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-DpJJm-o5.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./JsonlStore-CB_0sfdT.js";
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
3
|
+
import "./globalPidIndex-C6p_AY4D.js";
|
|
4
|
+
import "./pidStore-DUXifdBr.js";
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./subcommands
|
|
8
|
+
import "./subcommands-BqXeFyvv.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
|
-
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-
|
|
14
|
+
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-DYCivkyv.js";
|
|
15
15
|
|
|
16
16
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as listRecords } from "./subcommands
|
|
1
|
+
import { G as listRecords } from "./subcommands-BqXeFyvv.js";
|
|
2
2
|
import { a as getProvisionRoot } from "./workspaceConfig-DBgsu81B.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-DYCivkyv.js.map
|
package/package.json
CHANGED