agent-yes 1.306.3-beta.819.1 → 1.306.3
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 +0 -1
- package/dist/{SUPPORTED_CLIS-CCF7shxg.js → SUPPORTED_CLIS-Dvgot0oL.js} +3 -3
- package/dist/{SUPPORTED_CLIS-DArtWpuL.js → SUPPORTED_CLIS-XUv7pAhg.js} +2 -2
- package/dist/{agentShare-CsJsH-Dd.js → agentShare-DHslHOe9.js} +4 -4
- package/dist/{callback-CgsitnDL.js → callback-BbDa82Yw.js} +3 -3
- package/dist/{callback-BXEz6pKt.js → callback-BnPh1ipj.js} +4 -4
- package/dist/cli.js +8 -8
- package/dist/{cmdPs-D_OUlmDa.js → cmdPs-D_9k-_up.js} +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-XZkm14E_.js → notifyDaemon-Dsb009Id.js} +4 -4
- package/dist/{parentPingLoop-MusvEzUn.js → parentPingLoop-cXg1hXg0.js} +2 -2
- package/dist/{remotes-W6NhMDfP.js → remotes-BqLoB5GR.js} +1 -1
- package/dist/{remotes-CAZymHd7.js → remotes-BsMGvAay.js} +2 -2
- package/dist/{roomReplyAlias-B1EJft2d.js → roomReplyAlias-B-v76TA8.js} +2 -2
- package/dist/roomReplyAlias-BzWUBkQy.js +6 -0
- package/dist/{rustBinary-aVcHP8hD.js → rustBinary-0BGlZPM2.js} +2 -2
- package/dist/{rustBinary-qxjswvdM.js → rustBinary-BaadP-ZC.js} +2 -2
- package/dist/{schedule-DLXGgL5L.js → schedule-CEZ-hTWV.js} +8 -49
- package/dist/{schedules-BvwTGXU2.js → schedulesCli-CLqieyQZ.js} +339 -2
- package/dist/{serve-Bv9romOO.js → serve-CuqQMmlO.js} +28 -35
- package/dist/{serveRust-76_apYb8.js → serveRust-BfWkeL6T.js} +1 -1
- package/dist/{setup-DxCsJ1va.js → setup-D2hLlUYT.js} +4 -4
- package/dist/{shareCmd-BlyavBFs.js → shareCmd-DbMp0rph.js} +6 -6
- package/dist/{spawnGate-nUrmf4dd.js → spawnGate-3YSXiRFS.js} +2 -2
- package/dist/{spawnGate-DhPgMs0Y.js → spawnGate-I4p2fbz7.js} +1 -1
- package/dist/{subcommands-HUEsqib4.js → subcommands-7SrEP-BA.js} +24 -24
- package/dist/{subcommands-BuCov57g.js → subcommands-_Neez7D-.js} +3 -3
- package/dist/{systemPathLink-DI9WdoqQ.js → systemPathLink-Y3iC7bYV.js} +1 -1
- package/dist/{terminal-Dhv5F8VR.js → terminal-iUqKIceC.js} +2 -2
- package/dist/{todoCli-BllShFnc.js → todoCli-uJ3nK9j4.js} +1 -1
- package/dist/{tray-RIjHSw7z.js → tray-CLktEN3G.js} +1 -1
- package/dist/{trayApp-CD6NOP5U.js → trayApp-l9q9To-G.js} +2 -2
- package/dist/trayApp-oEZBU7Cx.js +5 -0
- package/dist/{ts-RXGBDphn.js → ts-BLBWiX6i.js} +3 -3
- package/dist/{versionChecker-BHk-52of.js → versionChecker-Dt2Aewei.js} +2 -2
- package/dist/{webrtcRemote-B4pwES4i.js → webrtcRemote-C3xQyf3u.js} +1 -1
- package/dist/{widget-Coku2qhh.js → widget-_K5rPsLe.js} +3 -3
- package/dist/{workspaceConfig-DjEklzxf.js → workspaceConfig-DBgsu81B.js} +1 -1
- package/dist/{ws-VQkQQmHi.js → ws-BCJF2ZKx.js} +3 -3
- package/dist/{ws-BCRKtzD0.js → ws-BaBtzqo_.js} +4 -4
- package/lab/ui/console-logic.js +2 -2
- package/lab/ui/index.html +40 -129
- package/lab/ui/sw.js +0 -2
- package/package.json +1 -3
- package/ts/schedule.ts +1 -51
- package/ts/serve.ts +0 -11
- package/dist/roomReplyAlias-BeGVkAlc.js +0 -6
- package/dist/schedulesCli-Donh0LS2.js +0 -343
- package/dist/trayApp-8MN-AHfM.js +0 -5
- package/lab/ui/device-sync.js +0 -209
- package/lab/ui/device-transfer.js +0 -99
- package/ts/scheduleSummary.bun.spec.ts +0 -74
package/README.md
CHANGED
|
@@ -223,7 +223,6 @@ Send a message to an agent on a 5-field cron (timezone `$AY_CRON_TZ`, default As
|
|
|
223
223
|
ay cron "*/30 9-18 * * 1-5" lane:alpha "progress report please ({now})"
|
|
224
224
|
ay cron ls # id, cron, target, next run, last result
|
|
225
225
|
ay cron rm c1
|
|
226
|
-
ay schedule list --json # read the local timetable as JSON
|
|
227
226
|
ay schedules ls # everything: cron reminders + legacy `ay schedule` jobs
|
|
228
227
|
ay schedules daemon status # the per-machine scheduler daemon
|
|
229
228
|
```
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-Dt2Aewei.js";
|
|
3
|
+
import "./ts-BLBWiX6i.js";
|
|
4
4
|
import "./todoAutomation-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-C6p_AY4D.js";
|
|
7
7
|
import "./pidStore-DUXifdBr.js";
|
|
8
8
|
import "./messageLog-CEqe4Hk1.js";
|
|
9
9
|
import "./todoStore-msRCEUi1.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-XUv7pAhg.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-BLBWiX6i.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-XUv7pAhg.js.map
|
|
@@ -5,10 +5,10 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-CEqe4Hk1.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { ot as resolveOne } from "./subcommands-
|
|
8
|
+
import { ot as resolveOne } from "./subcommands-7SrEP-BA.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
|
-
import "./remotes-
|
|
11
|
-
import "./roomReplyAlias-
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import { l as startShare } from "./share-CbFetL5H.js";
|
|
@@ -234,4 +234,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
234
234
|
|
|
235
235
|
//#endregion
|
|
236
236
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
237
|
-
//# sourceMappingURL=agentShare-
|
|
237
|
+
//# sourceMappingURL=agentShare-DHslHOe9.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import { ot as resolveOne } from "./subcommands-
|
|
2
|
+
import { ot as resolveOne } from "./subcommands-7SrEP-BA.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-Deve5pv3.js";
|
|
4
4
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -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-CuqQMmlO.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-BbDa82Yw.js.map
|
|
@@ -5,13 +5,13 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-CEqe4Hk1.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import "./subcommands-
|
|
8
|
+
import "./subcommands-7SrEP-BA.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
|
-
import "./remotes-
|
|
11
|
-
import "./roomReplyAlias-
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import "./callbackCore-Deve5pv3.js";
|
|
15
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
15
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-BbDa82Yw.js";
|
|
16
16
|
|
|
17
17
|
export { cmdCallback };
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { h as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-Dt2Aewei.js";
|
|
5
|
+
import { h as getRustBinary } from "./rustBinary-0BGlZPM2.js";
|
|
6
6
|
import { statSync } from "node:fs";
|
|
7
7
|
import { isAbsolute } from "node:path";
|
|
8
8
|
import { argv } from "process";
|
|
@@ -378,7 +378,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
378
378
|
const rawArg = process.argv[2];
|
|
379
379
|
const managerCommands = !invokedCliName(process.argv);
|
|
380
380
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
381
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-
|
|
381
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-_Neez7D-.js");
|
|
382
382
|
if (isHelpFlag && process.argv.length === 3) {
|
|
383
383
|
await cmdHelp(managerCommands);
|
|
384
384
|
process.exit(0);
|
|
@@ -392,7 +392,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
392
392
|
process.exit(code ?? 0);
|
|
393
393
|
}
|
|
394
394
|
{
|
|
395
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
395
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-Dvgot0oL.js");
|
|
396
396
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
397
397
|
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`);
|
|
398
398
|
process.exit(1);
|
|
@@ -428,16 +428,16 @@ if (config.detach && !config.useRust) {
|
|
|
428
428
|
process.exit(1);
|
|
429
429
|
}
|
|
430
430
|
if (config.tray) {
|
|
431
|
-
const { startTray } = await import("./tray-
|
|
431
|
+
const { startTray } = await import("./tray-CLktEN3G.js");
|
|
432
432
|
await startTray();
|
|
433
433
|
await new Promise(() => {});
|
|
434
434
|
}
|
|
435
435
|
{
|
|
436
|
-
const { ensureTray } = await import("./tray-
|
|
436
|
+
const { ensureTray } = await import("./tray-CLktEN3G.js");
|
|
437
437
|
ensureTray();
|
|
438
438
|
}
|
|
439
439
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
440
|
-
const { waitForSpawnCapacity } = await import("./spawnGate-
|
|
440
|
+
const { waitForSpawnCapacity } = await import("./spawnGate-I4p2fbz7.js");
|
|
441
441
|
await waitForSpawnCapacity({
|
|
442
442
|
onWait: (reason, waitedMs) => {
|
|
443
443
|
if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
|
|
@@ -464,7 +464,7 @@ if (config.useRust) {
|
|
|
464
464
|
process.exit(1);
|
|
465
465
|
}
|
|
466
466
|
if (rustBinary) {
|
|
467
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
467
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-Dvgot0oL.js");
|
|
468
468
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
469
469
|
if (config.verbose) {
|
|
470
470
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -5,10 +5,10 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-CEqe4Hk1.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { Dt as buildAgentForest, G as listRecords, Ot as flattenForest, y as deriveLiveState } from "./subcommands-
|
|
8
|
+
import { Dt as buildAgentForest, G as listRecords, Ot as flattenForest, y as deriveLiveState } from "./subcommands-7SrEP-BA.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
|
-
import "./remotes-
|
|
11
|
-
import "./roomReplyAlias-
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-DwTxj3rs.js";
|
|
@@ -332,4 +332,4 @@ function readPpidSync(pid) {
|
|
|
332
332
|
|
|
333
333
|
//#endregion
|
|
334
334
|
export { cmdPs };
|
|
335
|
-
//# sourceMappingURL=cmdPs-
|
|
335
|
+
//# sourceMappingURL=cmdPs-D_9k-_up.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-Dt2Aewei.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-BLBWiX6i.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-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-C6p_AY4D.js";
|
|
@@ -5,10 +5,10 @@ import "./pidStore-DUXifdBr.js";
|
|
|
5
5
|
import "./messageLog-CEqe4Hk1.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-
|
|
8
|
+
import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-7SrEP-BA.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
|
-
import "./remotes-
|
|
11
|
-
import "./roomReplyAlias-
|
|
10
|
+
import "./remotes-BsMGvAay.js";
|
|
11
|
+
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
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-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
14
|
import { readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -881,4 +881,4 @@ async function ensureDaemon() {
|
|
|
881
881
|
|
|
882
882
|
//#endregion
|
|
883
883
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
884
|
-
//# sourceMappingURL=notifyDaemon-
|
|
884
|
+
//# sourceMappingURL=notifyDaemon-Dsb009Id.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-_Neez7D-.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-cXg1hXg0.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./e2e-BdLf8DvY.js";
|
|
2
2
|
import "./webrtcLink-DcvacEci.js";
|
|
3
|
-
import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-
|
|
3
|
+
import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-BsMGvAay.js";
|
|
4
4
|
|
|
5
5
|
export { cmdConnect, cmdRemote };
|
|
@@ -136,7 +136,7 @@ async function resolveRemoteSpec(spec) {
|
|
|
136
136
|
* The bridge lives for the rest of the process (torn down on `process.exit`).
|
|
137
137
|
*/
|
|
138
138
|
async function resolveWebrtc(link, keyword, label) {
|
|
139
|
-
const { startWebrtcBridge } = await import("./webrtcRemote-
|
|
139
|
+
const { startWebrtcBridge } = await import("./webrtcRemote-C3xQyf3u.js");
|
|
140
140
|
const bridge = await startWebrtcBridge(link, { keyword });
|
|
141
141
|
return {
|
|
142
142
|
url: bridge.baseUrl,
|
|
@@ -322,4 +322,4 @@ async function cmdConnect(rest) {
|
|
|
322
322
|
|
|
323
323
|
//#endregion
|
|
324
324
|
export { deleteRemoteAlias as a, parseShareUrl as c, writeRemoteAlias as d, defaultConnectAlias as i, readRemotes as l, cmdConnect as n, maskRemoteUrl as o, cmdRemote as r, parseDirectRemoteSpec as s, MASK as t, resolveRemoteSpec as u };
|
|
325
|
-
//# sourceMappingURL=remotes-
|
|
325
|
+
//# sourceMappingURL=remotes-BsMGvAay.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
2
|
import { a as parseWebrtcLink } from "./webrtcLink-DcvacEci.js";
|
|
3
|
-
import { l as readRemotes } from "./remotes-
|
|
3
|
+
import { l as readRemotes } from "./remotes-BsMGvAay.js";
|
|
4
4
|
import { readFile } from "fs/promises";
|
|
5
5
|
import { hostname } from "os";
|
|
6
6
|
import path from "path";
|
|
@@ -55,4 +55,4 @@ async function hostedRoomMember(room) {
|
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { roomAliases as i, hostedRoomMember as n, roomAliasPlaceholder as r, fillRoomAlias as t };
|
|
58
|
-
//# sourceMappingURL=roomReplyAlias-
|
|
58
|
+
//# sourceMappingURL=roomReplyAlias-B-v76TA8.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./e2e-BdLf8DvY.js";
|
|
2
|
+
import "./webrtcLink-DcvacEci.js";
|
|
3
|
+
import "./remotes-BsMGvAay.js";
|
|
4
|
+
import { i as roomAliases, n as hostedRoomMember, r as roomAliasPlaceholder, t as fillRoomAlias } from "./roomReplyAlias-B-v76TA8.js";
|
|
5
|
+
|
|
6
|
+
export { fillRoomAlias, roomAliases };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-
|
|
1
|
+
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-Dt2Aewei.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { accessSync, chmodSync, constants, existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -480,4 +480,4 @@ async function getRustBinary(options = {}) {
|
|
|
480
480
|
|
|
481
481
|
//#endregion
|
|
482
482
|
export { ensureExecutable as a, findRustBinary as c, gcOldBinaryDirs as d, getBinDir as f, hasValidMacSignature as g, getRustBinary as h, ensureAyrsBinary as i, findSpawnHiddenLauncher as l, getDownloadUrl as m, devBuildInfo as n, extractZipWindows as o, getBinaryName as p, downloadBinary as r, findAyrsBinary as s, chmodExtractedBinaries as t, findTrayLauncher as u };
|
|
483
|
-
//# sourceMappingURL=rustBinary-
|
|
483
|
+
//# sourceMappingURL=rustBinary-0BGlZPM2.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
2
|
-
import { a as ensureExecutable, c as findRustBinary, d as gcOldBinaryDirs, f as getBinDir, g as hasValidMacSignature, h as getRustBinary, i as ensureAyrsBinary, l as findSpawnHiddenLauncher, m as getDownloadUrl, n as devBuildInfo, o as extractZipWindows, p as getBinaryName, r as downloadBinary, s as findAyrsBinary, t as chmodExtractedBinaries, u as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import "./versionChecker-Dt2Aewei.js";
|
|
2
|
+
import { a as ensureExecutable, c as findRustBinary, d as gcOldBinaryDirs, f as getBinDir, g as hasValidMacSignature, h as getRustBinary, i as ensureAyrsBinary, l as findSpawnHiddenLauncher, m as getDownloadUrl, n as devBuildInfo, o as extractZipWindows, p as getBinaryName, r as downloadBinary, s as findAyrsBinary, t as chmodExtractedBinaries, u as findTrayLauncher } from "./rustBinary-0BGlZPM2.js";
|
|
3
3
|
|
|
4
4
|
export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-Dt2Aewei.js";
|
|
3
|
+
import "./ts-BLBWiX6i.js";
|
|
4
4
|
import "./todoAutomation-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-C6p_AY4D.js";
|
|
7
7
|
import "./pidStore-DUXifdBr.js";
|
|
8
8
|
import "./messageLog-CEqe4Hk1.js";
|
|
9
9
|
import "./todoStore-msRCEUi1.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-XUv7pAhg.js";
|
|
11
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
12
12
|
import { t as ensureBootAutostart } from "./oxmgrService-DlYHmqyI.js";
|
|
13
|
-
import {
|
|
14
|
-
import { f as resolveSpawnCwd } from "./workspaceConfig-DjEklzxf.js";
|
|
13
|
+
import { f as resolveSpawnCwd } from "./workspaceConfig-DBgsu81B.js";
|
|
15
14
|
import { createHash } from "node:crypto";
|
|
16
|
-
import { execFile } from "node:child_process";
|
|
17
|
-
import { readFile } from "node:fs/promises";
|
|
18
|
-
import { promisify } from "node:util";
|
|
19
15
|
|
|
20
16
|
//#region ts/schedule.ts
|
|
21
17
|
const SCHED_PREFIX = "agent-yes-cron-";
|
|
@@ -50,44 +46,7 @@ async function run(cmd, capture = false) {
|
|
|
50
46
|
out
|
|
51
47
|
};
|
|
52
48
|
}
|
|
53
|
-
/** The read-only timetable shared by the CLI and device sync. Process manager
|
|
54
|
-
* records also contain command arguments and environment; only project times and names. */
|
|
55
|
-
async function scheduleSummary() {
|
|
56
|
-
const reminders = parseStore(await readFile(storeFile(), "utf8").catch((err) => {
|
|
57
|
-
if (err.code === "ENOENT") return null;
|
|
58
|
-
throw err;
|
|
59
|
-
})).entries.map(({ name, cron, tz, enabled }) => ({
|
|
60
|
-
name,
|
|
61
|
-
cron,
|
|
62
|
-
tz,
|
|
63
|
-
enabled
|
|
64
|
-
}));
|
|
65
|
-
const ox = Bun.which("oxmgr");
|
|
66
|
-
if (!ox) return reminders;
|
|
67
|
-
await ensureNodeRuntime();
|
|
68
|
-
const { stdout } = await promisify(execFile)(ox, ["list", "--json"], {
|
|
69
|
-
encoding: "utf8",
|
|
70
|
-
timeout: 3e3,
|
|
71
|
-
maxBuffer: 8 * 1024 * 1024,
|
|
72
|
-
env: liveEnv()
|
|
73
|
-
});
|
|
74
|
-
const rows = JSON.parse(stdout);
|
|
75
|
-
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
76
|
-
return [...rows.flatMap((row) => typeof row?.name === "string" && row.name.startsWith(SCHED_PREFIX) && typeof row.cron_restart === "string" ? [{
|
|
77
|
-
name: row.name,
|
|
78
|
-
cron: row.cron_restart,
|
|
79
|
-
tz,
|
|
80
|
-
enabled: row.desired_state !== "stopped"
|
|
81
|
-
}] : []), ...reminders];
|
|
82
|
-
}
|
|
83
49
|
async function cmdSchedule(rest) {
|
|
84
|
-
if ((rest[0] === "list" || rest[0] === "ls") && rest[1] === "--json") try {
|
|
85
|
-
console.log(JSON.stringify(await scheduleSummary()));
|
|
86
|
-
return 0;
|
|
87
|
-
} catch {
|
|
88
|
-
console.error("ay schedule: timetable unavailable");
|
|
89
|
-
return 1;
|
|
90
|
-
}
|
|
91
50
|
await ensureNodeRuntime();
|
|
92
51
|
const oxmgrBin = Bun.which("oxmgr");
|
|
93
52
|
if (!oxmgrBin) {
|
|
@@ -96,14 +55,14 @@ async function cmdSchedule(rest) {
|
|
|
96
55
|
}
|
|
97
56
|
const sub = rest[0];
|
|
98
57
|
if (!sub || sub === "-h" || sub === "--help") {
|
|
99
|
-
process.stdout.write("Usage:\n ay schedule <when> <cli> [--cwd DIR] [--name N] [-- <prompt>]\n schedule a recurring agent\n ay schedule list list scheduled agents
|
|
58
|
+
process.stdout.write("Usage:\n ay schedule <when> <cli> [--cwd DIR] [--name N] [-- <prompt>]\n schedule a recurring agent\n ay schedule list list scheduled agents\n ay schedule remove <name> remove one\n\n<when> is a daily HH:MM (e.g. 10:00) or a 5-field cron (\"0 10 * * *\").\nThe agent runs once now and then on every tick, and survives reboot.\n\nExample — a 10am daily QA pass:\n ay schedule 10:00 claude --cwd ~/ws/product -- \"run a full QA pass and write a report\"\n");
|
|
100
59
|
return 0;
|
|
101
60
|
}
|
|
102
61
|
if (sub === "list" || sub === "ls") {
|
|
103
62
|
process.stdout.write(`scheduled agents are named '${SCHED_PREFIX}*':\n`);
|
|
104
63
|
const code = (await run([oxmgrBin, "list"])).code;
|
|
105
64
|
process.stdout.write(`\nay cron reminders (fired by the scheduler daemon):\n`);
|
|
106
|
-
await (await import("./schedulesCli-
|
|
65
|
+
await (await import("./schedulesCli-CLqieyQZ.js")).cmdCron(["ls"]);
|
|
107
66
|
return code;
|
|
108
67
|
}
|
|
109
68
|
if (sub === "remove" || sub === "rm" || sub === "delete") {
|
|
@@ -165,5 +124,5 @@ async function cmdSchedule(rest) {
|
|
|
165
124
|
}
|
|
166
125
|
|
|
167
126
|
//#endregion
|
|
168
|
-
export { cmdSchedule
|
|
169
|
-
//# sourceMappingURL=schedule-
|
|
127
|
+
export { cmdSchedule };
|
|
128
|
+
//# sourceMappingURL=schedule-CEZ-hTWV.js.map
|