agent-yes 1.200.0 → 1.201.0
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-BbWt8-ON.js +9 -0
- package/dist/{SUPPORTED_CLIS-Dt-oEBTl.js → SUPPORTED_CLIS-CnGjmp53.js} +2 -2
- package/dist/{agentShare-D-9ppbuL.js → agentShare-lDreSLQE.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-CQZ_wPhN.js → notifyDaemon-C4VzLmmO.js} +2 -2
- package/dist/{rustBinary-C5SrmIUM.js → rustBinary-CVZsX0za.js} +2 -2
- package/dist/{schedule-lPUt6BkE.js → schedule-hdbXBwpG.js} +4 -4
- package/dist/{serve-DlUJ7Hg9.js → serve-DEEesVYn.js} +12 -12
- package/dist/{setup-Dalhb8_0.js → setup-DZbnDas9.js} +2 -2
- package/dist/{subcommands-DvXyUjWT.js → subcommands-De-OHc0k.js} +7 -7
- package/dist/{subcommands-g1kLml5I.js → subcommands-IwpLJA-n.js} +1 -1
- package/dist/{ts-Oyau4Eap.js → ts-ZOEYyQAX.js} +2 -2
- package/dist/{versionChecker-CeLrr-kQ.js → versionChecker-CBtAasFe.js} +2 -2
- package/dist/{ws-DZDjlG3o.js → ws-DLiI3C6R.js} +2 -2
- package/lab/ui/index.html +35 -4
- package/package.json +1 -1
- package/dist/SUPPORTED_CLIS-D8PoWxsA.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./ts-ZOEYyQAX.js";
|
|
2
|
+
import "./logger-CDIsZ-Pp.js";
|
|
3
|
+
import "./versionChecker-CBtAasFe.js";
|
|
4
|
+
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
+
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
+
import "./messageLog-CxrKJj77.js";
|
|
7
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CnGjmp53.js";
|
|
8
|
+
|
|
9
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-ZOEYyQAX.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-CnGjmp53.js.map
|
|
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { M as resolveOne } from "./subcommands-
|
|
5
|
+
import { M as resolveOne } from "./subcommands-De-OHc0k.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
232
|
-
//# sourceMappingURL=agentShare-
|
|
232
|
+
//# sourceMappingURL=agentShare-lDreSLQE.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 { n as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-CBtAasFe.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-CVZsX0za.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -285,7 +285,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
285
285
|
const rawArg = process.argv[2];
|
|
286
286
|
const managerCommands = !invokedCliName(process.argv);
|
|
287
287
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
288
|
-
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-
|
|
288
|
+
const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-IwpLJA-n.js");
|
|
289
289
|
if (isHelpFlag && process.argv.length === 3) {
|
|
290
290
|
await cmdHelp(managerCommands);
|
|
291
291
|
process.exit(0);
|
|
@@ -327,7 +327,7 @@ if (config.useRust) {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
if (rustBinary) {
|
|
330
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
330
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BbWt8-ON.js");
|
|
331
331
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
332
332
|
if (config.verbose) {
|
|
333
333
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-ZOEYyQAX.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-CBtAasFe.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
6
|
import "./messageLog-CxrKJj77.js";
|
|
@@ -2,7 +2,7 @@ import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { $ as notifyDir, G as gcInboxes, J as liveWatchers, K as hostId, Q as daemonLockOwnerPath, S as listRecords, W as appendEvent, X as shouldStealLock, Y as readInbox, Z as daemonLockDir, _ as isPidAlive, c as deriveLiveState, k as renderLogTailLines, q as listInboxParents } from "./subcommands-
|
|
5
|
+
import { $ as notifyDir, G as gcInboxes, J as liveWatchers, K as hostId, Q as daemonLockOwnerPath, S as listRecords, W as appendEvent, X as shouldStealLock, Y as readInbox, Z as daemonLockDir, _ as isPidAlive, c as deriveLiveState, k as renderLogTailLines, q as listInboxParents } from "./subcommands-De-OHc0k.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -589,4 +589,4 @@ async function ensureDaemon() {
|
|
|
589
589
|
|
|
590
590
|
//#endregion
|
|
591
591
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
592
|
-
//# sourceMappingURL=notifyDaemon-
|
|
592
|
+
//# sourceMappingURL=notifyDaemon-C4VzLmmO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-CBtAasFe.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -225,4 +225,4 @@ async function getRustBinary(options = {}) {
|
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
227
|
export { getRustBinary as n, findSpawnHiddenLauncher as t };
|
|
228
|
-
//# sourceMappingURL=rustBinary-
|
|
228
|
+
//# sourceMappingURL=rustBinary-CVZsX0za.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-ZOEYyQAX.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-CBtAasFe.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
6
|
import "./messageLog-CxrKJj77.js";
|
|
7
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
7
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CnGjmp53.js";
|
|
8
8
|
import { d as resolveSpawnCwd } from "./workspaceConfig-CjaRvTjf.js";
|
|
9
9
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CwNJuwH5.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
@@ -151,4 +151,4 @@ async function cmdSchedule(rest) {
|
|
|
151
151
|
|
|
152
152
|
//#endregion
|
|
153
153
|
export { cmdSchedule };
|
|
154
|
-
//# sourceMappingURL=schedule-
|
|
154
|
+
//# sourceMappingURL=schedule-hdbXBwpG.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-ZOEYyQAX.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
4
|
-
import { t as findSpawnHiddenLauncher } from "./rustBinary-
|
|
3
|
+
import { r as getInstalledPackage } from "./versionChecker-CBtAasFe.js";
|
|
4
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-CVZsX0za.js";
|
|
5
5
|
import "./pidStore-BIvsBQ8X.js";
|
|
6
6
|
import { a as updateGlobalPidStatus } from "./globalPidIndex-CoNr7tS8.js";
|
|
7
7
|
import { r as recordInbox } from "./messageLog-CxrKJj77.js";
|
|
8
8
|
import { t as pgidForWrapper } from "./reaper-BUHCyxdF.js";
|
|
9
9
|
import "./configShared-aKTg-sa5.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
11
|
-
import { A as renderRawLog, D as recentMessageEdges, E as readPtysize, L as snapshotStatus, M as resolveOne, O as recentReadEdges, S as listRecords, T as readNotes, U as writeToIpc, b as isUserTyping, et as TYPING_BADGE, f as extractNeedsInput, k as renderLogTailLines, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, u as extractBadges } from "./subcommands-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CnGjmp53.js";
|
|
11
|
+
import { A as renderRawLog, D as recentMessageEdges, E as readPtysize, L as snapshotStatus, M as resolveOne, O as recentReadEdges, S as listRecords, T as readNotes, U as writeToIpc, b as isUserTyping, et as TYPING_BADGE, f as extractNeedsInput, k as renderLogTailLines, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, u as extractBadges } from "./subcommands-De-OHc0k.js";
|
|
12
12
|
import "./e2e-jb0Hp43q.js";
|
|
13
13
|
import "./webrtcLink-B7REGtK2.js";
|
|
14
14
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -1442,7 +1442,7 @@ Options:
|
|
|
1442
1442
|
}
|
|
1443
1443
|
});
|
|
1444
1444
|
if (req.method === "GET" && p === "/api/ws") {
|
|
1445
|
-
const ws = await import("./ws-
|
|
1445
|
+
const ws = await import("./ws-DLiI3C6R.js");
|
|
1446
1446
|
try {
|
|
1447
1447
|
await ws.loadProvision();
|
|
1448
1448
|
} catch (e) {
|
|
@@ -1462,7 +1462,7 @@ Options:
|
|
|
1462
1462
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
1463
1463
|
const dirRaw = url.searchParams.get("path");
|
|
1464
1464
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
1465
|
-
const ws = await import("./ws-
|
|
1465
|
+
const ws = await import("./ws-DLiI3C6R.js");
|
|
1466
1466
|
let prov;
|
|
1467
1467
|
try {
|
|
1468
1468
|
prov = await ws.loadProvision();
|
|
@@ -2018,7 +2018,7 @@ Options:
|
|
|
2018
2018
|
const perm = body.perm ?? "r";
|
|
2019
2019
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
2020
2020
|
try {
|
|
2021
|
-
const { createScopedShare } = await import("./agentShare-
|
|
2021
|
+
const { createScopedShare } = await import("./agentShare-lDreSLQE.js");
|
|
2022
2022
|
const share = await createScopedShare({
|
|
2023
2023
|
agent: body.agent,
|
|
2024
2024
|
perm,
|
|
@@ -2033,12 +2033,12 @@ Options:
|
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
if (req.method === "GET" && p === "/api/shares") {
|
|
2036
|
-
const { listShares } = await import("./agentShare-
|
|
2036
|
+
const { listShares } = await import("./agentShare-lDreSLQE.js");
|
|
2037
2037
|
return Response.json(listShares());
|
|
2038
2038
|
}
|
|
2039
2039
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
2040
2040
|
if (req.method === "DELETE" && revokeM) {
|
|
2041
|
-
const { revokeShare } = await import("./agentShare-
|
|
2041
|
+
const { revokeShare } = await import("./agentShare-lDreSLQE.js");
|
|
2042
2042
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
2043
2043
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
2044
2044
|
}
|
|
@@ -2220,7 +2220,7 @@ Options:
|
|
|
2220
2220
|
const shutdown = (resolve) => {
|
|
2221
2221
|
if (heartbeat) clearInterval(heartbeat);
|
|
2222
2222
|
closeShare?.();
|
|
2223
|
-
import("./agentShare-
|
|
2223
|
+
import("./agentShare-lDreSLQE.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
2224
2224
|
server?.stop();
|
|
2225
2225
|
resolve();
|
|
2226
2226
|
};
|
|
@@ -2233,4 +2233,4 @@ Options:
|
|
|
2233
2233
|
|
|
2234
2234
|
//#endregion
|
|
2235
2235
|
export { cmdServe };
|
|
2236
|
-
//# sourceMappingURL=serve-
|
|
2236
|
+
//# sourceMappingURL=serve-DEEesVYn.js.map
|
|
@@ -32,7 +32,7 @@ async function cmdSetup(rest) {
|
|
|
32
32
|
if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
|
|
33
33
|
if (noShare) return 0;
|
|
34
34
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
35
|
-
const { cmdServe } = await import("./serve-
|
|
35
|
+
const { cmdServe } = await import("./serve-DEEesVYn.js");
|
|
36
36
|
return cmdServe([
|
|
37
37
|
"install",
|
|
38
38
|
"--share",
|
|
@@ -42,4 +42,4 @@ async function cmdSetup(rest) {
|
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { cmdSetup };
|
|
45
|
-
//# sourceMappingURL=setup-
|
|
45
|
+
//# sourceMappingURL=setup-DZbnDas9.js.map
|
|
@@ -1184,19 +1184,19 @@ async function runSubcommand(argv) {
|
|
|
1184
1184
|
case "restart": return await cmdRestart(rest);
|
|
1185
1185
|
case "note": return await cmdNote(rest);
|
|
1186
1186
|
case "serve": {
|
|
1187
|
-
const { cmdServe } = await import("./serve-
|
|
1187
|
+
const { cmdServe } = await import("./serve-DEEesVYn.js");
|
|
1188
1188
|
return cmdServe(rest);
|
|
1189
1189
|
}
|
|
1190
1190
|
case "setup": {
|
|
1191
|
-
const { cmdSetup } = await import("./setup-
|
|
1191
|
+
const { cmdSetup } = await import("./setup-DZbnDas9.js");
|
|
1192
1192
|
return cmdSetup(rest);
|
|
1193
1193
|
}
|
|
1194
1194
|
case "ws": {
|
|
1195
|
-
const { cmdWs } = await import("./ws-
|
|
1195
|
+
const { cmdWs } = await import("./ws-DLiI3C6R.js");
|
|
1196
1196
|
return cmdWs(rest);
|
|
1197
1197
|
}
|
|
1198
1198
|
case "schedule": {
|
|
1199
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1199
|
+
const { cmdSchedule } = await import("./schedule-hdbXBwpG.js");
|
|
1200
1200
|
return cmdSchedule(rest);
|
|
1201
1201
|
}
|
|
1202
1202
|
case "remote": {
|
|
@@ -4216,7 +4216,7 @@ async function cmdNotify(rest) {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
const ensure = async () => {
|
|
4218
4218
|
if (!argv["ensure-daemon"]) return;
|
|
4219
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4219
|
+
const { ensureDaemon } = await import("./notifyDaemon-C4VzLmmO.js");
|
|
4220
4220
|
await ensureDaemon().catch(() => null);
|
|
4221
4221
|
};
|
|
4222
4222
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4290,7 +4290,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4290
4290
|
}
|
|
4291
4291
|
async function cmdNotifyd(rest) {
|
|
4292
4292
|
const sub = rest[0] ?? "status";
|
|
4293
|
-
const daemon = await import("./notifyDaemon-
|
|
4293
|
+
const daemon = await import("./notifyDaemon-C4VzLmmO.js");
|
|
4294
4294
|
switch (sub) {
|
|
4295
4295
|
case "run": return daemon.runDaemon();
|
|
4296
4296
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4317,4 +4317,4 @@ async function cmdNotifyd(rest) {
|
|
|
4317
4317
|
|
|
4318
4318
|
//#endregion
|
|
4319
4319
|
export { notifyDir as $, renderRawLog as A, submitAndConfirm as B, matchKeyword as C, recentMessageEdges as D, readPtysize as E, restartHintLines as F, gcInboxes as G, writeKeysPaced as H, runSubcommand as I, liveWatchers as J, hostId as K, snapshotStatus as L, resolveOne as M, resolveReadWindow as N, recentReadEdges as O, resolveResumeArgs as P, daemonLockOwnerPath as Q, stdinActivityPath as R, listRecords as S, readNotes as T, writeToIpc as U, waitForLogQuiet as V, appendEvent as W, shouldStealLock as X, readInbox as Y, daemonLockDir as Z, isPidAlive as _, cmdHelp as a, isUserTyping as b, deriveLiveState as c, extractMenu as d, TYPING_BADGE as et, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, renderRawLogLines as j, renderLogTailLines as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, controlCodeFromName as o, extractTaskCounts as p, listInboxParents as q, TYPING_WINDOW_MS as r, cursorAbs as s, GRACEFUL_EXIT_COMMANDS as t, extractBadges as u, isSlashCommand as v, menuSelectKeys as w, lastStdinAt as x, isSubcommand as y, stopTipForCli as z };
|
|
4320
|
-
//# sourceMappingURL=subcommands-
|
|
4320
|
+
//# sourceMappingURL=subcommands-De-OHc0k.js.map
|
|
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { A as renderRawLog, B as submitAndConfirm, C as matchKeyword, D as recentMessageEdges, E as readPtysize, F as restartHintLines, H as writeKeysPaced, I as runSubcommand, L as snapshotStatus, M as resolveOne, N as resolveReadWindow, O as recentReadEdges, P as resolveResumeArgs, R as stdinActivityPath, S as listRecords, T as readNotes, U as writeToIpc, V as waitForLogQuiet, _ as isPidAlive, a as cmdHelp, b as isUserTyping, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderRawLogLines, k as renderLogTailLines, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as menuSelectKeys, x as lastStdinAt, y as isSubcommand, z as stopTipForCli } from "./subcommands-
|
|
5
|
+
import { A as renderRawLog, B as submitAndConfirm, C as matchKeyword, D as recentMessageEdges, E as readPtysize, F as restartHintLines, H as writeKeysPaced, I as runSubcommand, L as snapshotStatus, M as resolveOne, N as resolveReadWindow, O as recentReadEdges, P as resolveResumeArgs, R as stdinActivityPath, S as listRecords, T as readNotes, U as writeToIpc, V as waitForLogQuiet, _ as isPidAlive, a as cmdHelp, b as isUserTyping, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderRawLogLines, k as renderLogTailLines, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as menuSelectKeys, x as lastStdinAt, y as isSubcommand, z as stopTipForCli } from "./subcommands-De-OHc0k.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-CBtAasFe.js";
|
|
3
3
|
import { t as agentYesHome } from "./agentYesHome-CtHb5b71.js";
|
|
4
4
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-CNMl13dC.js";
|
|
5
5
|
import { t as PidStore } from "./pidStore-BIvsBQ8X.js";
|
|
@@ -1901,4 +1901,4 @@ function sleep(ms) {
|
|
|
1901
1901
|
|
|
1902
1902
|
//#endregion
|
|
1903
1903
|
export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
|
|
1904
|
-
//# sourceMappingURL=ts-
|
|
1904
|
+
//# sourceMappingURL=ts-ZOEYyQAX.js.map
|
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "agent-yes";
|
|
10
|
-
var version = "1.
|
|
10
|
+
var version = "1.201.0";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -215,4 +215,4 @@ async function displayVersion() {
|
|
|
215
215
|
|
|
216
216
|
//#endregion
|
|
217
217
|
export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
|
|
218
|
-
//# sourceMappingURL=versionChecker-
|
|
218
|
+
//# sourceMappingURL=versionChecker-CBtAasFe.js.map
|
|
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
|
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./messageLog-CxrKJj77.js";
|
|
4
4
|
import "./configShared-aKTg-sa5.js";
|
|
5
|
-
import { S as listRecords } from "./subcommands-
|
|
5
|
+
import { S as listRecords } from "./subcommands-De-OHc0k.js";
|
|
6
6
|
import "./e2e-jb0Hp43q.js";
|
|
7
7
|
import "./webrtcLink-B7REGtK2.js";
|
|
8
8
|
import "./remotes-Cim0dBU7.js";
|
|
@@ -418,4 +418,4 @@ async function cmdWs(args) {
|
|
|
418
418
|
|
|
419
419
|
//#endregion
|
|
420
420
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, workspaceStatus };
|
|
421
|
-
//# sourceMappingURL=ws-
|
|
421
|
+
//# sourceMappingURL=ws-DLiI3C6R.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -5516,16 +5516,17 @@
|
|
|
5516
5516
|
},
|
|
5517
5517
|
];
|
|
5518
5518
|
// Build the command rows for a "/…"-prefixed query, targeting the anchor agent.
|
|
5519
|
-
//
|
|
5520
|
-
//
|
|
5519
|
+
// Agent-scoped commands are omitted when nothing is open (a command with no
|
|
5520
|
+
// agent to act on is a no-op); global commands (/filter) are always offered,
|
|
5521
|
+
// and with no rows at all the omnibox falls back to search/spawn behaviour.
|
|
5521
5522
|
function omniCommandRows(q) {
|
|
5522
5523
|
const target = omniAnchor();
|
|
5523
5524
|
// Match on the FIRST token so a command can carry args after it
|
|
5524
5525
|
// (e.g. "/fork fix the auth bug" → cmd "fork", topic "fix the auth bug").
|
|
5525
5526
|
const parts = q.slice(1).trim().split(/\s+/).filter(Boolean);
|
|
5526
5527
|
const cmdTerm = (parts[0] || "").toLowerCase(); // command token after "/"
|
|
5527
|
-
// Agent-targeted commands need an open agent to act on; /ws
|
|
5528
|
-
//
|
|
5528
|
+
// Agent-targeted commands need an open agent to act on; /ws and /filter
|
|
5529
|
+
// (below) don't, so the target check gates only these rows, not the builder.
|
|
5529
5530
|
const rows = !target
|
|
5530
5531
|
? []
|
|
5531
5532
|
: OMNI_COMMANDS.filter((c) => c.cmd.slice(1).startsWith(cmdTerm)).map((c) => ({
|
|
@@ -5557,6 +5558,14 @@
|
|
|
5557
5558
|
// in runOmni before this builder runs. Needs no anchor: workspaces exist
|
|
5558
5559
|
// independently of any open agent.
|
|
5559
5560
|
if ("ws".startsWith(cmdTerm)) rows.push({ kind: "wshint" });
|
|
5561
|
+
// "/filter [tokens…]" — global: sets the left panel's filter box (#q) to the
|
|
5562
|
+
// arguments, same tokens the box itself takes (space = AND, repo:x tags).
|
|
5563
|
+
// With no args it clears the filter. Needs no anchor agent — it acts on the
|
|
5564
|
+
// list, not an agent — so it's offered even when nothing is open. Listed
|
|
5565
|
+
// last so bare "/" still defaults to /restart.
|
|
5566
|
+
if ("filter".startsWith(cmdTerm)) {
|
|
5567
|
+
rows.push({ kind: "filter", value: parts.slice(1).join(" ") });
|
|
5568
|
+
}
|
|
5560
5569
|
return rows;
|
|
5561
5570
|
}
|
|
5562
5571
|
|
|
@@ -5756,6 +5765,20 @@
|
|
|
5756
5765
|
<div class="omni-sub">⏎ to choose a working dir · prompt: ${esc(q || "(empty)")}</div>
|
|
5757
5766
|
</div></div>`;
|
|
5758
5767
|
}
|
|
5768
|
+
if (r.kind === "filter") {
|
|
5769
|
+
const cur = $("q").value.trim();
|
|
5770
|
+
const title = r.value
|
|
5771
|
+
? `⌕ Filter list: <b>${esc(r.value)}</b> <span style="opacity:.55">/filter</span>`
|
|
5772
|
+
: cur
|
|
5773
|
+
? `⌕ Clear list filter <span style="opacity:.55">(now: ${esc(cur)})</span>`
|
|
5774
|
+
: `⌕ Filter list… <span style="opacity:.55">/filter repo:x claude</span>`;
|
|
5775
|
+
return `<div class="omni-row omni-spawn${sc}" data-i="${i}">
|
|
5776
|
+
<span class="dot idle"></span>
|
|
5777
|
+
<div class="omni-main">
|
|
5778
|
+
<div class="omni-title">${title}</div>
|
|
5779
|
+
<div class="omni-sub">sets the left panel filter · space = AND, tags like repo:/wt:/cli:/host:</div>
|
|
5780
|
+
</div></div>`;
|
|
5781
|
+
}
|
|
5759
5782
|
if (r.kind === "wshint") {
|
|
5760
5783
|
return `<div class="omni-row omni-spawn${sc}" data-i="${i}">
|
|
5761
5784
|
<span class="dot active"></span>
|
|
@@ -5939,6 +5962,14 @@
|
|
|
5939
5962
|
await row.cmd.run(row.target);
|
|
5940
5963
|
return;
|
|
5941
5964
|
}
|
|
5965
|
+
// "/filter …" sets the left panel's filter box; the input event does the
|
|
5966
|
+
// rest (persists ay.filter + re-renders the list), exactly as if typed.
|
|
5967
|
+
if (row && row.kind === "filter") {
|
|
5968
|
+
closeOmni(false);
|
|
5969
|
+
$("q").value = row.value;
|
|
5970
|
+
$("q").dispatchEvent(new Event("input"));
|
|
5971
|
+
return;
|
|
5972
|
+
}
|
|
5942
5973
|
// /ws rows — handled BEFORE the ⌘⏎ spawn-here fallthrough: in the
|
|
5943
5974
|
// workspace browser the typed text is a filter, not a prompt, so
|
|
5944
5975
|
// "spawn here with this prompt" is never the right reading of it.
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./ts-Oyau4Eap.js";
|
|
2
|
-
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-CeLrr-kQ.js";
|
|
4
|
-
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
-
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
-
import "./messageLog-CxrKJj77.js";
|
|
7
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-Dt-oEBTl.js";
|
|
8
|
-
|
|
9
|
-
export { SUPPORTED_CLIS };
|