agent-yes 1.304.0 → 1.304.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/default.config.yaml +6 -0
- package/dist/{SUPPORTED_CLIS-C_1IiOj3.js → SUPPORTED_CLIS-D1BObsKi.js} +2 -2
- package/dist/{SUPPORTED_CLIS-Do3GHAY1.js → SUPPORTED_CLIS-R2KdLsVb.js} +3 -3
- package/dist/{agentShare-BvpEm-Fr.js → agentShare-pQedI_ay.js} +2 -2
- package/dist/{callback-BiSUhjw7.js → callback-Bd_uX6c9.js} +3 -3
- package/dist/{callback-SqLD2mMX.js → callback-WJ1STnzc.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-DBt23Qz0.js → cmdPs-Bzld9JDB.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-DkUB7GV2.js → notifyDaemon-D_fT6Xht.js} +2 -2
- package/dist/{parentPingLoop-DDO592Wh.js → parentPingLoop-CVqnIzti.js} +2 -2
- package/dist/{rustBinary-BrJ2p8wy.js → rustBinary-AJOmpsZY.js} +2 -2
- package/dist/{rustBinary-vpfpWj1q.js → rustBinary-BEUXAC5F.js} +2 -2
- package/dist/{schedule-Bzjhl6-h.js → schedule-CeSvliXR.js} +4 -4
- package/dist/{serve-XwFYE0cE.js → serve-Dn24AExp.js} +21 -21
- package/dist/{setup-D4-s2VZw.js → setup-onxpwXOt.js} +2 -2
- package/dist/{shareCmd-DUBsVI3e.js → shareCmd-Bfxkzdm6.js} +5 -5
- package/dist/{subcommands-B7YZJL8n.js → subcommands--RGuFC68.js} +123 -29
- package/dist/{subcommands-BZPxFgkT.js → subcommands-B-VG0io0.js} +1 -1
- package/dist/{terminal-13cGj3h6.js → terminal-Jsj7SgxD.js} +2 -2
- package/dist/trayApp-Bngl2X4e.js +5 -0
- package/dist/{trayApp-5_OlvQcz.js → trayApp-lEZ-Wa4D.js} +2 -2
- package/dist/{ts-njuddXQz.js → ts-DLPvUXQS.js} +3 -3
- package/dist/{versionChecker-BJycAanp.js → versionChecker-Dtj0d8dY.js} +2 -2
- package/dist/{widget-DmRwOlco.js → widget-CyoP4Stv.js} +3 -3
- package/dist/{ws-ByO6JO6m.js → ws-CDZj5r8l.js} +2 -2
- package/dist/{ws-D0-Jg88z.js → ws-DtFNNKlC.js} +2 -2
- package/package.json +1 -1
- package/ts/composerGuard.edges.spec.ts +2 -0
- package/ts/composerGuard.spec.ts +51 -0
- package/ts/composerGuard.ts +44 -3
- package/ts/configShared.spec.ts +9 -0
- package/ts/subcommands.spec.ts +100 -0
- package/ts/subcommands.ts +108 -9
- package/dist/trayApp-DkAPo0m6.js +0 -5
package/default.config.yaml
CHANGED
|
@@ -365,6 +365,12 @@ clis:
|
|
|
365
365
|
needsInput:
|
|
366
366
|
- pattern: '^ {0,4}> ?\d+\.'
|
|
367
367
|
flags: m
|
|
368
|
+
typingRespond:
|
|
369
|
+
# Feedback survey agy shows after a turn ("How's the CLI experience so
|
|
370
|
+
# far? ... [1] Good [2] Fine [3] Bad [0] Skip"). A digit key answers it;
|
|
371
|
+
# until then it holds the keyboard, so press 0 to skip.
|
|
372
|
+
"0":
|
|
373
|
+
- '\[1\] Good +\[2\] Fine +\[3\] Bad +\[0\] Skip'
|
|
368
374
|
enter:
|
|
369
375
|
# First-launch trust dialog; cursor starts on "Yes, I trust this folder".
|
|
370
376
|
- pattern: "^ {0,4}> ?Yes, I trust this folder"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DLPvUXQS.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-D1BObsKi.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-Dtj0d8dY.js";
|
|
3
|
+
import "./ts-DLPvUXQS.js";
|
|
4
4
|
import "./todoAutomation-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-BsjlId-h.js";
|
|
7
7
|
import "./pidStore-C50VPk3E.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.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-D1BObsKi.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -5,7 +5,7 @@ import "./pidStore-C50VPk3E.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.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--RGuFC68.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.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-pQedI_ay.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--RGuFC68.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-Dn24AExp.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-Bd_uX6c9.js.map
|
|
@@ -5,13 +5,13 @@ import "./pidStore-C50VPk3E.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--RGuFC68.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
12
12
|
import "./notifyStore-DIfkfKB2.js";
|
|
13
13
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
14
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-Bd_uX6c9.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 { m as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-Dtj0d8dY.js";
|
|
5
|
+
import { m as getRustBinary } from "./rustBinary-AJOmpsZY.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-B-VG0io0.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-R2KdLsVb.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);
|
|
@@ -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-R2KdLsVb.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,7 +5,7 @@ import "./pidStore-C50VPk3E.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.js";
|
|
6
6
|
import "./e2e-BdLf8DvY.js";
|
|
7
7
|
import "./configShared-De4bR5hH.js";
|
|
8
|
-
import { Dt as flattenForest, Et as buildAgentForest, G as listRecords, y as deriveLiveState } from "./subcommands
|
|
8
|
+
import { Dt as flattenForest, Et as buildAgentForest, G as listRecords, y as deriveLiveState } from "./subcommands--RGuFC68.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
@@ -332,4 +332,4 @@ function readPpidSync(pid) {
|
|
|
332
332
|
|
|
333
333
|
//#endregion
|
|
334
334
|
export { cmdPs };
|
|
335
|
-
//# sourceMappingURL=cmdPs-
|
|
335
|
+
//# sourceMappingURL=cmdPs-Bzld9JDB.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-Dtj0d8dY.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-DLPvUXQS.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-BsjlId-h.js";
|
|
@@ -5,7 +5,7 @@ import "./pidStore-C50VPk3E.js";
|
|
|
5
5
|
import "./messageLog-Dq_ka-Bt.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--RGuFC68.js";
|
|
9
9
|
import "./webrtcLink-DcvacEci.js";
|
|
10
10
|
import "./remotes-BsMGvAay.js";
|
|
11
11
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
@@ -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-D_fT6Xht.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-B-VG0io0.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-CVqnIzti.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-Dtj0d8dY.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";
|
|
@@ -435,4 +435,4 @@ async function getRustBinary(options = {}) {
|
|
|
435
435
|
|
|
436
436
|
//#endregion
|
|
437
437
|
export { ensureExecutable as a, findSpawnHiddenLauncher as c, getBinDir as d, getBinaryName as f, hasValidMacSignature as h, ensureAyrsBinary as i, findTrayLauncher as l, getRustBinary as m, devBuildInfo as n, findAyrsBinary as o, getDownloadUrl as p, downloadBinary as r, findRustBinary as s, chmodExtractedBinaries as t, gcOldBinaryDirs as u };
|
|
438
|
-
//# sourceMappingURL=rustBinary-
|
|
438
|
+
//# sourceMappingURL=rustBinary-AJOmpsZY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./versionChecker-
|
|
2
|
-
import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-
|
|
1
|
+
import "./versionChecker-Dtj0d8dY.js";
|
|
2
|
+
import { a as ensureExecutable, c as findSpawnHiddenLauncher, d as getBinDir, f as getBinaryName, h as hasValidMacSignature, i as ensureAyrsBinary, l as findTrayLauncher, m as getRustBinary, n as devBuildInfo, o as findAyrsBinary, p as getDownloadUrl, r as downloadBinary, s as findRustBinary, t as chmodExtractedBinaries, u as gcOldBinaryDirs } from "./rustBinary-AJOmpsZY.js";
|
|
3
3
|
|
|
4
4
|
export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-Dtj0d8dY.js";
|
|
3
|
+
import "./ts-DLPvUXQS.js";
|
|
4
4
|
import "./todoAutomation-CKlrxuZv.js";
|
|
5
5
|
import "./JsonlStore-CB_0sfdT.js";
|
|
6
6
|
import "./globalPidIndex-BsjlId-h.js";
|
|
7
7
|
import "./pidStore-C50VPk3E.js";
|
|
8
8
|
import "./messageLog-Dq_ka-Bt.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-D1BObsKi.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
13
|
import { f as resolveSpawnCwd } from "./workspaceConfig-DBgsu81B.js";
|
|
@@ -125,4 +125,4 @@ async function cmdSchedule(rest) {
|
|
|
125
125
|
|
|
126
126
|
//#endregion
|
|
127
127
|
export { cmdSchedule };
|
|
128
|
-
//# sourceMappingURL=schedule-
|
|
128
|
+
//# sourceMappingURL=schedule-CeSvliXR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { i as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { c 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-Dtj0d8dY.js";
|
|
3
|
+
import { c as findSpawnHiddenLauncher } from "./rustBinary-AJOmpsZY.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-DLPvUXQS.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-JmJC28YX.js";
|
|
6
6
|
import { u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
|
|
7
7
|
import "./JsonlStore-CB_0sfdT.js";
|
|
@@ -11,21 +11,21 @@ import { r as recordInbox, s as isTerminalReply } from "./messageLog-Dq_ka-Bt.js
|
|
|
11
11
|
import "./todoStore-msRCEUi1.js";
|
|
12
12
|
import "./e2e-BdLf8DvY.js";
|
|
13
13
|
import "./configShared-De4bR5hH.js";
|
|
14
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
-
import { $ as readNotes, Ct as framePaste, D as extractNeedsInput, G as listRecords, H as isUserTyping, L as isSlashCommand, O as extractTaskCounts, Q as readLogForRender, St as withIpcLock, T as extractBadges, Tt as TYPING_BADGE, at as renderRawLogLines, b as deriveLiveStatus, et as readPtysize, g as controlCodeFromName, it as renderRawLog, nt as recentReadEdges, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, rt as renderLogTailLines, tt as recentMessageEdges, wt as shouldFramePaste, xt as writeToIpc } from "./subcommands
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-D1BObsKi.js";
|
|
15
|
+
import { $ as readNotes, Ct as framePaste, D as extractNeedsInput, G as listRecords, H as isUserTyping, L as isSlashCommand, O as extractTaskCounts, Q as readLogForRender, St as withIpcLock, T as extractBadges, Tt as TYPING_BADGE, at as renderRawLogLines, b as deriveLiveStatus, et as readPtysize, g as controlCodeFromName, it as renderRawLog, nt as recentReadEdges, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, rt as renderLogTailLines, tt as recentMessageEdges, wt as shouldFramePaste, xt as writeToIpc } from "./subcommands--RGuFC68.js";
|
|
16
16
|
import { i as isWebrtcSpec, o as toWebrtcUrl } from "./webrtcLink-DcvacEci.js";
|
|
17
17
|
import "./remotes-BsMGvAay.js";
|
|
18
18
|
import "./roomReplyAlias-B-v76TA8.js";
|
|
19
19
|
import { c as isTransientLockMkdirError } from "./notifyStore-DIfkfKB2.js";
|
|
20
20
|
import "./senderAncestry-CVHeKk1Y.js";
|
|
21
21
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Deve5pv3.js";
|
|
22
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
22
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-Bd_uX6c9.js";
|
|
23
23
|
import { n as sampleTrees } from "./procStats-DwTxj3rs.js";
|
|
24
24
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
|
|
25
25
|
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-DBgsu81B.js";
|
|
26
|
-
import { i as importProvisionModule } from "./ws-
|
|
26
|
+
import { i as importProvisionModule } from "./ws-CDZj5r8l.js";
|
|
27
27
|
import { r as spawnRejectionReason } from "./spawnGate-Dj_WaS29.js";
|
|
28
|
-
import { i as launchTray } from "./trayApp-
|
|
28
|
+
import { i as launchTray } from "./trayApp-lEZ-Wa4D.js";
|
|
29
29
|
import { existsSync, realpathSync, renameSync, watch, writeFileSync } from "node:fs";
|
|
30
30
|
import yargs from "yargs";
|
|
31
31
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
@@ -1347,7 +1347,7 @@ async function warnStrayServeProcesses() {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
async function daemonShareRuntime(args) {
|
|
1349
1349
|
const { daemonShareRuntime: decide } = await import("./serveRust-BfWkeL6T.js");
|
|
1350
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
1350
|
+
const { findAyrsBinary } = await import("./rustBinary-BEUXAC5F.js");
|
|
1351
1351
|
return decide(args, () => !!findAyrsBinary());
|
|
1352
1352
|
}
|
|
1353
1353
|
function explicitWebrtcUrl(args) {
|
|
@@ -1645,7 +1645,7 @@ async function cmdServeStatus(args) {
|
|
|
1645
1645
|
const token = await loadTokenReadOnly();
|
|
1646
1646
|
const daemonArgs = mgr ? await readDaemonServeArgs(mgr) : null;
|
|
1647
1647
|
const installed = daemonArgs !== null;
|
|
1648
|
-
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-
|
|
1648
|
+
const { daemonShareLink, foregroundAyrsShareLink } = await import("./shareCmd-Bfxkzdm6.js");
|
|
1649
1649
|
const shareLink = (installed ? await daemonShareLink(daemonArgs) : await foregroundAyrsShareLink()) ?? await readShareLink();
|
|
1650
1650
|
const running = installed ? await readDaemonRunning(mgr) : false;
|
|
1651
1651
|
const a = daemonArgs ?? [];
|
|
@@ -1779,14 +1779,14 @@ Options:
|
|
|
1779
1779
|
const { planRustServe, SERVE_SUBCOMMANDS } = await import("./serveRust-BfWkeL6T.js");
|
|
1780
1780
|
const plan = planRustServe(rest);
|
|
1781
1781
|
if (plan.kind === "rust-only") {
|
|
1782
|
-
const { ensureAyrsBinary } = await import("./rustBinary-
|
|
1782
|
+
const { ensureAyrsBinary } = await import("./rustBinary-BEUXAC5F.js");
|
|
1783
1783
|
const ayrs = await ensureAyrsBinary();
|
|
1784
1784
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1785
1785
|
process.stderr.write(`ay serve: ${plan.feature} needs the Rust daemon (ayrs), which was not found (bun run build:rs, or reinstall)\n`);
|
|
1786
1786
|
return 1;
|
|
1787
1787
|
}
|
|
1788
1788
|
if (plan.kind === "rust") {
|
|
1789
|
-
const { ensureAyrsBinary } = await import("./rustBinary-
|
|
1789
|
+
const { ensureAyrsBinary } = await import("./rustBinary-BEUXAC5F.js");
|
|
1790
1790
|
const ayrs = await ensureAyrsBinary();
|
|
1791
1791
|
if (ayrs) return runAyrsServe(ayrs, plan.argv);
|
|
1792
1792
|
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");
|
|
@@ -2776,7 +2776,7 @@ Options:
|
|
|
2776
2776
|
}
|
|
2777
2777
|
});
|
|
2778
2778
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2779
|
-
const ws = await import("./ws-
|
|
2779
|
+
const ws = await import("./ws-DtFNNKlC.js");
|
|
2780
2780
|
try {
|
|
2781
2781
|
await ws.loadProvision();
|
|
2782
2782
|
} catch (e) {
|
|
@@ -2796,7 +2796,7 @@ Options:
|
|
|
2796
2796
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2797
2797
|
const dirRaw = url.searchParams.get("path");
|
|
2798
2798
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2799
|
-
const ws = await import("./ws-
|
|
2799
|
+
const ws = await import("./ws-DtFNNKlC.js");
|
|
2800
2800
|
let prov;
|
|
2801
2801
|
try {
|
|
2802
2802
|
prov = await ws.loadProvision();
|
|
@@ -2818,7 +2818,7 @@ Options:
|
|
|
2818
2818
|
}
|
|
2819
2819
|
}
|
|
2820
2820
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2821
|
-
const ws = await import("./ws-
|
|
2821
|
+
const ws = await import("./ws-DtFNNKlC.js");
|
|
2822
2822
|
try {
|
|
2823
2823
|
await ws.loadProvision();
|
|
2824
2824
|
} catch (e) {
|
|
@@ -2899,7 +2899,7 @@ Options:
|
|
|
2899
2899
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2900
2900
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2901
2901
|
const [, owner, repo] = m;
|
|
2902
|
-
const ws = await import("./ws-
|
|
2902
|
+
const ws = await import("./ws-DtFNNKlC.js");
|
|
2903
2903
|
let prov;
|
|
2904
2904
|
try {
|
|
2905
2905
|
prov = await ws.loadProvision();
|
|
@@ -3810,7 +3810,7 @@ Options:
|
|
|
3810
3810
|
const perm = body.perm ?? "r";
|
|
3811
3811
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3812
3812
|
try {
|
|
3813
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3813
|
+
const { createScopedShare } = await import("./agentShare-pQedI_ay.js");
|
|
3814
3814
|
const share = await createScopedShare({
|
|
3815
3815
|
agent: body.agent,
|
|
3816
3816
|
perm,
|
|
@@ -3825,12 +3825,12 @@ Options:
|
|
|
3825
3825
|
}
|
|
3826
3826
|
}
|
|
3827
3827
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3828
|
-
const { listShares } = await import("./agentShare-
|
|
3828
|
+
const { listShares } = await import("./agentShare-pQedI_ay.js");
|
|
3829
3829
|
return Response.json(listShares());
|
|
3830
3830
|
}
|
|
3831
3831
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3832
3832
|
if (req.method === "DELETE" && revokeM) {
|
|
3833
|
-
const { revokeShare } = await import("./agentShare-
|
|
3833
|
+
const { revokeShare } = await import("./agentShare-pQedI_ay.js");
|
|
3834
3834
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3835
3835
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3836
3836
|
}
|
|
@@ -4142,7 +4142,7 @@ Options:
|
|
|
4142
4142
|
const shutdown = (resolve) => {
|
|
4143
4143
|
if (heartbeat) clearInterval(heartbeat);
|
|
4144
4144
|
closeShare?.();
|
|
4145
|
-
import("./agentShare-
|
|
4145
|
+
import("./agentShare-pQedI_ay.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
4146
4146
|
server?.stop();
|
|
4147
4147
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
4148
4148
|
};
|
|
@@ -4155,4 +4155,4 @@ Options:
|
|
|
4155
4155
|
|
|
4156
4156
|
//#endregion
|
|
4157
4157
|
export { cmdServe, inspectServeDaemon, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
4158
|
-
//# sourceMappingURL=serve-
|
|
4158
|
+
//# sourceMappingURL=serve-Dn24AExp.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-Dn24AExp.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-onxpwXOt.js.map
|
|
@@ -244,7 +244,7 @@ Options:
|
|
|
244
244
|
--port N HTTP port (default: ${DEFAULT_SHARE_PORT}, or the daemon's)\n --path /ay tailscale mount path (default: ${DEFAULT_TS_PATH})\n -y, --yes approve the shown commands without prompting\n --json print {mode, url} as JSON\n\nThe URL carries this host's serve token: whoever holds it can read and steer\nevery agent here. Rotate: rm ~/.agent-yes/.serve-token && ay serve install\n`;
|
|
245
245
|
async function shareRuntimeOf(args) {
|
|
246
246
|
const { daemonShareRuntime } = await import("./serveRust-BfWkeL6T.js");
|
|
247
|
-
const { findAyrsBinary } = await import("./rustBinary-
|
|
247
|
+
const { findAyrsBinary } = await import("./rustBinary-BEUXAC5F.js");
|
|
248
248
|
return daemonShareRuntime(args ?? [], () => !!findAyrsBinary());
|
|
249
249
|
}
|
|
250
250
|
async function daemonShareLink(args) {
|
|
@@ -260,7 +260,7 @@ async function daemonShareLink(args) {
|
|
|
260
260
|
async function foregroundAyrsShareLink() {
|
|
261
261
|
const { readShareRoom, shareLinkFromRoomUrl } = await import("./share-_TPYAGWC.js");
|
|
262
262
|
const { parseWebrtcLink } = await import("./webrtcLink-WxS1nTIs.js");
|
|
263
|
-
const { isPidAlive } = await import("./subcommands-
|
|
263
|
+
const { isPidAlive } = await import("./subcommands-B-VG0io0.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-Dn24AExp.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-Dn24AExp.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-Bfxkzdm6.js.map
|