agent-yes 1.238.2 → 1.239.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.
Files changed (49) hide show
  1. package/dist/{SUPPORTED_CLIS-C2CFOND-.js → SUPPORTED_CLIS-B1KpRTn6.js} +2 -2
  2. package/dist/{SUPPORTED_CLIS-DmflHNKL.js → SUPPORTED_CLIS-BAjpiDmM.js} +3 -3
  3. package/dist/{agentShare-CyDqjBM_.js → agentShare-6AJaJhF_.js} +5 -5
  4. package/dist/{browser-BRMyG4JA.js → browser-CEP6GcDq.js} +2 -2
  5. package/dist/{callback-D-kUTlR6.js → callback-DWCY5gUu.js} +5 -5
  6. package/dist/{callback-Bb5dBd02.js → callback-FXxZhg1N.js} +5 -5
  7. package/dist/{callbackCore-CvmGSvrj.js → callbackCore-Cd4mYekY.js} +1 -1
  8. package/dist/{callbackCore-DAYcemCC.js → callbackCore-Dd28_cBM.js} +1 -1
  9. package/dist/{channels-CMNMFJlY.js → channels-H4PBBker.js} +2 -2
  10. package/dist/chunk-CNLfOXRf.js +43 -0
  11. package/dist/cli.js +11 -11
  12. package/dist/{cwdConflictWarn-DWHWlBxS.js → cwdConflictWarn-DEJHqTZ4.js} +1 -1
  13. package/dist/{cwdDeprecation-Cd8Ykm2t.js → cwdDeprecation-Cd-4t7lI.js} +1 -1
  14. package/dist/{expose-DROTwbyU.js → expose-Ct28jckQ.js} +1 -1
  15. package/dist/{forkNested-DqPisz9d.js → forkNested-BW2OmXjA.js} +1 -1
  16. package/dist/html2canvas-CWk6nh1H.js +6718 -0
  17. package/dist/index.js +2 -2
  18. package/dist/{nodeRuntime-Bf88NPqj.js → nodeRuntime-BtL6Oo1o.js} +1 -1
  19. package/dist/{notifyDaemon-BjyUCpbx.js → notifyDaemon-DrLqT7fy.js} +4 -4
  20. package/dist/{openBrowser-ChLcPELv.js → openBrowser-DifNZwyn.js} +1 -1
  21. package/dist/{remotes-Bem6WIyU.js → remotes-BxQnNxQv.js} +3 -3
  22. package/dist/{remotes-BClMgQZW.js → remotes-DNLZlk9U.js} +2 -2
  23. package/dist/{rustBinary-CCi6Sqh5.js → rustBinary-BDoH3nyt.js} +2 -2
  24. package/dist/{schedule-CHSe24Je.js → schedule-Br--S5qc.js} +6 -6
  25. package/dist/{serve-CuMtnSLs.js → serve-DyQ-oFbD.js} +28 -27
  26. package/dist/{setup-wPtsNZZ5.js → setup-BEwSgz1-.js} +3 -3
  27. package/dist/{share-B9u8-I3y.js → share-BGl3wutJ.js} +1 -1
  28. package/dist/{share--aHaPSjt.js → share-DchOdgBz.js} +1 -1
  29. package/dist/{spawnGate-Bo_LFgt9.js → spawnGate-BxgS_GlF.js} +2 -2
  30. package/dist/{spawnGate-CuWCd2im.js → spawnGate-Dc3odVqo.js} +1 -1
  31. package/dist/{subcommands-z2YriUNK.js → subcommands-CCsfQjn6.js} +3 -3
  32. package/dist/{subcommands-CuvZqZTM.js → subcommands-CImOH-GZ.js} +18 -18
  33. package/dist/{terminal-CBbBQMcT.js → terminal-oxQ_KbyG.js} +2 -2
  34. package/dist/terminal.js +1 -1
  35. package/dist/{todoCli-CNNR9Czu.js → todoCli-DhD3G8Et.js} +1 -1
  36. package/dist/{tray-D5qFaqlS.js → tray-DpswPpBI.js} +1 -1
  37. package/dist/{ts-Cnhsw8GN.js → ts-Dg43iOPE.js} +3 -3
  38. package/dist/{versionChecker-CBzYImFt.js → versionChecker-D8DinCka.js} +2 -2
  39. package/dist/{webrtcLink-VQhWmKOw.js → webrtcLink-BMYneHbu.js} +1 -1
  40. package/dist/{webrtcRemote-DJDtCTpj.js → webrtcRemote-D9ENKmzx.js} +2 -2
  41. package/dist/{widget-j4TWqwpU.js → widget-CBPw56Wj.js} +29 -5
  42. package/dist/widget.js +124 -0
  43. package/dist/widgets.js +1 -1
  44. package/dist/{workspaceConfig-B7HaQ-MI.js → workspaceConfig-DOHygA2x.js} +1 -1
  45. package/dist/{ws-53rrEEbz.js → ws-RYCFiAx-.js} +5 -5
  46. package/package.json +4 -3
  47. package/ts/serve.ts +3 -1
  48. package/ts/widget.ts +36 -2
  49. package/dist/chunk-cZBX9HZv.js +0 -20
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-Cnhsw8GN.js";
1
+ import { t as CLIS_CONFIG } from "./ts-Dg43iOPE.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-C2CFOND-.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-B1KpRTn6.js.map
@@ -1,11 +1,11 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-CBzYImFt.js";
3
- import "./ts-Cnhsw8GN.js";
2
+ import "./versionChecker-D8DinCka.js";
3
+ import "./ts-Dg43iOPE.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-C2CFOND-.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-B1KpRTn6.js";
10
10
 
11
11
  export { SUPPORTED_CLIS };
@@ -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 { P as resolveOne } from "./subcommands-CuvZqZTM.js";
7
- import "./webrtcLink-VQhWmKOw.js";
8
- import "./remotes-Bem6WIyU.js";
9
- import { a as startShare } from "./share-B9u8-I3y.js";
6
+ import { P as resolveOne } from "./subcommands-CImOH-GZ.js";
7
+ import "./webrtcLink-BMYneHbu.js";
8
+ import "./remotes-BxQnNxQv.js";
9
+ import { a as startShare } from "./share-BGl3wutJ.js";
10
10
 
11
11
  //#region ts/agentShare.ts
12
12
  const MAX_SHARES = 8;
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
229
229
 
230
230
  //#endregion
231
231
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
232
- //# sourceMappingURL=agentShare-CyDqjBM_.js.map
232
+ //# sourceMappingURL=agentShare-6AJaJhF_.js.map
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./chunk-cZBX9HZv.js";
1
+ import { t as __commonJSMin } from "./chunk-CNLfOXRf.js";
2
2
 
3
3
  //#region node_modules/@xterm/xterm/lib/xterm.js
4
4
  var require_xterm = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -13511,4 +13511,4 @@ const XTERM_CSS = `
13511
13511
 
13512
13512
  //#endregion
13513
13513
  export { AyTerminal as t };
13514
- //# sourceMappingURL=browser-BRMyG4JA.js.map
13514
+ //# sourceMappingURL=browser-CEP6GcDq.js.map
@@ -1,6 +1,6 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
2
- import { P as resolveOne } from "./subcommands-CuvZqZTM.js";
3
- import { a as mintCapability, o as parseExpires } from "./callbackCore-DAYcemCC.js";
2
+ import { P as resolveOne } from "./subcommands-CImOH-GZ.js";
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";
6
6
  import path from "node:path";
@@ -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-CuMtnSLs.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-DyQ-oFbD.js");
76
76
  const url = await resolveLocalServeUrl();
77
77
  if (url) return url;
78
78
  } catch {}
@@ -170,7 +170,7 @@ async function cmdCallback(rest) {
170
170
  createdAt: Date.now()
171
171
  };
172
172
  saveStore(all);
173
- const { buildSnippet } = await import("./callbackCore-CvmGSvrj.js");
173
+ const { buildSnippet } = await import("./callbackCore-Cd4mYekY.js");
174
174
  w(`callback ${id} → ${record.cli} #${record.pid} @ ${record.cwd}`);
175
175
  w(`expires: ${new Date(exp).toISOString()} (${expiresSpec})`);
176
176
  w(`endpoint: ${base.replace(/\/+$/, "")}/cb/${cap}`);
@@ -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-D-kUTlR6.js.map
190
+ //# sourceMappingURL=callback-DWCY5gUu.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-CuvZqZTM.js";
7
- import "./webrtcLink-VQhWmKOw.js";
8
- import "./remotes-Bem6WIyU.js";
9
- import "./callbackCore-DAYcemCC.js";
10
- import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-D-kUTlR6.js";
6
+ import "./subcommands-CImOH-GZ.js";
7
+ import "./webrtcLink-BMYneHbu.js";
8
+ import "./remotes-BxQnNxQv.js";
9
+ import "./callbackCore-Dd28_cBM.js";
10
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-DWCY5gUu.js";
11
11
 
12
12
  export { cmdCallback };
@@ -1,3 +1,3 @@
1
- import { a as mintCapability, i as frameVisitorMessage, n as MAX_EXPIRES_MS, o as parseExpires, r as buildSnippet, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-DAYcemCC.js";
1
+ import { a as mintCapability, i as frameVisitorMessage, n as MAX_EXPIRES_MS, o as parseExpires, r as buildSnippet, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Dd28_cBM.js";
2
2
 
3
3
  export { buildSnippet };
@@ -140,4 +140,4 @@ function buildSnippet(opts) {
140
140
 
141
141
  //#endregion
142
142
  export { mintCapability as a, frameVisitorMessage as i, MAX_EXPIRES_MS as n, parseExpires as o, buildSnippet as r, verifyCapability as s, MAX_CALLBACK_MSG_BYTES as t };
143
- //# sourceMappingURL=callbackCore-DAYcemCC.js.map
143
+ //# sourceMappingURL=callbackCore-Dd28_cBM.js.map
@@ -387,7 +387,7 @@ function printOp(op) {
387
387
  */
388
388
  async function runMesh(cwd, entry, opts) {
389
389
  const { ChannelPeer } = await import("./peer-D5lr1Afv.js");
390
- const { importRTC, getIceServers } = await import("./share--aHaPSjt.js");
390
+ const { importRTC, getIceServers } = await import("./share-DchOdgBz.js");
391
391
  const rtc = await importRTC();
392
392
  const seen = new Set((await readOps(cwd, entry.channelId)).map((o) => o.id));
393
393
  const peer = new ChannelPeer({
@@ -567,4 +567,4 @@ async function cmdCh(args) {
567
567
 
568
568
  //#endregion
569
569
  export { cmdCh };
570
- //# sourceMappingURL=channels-CMNMFJlY.js.map
570
+ //# sourceMappingURL=channels-H4PBBker.js.map
@@ -0,0 +1,43 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
9
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
+ var __exportAll = (all, no_symbols) => {
11
+ let target = {};
12
+ for (var name in all) {
13
+ __defProp(target, name, {
14
+ get: all[name],
15
+ enumerable: true
16
+ });
17
+ }
18
+ if (!no_symbols) {
19
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
20
+ }
21
+ return target;
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
+ key = keys[i];
27
+ if (!__hasOwnProp.call(to, key) && key !== except) {
28
+ __defProp(to, key, {
29
+ get: ((k) => from[k]).bind(null, key),
30
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
31
+ });
32
+ }
33
+ }
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
38
+ value: mod,
39
+ enumerable: true
40
+ }) : target, mod));
41
+
42
+ //#endregion
43
+ export { __toESM as i, __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-CBzYImFt.js";
5
- import { n as getRustBinary } from "./rustBinary-CCi6Sqh5.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";
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-z2YriUNK.js");
288
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-CCsfQjn6.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-DmflHNKL.js");
298
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BAjpiDmM.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);
@@ -303,7 +303,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
303
303
  }
304
304
  }
305
305
  {
306
- const { detectCwdDeprecation, SUPPRESS_CWD_WARN_ENV } = await import("./cwdDeprecation-Cd8Ykm2t.js");
306
+ const { detectCwdDeprecation, SUPPRESS_CWD_WARN_ENV } = await import("./cwdDeprecation-Cd-4t7lI.js");
307
307
  const dep = detectCwdDeprecation(process.argv);
308
308
  if (dep) {
309
309
  console.warn(dep.message);
@@ -314,16 +314,16 @@ await checkAndAutoUpdate();
314
314
  logger.info(versionString());
315
315
  const config = parseCliArgs(process.argv);
316
316
  if (config.tray) {
317
- const { startTray } = await import("./tray-D5qFaqlS.js");
317
+ const { startTray } = await import("./tray-DpswPpBI.js");
318
318
  await startTray();
319
319
  await new Promise(() => {});
320
320
  }
321
321
  {
322
- const { ensureTray } = await import("./tray-D5qFaqlS.js");
322
+ const { ensureTray } = await import("./tray-DpswPpBI.js");
323
323
  ensureTray();
324
324
  }
325
325
  if (!config.showVersion && !config.appendPrompt && !config.tray) {
326
- const { waitForSpawnCapacity } = await import("./spawnGate-CuWCd2im.js");
326
+ const { waitForSpawnCapacity } = await import("./spawnGate-Dc3odVqo.js");
327
327
  await waitForSpawnCapacity({
328
328
  onWait: (reason, waitedMs) => {
329
329
  if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
@@ -332,7 +332,7 @@ if (!config.showVersion && !config.appendPrompt && !config.tray) {
332
332
  });
333
333
  }
334
334
  if (!config.showVersion && !config.appendPrompt && !config.tray) {
335
- const { warnIfCwdOccupied } = await import("./cwdConflictWarn-DWHWlBxS.js");
335
+ const { warnIfCwdOccupied } = await import("./cwdConflictWarn-DEJHqTZ4.js");
336
336
  await warnIfCwdOccupied(process.argv);
337
337
  }
338
338
  if (config.useRust) {
@@ -346,14 +346,14 @@ if (config.useRust) {
346
346
  }
347
347
  }
348
348
  if (rustBinary) {
349
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-DmflHNKL.js");
349
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-BAjpiDmM.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}`);
353
353
  console.log(`[rust] Args: ${rustArgs.join(" ")}`);
354
354
  }
355
355
  const attach = config.attach || process.env.AGENT_YES_ATTACH === "1";
356
- const { shouldForkNested, buildSpawnTutorial, waitForFifo } = await import("./forkNested-DqPisz9d.js");
356
+ const { shouldForkNested, buildSpawnTutorial, waitForFifo } = await import("./forkNested-BW2OmXjA.js");
357
357
  if (shouldForkNested({
358
358
  isTTY: Boolean(process.stdout.isTTY),
359
359
  ayPid: process.env.AGENT_YES_PID,
@@ -61,4 +61,4 @@ async function warnIfCwdOccupied(rawArgv) {
61
61
 
62
62
  //#endregion
63
63
  export { warnIfCwdOccupied };
64
- //# sourceMappingURL=cwdConflictWarn-DWHWlBxS.js.map
64
+ //# sourceMappingURL=cwdConflictWarn-DEJHqTZ4.js.map
@@ -75,4 +75,4 @@ function detectCwdDeprecation(argv) {
75
75
 
76
76
  //#endregion
77
77
  export { SUPPRESS_CWD_WARN_ENV, detectCwdDeprecation };
78
- //# sourceMappingURL=cwdDeprecation-Cd8Ykm2t.js.map
78
+ //# sourceMappingURL=cwdDeprecation-Cd-4t7lI.js.map
@@ -546,4 +546,4 @@ async function cmdExpose(args) {
546
546
 
547
547
  //#endregion
548
548
  export { cmdExpose, ensureExposure, listExposures, stopExposure };
549
- //# sourceMappingURL=expose-DROTwbyU.js.map
549
+ //# sourceMappingURL=expose-Ct28jckQ.js.map
@@ -56,4 +56,4 @@ async function waitForFifo(pid, timeoutMs = 2e3, aborted) {
56
56
 
57
57
  //#endregion
58
58
  export { buildSpawnTutorial, shouldForkNested, waitForFifo };
59
- //# sourceMappingURL=forkNested-DqPisz9d.js.map
59
+ //# sourceMappingURL=forkNested-BW2OmXjA.js.map