agent-yes 1.181.0 → 1.183.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-Dr9nuhhJ.js → SUPPORTED_CLIS-CeGTX2qN.js} +2 -2
- package/dist/SUPPORTED_CLIS-DPLVeHIs.js +8 -0
- package/dist/{agentShare-CO3WvhhK.js → agentShare-DNPkzmXl.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-RrSGnk8y.js → notifyDaemon-Djetat-q.js} +2 -2
- package/dist/{rustBinary-TmEmA8-Z.js → rustBinary-mHYVWWTR.js} +2 -2
- package/dist/{schedule-Dn21cWJc.js → schedule-CkaA1XR4.js} +4 -4
- package/dist/{serve-mgHilzwX.js → serve-DfNVDQzl.js} +17 -16
- package/dist/{setup-C4tV45C-.js → setup-DUkv0YDQ.js} +2 -2
- package/dist/{subcommands-TgD2PgkV.js → subcommands-CJTO4-91.js} +1 -1
- package/dist/{subcommands-DPesJGLU.js → subcommands-dn7NRJvM.js} +6 -6
- package/dist/{ts-D03587mT.js → ts-BLg6xDMV.js} +2 -2
- package/dist/{versionChecker-Dg5qWFeC.js → versionChecker-nVji2vp9.js} +2 -2
- package/package.json +1 -1
- package/ts/serve.ts +14 -5
- package/dist/SUPPORTED_CLIS-Do3V3vX8.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-BLg6xDMV.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-CeGTX2qN.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./ts-BLg6xDMV.js";
|
|
2
|
+
import "./logger-CDIsZ-Pp.js";
|
|
3
|
+
import "./versionChecker-nVji2vp9.js";
|
|
4
|
+
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
+
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CeGTX2qN.js";
|
|
7
|
+
|
|
8
|
+
export { SUPPORTED_CLIS };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./configShared-0MnIQ652.js";
|
|
4
|
-
import { j as resolveOne } from "./subcommands-
|
|
4
|
+
import { j as resolveOne } from "./subcommands-dn7NRJvM.js";
|
|
5
5
|
import "./e2e-BeKjLhmO.js";
|
|
6
6
|
import "./webrtcLink-BG0Xc4-W.js";
|
|
7
7
|
import "./remotes-DsTnQhyx.js";
|
|
@@ -228,4 +228,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
228
228
|
|
|
229
229
|
//#endregion
|
|
230
230
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
231
|
-
//# sourceMappingURL=agentShare-
|
|
231
|
+
//# sourceMappingURL=agentShare-DNPkzmXl.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-nVji2vp9.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-mHYVWWTR.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-CJTO4-91.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-DPLVeHIs.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-BLg6xDMV.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-nVji2vp9.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./configShared-0MnIQ652.js";
|
|
4
|
-
import { G as hostId, J as readInbox, K as listInboxParents, O as renderLogTailLines, Q as notifyDir, S as listRecords, U as appendEvent, W as gcInboxes, X as daemonLockDir, Y as shouldStealLock, Z as daemonLockOwnerPath, _ as isPidAlive, c as deriveLiveState, q as liveWatchers } from "./subcommands-
|
|
4
|
+
import { G as hostId, J as readInbox, K as listInboxParents, O as renderLogTailLines, Q as notifyDir, S as listRecords, U as appendEvent, W as gcInboxes, X as daemonLockDir, Y as shouldStealLock, Z as daemonLockOwnerPath, _ as isPidAlive, c as deriveLiveState, q as liveWatchers } from "./subcommands-dn7NRJvM.js";
|
|
5
5
|
import "./e2e-BeKjLhmO.js";
|
|
6
6
|
import "./webrtcLink-BG0Xc4-W.js";
|
|
7
7
|
import "./remotes-DsTnQhyx.js";
|
|
@@ -588,4 +588,4 @@ async function ensureDaemon() {
|
|
|
588
588
|
|
|
589
589
|
//#endregion
|
|
590
590
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
591
|
-
//# sourceMappingURL=notifyDaemon-
|
|
591
|
+
//# sourceMappingURL=notifyDaemon-Djetat-q.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-nVji2vp9.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-mHYVWWTR.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-BLg6xDMV.js";
|
|
2
2
|
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-
|
|
3
|
+
import "./versionChecker-nVji2vp9.js";
|
|
4
4
|
import "./pidStore-BIvsBQ8X.js";
|
|
5
5
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
6
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CeGTX2qN.js";
|
|
7
7
|
import { d as resolveSpawnCwd } from "./workspaceConfig-DKd6UvVm.js";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
9
|
|
|
@@ -141,4 +141,4 @@ async function cmdSchedule(rest) {
|
|
|
141
141
|
|
|
142
142
|
//#endregion
|
|
143
143
|
export { cmdSchedule };
|
|
144
|
-
//# sourceMappingURL=schedule-
|
|
144
|
+
//# sourceMappingURL=schedule-CkaA1XR4.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./ts-
|
|
1
|
+
import "./ts-BLg6xDMV.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-nVji2vp9.js";
|
|
4
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-mHYVWWTR.js";
|
|
5
5
|
import "./pidStore-BIvsBQ8X.js";
|
|
6
6
|
import { a as updateGlobalPidStatus } from "./globalPidIndex-CoNr7tS8.js";
|
|
7
7
|
import { t as pgidForWrapper } from "./reaper-CWF2_ATd.js";
|
|
8
8
|
import "./configShared-0MnIQ652.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
-
import { $ as TYPING_BADGE, D as recentReadEdges, E as readPtysize, H as writeToIpc, I as snapshotStatus, O as renderLogTailLines, S as listRecords, T as readNotes, b as isUserTyping, f as extractNeedsInput, j as resolveOne, k as renderRawLog, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, u as extractBadges } from "./subcommands-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CeGTX2qN.js";
|
|
10
|
+
import { $ as TYPING_BADGE, D as recentReadEdges, E as readPtysize, H as writeToIpc, I as snapshotStatus, O as renderLogTailLines, S as listRecords, T as readNotes, b as isUserTyping, f as extractNeedsInput, j as resolveOne, k as renderRawLog, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, u as extractBadges } from "./subcommands-dn7NRJvM.js";
|
|
11
11
|
import "./e2e-BeKjLhmO.js";
|
|
12
12
|
import "./webrtcLink-BG0Xc4-W.js";
|
|
13
13
|
import "./remotes-DsTnQhyx.js";
|
|
@@ -1100,7 +1100,7 @@ Options:
|
|
|
1100
1100
|
}
|
|
1101
1101
|
if (req.method === "GET" && p === "/api/graph") try {
|
|
1102
1102
|
const records = await listRecords(void 0, defaultOpts());
|
|
1103
|
-
const origin =
|
|
1103
|
+
const origin = "agent-yes";
|
|
1104
1104
|
const ns = `ay://${origin}`;
|
|
1105
1105
|
const textIn = {
|
|
1106
1106
|
id: "text-in",
|
|
@@ -1144,7 +1144,7 @@ Options:
|
|
|
1144
1144
|
type: `${r.cli}-agent`,
|
|
1145
1145
|
title: `${r.cli} #${r.pid}`,
|
|
1146
1146
|
category: "agent-yes",
|
|
1147
|
-
owner: `agent-yes:${
|
|
1147
|
+
owner: `agent-yes:${hostname()}`,
|
|
1148
1148
|
status: r.status,
|
|
1149
1149
|
parent: r.parent_pid && byWrapper.has(r.parent_pid) ? nid(byWrapper.get(r.parent_pid)) : void 0,
|
|
1150
1150
|
pos: {
|
|
@@ -1163,7 +1163,7 @@ Options:
|
|
|
1163
1163
|
type: "codex-agent",
|
|
1164
1164
|
title: "Codex Agent",
|
|
1165
1165
|
category: "agent-yes",
|
|
1166
|
-
owner: `agent-yes:${
|
|
1166
|
+
owner: `agent-yes:${hostname()}`,
|
|
1167
1167
|
status: codex?.status ?? "offline",
|
|
1168
1168
|
parent: void 0,
|
|
1169
1169
|
pos: {
|
|
@@ -1197,9 +1197,10 @@ Options:
|
|
|
1197
1197
|
kind: "rgui-federated-graph",
|
|
1198
1198
|
schema: "org.rgui.graph.v1",
|
|
1199
1199
|
producer: {
|
|
1200
|
-
app: "
|
|
1200
|
+
app: "ay",
|
|
1201
1201
|
origin,
|
|
1202
|
-
|
|
1202
|
+
deviceId: hostname(),
|
|
1203
|
+
label: `agent-yes fleet @ ${hostname()}`
|
|
1203
1204
|
},
|
|
1204
1205
|
revision: Date.now(),
|
|
1205
1206
|
ts: Date.now(),
|
|
@@ -1742,7 +1743,7 @@ Options:
|
|
|
1742
1743
|
const perm = body.perm ?? "r";
|
|
1743
1744
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
1744
1745
|
try {
|
|
1745
|
-
const { createScopedShare } = await import("./agentShare-
|
|
1746
|
+
const { createScopedShare } = await import("./agentShare-DNPkzmXl.js");
|
|
1746
1747
|
const share = await createScopedShare({
|
|
1747
1748
|
agent: body.agent,
|
|
1748
1749
|
perm,
|
|
@@ -1757,12 +1758,12 @@ Options:
|
|
|
1757
1758
|
}
|
|
1758
1759
|
}
|
|
1759
1760
|
if (req.method === "GET" && p === "/api/shares") {
|
|
1760
|
-
const { listShares } = await import("./agentShare-
|
|
1761
|
+
const { listShares } = await import("./agentShare-DNPkzmXl.js");
|
|
1761
1762
|
return Response.json(listShares());
|
|
1762
1763
|
}
|
|
1763
1764
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
1764
1765
|
if (req.method === "DELETE" && revokeM) {
|
|
1765
|
-
const { revokeShare } = await import("./agentShare-
|
|
1766
|
+
const { revokeShare } = await import("./agentShare-DNPkzmXl.js");
|
|
1766
1767
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
1767
1768
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
1768
1769
|
}
|
|
@@ -1783,7 +1784,7 @@ Options:
|
|
|
1783
1784
|
"worker-src 'self'",
|
|
1784
1785
|
"manifest-src 'self'"
|
|
1785
1786
|
].join("; ");
|
|
1786
|
-
const RGUI_CSP = CONSOLE_CSP.replace("frame-ancestors 'none'", "frame-ancestors *");
|
|
1787
|
+
const RGUI_CSP = CONSOLE_CSP.replace("frame-ancestors 'none'", "frame-ancestors *").replace("connect-src 'self'", "connect-src 'self' https://otoji.org http://127.0.0.1:* http://localhost:*");
|
|
1787
1788
|
const serveUiFile = async (name, type, csp = CONSOLE_CSP) => {
|
|
1788
1789
|
try {
|
|
1789
1790
|
const buf = await readFile(path.join(uiDir, name));
|
|
@@ -1907,7 +1908,7 @@ Options:
|
|
|
1907
1908
|
const shutdown = (resolve) => {
|
|
1908
1909
|
if (heartbeat) clearInterval(heartbeat);
|
|
1909
1910
|
closeShare?.();
|
|
1910
|
-
import("./agentShare-
|
|
1911
|
+
import("./agentShare-DNPkzmXl.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
1911
1912
|
server?.stop();
|
|
1912
1913
|
resolve();
|
|
1913
1914
|
};
|
|
@@ -1920,4 +1921,4 @@ Options:
|
|
|
1920
1921
|
|
|
1921
1922
|
//#endregion
|
|
1922
1923
|
export { cmdServe };
|
|
1923
|
-
//# sourceMappingURL=serve-
|
|
1924
|
+
//# sourceMappingURL=serve-DfNVDQzl.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-DfNVDQzl.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-DUkv0YDQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
2
|
import "./globalPidIndex-CoNr7tS8.js";
|
|
3
3
|
import "./configShared-0MnIQ652.js";
|
|
4
|
-
import { A as renderRawLogLines, B as waitForLogQuiet, C as matchKeyword, D as recentReadEdges, E as readPtysize, F as runSubcommand, H as writeToIpc, I as snapshotStatus, L as stdinActivityPath, M as resolveReadWindow, N as resolveResumeArgs, O as renderLogTailLines, P as restartHintLines, R as stopTipForCli, S as listRecords, T as readNotes, V as writeKeysPaced, _ 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 resolveOne, k as renderRawLog, 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 submitAndConfirm } from "./subcommands-
|
|
4
|
+
import { A as renderRawLogLines, B as waitForLogQuiet, C as matchKeyword, D as recentReadEdges, E as readPtysize, F as runSubcommand, H as writeToIpc, I as snapshotStatus, L as stdinActivityPath, M as resolveReadWindow, N as resolveResumeArgs, O as renderLogTailLines, P as restartHintLines, R as stopTipForCli, S as listRecords, T as readNotes, V as writeKeysPaced, _ 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 resolveOne, k as renderRawLog, 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 submitAndConfirm } from "./subcommands-dn7NRJvM.js";
|
|
5
5
|
import "./e2e-BeKjLhmO.js";
|
|
6
6
|
import "./webrtcLink-BG0Xc4-W.js";
|
|
7
7
|
import "./remotes-DsTnQhyx.js";
|
|
@@ -1145,15 +1145,15 @@ async function runSubcommand(argv) {
|
|
|
1145
1145
|
case "restart": return await cmdRestart(rest);
|
|
1146
1146
|
case "note": return await cmdNote(rest);
|
|
1147
1147
|
case "serve": {
|
|
1148
|
-
const { cmdServe } = await import("./serve-
|
|
1148
|
+
const { cmdServe } = await import("./serve-DfNVDQzl.js");
|
|
1149
1149
|
return cmdServe(rest);
|
|
1150
1150
|
}
|
|
1151
1151
|
case "setup": {
|
|
1152
|
-
const { cmdSetup } = await import("./setup-
|
|
1152
|
+
const { cmdSetup } = await import("./setup-DUkv0YDQ.js");
|
|
1153
1153
|
return cmdSetup(rest);
|
|
1154
1154
|
}
|
|
1155
1155
|
case "schedule": {
|
|
1156
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1156
|
+
const { cmdSchedule } = await import("./schedule-CkaA1XR4.js");
|
|
1157
1157
|
return cmdSchedule(rest);
|
|
1158
1158
|
}
|
|
1159
1159
|
case "remote": {
|
|
@@ -3991,7 +3991,7 @@ async function cmdNotify(rest) {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
const ensure = async () => {
|
|
3993
3993
|
if (!argv["ensure-daemon"]) return;
|
|
3994
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
3994
|
+
const { ensureDaemon } = await import("./notifyDaemon-Djetat-q.js");
|
|
3995
3995
|
await ensureDaemon().catch(() => null);
|
|
3996
3996
|
};
|
|
3997
3997
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4065,7 +4065,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4065
4065
|
}
|
|
4066
4066
|
async function cmdNotifyd(rest) {
|
|
4067
4067
|
const sub = rest[0] ?? "status";
|
|
4068
|
-
const daemon = await import("./notifyDaemon-
|
|
4068
|
+
const daemon = await import("./notifyDaemon-Djetat-q.js");
|
|
4069
4069
|
switch (sub) {
|
|
4070
4070
|
case "run": return daemon.runDaemon();
|
|
4071
4071
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4092,4 +4092,4 @@ async function cmdNotifyd(rest) {
|
|
|
4092
4092
|
|
|
4093
4093
|
//#endregion
|
|
4094
4094
|
export { TYPING_BADGE as $, renderRawLogLines as A, waitForLogQuiet as B, matchKeyword as C, recentReadEdges as D, readPtysize as E, runSubcommand as F, hostId as G, writeToIpc as H, snapshotStatus as I, readInbox as J, listInboxParents as K, stdinActivityPath as L, resolveReadWindow as M, resolveResumeArgs as N, renderLogTailLines as O, restartHintLines as P, notifyDir as Q, stopTipForCli as R, listRecords as S, readNotes as T, appendEvent as U, writeKeysPaced as V, gcInboxes as W, daemonLockDir as X, shouldStealLock as Y, daemonLockOwnerPath as Z, isPidAlive as _, cmdHelp as a, isUserTyping as b, deriveLiveState as c, extractMenu as d, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, resolveOne as j, renderRawLog as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, controlCodeFromName as o, extractTaskCounts as p, liveWatchers 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, submitAndConfirm as z };
|
|
4095
|
-
//# sourceMappingURL=subcommands-
|
|
4095
|
+
//# sourceMappingURL=subcommands-dn7NRJvM.js.map
|
|
@@ -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-nVji2vp9.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";
|
|
@@ -1824,4 +1824,4 @@ function sleep(ms) {
|
|
|
1824
1824
|
|
|
1825
1825
|
//#endregion
|
|
1826
1826
|
export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
|
|
1827
|
-
//# sourceMappingURL=ts-
|
|
1827
|
+
//# sourceMappingURL=ts-BLg6xDMV.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.183.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-nVji2vp9.js.map
|
package/package.json
CHANGED
package/ts/serve.ts
CHANGED
|
@@ -1640,7 +1640,13 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
1640
1640
|
if (req.method === "GET" && p === "/api/graph") {
|
|
1641
1641
|
try {
|
|
1642
1642
|
const records = await listRecords(undefined, defaultOpts());
|
|
1643
|
-
|
|
1643
|
+
// ONE namespace for the whole feed: ns == `${producer.app}://${producer.origin}`
|
|
1644
|
+
// == every node id's prefix, so a consumer can enforce "a feed only
|
|
1645
|
+
// speaks for its own namespace" with a plain prefix check. The machine
|
|
1646
|
+
// name is metadata (producer.deviceId/label), NOT part of the namespace —
|
|
1647
|
+
// the shared demo-chain id ay://agent-yes/codex-agent must live in the
|
|
1648
|
+
// same ns as the rest of the fleet or enforcement would drop it.
|
|
1649
|
+
const origin = "agent-yes";
|
|
1644
1650
|
const ns = `ay://${origin}`;
|
|
1645
1651
|
const textIn = { id: "text-in", label: "text", kind: "text" };
|
|
1646
1652
|
const textOut = { id: "text-out", label: "text", kind: "text" };
|
|
@@ -1679,7 +1685,7 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
1679
1685
|
type: `${r.cli}-agent`,
|
|
1680
1686
|
title: `${r.cli} #${r.pid}`,
|
|
1681
1687
|
category: "agent-yes",
|
|
1682
|
-
owner: `agent-yes:${
|
|
1688
|
+
owner: `agent-yes:${hostname()}`,
|
|
1683
1689
|
status: r.status,
|
|
1684
1690
|
parent: r.parent_pid && byWrapper.has(r.parent_pid) ? nid(byWrapper.get(r.parent_pid)!) : undefined,
|
|
1685
1691
|
pos: { x: (i % 8) * (NODE_W + 64), y: Math.floor(i / 8) * 480 },
|
|
@@ -1698,7 +1704,7 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
1698
1704
|
type: "codex-agent",
|
|
1699
1705
|
title: "Codex Agent",
|
|
1700
1706
|
category: "agent-yes",
|
|
1701
|
-
owner: `agent-yes:${
|
|
1707
|
+
owner: `agent-yes:${hostname()}`,
|
|
1702
1708
|
status: codex?.status ?? "offline",
|
|
1703
1709
|
parent: undefined,
|
|
1704
1710
|
pos: { x: 0, y: -560 },
|
|
@@ -1720,7 +1726,7 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
1720
1726
|
{
|
|
1721
1727
|
kind: "rgui-federated-graph",
|
|
1722
1728
|
schema: "org.rgui.graph.v1",
|
|
1723
|
-
producer: { app: "
|
|
1729
|
+
producer: { app: "ay", origin, deviceId: hostname(), label: `agent-yes fleet @ ${hostname()}` },
|
|
1724
1730
|
revision: Date.now(),
|
|
1725
1731
|
ts: Date.now(),
|
|
1726
1732
|
graph: { nodes, edges },
|
|
@@ -2626,7 +2632,10 @@ export async function cmdServe(rest: string[]): Promise<number> {
|
|
|
2626
2632
|
// The /r (rgui) page is embeddable: its #node=<pid>&embed view is the
|
|
2627
2633
|
// federation renderHints.embed target, iframed by OTHER rgui hosts over the
|
|
2628
2634
|
// node rect — so frame-ancestors opens up, unlike the console's 'none'.
|
|
2629
|
-
const RGUI_CSP = CONSOLE_CSP.replace("frame-ancestors 'none'", "frame-ancestors *")
|
|
2635
|
+
const RGUI_CSP = CONSOLE_CSP.replace("frame-ancestors 'none'", "frame-ancestors *")
|
|
2636
|
+
// #feed= mirrors fetch OTHER rgui hosts' envelopes (federation consumers):
|
|
2637
|
+
// otoji.org in prod, localhost/loopback for wrangler-dev feeds
|
|
2638
|
+
.replace("connect-src 'self'", "connect-src 'self' https://otoji.org http://127.0.0.1:* http://localhost:*");
|
|
2630
2639
|
const serveUiFile = async (name: string, type: string, csp = CONSOLE_CSP): Promise<Response> => {
|
|
2631
2640
|
try {
|
|
2632
2641
|
const buf = await readFile(path.join(uiDir, name));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./ts-D03587mT.js";
|
|
2
|
-
import "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import "./versionChecker-Dg5qWFeC.js";
|
|
4
|
-
import "./pidStore-BIvsBQ8X.js";
|
|
5
|
-
import "./globalPidIndex-CoNr7tS8.js";
|
|
6
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-Dr9nuhhJ.js";
|
|
7
|
-
|
|
8
|
-
export { SUPPORTED_CLIS };
|