agent-yes 1.302.1 → 1.302.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/README.md +24 -0
- package/dist/{JsonlStore-BqF7AQ6E.js → JsonlStore-BpYZZTap.js} +1 -1
- package/dist/SUPPORTED_CLIS-C5Uhdl61.js +12 -0
- package/dist/{SUPPORTED_CLIS-CNBBncE3.js → SUPPORTED_CLIS-FBshN0v2.js} +2 -2
- package/dist/{agent-yes.config-C77SodMP.js → agent-yes.config-CRfpdp3A.js} +2 -2
- package/dist/{agentShare-Cl810NKM.js → agentShare-CNgCQMY9.js} +12 -12
- package/dist/agentYesHome-CYNNNP71.js +3 -0
- package/dist/{agentYesHome-BNtn19J4.js → agentYesHome-JmJC28YX.js} +1 -1
- package/dist/{askCli-DFsWcgpF.js → askCli-J9hHcgJz.js} +6 -6
- package/dist/{browser-XQnbPssj.js → browser-BW90gl2w.js} +5 -5
- package/dist/{browser-wkzxw6lx.js → browser-BmxN1Ur9.js} +1 -1
- package/dist/callback-CbZ-H_Pn.js +15 -0
- package/dist/{callback-zMFnYwsJ.js → callback-ayc9yXqJ.js} +6 -6
- package/dist/{callbackCore-LDxJc8LY.js → callbackCore-BVEHd6Yt.js} +1 -1
- package/dist/{callbackCore-Bl2gGcxg.js → callbackCore-DXVwvq0X.js} +1 -1
- package/dist/{channels-rhxQArqN.js → channels-BLdkzCbv.js} +6 -6
- package/dist/{channels-C3w3eAES.js → channels-jIa5fNjY.js} +2 -2
- package/dist/channels.js +5 -5
- package/dist/cli.js +12 -12
- package/dist/{cmdDsh-BySPA9hP.js → cmdDsh-CymghOa0.js} +1 -1
- package/dist/{cmdPs-D2EqOHbX.js → cmdPs-CDj-l5Pk.js} +12 -12
- package/dist/{configShared-DKTgiz7K.js → configShared-De4bR5hH.js} +1 -1
- package/dist/{cwdConflictWarn-sQUONAye.js → cwdConflictWarn-DXh7qJz6.js} +2 -2
- package/dist/{cwdPassthroughHint-CDEGVteh.js → cwdPassthroughHint-DADidTOP.js} +1 -1
- package/dist/{e2e-z1xpwSAg.js → e2e-BdLf8DvY.js} +1 -1
- package/dist/{expose-BlddYYx9.js → expose-ZFn10b_l.js} +1 -1
- package/dist/{forkNested-xtEeYpBQ.js → forkNested-DD_4xEL8.js} +3 -3
- package/dist/{globalPidIndex-DC93JhHQ.js → globalPidIndex-BftWlg2V.js} +1 -1
- package/dist/{globalPidIndex-CRH9L9tn.js → globalPidIndex-CRB5KtyL.js} +1 -1
- package/dist/{hist-DZxq7NMA.js → hist-Dy-JVuUY.js} +1 -1
- package/dist/{html2canvas-pro.esm-DbGFekkq.js → html2canvas-pro.esm-Dp-JZojz.js} +1 -1
- package/dist/{identity-CKRuYUFi.js → identity-Bk-aG_xl.js} +1 -1
- package/dist/{identity-DFr3dfTO.js → identity-DA7YI9km.js} +1 -1
- package/dist/index.js +8 -8
- package/dist/{initMsg-axyQAPLK.js → initMsg-BGBIVi_Q.js} +1 -1
- package/dist/{initMsg-DoltWTZj.js → initMsg-NleE4YLm.js} +1 -1
- package/dist/{messageLog-Brx3w6zT.js → messageLog-Dq_ka-Bt.js} +1 -1
- package/dist/{needsInput-BHopZGM8.js → needsInput-D__56HYf.js} +1 -1
- package/dist/{nodeRuntime-CipjIwfO.js → nodeRuntime-oANVaOqi.js} +2 -2
- package/dist/{notifyDaemon-Cb_fbw4f.js → notifyDaemon-DZbd5fTj.js} +11 -11
- package/dist/{notifyStore-CdsB3crt.js → notifyStore-D9cNjXFG.js} +1 -1
- package/dist/{notifyStore-2SWKGwZI.js → notifyStore-DI4iKFut.js} +2 -2
- package/dist/{openBrowser-THOzOGNm.js → openBrowser-B6ZyKxfP.js} +1 -1
- package/dist/{parentLink-CfbxykCv.js → parentLink-CB8Nc-dr.js} +2 -2
- package/dist/{parentLink-BILJ32nA.js → parentLink-qUr7dRdh.js} +2 -2
- package/dist/{parentPingLoop-CxGlfXtx.js → parentPingLoop-Bim6u0OH.js} +7 -7
- package/dist/peer-3F7owPWt.js +4 -0
- package/dist/{peer-BZyUyCt3.js → peer-L-prov9t.js} +3 -3
- package/dist/{pidStore-DXWqzTSz.js → pidStore-433kvh9D.js} +4 -4
- package/dist/pidStore-BRlKRHXY.js +6 -0
- package/dist/{procStats-CyD8h5nx.js → procStats-xvUthnOx.js} +1 -1
- package/dist/{reaper-UimuuTfO.js → reaper-C2cuougX.js} +2 -2
- package/dist/{reaper-BDMiMfwK.js → reaper-DsZhX5FH.js} +1 -1
- package/dist/{remotes-CQTEY8Gt.js → remotes-ByjpYjQ9.js} +3 -3
- package/dist/{remotes-B4CNXwDS.js → remotes-D10E_xUn.js} +3 -3
- package/dist/{runningLock-BOIPD_Vs.js → runningLock-DMznYh45.js} +1 -1
- package/dist/{rustBinary-TAG9KjfA.js → rustBinary-Btf18sk5.js} +2 -2
- package/dist/{rustBinary-CdKZfsFO.js → rustBinary-DklBSefL.js} +2 -2
- package/dist/{schedule-CXv0m_lY.js → schedule-DzqTosvJ.js} +12 -12
- package/dist/{serve-D1mS0HGo.js → serve-DdHbUWtG.js} +48 -48
- package/dist/{serveRust-BAawe83i.js → serveRust-BEzTqFRy.js} +1 -1
- package/dist/{setup-BjCpfCKB.js → setup-CzKkVYp8.js} +4 -4
- package/dist/{share-nmgSIjYP.js → share-530eCWft.js} +2 -2
- package/dist/{share-CLataFnI.js → share-Jl8Eia9b.js} +2 -2
- package/dist/{shareCmd-DgpP8FKm.js → shareCmd-DinezAHY.js} +26 -8
- package/dist/spawnGate-CsQ4_N5h.js +5 -0
- package/dist/{spawnGate-YpHopveO.js → spawnGate-SX13EqI3.js} +3 -3
- package/dist/{store-CnxYGoia.js → store-xmBpqPUq.js} +1 -1
- package/dist/{subcommands-Dk6tKM6B.js → subcommands-fX4Ygx3a.js} +37 -37
- package/dist/{subcommands-9u1ssw3u.js → subcommands-oIARj_mJ.js} +11 -11
- package/dist/{systemPathLink-DoyBuRQq.js → systemPathLink-eWUYHNXm.js} +1 -1
- package/dist/{terminal-D9TFbA7o.js → terminal-DlW0KNym.js} +2 -2
- package/dist/terminal.js +1 -1
- package/dist/{todoAutomation-CbVVS4re.js → todoAutomation-TTp_Qz9G.js} +2 -2
- package/dist/{todoCli-DwYlxIAY.js → todoCli-B62mo9af.js} +6 -6
- package/dist/{todoIdentity-CAmnkzzP.js → todoIdentity-CY1UkEs7.js} +2 -2
- package/dist/{todoStore-DF6vxHgV.js → todoStore-C9RTz0Vs.js} +2 -2
- package/dist/{tray-BcpHVeMk.js → tray-DJtC0yib.js} +2 -2
- package/dist/{trayApp-C3W5js5E.js → trayApp-DWVdr0Pr.js} +3 -3
- package/dist/trayApp-F_Xs3C2N.js +5 -0
- package/dist/{ts-hQmDVOPh.js → ts-D29CMeWZ.js} +15 -15
- package/dist/{versionChecker-5Ku8-XVc.js → versionChecker-DrjMn-XI.js} +2 -2
- package/dist/webrtcLink-CAdvnRM0.js +4 -0
- package/dist/{webrtcLink-DFRyWNMs.js → webrtcLink-CKnjNGaV.js} +3 -3
- package/dist/{webrtcRemote-Cy5kB8aR.js → webrtcRemote-BYy2lTTl.js} +15 -8
- package/dist/{widget-WjEcwJva.js → widget-CvcvPWF9.js} +3 -3
- package/dist/widget.js +1 -1
- package/dist/widgets.js +5 -5
- package/dist/{workspaceConfig-DTvPtr5j.js → workspaceConfig-CWGh8o36.js} +2 -2
- package/dist/{ws-MMgJ4-yD.js → ws-Cbx5sfsd.js} +3 -3
- package/dist/ws-DDB8jh0f.js +14 -0
- package/package.json +1 -1
- package/ts/serve.ts +3 -2
- package/ts/share.spec.ts +13 -0
- package/ts/shareCmd.ts +25 -0
- package/ts/webrtcRemote.ts +13 -4
- package/dist/SUPPORTED_CLIS-CmzXJEui.js +0 -12
- package/dist/callback-FGoFC8om.js +0 -15
- package/dist/peer-CGSJluSw.js +0 -4
- package/dist/pidStore-Bpe8i_oU.js +0 -6
- package/dist/spawnGate-BUEswFgo.js +0 -5
- package/dist/trayApp-CL67LMa0.js +0 -5
- package/dist/ws-tVhgSZfa.js +0 -14
|
@@ -243,12 +243,12 @@ shown first and needs a y at a [y/N] prompt.
|
|
|
243
243
|
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
|
-
const { daemonShareRuntime } = await import("./serveRust-
|
|
247
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
246
|
+
const { daemonShareRuntime } = await import("./serveRust-BEzTqFRy.js");
|
|
247
|
+
const { findAyrsBinary } = await import("./rustBinary-DklBSefL.js");
|
|
248
248
|
return daemonShareRuntime(args ?? [], () => !!findAyrsBinary());
|
|
249
249
|
}
|
|
250
250
|
async function daemonShareLink(args) {
|
|
251
|
-
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-
|
|
251
|
+
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-530eCWft.js");
|
|
252
252
|
const room = await readShareRoom(await shareRuntimeOf(args));
|
|
253
253
|
if (!room) return null;
|
|
254
254
|
try {
|
|
@@ -257,8 +257,26 @@ async function daemonShareLink(args) {
|
|
|
257
257
|
return null;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
+
async function foregroundAyrsShareLink() {
|
|
261
|
+
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-530eCWft.js");
|
|
262
|
+
const { parseWebrtcLink } = await import("./webrtcLink-CAdvnRM0.js");
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-oIARj_mJ.js");
|
|
264
|
+
const { agentYesHome } = await import("./agentYesHome-CYNNNP71.js");
|
|
265
|
+
const { readFile } = await import("fs/promises");
|
|
266
|
+
const path = await import("path");
|
|
267
|
+
const url = await readShareRoom("rust");
|
|
268
|
+
const room = url && parseWebrtcLink(url)?.room;
|
|
269
|
+
if (!room) return null;
|
|
270
|
+
try {
|
|
271
|
+
const lock = path.join(agentYesHome(), `.share-host-${room}.pid`);
|
|
272
|
+
const pid = parseInt(await readFile(lock, "utf-8"), 10);
|
|
273
|
+
return pid > 0 && isPidAlive(pid) ? shareLinkFromRoomUrl(url) : null;
|
|
274
|
+
} catch {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
260
278
|
async function cmdShareStatus(mount) {
|
|
261
|
-
const { inspectServeDaemon } = await import("./serve-
|
|
279
|
+
const { inspectServeDaemon } = await import("./serve-DdHbUWtG.js");
|
|
262
280
|
const [d, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
|
|
263
281
|
const line = (k, v) => process.stdout.write(`${k.padEnd(11)}${v}\n`);
|
|
264
282
|
if (d.args === null) {
|
|
@@ -305,7 +323,7 @@ async function cmdShare(rest) {
|
|
|
305
323
|
process.stderr.write(`ay share: unknown mode '${mode}' — one of ${SHARE_MODES.join(", ")}\n`);
|
|
306
324
|
return 1;
|
|
307
325
|
}
|
|
308
|
-
const { inspectServeDaemon, cmdServe } = await import("./serve-
|
|
326
|
+
const { inspectServeDaemon, cmdServe } = await import("./serve-DdHbUWtG.js");
|
|
309
327
|
const [daemon, ts] = await Promise.all([inspectServeDaemon(), detectTailscale()]);
|
|
310
328
|
const lanIp = pickLanIp(networkInterfaces());
|
|
311
329
|
if (!mode) {
|
|
@@ -396,7 +414,7 @@ async function cmdShare(rest) {
|
|
|
396
414
|
let url;
|
|
397
415
|
const port = state.port ?? (portArg ? Number(portArg) : DEFAULT_SHARE_PORT);
|
|
398
416
|
if (mode === "webrtc") {
|
|
399
|
-
const { loadOrCreateShareRoom, shareLinkFromRoomUrl } = await import("./share-
|
|
417
|
+
const { loadOrCreateShareRoom, shareLinkFromRoomUrl } = await import("./share-530eCWft.js");
|
|
400
418
|
url = shareLinkFromRoomUrl(await loadOrCreateShareRoom(void 0, await shareRuntimeOf(state.args)));
|
|
401
419
|
} else if (mode === "portless") url = state.consoleUrl ?? httpShareUrl("https://agent-yes.localhost", state.token);
|
|
402
420
|
else if (mode === "local") url = httpShareUrl(`http://127.0.0.1:${port}`, state.token);
|
|
@@ -429,5 +447,5 @@ async function cmdShare(rest) {
|
|
|
429
447
|
}
|
|
430
448
|
|
|
431
449
|
//#endregion
|
|
432
|
-
export { cmdShare, daemonShareLink };
|
|
433
|
-
//# sourceMappingURL=shareCmd-
|
|
450
|
+
export { cmdShare, daemonShareLink, foregroundAyrsShareLink };
|
|
451
|
+
//# sourceMappingURL=shareCmd-DinezAHY.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
2
|
-
import { n as getMaxAgents, r as getMinFreeMb, s as getSpawnWaitMs } from "./workspaceConfig-
|
|
1
|
+
import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.js";
|
|
2
|
+
import { n as getMaxAgents, r as getMinFreeMb, s as getSpawnWaitMs } from "./workspaceConfig-CWGh8o36.js";
|
|
3
3
|
import { readFile } from "fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region ts/spawnGate.ts
|
|
@@ -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-SX13EqI3.js.map
|
|
@@ -211,4 +211,4 @@ function opsMissing(local, remoteHave) {
|
|
|
211
211
|
|
|
212
212
|
//#endregion
|
|
213
213
|
export { renderThread as a, makeOp as c, formatHlc as d, hlcSend as f, opsMissing as i, opId as l, maxHlc as n, sortOps as o, parseHlc as p, mergeOps as r, isValidOp as s, haveVector as t, compareHlc as u };
|
|
214
|
-
//# sourceMappingURL=store-
|
|
214
|
+
//# sourceMappingURL=store-xmBpqPUq.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
2
|
-
import { t as agentYesHome } from "./agentYesHome-
|
|
3
|
-
import { a as readGlobalPids, s as updateGlobalPidStatus } from "./globalPidIndex-
|
|
4
|
-
import { t as PidStore } from "./pidStore-
|
|
5
|
-
import { a as recordOutbox, i as recordMessage, n as readMailbox, o as senderLabel, t as partyMatches } from "./messageLog-
|
|
6
|
-
import { t as loadSharedCliDefaults } from "./configShared-
|
|
7
|
-
import { n as localHost, r as localUser, t as formatIdentity } from "./identity-
|
|
8
|
-
import { n as isWorkingScreen, r as parseMenu, t as classifyNeedsInput } from "./needsInput-
|
|
9
|
-
import { S as postmortemStartedAt, _ as filterSinceSeq, a as getCursor, b as maxSeq, f as readInbox, o as heartbeatWatcher, p as setCursor, r as clearWatcher, s as hostId, v as filterSinceTs, y as filterUnread } from "./notifyStore-
|
|
10
|
-
import {
|
|
11
|
-
import { l as readRemotes, u as resolveRemoteSpec } from "./remotes-
|
|
2
|
+
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
3
|
+
import { a as readGlobalPids, s as updateGlobalPidStatus } from "./globalPidIndex-CRB5KtyL.js";
|
|
4
|
+
import { t as PidStore } from "./pidStore-433kvh9D.js";
|
|
5
|
+
import { a as recordOutbox, i as recordMessage, n as readMailbox, o as senderLabel, t as partyMatches } from "./messageLog-Dq_ka-Bt.js";
|
|
6
|
+
import { t as loadSharedCliDefaults } from "./configShared-De4bR5hH.js";
|
|
7
|
+
import { n as localHost, r as localUser, t as formatIdentity } from "./identity-Bk-aG_xl.js";
|
|
8
|
+
import { n as isWorkingScreen, r as parseMenu, t as classifyNeedsInput } from "./needsInput-D__56HYf.js";
|
|
9
|
+
import { S as postmortemStartedAt, _ as filterSinceSeq, a as getCursor, b as maxSeq, f as readInbox, o as heartbeatWatcher, p as setCursor, r as clearWatcher, s as hostId, v as filterSinceTs, y as filterUnread } from "./notifyStore-DI4iKFut.js";
|
|
10
|
+
import { r as isWebrtcSpec } from "./webrtcLink-CKnjNGaV.js";
|
|
11
|
+
import { l as readRemotes, u as resolveRemoteSpec } from "./remotes-D10E_xUn.js";
|
|
12
12
|
import { execFile } from "child_process";
|
|
13
13
|
import ms from "ms";
|
|
14
14
|
import yargs from "yargs";
|
|
@@ -2143,7 +2143,7 @@ async function runSubcommand(argv) {
|
|
|
2143
2143
|
switch (sub) {
|
|
2144
2144
|
case "ls":
|
|
2145
2145
|
case "list": return await cmdLs(rest);
|
|
2146
|
-
case "ps": return await (await import("./cmdPs-
|
|
2146
|
+
case "ps": return await (await import("./cmdPs-CDj-l5Pk.js")).cmdPs(rest);
|
|
2147
2147
|
case "status": return await cmdStatus(rest);
|
|
2148
2148
|
case "whoami": return await cmdWhoami(rest);
|
|
2149
2149
|
case "result": return await cmdResult(rest);
|
|
@@ -2154,7 +2154,7 @@ async function runSubcommand(argv) {
|
|
|
2154
2154
|
case "tail": return await cmdRead(rest, { mode: "tail" });
|
|
2155
2155
|
case "head": return await cmdRead(rest, { mode: "head" });
|
|
2156
2156
|
case "hist":
|
|
2157
|
-
case "history": return await (await import("./hist-
|
|
2157
|
+
case "history": return await (await import("./hist-Dy-JVuUY.js")).cmdHist(rest);
|
|
2158
2158
|
case "send": return await cmdSend(rest);
|
|
2159
2159
|
case "send-drain": return await cmdSendDrain(rest);
|
|
2160
2160
|
case "ls-refresh": return await cmdLsRefresh(rest);
|
|
@@ -2169,7 +2169,7 @@ async function runSubcommand(argv) {
|
|
|
2169
2169
|
case "note": return await cmdNote(rest);
|
|
2170
2170
|
case "ask":
|
|
2171
2171
|
case "answer": {
|
|
2172
|
-
const { runAskSubcommand, runAnswerSubcommand } = await import("./askCli-
|
|
2172
|
+
const { runAskSubcommand, runAnswerSubcommand } = await import("./askCli-J9hHcgJz.js");
|
|
2173
2173
|
const deps = {
|
|
2174
2174
|
resolveAgent: (keyword) => resolveOne(keyword, {
|
|
2175
2175
|
all: true,
|
|
@@ -2183,76 +2183,76 @@ async function runSubcommand(argv) {
|
|
|
2183
2183
|
return sub === "ask" ? await runAskSubcommand(rest, deps) : await runAnswerSubcommand(rest, deps);
|
|
2184
2184
|
}
|
|
2185
2185
|
case "todo": {
|
|
2186
|
-
const { runTodoSubcommand } = await import("./todoCli-
|
|
2186
|
+
const { runTodoSubcommand } = await import("./todoCli-B62mo9af.js");
|
|
2187
2187
|
return runTodoSubcommand(rest);
|
|
2188
2188
|
}
|
|
2189
2189
|
case "ch":
|
|
2190
2190
|
case "channels": {
|
|
2191
|
-
const { cmdCh } = await import("./channels-
|
|
2191
|
+
const { cmdCh } = await import("./channels-BLdkzCbv.js");
|
|
2192
2192
|
return cmdCh(rest);
|
|
2193
2193
|
}
|
|
2194
2194
|
case "term": {
|
|
2195
|
-
const { cmdTerm } = await import("./terminal-
|
|
2195
|
+
const { cmdTerm } = await import("./terminal-DlW0KNym.js");
|
|
2196
2196
|
return cmdTerm(rest);
|
|
2197
2197
|
}
|
|
2198
2198
|
case "widget": {
|
|
2199
|
-
const { cmdWidget } = await import("./widget-
|
|
2199
|
+
const { cmdWidget } = await import("./widget-CvcvPWF9.js");
|
|
2200
2200
|
return cmdWidget(rest);
|
|
2201
2201
|
}
|
|
2202
2202
|
case "mint": {
|
|
2203
|
-
const { cmdMint } = await import("./widget-
|
|
2203
|
+
const { cmdMint } = await import("./widget-CvcvPWF9.js");
|
|
2204
2204
|
return cmdMint(rest);
|
|
2205
2205
|
}
|
|
2206
2206
|
case "serve": {
|
|
2207
|
-
const { cmdServe } = await import("./serve-
|
|
2207
|
+
const { cmdServe } = await import("./serve-DdHbUWtG.js");
|
|
2208
2208
|
return cmdServe(rest);
|
|
2209
2209
|
}
|
|
2210
2210
|
case "tray": {
|
|
2211
|
-
const { cmdTray } = await import("./trayApp-
|
|
2211
|
+
const { cmdTray } = await import("./trayApp-F_Xs3C2N.js");
|
|
2212
2212
|
return cmdTray(rest);
|
|
2213
2213
|
}
|
|
2214
2214
|
case "setup": {
|
|
2215
|
-
const { cmdSetup } = await import("./setup-
|
|
2215
|
+
const { cmdSetup } = await import("./setup-CzKkVYp8.js");
|
|
2216
2216
|
return cmdSetup(rest);
|
|
2217
2217
|
}
|
|
2218
2218
|
case "ws": {
|
|
2219
|
-
const { cmdWs } = await import("./ws-
|
|
2219
|
+
const { cmdWs } = await import("./ws-DDB8jh0f.js");
|
|
2220
2220
|
return cmdWs(rest);
|
|
2221
2221
|
}
|
|
2222
2222
|
case "schedule": {
|
|
2223
|
-
const { cmdSchedule } = await import("./schedule-
|
|
2223
|
+
const { cmdSchedule } = await import("./schedule-DzqTosvJ.js");
|
|
2224
2224
|
return cmdSchedule(rest);
|
|
2225
2225
|
}
|
|
2226
2226
|
case "remote": {
|
|
2227
|
-
const { cmdRemote } = await import("./remotes-
|
|
2227
|
+
const { cmdRemote } = await import("./remotes-ByjpYjQ9.js");
|
|
2228
2228
|
return cmdRemote(rest);
|
|
2229
2229
|
}
|
|
2230
2230
|
case "share": {
|
|
2231
|
-
const { cmdShare } = await import("./shareCmd-
|
|
2231
|
+
const { cmdShare } = await import("./shareCmd-DinezAHY.js");
|
|
2232
2232
|
return cmdShare(rest);
|
|
2233
2233
|
}
|
|
2234
2234
|
case "connect": {
|
|
2235
|
-
const { cmdConnect } = await import("./remotes-
|
|
2235
|
+
const { cmdConnect } = await import("./remotes-ByjpYjQ9.js");
|
|
2236
2236
|
return cmdConnect(rest);
|
|
2237
2237
|
}
|
|
2238
2238
|
case "expose": {
|
|
2239
|
-
const { cmdExpose } = await import("./expose-
|
|
2239
|
+
const { cmdExpose } = await import("./expose-ZFn10b_l.js");
|
|
2240
2240
|
return cmdExpose(rest);
|
|
2241
2241
|
}
|
|
2242
2242
|
case "callback": {
|
|
2243
|
-
const { cmdCallback } = await import("./callback-
|
|
2243
|
+
const { cmdCallback } = await import("./callback-CbZ-H_Pn.js");
|
|
2244
2244
|
return cmdCallback(rest);
|
|
2245
2245
|
}
|
|
2246
2246
|
case "reap":
|
|
2247
|
-
await (await import("./reaper-
|
|
2247
|
+
await (await import("./reaper-DsZhX5FH.js")).sweep();
|
|
2248
2248
|
return 0;
|
|
2249
2249
|
case "dsh-legacy": {
|
|
2250
|
-
const { cmdDsh } = await import("./cmdDsh-
|
|
2250
|
+
const { cmdDsh } = await import("./cmdDsh-CymghOa0.js");
|
|
2251
2251
|
return await cmdDsh(rest);
|
|
2252
2252
|
}
|
|
2253
2253
|
case "gc": {
|
|
2254
|
-
const { gcOldBinaryDirs } = await import("./rustBinary-
|
|
2255
|
-
const { gcLogs } = await import("./globalPidIndex-
|
|
2254
|
+
const { gcOldBinaryDirs } = await import("./rustBinary-DklBSefL.js");
|
|
2255
|
+
const { gcLogs } = await import("./globalPidIndex-BftWlg2V.js");
|
|
2256
2256
|
const bins = gcOldBinaryDirs();
|
|
2257
2257
|
const logs = await gcLogs();
|
|
2258
2258
|
if (bins.removed.length === 0) process.stdout.write("no old agent-yes binary cache dirs to remove\n");
|
|
@@ -2857,7 +2857,7 @@ async function fetchRemoteRecordsRaw(url, token, opts, onReachable) {
|
|
|
2857
2857
|
let base = url;
|
|
2858
2858
|
let bearer = token;
|
|
2859
2859
|
if (isWebrtcSpec(url)) {
|
|
2860
|
-
const { startWebrtcBridge } = await import("./webrtcRemote-
|
|
2860
|
+
const { startWebrtcBridge } = await import("./webrtcRemote-BYy2lTTl.js");
|
|
2861
2861
|
bridge = await startWebrtcBridge(url);
|
|
2862
2862
|
base = bridge.baseUrl;
|
|
2863
2863
|
bearer = bridge.token;
|
|
@@ -6005,7 +6005,7 @@ async function cmdAttach(rest) {
|
|
|
6005
6005
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
6006
6006
|
await mkdir(winsizeDir, { recursive: true });
|
|
6007
6007
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
6008
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
6008
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-DdHbUWtG.js");
|
|
6009
6009
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
6010
6010
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
6011
6011
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -6754,7 +6754,7 @@ async function cmdNotify(rest) {
|
|
|
6754
6754
|
}
|
|
6755
6755
|
const ensure = async () => {
|
|
6756
6756
|
if (!argv["ensure-daemon"]) return;
|
|
6757
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
6757
|
+
const { ensureDaemon } = await import("./notifyDaemon-DZbd5fTj.js");
|
|
6758
6758
|
await ensureDaemon().catch(() => null);
|
|
6759
6759
|
};
|
|
6760
6760
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -6828,7 +6828,7 @@ async function cmdNotifyCursor(args) {
|
|
|
6828
6828
|
}
|
|
6829
6829
|
async function cmdNotifyd(rest) {
|
|
6830
6830
|
const sub = rest[0] ?? "status";
|
|
6831
|
-
const daemon = await import("./notifyDaemon-
|
|
6831
|
+
const daemon = await import("./notifyDaemon-DZbd5fTj.js");
|
|
6832
6832
|
switch (sub) {
|
|
6833
6833
|
case "run": return daemon.runDaemon();
|
|
6834
6834
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -6855,4 +6855,4 @@ async function cmdNotifyd(rest) {
|
|
|
6855
6855
|
|
|
6856
6856
|
//#endregion
|
|
6857
6857
|
export { renderLogTailLines as $, isAgentStuck as A, lastStdinAt as B, extractBadges as C, finalizedLines as D, extractTaskCounts as E, isSubcommand as F, probeStdinReachable as G, matchKeyword as H, isUnknownManagerToken as I, readLogForRender as J, readAgentPtysize as K, isUnreachableWriteErrno as L, isExitRequest as M, isPidAlive as N, inspectSubmission as O, isSlashCommand as P, recentReadEdges as Q, isUserTyping as R, envelopeCostFor as S, extractNeedsInput as T, menuSelectKeys as U, listRecords as V, ownedCollapsedPaste as W, readPtysize as X, readNotes as Y, recentMessageEdges as Z, cwdLabel as _, shouldFramePaste as _t, READ_WINDOW_MS as a, restartHintLines as at, drainerLauncher as b, flattenForest as bt, SEND_EXIT_UNREACHABLE as c, snapshotStatus as ct, buildEnvelope as d, submitAndConfirm as dt, renderRawLog as et, cliDefaults as f, waitForLogQuiet as ft, cursorAbs as g, framePaste as gt, controlCodeFromName as h, withIpcLock as ht, READ_PAGE_DEFAULT as i, resolveResumeArgs as it, isBareManagerInvocation as j, isAgentIdShaped as k, TYPING_WINDOW_MS as l, stdinActivityPath as lt, confirmStdinUnreachable as m, writeToIpc as mt, GRACEFUL_EXIT_COMMANDS as n, resolveOne as nt, SEND_BODY_MAX_CHARS as o, runSubcommand as ot, cmdHelp as p, writeKeysPaced as pt, readComposerState as q, MAX_RENDER_BYTES as r, resolveReadWindow as rt, SEND_EXIT_QUEUED as s, sendPayloadCapError as st, COMPOSER_WINDOWS as t, renderRawLogLines as tt, backoffWhileTyping as u, stopTipForCli as ut, deriveLiveState as v, TYPING_BADGE as vt, extractMenu as w, envelopeAttribution as x, deriveLiveStatus as y, buildAgentForest as yt, lastReadAt as z };
|
|
6858
|
-
//# sourceMappingURL=subcommands-
|
|
6858
|
+
//# sourceMappingURL=subcommands-fX4Ygx3a.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./JsonlStore-
|
|
3
|
-
import "./globalPidIndex-
|
|
4
|
-
import "./pidStore-
|
|
5
|
-
import "./messageLog-
|
|
6
|
-
import "./e2e-
|
|
7
|
-
import "./configShared-
|
|
8
|
-
import { $ as renderLogTailLines, A as isAgentStuck, B as lastStdinAt, C as extractBadges, D as finalizedLines, E as extractTaskCounts, F as isSubcommand, G as probeStdinReachable, H as matchKeyword, I as isUnknownManagerToken, J as readLogForRender, K as readAgentPtysize, L as isUnreachableWriteErrno, M as isExitRequest, N as isPidAlive, O as inspectSubmission, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, S as envelopeCostFor, T as extractNeedsInput, U as menuSelectKeys, V as listRecords, W as ownedCollapsedPaste, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _ as cwdLabel, a as READ_WINDOW_MS, at as restartHintLines, b as drainerLauncher, c as SEND_EXIT_UNREACHABLE, ct as snapshotStatus, d as buildEnvelope, dt as submitAndConfirm, et as renderRawLog, f as cliDefaults, ft as waitForLogQuiet, g as cursorAbs, h as controlCodeFromName, i as READ_PAGE_DEFAULT, it as resolveResumeArgs, j as isBareManagerInvocation, k as isAgentIdShaped, l as TYPING_WINDOW_MS, lt as stdinActivityPath, m as confirmStdinUnreachable, mt as writeToIpc, n as GRACEFUL_EXIT_COMMANDS, nt as resolveOne, o as SEND_BODY_MAX_CHARS, ot as runSubcommand, p as cmdHelp, pt as writeKeysPaced, q as readComposerState, r as MAX_RENDER_BYTES, rt as resolveReadWindow, s as SEND_EXIT_QUEUED, st as sendPayloadCapError, t as COMPOSER_WINDOWS, tt as renderRawLogLines, u as backoffWhileTyping, ut as stopTipForCli, v as deriveLiveState, w as extractMenu, x as envelopeAttribution, y as deriveLiveStatus, z as lastReadAt } from "./subcommands-
|
|
9
|
-
import "./notifyStore-
|
|
10
|
-
import "./webrtcLink-
|
|
11
|
-
import "./remotes-
|
|
2
|
+
import "./JsonlStore-BpYZZTap.js";
|
|
3
|
+
import "./globalPidIndex-CRB5KtyL.js";
|
|
4
|
+
import "./pidStore-433kvh9D.js";
|
|
5
|
+
import "./messageLog-Dq_ka-Bt.js";
|
|
6
|
+
import "./e2e-BdLf8DvY.js";
|
|
7
|
+
import "./configShared-De4bR5hH.js";
|
|
8
|
+
import { $ as renderLogTailLines, A as isAgentStuck, B as lastStdinAt, C as extractBadges, D as finalizedLines, E as extractTaskCounts, F as isSubcommand, G as probeStdinReachable, H as matchKeyword, I as isUnknownManagerToken, J as readLogForRender, K as readAgentPtysize, L as isUnreachableWriteErrno, M as isExitRequest, N as isPidAlive, O as inspectSubmission, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, S as envelopeCostFor, T as extractNeedsInput, U as menuSelectKeys, V as listRecords, W as ownedCollapsedPaste, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _ as cwdLabel, a as READ_WINDOW_MS, at as restartHintLines, b as drainerLauncher, c as SEND_EXIT_UNREACHABLE, ct as snapshotStatus, d as buildEnvelope, dt as submitAndConfirm, et as renderRawLog, f as cliDefaults, ft as waitForLogQuiet, g as cursorAbs, h as controlCodeFromName, i as READ_PAGE_DEFAULT, it as resolveResumeArgs, j as isBareManagerInvocation, k as isAgentIdShaped, l as TYPING_WINDOW_MS, lt as stdinActivityPath, m as confirmStdinUnreachable, mt as writeToIpc, n as GRACEFUL_EXIT_COMMANDS, nt as resolveOne, o as SEND_BODY_MAX_CHARS, ot as runSubcommand, p as cmdHelp, pt as writeKeysPaced, q as readComposerState, r as MAX_RENDER_BYTES, rt as resolveReadWindow, s as SEND_EXIT_QUEUED, st as sendPayloadCapError, t as COMPOSER_WINDOWS, tt as renderRawLogLines, u as backoffWhileTyping, ut as stopTipForCli, v as deriveLiveState, w as extractMenu, x as envelopeAttribution, y as deriveLiveStatus, z as lastReadAt } from "./subcommands-fX4Ygx3a.js";
|
|
9
|
+
import "./notifyStore-DI4iKFut.js";
|
|
10
|
+
import "./webrtcLink-CKnjNGaV.js";
|
|
11
|
+
import "./remotes-D10E_xUn.js";
|
|
12
12
|
|
|
13
|
-
export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
|
|
13
|
+
export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isPidAlive, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
|
|
@@ -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-DdHbUWtG.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-DlW0KNym.js.map
|
package/dist/terminal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as DONE_STATE, o as ORPHANED_STATE, p as transitionsOf } from "./todoStore-
|
|
1
|
+
import { i as DONE_STATE, o as ORPHANED_STATE, p as transitionsOf } from "./todoStore-C9RTz0Vs.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/removeControlCharacters.ts
|
|
4
4
|
const ESC = String.fromCharCode(27);
|
|
@@ -299,4 +299,4 @@ function reconcileTodos(tasks, agents, registeredGates) {
|
|
|
299
299
|
|
|
300
300
|
//#endregion
|
|
301
301
|
export { renderTree as a, describeBlock as c, renderDigest as i, monitorHint as l, buildTreeJSON as n, unblockedTasks as o, openBlockers as r, blockedOnAgent as s, reconcileTodos as t, removeControlCharacters as u };
|
|
302
|
-
//# sourceMappingURL=todoAutomation-
|
|
302
|
+
//# sourceMappingURL=todoAutomation-TTp_Qz9G.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
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-
|
|
3
|
-
import "./JsonlStore-
|
|
4
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
5
|
-
import { a as LIFECYCLES, l as isKnownKind, r as openStore, t as CycleError } from "./todoStore-
|
|
6
|
-
import { a as resolveTodoRoot, i as resolveSelf, n as SELF_OWNER, r as ownerLiveness, t as NO_OWNER } from "./todoIdentity-
|
|
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-TTp_Qz9G.js";
|
|
3
|
+
import "./JsonlStore-BpYZZTap.js";
|
|
4
|
+
import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.js";
|
|
5
|
+
import { a as LIFECYCLES, l as isKnownKind, r as openStore, t as CycleError } from "./todoStore-C9RTz0Vs.js";
|
|
6
|
+
import { a as resolveTodoRoot, i as resolveSelf, n as SELF_OWNER, r as ownerLiveness, t as NO_OWNER } from "./todoIdentity-CY1UkEs7.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-B62mo9af.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
1
|
+
import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.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-CY1UkEs7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as JsonlStore } from "./JsonlStore-
|
|
1
|
+
import { t as JsonlStore } from "./JsonlStore-BpYZZTap.js";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { lock } from "proper-lockfile";
|
|
4
4
|
|
|
@@ -741,4 +741,4 @@ async function openStore(projectRoot) {
|
|
|
741
741
|
|
|
742
742
|
//#endregion
|
|
743
743
|
export { LIFECYCLES as a, initialState as c, requiredGate as d, statesOf as f, DONE_STATE as i, isKnownKind as l, TodoStore as n, ORPHANED_STATE as o, transitionsOf as p, openStore as r, canTransition as s, CycleError as t, nextStates as u };
|
|
744
|
-
//# sourceMappingURL=todoStore-
|
|
744
|
+
//# sourceMappingURL=todoStore-C9RTz0Vs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getRunningAgentCount } from "./runningLock-
|
|
1
|
+
import { n as getRunningAgentCount } from "./runningLock-DMznYh45.js";
|
|
2
2
|
import { existsSync } from "fs";
|
|
3
3
|
import { mkdir, readFile, unlink, writeFile } from "fs/promises";
|
|
4
4
|
import { homedir } from "os";
|
|
@@ -187,4 +187,4 @@ async function startTray() {
|
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
189
|
export { ensureTray, startTray };
|
|
190
|
-
//# sourceMappingURL=tray-
|
|
190
|
+
//# sourceMappingURL=tray-DJtC0yib.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as findTrayLauncher } from "./rustBinary-
|
|
2
|
-
import { t as agentYesHome } from "./agentYesHome-
|
|
1
|
+
import { c as findTrayLauncher } from "./rustBinary-Btf18sk5.js";
|
|
2
|
+
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { unlink, writeFile } from "node:fs/promises";
|
|
@@ -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-DWVdr0Pr.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
4
|
-
import { t as agentYesHome } from "./agentYesHome-
|
|
5
|
-
import { u as removeControlCharacters } from "./todoAutomation-
|
|
6
|
-
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-
|
|
7
|
-
import { a as readGlobalPids } from "./globalPidIndex-
|
|
8
|
-
import { t as PidStore } from "./pidStore-
|
|
9
|
-
import { r as recordInbox } from "./messageLog-
|
|
10
|
-
import { n as register, r as sweep } from "./reaper-
|
|
11
|
-
import { a as LIFECYCLES, r as openStore } from "./todoStore-
|
|
3
|
+
import { i as getInstalledPackage } from "./versionChecker-DrjMn-XI.js";
|
|
4
|
+
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
5
|
+
import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
|
|
6
|
+
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DMznYh45.js";
|
|
7
|
+
import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.js";
|
|
8
|
+
import { t as PidStore } from "./pidStore-433kvh9D.js";
|
|
9
|
+
import { r as recordInbox } from "./messageLog-Dq_ka-Bt.js";
|
|
10
|
+
import { n as register, r as sweep } from "./reaper-C2cuougX.js";
|
|
11
|
+
import { a as LIFECYCLES, r as openStore } from "./todoStore-C9RTz0Vs.js";
|
|
12
12
|
import { arch, platform } from "process";
|
|
13
13
|
import { execSync } from "child_process";
|
|
14
14
|
import { closeSync, constants, createReadStream, existsSync, mkdirSync, openSync } from "fs";
|
|
@@ -1540,7 +1540,7 @@ async function compactRawLogTail(logPath, keepBytes = RAW_LOG_KEEP_BYTES) {
|
|
|
1540
1540
|
await fh.close();
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
|
-
const config = await import("./agent-yes.config-
|
|
1543
|
+
const config = await import("./agent-yes.config-CRfpdp3A.js").then((mod) => mod.default || mod);
|
|
1544
1544
|
const CLIS_CONFIG = config.clis;
|
|
1545
1545
|
/**
|
|
1546
1546
|
* Main function to run agent-cli with automatic yes/no responses
|
|
@@ -1613,11 +1613,11 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
1613
1613
|
})();
|
|
1614
1614
|
const originalPrompt = prompt;
|
|
1615
1615
|
if (prompt && inheritedParentPid) try {
|
|
1616
|
-
const { resolveSpawner } = await import("./parentLink-
|
|
1616
|
+
const { resolveSpawner } = await import("./parentLink-qUr7dRdh.js");
|
|
1617
1617
|
const spawner = await resolveSpawner(inheritedParentPid);
|
|
1618
1618
|
if (spawner) {
|
|
1619
|
-
const { buildInitMsg } = await import("./initMsg-
|
|
1620
|
-
const { formatIdentity } = await import("./identity-
|
|
1619
|
+
const { buildInitMsg } = await import("./initMsg-NleE4YLm.js");
|
|
1620
|
+
const { formatIdentity } = await import("./identity-DA7YI9km.js");
|
|
1621
1621
|
const identity = formatIdentity({
|
|
1622
1622
|
cwd: spawner.cwd,
|
|
1623
1623
|
pid: spawner.pid
|
|
@@ -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-Bim6u0OH.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-D29CMeWZ.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.302.
|
|
10
|
+
var version = "1.302.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-DrjMn-XI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as parseSecret } from "./e2e-
|
|
1
|
+
import { u as parseSecret } from "./e2e-BdLf8DvY.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/webrtcLink.ts
|
|
4
4
|
const SIGNAL_SUBPROTOCOL = "ay-signal-1";
|
|
@@ -69,5 +69,5 @@ function isWebrtcSpec(spec) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
export { toWebrtcUrl as i,
|
|
73
|
-
//# sourceMappingURL=webrtcLink-
|
|
72
|
+
export { toWebrtcUrl as a, parseWebrtcLink as i, SIGNAL_SUBPROTOCOL as n, isWebrtcSpec as r, DEFAULT_SIGHOST as t };
|
|
73
|
+
//# sourceMappingURL=webrtcLink-CKnjNGaV.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as computeTranscriptHash, c as open, d as randomHex, f as seal, l as packEnvelope, n as FLAG_CONFIRM, o as deriveAuthToken, p as unpackEnvelope, s as deriveDirKeys } from "./e2e-
|
|
2
|
-
import {
|
|
1
|
+
import { a as computeTranscriptHash, c as open, d as randomHex, f as seal, l as packEnvelope, n as FLAG_CONFIRM, o as deriveAuthToken, p as unpackEnvelope, s as deriveDirKeys } from "./e2e-BdLf8DvY.js";
|
|
2
|
+
import { i as parseWebrtcLink, n as SIGNAL_SUBPROTOCOL, r as isWebrtcSpec } from "./webrtcLink-CKnjNGaV.js";
|
|
3
3
|
import { RTCPeerConnection } from "node-datachannel/polyfill";
|
|
4
4
|
|
|
5
5
|
//#region ts/signalingHint.ts
|
|
@@ -194,12 +194,16 @@ var WebRtcConn = class {
|
|
|
194
194
|
this.hostPeer = action.from ?? null;
|
|
195
195
|
const pc = new RTCPeerConnection({ iceServers: action.iceServers || [] });
|
|
196
196
|
this.pc = pc;
|
|
197
|
+
let held = [];
|
|
198
|
+
const sendCandidate = (candidate) => this.ws.send(JSON.stringify({
|
|
199
|
+
type: "candidate",
|
|
200
|
+
to: this.hostPeer,
|
|
201
|
+
candidate
|
|
202
|
+
}));
|
|
197
203
|
pc.onicecandidate = (e) => {
|
|
198
|
-
if (e.candidate)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
candidate: e.candidate
|
|
202
|
-
}));
|
|
204
|
+
if (!e.candidate) return;
|
|
205
|
+
if (held) held.push(e.candidate);
|
|
206
|
+
else sendCandidate(e.candidate);
|
|
203
207
|
};
|
|
204
208
|
pc.ondatachannel = (e) => {
|
|
205
209
|
const dc = e.channel;
|
|
@@ -231,6 +235,9 @@ var WebRtcConn = class {
|
|
|
231
235
|
to: this.hostPeer,
|
|
232
236
|
sdp: pc.localDescription.sdp
|
|
233
237
|
}));
|
|
238
|
+
const queued = held;
|
|
239
|
+
held = null;
|
|
240
|
+
for (const c of queued) sendCandidate(c);
|
|
234
241
|
}
|
|
235
242
|
}
|
|
236
243
|
enqueueSeal(flags, obj) {
|
|
@@ -398,4 +405,4 @@ async function startWebrtcBridge(link) {
|
|
|
398
405
|
|
|
399
406
|
//#endregion
|
|
400
407
|
export { startWebrtcBridge };
|
|
401
|
-
//# sourceMappingURL=webrtcRemote-
|
|
408
|
+
//# sourceMappingURL=webrtcRemote-BYy2lTTl.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-DdHbUWtG.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-DdHbUWtG.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-CvcvPWF9.js.map
|
package/dist/widget.js
CHANGED
|
@@ -142,7 +142,7 @@ var AyWidget = class {
|
|
|
142
142
|
}
|
|
143
143
|
async h2c(el, viewport, rect, unclipSelector) {
|
|
144
144
|
const g = globalThis;
|
|
145
|
-
const mod = await import("./html2canvas-pro.esm-
|
|
145
|
+
const mod = await import("./html2canvas-pro.esm-Dp-JZojz.js");
|
|
146
146
|
const html2canvas = mod.default ?? mod;
|
|
147
147
|
const opts = {
|
|
148
148
|
backgroundColor: viewport ? "#ffffff" : null,
|