agent-yes 1.108.0 → 1.108.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.
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-D_sIq4Yv.js";
1
+ import { t as CLIS_CONFIG } from "./ts-DQiKBC0f.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-BzuJvKuH.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-CcreSTgo.js.map
@@ -0,0 +1,8 @@
1
+ import "./ts-DQiKBC0f.js";
2
+ import "./logger-B9h0djqx.js";
3
+ import "./versionChecker-BQULRcxP.js";
4
+ import "./pidStore-DBjlqzo8.js";
5
+ import "./globalPidIndex-yVd3mbsV.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CcreSTgo.js";
7
+
8
+ export { SUPPORTED_CLIS };
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-osmGP6ly.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-BQULRcxP.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-4tanf24s.js");
485
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-BIz8LzhF.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-B_gPkhav.js");
518
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-atYBMnHG.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-D_sIq4Yv.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-DQiKBC0f.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-osmGP6ly.js";
3
+ import "./versionChecker-BQULRcxP.js";
4
4
  import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
6
 
@@ -1,11 +1,11 @@
1
- import "./ts-D_sIq4Yv.js";
1
+ import "./ts-DQiKBC0f.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-osmGP6ly.js";
3
+ import "./versionChecker-BQULRcxP.js";
4
4
  import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BzuJvKuH.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CcreSTgo.js";
7
7
  import "./remotes-C3xPRtfg.js";
8
- import { c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, m as snapshotStatus, r as controlCodeFromName, u as readNotes } from "./subcommands-BLPtg1xN.js";
8
+ import { c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, m as snapshotStatus, r as controlCodeFromName, u as readNotes } from "./subcommands-DHPQVuWd.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-D4puI0b2.js.map
555
+ //# sourceMappingURL=serve-BrT33v_v.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 finalizedLines, c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, h as stopTipForCli, i as cursorAbs, l as matchKeyword, m as snapshotStatus, n as cmdHelp, o as isPidAlive, p as runSubcommand, r as controlCodeFromName, s as isSubcommand, t as GRACEFUL_EXIT_COMMANDS, u as readNotes } from "./subcommands-BLPtg1xN.js";
4
+ import { a as finalizedLines, c as listRecords, d as renderRawLog, f as resolveOne, g as writeToIpc, h as stopTipForCli, i as cursorAbs, l as matchKeyword, m as snapshotStatus, n as cmdHelp, o as isPidAlive, p as runSubcommand, r as controlCodeFromName, s as isSubcommand, t as GRACEFUL_EXIT_COMMANDS, u as readNotes } from "./subcommands-DHPQVuWd.js";
5
5
 
6
6
  export { cmdHelp, isSubcommand, runSubcommand };
@@ -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-D4puI0b2.js");
166
+ const { cmdServe } = await import("./serve-BrT33v_v.js");
167
167
  return cmdServe(rest);
168
168
  }
169
169
  case "setup": {
@@ -1595,4 +1595,4 @@ async function cmdStatus(rest) {
1595
1595
 
1596
1596
  //#endregion
1597
1597
  export { finalizedLines as a, listRecords as c, renderRawLog as d, resolveOne as f, writeToIpc as g, stopTipForCli as h, cursorAbs as i, matchKeyword as l, snapshotStatus as m, cmdHelp as n, isPidAlive as o, runSubcommand as p, controlCodeFromName as r, isSubcommand as s, GRACEFUL_EXIT_COMMANDS as t, readNotes as u };
1598
- //# sourceMappingURL=subcommands-BLPtg1xN.js.map
1598
+ //# sourceMappingURL=subcommands-DHPQVuWd.js.map
@@ -1,5 +1,5 @@
1
1
  import { n as logger, t as addTransport } from "./logger-B9h0djqx.js";
2
- import { r as getInstalledPackage } from "./versionChecker-osmGP6ly.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-BQULRcxP.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-D_sIq4Yv.js.map
1717
+ //# sourceMappingURL=ts-DQiKBC0f.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.108.0";
10
+ var version = "1.108.1";
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-osmGP6ly.js.map
224
+ //# sourceMappingURL=versionChecker-BQULRcxP.js.map
package/lab/ui/index.html CHANGED
@@ -790,6 +790,7 @@
790
790
  } from "./console-logic.js";
791
791
 
792
792
  let entries = [];
793
+ let wantRemote = false; // a room hash/cached room is in play — don't poll the cloud origin's (nonexistent) /api before the tunnel opens
793
794
  let sel = null; // selected keyword (pid as string)
794
795
  let es = null; // live-tail subscription closer
795
796
  let term = null; // xterm.js Terminal rendering the raw PTY stream
@@ -1196,6 +1197,14 @@
1196
1197
 
1197
1198
  async function loadList() {
1198
1199
  const remote = Conn.ch || Conn.rtc;
1200
+ // A room was requested but its WebRTC tunnel isn't up yet: the cloud
1201
+ // origin serves only this static page, so a same-origin /api/ls fetch
1202
+ // here just 404s. Skip it — connectRoom() drives loadList once the data
1203
+ // channel opens (and again on every interval tick thereafter).
1204
+ if (wantRemote && !remote) {
1205
+ renderList();
1206
+ return;
1207
+ }
1199
1208
  try {
1200
1209
  entries = await Conn.fetchJSON("/api/ls?all=1");
1201
1210
  setConn(remote ? "● " + (curRoom || "remote") : "● local", "var(--green)");
@@ -1445,6 +1454,7 @@
1445
1454
 
1446
1455
  async function connectRoom(room, token, host) {
1447
1456
  host = host || SIG_DEFAULT;
1457
+ wantRemote = true; // from here on, loadList waits for the tunnel instead of hitting the origin
1448
1458
  saveRoom(room, token, host); // cache so the badge can list & reconnect later
1449
1459
  try {
1450
1460
  localStorage.setItem("ay.lastRoom", room); // reconnect here on a bare open
@@ -1764,6 +1774,7 @@
1764
1774
  // Render the UI immediately and refresh on a timer; connect to a room (if
1765
1775
  // any) in the BACKGROUND so a dead/slow cached room never blanks the page.
1766
1776
  if (!pending) setConn("● local", "var(--muted)");
1777
+ else wantRemote = true; // remote room in play — loadList waits for the tunnel
1767
1778
  startPolling();
1768
1779
  if (pending) connectRoom(pending.room, pending.token, pending.host);
1769
1780
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.108.0",
3
+ "version": "1.108.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",
@@ -57,7 +57,10 @@ describe("workspaceConfig", () => {
57
57
  });
58
58
 
59
59
  it("absolute path → used as-is", () => {
60
- expect(resolveSpawnCwd("/tmp/elsewhere")).toBe("/tmp/elsewhere");
60
+ // path.resolve keeps a POSIX-absolute path on Unix but anchors it to the
61
+ // current drive on Windows (→ C:\tmp\elsewhere); compare against the same
62
+ // resolution the impl uses so the assertion holds on both (cf. "a/b" below).
63
+ expect(resolveSpawnCwd("/tmp/elsewhere")).toBe(path.resolve("/tmp/elsewhere"));
61
64
  });
62
65
 
63
66
  it("tilde path → home-based", () => {
@@ -1,8 +0,0 @@
1
- import "./ts-D_sIq4Yv.js";
2
- import "./logger-B9h0djqx.js";
3
- import "./versionChecker-osmGP6ly.js";
4
- import "./pidStore-DBjlqzo8.js";
5
- import "./globalPidIndex-yVd3mbsV.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BzuJvKuH.js";
7
-
8
- export { SUPPORTED_CLIS };