nolo-cli 0.30.0 → 1.0.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 (102) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-MYLWE5K2.js} +31 -30
  2. package/{action-FENWPT3C.js → action-P5NVIGGG.js} +7 -7
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-V2QQUJ32.js} +6 -6
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-536QKJ6L.js} +5 -5
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-RIILFDSH.js} +24 -23
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-KWJ5CUHY.js} +36 -35
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-BZZSDNCU.js} +26 -25
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-Q7LS3LQH.js} +24 -23
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-SJUBM3AJ.js} +35 -34
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-6O2VTHXQ.js} +35 -34
  11. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-43ZQHP35.js} +21 -20
  12. package/{agentSlice-3ZHY7RAO.js → agentSlice-JLADUWUP.js} +6 -6
  13. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-4UNQSSWN.js} +25 -24
  14. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-KG2BZXOG.js} +25 -24
  15. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-KF7DF2YA.js} +25 -24
  16. package/{appGetCommands-UOCWYJPV.js → appGetCommands-QPHSEE5N.js} +25 -24
  17. package/{appListCommands-EOKWTXPW.js → appListCommands-F3EP542I.js} +25 -24
  18. package/{authCommand-H5KE7K7K.js → authCommand-YLP77TMC.js} +5 -5
  19. package/{chunk-IZ3CBMD5.js → chunk-2U6OW2C3.js} +4 -4
  20. package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
  21. package/{chunk-TJYWZ3LO.js → chunk-75XQT73Q.js} +2 -2
  22. package/{chunk-7CD24PU4.js → chunk-B4HGX366.js} +6 -6
  23. package/{chunk-KWKD3BCC.js → chunk-BSMTXN5T.js} +11 -11
  24. package/{chunk-MMCVBEAD.js → chunk-D6K6XCUJ.js} +25 -23
  25. package/{chunk-A4JDTA5T.js → chunk-DFPTW7QE.js} +6 -6
  26. package/{chunk-YWGSCF37.js → chunk-DWZMXGKK.js} +1 -1
  27. package/{chunk-ZFTCLBEX.js → chunk-E5WZMGFH.js} +417 -237
  28. package/{chunk-DCWBP2O7.js → chunk-EAKXD6CA.js} +10 -10
  29. package/{chunk-VSTUQGLT.js → chunk-ECHKECDC.js} +170 -42
  30. package/{chunk-QLV2GKU5.js → chunk-FCHECEX7.js} +7 -5
  31. package/{chunk-DWQNDGO7.js → chunk-FD6FKCDH.js} +2 -2
  32. package/{chunk-GAGUBI42.js → chunk-GD5XAUJ3.js} +5 -5
  33. package/{chunk-VP4WJWKW.js → chunk-GM6PU7B6.js} +431 -345
  34. package/{chunk-KW47OSRJ.js → chunk-HC73BU6M.js} +50 -70
  35. package/{chunk-3LY4F7SV.js → chunk-INZZJSQF.js} +348 -331
  36. package/{chunk-G6VITLCZ.js → chunk-IT7IN5AX.js} +2 -2
  37. package/{chunk-Q24P6TUS.js → chunk-JQFRQWGN.js} +1 -1
  38. package/{chunk-FS5TTXPS.js → chunk-JZTOEZJ4.js} +4 -4
  39. package/{chunk-UKC5HU2C.js → chunk-KHYNTGOT.js} +5 -5
  40. package/{chunk-MEUZFIAJ.js → chunk-KMGSN747.js} +1 -1
  41. package/{chunk-CV6I4HBA.js → chunk-KR6G42Z2.js} +1 -1
  42. package/{chunk-HI7QZNWX.js → chunk-KU6JXKVW.js} +4 -4
  43. package/{chunk-2XM5KUNE.js → chunk-LE5PV7CF.js} +2 -2
  44. package/{chunk-SWOTB2TX.js → chunk-LOZF4FBI.js} +43 -36
  45. package/{chunk-66O5MZYH.js → chunk-MZIHJGB5.js} +1 -1
  46. package/{chunk-T3Y5EMJS.js → chunk-N6F6HKEE.js} +1 -1
  47. package/{chunk-DI6MXJK5.js → chunk-NHOV2D4N.js} +16 -14
  48. package/{chunk-HLG6GAUD.js → chunk-NLEEVJZU.js} +1 -1
  49. package/{chunk-446VANPP.js → chunk-OJE3M2CY.js} +4 -4
  50. package/{chunk-DKRT67FG.js → chunk-OMR6FM26.js} +3 -3
  51. package/{chunk-GVKTKT3O.js → chunk-ORCLFNKB.js} +3 -3
  52. package/{chunk-BOL2D2JW.js → chunk-QGSD46W6.js} +2 -2
  53. package/{chunk-L3VQOVKK.js → chunk-R3YEGS4D.js} +3 -3
  54. package/{chunk-56IUA7RU.js → chunk-RXGTXWYH.js} +1 -1
  55. package/{chunk-UTQZ73QQ.js → chunk-SVZ6MSA3.js} +1 -1
  56. package/{chunk-YLADSPDU.js → chunk-U2I2DYUD.js} +2 -2
  57. package/chunk-UD4A2FNM.js +7923 -0
  58. package/{chunk-OYK7PA5U.js → chunk-UEH4ANWR.js} +6 -6
  59. package/chunk-UUNZE2KQ.js +5558 -0
  60. package/{chunk-3RIWR23B.js → chunk-VWBCW4JY.js} +1 -1
  61. package/{chunk-SZ5CBYMZ.js → chunk-W427FQJD.js} +2 -2
  62. package/{chunk-W2YKDXT7.js → chunk-XBACY73D.js} +1 -1
  63. package/{chunk-G5JHHUAK.js → chunk-XD6JM3SC.js} +1 -1
  64. package/{chunk-XD5NQEOH.js → chunk-ZIKG63EC.js} +1 -1
  65. package/{clipboardy-BVE3LVEH.js → clipboardy-MMBYVRLF.js} +166 -372
  66. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-B6ZSNUUI.js} +12 -11
  67. package/{createDialogAction-R5MCL4RE.js → createDialogAction-G34J7HP5.js} +13 -12
  68. package/{createPageAction-QYTG656R.js → createPageAction-KL4OCNNH.js} +14 -13
  69. package/{dbSlice-OBV7VFCF.js → dbSlice-6IRTSQLA.js} +5 -5
  70. package/{deleteFile-AC45HYSM.js → deleteFile-TSEW36N4.js} +3 -3
  71. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-PHH75OPO.js} +25 -24
  72. package/{dialogSlice-CFDECXEU.js → dialogSlice-2B5AGZXL.js} +11 -11
  73. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-2EZAGRNU.js} +24 -23
  74. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-ZYL2JBF2.js} +25 -24
  75. package/{docReadCommands-6J7MUUX6.js → docReadCommands-Q5HGLLRZ.js} +24 -23
  76. package/{docStore-MZZWJM4F.js → docStore-CCQWPWYV.js} +13 -12
  77. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-KGOPINTR.js} +24 -23
  78. package/{getPricing-XQYSSVV6.js → getPricing-6FIKFX4A.js} +2 -2
  79. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-TS5MF7R4.js} +11 -11
  80. package/index.js +58 -58
  81. package/{lib-FYYBQIXS.js → lib-2ZTNRXR4.js} +432 -183
  82. package/{machineCommands-Z2QEWTHZ.js → machineCommands-4UGY53XP.js} +34 -33
  83. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-6KNOLLYI.js} +34 -33
  84. package/package.json +1 -1
  85. package/{read-QK7ZRX6G.js → read-UMWKE5D4.js} +3 -3
  86. package/{readDocTool-EYDMVRBL.js → readDocTool-FEHZDVEE.js} +1 -1
  87. package/{readlineWorkspace-EY3BPXIU.js → readlineWorkspace-7YWWGBSU.js} +97 -59
  88. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-X32EDHZX.js} +7 -7
  89. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-UQ23LEWR.js} +27 -26
  90. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-VGI5CCSY.js} +6 -6
  91. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-QOFXGQT6.js} +7 -7
  92. package/{settingSlice-JKKV2T7O.js → settingSlice-RHSYAKFT.js} +6 -6
  93. package/{slateUtils-2M7MUTWX.js → slateUtils-VO2FU36K.js} +1 -1
  94. package/{spaceCommands-R6AEQNLG.js → spaceCommands-GH5DTWKY.js} +208 -26
  95. package/{spaceSlice-MCH7RLLP.js → spaceSlice-AW66HZHQ.js} +12 -11
  96. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-TZQZFDJQ.js} +32 -30
  97. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-KX56UKUF.js} +5 -5
  98. package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
  99. package/{tools-Y3UBLLYW.js → tools-FO7J53WL.js} +22 -21
  100. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-OX5M2GJW.js} +3 -3
  101. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-FVDTGJNA.js} +15 -13
  102. package/chunk-THTAR67C.js +0 -16338
@@ -9,8 +9,8 @@ var require_windows = __commonJS({
9
9
  "node_modules/isexe/windows.js"(exports, module) {
10
10
  module.exports = isexe;
11
11
  isexe.sync = sync;
12
- var fs7 = __require("fs");
13
- function checkPathExt(path8, options) {
12
+ var fs8 = __require("fs");
13
+ function checkPathExt(path9, options) {
14
14
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
15
15
  if (!pathext) {
16
16
  return true;
@@ -21,25 +21,25 @@ var require_windows = __commonJS({
21
21
  }
22
22
  for (var i2 = 0; i2 < pathext.length; i2++) {
23
23
  var p = pathext[i2].toLowerCase();
24
- if (p && path8.substr(-p.length).toLowerCase() === p) {
24
+ if (p && path9.substr(-p.length).toLowerCase() === p) {
25
25
  return true;
26
26
  }
27
27
  }
28
28
  return false;
29
29
  }
30
- function checkStat(stat, path8, options) {
30
+ function checkStat(stat, path9, options) {
31
31
  if (!stat.isSymbolicLink() && !stat.isFile()) {
32
32
  return false;
33
33
  }
34
- return checkPathExt(path8, options);
34
+ return checkPathExt(path9, options);
35
35
  }
36
- function isexe(path8, options, cb) {
37
- fs7.stat(path8, function(er, stat) {
38
- cb(er, er ? false : checkStat(stat, path8, options));
36
+ function isexe(path9, options, cb) {
37
+ fs8.stat(path9, function(er, stat) {
38
+ cb(er, er ? false : checkStat(stat, path9, options));
39
39
  });
40
40
  }
41
- function sync(path8, options) {
42
- return checkStat(fs7.statSync(path8), path8, options);
41
+ function sync(path9, options) {
42
+ return checkStat(fs8.statSync(path9), path9, options);
43
43
  }
44
44
  }
45
45
  });
@@ -49,14 +49,14 @@ var require_mode = __commonJS({
49
49
  "node_modules/isexe/mode.js"(exports, module) {
50
50
  module.exports = isexe;
51
51
  isexe.sync = sync;
52
- var fs7 = __require("fs");
53
- function isexe(path8, options, cb) {
54
- fs7.stat(path8, function(er, stat) {
52
+ var fs8 = __require("fs");
53
+ function isexe(path9, options, cb) {
54
+ fs8.stat(path9, function(er, stat) {
55
55
  cb(er, er ? false : checkStat(stat, options));
56
56
  });
57
57
  }
58
- function sync(path8, options) {
59
- return checkStat(fs7.statSync(path8), options);
58
+ function sync(path9, options) {
59
+ return checkStat(fs8.statSync(path9), options);
60
60
  }
61
61
  function checkStat(stat, options) {
62
62
  return stat.isFile() && checkMode(stat, options);
@@ -80,7 +80,7 @@ var require_mode = __commonJS({
80
80
  // node_modules/isexe/index.js
81
81
  var require_isexe = __commonJS({
82
82
  "node_modules/isexe/index.js"(exports, module) {
83
- var fs7 = __require("fs");
83
+ var fs8 = __require("fs");
84
84
  var core;
85
85
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
86
86
  core = require_windows();
@@ -89,7 +89,7 @@ var require_isexe = __commonJS({
89
89
  }
90
90
  module.exports = isexe;
91
91
  isexe.sync = sync;
92
- function isexe(path8, options, cb) {
92
+ function isexe(path9, options, cb) {
93
93
  if (typeof options === "function") {
94
94
  cb = options;
95
95
  options = {};
@@ -99,7 +99,7 @@ var require_isexe = __commonJS({
99
99
  throw new TypeError("callback not provided");
100
100
  }
101
101
  return new Promise(function(resolve, reject) {
102
- isexe(path8, options || {}, function(er, is) {
102
+ isexe(path9, options || {}, function(er, is) {
103
103
  if (er) {
104
104
  reject(er);
105
105
  } else {
@@ -108,7 +108,7 @@ var require_isexe = __commonJS({
108
108
  });
109
109
  });
110
110
  }
111
- core(path8, options || {}, function(er, is) {
111
+ core(path9, options || {}, function(er, is) {
112
112
  if (er) {
113
113
  if (er.code === "EACCES" || options && options.ignoreErrors) {
114
114
  er = null;
@@ -118,9 +118,9 @@ var require_isexe = __commonJS({
118
118
  cb(er, is);
119
119
  });
120
120
  }
121
- function sync(path8, options) {
121
+ function sync(path9, options) {
122
122
  try {
123
- return core.sync(path8, options || {});
123
+ return core.sync(path9, options || {});
124
124
  } catch (er) {
125
125
  if (options && options.ignoreErrors || er.code === "EACCES") {
126
126
  return false;
@@ -136,7 +136,7 @@ var require_isexe = __commonJS({
136
136
  var require_which = __commonJS({
137
137
  "node_modules/which/which.js"(exports, module) {
138
138
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
139
- var path8 = __require("path");
139
+ var path9 = __require("path");
140
140
  var COLON = isWindows ? ";" : ":";
141
141
  var isexe = require_isexe();
142
142
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -174,7 +174,7 @@ var require_which = __commonJS({
174
174
  return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
175
175
  const ppRaw = pathEnv[i2];
176
176
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
177
- const pCmd = path8.join(pathPart, cmd);
177
+ const pCmd = path9.join(pathPart, cmd);
178
178
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
179
179
  resolve(subStep(p, i2, 0));
180
180
  });
@@ -201,7 +201,7 @@ var require_which = __commonJS({
201
201
  for (let i2 = 0; i2 < pathEnv.length; i2++) {
202
202
  const ppRaw = pathEnv[i2];
203
203
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
204
- const pCmd = path8.join(pathPart, cmd);
204
+ const pCmd = path9.join(pathPart, cmd);
205
205
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
206
206
  for (let j = 0; j < pathExt.length; j++) {
207
207
  const cur = p + pathExt[j];
@@ -228,9 +228,9 @@ var require_which = __commonJS({
228
228
  }
229
229
  });
230
230
 
231
- // node_modules/execa/node_modules/cross-spawn/node_modules/path-key/index.js
231
+ // node_modules/path-key/index.js
232
232
  var require_path_key = __commonJS({
233
- "node_modules/execa/node_modules/cross-spawn/node_modules/path-key/index.js"(exports, module) {
233
+ "node_modules/path-key/index.js"(exports, module) {
234
234
  "use strict";
235
235
  var pathKey2 = (options = {}) => {
236
236
  const environment = options.env || process.env;
@@ -245,11 +245,11 @@ var require_path_key = __commonJS({
245
245
  }
246
246
  });
247
247
 
248
- // node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js
248
+ // node_modules/cross-spawn/lib/util/resolveCommand.js
249
249
  var require_resolveCommand = __commonJS({
250
- "node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
250
+ "node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
251
251
  "use strict";
252
- var path8 = __require("path");
252
+ var path9 = __require("path");
253
253
  var which = require_which();
254
254
  var getPathKey = require_path_key();
255
255
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -267,7 +267,7 @@ var require_resolveCommand = __commonJS({
267
267
  try {
268
268
  resolved = which.sync(parsed.command, {
269
269
  path: env2[getPathKey({ env: env2 })],
270
- pathExt: withoutPathExt ? path8.delimiter : void 0
270
+ pathExt: withoutPathExt ? path9.delimiter : void 0
271
271
  });
272
272
  } catch (e) {
273
273
  } finally {
@@ -276,7 +276,7 @@ var require_resolveCommand = __commonJS({
276
276
  }
277
277
  }
278
278
  if (resolved) {
279
- resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
279
+ resolved = path9.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
280
280
  }
281
281
  return resolved;
282
282
  }
@@ -287,9 +287,9 @@ var require_resolveCommand = __commonJS({
287
287
  }
288
288
  });
289
289
 
290
- // node_modules/execa/node_modules/cross-spawn/lib/util/escape.js
290
+ // node_modules/cross-spawn/lib/util/escape.js
291
291
  var require_escape = __commonJS({
292
- "node_modules/execa/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
292
+ "node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
293
293
  "use strict";
294
294
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
295
295
  function escapeCommand(arg) {
@@ -298,8 +298,8 @@ var require_escape = __commonJS({
298
298
  }
299
299
  function escapeArgument2(arg, doubleEscapeMetaChars) {
300
300
  arg = `${arg}`;
301
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
302
- arg = arg.replace(/(\\*)$/, "$1$1");
301
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
302
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
303
303
  arg = `"${arg}"`;
304
304
  arg = arg.replace(metaCharsRegExp, "^$1");
305
305
  if (doubleEscapeMetaChars) {
@@ -330,8 +330,8 @@ var require_shebang_command = __commonJS({
330
330
  if (!match) {
331
331
  return null;
332
332
  }
333
- const [path8, argument] = match[0].replace(/#! ?/, "").split(" ");
334
- const binary = path8.split("/").pop();
333
+ const [path9, argument] = match[0].replace(/#! ?/, "").split(" ");
334
+ const binary = path9.split("/").pop();
335
335
  if (binary === "env") {
336
336
  return argument;
337
337
  }
@@ -340,20 +340,20 @@ var require_shebang_command = __commonJS({
340
340
  }
341
341
  });
342
342
 
343
- // node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js
343
+ // node_modules/cross-spawn/lib/util/readShebang.js
344
344
  var require_readShebang = __commonJS({
345
- "node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
345
+ "node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
346
346
  "use strict";
347
- var fs7 = __require("fs");
347
+ var fs8 = __require("fs");
348
348
  var shebangCommand = require_shebang_command();
349
349
  function readShebang(command) {
350
350
  const size = 150;
351
351
  const buffer = Buffer.alloc(size);
352
352
  let fd;
353
353
  try {
354
- fd = fs7.openSync(command, "r");
355
- fs7.readSync(fd, buffer, 0, size, 0);
356
- fs7.closeSync(fd);
354
+ fd = fs8.openSync(command, "r");
355
+ fs8.readSync(fd, buffer, 0, size, 0);
356
+ fs8.closeSync(fd);
357
357
  } catch (e) {
358
358
  }
359
359
  return shebangCommand(buffer.toString());
@@ -362,11 +362,11 @@ var require_readShebang = __commonJS({
362
362
  }
363
363
  });
364
364
 
365
- // node_modules/execa/node_modules/cross-spawn/lib/parse.js
365
+ // node_modules/cross-spawn/lib/parse.js
366
366
  var require_parse = __commonJS({
367
- "node_modules/execa/node_modules/cross-spawn/lib/parse.js"(exports, module) {
367
+ "node_modules/cross-spawn/lib/parse.js"(exports, module) {
368
368
  "use strict";
369
- var path8 = __require("path");
369
+ var path9 = __require("path");
370
370
  var resolveCommand = require_resolveCommand();
371
371
  var escape = require_escape();
372
372
  var readShebang = require_readShebang();
@@ -391,7 +391,7 @@ var require_parse = __commonJS({
391
391
  const needsShell = !isExecutableRegExp.test(commandFile);
392
392
  if (parsed.options.forceShell || needsShell) {
393
393
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
394
- parsed.command = path8.normalize(parsed.command);
394
+ parsed.command = path9.normalize(parsed.command);
395
395
  parsed.command = escape.command(parsed.command);
396
396
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
397
397
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -424,9 +424,9 @@ var require_parse = __commonJS({
424
424
  }
425
425
  });
426
426
 
427
- // node_modules/execa/node_modules/cross-spawn/lib/enoent.js
427
+ // node_modules/cross-spawn/lib/enoent.js
428
428
  var require_enoent = __commonJS({
429
- "node_modules/execa/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
429
+ "node_modules/cross-spawn/lib/enoent.js"(exports, module) {
430
430
  "use strict";
431
431
  var isWin = process.platform === "win32";
432
432
  function notFoundError(original, syscall) {
@@ -445,7 +445,7 @@ var require_enoent = __commonJS({
445
445
  const originalEmit = cp.emit;
446
446
  cp.emit = function(name, arg1) {
447
447
  if (name === "exit") {
448
- const err = verifyENOENT(arg1, parsed, "spawn");
448
+ const err = verifyENOENT(arg1, parsed);
449
449
  if (err) {
450
450
  return originalEmit.call(cp, "error", err);
451
451
  }
@@ -474,9 +474,9 @@ var require_enoent = __commonJS({
474
474
  }
475
475
  });
476
476
 
477
- // node_modules/execa/node_modules/cross-spawn/index.js
477
+ // node_modules/cross-spawn/index.js
478
478
  var require_cross_spawn = __commonJS({
479
- "node_modules/execa/node_modules/cross-spawn/index.js"(exports, module) {
479
+ "node_modules/cross-spawn/index.js"(exports, module) {
480
480
  "use strict";
481
481
  var cp = __require("child_process");
482
482
  var parse = require_parse();
@@ -519,29 +519,12 @@ var require_strip_final_newline = __commonJS({
519
519
  }
520
520
  });
521
521
 
522
- // node_modules/npm-run-path/node_modules/path-key/index.js
523
- var require_path_key2 = __commonJS({
524
- "node_modules/npm-run-path/node_modules/path-key/index.js"(exports, module) {
525
- "use strict";
526
- var pathKey2 = (options = {}) => {
527
- const environment = options.env || process.env;
528
- const platform2 = options.platform || process.platform;
529
- if (platform2 !== "win32") {
530
- return "PATH";
531
- }
532
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
533
- };
534
- module.exports = pathKey2;
535
- module.exports.default = pathKey2;
536
- }
537
- });
538
-
539
522
  // node_modules/npm-run-path/index.js
540
523
  var require_npm_run_path = __commonJS({
541
524
  "node_modules/npm-run-path/index.js"(exports, module) {
542
525
  "use strict";
543
- var path8 = __require("path");
544
- var pathKey2 = require_path_key2();
526
+ var path9 = __require("path");
527
+ var pathKey2 = require_path_key();
545
528
  var npmRunPath2 = (options) => {
546
529
  options = {
547
530
  cwd: process.cwd(),
@@ -550,16 +533,16 @@ var require_npm_run_path = __commonJS({
550
533
  ...options
551
534
  };
552
535
  let previous;
553
- let cwdPath = path8.resolve(options.cwd);
536
+ let cwdPath = path9.resolve(options.cwd);
554
537
  const result = [];
555
538
  while (previous !== cwdPath) {
556
- result.push(path8.join(cwdPath, "node_modules/.bin"));
539
+ result.push(path9.join(cwdPath, "node_modules/.bin"));
557
540
  previous = cwdPath;
558
- cwdPath = path8.resolve(cwdPath, "..");
541
+ cwdPath = path9.resolve(cwdPath, "..");
559
542
  }
560
- const execPathDir = path8.resolve(options.cwd, options.execPath, "..");
543
+ const execPathDir = path9.resolve(options.cwd, options.execPath, "..");
561
544
  result.push(execPathDir);
562
- return result.concat(options.path).join(path8.delimiter);
545
+ return result.concat(options.path).join(path9.delimiter);
563
546
  };
564
547
  module.exports = npmRunPath2;
565
548
  module.exports.default = npmRunPath2;
@@ -569,9 +552,9 @@ var require_npm_run_path = __commonJS({
569
552
  ...options
570
553
  };
571
554
  const env2 = { ...options.env };
572
- const path9 = pathKey2({ env: env2 });
573
- options.path = env2[path9];
574
- env2[path9] = module.exports(options);
555
+ const path10 = pathKey2({ env: env2 });
556
+ options.path = env2[path10];
557
+ env2[path10] = module.exports(options);
575
558
  return env2;
576
559
  };
577
560
  }
@@ -1347,7 +1330,7 @@ var require_signal_exit = __commonJS({
1347
1330
  var require_kill = __commonJS({
1348
1331
  "node_modules/execa/lib/kill.js"(exports, module) {
1349
1332
  "use strict";
1350
- var os2 = __require("os");
1333
+ var os3 = __require("os");
1351
1334
  var onExit2 = require_signal_exit();
1352
1335
  var DEFAULT_FORCE_KILL_TIMEOUT2 = 1e3 * 5;
1353
1336
  var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
@@ -1371,7 +1354,7 @@ var require_kill = __commonJS({
1371
1354
  return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
1372
1355
  };
1373
1356
  var isSigterm = (signal) => {
1374
- return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
1357
+ return signal === os3.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
1375
1358
  };
1376
1359
  var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
1377
1360
  if (forceKillAfterTimeout === true) {
@@ -1753,7 +1736,7 @@ var require_command = __commonJS({
1753
1736
  var require_execa = __commonJS({
1754
1737
  "node_modules/execa/index.js"(exports, module) {
1755
1738
  "use strict";
1756
- var path8 = __require("path");
1739
+ var path9 = __require("path");
1757
1740
  var childProcess3 = __require("child_process");
1758
1741
  var crossSpawn2 = require_cross_spawn();
1759
1742
  var stripFinalNewline2 = require_strip_final_newline();
@@ -1795,7 +1778,7 @@ var require_execa = __commonJS({
1795
1778
  };
1796
1779
  options.env = getEnv2(options);
1797
1780
  options.stdio = normalizeStdio(options);
1798
- if (process.platform === "win32" && path8.basename(file, ".exe") === "cmd") {
1781
+ if (process.platform === "win32" && path9.basename(file, ".exe") === "cmd") {
1799
1782
  args.unshift("/q");
1800
1783
  }
1801
1784
  return { file, args, options, parsed };
@@ -3096,15 +3079,16 @@ var require_range = __commonJS({
3096
3079
  };
3097
3080
  var replaceTilde = (comp, options) => {
3098
3081
  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
3082
+ const z = options.includePrerelease ? "-0" : "";
3099
3083
  return comp.replace(r, (_, M, m, p, pr) => {
3100
3084
  debug("tilde", comp, _, M, m, p, pr);
3101
3085
  let ret;
3102
3086
  if (isX(M)) {
3103
3087
  ret = "";
3104
3088
  } else if (isX(m)) {
3105
- ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
3089
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
3106
3090
  } else if (isX(p)) {
3107
- ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
3091
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
3108
3092
  } else if (pr) {
3109
3093
  debug("replaceTilde pr", pr);
3110
3094
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
@@ -3970,251 +3954,6 @@ var require_semver2 = __commonJS({
3970
3954
  }
3971
3955
  });
3972
3956
 
3973
- // node_modules/cross-spawn/node_modules/path-key/index.js
3974
- var require_path_key3 = __commonJS({
3975
- "node_modules/cross-spawn/node_modules/path-key/index.js"(exports, module) {
3976
- "use strict";
3977
- var pathKey2 = (options = {}) => {
3978
- const environment = options.env || process.env;
3979
- const platform2 = options.platform || process.platform;
3980
- if (platform2 !== "win32") {
3981
- return "PATH";
3982
- }
3983
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
3984
- };
3985
- module.exports = pathKey2;
3986
- module.exports.default = pathKey2;
3987
- }
3988
- });
3989
-
3990
- // node_modules/cross-spawn/lib/util/resolveCommand.js
3991
- var require_resolveCommand2 = __commonJS({
3992
- "node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
3993
- "use strict";
3994
- var path8 = __require("path");
3995
- var which = require_which();
3996
- var getPathKey = require_path_key3();
3997
- function resolveCommandAttempt(parsed, withoutPathExt) {
3998
- const env2 = parsed.options.env || process.env;
3999
- const cwd = process.cwd();
4000
- const hasCustomCwd = parsed.options.cwd != null;
4001
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
4002
- if (shouldSwitchCwd) {
4003
- try {
4004
- process.chdir(parsed.options.cwd);
4005
- } catch (err) {
4006
- }
4007
- }
4008
- let resolved;
4009
- try {
4010
- resolved = which.sync(parsed.command, {
4011
- path: env2[getPathKey({ env: env2 })],
4012
- pathExt: withoutPathExt ? path8.delimiter : void 0
4013
- });
4014
- } catch (e) {
4015
- } finally {
4016
- if (shouldSwitchCwd) {
4017
- process.chdir(cwd);
4018
- }
4019
- }
4020
- if (resolved) {
4021
- resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
4022
- }
4023
- return resolved;
4024
- }
4025
- function resolveCommand(parsed) {
4026
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
4027
- }
4028
- module.exports = resolveCommand;
4029
- }
4030
- });
4031
-
4032
- // node_modules/cross-spawn/lib/util/escape.js
4033
- var require_escape2 = __commonJS({
4034
- "node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
4035
- "use strict";
4036
- var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
4037
- function escapeCommand(arg) {
4038
- arg = arg.replace(metaCharsRegExp, "^$1");
4039
- return arg;
4040
- }
4041
- function escapeArgument2(arg, doubleEscapeMetaChars) {
4042
- arg = `${arg}`;
4043
- arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
4044
- arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
4045
- arg = `"${arg}"`;
4046
- arg = arg.replace(metaCharsRegExp, "^$1");
4047
- if (doubleEscapeMetaChars) {
4048
- arg = arg.replace(metaCharsRegExp, "^$1");
4049
- }
4050
- return arg;
4051
- }
4052
- module.exports.command = escapeCommand;
4053
- module.exports.argument = escapeArgument2;
4054
- }
4055
- });
4056
-
4057
- // node_modules/cross-spawn/lib/util/readShebang.js
4058
- var require_readShebang2 = __commonJS({
4059
- "node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
4060
- "use strict";
4061
- var fs7 = __require("fs");
4062
- var shebangCommand = require_shebang_command();
4063
- function readShebang(command) {
4064
- const size = 150;
4065
- const buffer = Buffer.alloc(size);
4066
- let fd;
4067
- try {
4068
- fd = fs7.openSync(command, "r");
4069
- fs7.readSync(fd, buffer, 0, size, 0);
4070
- fs7.closeSync(fd);
4071
- } catch (e) {
4072
- }
4073
- return shebangCommand(buffer.toString());
4074
- }
4075
- module.exports = readShebang;
4076
- }
4077
- });
4078
-
4079
- // node_modules/cross-spawn/lib/parse.js
4080
- var require_parse3 = __commonJS({
4081
- "node_modules/cross-spawn/lib/parse.js"(exports, module) {
4082
- "use strict";
4083
- var path8 = __require("path");
4084
- var resolveCommand = require_resolveCommand2();
4085
- var escape = require_escape2();
4086
- var readShebang = require_readShebang2();
4087
- var isWin = process.platform === "win32";
4088
- var isExecutableRegExp = /\.(?:com|exe)$/i;
4089
- var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
4090
- function detectShebang(parsed) {
4091
- parsed.file = resolveCommand(parsed);
4092
- const shebang = parsed.file && readShebang(parsed.file);
4093
- if (shebang) {
4094
- parsed.args.unshift(parsed.file);
4095
- parsed.command = shebang;
4096
- return resolveCommand(parsed);
4097
- }
4098
- return parsed.file;
4099
- }
4100
- function parseNonShell(parsed) {
4101
- if (!isWin) {
4102
- return parsed;
4103
- }
4104
- const commandFile = detectShebang(parsed);
4105
- const needsShell = !isExecutableRegExp.test(commandFile);
4106
- if (parsed.options.forceShell || needsShell) {
4107
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
4108
- parsed.command = path8.normalize(parsed.command);
4109
- parsed.command = escape.command(parsed.command);
4110
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
4111
- const shellCommand = [parsed.command].concat(parsed.args).join(" ");
4112
- parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
4113
- parsed.command = process.env.comspec || "cmd.exe";
4114
- parsed.options.windowsVerbatimArguments = true;
4115
- }
4116
- return parsed;
4117
- }
4118
- function parse(command, args, options) {
4119
- if (args && !Array.isArray(args)) {
4120
- options = args;
4121
- args = null;
4122
- }
4123
- args = args ? args.slice(0) : [];
4124
- options = Object.assign({}, options);
4125
- const parsed = {
4126
- command,
4127
- args,
4128
- options,
4129
- file: void 0,
4130
- original: {
4131
- command,
4132
- args
4133
- }
4134
- };
4135
- return options.shell ? parsed : parseNonShell(parsed);
4136
- }
4137
- module.exports = parse;
4138
- }
4139
- });
4140
-
4141
- // node_modules/cross-spawn/lib/enoent.js
4142
- var require_enoent2 = __commonJS({
4143
- "node_modules/cross-spawn/lib/enoent.js"(exports, module) {
4144
- "use strict";
4145
- var isWin = process.platform === "win32";
4146
- function notFoundError(original, syscall) {
4147
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
4148
- code: "ENOENT",
4149
- errno: "ENOENT",
4150
- syscall: `${syscall} ${original.command}`,
4151
- path: original.command,
4152
- spawnargs: original.args
4153
- });
4154
- }
4155
- function hookChildProcess(cp, parsed) {
4156
- if (!isWin) {
4157
- return;
4158
- }
4159
- const originalEmit = cp.emit;
4160
- cp.emit = function(name, arg1) {
4161
- if (name === "exit") {
4162
- const err = verifyENOENT(arg1, parsed);
4163
- if (err) {
4164
- return originalEmit.call(cp, "error", err);
4165
- }
4166
- }
4167
- return originalEmit.apply(cp, arguments);
4168
- };
4169
- }
4170
- function verifyENOENT(status, parsed) {
4171
- if (isWin && status === 1 && !parsed.file) {
4172
- return notFoundError(parsed.original, "spawn");
4173
- }
4174
- return null;
4175
- }
4176
- function verifyENOENTSync(status, parsed) {
4177
- if (isWin && status === 1 && !parsed.file) {
4178
- return notFoundError(parsed.original, "spawnSync");
4179
- }
4180
- return null;
4181
- }
4182
- module.exports = {
4183
- hookChildProcess,
4184
- verifyENOENT,
4185
- verifyENOENTSync,
4186
- notFoundError
4187
- };
4188
- }
4189
- });
4190
-
4191
- // node_modules/cross-spawn/index.js
4192
- var require_cross_spawn2 = __commonJS({
4193
- "node_modules/cross-spawn/index.js"(exports, module) {
4194
- "use strict";
4195
- var cp = __require("child_process");
4196
- var parse = require_parse3();
4197
- var enoent = require_enoent2();
4198
- function spawn2(command, args, options) {
4199
- const parsed = parse(command, args, options);
4200
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
4201
- enoent.hookChildProcess(spawned, parsed);
4202
- return spawned;
4203
- }
4204
- function spawnSync2(command, args, options) {
4205
- const parsed = parse(command, args, options);
4206
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
4207
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
4208
- return result;
4209
- }
4210
- module.exports = spawn2;
4211
- module.exports.spawn = spawn2;
4212
- module.exports.sync = spawnSync2;
4213
- module.exports._parse = parse;
4214
- module.exports._enoent = enoent;
4215
- }
4216
- });
4217
-
4218
3957
  // node_modules/clipboardy/index.js
4219
3958
  import process16 from "node:process";
4220
3959
 
@@ -4741,7 +4480,7 @@ async function writeClipboardImages(filePaths) {
4741
4480
  if (process5.platform !== "darwin") {
4742
4481
  return;
4743
4482
  }
4744
- const paths = filePaths.map((path8) => path8 instanceof URL ? fileURLToPath(path8) : path8);
4483
+ const paths = filePaths.map((path9) => path9 instanceof URL ? fileURLToPath(path9) : path9);
4745
4484
  await runJxa((...paths2) => {
4746
4485
  ObjC.import("AppKit");
4747
4486
  ObjC.import("Foundation");
@@ -5436,6 +5175,10 @@ var bold = format(1, 22);
5436
5175
  var dim = format(2, 22);
5437
5176
  var italic = format(3, 23);
5438
5177
  var underline = format(4, 24);
5178
+ var underlineDouble = format("4:2", 24);
5179
+ var underlineCurly = format("4:3", 24);
5180
+ var underlineDotted = format("4:4", 24);
5181
+ var underlineDashed = format("4:5", 24);
5439
5182
  var overline = format(53, 55);
5440
5183
  var inverse = format(7, 27);
5441
5184
  var hidden = format(8, 28);
@@ -5472,6 +5215,22 @@ var bgBlueBright = format(104, 49);
5472
5215
  var bgMagentaBright = format(105, 49);
5473
5216
  var bgCyanBright = format(106, 49);
5474
5217
  var bgWhiteBright = format(107, 49);
5218
+ var underlineBlack = format("58;5;0", 59);
5219
+ var underlineRed = format("58;5;1", 59);
5220
+ var underlineGreen = format("58;5;2", 59);
5221
+ var underlineYellow = format("58;5;3", 59);
5222
+ var underlineBlue = format("58;5;4", 59);
5223
+ var underlineMagenta = format("58;5;5", 59);
5224
+ var underlineCyan = format("58;5;6", 59);
5225
+ var underlineWhite = format("58;5;7", 59);
5226
+ var underlineGray = format("58;5;8", 59);
5227
+ var underlineRedBright = format("58;5;9", 59);
5228
+ var underlineGreenBright = format("58;5;10", 59);
5229
+ var underlineYellowBright = format("58;5;11", 59);
5230
+ var underlineBlueBright = format("58;5;12", 59);
5231
+ var underlineMagentaBright = format("58;5;13", 59);
5232
+ var underlineCyanBright = format("58;5;14", 59);
5233
+ var underlineWhiteBright = format("58;5;15", 59);
5475
5234
 
5476
5235
  // node_modules/clipboardy/node_modules/execa/lib/verbose/default.js
5477
5236
  var defaultVerboseFunction = ({
@@ -5624,7 +5383,7 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
5624
5383
  };
5625
5384
 
5626
5385
  // node_modules/clipboardy/node_modules/execa/lib/arguments/options.js
5627
- var import_cross_spawn = __toESM(require_cross_spawn2(), 1);
5386
+ var import_cross_spawn = __toESM(require_cross_spawn(), 1);
5628
5387
  import path5 from "node:path";
5629
5388
  import process10 from "node:process";
5630
5389
 
@@ -5632,7 +5391,7 @@ import process10 from "node:process";
5632
5391
  import process8 from "node:process";
5633
5392
  import path2 from "node:path";
5634
5393
 
5635
- // node_modules/path-key/index.js
5394
+ // node_modules/clipboardy/node_modules/execa/node_modules/npm-run-path/node_modules/path-key/index.js
5636
5395
  function pathKey(options = {}) {
5637
5396
  const {
5638
5397
  env: env2 = process.env,
@@ -9161,13 +8920,13 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
9161
8920
  }
9162
8921
  };
9163
8922
  var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
9164
- for (const { path: path8, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
9165
- const pathString = typeof path8 === "string" ? path8 : path8.toString();
8923
+ for (const { path: path9, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
8924
+ const pathString = typeof path9 === "string" ? path9 : path9.toString();
9166
8925
  if (append || outputFiles.has(pathString)) {
9167
- appendFileSync(path8, serializedResult);
8926
+ appendFileSync(path9, serializedResult);
9168
8927
  } else {
9169
8928
  outputFiles.add(pathString);
9170
- writeFileSync(path8, serializedResult);
8929
+ writeFileSync(path9, serializedResult);
9171
8930
  }
9172
8931
  }
9173
8932
  };
@@ -11675,53 +11434,88 @@ var clipboard2 = {
11675
11434
  var linux_default = clipboard2;
11676
11435
 
11677
11436
  // node_modules/clipboardy/lib/wayland.js
11437
+ import fs6 from "node:fs";
11438
+ import os2 from "node:os";
11439
+ import path7 from "node:path";
11440
+ import crypto2 from "node:crypto";
11678
11441
  var textArgs = ["--type", "text/plain"];
11442
+ var createStderrFile = () => {
11443
+ const file = path7.join(os2.tmpdir(), `clipboardy-${crypto2.randomUUID()}`);
11444
+ const fileDescriptor = fs6.openSync(file, "w+");
11445
+ return {
11446
+ fileDescriptor,
11447
+ // Best-effort. The contents only feed the error message and the X11 fallback heuristic, so an unreadable file should not replace the failure we are already handling.
11448
+ read() {
11449
+ try {
11450
+ return fs6.readFileSync(file, "utf8");
11451
+ } catch {
11452
+ return "";
11453
+ }
11454
+ },
11455
+ // Safe to do while the background process is still alive. It holds its own descriptor, and the file only disappears once it exits too.
11456
+ remove() {
11457
+ fs6.closeSync(fileDescriptor);
11458
+ fs6.rmSync(file, { force: true });
11459
+ }
11460
+ };
11461
+ };
11679
11462
  var makeError3 = (command, error) => {
11680
11463
  if (error.code === "ENOENT") {
11681
11464
  return new Error(`Couldn't find the \`${command}\` binary. On Debian/Ubuntu you can install wl-clipboard with: sudo apt install wl-clipboard`);
11682
11465
  }
11683
- return new Error(`Command \`${command}\` failed: ${error.message}`);
11466
+ return new Error(`Command \`${command}\` failed: ${error.stderr?.trim() || error.message}`);
11684
11467
  };
11685
- var tryWaylandWithFallback = async (command, arguments_, options, fallbackMethod) => {
11686
- try {
11687
- const result = await execa2(command, arguments_, options);
11688
- return result.stdout;
11689
- } catch (error) {
11690
- if (command === "wl-paste" && /nothing is copied|no selection|selection owner/i.test(error.stderr || "")) {
11691
- return "";
11692
- }
11693
- if (error.code === "ENOENT" || /wayland|wayland_display|failed to connect|display/i.test(error.stderr || "")) {
11694
- return fallbackMethod(options);
11695
- }
11696
- throw makeError3(command, error);
11468
+ var handleError = (command, error, options, fallbackMethod) => {
11469
+ if (command === "wl-paste" && /nothing is copied|no selection|selection owner/i.test(error.stderr || "")) {
11470
+ return "";
11697
11471
  }
11698
- };
11699
- var tryWaylandWithFallbackSync = (command, arguments_, options, fallbackMethod) => {
11700
- try {
11701
- const result = execaSync(command, arguments_, options);
11702
- return result.stdout;
11703
- } catch (error) {
11704
- if (command === "wl-paste" && /nothing is copied|no selection|selection owner/i.test(error.stderr || "")) {
11705
- return "";
11706
- }
11707
- if (error.code === "ENOENT" || /wayland|wayland_display|failed to connect|display/i.test(error.stderr || "")) {
11708
- return fallbackMethod(options);
11709
- }
11710
- throw makeError3(command, error);
11472
+ if (error.code === "ENOENT" || /wayland|wayland_display|failed to connect|display/i.test(error.stderr || "")) {
11473
+ return fallbackMethod(options);
11711
11474
  }
11475
+ throw makeError3(command, error);
11712
11476
  };
11713
11477
  var clipboard3 = {
11714
11478
  async copy(options) {
11715
- await tryWaylandWithFallback("wl-copy", textArgs, options, linux_default.copy);
11479
+ const stderrFile = createStderrFile();
11480
+ try {
11481
+ await execa2("wl-copy", textArgs, { ...options, stdout: "ignore", stderr: stderrFile.fileDescriptor });
11482
+ } catch (error) {
11483
+ error.stderr = stderrFile.read();
11484
+ await handleError("wl-copy", error, options, linux_default.copy);
11485
+ } finally {
11486
+ stderrFile.remove();
11487
+ }
11716
11488
  },
11717
11489
  copySync(options) {
11718
- tryWaylandWithFallbackSync("wl-copy", textArgs, options, linux_default.copySync);
11490
+ const stderrFile = createStderrFile();
11491
+ try {
11492
+ execaSync("wl-copy", textArgs, { ...options, stdout: "ignore", stderr: stderrFile.fileDescriptor });
11493
+ } catch (error) {
11494
+ error.stderr = stderrFile.read();
11495
+ handleError("wl-copy", error, options, linux_default.copySync);
11496
+ } finally {
11497
+ stderrFile.remove();
11498
+ }
11719
11499
  },
11500
+ /*
11501
+ Unlike `wl-copy`, `wl-paste` does not fork, so it can use ordinary pipes.
11502
+
11503
+ `--no-newline` stops it from appending a trailing newline that was never on the clipboard.
11504
+ */
11720
11505
  async paste(options) {
11721
- return tryWaylandWithFallback("wl-paste", [...textArgs, "--no-newline"], options, linux_default.paste);
11506
+ try {
11507
+ const { stdout } = await execa2("wl-paste", [...textArgs, "--no-newline"], options);
11508
+ return stdout;
11509
+ } catch (error) {
11510
+ return handleError("wl-paste", error, options, linux_default.paste);
11511
+ }
11722
11512
  },
11723
11513
  pasteSync(options) {
11724
- return tryWaylandWithFallbackSync("wl-paste", [...textArgs, "--no-newline"], options, linux_default.pasteSync);
11514
+ try {
11515
+ return execaSync("wl-paste", [...textArgs, "--no-newline"], options).stdout;
11516
+ } catch (error) {
11517
+ return handleError("wl-paste", error, options, linux_default.pasteSync);
11518
+ }
11725
11519
  }
11726
11520
  };
11727
11521
  var wayland_default = clipboard3;
@@ -11743,8 +11537,8 @@ var clipboard4 = {
11743
11537
  var macos_default = clipboard4;
11744
11538
 
11745
11539
  // node_modules/clipboardy/lib/windows.js
11746
- import fs6 from "node:fs";
11747
- import path7 from "node:path";
11540
+ import fs7 from "node:fs";
11541
+ import path8 from "node:path";
11748
11542
  import { fileURLToPath as fileURLToPath5 } from "node:url";
11749
11543
 
11750
11544
  // node_modules/system-architecture/index.js
@@ -11821,10 +11615,10 @@ executePowerShell.escapeArgument = escapeArgument;
11821
11615
  executePowerShell.createArguments = createArguments;
11822
11616
 
11823
11617
  // node_modules/clipboardy/lib/windows.js
11824
- var __dirname2 = path7.dirname(fileURLToPath5(import.meta.url));
11618
+ var __dirname2 = path8.dirname(fileURLToPath5(import.meta.url));
11825
11619
  var binarySuffix = process.arch === "arm64" ? "aarch64" : is64bitSync() ? "x86_64" : "i686";
11826
- var windowBinaryPath = path7.join(__dirname2, `../fallbacks/windows/clipboard_${binarySuffix}.exe`);
11827
- var hasWindowsBinaryFallback = fs6.existsSync(windowBinaryPath);
11620
+ var windowBinaryPath = path8.join(__dirname2, `../fallbacks/windows/clipboard_${binarySuffix}.exe`);
11621
+ var hasWindowsBinaryFallback = fs7.existsSync(windowBinaryPath);
11828
11622
  var psCopyScript = `
11829
11623
  try {
11830
11624
  [Console]::InputEncoding = [System.Text.Encoding]::UTF8