agent-yes 1.265.4 → 1.266.0-beta.641.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/dist/{SUPPORTED_CLIS-C3tcRetU.js → SUPPORTED_CLIS-BVHb-f_i.js} +2 -2
- package/dist/{SUPPORTED_CLIS-CY3SaV0D.js → SUPPORTED_CLIS-C0NuO6EG.js} +3 -3
- package/dist/{agentShare-g6N1A6A_.js → agentShare-BEqvs9JX.js} +6 -5
- package/dist/{callback-z-w0ND5z.js → callback-BBHauiM_.js} +5 -5
- package/dist/{callback-L4k-v2GG.js → callback-BZu1lOCN.js} +6 -5
- package/dist/{callbackCore-Cv4EOGjE.js → callbackCore-DcptaZwH.js} +1 -1
- package/dist/{callbackCore-Cg3Ye0ZS.js → callbackCore-K99x3C75.js} +1 -1
- package/dist/{channels-BwpN_8mu.js → channels-DQaZbare.js} +2 -2
- package/dist/cli.js +11 -11
- package/dist/cmdPs-Bm5b19tT.js +577 -0
- package/dist/{cwdConflictWarn-DZTxTGXq.js → cwdConflictWarn-BpweoAiy.js} +1 -1
- package/dist/{cwdPassthroughHint-DDVkhBiD.js → cwdPassthroughHint-BlRuOGo_.js} +1 -1
- package/dist/{expose-BG17GV7D.js → expose-DyiZ5AU0.js} +1 -1
- package/dist/{forkNested-VroZS-nk.js → forkNested-B_4c-TQk.js} +12 -2
- package/dist/{hist-CoXBBjJt.js → hist-BoZPJ2ah.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/initMsg-BKqWDYFk.js +85 -0
- package/dist/initMsg-D8cmdY76.js +3 -0
- package/dist/needsInput-103zhZ90.js +79 -0
- package/dist/{nodeRuntime-CT0w6zsB.js → nodeRuntime-QihGFQbI.js} +1 -1
- package/dist/{notifyDaemon-BL1tmxUK.js → notifyDaemon-MJgVKWGk.js} +32 -5
- package/dist/notifyStore-CEDiVyis.js +4 -0
- package/dist/notifyStore-Cbw2ZJ0X.js +559 -0
- package/dist/{openBrowser-Cw8hg7ok.js → openBrowser-Cs46NiH6.js} +1 -1
- package/dist/parentLink-CQrn998L.js +5 -0
- package/dist/parentLink-CTgZZCgw.js +53 -0
- package/dist/parentPingLoop-Ry4Ll6rU.js +469 -0
- package/dist/{remotes-iIvqiFWK.js → remotes-DdAfueOu.js} +3 -3
- package/dist/{remotes-DWVw-Q7V.js → remotes-M8FbM92D.js} +2 -2
- package/dist/{rustBinary-DSVRhDzO.js → rustBinary-H7EHs-ID.js} +2 -2
- package/dist/{schedule-i4o5SJ_h.js → schedule-CABtz3U4.js} +6 -6
- package/dist/{serve-CpGJD2Kt.js → serve-Cwqj-O0Y.js} +31 -30
- package/dist/{setup-B-iQKsQW.js → setup-bhU7Ihrw.js} +4 -4
- package/dist/{share-DOnynkf4.js → share-Db_zb6gH.js} +1 -1
- package/dist/{share-B-e_9WBx.js → share-NUhi-Wdd.js} +1 -1
- package/dist/{spawnGate-S6EoFdzX.js → spawnGate-CZlMs6uV.js} +1 -1
- package/dist/{spawnGate-BmsTv340.js → spawnGate-DN4wNXHq.js} +2 -2
- package/dist/subcommands-BEjcbQCr.js +11 -0
- package/dist/{subcommands-CQPnT5qu.js → subcommands-DJbmUDtJ.js} +45 -660
- package/dist/{systemPathLink-CjLmiPbB.js → systemPathLink-BHv1I6wh.js} +1 -1
- package/dist/{terminal-CybRgMZu.js → terminal-CTYmp-Pi.js} +2 -2
- package/dist/{todoCli-DZmOmcvd.js → todoCli-BYGZ7_C5.js} +1 -1
- package/dist/{tray-Cjm3a8JH.js → tray-CzGs9-ch.js} +1 -1
- package/dist/{trayApp-UglHbk_m.js → trayApp-CmKtAuRK.js} +2 -2
- package/dist/trayApp-hyW5y5dv.js +5 -0
- package/dist/{ts-nuUnrVcf.js → ts-DEB8ykwq.js} +43 -10
- package/dist/{versionChecker-CMOLbEEi.js → versionChecker-BRGfwUiq.js} +2 -2
- package/dist/{webrtcLink-CS4D-3G1.js → webrtcLink-DyCj380i.js} +1 -1
- package/dist/{webrtcRemote-zQybN9IR.js → webrtcRemote-Bl8eowma.js} +2 -2
- package/dist/{widget-y5Bpvwsa.js → widget-D-X-1pgM.js} +3 -3
- package/dist/{workspaceConfig-BDqp7fYl.js → workspaceConfig-CBKlgA_q.js} +1 -1
- package/dist/{ws-BrLV-AlH.js → ws-CLlhqVPn.js} +9 -11
- package/dist/{ws-CH8GzcQn.js → ws-ChNyvsFB.js} +5 -4
- package/lab/ui/sw.js +10 -1
- package/package.json +1 -1
- package/ts/cmdPs.spec.ts +389 -0
- package/ts/cmdPs.ts +343 -0
- package/ts/forkNested.spec.ts +22 -0
- package/ts/forkNested.ts +19 -0
- package/ts/index.ts +77 -12
- package/ts/initMsg.spec.ts +114 -0
- package/ts/initMsg.ts +107 -0
- package/ts/ownerHeartbeat.ts +40 -1
- package/ts/parentLink.spec.ts +64 -0
- package/ts/parentLink.ts +58 -0
- package/ts/parentPing.spec.ts +176 -0
- package/ts/parentPing.ts +195 -0
- package/ts/parentPingLoop.delivery.spec.ts +236 -0
- package/ts/parentPingLoop.spec.ts +79 -0
- package/ts/parentPingLoop.ts +196 -0
- package/ts/parentPingSend.spec.ts +195 -0
- package/ts/parentPingSend.ts +148 -0
- package/ts/parentWatching.spec.ts +61 -0
- package/ts/parentWatching.ts +89 -0
- package/ts/procStats.spec.ts +506 -0
- package/ts/procStats.ts +484 -0
- package/ts/subcommands.ts +20 -6
- package/ts/trayApp.spec.ts +31 -4
- package/ts/ws.ts +17 -12
- package/dist/subcommands-Cgt2-kjg.js +0 -10
- package/dist/trayApp-CmwwBg8v.js +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-DEB8ykwq.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-BVHb-f_i.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-BRGfwUiq.js";
|
|
3
|
+
import "./ts-DEB8ykwq.js";
|
|
4
4
|
import "./todoAutomation-BQRW614S.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
7
7
|
import "./pidStore-DJqSZPJi.js";
|
|
8
8
|
import "./messageLog-BYFwioFY.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BVHb-f_i.js";
|
|
10
10
|
|
|
11
11
|
export { SUPPORTED_CLIS };
|
|
@@ -3,10 +3,11 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
6
|
+
import { B as resolveOne } from "./subcommands-DJbmUDtJ.js";
|
|
7
|
+
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
|
+
import "./webrtcLink-DyCj380i.js";
|
|
9
|
+
import "./remotes-DdAfueOu.js";
|
|
10
|
+
import { a as startShare } from "./share-NUhi-Wdd.js";
|
|
10
11
|
|
|
11
12
|
//#region ts/agentShare.ts
|
|
12
13
|
const MAX_SHARES = 8;
|
|
@@ -229,4 +230,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
229
230
|
|
|
230
231
|
//#endregion
|
|
231
232
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
232
|
-
//# sourceMappingURL=agentShare-
|
|
233
|
+
//# sourceMappingURL=agentShare-BEqvs9JX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as mintCapability, o as parseExpires } from "./callbackCore-
|
|
2
|
+
import { B as resolveOne } from "./subcommands-DJbmUDtJ.js";
|
|
3
|
+
import { a as mintCapability, o as parseExpires } from "./callbackCore-K99x3C75.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
6
6
|
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-Cwqj-O0Y.js");
|
|
76
76
|
const url = await resolveLocalServeUrl();
|
|
77
77
|
if (url) return url;
|
|
78
78
|
} catch {}
|
|
@@ -170,7 +170,7 @@ async function cmdCallback(rest) {
|
|
|
170
170
|
createdAt: Date.now()
|
|
171
171
|
};
|
|
172
172
|
saveStore(all);
|
|
173
|
-
const { buildSnippet } = await import("./callbackCore-
|
|
173
|
+
const { buildSnippet } = await import("./callbackCore-DcptaZwH.js");
|
|
174
174
|
w(`callback ${id} → ${record.cli} #${record.pid} @ ${record.cwd}`);
|
|
175
175
|
w(`expires: ${new Date(exp).toISOString()} (${expiresSpec})`);
|
|
176
176
|
w(`endpoint: ${base.replace(/\/+$/, "")}/cb/${cap}`);
|
|
@@ -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-BBHauiM_.js.map
|
|
@@ -3,10 +3,11 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-CUMZC53I.js";
|
|
5
5
|
import "./configShared-DtHMBCl7.js";
|
|
6
|
-
import "./subcommands-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import
|
|
6
|
+
import "./subcommands-DJbmUDtJ.js";
|
|
7
|
+
import "./notifyStore-Cbw2ZJ0X.js";
|
|
8
|
+
import "./webrtcLink-DyCj380i.js";
|
|
9
|
+
import "./remotes-DdAfueOu.js";
|
|
10
|
+
import "./callbackCore-K99x3C75.js";
|
|
11
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-BBHauiM_.js";
|
|
11
12
|
|
|
12
13
|
export { cmdCallback };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as mintCapability, i as frameVisitorMessage, n as MAX_EXPIRES_MS, o as parseExpires, r as buildSnippet, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-
|
|
1
|
+
import { a as mintCapability, i as frameVisitorMessage, n as MAX_EXPIRES_MS, o as parseExpires, r as buildSnippet, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-K99x3C75.js";
|
|
2
2
|
|
|
3
3
|
export { buildSnippet };
|
|
@@ -140,4 +140,4 @@ function buildSnippet(opts) {
|
|
|
140
140
|
|
|
141
141
|
//#endregion
|
|
142
142
|
export { mintCapability as a, frameVisitorMessage as i, MAX_EXPIRES_MS as n, parseExpires as o, buildSnippet as r, verifyCapability as s, MAX_CALLBACK_MSG_BYTES as t };
|
|
143
|
-
//# sourceMappingURL=callbackCore-
|
|
143
|
+
//# sourceMappingURL=callbackCore-K99x3C75.js.map
|
|
@@ -387,7 +387,7 @@ function printOp(op) {
|
|
|
387
387
|
*/
|
|
388
388
|
async function runMesh(cwd, entry, opts) {
|
|
389
389
|
const { ChannelPeer } = await import("./peer-Cvntlw1i.js");
|
|
390
|
-
const { importRTC, getIceServers } = await import("./share-
|
|
390
|
+
const { importRTC, getIceServers } = await import("./share-Db_zb6gH.js");
|
|
391
391
|
const rtc = await importRTC();
|
|
392
392
|
const seen = new Set((await readOps(cwd, entry.channelId)).map((o) => o.id));
|
|
393
393
|
const peer = new ChannelPeer({
|
|
@@ -567,4 +567,4 @@ async function cmdCh(args) {
|
|
|
567
567
|
|
|
568
568
|
//#endregion
|
|
569
569
|
export { cmdCh };
|
|
570
|
-
//# sourceMappingURL=channels-
|
|
570
|
+
//# sourceMappingURL=channels-DQaZbare.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-uqM2YYA7.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { r as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BRGfwUiq.js";
|
|
5
|
+
import { r as getRustBinary } from "./rustBinary-H7EHs-ID.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-BEjcbQCr.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-C0NuO6EG.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);
|
|
@@ -317,7 +317,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
{
|
|
320
|
-
const { detectCwdPassthrough, SUPPRESS_CWD_WARN_ENV } = await import("./cwdPassthroughHint-
|
|
320
|
+
const { detectCwdPassthrough, SUPPRESS_CWD_WARN_ENV } = await import("./cwdPassthroughHint-BlRuOGo_.js");
|
|
321
321
|
const dep = detectCwdPassthrough(process.argv);
|
|
322
322
|
if (dep) {
|
|
323
323
|
console.warn(dep.message);
|
|
@@ -328,16 +328,16 @@ await checkAndAutoUpdate();
|
|
|
328
328
|
logger.info(versionString());
|
|
329
329
|
const config = parseCliArgs(process.argv);
|
|
330
330
|
if (config.tray) {
|
|
331
|
-
const { startTray } = await import("./tray-
|
|
331
|
+
const { startTray } = await import("./tray-CzGs9-ch.js");
|
|
332
332
|
await startTray();
|
|
333
333
|
await new Promise(() => {});
|
|
334
334
|
}
|
|
335
335
|
{
|
|
336
|
-
const { ensureTray } = await import("./tray-
|
|
336
|
+
const { ensureTray } = await import("./tray-CzGs9-ch.js");
|
|
337
337
|
ensureTray();
|
|
338
338
|
}
|
|
339
339
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
340
|
-
const { waitForSpawnCapacity } = await import("./spawnGate-
|
|
340
|
+
const { waitForSpawnCapacity } = await import("./spawnGate-CZlMs6uV.js");
|
|
341
341
|
await waitForSpawnCapacity({
|
|
342
342
|
onWait: (reason, waitedMs) => {
|
|
343
343
|
if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
|
|
@@ -346,7 +346,7 @@ if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
if (!config.showVersion && !config.appendPrompt && !config.tray) {
|
|
349
|
-
const { warnIfCwdOccupied } = await import("./cwdConflictWarn-
|
|
349
|
+
const { warnIfCwdOccupied } = await import("./cwdConflictWarn-BpweoAiy.js");
|
|
350
350
|
await warnIfCwdOccupied(process.argv);
|
|
351
351
|
}
|
|
352
352
|
if (config.useRust) {
|
|
@@ -360,14 +360,14 @@ 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-C0NuO6EG.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}`);
|
|
367
367
|
console.log(`[rust] Args: ${rustArgs.join(" ")}`);
|
|
368
368
|
}
|
|
369
369
|
const attach = config.attach || process.env.AGENT_YES_ATTACH === "1";
|
|
370
|
-
const { shouldForkNested, buildSpawnTutorial, waitForRegistration, confirmAgentStarted, predictedLogPath } = await import("./forkNested-
|
|
370
|
+
const { shouldForkNested, buildSpawnTutorial, waitForRegistration, confirmAgentStarted, predictedLogPath } = await import("./forkNested-B_4c-TQk.js");
|
|
371
371
|
if (shouldForkNested({
|
|
372
372
|
isTTY: Boolean(process.stdout.isTTY),
|
|
373
373
|
ayPid: process.env.AGENT_YES_PID,
|