agent-yes 1.302.2-beta.782.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/dist/{SUPPORTED_CLIS-CafCc4Ya.js → SUPPORTED_CLIS-C5Uhdl61.js} +3 -3
- package/dist/{SUPPORTED_CLIS-BBhwfuqN.js → SUPPORTED_CLIS-FBshN0v2.js} +2 -2
- package/dist/{agentShare-dc76XtU3.js → agentShare-CNgCQMY9.js} +4 -4
- package/dist/{callback-CWkqEGWk.js → callback-CbZ-H_Pn.js} +4 -4
- package/dist/{callback-Cuit6CSm.js → callback-ayc9yXqJ.js} +3 -3
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-CukrD-zp.js → cmdPs-CDj-l5Pk.js} +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-DYdXQ-Wb.js → notifyDaemon-DZbd5fTj.js} +4 -4
- package/dist/{parentPingLoop-D6vjhF5z.js → parentPingLoop-Bim6u0OH.js} +2 -2
- package/dist/{remotes-C36aI8Ty.js → remotes-ByjpYjQ9.js} +2 -2
- package/dist/{remotes-COBEhmlr.js → remotes-D10E_xUn.js} +6 -6
- package/dist/{rustBinary-DmCGfACC.js → rustBinary-Btf18sk5.js} +2 -2
- package/dist/{rustBinary-zu31ic2B.js → rustBinary-DklBSefL.js} +2 -2
- package/dist/{schedule-CUiwf7mG.js → schedule-DzqTosvJ.js} +4 -4
- package/dist/{serve-snhDk1up.js → serve-DdHbUWtG.js} +26 -43
- package/dist/{serveRust-BgY5Te5E.js → serveRust-BEzTqFRy.js} +6 -50
- package/dist/{setup-3aWAL8gH.js → setup-CzKkVYp8.js} +2 -2
- package/dist/{shareCmd-CaSdXjeq.js → shareCmd-DinezAHY.js} +7 -7
- package/dist/{subcommands-zG8I3in-.js → subcommands-fX4Ygx3a.js} +27 -30
- package/dist/{subcommands-BgFsgJGe.js → subcommands-oIARj_mJ.js} +3 -3
- package/dist/{terminal-BARRiHx2.js → terminal-DlW0KNym.js} +2 -2
- package/dist/{trayApp-B_xI7f0O.js → trayApp-DWVdr0Pr.js} +2 -2
- package/dist/trayApp-F_Xs3C2N.js +5 -0
- package/dist/{ts-DTUrABYT.js → ts-D29CMeWZ.js} +3 -3
- package/dist/{versionChecker-C2-gYbZW.js → versionChecker-DrjMn-XI.js} +2 -2
- package/dist/webrtcLink-CAdvnRM0.js +4 -0
- package/dist/{webrtcLink-bWxiCBTV.js → webrtcLink-CKnjNGaV.js} +9 -26
- package/dist/webrtcRemote-BYy2lTTl.js +408 -0
- package/dist/{widget-BzQQg_ng.js → widget-CvcvPWF9.js} +3 -3
- package/dist/{ws-CGIzuIsH.js → ws-Cbx5sfsd.js} +2 -2
- package/dist/{ws-CxFEB5M6.js → ws-DDB8jh0f.js} +4 -4
- package/lab/ui/index.html +3 -71
- package/package.json +1 -1
- package/ts/remotes.ts +4 -11
- package/ts/serve.ts +2 -24
- package/ts/serveRust.spec.ts +6 -23
- package/ts/serveRust.ts +7 -34
- package/ts/subcommands.ts +1 -4
- package/ts/webrtcLink.spec.ts +1 -26
- package/ts/webrtcLink.ts +5 -32
- package/ts/webrtcRemote.ts +102 -406
- package/ts/webrtcSignal.spec.ts +0 -40
- package/ts/webrtcSignal.ts +3 -59
- package/dist/trayApp-DRF_yiXJ.js +0 -5
- package/dist/webrtcLink-CHLgPKWj.js +0 -4
- package/dist/webrtcRemote-RmkbzY6Y.js +0 -683
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-DrjMn-XI.js";
|
|
3
|
+
import "./ts-D29CMeWZ.js";
|
|
4
4
|
import "./todoAutomation-TTp_Qz9G.js";
|
|
5
5
|
import "./JsonlStore-BpYZZTap.js";
|
|
6
6
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
7
7
|
import "./pidStore-433kvh9D.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
9
|
import "./todoStore-C9RTz0Vs.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-FBshN0v2.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-D29CMeWZ.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-FBshN0v2.js.map
|
|
@@ -5,10 +5,10 @@ import "./pidStore-433kvh9D.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { nt as resolveOne } from "./subcommands-
|
|
8
|
+
import { nt as resolveOne } from "./subcommands-fX4Ygx3a.js";
|
|
9
9
|
import "./notifyStore-DI4iKFut.js";
|
|
10
|
-
import "./webrtcLink-
|
|
11
|
-
import "./remotes-
|
|
10
|
+
import "./webrtcLink-CKnjNGaV.js";
|
|
11
|
+
import "./remotes-D10E_xUn.js";
|
|
12
12
|
import { l as startShare } from "./share-Jl8Eia9b.js";
|
|
13
13
|
|
|
14
14
|
//#region ts/agentShare.ts
|
|
@@ -232,4 +232,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
232
232
|
|
|
233
233
|
//#endregion
|
|
234
234
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
235
|
-
//# sourceMappingURL=agentShare-
|
|
235
|
+
//# sourceMappingURL=agentShare-CNgCQMY9.js.map
|
|
@@ -5,11 +5,11 @@ import "./pidStore-433kvh9D.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-fX4Ygx3a.js";
|
|
9
9
|
import "./notifyStore-DI4iKFut.js";
|
|
10
|
-
import "./webrtcLink-
|
|
11
|
-
import "./remotes-
|
|
10
|
+
import "./webrtcLink-CKnjNGaV.js";
|
|
11
|
+
import "./remotes-D10E_xUn.js";
|
|
12
12
|
import "./callbackCore-DXVwvq0X.js";
|
|
13
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
13
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-ayc9yXqJ.js";
|
|
14
14
|
|
|
15
15
|
export { cmdCallback };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
|
|
2
|
-
import { nt as resolveOne } from "./subcommands-
|
|
2
|
+
import { nt as resolveOne } from "./subcommands-fX4Ygx3a.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-DXVwvq0X.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
@@ -72,7 +72,7 @@ async function resolveBase(flag) {
|
|
|
72
72
|
if (flag) return flag;
|
|
73
73
|
if (process.env.AGENT_YES_CALLBACK_BASE) return process.env.AGENT_YES_CALLBACK_BASE;
|
|
74
74
|
try {
|
|
75
|
-
const { resolveLocalServeUrl } = await import("./serve-
|
|
75
|
+
const { resolveLocalServeUrl } = await import("./serve-DdHbUWtG.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-ayc9yXqJ.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-zdFbz1ST.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { p as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-DrjMn-XI.js";
|
|
5
|
+
import { p as getRustBinary } from "./rustBinary-Btf18sk5.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
295
295
|
const rawArg = process.argv[2];
|
|
296
296
|
const managerCommands = !invokedCliName(process.argv);
|
|
297
297
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
298
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-
|
|
298
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-oIARj_mJ.js");
|
|
299
299
|
if (isHelpFlag && process.argv.length === 3) {
|
|
300
300
|
await cmdHelp(managerCommands);
|
|
301
301
|
process.exit(0);
|
|
@@ -309,7 +309,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
309
309
|
process.exit(code ?? 0);
|
|
310
310
|
}
|
|
311
311
|
{
|
|
312
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
312
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C5Uhdl61.js");
|
|
313
313
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
314
314
|
process.stderr.write(`ay: unknown subcommand or CLI '${rawArg}'.\n See 'ay help' for subcommands. To run an agent, name a CLI:\n 'ay <cli> …' (e.g. 'ay claude …') or 'ay --cli <cli> …'.\n`);
|
|
315
315
|
process.exit(1);
|
|
@@ -360,7 +360,7 @@ if (config.useRust) {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
if (rustBinary) {
|
|
363
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
363
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C5Uhdl61.js");
|
|
364
364
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
365
365
|
if (config.verbose) {
|
|
366
366
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -5,10 +5,10 @@ import "./pidStore-433kvh9D.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { V as listRecords, bt as flattenForest, v as deriveLiveState, yt as buildAgentForest } from "./subcommands-
|
|
8
|
+
import { V as listRecords, bt as flattenForest, v as deriveLiveState, yt as buildAgentForest } from "./subcommands-fX4Ygx3a.js";
|
|
9
9
|
import "./notifyStore-DI4iKFut.js";
|
|
10
|
-
import "./webrtcLink-
|
|
11
|
-
import "./remotes-
|
|
10
|
+
import "./webrtcLink-CKnjNGaV.js";
|
|
11
|
+
import "./remotes-D10E_xUn.js";
|
|
12
12
|
import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-xvUthnOx.js";
|
|
13
13
|
import yargs from "yargs";
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
@@ -330,4 +330,4 @@ function readPpidSync(pid) {
|
|
|
330
330
|
|
|
331
331
|
//#endregion
|
|
332
332
|
export { cmdPs };
|
|
333
|
-
//# sourceMappingURL=cmdPs-
|
|
333
|
+
//# sourceMappingURL=cmdPs-CDj-l5Pk.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-DrjMn-XI.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-D29CMeWZ.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-TTp_Qz9G.js";
|
|
5
5
|
import "./JsonlStore-BpYZZTap.js";
|
|
6
6
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
@@ -5,10 +5,10 @@ import "./pidStore-433kvh9D.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { $ as renderLogTailLines, N as isPidAlive, V as listRecords, v as deriveLiveState } from "./subcommands-
|
|
8
|
+
import { $ as renderLogTailLines, N as isPidAlive, V as listRecords, v as deriveLiveState } from "./subcommands-fX4Ygx3a.js";
|
|
9
9
|
import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-DI4iKFut.js";
|
|
10
|
-
import "./webrtcLink-
|
|
11
|
-
import "./remotes-
|
|
10
|
+
import "./webrtcLink-CKnjNGaV.js";
|
|
11
|
+
import "./remotes-D10E_xUn.js";
|
|
12
12
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
14
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -879,4 +879,4 @@ async function ensureDaemon() {
|
|
|
879
879
|
|
|
880
880
|
//#endregion
|
|
881
881
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
882
|
-
//# sourceMappingURL=notifyDaemon-
|
|
882
|
+
//# sourceMappingURL=notifyDaemon-DZbd5fTj.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-oIARj_mJ.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-Bim6u0OH.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./e2e-BdLf8DvY.js";
|
|
2
|
-
import "./webrtcLink-
|
|
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-
|
|
2
|
+
import "./webrtcLink-CKnjNGaV.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-D10E_xUn.js";
|
|
4
4
|
|
|
5
5
|
export { cmdConnect, cmdRemote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as parseWebrtcLink, r as isWebrtcSpec } from "./webrtcLink-CKnjNGaV.js";
|
|
2
2
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
3
3
|
import { homedir } from "os";
|
|
4
4
|
import path from "path";
|
|
@@ -136,12 +136,12 @@ 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-
|
|
140
|
-
const bridge = await startWebrtcBridge(link
|
|
139
|
+
const { startWebrtcBridge } = await import("./webrtcRemote-BYy2lTTl.js");
|
|
140
|
+
const bridge = await startWebrtcBridge(link);
|
|
141
141
|
return {
|
|
142
142
|
url: bridge.baseUrl,
|
|
143
143
|
token: bridge.token,
|
|
144
|
-
keyword
|
|
144
|
+
keyword,
|
|
145
145
|
label
|
|
146
146
|
};
|
|
147
147
|
}
|
|
@@ -295,7 +295,7 @@ async function cmdConnect(rest) {
|
|
|
295
295
|
}
|
|
296
296
|
const alias = aliasArg ?? defaultConnectAlias(link);
|
|
297
297
|
if (!parsed) await writeRemoteAlias(alias, {
|
|
298
|
-
url:
|
|
298
|
+
url: link,
|
|
299
299
|
token: ""
|
|
300
300
|
});
|
|
301
301
|
else {
|
|
@@ -321,4 +321,4 @@ async function cmdConnect(rest) {
|
|
|
321
321
|
|
|
322
322
|
//#endregion
|
|
323
323
|
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 };
|
|
324
|
-
//# sourceMappingURL=remotes-
|
|
324
|
+
//# sourceMappingURL=remotes-D10E_xUn.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-
|
|
1
|
+
import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-DrjMn-XI.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";
|
|
@@ -414,4 +414,4 @@ async function getRustBinary(options = {}) {
|
|
|
414
414
|
|
|
415
415
|
//#endregion
|
|
416
416
|
export { findAyrsBinary as a, findTrayLauncher as c, getBinaryName as d, getDownloadUrl as f, ensureExecutable as i, gcOldBinaryDirs as l, hasValidMacSignature as m, devBuildInfo as n, findRustBinary as o, getRustBinary as p, downloadBinary as r, findSpawnHiddenLauncher as s, chmodExtractedBinaries as t, getBinDir as u };
|
|
417
|
-
//# sourceMappingURL=rustBinary-
|
|
417
|
+
//# sourceMappingURL=rustBinary-Btf18sk5.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
2
|
-
import { a as findAyrsBinary, c as findTrayLauncher, d as getBinaryName, f as getDownloadUrl, i as ensureExecutable, l as gcOldBinaryDirs, m as hasValidMacSignature, n as devBuildInfo, o as findRustBinary, p as getRustBinary, r as downloadBinary, s as findSpawnHiddenLauncher, t as chmodExtractedBinaries, u as getBinDir } from "./rustBinary-
|
|
1
|
+
import "./versionChecker-DrjMn-XI.js";
|
|
2
|
+
import { a as findAyrsBinary, c as findTrayLauncher, d as getBinaryName, f as getDownloadUrl, i as ensureExecutable, l as gcOldBinaryDirs, m as hasValidMacSignature, n as devBuildInfo, o as findRustBinary, p as getRustBinary, r as downloadBinary, s as findSpawnHiddenLauncher, t as chmodExtractedBinaries, u as getBinDir } from "./rustBinary-Btf18sk5.js";
|
|
3
3
|
|
|
4
4
|
export { findAyrsBinary, gcOldBinaryDirs };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-DrjMn-XI.js";
|
|
3
|
+
import "./ts-D29CMeWZ.js";
|
|
4
4
|
import "./todoAutomation-TTp_Qz9G.js";
|
|
5
5
|
import "./JsonlStore-BpYZZTap.js";
|
|
6
6
|
import "./globalPidIndex-CRB5KtyL.js";
|
|
7
7
|
import "./pidStore-433kvh9D.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.js";
|
|
9
9
|
import "./todoStore-C9RTz0Vs.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-FBshN0v2.js";
|
|
11
11
|
import { f as resolveSpawnCwd } from "./workspaceConfig-CWGh8o36.js";
|
|
12
12
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-oANVaOqi.js";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -154,4 +154,4 @@ async function cmdSchedule(rest) {
|
|
|
154
154
|
|
|
155
155
|
//#endregion
|
|
156
156
|
export { cmdSchedule };
|
|
157
|
-
//# sourceMappingURL=schedule-
|
|
157
|
+
//# sourceMappingURL=schedule-DzqTosvJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { s as findSpawnHiddenLauncher } from "./rustBinary-
|
|
4
|
-
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-
|
|
2
|
+
import { i as getInstalledPackage } from "./versionChecker-DrjMn-XI.js";
|
|
3
|
+
import { s as findSpawnHiddenLauncher } from "./rustBinary-Btf18sk5.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-D29CMeWZ.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-JmJC28YX.js";
|
|
6
6
|
import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
|
|
7
7
|
import "./JsonlStore-BpYZZTap.js";
|
|
@@ -12,19 +12,19 @@ import { t as pgidForWrapper } from "./reaper-C2cuougX.js";
|
|
|
12
12
|
import "./todoStore-C9RTz0Vs.js";
|
|
13
13
|
import "./e2e-BdLf8DvY.js";
|
|
14
14
|
import "./configShared-De4bR5hH.js";
|
|
15
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
16
|
-
import { $ as renderLogTailLines, C as extractBadges, E as extractTaskCounts, J as readLogForRender, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, T as extractNeedsInput, V as listRecords, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _t as shouldFramePaste, ct as snapshotStatus, et as renderRawLog, f as cliDefaults, gt as framePaste, h as controlCodeFromName, ht as withIpcLock, mt as writeToIpc, nt as resolveOne, tt as renderRawLogLines, vt as TYPING_BADGE, y as deriveLiveStatus } from "./subcommands-
|
|
15
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-FBshN0v2.js";
|
|
16
|
+
import { $ as renderLogTailLines, C as extractBadges, E as extractTaskCounts, J as readLogForRender, P as isSlashCommand, Q as recentReadEdges, R as isUserTyping, T as extractNeedsInput, V as listRecords, X as readPtysize, Y as readNotes, Z as recentMessageEdges, _t as shouldFramePaste, ct as snapshotStatus, et as renderRawLog, f as cliDefaults, gt as framePaste, h as controlCodeFromName, ht as withIpcLock, mt as writeToIpc, nt as resolveOne, tt as renderRawLogLines, vt as TYPING_BADGE, y as deriveLiveStatus } from "./subcommands-fX4Ygx3a.js";
|
|
17
17
|
import { c as isTransientLockMkdirError } from "./notifyStore-DI4iKFut.js";
|
|
18
|
-
import {
|
|
19
|
-
import "./remotes-
|
|
18
|
+
import { a as toWebrtcUrl, r as isWebrtcSpec } from "./webrtcLink-CKnjNGaV.js";
|
|
19
|
+
import "./remotes-D10E_xUn.js";
|
|
20
20
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-DXVwvq0X.js";
|
|
21
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
21
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-ayc9yXqJ.js";
|
|
22
22
|
import { n as sampleTrees } from "./procStats-xvUthnOx.js";
|
|
23
23
|
import { a as getProvisionRoot, d as isProvisionAllowed, f as resolveSpawnCwd, i as getProvisionHook, l as hasProvisionHook, o as getSpawnHook, t as allowsSkipPermissions, u as hasSpawnHook } from "./workspaceConfig-CWGh8o36.js";
|
|
24
24
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-oANVaOqi.js";
|
|
25
|
-
import { i as importProvisionModule } from "./ws-
|
|
25
|
+
import { i as importProvisionModule } from "./ws-Cbx5sfsd.js";
|
|
26
26
|
import { r as spawnRejectionReason } from "./spawnGate-SX13EqI3.js";
|
|
27
|
-
import { i as launchTray } from "./trayApp-
|
|
27
|
+
import { i as launchTray } from "./trayApp-DWVdr0Pr.js";
|
|
28
28
|
import yargs from "yargs";
|
|
29
29
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
30
30
|
import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
|
|
@@ -1343,8 +1343,8 @@ async function warnStrayServeProcesses() {
|
|
|
1343
1343
|
process.stderr.write(`warning: ${stray.length} unmanaged ay serve process(es) running (pid ${pids.join(", ")}) — they will fight the daemon for the WebRTC room; stop them: kill ${pids.join(" ")}\n`);
|
|
1344
1344
|
}
|
|
1345
1345
|
async function daemonShareRuntime(args) {
|
|
1346
|
-
const { daemonShareRuntime: decide } = await import("./serveRust-
|
|
1347
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
1346
|
+
const { daemonShareRuntime: decide } = await import("./serveRust-BEzTqFRy.js");
|
|
1347
|
+
const { findAyrsBinary } = await import("./rustBinary-DklBSefL.js");
|
|
1348
1348
|
return decide(args, () => !!findAyrsBinary());
|
|
1349
1349
|
}
|
|
1350
1350
|
function explicitWebrtcUrl(args) {
|
|
@@ -1642,7 +1642,7 @@ async function cmdServeStatus(args) {
|
|
|
1642
1642
|
const token = await loadTokenReadOnly();
|
|
1643
1643
|
const daemonArgs = mgr ? await readDaemonServeArgs(mgr) : null;
|
|
1644
1644
|
const installed = daemonArgs !== null;
|
|
1645
|
-
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-
|
|
1645
|
+
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-DinezAHY.js");
|
|
1646
1646
|
const shareLink = (installed ? await daemonShareLink(daemonArgs) : await foregroundAyrsShareLink()) ?? await readShareLink();
|
|
1647
1647
|
const running = installed ? await readDaemonRunning(mgr) : false;
|
|
1648
1648
|
const a = daemonArgs ?? [];
|
|
@@ -1752,10 +1752,6 @@ Modes (default: --http):
|
|
|
1752
1752
|
(.share-room under --no-rust); stable link across restarts,
|
|
1753
1753
|
delete the file to rotate.
|
|
1754
1754
|
--share [URL] Legacy alias for --http --webrtc
|
|
1755
|
-
--webrtc URL --join
|
|
1756
|
-
Host URL's room as one more member next to its other
|
|
1757
|
-
hosts (all members' agents show up for every viewer).
|
|
1758
|
-
Needs AY_JOIN_SECRET; AY_NAME names this member.
|
|
1759
1755
|
|
|
1760
1756
|
Runtime: like \`ay <cli>\`, the Rust daemon (ayrs serve) runs by default for
|
|
1761
1757
|
the flags it supports — --webrtc [webrtc://url], --port N, --sighost H.
|
|
@@ -1769,31 +1765,18 @@ Options:
|
|
|
1769
1765
|
-d, --daemon Install these flags as a background daemon (pm2/oxmgr)
|
|
1770
1766
|
(same as: ay serve install <flags>)
|
|
1771
1767
|
--local Explicitly use Portless (the default for HTTP mode)
|
|
1772
|
-
${portlessConsoleUrl()}\n --allow-spawn Deprecated no-op — the console can always spawn agents\n --tls-cert FILE TLS certificate PEM\n --tls-key FILE TLS private key PEM\n\nSubcommands:\n ay serve install install as background daemon (oxmgr; pm2 fallback on Windows without the winfix build)\n ay serve status show daemon/server status (add --json for scripts)\n ay serve uninstall remove daemon\n ay serve logs view daemon logs\n
|
|
1768
|
+
${portlessConsoleUrl()}\n --allow-spawn Deprecated no-op — the console can always spawn agents\n --tls-cert FILE TLS certificate PEM\n --tls-key FILE TLS private key PEM\n\nSubcommands:\n ay serve install install as background daemon (oxmgr; pm2 fallback on Windows without the winfix build)\n ay serve status show daemon/server status (add --json for scripts)\n ay serve uninstall remove daemon\n ay serve logs view daemon logs\n\nOnce running, connect from another machine:\n ay ls <token>@<host>:<port>\n ay remote add <alias> http://<token>@<host>:<port>\n`);
|
|
1773
1769
|
return 0;
|
|
1774
1770
|
}
|
|
1775
1771
|
{
|
|
1776
|
-
const { planRustServe } = await import("./serveRust-
|
|
1772
|
+
const { planRustServe } = await import("./serveRust-BEzTqFRy.js");
|
|
1777
1773
|
const plan = planRustServe(rest);
|
|
1778
|
-
if (plan.kind === "rust-only") {
|
|
1779
|
-
const { findAyrsBinary } = await import("./rustBinary-zu31ic2B.js");
|
|
1780
|
-
const ayrs = findAyrsBinary();
|
|
1781
|
-
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1782
|
-
process.stderr.write(`ay serve: ${plan.feature} needs the Rust daemon (ayrs), which was not found (bun run build:rs, or reinstall)\n`);
|
|
1783
|
-
return 1;
|
|
1784
|
-
}
|
|
1785
1774
|
if (plan.kind === "rust") {
|
|
1786
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
1775
|
+
const { findAyrsBinary } = await import("./rustBinary-DklBSefL.js");
|
|
1787
1776
|
const ayrs = findAyrsBinary();
|
|
1788
1777
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1789
1778
|
process.stderr.write("ay serve: ayrs binary not found — running the TypeScript server (bun run build:rs, or reinstall, to get the Rust daemon)\n");
|
|
1790
|
-
} else
|
|
1791
|
-
rest = plan.rest;
|
|
1792
|
-
if (rest[0] === "join-secret" || rest.includes("--join")) {
|
|
1793
|
-
process.stderr.write(`ay serve: ${plan.reason}: joining rooms needs the Rust daemon\n`);
|
|
1794
|
-
return 1;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1779
|
+
} else rest = plan.rest;
|
|
1797
1780
|
}
|
|
1798
1781
|
const sub = rest[0];
|
|
1799
1782
|
if (sub === "status") return cmdServeStatus(rest.slice(1));
|
|
@@ -2764,7 +2747,7 @@ Options:
|
|
|
2764
2747
|
}
|
|
2765
2748
|
});
|
|
2766
2749
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2767
|
-
const ws = await import("./ws-
|
|
2750
|
+
const ws = await import("./ws-DDB8jh0f.js");
|
|
2768
2751
|
try {
|
|
2769
2752
|
await ws.loadProvision();
|
|
2770
2753
|
} catch (e) {
|
|
@@ -2784,7 +2767,7 @@ Options:
|
|
|
2784
2767
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2785
2768
|
const dirRaw = url.searchParams.get("path");
|
|
2786
2769
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2787
|
-
const ws = await import("./ws-
|
|
2770
|
+
const ws = await import("./ws-DDB8jh0f.js");
|
|
2788
2771
|
let prov;
|
|
2789
2772
|
try {
|
|
2790
2773
|
prov = await ws.loadProvision();
|
|
@@ -2806,7 +2789,7 @@ Options:
|
|
|
2806
2789
|
}
|
|
2807
2790
|
}
|
|
2808
2791
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2809
|
-
const ws = await import("./ws-
|
|
2792
|
+
const ws = await import("./ws-DDB8jh0f.js");
|
|
2810
2793
|
try {
|
|
2811
2794
|
await ws.loadProvision();
|
|
2812
2795
|
} catch (e) {
|
|
@@ -2887,7 +2870,7 @@ Options:
|
|
|
2887
2870
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2888
2871
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2889
2872
|
const [, owner, repo] = m;
|
|
2890
|
-
const ws = await import("./ws-
|
|
2873
|
+
const ws = await import("./ws-DDB8jh0f.js");
|
|
2891
2874
|
let prov;
|
|
2892
2875
|
try {
|
|
2893
2876
|
prov = await ws.loadProvision();
|
|
@@ -3805,7 +3788,7 @@ Options:
|
|
|
3805
3788
|
const perm = body.perm ?? "r";
|
|
3806
3789
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3807
3790
|
try {
|
|
3808
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3791
|
+
const { createScopedShare } = await import("./agentShare-CNgCQMY9.js");
|
|
3809
3792
|
const share = await createScopedShare({
|
|
3810
3793
|
agent: body.agent,
|
|
3811
3794
|
perm,
|
|
@@ -3820,12 +3803,12 @@ Options:
|
|
|
3820
3803
|
}
|
|
3821
3804
|
}
|
|
3822
3805
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3823
|
-
const { listShares } = await import("./agentShare-
|
|
3806
|
+
const { listShares } = await import("./agentShare-CNgCQMY9.js");
|
|
3824
3807
|
return Response.json(listShares());
|
|
3825
3808
|
}
|
|
3826
3809
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3827
3810
|
if (req.method === "DELETE" && revokeM) {
|
|
3828
|
-
const { revokeShare } = await import("./agentShare-
|
|
3811
|
+
const { revokeShare } = await import("./agentShare-CNgCQMY9.js");
|
|
3829
3812
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3830
3813
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3831
3814
|
}
|
|
@@ -4137,7 +4120,7 @@ Options:
|
|
|
4137
4120
|
const shutdown = (resolve) => {
|
|
4138
4121
|
if (heartbeat) clearInterval(heartbeat);
|
|
4139
4122
|
closeShare?.();
|
|
4140
|
-
import("./agentShare-
|
|
4123
|
+
import("./agentShare-CNgCQMY9.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
4141
4124
|
server?.stop();
|
|
4142
4125
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
4143
4126
|
};
|
|
@@ -4150,4 +4133,4 @@ Options:
|
|
|
4150
4133
|
|
|
4151
4134
|
//#endregion
|
|
4152
4135
|
export { cmdServe, inspectServeDaemon, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
4153
|
-
//# sourceMappingURL=serve-
|
|
4136
|
+
//# sourceMappingURL=serve-DdHbUWtG.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import "./e2e-BdLf8DvY.js";
|
|
2
|
-
import { o as toWebrtcUrl } from "./webrtcLink-bWxiCBTV.js";
|
|
3
|
-
|
|
4
1
|
//#region ts/serveRust.ts
|
|
5
2
|
/**
|
|
6
3
|
* `ay serve` → `ayrs serve` delegation.
|
|
@@ -14,10 +11,7 @@ import { o as toWebrtcUrl } from "./webrtcLink-bWxiCBTV.js";
|
|
|
14
11
|
*
|
|
15
12
|
* What delegates today — exactly the flags `ayrs serve` accepts:
|
|
16
13
|
* --webrtc (bare: load/mint the persisted room)
|
|
17
|
-
* --webrtc <
|
|
18
|
-
* as webrtc://)
|
|
19
|
-
* --join (host that room as one of its members; ayrs only)
|
|
20
|
-
* join-secret (print the link + join secret members need; ayrs only)
|
|
14
|
+
* --webrtc <url> / --webrtc=<url> (a webrtc:// room url)
|
|
21
15
|
* --port <n> / --port=<n> (loopback HTTP console; 0 = free port)
|
|
22
16
|
* --sighost <host> / --sighost=<host>
|
|
23
17
|
*
|
|
@@ -29,7 +23,7 @@ import { o as toWebrtcUrl } from "./webrtcLink-bWxiCBTV.js";
|
|
|
29
23
|
* healthcheck) and -d/--daemon: ayrs has its own OS-supervisor install and
|
|
30
24
|
* the two must not manage each other's registration
|
|
31
25
|
* - --share (http+webrtc over Portless), --http, --host, --token, --tls-*,
|
|
32
|
-
* --local
|
|
26
|
+
* --local, https room links (ayrs pins rooms by webrtc:// url only)
|
|
33
27
|
*/
|
|
34
28
|
/** Subcommands `ay serve` dispatches before flag parsing — never delegated. */
|
|
35
29
|
const SERVE_SUBCOMMANDS = new Set([
|
|
@@ -64,23 +58,6 @@ function planRustServe(rest, env = process.env) {
|
|
|
64
58
|
rest
|
|
65
59
|
};
|
|
66
60
|
const first = rest[0];
|
|
67
|
-
if (first === "join-secret") {
|
|
68
|
-
const flags = rest.slice(1);
|
|
69
|
-
const plan = flags.length ? planRustServe(flags, env) : {
|
|
70
|
-
kind: "rust",
|
|
71
|
-
argv: ["serve"]
|
|
72
|
-
};
|
|
73
|
-
if (plan.kind !== "rust" || plan.argv.some((a) => a === "--port" || a === "--join")) return {
|
|
74
|
-
kind: "ts",
|
|
75
|
-
reason: `\`ay serve join-secret\` takes only --webrtc/--sighost`,
|
|
76
|
-
rest
|
|
77
|
-
};
|
|
78
|
-
return {
|
|
79
|
-
kind: "rust-only",
|
|
80
|
-
argv: [...plan.argv, "join-secret"],
|
|
81
|
-
feature: first
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
61
|
if (SERVE_SUBCOMMANDS.has(first)) return {
|
|
85
62
|
kind: "ts",
|
|
86
63
|
reason: `\`ay serve ${first}\``,
|
|
@@ -103,24 +80,15 @@ function planRustServe(rest, env = process.env) {
|
|
|
103
80
|
switch (name) {
|
|
104
81
|
case "--webrtc": {
|
|
105
82
|
const v = takeNext();
|
|
106
|
-
const url = v === void 0 ? void 0 : toWebrtcUrl(v, { join: true });
|
|
107
83
|
if (v === void 0) argv.push("--webrtc");
|
|
108
|
-
else if (
|
|
84
|
+
else if (v.startsWith("webrtc://")) argv.push("--webrtc", v);
|
|
109
85
|
else return {
|
|
110
86
|
kind: "ts",
|
|
111
|
-
reason: `--webrtc ${v} (
|
|
87
|
+
reason: `--webrtc ${v} (ayrs takes webrtc:// urls only)`,
|
|
112
88
|
rest
|
|
113
89
|
};
|
|
114
90
|
break;
|
|
115
91
|
}
|
|
116
|
-
case "--join":
|
|
117
|
-
if (inline !== void 0) return {
|
|
118
|
-
kind: "ts",
|
|
119
|
-
reason: a,
|
|
120
|
-
rest
|
|
121
|
-
};
|
|
122
|
-
argv.push("--join");
|
|
123
|
-
break;
|
|
124
92
|
case "--port": {
|
|
125
93
|
const v = takeNext();
|
|
126
94
|
if (v === void 0 || !/^\d+$/.test(v)) return {
|
|
@@ -148,18 +116,6 @@ function planRustServe(rest, env = process.env) {
|
|
|
148
116
|
};
|
|
149
117
|
}
|
|
150
118
|
}
|
|
151
|
-
if (argv.includes("--join")) {
|
|
152
|
-
if (!argv.some((x) => x.startsWith("webrtc://"))) return {
|
|
153
|
-
kind: "ts",
|
|
154
|
-
reason: "--join needs --webrtc <room link>",
|
|
155
|
-
rest
|
|
156
|
-
};
|
|
157
|
-
return {
|
|
158
|
-
kind: "rust-only",
|
|
159
|
-
argv,
|
|
160
|
-
feature: "--join"
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
119
|
return {
|
|
164
120
|
kind: "rust",
|
|
165
121
|
argv
|
|
@@ -177,9 +133,9 @@ function planRustServe(rest, env = process.env) {
|
|
|
177
133
|
* stays a pure function for tests.
|
|
178
134
|
*/
|
|
179
135
|
function daemonShareRuntime(args, hasAyrs, env = process.env) {
|
|
180
|
-
return planRustServe(args, env).kind
|
|
136
|
+
return planRustServe(args, env).kind === "rust" && hasAyrs() ? "rust" : "ts";
|
|
181
137
|
}
|
|
182
138
|
|
|
183
139
|
//#endregion
|
|
184
140
|
export { daemonShareRuntime, planRustServe };
|
|
185
|
-
//# sourceMappingURL=serveRust-
|
|
141
|
+
//# sourceMappingURL=serveRust-BEzTqFRy.js.map
|
|
@@ -97,7 +97,7 @@ async function cmdSetup(rest) {
|
|
|
97
97
|
} catch {}
|
|
98
98
|
if (noShare) return 0;
|
|
99
99
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
100
|
-
const { cmdServe } = await import("./serve-
|
|
100
|
+
const { cmdServe } = await import("./serve-DdHbUWtG.js");
|
|
101
101
|
return cmdServe([
|
|
102
102
|
"install",
|
|
103
103
|
"--share",
|
|
@@ -107,4 +107,4 @@ async function cmdSetup(rest) {
|
|
|
107
107
|
|
|
108
108
|
//#endregion
|
|
109
109
|
export { cmdSetup };
|
|
110
|
-
//# sourceMappingURL=setup-
|
|
110
|
+
//# sourceMappingURL=setup-CzKkVYp8.js.map
|
|
@@ -243,8 +243,8 @@ 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) {
|
|
@@ -259,8 +259,8 @@ async function daemonShareLink(args) {
|
|
|
259
259
|
}
|
|
260
260
|
async function foregroundAyrsShareLink() {
|
|
261
261
|
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-530eCWft.js");
|
|
262
|
-
const { parseWebrtcLink } = await import("./webrtcLink-
|
|
263
|
-
const { isPidAlive } = await import("./subcommands-
|
|
262
|
+
const { parseWebrtcLink } = await import("./webrtcLink-CAdvnRM0.js");
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-oIARj_mJ.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-DdHbUWtG.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-DdHbUWtG.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-DinezAHY.js.map
|