agent-yes 1.182.0 → 1.183.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.
@@ -0,0 +1,8 @@
1
+ import "./ts-Du279RjL.js";
2
+ import "./logger-CDIsZ-Pp.js";
3
+ import "./versionChecker-Ciy-TKzC.js";
4
+ import "./pidStore-BIvsBQ8X.js";
5
+ import "./globalPidIndex-CoNr7tS8.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-SpBb8H0t.js";
7
+
8
+ export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-cwD4DJdj.js";
1
+ import { t as CLIS_CONFIG } from "./ts-Du279RjL.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-BlyPh8qd.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-SpBb8H0t.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 { j as resolveOne } from "./subcommands-9IAeYS8Z.js";
4
+ import { j as resolveOne } from "./subcommands-D3U3eokm.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-dJbuZss9.js.map
231
+ //# sourceMappingURL=agentShare-xU2u8TME.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-CjWeSg88.js";
5
- import { n as getRustBinary } from "./rustBinary-D2qMI7Yi.js";
4
+ import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-Ciy-TKzC.js";
5
+ import { n as getRustBinary } from "./rustBinary-zBE5CoSu.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-BcLiXSj3.js");
288
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-br0Kk-2V.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-Bdinl6Jo.js");
330
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-COtxSejt.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-cwD4DJdj.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-Du279RjL.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-CjWeSg88.js";
3
+ import "./versionChecker-Ciy-TKzC.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-9IAeYS8Z.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-D3U3eokm.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-Dea7qR1H.js.map
591
+ //# sourceMappingURL=notifyDaemon-DRqRh5Os.js.map
@@ -1,4 +1,4 @@
1
- import { r as getInstalledPackage } from "./versionChecker-CjWeSg88.js";
1
+ import { r as getInstalledPackage } from "./versionChecker-Ciy-TKzC.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-D2qMI7Yi.js.map
228
+ //# sourceMappingURL=rustBinary-zBE5CoSu.js.map
@@ -1,9 +1,9 @@
1
- import "./ts-cwD4DJdj.js";
1
+ import "./ts-Du279RjL.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-CjWeSg88.js";
3
+ import "./versionChecker-Ciy-TKzC.js";
4
4
  import "./pidStore-BIvsBQ8X.js";
5
5
  import "./globalPidIndex-CoNr7tS8.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BlyPh8qd.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-SpBb8H0t.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-CSmYXB2X.js.map
144
+ //# sourceMappingURL=schedule-DZq4M6uy.js.map
@@ -1,13 +1,13 @@
1
- import "./ts-cwD4DJdj.js";
1
+ import "./ts-Du279RjL.js";
2
2
  import "./logger-CDIsZ-Pp.js";
3
- import { r as getInstalledPackage } from "./versionChecker-CjWeSg88.js";
4
- import { t as findSpawnHiddenLauncher } from "./rustBinary-D2qMI7Yi.js";
3
+ import { r as getInstalledPackage } from "./versionChecker-Ciy-TKzC.js";
4
+ import { t as findSpawnHiddenLauncher } from "./rustBinary-zBE5CoSu.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-BlyPh8qd.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-9IAeYS8Z.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-SpBb8H0t.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-D3U3eokm.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 = hostname();
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:${origin}`,
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:${origin}`,
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: "agent-yes",
1200
+ app: "ay",
1201
1201
  origin,
1202
- label: `agent-yes fleet @ ${origin}`
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-dJbuZss9.js");
1746
+ const { createScopedShare } = await import("./agentShare-xU2u8TME.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-dJbuZss9.js");
1761
+ const { listShares } = await import("./agentShare-xU2u8TME.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-dJbuZss9.js");
1766
+ const { revokeShare } = await import("./agentShare-xU2u8TME.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-dJbuZss9.js").then((m) => m.revokeAllShares()).catch(() => {});
1911
+ import("./agentShare-xU2u8TME.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-HwWBmiAN.js.map
1924
+ //# sourceMappingURL=serve-DPKuuW73.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-HwWBmiAN.js");
35
+ const { cmdServe } = await import("./serve-DPKuuW73.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-DLQCW7OP.js.map
45
+ //# sourceMappingURL=setup-B9x7Kz4J.js.map
@@ -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-HwWBmiAN.js");
1148
+ const { cmdServe } = await import("./serve-DPKuuW73.js");
1149
1149
  return cmdServe(rest);
1150
1150
  }
1151
1151
  case "setup": {
1152
- const { cmdSetup } = await import("./setup-DLQCW7OP.js");
1152
+ const { cmdSetup } = await import("./setup-B9x7Kz4J.js");
1153
1153
  return cmdSetup(rest);
1154
1154
  }
1155
1155
  case "schedule": {
1156
- const { cmdSchedule } = await import("./schedule-CSmYXB2X.js");
1156
+ const { cmdSchedule } = await import("./schedule-DZq4M6uy.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-Dea7qR1H.js");
3994
+ const { ensureDaemon } = await import("./notifyDaemon-DRqRh5Os.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-Dea7qR1H.js");
4068
+ const daemon = await import("./notifyDaemon-DRqRh5Os.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-9IAeYS8Z.js.map
4095
+ //# sourceMappingURL=subcommands-D3U3eokm.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-9IAeYS8Z.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-D3U3eokm.js";
5
5
  import "./e2e-BeKjLhmO.js";
6
6
  import "./webrtcLink-BG0Xc4-W.js";
7
7
  import "./remotes-DsTnQhyx.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-CjWeSg88.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-Ciy-TKzC.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-cwD4DJdj.js.map
1827
+ //# sourceMappingURL=ts-Du279RjL.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.182.0";
10
+ var version = "1.183.1";
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-CjWeSg88.js.map
218
+ //# sourceMappingURL=versionChecker-Ciy-TKzC.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.182.0",
3
+ "version": "1.183.1",
4
4
  "description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
5
5
  "keywords": [
6
6
  "ai",
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
- const origin = hostname();
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:${origin}`,
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:${origin}`,
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: "agent-yes", origin, label: `agent-yes fleet @ ${origin}` },
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-cwD4DJdj.js";
2
- import "./logger-CDIsZ-Pp.js";
3
- import "./versionChecker-CjWeSg88.js";
4
- import "./pidStore-BIvsBQ8X.js";
5
- import "./globalPidIndex-CoNr7tS8.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BlyPh8qd.js";
7
-
8
- export { SUPPORTED_CLIS };