agent-yes 1.105.0 → 1.106.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.
@@ -0,0 +1,8 @@
1
+ import "./ts-CFnUatY1.js";
2
+ import "./logger-B9h0djqx.js";
3
+ import "./versionChecker-CRaHzP0C.js";
4
+ import "./pidStore-DBjlqzo8.js";
5
+ import "./globalPidIndex-yVd3mbsV.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-O3atAbo5.js";
7
+
8
+ export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-D6h8i7u4.js";
1
+ import { t as CLIS_CONFIG } from "./ts-CFnUatY1.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-0oA2e72v.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-O3atAbo5.js.map
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  import { n as logger } from "./logger-B9h0djqx.js";
3
- import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-DqxYh1VE.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-CRaHzP0C.js";
4
4
  import { argv } from "process";
5
5
  import { execFileSync, spawn } from "child_process";
6
6
  import ms from "ms";
@@ -482,7 +482,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
482
482
  {
483
483
  const rawArg = process.argv[2];
484
484
  const isHelpFlag = rawArg === "-h" || rawArg === "--help";
485
- const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-Bm6rHvvU.js");
485
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-DO3qf62r.js");
486
486
  if (isHelpFlag && process.argv.length === 3) {
487
487
  cmdHelp();
488
488
  process.exit(0);
@@ -515,7 +515,7 @@ if (config.useRust) {
515
515
  }
516
516
  }
517
517
  if (rustBinary) {
518
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C38x_H7w.js");
518
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BkWXFAho.js");
519
519
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
520
520
  if (config.verbose) {
521
521
  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-D6h8i7u4.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-CFnUatY1.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-DqxYh1VE.js";
3
+ import "./versionChecker-CRaHzP0C.js";
4
4
  import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
6
 
@@ -1,11 +1,11 @@
1
- import "./ts-D6h8i7u4.js";
1
+ import "./ts-CFnUatY1.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-DqxYh1VE.js";
3
+ import "./versionChecker-CRaHzP0C.js";
4
4
  import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-0oA2e72v.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-O3atAbo5.js";
7
7
  import "./remotes-C3xPRtfg.js";
8
- import { c as readNotes, f as snapshotStatus, l as renderRawLog, m as writeToIpc, o as listRecords, r as controlCodeFromName, u as resolveOne } from "./subcommands-D2Bj4C59.js";
8
+ import { c as readNotes, f as snapshotStatus, l as renderRawLog, m as writeToIpc, o as listRecords, r as controlCodeFromName, u as resolveOne } from "./subcommands-BImrR-R6.js";
9
9
  import yargs from "yargs";
10
10
  import { mkdir, open, readFile, writeFile } from "fs/promises";
11
11
  import { homedir } from "os";
@@ -552,4 +552,4 @@ Options:
552
552
 
553
553
  //#endregion
554
554
  export { cmdServe };
555
- //# sourceMappingURL=serve-DKxGL2r7.js.map
555
+ //# sourceMappingURL=serve-BHk9nQm-.js.map
@@ -163,7 +163,7 @@ async function runSubcommand(argv) {
163
163
  case "restart": return await cmdRestart(rest);
164
164
  case "note": return await cmdNote(rest);
165
165
  case "serve": {
166
- const { cmdServe } = await import("./serve-DKxGL2r7.js");
166
+ const { cmdServe } = await import("./serve-BHk9nQm-.js");
167
167
  return cmdServe(rest);
168
168
  }
169
169
  case "setup": {
@@ -1452,4 +1452,4 @@ async function cmdStatus(rest) {
1452
1452
 
1453
1453
  //#endregion
1454
1454
  export { isSubcommand as a, readNotes as c, runSubcommand as d, snapshotStatus as f, isPidAlive as i, renderRawLog as l, writeToIpc as m, cmdHelp as n, listRecords as o, stopTipForCli as p, controlCodeFromName as r, matchKeyword as s, GRACEFUL_EXIT_COMMANDS as t, resolveOne as u };
1455
- //# sourceMappingURL=subcommands-D2Bj4C59.js.map
1455
+ //# sourceMappingURL=subcommands-BImrR-R6.js.map
@@ -1,6 +1,6 @@
1
1
  import "./logger-B9h0djqx.js";
2
2
  import "./globalPidIndex-yVd3mbsV.js";
3
3
  import "./remotes-C3xPRtfg.js";
4
- import { a as isSubcommand, c as readNotes, d as runSubcommand, f as snapshotStatus, i as isPidAlive, l as renderRawLog, m as writeToIpc, n as cmdHelp, o as listRecords, p as stopTipForCli, r as controlCodeFromName, s as matchKeyword, t as GRACEFUL_EXIT_COMMANDS, u as resolveOne } from "./subcommands-D2Bj4C59.js";
4
+ import { a as isSubcommand, c as readNotes, d as runSubcommand, f as snapshotStatus, i as isPidAlive, l as renderRawLog, m as writeToIpc, n as cmdHelp, o as listRecords, p as stopTipForCli, r as controlCodeFromName, s as matchKeyword, t as GRACEFUL_EXIT_COMMANDS, u as resolveOne } from "./subcommands-BImrR-R6.js";
5
5
 
6
6
  export { cmdHelp, isSubcommand, runSubcommand };
@@ -1,5 +1,5 @@
1
1
  import { n as logger, t as addTransport } from "./logger-B9h0djqx.js";
2
- import { r as getInstalledPackage } from "./versionChecker-DqxYh1VE.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-CRaHzP0C.js";
3
3
  import { n as agentYesHome, t as PidStore } from "./pidStore-DBjlqzo8.js";
4
4
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-CJxsoGdb.js";
5
5
  import { i as readGlobalPids } from "./globalPidIndex-yVd3mbsV.js";
@@ -1714,4 +1714,4 @@ function sleep(ms) {
1714
1714
 
1715
1715
  //#endregion
1716
1716
  export { removeControlCharacters as a, AgentContext as i, agentYes as n, config as r, CLIS_CONFIG as t };
1717
- //# sourceMappingURL=ts-D6h8i7u4.js.map
1717
+ //# sourceMappingURL=ts-CFnUatY1.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.105.0";
10
+ var version = "1.106.0";
11
11
 
12
12
  //#endregion
13
13
  //#region ts/versionChecker.ts
@@ -221,4 +221,4 @@ async function displayVersion() {
221
221
 
222
222
  //#endregion
223
223
  export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
224
- //# sourceMappingURL=versionChecker-DqxYh1VE.js.map
224
+ //# sourceMappingURL=versionChecker-CRaHzP0C.js.map
package/lab/ui/index.html CHANGED
@@ -1169,11 +1169,25 @@
1169
1169
  .join("") || `<div class="empty">no match</div>`;
1170
1170
  }
1171
1171
 
1172
+ // Restore the last filter so a refresh (incl. the auto-reload on a new
1173
+ // deploy) doesn't wipe what you were narrowing to. Set before the first
1174
+ // render so the list comes up already filtered.
1175
+ try {
1176
+ const savedFilter = localStorage.getItem("ay.filter");
1177
+ if (savedFilter) $("q").value = savedFilter;
1178
+ } catch {}
1179
+
1172
1180
  // A ?pid=<pid> in the URL (codehost.dev's agent chips link here) selects
1173
- // that agent as soon as it shows up in the list, then forgets itself.
1181
+ // that agent as soon as it shows up in the list, then forgets itself. With
1182
+ // no ?pid, fall back to the agent this device last had selected — so a
1183
+ // refresh lands you back on the same agent instead of the placeholder.
1174
1184
  let autoPid = new URLSearchParams(location.search).get("pid");
1175
1185
  if (autoPid) {
1176
1186
  history.replaceState(null, document.title, location.pathname + location.hash);
1187
+ } else {
1188
+ try {
1189
+ autoPid = localStorage.getItem("ay.sel");
1190
+ } catch {}
1177
1191
  }
1178
1192
 
1179
1193
  async function loadList() {
@@ -1194,6 +1208,10 @@
1194
1208
 
1195
1209
  function select(pid) {
1196
1210
  sel = String(pid);
1211
+ // Remember the selection so a refresh re-opens this agent (see boot/autoPid).
1212
+ try {
1213
+ localStorage.setItem("ay.sel", sel);
1214
+ } catch {}
1197
1215
  const e = entries.find((x) => String(x.pid) === sel);
1198
1216
  if (!e) return;
1199
1217
  renderList();
@@ -1314,7 +1332,12 @@
1314
1332
  $("rback").addEventListener("click", () => {
1315
1333
  document.querySelector(".app").classList.remove("show-detail");
1316
1334
  });
1317
- $("q").addEventListener("input", renderList);
1335
+ $("q").addEventListener("input", () => {
1336
+ try {
1337
+ localStorage.setItem("ay.filter", $("q").value);
1338
+ } catch {}
1339
+ renderList();
1340
+ });
1318
1341
  $("viewbtn").addEventListener("click", () => {
1319
1342
  compactList = !compactList;
1320
1343
  localStorage.setItem("ay.compactList", compactList ? "1" : "0");
@@ -1760,18 +1783,26 @@
1760
1783
  watchVersion();
1761
1784
  }
1762
1785
 
1763
- // Auto-reload when the console's own assets change (a new deploy). HEAD the
1764
- // page once a minute and compare the cache validator; reload on change.
1765
- // Best-effortignores failures (e.g. remote rooms / cross-origin).
1786
+ // Auto-reload when the console's own assets change (a new deploy). We'd
1787
+ // prefer to compare a cheap HEAD validator, but Cloudflare's asset
1788
+ // responses for this page carry no etag/last-modifiedso we GET the page
1789
+ // once a minute and hash the body (FNV-1a) ourselves, reloading when the
1790
+ // hash moves. Still one request/min, and only while the tab is active; the
1791
+ // selection + filter are restored on reload so it's seamless. Best-effort —
1792
+ // ignores failures (e.g. remote rooms / cross-origin).
1766
1793
  function watchVersion() {
1767
1794
  let seen = null;
1768
1795
  const check = async () => {
1769
1796
  if (!isActive()) return;
1770
1797
  try {
1771
- const r = await fetch(location.pathname, { method: "HEAD", cache: "no-store" });
1772
- const tag = r.headers.get("etag") || r.headers.get("last-modified");
1773
- if (!tag) return;
1774
- if (seen && seen !== tag) return location.reload();
1798
+ const body = await (await fetch(location.pathname, { cache: "no-store" })).text();
1799
+ let h = 0x811c9dc5;
1800
+ for (let i = 0; i < body.length; i++) {
1801
+ h ^= body.charCodeAt(i);
1802
+ h = Math.imul(h, 0x01000193);
1803
+ }
1804
+ const tag = h >>> 0;
1805
+ if (seen !== null && seen !== tag) return location.reload();
1775
1806
  seen = tag;
1776
1807
  } catch {}
1777
1808
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.105.0",
3
+ "version": "1.106.0",
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",
@@ -1,8 +0,0 @@
1
- import "./ts-D6h8i7u4.js";
2
- import "./logger-B9h0djqx.js";
3
- import "./versionChecker-DqxYh1VE.js";
4
- import "./pidStore-DBjlqzo8.js";
5
- import "./globalPidIndex-yVd3mbsV.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-0oA2e72v.js";
7
-
8
- export { SUPPORTED_CLIS };