agent-yes 1.239.0 → 1.239.1-beta.574.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.
Files changed (30) hide show
  1. package/dist/{SUPPORTED_CLIS-BAjpiDmM.js → SUPPORTED_CLIS-BOVUEpsO.js} +3 -3
  2. package/dist/{SUPPORTED_CLIS-B1KpRTn6.js → SUPPORTED_CLIS-DaG-ITJV.js} +2 -2
  3. package/dist/{agentShare-6AJaJhF_.js → agentShare-BuNHXIV9.js} +2 -2
  4. package/dist/{browser-CEP6GcDq.js → browser-D2s9Nzi0.js} +7 -83
  5. package/dist/{callback-FXxZhg1N.js → callback-DSjV3M8F.js} +2 -2
  6. package/dist/{callback-DWCY5gUu.js → callback-zG28xhMH.js} +3 -3
  7. package/dist/chunk-cZBX9HZv.js +20 -0
  8. package/dist/cli.js +5 -5
  9. package/dist/html2canvas-pro.esm-BZqMtqU8.js +10898 -0
  10. package/dist/index.js +2 -2
  11. package/dist/{notifyDaemon-DrLqT7fy.js → notifyDaemon-DhKg6cTC.js} +2 -2
  12. package/dist/{rustBinary-BDoH3nyt.js → rustBinary-DB_K2rXM.js} +2 -2
  13. package/dist/{schedule-Br--S5qc.js → schedule-CpEseQKa.js} +4 -4
  14. package/dist/{serve-DyQ-oFbD.js → serve-B_cxu02O.js} +13 -13
  15. package/dist/{setup-BEwSgz1-.js → setup-DXU5JihH.js} +2 -2
  16. package/dist/{subcommands-CCsfQjn6.js → subcommands-DxHfRakQ.js} +1 -1
  17. package/dist/{subcommands-CImOH-GZ.js → subcommands-IRHfQnKA.js} +11 -11
  18. package/dist/{terminal-oxQ_KbyG.js → terminal-B-b0lxbv.js} +2 -2
  19. package/dist/terminal.js +1 -1
  20. package/dist/{ts-Dg43iOPE.js → ts-Du7CQZSM.js} +3 -3
  21. package/dist/{versionChecker-D8DinCka.js → versionChecker-D_SJcFqG.js} +2 -2
  22. package/dist/{widget-CBPw56Wj.js → widget-CDVvaQe_.js} +14 -5
  23. package/dist/widget.js +9 -4
  24. package/dist/widgets.js +1 -1
  25. package/dist/{ws-RYCFiAx-.js → ws-3bcKMTXN.js} +2 -2
  26. package/package.json +2 -2
  27. package/ts/terminal/browser.ts +19 -56
  28. package/ts/widget.ts +15 -2
  29. package/dist/chunk-CNLfOXRf.js +0 -43
  30. package/dist/html2canvas-CWk6nh1H.js +0 -6718
@@ -1,11 +1,11 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-D8DinCka.js";
3
- import "./ts-Dg43iOPE.js";
2
+ import "./versionChecker-D_SJcFqG.js";
3
+ import "./ts-Du7CQZSM.js";
4
4
  import "./todoAutomation-Buo457VO.js";
5
5
  import "./JsonlStore-CPGIR0Wy.js";
6
6
  import "./globalPidIndex-D9DOSd-c.js";
7
7
  import "./pidStore-6EZd5DUv.js";
8
8
  import "./messageLog-C-YIzhRj.js";
9
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-B1KpRTn6.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DaG-ITJV.js";
10
10
 
11
11
  export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-Dg43iOPE.js";
1
+ import { t as CLIS_CONFIG } from "./ts-Du7CQZSM.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-B1KpRTn6.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-DaG-ITJV.js.map
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
3
3
  import "./messageLog-C-YIzhRj.js";
4
4
  import "./e2e-CEIdJGZ7.js";
5
5
  import "./configShared-9wVlbPyC.js";
6
- import { P as resolveOne } from "./subcommands-CImOH-GZ.js";
6
+ import { P as resolveOne } from "./subcommands-IRHfQnKA.js";
7
7
  import "./webrtcLink-BMYneHbu.js";
8
8
  import "./remotes-BxQnNxQv.js";
9
9
  import { a as startShare } from "./share-BGl3wutJ.js";
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
229
229
 
230
230
  //#endregion
231
231
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
232
- //# sourceMappingURL=agentShare-6AJaJhF_.js.map
232
+ //# sourceMappingURL=agentShare-BuNHXIV9.js.map
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./chunk-CNLfOXRf.js";
1
+ import { t as __commonJSMin } from "./chunk-cZBX9HZv.js";
2
2
 
3
3
  //#region node_modules/@xterm/xterm/lib/xterm.js
4
4
  var require_xterm = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -12992,47 +12992,9 @@ var require_xterm = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12992
12992
  })()));
12993
12993
  }));
12994
12994
 
12995
- //#endregion
12996
- //#region node_modules/@xterm/addon-fit/lib/addon-fit.js
12997
- var require_addon_fit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12998
- (function(e, t) {
12999
- "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.FitAddon = t() : e.FitAddon = t();
13000
- })(globalThis, (() => (() => {
13001
- "use strict";
13002
- var e = {};
13003
- return (() => {
13004
- var t = e;
13005
- Object.defineProperty(t, "__esModule", { value: !0 }), t.FitAddon = void 0, t.FitAddon = class {
13006
- activate(e) {
13007
- this._terminal = e;
13008
- }
13009
- dispose() {}
13010
- fit() {
13011
- const e = this.proposeDimensions();
13012
- if (!e || !this._terminal || isNaN(e.cols) || isNaN(e.rows)) return;
13013
- const t = this._terminal._core;
13014
- this._terminal.rows === e.rows && this._terminal.cols === e.cols || (t._renderService.clear(), this._terminal.resize(e.cols, e.rows));
13015
- }
13016
- proposeDimensions() {
13017
- if (!this._terminal) return;
13018
- if (!this._terminal.element || !this._terminal.element.parentElement) return;
13019
- const e = this._terminal._core._renderService.dimensions;
13020
- if (0 === e.css.cell.width || 0 === e.css.cell.height) return;
13021
- const t = 0 === this._terminal.options.scrollback ? 0 : this._terminal.options.overviewRuler?.width || 14, r = window.getComputedStyle(this._terminal.element.parentElement), i = parseInt(r.getPropertyValue("height")), o = Math.max(0, parseInt(r.getPropertyValue("width"))), s = window.getComputedStyle(this._terminal.element), n = i - (parseInt(s.getPropertyValue("padding-top")) + parseInt(s.getPropertyValue("padding-bottom"))), l = o - (parseInt(s.getPropertyValue("padding-right")) + parseInt(s.getPropertyValue("padding-left"))) - t;
13022
- return {
13023
- cols: Math.max(2, Math.floor(l / e.css.cell.width)),
13024
- rows: Math.max(1, Math.floor(n / e.css.cell.height))
13025
- };
13026
- }
13027
- };
13028
- })(), e;
13029
- })()));
13030
- }));
13031
-
13032
12995
  //#endregion
13033
12996
  //#region ts/terminal/browser.ts
13034
12997
  var import_xterm = require_xterm();
13035
- var import_addon_fit = require_addon_fit();
13036
12998
  var AyTerminal = class {
13037
12999
  pid;
13038
13000
  origin;
@@ -13042,13 +13004,11 @@ var AyTerminal = class {
13042
13004
  token;
13043
13005
  controls;
13044
13006
  term;
13045
- fit;
13046
13007
  es;
13047
13008
  widget;
13048
13009
  badgeEl;
13049
13010
  started = false;
13050
13011
  writable = false;
13051
- resizeTimer = null;
13052
13012
  constructor(info) {
13053
13013
  const o = typeof info === "string" || typeof info === "number" ? { pid: info } : info;
13054
13014
  if (o.pid === void 0 || o.pid === null || o.pid === "") throw new Error("AyTerminal: need a pid/keyword");
@@ -13087,10 +13047,6 @@ var AyTerminal = class {
13087
13047
  scrollback: 2e3,
13088
13048
  convertEol: false
13089
13049
  });
13090
- if (!this.readOnly) {
13091
- this.fit = new import_addon_fit.FitAddon();
13092
- this.term.loadAddon(this.fit);
13093
- }
13094
13050
  this.term.open(el);
13095
13051
  try {
13096
13052
  const res = await g.fetch(this.url(`/api/size/${encodeURIComponent(this.pid)}`), { headers: { accept: "application/json" } });
@@ -13139,27 +13095,6 @@ var AyTerminal = class {
13139
13095
  this.badgeEl.title = "reverted to read-only — this token can't write to the agent";
13140
13096
  }
13141
13097
  }
13142
- /**
13143
- * Push a PTY resize to the agent (interactive only). Debounced, gated on a
13144
- * still-writable token; a 403 reverts to read-only.
13145
- */
13146
- pushPtyResize(cols, rows) {
13147
- if (this.readOnly || !this.writable) return;
13148
- const g = globalThis;
13149
- clearTimeout(this.resizeTimer);
13150
- this.resizeTimer = setTimeout(() => {
13151
- g.fetch(this.url(`/api/resize/${encodeURIComponent(this.pid)}`), {
13152
- method: "POST",
13153
- headers: { "content-type": "application/json" },
13154
- body: JSON.stringify({
13155
- cols,
13156
- rows
13157
- })
13158
- }).then((r) => {
13159
- if (r.status === 403 || r.status === 401) this.revokeWrite();
13160
- }).catch(() => {});
13161
- }, 200);
13162
- }
13163
13098
  /** Tear down the stream, the terminal, and the mounted widget. */
13164
13099
  close() {
13165
13100
  this.es?.close();
@@ -13202,27 +13137,16 @@ var AyTerminal = class {
13202
13137
  this.badgeEl = root.getElementById("badge");
13203
13138
  if (this.transparent) panel.classList.add("transparent");
13204
13139
  const reflow = () => {
13205
- if (this.readOnly) {
13206
- const xt = inner.querySelector(".xterm");
13207
- if (!xt || !xt.offsetWidth || !xt.offsetHeight) return;
13208
- const s = Math.min(1, wrap.clientWidth / xt.offsetWidth, wrap.clientHeight / xt.offsetHeight);
13209
- inner.style.transform = `scale(${s})`;
13210
- } else if (this.fit) {
13211
- const d = this.fit.proposeDimensions?.();
13212
- if (d?.cols && d?.rows && this.term) {
13213
- this.term.resize(d.cols, d.rows);
13214
- this.pushPtyResize(d.cols, d.rows);
13215
- }
13216
- }
13140
+ const xt = inner.querySelector(".xterm");
13141
+ if (!xt || !xt.offsetWidth || !xt.offsetHeight) return;
13142
+ const s = Math.min(1, wrap.clientWidth / xt.offsetWidth, wrap.clientHeight / xt.offsetHeight);
13143
+ inner.style.transform = `scale(${s})`;
13217
13144
  };
13218
13145
  if (inline) try {
13219
13146
  const cs = g.getComputedStyle?.(target);
13220
13147
  if (cs && cs.position === "static") target.style.position = "relative";
13221
13148
  } catch {}
13222
- else {
13223
- inner.style.inset = this.readOnly ? "" : "0";
13224
- this.wireWindow(root, panel, doc, reflow);
13225
- }
13149
+ else this.wireWindow(root, panel, doc, reflow);
13226
13150
  try {
13227
13151
  new g.ResizeObserver(() => reflow()).observe(wrap);
13228
13152
  } catch {}
@@ -13511,4 +13435,4 @@ const XTERM_CSS = `
13511
13435
 
13512
13436
  //#endregion
13513
13437
  export { AyTerminal as t };
13514
- //# sourceMappingURL=browser-CEP6GcDq.js.map
13438
+ //# sourceMappingURL=browser-D2s9Nzi0.js.map
@@ -3,10 +3,10 @@ import "./globalPidIndex-D9DOSd-c.js";
3
3
  import "./messageLog-C-YIzhRj.js";
4
4
  import "./e2e-CEIdJGZ7.js";
5
5
  import "./configShared-9wVlbPyC.js";
6
- import "./subcommands-CImOH-GZ.js";
6
+ import "./subcommands-IRHfQnKA.js";
7
7
  import "./webrtcLink-BMYneHbu.js";
8
8
  import "./remotes-BxQnNxQv.js";
9
9
  import "./callbackCore-Dd28_cBM.js";
10
- import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-DWCY5gUu.js";
10
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-zG28xhMH.js";
11
11
 
12
12
  export { cmdCallback };
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
2
- import { P as resolveOne } from "./subcommands-CImOH-GZ.js";
2
+ import { P as resolveOne } from "./subcommands-IRHfQnKA.js";
3
3
  import { a as mintCapability, o as parseExpires } from "./callbackCore-Dd28_cBM.js";
4
4
  import { randomBytes } from "node:crypto";
5
5
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -72,7 +72,7 @@ async function resolveBase(flag) {
72
72
  if (flag) return flag;
73
73
  if (process.env.AGENT_YES_CALLBACK_BASE) return process.env.AGENT_YES_CALLBACK_BASE;
74
74
  try {
75
- const { resolveLocalServeUrl } = await import("./serve-DyQ-oFbD.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-B_cxu02O.js");
76
76
  const url = await resolveLocalServeUrl();
77
77
  if (url) return url;
78
78
  } catch {}
@@ -187,4 +187,4 @@ async function cmdCallback(rest) {
187
187
 
188
188
  //#endregion
189
189
  export { loadOrCreateCallbackSecret as i, isCallbackRevoked as n, loadCallbackSecretReadOnly as r, cmdCallback as t };
190
- //# sourceMappingURL=callback-DWCY5gUu.js.map
190
+ //# sourceMappingURL=callback-zG28xhMH.js.map
@@ -0,0 +1,20 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
4
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
5
+ var __exportAll = (all, no_symbols) => {
6
+ let target = {};
7
+ for (var name in all) {
8
+ __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ }
13
+ if (!no_symbols) {
14
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
15
+ }
16
+ return target;
17
+ };
18
+
19
+ //#endregion
20
+ export { __esmMin as n, __exportAll as r, __commonJSMin as t };
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-D8DinCka.js";
5
- import { n as getRustBinary } from "./rustBinary-BDoH3nyt.js";
4
+ import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-D_SJcFqG.js";
5
+ import { n as getRustBinary } from "./rustBinary-DB_K2rXM.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, isUnknownManagerToken } = await import("./subcommands-CCsfQjn6.js");
288
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-DxHfRakQ.js");
289
289
  if (isHelpFlag && process.argv.length === 3) {
290
290
  await cmdHelp(managerCommands);
291
291
  process.exit(0);
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
295
295
  process.exit(code ?? 0);
296
296
  }
297
297
  {
298
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BAjpiDmM.js");
298
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BOVUEpsO.js");
299
299
  if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
300
300
  process.stderr.write(`ay: unknown subcommand or CLI '${rawArg}'.\n See 'ay help' for subcommands. To run an agent, name a CLI:\n 'ay <cli> …' (e.g. 'ay claude …') or 'ay --cli <cli> …'.\n`);
301
301
  process.exit(1);
@@ -346,7 +346,7 @@ if (config.useRust) {
346
346
  }
347
347
  }
348
348
  if (rustBinary) {
349
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BAjpiDmM.js");
349
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BOVUEpsO.js");
350
350
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
351
351
  if (config.verbose) {
352
352
  console.log(`[rust] Using binary: ${rustBinary}`);