agent-yes 1.103.0 → 1.104.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/README.md CHANGED
@@ -14,8 +14,8 @@ curl -fsSL https://agent-yes.com/setup.sh | sh
14
14
  ```
15
15
 
16
16
  ```powershell
17
- # Windows (PowerShell)
18
- irm https://agent-yes.com/setup.ps1 | iex
17
+ # Windows (works in both PowerShell and cmd)
18
+ powershell -c "irm https://agent-yes.com/setup.ps1 | iex"
19
19
  ```
20
20
 
21
21
  Or with a package manager you already have:
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-CFWQFwe3.js";
1
+ import { t as CLIS_CONFIG } from "./ts-DBBgfIyP.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-DLa81elJ.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-C-phVg78.js.map
@@ -0,0 +1,8 @@
1
+ import "./ts-DBBgfIyP.js";
2
+ import "./logger-B9h0djqx.js";
3
+ import "./versionChecker-BQ24JRrl.js";
4
+ import "./pidStore-DBjlqzo8.js";
5
+ import "./globalPidIndex-yVd3mbsV.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C-phVg78.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-IfF6V9MT.js";
3
+ import { i as versionString, n as displayVersion, r as getInstalledPackage, t as checkAndAutoUpdate } from "./versionChecker-BQ24JRrl.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-DDbKmEBG.js");
485
+ const { isSubcommand, runSubcommand, cmdHelp } = await import("./subcommands-BS3km4pt.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-Bfvn4t4T.js");
518
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C4I18Qjw.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-CFWQFwe3.js";
1
+ import { a as removeControlCharacters, i as AgentContext, n as agentYes, r as config, t as CLIS_CONFIG } from "./ts-DBBgfIyP.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-IfF6V9MT.js";
3
+ import "./versionChecker-BQ24JRrl.js";
4
4
  import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
6
 
@@ -1,11 +1,11 @@
1
- import "./ts-CFWQFwe3.js";
1
+ import "./ts-DBBgfIyP.js";
2
2
  import "./logger-B9h0djqx.js";
3
- import "./versionChecker-IfF6V9MT.js";
3
+ import "./versionChecker-BQ24JRrl.js";
4
4
  import "./pidStore-DBjlqzo8.js";
5
5
  import "./globalPidIndex-yVd3mbsV.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DLa81elJ.js";
6
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-C-phVg78.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-DZRLQ15r.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-BsAOQMuK.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-_SDEh-NR.js.map
555
+ //# sourceMappingURL=serve-tVWsTqXc.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-DZRLQ15r.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-BsAOQMuK.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-_SDEh-NR.js");
166
+ const { cmdServe } = await import("./serve-tVWsTqXc.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-DZRLQ15r.js.map
1455
+ //# sourceMappingURL=subcommands-BsAOQMuK.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-IfF6V9MT.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-BQ24JRrl.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-CFWQFwe3.js.map
1717
+ //# sourceMappingURL=ts-DBBgfIyP.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.103.0";
10
+ var version = "1.104.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-IfF6V9MT.js.map
224
+ //# sourceMappingURL=versionChecker-BQ24JRrl.js.map
package/lab/ui/index.html CHANGED
@@ -30,7 +30,9 @@
30
30
  background: var(--bg);
31
31
  color: var(--fg);
32
32
  height: 100vh;
33
+ height: 100dvh; /* dodge the iOS/Android dynamic toolbar resize */
33
34
  overflow: hidden;
35
+ -webkit-text-size-adjust: 100%;
34
36
  font:
35
37
  14px/1.55 -apple-system,
36
38
  BlinkMacSystemFont,
@@ -55,6 +57,7 @@
55
57
  grid-template-columns: var(--leftw, 42%) 1px 1fr;
56
58
  grid-template-rows: minmax(0, 1fr);
57
59
  height: 100vh;
60
+ height: 100dvh;
58
61
  }
59
62
 
60
63
  /* VSCode-style splitter: the visible divider stays 1px, but a ::before
@@ -113,10 +116,8 @@
113
116
  .install code:hover {
114
117
  filter: brightness(1.25);
115
118
  }
116
- @media (max-width: 720px) {
117
- .install .winhint {
118
- display: none;
119
- }
119
+ .install code {
120
+ word-break: break-all;
120
121
  }
121
122
  .ibox {
122
123
  display: flex;
@@ -563,6 +564,28 @@
563
564
  .rhead .name {
564
565
  font-size: 15px;
565
566
  }
567
+ /* back-to-list affordance — only surfaces in the single-column mobile view */
568
+ .rback {
569
+ display: none;
570
+ align-items: center;
571
+ justify-content: center;
572
+ flex: none;
573
+ width: 30px;
574
+ height: 30px;
575
+ margin: -4px 2px -4px -6px;
576
+ padding: 0;
577
+ background: transparent;
578
+ border: 1px solid var(--line);
579
+ border-radius: 8px;
580
+ color: var(--fg);
581
+ font-size: 19px;
582
+ line-height: 1;
583
+ cursor: pointer;
584
+ }
585
+ .rback:hover {
586
+ border-color: var(--accent);
587
+ color: var(--accent);
588
+ }
566
589
  .rhead .live {
567
590
  margin-left: auto;
568
591
  font-size: 11px;
@@ -597,6 +620,79 @@
597
620
  color: var(--muted);
598
621
  font-size: 14px;
599
622
  }
623
+
624
+ /* ---- mobile: collapse the two-pane desktop layout into a single column ----
625
+ The list and the terminal stack into the same cell; only one is visible at
626
+ a time. The list is the default ("master"); tapping an agent flips .app to
627
+ .show-detail to reveal the terminal ("detail"), and the ‹ back button flips
628
+ it back. The drag splitter is meaningless with one column, so it's hidden. */
629
+ @media (max-width: 720px) {
630
+ .install .winhint {
631
+ display: none;
632
+ }
633
+ .app {
634
+ grid-template-columns: 1fr;
635
+ grid-template-rows: minmax(0, 1fr);
636
+ }
637
+ .splitter {
638
+ display: none;
639
+ }
640
+ /* both panes occupy the single grid cell; visibility picks the active one */
641
+ .left,
642
+ .right {
643
+ grid-column: 1;
644
+ grid-row: 1;
645
+ min-width: 0;
646
+ }
647
+ .right {
648
+ display: none;
649
+ }
650
+ .app.show-detail .left {
651
+ display: none;
652
+ }
653
+ .app.show-detail .right {
654
+ display: flex;
655
+ }
656
+ .rback {
657
+ display: inline-flex;
658
+ }
659
+
660
+ .head {
661
+ padding: 12px 14px 8px;
662
+ }
663
+ h1 {
664
+ font-size: 17px;
665
+ }
666
+ /* roomier tap targets for the header controls */
667
+ .newbtn,
668
+ .viewbtn {
669
+ padding: 7px 12px;
670
+ font-size: 12.5px;
671
+ }
672
+ .meta {
673
+ align-items: center;
674
+ }
675
+ .metaright {
676
+ gap: 8px;
677
+ }
678
+ .row {
679
+ padding: 13px 14px;
680
+ }
681
+ .row.crow {
682
+ padding: 10px 14px;
683
+ }
684
+ .rhead {
685
+ padding: 12px 14px;
686
+ }
687
+ .list .row,
688
+ .rooms .ritem,
689
+ .rooms .rx,
690
+ .connbadge,
691
+ .install code,
692
+ code.copy {
693
+ -webkit-tap-highlight-color: transparent;
694
+ }
695
+ }
600
696
  </style>
601
697
  <link
602
698
  rel="stylesheet"
@@ -626,7 +722,9 @@
626
722
  <code class="copy">curl -fsSL https://agent-yes.com/setup.sh | sh</code>
627
723
  <span class="winhint"
628
724
  >·&nbsp;Windows:
629
- <code class="copy">irm https://agent-yes.com/setup.ps1 | iex</code></span
725
+ <code class="copy"
726
+ >powershell -c "irm https://agent-yes.com/setup.ps1 | iex"</code
727
+ ></span
630
728
  >
631
729
  </div>
632
730
  <div class="ibox">
@@ -657,6 +755,7 @@
657
755
 
658
756
  <div class="right">
659
757
  <div class="rhead" id="rhead" style="display: none">
758
+ <button class="rback" id="rback" title="back to list" aria-label="back to list">‹</button>
660
759
  <span class="dot" id="rdot"></span>
661
760
  <span class="name" id="rname"></span>
662
761
  <span class="badge" id="rpid"></span>
@@ -1098,6 +1197,9 @@
1098
1197
  const e = entries.find((x) => String(x.pid) === sel);
1099
1198
  if (!e) return;
1100
1199
  renderList();
1200
+ // Mobile: flip the single-column layout to the terminal ("detail") pane.
1201
+ // Done BEFORE term.open below so xterm measures a visible container.
1202
+ document.querySelector(".app").classList.add("show-detail");
1101
1203
  $("rhead").style.display = "flex";
1102
1204
  $("rdot").className = "dot " + e.status;
1103
1205
  $("rname").textContent = e.title || cliLabel(e) || ident(e) || "agent";
@@ -1124,7 +1226,10 @@
1124
1226
  fit = new FitAddon.FitAddon();
1125
1227
  term.loadAddon(fit);
1126
1228
  term.open(logEl);
1127
- term.focus();
1229
+ // On a phone, auto-focusing yanks up the soft keyboard the moment you open
1230
+ // an agent — even when you only meant to read the tail. Skip it there; a tap
1231
+ // on the terminal still focuses to type. Desktop keeps instant keyboard input.
1232
+ if (window.innerWidth > 720) term.focus();
1128
1233
  // An agent can rename itself by emitting an OSC 0/2 title sequence
1129
1234
  // (\x1b]2;my-name\x07); xterm parses it out of the raw PTY stream we already
1130
1235
  // feed it, so we just surface the latest title as the header name. Falls
@@ -1204,6 +1309,11 @@
1204
1309
  const row = ev.target.closest(".row");
1205
1310
  if (row) select(row.dataset.pid);
1206
1311
  });
1312
+ // Mobile back button: return to the list pane. The tail keeps streaming in the
1313
+ // background (selection unchanged), so reopening the agent is instant.
1314
+ $("rback").addEventListener("click", () => {
1315
+ document.querySelector(".app").classList.remove("show-detail");
1316
+ });
1207
1317
  $("q").addEventListener("input", renderList);
1208
1318
  $("viewbtn").addEventListener("click", () => {
1209
1319
  compactList = !compactList;
@@ -1364,7 +1474,7 @@
1364
1474
  <div class="rconnect">new here? install agent-yes (bun or npm, auto):
1365
1475
  <code id="cmdinstall" class="copy" title="click to copy">curl -fsSL https://agent-yes.com/setup.sh | sh</code>
1366
1476
  <span style="opacity:.6">Windows:</span>
1367
- <code id="cmdinstallwin" class="copy" title="click to copy">irm https://agent-yes.com/setup.ps1 | iex</code></div>
1477
+ <code id="cmdinstallwin" class="copy" title="click to copy">powershell -c "irm https://agent-yes.com/setup.ps1 | iex"</code></div>
1368
1478
  <div class="rconnect">share your own fleet — run this, then open the printed link:
1369
1479
  <code id="cmd" class="copy" title="click to copy">ay serve share</code></div>
1370
1480
  <div class="rconnect">or view a <b>codehost</b> room — paste <code>ch:&lt;room-token&gt;</code> (or a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.103.0",
3
+ "version": "1.104.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-CFWQFwe3.js";
2
- import "./logger-B9h0djqx.js";
3
- import "./versionChecker-IfF6V9MT.js";
4
- import "./pidStore-DBjlqzo8.js";
5
- import "./globalPidIndex-yVd3mbsV.js";
6
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DLa81elJ.js";
7
-
8
- export { SUPPORTED_CLIS };