@requence/task 1.0.0-alpha.21 → 1.0.0-alpha.22

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 (71) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/{chunk-xdx5gf9h.js → chunk-y4v98p2s.js} +20 -5
  3. package/build/{chunk-xdx5gf9h.js.map → chunk-y4v98p2s.js.map} +2 -2
  4. package/build/cli.js +643 -137
  5. package/build/cli.js.map +27 -16
  6. package/build/index.js +194 -236
  7. package/build/index.js.map +12 -13
  8. package/build/types/helpers/src/files/fileObject.d.ts +2 -12
  9. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -1
  10. package/build/types/helpers/src/files/mapOutput.d.ts +1 -1
  11. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -1
  12. package/build/types/helpers/src/files/streamObject.d.ts +2 -10
  13. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -1
  14. package/build/types/helpers/src/index.d.ts +1 -0
  15. package/build/types/helpers/src/index.d.ts.map +1 -1
  16. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -0
  17. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  18. package/build/types/helpers/src/jsonschema/zod.d.ts +4 -12
  19. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  20. package/build/types/helpers/src/protocol/NodeTree.d.ts +504 -0
  21. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  22. package/build/types/helpers/src/protocol/NodesError.d.ts +5 -0
  23. package/build/types/helpers/src/protocol/NodesError.d.ts.map +1 -0
  24. package/build/types/helpers/src/protocol/command.d.ts +373 -1954
  25. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/index.d.ts +5 -7
  27. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  28. package/build/types/helpers/src/protocol/nodeOptions.d.ts +16 -0
  29. package/build/types/helpers/src/protocol/nodeOptions.d.ts.map +1 -0
  30. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  31. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  32. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  33. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/treeNodes.d.ts +606 -0
  35. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/update.d.ts +182 -17892
  37. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  38. package/build/types/helpers/src/utils/mapData.d.ts +4 -0
  39. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  40. package/build/types/helpers/src/utils/matchSchema.d.ts +1 -1
  41. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
  42. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +2 -0
  43. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  44. package/build/types/helpers/src/utils/types.d.ts +4 -0
  45. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  46. package/build/types/task/src/createTask.d.ts.map +1 -1
  47. package/build/types/task/src/types.d.ts +114 -5103
  48. package/build/types/task/src/types.d.ts.map +1 -1
  49. package/build/types/task/src/watchTasks.d.ts +3 -1
  50. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  51. package/package.json +2 -2
  52. package/build/types/helpers/src/context/context.d.ts +0 -156
  53. package/build/types/helpers/src/context/context.d.ts.map +0 -1
  54. package/build/types/helpers/src/context/index.d.ts +0 -2
  55. package/build/types/helpers/src/context/index.d.ts.map +0 -1
  56. package/build/types/helpers/src/protocol/createNodeMaps.d.ts +0 -10
  57. package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +0 -1
  58. package/build/types/helpers/src/protocol/getCycles.d.ts +0 -3
  59. package/build/types/helpers/src/protocol/getCycles.d.ts.map +0 -1
  60. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +0 -4
  61. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +0 -1
  62. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +0 -9
  63. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +0 -1
  64. package/build/types/helpers/src/protocol/identifyNode.d.ts +0 -4
  65. package/build/types/helpers/src/protocol/identifyNode.d.ts.map +0 -1
  66. package/build/types/helpers/src/protocol/node.d.ts +0 -1014
  67. package/build/types/helpers/src/protocol/node.d.ts.map +0 -1
  68. package/build/types/helpers/src/protocol/nodes.d.ts +0 -801
  69. package/build/types/helpers/src/protocol/nodes.d.ts.map +0 -1
  70. package/build/types/task/src/utils/mapOutput.d.ts +0 -2
  71. package/build/types/task/src/utils/mapOutput.d.ts.map +0 -1
package/build/cli.js CHANGED
@@ -1,8 +1,37 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- __require,
3
+ __commonJS,
4
+ __toESM,
4
5
  deobfuscate
5
- } from "./chunk-xdx5gf9h.js";
6
+ } from "./chunk-y4v98p2s.js";
7
+
8
+ // ../../node_modules/emoji-regex/index.js
9
+ var require_emoji_regex = __commonJS((exports, module) => {
10
+ module.exports = () => {
11
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
12
+ };
13
+ });
14
+
15
+ // ../../node_modules/get-caller-file/index.js
16
+ var require_get_caller_file = __commonJS((exports, module) => {
17
+ module.exports = function getCallerFile(position) {
18
+ if (position === undefined) {
19
+ position = 2;
20
+ }
21
+ if (position >= Error.stackTraceLimit) {
22
+ throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `" + position + "` and Error.stackTraceLimit was: `" + Error.stackTraceLimit + "`");
23
+ }
24
+ var oldPrepareStackTrace = Error.prepareStackTrace;
25
+ Error.prepareStackTrace = function(_, stack2) {
26
+ return stack2;
27
+ };
28
+ var stack = new Error().stack;
29
+ Error.prepareStackTrace = oldPrepareStackTrace;
30
+ if (stack !== null && typeof stack === "object") {
31
+ return stack[position] ? stack[position].getFileName() : undefined;
32
+ }
33
+ };
34
+ });
6
35
 
7
36
  // src/cli.ts
8
37
  import fs from "node:fs";
@@ -271,36 +300,482 @@ function cliui(opts, _mixin) {
271
300
  });
272
301
  }
273
302
 
274
- // ../../node_modules/cliui/build/lib/string-utils.js
275
- var ansi = new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|" + "\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)", "g");
276
- function stripAnsi(str) {
277
- return str.replace(ansi, "");
303
+ // ../../node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
304
+ function ansiRegex({ onlyFirst = false } = {}) {
305
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
306
+ const pattern = [
307
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
308
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
309
+ ].join("|");
310
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
278
311
  }
279
- function wrap(str, width) {
280
- const [start, end] = str.match(ansi) || ["", ""];
281
- str = stripAnsi(str);
282
- let wrapped = "";
283
- for (let i = 0;i < str.length; i++) {
284
- if (i !== 0 && i % width === 0) {
285
- wrapped += `
286
- `;
312
+
313
+ // ../../node_modules/string-width/node_modules/strip-ansi/index.js
314
+ var regex = ansiRegex();
315
+ function stripAnsi(string) {
316
+ if (typeof string !== "string") {
317
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
318
+ }
319
+ return string.replace(regex, "");
320
+ }
321
+
322
+ // ../../node_modules/get-east-asian-width/lookup.js
323
+ function isAmbiguous(x) {
324
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
325
+ }
326
+ function isFullWidth(x) {
327
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
328
+ }
329
+ function isWide(x) {
330
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
331
+ }
332
+
333
+ // ../../node_modules/get-east-asian-width/index.js
334
+ function validate(codePoint) {
335
+ if (!Number.isSafeInteger(codePoint)) {
336
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
337
+ }
338
+ }
339
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
340
+ validate(codePoint);
341
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
342
+ return 2;
343
+ }
344
+ return 1;
345
+ }
346
+
347
+ // ../../node_modules/string-width/index.js
348
+ var import_emoji_regex = __toESM(require_emoji_regex(), 1);
349
+ var segmenter = new Intl.Segmenter;
350
+ var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
351
+ function stringWidth(string, options = {}) {
352
+ if (typeof string !== "string" || string.length === 0) {
353
+ return 0;
354
+ }
355
+ const {
356
+ ambiguousIsNarrow = true,
357
+ countAnsiEscapeCodes = false
358
+ } = options;
359
+ if (!countAnsiEscapeCodes) {
360
+ string = stripAnsi(string);
361
+ }
362
+ if (string.length === 0) {
363
+ return 0;
364
+ }
365
+ let width = 0;
366
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
367
+ for (const { segment: character } of segmenter.segment(string)) {
368
+ const codePoint = character.codePointAt(0);
369
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
370
+ continue;
371
+ }
372
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
373
+ continue;
374
+ }
375
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
376
+ continue;
377
+ }
378
+ if (codePoint >= 55296 && codePoint <= 57343) {
379
+ continue;
380
+ }
381
+ if (codePoint >= 65024 && codePoint <= 65039) {
382
+ continue;
383
+ }
384
+ if (defaultIgnorableCodePointRegex.test(character)) {
385
+ continue;
386
+ }
387
+ if (import_emoji_regex.default().test(character)) {
388
+ width += 2;
389
+ continue;
390
+ }
391
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
392
+ }
393
+ return width;
394
+ }
395
+
396
+ // ../../node_modules/cliui/node_modules/strip-ansi/node_modules/ansi-regex/index.js
397
+ function ansiRegex2({ onlyFirst = false } = {}) {
398
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
399
+ const pattern = [
400
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
401
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
402
+ ].join("|");
403
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
404
+ }
405
+
406
+ // ../../node_modules/cliui/node_modules/strip-ansi/index.js
407
+ var regex2 = ansiRegex2();
408
+ function stripAnsi2(string) {
409
+ if (typeof string !== "string") {
410
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
411
+ }
412
+ return string.replace(regex2, "");
413
+ }
414
+
415
+ // ../../node_modules/wrap-ansi/node_modules/strip-ansi/node_modules/ansi-regex/index.js
416
+ function ansiRegex3({ onlyFirst = false } = {}) {
417
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
418
+ const pattern = [
419
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
420
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
421
+ ].join("|");
422
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
423
+ }
424
+
425
+ // ../../node_modules/wrap-ansi/node_modules/strip-ansi/index.js
426
+ var regex3 = ansiRegex3();
427
+ function stripAnsi3(string) {
428
+ if (typeof string !== "string") {
429
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
430
+ }
431
+ return string.replace(regex3, "");
432
+ }
433
+
434
+ // ../../node_modules/wrap-ansi/node_modules/ansi-styles/index.js
435
+ var ANSI_BACKGROUND_OFFSET = 10;
436
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
437
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
438
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
439
+ var styles = {
440
+ modifier: {
441
+ reset: [0, 0],
442
+ bold: [1, 22],
443
+ dim: [2, 22],
444
+ italic: [3, 23],
445
+ underline: [4, 24],
446
+ overline: [53, 55],
447
+ inverse: [7, 27],
448
+ hidden: [8, 28],
449
+ strikethrough: [9, 29]
450
+ },
451
+ color: {
452
+ black: [30, 39],
453
+ red: [31, 39],
454
+ green: [32, 39],
455
+ yellow: [33, 39],
456
+ blue: [34, 39],
457
+ magenta: [35, 39],
458
+ cyan: [36, 39],
459
+ white: [37, 39],
460
+ blackBright: [90, 39],
461
+ gray: [90, 39],
462
+ grey: [90, 39],
463
+ redBright: [91, 39],
464
+ greenBright: [92, 39],
465
+ yellowBright: [93, 39],
466
+ blueBright: [94, 39],
467
+ magentaBright: [95, 39],
468
+ cyanBright: [96, 39],
469
+ whiteBright: [97, 39]
470
+ },
471
+ bgColor: {
472
+ bgBlack: [40, 49],
473
+ bgRed: [41, 49],
474
+ bgGreen: [42, 49],
475
+ bgYellow: [43, 49],
476
+ bgBlue: [44, 49],
477
+ bgMagenta: [45, 49],
478
+ bgCyan: [46, 49],
479
+ bgWhite: [47, 49],
480
+ bgBlackBright: [100, 49],
481
+ bgGray: [100, 49],
482
+ bgGrey: [100, 49],
483
+ bgRedBright: [101, 49],
484
+ bgGreenBright: [102, 49],
485
+ bgYellowBright: [103, 49],
486
+ bgBlueBright: [104, 49],
487
+ bgMagentaBright: [105, 49],
488
+ bgCyanBright: [106, 49],
489
+ bgWhiteBright: [107, 49]
490
+ }
491
+ };
492
+ var modifierNames = Object.keys(styles.modifier);
493
+ var foregroundColorNames = Object.keys(styles.color);
494
+ var backgroundColorNames = Object.keys(styles.bgColor);
495
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
496
+ function assembleStyles() {
497
+ const codes = new Map;
498
+ for (const [groupName, group] of Object.entries(styles)) {
499
+ for (const [styleName, style] of Object.entries(group)) {
500
+ styles[styleName] = {
501
+ open: `\x1B[${style[0]}m`,
502
+ close: `\x1B[${style[1]}m`
503
+ };
504
+ group[styleName] = styles[styleName];
505
+ codes.set(style[0], style[1]);
506
+ }
507
+ Object.defineProperty(styles, groupName, {
508
+ value: group,
509
+ enumerable: false
510
+ });
511
+ }
512
+ Object.defineProperty(styles, "codes", {
513
+ value: codes,
514
+ enumerable: false
515
+ });
516
+ styles.color.close = "\x1B[39m";
517
+ styles.bgColor.close = "\x1B[49m";
518
+ styles.color.ansi = wrapAnsi16();
519
+ styles.color.ansi256 = wrapAnsi256();
520
+ styles.color.ansi16m = wrapAnsi16m();
521
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
522
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
523
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
524
+ Object.defineProperties(styles, {
525
+ rgbToAnsi256: {
526
+ value: (red, green, blue) => {
527
+ if (red === green && green === blue) {
528
+ if (red < 8) {
529
+ return 16;
530
+ }
531
+ if (red > 248) {
532
+ return 231;
533
+ }
534
+ return Math.round((red - 8) / 247 * 24) + 232;
535
+ }
536
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
537
+ },
538
+ enumerable: false
539
+ },
540
+ hexToRgb: {
541
+ value: (hex) => {
542
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
543
+ if (!matches) {
544
+ return [0, 0, 0];
545
+ }
546
+ let [colorString] = matches;
547
+ if (colorString.length === 3) {
548
+ colorString = [...colorString].map((character) => character + character).join("");
549
+ }
550
+ const integer = Number.parseInt(colorString, 16);
551
+ return [
552
+ integer >> 16 & 255,
553
+ integer >> 8 & 255,
554
+ integer & 255
555
+ ];
556
+ },
557
+ enumerable: false
558
+ },
559
+ hexToAnsi256: {
560
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
561
+ enumerable: false
562
+ },
563
+ ansi256ToAnsi: {
564
+ value: (code) => {
565
+ if (code < 8) {
566
+ return 30 + code;
567
+ }
568
+ if (code < 16) {
569
+ return 90 + (code - 8);
570
+ }
571
+ let red;
572
+ let green;
573
+ let blue;
574
+ if (code >= 232) {
575
+ red = ((code - 232) * 10 + 8) / 255;
576
+ green = red;
577
+ blue = red;
578
+ } else {
579
+ code -= 16;
580
+ const remainder = code % 36;
581
+ red = Math.floor(code / 36) / 5;
582
+ green = Math.floor(remainder / 6) / 5;
583
+ blue = remainder % 6 / 5;
584
+ }
585
+ const value = Math.max(red, green, blue) * 2;
586
+ if (value === 0) {
587
+ return 30;
588
+ }
589
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
590
+ if (value === 2) {
591
+ result += 60;
592
+ }
593
+ return result;
594
+ },
595
+ enumerable: false
596
+ },
597
+ rgbToAnsi: {
598
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
599
+ enumerable: false
600
+ },
601
+ hexToAnsi: {
602
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
603
+ enumerable: false
604
+ }
605
+ });
606
+ return styles;
607
+ }
608
+ var ansiStyles = assembleStyles();
609
+ var ansi_styles_default = ansiStyles;
610
+
611
+ // ../../node_modules/wrap-ansi/index.js
612
+ var ESCAPES = new Set([
613
+ "\x1B",
614
+ "›"
615
+ ]);
616
+ var END_CODE = 39;
617
+ var ANSI_ESCAPE_BELL = "\x07";
618
+ var ANSI_CSI = "[";
619
+ var ANSI_OSC = "]";
620
+ var ANSI_SGR_TERMINATOR = "m";
621
+ var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
622
+ var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
623
+ var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
624
+ var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
625
+ var wrapWord = (rows, word, columns) => {
626
+ const characters = [...word];
627
+ let isInsideEscape = false;
628
+ let isInsideLinkEscape = false;
629
+ let visible = stringWidth(stripAnsi3(rows.at(-1)));
630
+ for (const [index, character] of characters.entries()) {
631
+ const characterLength = stringWidth(character);
632
+ if (visible + characterLength <= columns) {
633
+ rows[rows.length - 1] += character;
634
+ } else {
635
+ rows.push(character);
636
+ visible = 0;
637
+ }
638
+ if (ESCAPES.has(character)) {
639
+ isInsideEscape = true;
640
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
641
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
642
+ }
643
+ if (isInsideEscape) {
644
+ if (isInsideLinkEscape) {
645
+ if (character === ANSI_ESCAPE_BELL) {
646
+ isInsideEscape = false;
647
+ isInsideLinkEscape = false;
648
+ }
649
+ } else if (character === ANSI_SGR_TERMINATOR) {
650
+ isInsideEscape = false;
651
+ }
652
+ continue;
653
+ }
654
+ visible += characterLength;
655
+ if (visible === columns && index < characters.length - 1) {
656
+ rows.push("");
657
+ visible = 0;
658
+ }
659
+ }
660
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
661
+ rows[rows.length - 2] += rows.pop();
662
+ }
663
+ };
664
+ var stringVisibleTrimSpacesRight = (string) => {
665
+ const words = string.split(" ");
666
+ let last = words.length;
667
+ while (last > 0) {
668
+ if (stringWidth(words[last - 1]) > 0) {
669
+ break;
287
670
  }
288
- wrapped += str.charAt(i);
671
+ last--;
289
672
  }
290
- if (start && end) {
291
- wrapped = `${start}${wrapped}${end}`;
673
+ if (last === words.length) {
674
+ return string;
292
675
  }
293
- return wrapped;
676
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
677
+ };
678
+ var exec = (string, columns, options = {}) => {
679
+ if (options.trim !== false && string.trim() === "") {
680
+ return "";
681
+ }
682
+ let returnValue = "";
683
+ let escapeCode;
684
+ let escapeUrl;
685
+ const lengths = wordLengths(string);
686
+ let rows = [""];
687
+ for (const [index, word] of string.split(" ").entries()) {
688
+ if (options.trim !== false) {
689
+ rows[rows.length - 1] = rows.at(-1).trimStart();
690
+ }
691
+ let rowLength = stringWidth(rows.at(-1));
692
+ if (index !== 0) {
693
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
694
+ rows.push("");
695
+ rowLength = 0;
696
+ }
697
+ if (rowLength > 0 || options.trim === false) {
698
+ rows[rows.length - 1] += " ";
699
+ rowLength++;
700
+ }
701
+ }
702
+ if (options.hard && lengths[index] > columns) {
703
+ const remainingColumns = columns - rowLength;
704
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
705
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
706
+ if (breaksStartingNextLine < breaksStartingThisLine) {
707
+ rows.push("");
708
+ }
709
+ wrapWord(rows, word, columns);
710
+ continue;
711
+ }
712
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
713
+ if (options.wordWrap === false && rowLength < columns) {
714
+ wrapWord(rows, word, columns);
715
+ continue;
716
+ }
717
+ rows.push("");
718
+ }
719
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
720
+ wrapWord(rows, word, columns);
721
+ continue;
722
+ }
723
+ rows[rows.length - 1] += word;
724
+ }
725
+ if (options.trim !== false) {
726
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
727
+ }
728
+ const preString = rows.join(`
729
+ `);
730
+ const pre = [...preString];
731
+ let preStringIndex = 0;
732
+ for (const [index, character] of pre.entries()) {
733
+ returnValue += character;
734
+ if (ESCAPES.has(character)) {
735
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
736
+ if (groups.code !== undefined) {
737
+ const code2 = Number.parseFloat(groups.code);
738
+ escapeCode = code2 === END_CODE ? undefined : code2;
739
+ } else if (groups.uri !== undefined) {
740
+ escapeUrl = groups.uri.length === 0 ? undefined : groups.uri;
741
+ }
742
+ }
743
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
744
+ if (pre[index + 1] === `
745
+ `) {
746
+ if (escapeUrl) {
747
+ returnValue += wrapAnsiHyperlink("");
748
+ }
749
+ if (escapeCode && code) {
750
+ returnValue += wrapAnsiCode(code);
751
+ }
752
+ } else if (character === `
753
+ `) {
754
+ if (escapeCode && code) {
755
+ returnValue += wrapAnsiCode(escapeCode);
756
+ }
757
+ if (escapeUrl) {
758
+ returnValue += wrapAnsiHyperlink(escapeUrl);
759
+ }
760
+ }
761
+ preStringIndex += character.length;
762
+ }
763
+ return returnValue;
764
+ };
765
+ function wrapAnsi(string, columns, options) {
766
+ return String(string).normalize().replaceAll(`\r
767
+ `, `
768
+ `).split(`
769
+ `).map((line) => exec(line, columns, options)).join(`
770
+ `);
294
771
  }
295
772
 
296
773
  // ../../node_modules/cliui/index.mjs
297
774
  function ui(opts) {
298
775
  return cliui(opts, {
299
- stringWidth: (str) => {
300
- return [...str].length;
301
- },
302
- stripAnsi,
303
- wrap
776
+ stringWidth,
777
+ stripAnsi: stripAnsi2,
778
+ wrap: wrapAnsi
304
779
  });
305
780
  }
306
781
 
@@ -325,14 +800,13 @@ function sync_default(start, callback) {
325
800
 
326
801
  // ../../node_modules/yargs/lib/platform-shims/esm.mjs
327
802
  import { inspect } from "util";
328
- import { readFileSync as readFileSync2 } from "fs";
329
803
  import { fileURLToPath } from "url";
330
804
 
331
- // ../../node_modules/yargs-parser/build/lib/index.js
805
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/lib/index.js
332
806
  import { format } from "util";
333
807
  import { normalize, resolve as resolve2 } from "path";
334
808
 
335
- // ../../node_modules/yargs-parser/build/lib/string-utils.js
809
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/lib/string-utils.js
336
810
  function camelCase(str) {
337
811
  const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
338
812
  if (!isCamelCase) {
@@ -386,7 +860,7 @@ function looksLikeNumber(x) {
386
860
  return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
387
861
  }
388
862
 
389
- // ../../node_modules/yargs-parser/build/lib/tokenize-arg-string.js
863
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/lib/tokenize-arg-string.js
390
864
  function tokenizeArgString(argString) {
391
865
  if (Array.isArray(argString)) {
392
866
  return argString.map((e) => typeof e !== "string" ? e + "" : e);
@@ -418,7 +892,7 @@ function tokenizeArgString(argString) {
418
892
  return args;
419
893
  }
420
894
 
421
- // ../../node_modules/yargs-parser/build/lib/yargs-parser-types.js
895
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser-types.js
422
896
  var DefaultValuesForTypeKey;
423
897
  (function(DefaultValuesForTypeKey2) {
424
898
  DefaultValuesForTypeKey2["BOOLEAN"] = "boolean";
@@ -427,7 +901,7 @@ var DefaultValuesForTypeKey;
427
901
  DefaultValuesForTypeKey2["ARRAY"] = "array";
428
902
  })(DefaultValuesForTypeKey || (DefaultValuesForTypeKey = {}));
429
903
 
430
- // ../../node_modules/yargs-parser/build/lib/yargs-parser.js
904
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser.js
431
905
  var mixin2;
432
906
 
433
907
  class YargsParser {
@@ -1265,11 +1739,13 @@ function stripQuotes(val) {
1265
1739
  return typeof val === "string" && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0] ? val.substring(1, val.length - 1) : val;
1266
1740
  }
1267
1741
 
1268
- // ../../node_modules/yargs-parser/build/lib/index.js
1742
+ // ../../node_modules/yargs/node_modules/yargs-parser/build/lib/index.js
1743
+ import { readFileSync } from "fs";
1744
+ import { createRequire } from "node:module";
1269
1745
  var _a;
1270
1746
  var _b;
1271
1747
  var _c;
1272
- var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
1748
+ var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 20;
1273
1749
  var nodeVersion = (_b = (_a = process === null || process === undefined ? undefined : process.versions) === null || _a === undefined ? undefined : _a.node) !== null && _b !== undefined ? _b : (_c = process === null || process === undefined ? undefined : process.version) === null || _c === undefined ? undefined : _c.slice(1);
1274
1750
  if (nodeVersion) {
1275
1751
  const major = Number(nodeVersion.match(/^([^.]+)/)[1]);
@@ -1278,6 +1754,7 @@ if (nodeVersion) {
1278
1754
  }
1279
1755
  }
1280
1756
  var env = process ? process.env : {};
1757
+ var require2 = createRequire ? createRequire(import.meta.url) : undefined;
1281
1758
  var parser = new YargsParser({
1282
1759
  cwd: process.cwd,
1283
1760
  env: () => {
@@ -1287,10 +1764,13 @@ var parser = new YargsParser({
1287
1764
  normalize,
1288
1765
  resolve: resolve2,
1289
1766
  require: (path) => {
1290
- if (true) {
1291
- return __require(path);
1292
- } else
1293
- ;
1767
+ if (typeof require2 !== "undefined") {
1768
+ return require2(path);
1769
+ } else if (path.match(/\.json$/)) {
1770
+ return JSON.parse(readFileSync(path, "utf8"));
1771
+ } else {
1772
+ throw Error("only .json config files are supported in ESM");
1773
+ }
1294
1774
  }
1295
1775
  });
1296
1776
  var yargsParser = function Parser(args, opts) {
@@ -1306,7 +1786,7 @@ yargsParser.looksLikeNumber = looksLikeNumber;
1306
1786
  var lib_default = yargsParser;
1307
1787
 
1308
1788
  // ../../node_modules/yargs/lib/platform-shims/esm.mjs
1309
- import { basename, dirname as dirname2, extname, relative, resolve as resolve4 } from "path";
1789
+ import { basename, dirname as dirname2, extname, relative, resolve as resolve4, join } from "path";
1310
1790
 
1311
1791
  // ../../node_modules/yargs/build/lib/utils/process-argv.js
1312
1792
  function getProcessArgvBinIndex() {
@@ -1327,24 +1807,13 @@ function getProcessArgvBin() {
1327
1807
  return process.argv[getProcessArgvBinIndex()];
1328
1808
  }
1329
1809
 
1330
- // ../../node_modules/yargs/build/lib/yerror.js
1331
- class YError extends Error {
1332
- constructor(msg) {
1333
- super(msg || "yargs error");
1334
- this.name = "YError";
1335
- if (Error.captureStackTrace) {
1336
- Error.captureStackTrace(this, YError);
1337
- }
1338
- }
1339
- }
1340
-
1341
1810
  // ../../node_modules/y18n/build/lib/platform-shims/node.js
1342
- import { readFileSync, statSync as statSync2, writeFile } from "fs";
1811
+ import { readFileSync as readFileSync2, statSync as statSync2, writeFile } from "fs";
1343
1812
  import { format as format2 } from "util";
1344
1813
  import { resolve as resolve3 } from "path";
1345
1814
  var node_default = {
1346
1815
  fs: {
1347
- readFileSync,
1816
+ readFileSync: readFileSync2,
1348
1817
  writeFile
1349
1818
  },
1350
1819
  format: format2,
@@ -1524,15 +1993,12 @@ var y18n2 = (opts) => {
1524
1993
  var y18n_default = y18n2;
1525
1994
 
1526
1995
  // ../../node_modules/yargs/lib/platform-shims/esm.mjs
1527
- var REQUIRE_ERROR = "require is not supported by ESM";
1528
- var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM";
1529
- var __dirname2;
1530
- try {
1531
- __dirname2 = fileURLToPath(import.meta.url);
1532
- } catch (e) {
1533
- __dirname2 = process.cwd();
1534
- }
1996
+ var import_get_caller_file = __toESM(require_get_caller_file(), 1);
1997
+ import { createRequire as createRequire2 } from "node:module";
1998
+ import { readFileSync as readFileSync3, readdirSync as readdirSync2 } from "node:fs";
1999
+ var __dirname2 = fileURLToPath(import.meta.url);
1535
2000
  var mainFilename = __dirname2.substring(0, __dirname2.lastIndexOf("node_modules"));
2001
+ var require3 = createRequire2(import.meta.url);
1536
2002
  var esm_default = {
1537
2003
  assert: {
1538
2004
  notStrictEqual,
@@ -1544,9 +2010,6 @@ var esm_default = {
1544
2010
  return process.env[key];
1545
2011
  },
1546
2012
  inspect,
1547
- getCallerFile: () => {
1548
- throw new YError(REQUIRE_DIRECTORY_ERROR);
1549
- },
1550
2013
  getProcessArgvBin,
1551
2014
  mainFilename: mainFilename || process.cwd(),
1552
2015
  Parser: lib_default,
@@ -1555,27 +2018,28 @@ var esm_default = {
1555
2018
  dirname: dirname2,
1556
2019
  extname,
1557
2020
  relative,
1558
- resolve: resolve4
2021
+ resolve: resolve4,
2022
+ join
1559
2023
  },
1560
2024
  process: {
1561
2025
  argv: () => process.argv,
1562
2026
  cwd: process.cwd,
1563
2027
  emitWarning: (warning, type) => process.emitWarning(warning, type),
1564
2028
  execPath: () => process.execPath,
1565
- exit: process.exit,
2029
+ exit: (code) => {
2030
+ process.exit(code);
2031
+ },
1566
2032
  nextTick: process.nextTick,
1567
2033
  stdColumns: typeof process.stdout.columns !== "undefined" ? process.stdout.columns : null
1568
2034
  },
1569
- readFileSync: readFileSync2,
1570
- require: () => {
1571
- throw new YError(REQUIRE_ERROR);
1572
- },
1573
- requireDirectory: () => {
1574
- throw new YError(REQUIRE_DIRECTORY_ERROR);
1575
- },
1576
- stringWidth: (str) => {
1577
- return [...str].length;
2035
+ readFileSync: readFileSync3,
2036
+ readdirSync: readdirSync2,
2037
+ require: require3,
2038
+ getCallerFile: () => {
2039
+ const callerFile = import_get_caller_file.default(3);
2040
+ return callerFile.match(/^file:\/\//) ? fileURLToPath(callerFile) : callerFile;
1578
2041
  },
2042
+ stringWidth,
1579
2043
  y18n: y18n_default({
1580
2044
  directory: resolve4(__dirname2, "../../../locales"),
1581
2045
  updateFiles: false
@@ -1598,6 +2062,17 @@ function isPromise(maybePromise) {
1598
2062
  return !!maybePromise && !!maybePromise.then && typeof maybePromise.then === "function";
1599
2063
  }
1600
2064
 
2065
+ // ../../node_modules/yargs/build/lib/yerror.js
2066
+ class YError extends Error {
2067
+ constructor(msg) {
2068
+ super(msg || "yargs error");
2069
+ this.name = "YError";
2070
+ if (Error.captureStackTrace) {
2071
+ Error.captureStackTrace(this, YError);
2072
+ }
2073
+ }
2074
+ }
2075
+
1601
2076
  // ../../node_modules/yargs/build/lib/parse-command.js
1602
2077
  function parseCommand(cmd) {
1603
2078
  const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, " ");
@@ -1786,18 +2261,6 @@ function isFunction(arg) {
1786
2261
  return typeof arg === "function";
1787
2262
  }
1788
2263
 
1789
- // ../../node_modules/yargs/build/lib/utils/which-module.js
1790
- function whichModule(exported) {
1791
- if (false)
1792
- ;
1793
- for (let i = 0, files = Object.keys(__require.cache), mod;i < files.length; i++) {
1794
- mod = __require.cache[files[i]];
1795
- if (mod.exports === exported)
1796
- return mod;
1797
- }
1798
- return null;
1799
- }
1800
-
1801
2264
  // ../../node_modules/yargs/build/lib/command.js
1802
2265
  var DEFAULT_MARKER = /(^\*)|(^\$0)/;
1803
2266
 
@@ -1814,23 +2277,58 @@ class CommandInstance {
1814
2277
  }
1815
2278
  addDirectory(dir, req, callerFile, opts) {
1816
2279
  opts = opts || {};
1817
- if (typeof opts.recurse !== "boolean")
1818
- opts.recurse = false;
2280
+ this.requireCache.add(callerFile);
2281
+ const fullDirPath = this.shim.path.resolve(this.shim.path.dirname(callerFile), dir);
2282
+ const files = this.shim.readdirSync(fullDirPath, {
2283
+ recursive: opts.recurse ? true : false
2284
+ });
1819
2285
  if (!Array.isArray(opts.extensions))
1820
2286
  opts.extensions = ["js"];
1821
- const parentVisit = typeof opts.visit === "function" ? opts.visit : (o) => o;
1822
- opts.visit = (obj, joined, filename) => {
1823
- const visited = parentVisit(obj, joined, filename);
1824
- if (visited) {
1825
- if (this.requireCache.has(joined))
1826
- return visited;
1827
- else
1828
- this.requireCache.add(joined);
1829
- this.addHandler(visited);
2287
+ const visit = typeof opts.visit === "function" ? opts.visit : (o) => o;
2288
+ for (const fileb of files) {
2289
+ const file = fileb.toString();
2290
+ if (opts.exclude) {
2291
+ let exclude = false;
2292
+ if (typeof opts.exclude === "function") {
2293
+ exclude = opts.exclude(file);
2294
+ } else {
2295
+ exclude = opts.exclude.test(file);
2296
+ }
2297
+ if (exclude)
2298
+ continue;
1830
2299
  }
1831
- return visited;
1832
- };
1833
- this.shim.requireDirectory({ require: req, filename: callerFile }, dir, opts);
2300
+ if (opts.include) {
2301
+ let include = false;
2302
+ if (typeof opts.include === "function") {
2303
+ include = opts.include(file);
2304
+ } else {
2305
+ include = opts.include.test(file);
2306
+ }
2307
+ if (!include)
2308
+ continue;
2309
+ }
2310
+ let supportedExtension = false;
2311
+ for (const ext of opts.extensions) {
2312
+ if (file.endsWith(ext))
2313
+ supportedExtension = true;
2314
+ }
2315
+ if (supportedExtension) {
2316
+ const joined = this.shim.path.join(fullDirPath, file);
2317
+ const module = req(joined);
2318
+ const extendableModule = Object.create(null, Object.getOwnPropertyDescriptors({ ...module }));
2319
+ const visited = visit(extendableModule, joined, file);
2320
+ if (visited) {
2321
+ if (this.requireCache.has(joined))
2322
+ continue;
2323
+ else
2324
+ this.requireCache.add(joined);
2325
+ if (!extendableModule.command) {
2326
+ extendableModule.command = this.shim.path.basename(joined, this.shim.path.extname(joined));
2327
+ }
2328
+ this.addHandler(extendableModule);
2329
+ }
2330
+ }
2331
+ }
1834
2332
  }
1835
2333
  addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) {
1836
2334
  let aliases = [];
@@ -1845,7 +2343,10 @@ class CommandInstance {
1845
2343
  }
1846
2344
  }
1847
2345
  } else if (isCommandHandlerDefinition(cmd)) {
1848
- let command = Array.isArray(cmd.command) || typeof cmd.command === "string" ? cmd.command : this.moduleName(cmd);
2346
+ let command = Array.isArray(cmd.command) || typeof cmd.command === "string" ? cmd.command : null;
2347
+ if (command === null) {
2348
+ throw new Error(`No command name given for module: ${this.shim.inspect(cmd)}`);
2349
+ }
1849
2350
  if (cmd.aliases)
1850
2351
  command = [].concat(command).concat(cmd.aliases);
1851
2352
  this.addHandler(command, this.extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
@@ -2129,15 +2630,6 @@ class CommandInstance {
2129
2630
  }
2130
2631
  return;
2131
2632
  }
2132
- moduleName(obj) {
2133
- const mod = whichModule(obj);
2134
- if (!mod)
2135
- throw new Error(`No command name given for module: ${this.shim.inspect(obj)}`);
2136
- return this.commandFromFilename(mod.filename);
2137
- }
2138
- commandFromFilename(filename) {
2139
- return this.shim.path.basename(filename, this.shim.path.extname(filename));
2140
- }
2141
2633
  extractDesc({ describe, description, desc }) {
2142
2634
  for (const test of [describe, description, desc]) {
2143
2635
  if (typeof test === "string" || test === false)
@@ -2334,20 +2826,20 @@ function usage(yargs, shim2) {
2334
2826
  epilogs.push(msg);
2335
2827
  };
2336
2828
  let wrapSet = false;
2337
- let wrap2;
2829
+ let wrap;
2338
2830
  self.wrap = (cols) => {
2339
2831
  wrapSet = true;
2340
- wrap2 = cols;
2832
+ wrap = cols;
2341
2833
  };
2342
2834
  self.getWrap = () => {
2343
2835
  if (shim2.getEnv("YARGS_DISABLE_WRAP")) {
2344
2836
  return null;
2345
2837
  }
2346
2838
  if (!wrapSet) {
2347
- wrap2 = windowWidth();
2839
+ wrap = windowWidth();
2348
2840
  wrapSet = true;
2349
2841
  }
2350
- return wrap2;
2842
+ return wrap;
2351
2843
  };
2352
2844
  const deferY18nLookupPrefix = "__yargsString__:";
2353
2845
  self.deferY18nLookup = (str) => deferY18nLookupPrefix + str;
@@ -2755,9 +3247,10 @@ _{{app_name}}_yargs_completions()
2755
3247
  args=("\${COMP_WORDS[@]}")
2756
3248
 
2757
3249
  # ask yargs to generate completions.
2758
- type_list=$({{app_path}} --get-yargs-completions "\${args[@]}")
2759
-
2760
- COMPREPLY=( $(compgen -W "\${type_list}" -- \${cur_word}) )
3250
+ # see https://stackoverflow.com/a/40944195/7080036 for the spaces-handling awk
3251
+ mapfile -t type_list < <({{app_path}} --get-yargs-completions "\${args[@]}")
3252
+ mapfile -t COMPREPLY < <(compgen -W "$( printf '%q ' "\${type_list[@]}" )" -- "\${cur_word}" |
3253
+ awk '/ / { print "\\""$0"\\"" } /^[^ ]+$/ { print $0 }')
2761
3254
 
2762
3255
  # if no match was found, fall back to filename completion
2763
3256
  if [ \${#COMPREPLY[@]} -eq 0 ]; then
@@ -2784,9 +3277,17 @@ _{{app_name}}_yargs_completions()
2784
3277
  IFS=$'
2785
3278
  ' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
2786
3279
  IFS=$si
2787
- _describe 'values' reply
3280
+ if [[ \${#reply} -gt 0 ]]; then
3281
+ _describe 'values' reply
3282
+ else
3283
+ _default
3284
+ fi
2788
3285
  }
2789
- compdef _{{app_name}}_yargs_completions {{app_name}}
3286
+ if [[ "'\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
3287
+ _{{app_name}}_yargs_completions "$@"
3288
+ else
3289
+ compdef _{{app_name}}_yargs_completions {{app_name}}
3290
+ fi
2790
3291
  ###-end-{{app_name}}-completions-###
2791
3292
  `;
2792
3293
 
@@ -3317,7 +3818,7 @@ function applyExtends(config, cwd, mergeExtends, _shim) {
3317
3818
  let pathToDefault = null;
3318
3819
  if (!isPath) {
3319
3820
  try {
3320
- pathToDefault = __require.resolve(config.extends);
3821
+ pathToDefault = import.meta.resolve(config.extends);
3321
3822
  } catch (_err) {
3322
3823
  return config;
3323
3824
  }
@@ -3326,7 +3827,7 @@ function applyExtends(config, cwd, mergeExtends, _shim) {
3326
3827
  }
3327
3828
  checkForCircularExtends(pathToDefault);
3328
3829
  previouslyVisitedConfigs.push(pathToDefault);
3329
- defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : __require(config.extends);
3830
+ defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : _shim.require(config.extends);
3330
3831
  delete config.extends;
3331
3832
  defaultConfig = applyExtends(defaultConfig, shim2.path.dirname(pathToDefault), mergeExtends, shim2);
3332
3833
  }
@@ -3459,6 +3960,7 @@ var kRunYargsParserAndExecuteCommands = Symbol("runYargsParserAndExecuteCommands
3459
3960
  var kRunValidation = Symbol("runValidation");
3460
3961
  var kSetHasOutput = Symbol("setHasOutput");
3461
3962
  var kTrackManuallySetKeys = Symbol("kTrackManuallySetKeys");
3963
+ var DEFAULT_LOCALE = "en_US";
3462
3964
 
3463
3965
  class YargsInstance {
3464
3966
  constructor(processArgs = [], cwd, parentRequire, shim3) {
@@ -3512,6 +4014,7 @@ class YargsInstance {
3512
4014
  __classPrivateFieldSet(this, _YargsInstance_options, __classPrivateFieldGet(this, _YargsInstance_options, "f"), "f");
3513
4015
  __classPrivateFieldGet(this, _YargsInstance_options, "f").showHiddenOpt = __classPrivateFieldGet(this, _YargsInstance_defaultShowHiddenOpt, "f");
3514
4016
  __classPrivateFieldSet(this, _YargsInstance_logger, this[kCreateLogger](), "f");
4017
+ __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.setLocale(DEFAULT_LOCALE);
3515
4018
  }
3516
4019
  addHelpOpt(opt, msg) {
3517
4020
  const defaultHelpOpt = "help";
@@ -3603,29 +4106,26 @@ class YargsInstance {
3603
4106
  if (!value) {
3604
4107
  throw new YError("coerce callback must be provided");
3605
4108
  }
3606
- __classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true;
4109
+ const coerceKey = keys;
4110
+ __classPrivateFieldGet(this, _YargsInstance_options, "f").key[coerceKey] = true;
3607
4111
  __classPrivateFieldGet(this, _YargsInstance_globalMiddleware, "f").addCoerceMiddleware((argv, yargs) => {
3608
- let aliases;
3609
- const shouldCoerce = Object.prototype.hasOwnProperty.call(argv, keys);
3610
- if (!shouldCoerce) {
4112
+ var _a2;
4113
+ const coerceKeyAliases = (_a2 = yargs.getAliases()[coerceKey]) !== null && _a2 !== undefined ? _a2 : [];
4114
+ const argvKeys = [coerceKey, ...coerceKeyAliases].filter((key) => Object.prototype.hasOwnProperty.call(argv, key));
4115
+ if (argvKeys.length === 0) {
3611
4116
  return argv;
3612
4117
  }
3613
4118
  return maybeAsyncResult(() => {
3614
- aliases = yargs.getAliases();
3615
- return value(argv[keys]);
4119
+ return value(argv[argvKeys[0]]);
3616
4120
  }, (result) => {
3617
- argv[keys] = result;
3618
- const stripAliased = yargs.getInternalMethods().getParserConfiguration()["strip-aliased"];
3619
- if (aliases[keys] && stripAliased !== true) {
3620
- for (const alias of aliases[keys]) {
3621
- argv[alias] = result;
3622
- }
3623
- }
4121
+ argvKeys.forEach((key) => {
4122
+ argv[key] = result;
4123
+ });
3624
4124
  return argv;
3625
4125
  }, (err) => {
3626
4126
  throw new YError(err.message);
3627
4127
  });
3628
- }, keys);
4128
+ }, coerceKey);
3629
4129
  return this;
3630
4130
  }
3631
4131
  conflicts(key1, key2) {
@@ -4448,7 +4948,7 @@ class YargsInstance {
4448
4948
  let obj = {};
4449
4949
  try {
4450
4950
  let startDir = rootPath || __classPrivateFieldGet(this, _YargsInstance_shim, "f").mainFilename;
4451
- if (!rootPath && __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.extname(startDir)) {
4951
+ if (__classPrivateFieldGet(this, _YargsInstance_shim, "f").path.extname(startDir)) {
4452
4952
  startDir = __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.dirname(startDir);
4453
4953
  }
4454
4954
  const pkgJsonPath = __classPrivateFieldGet(this, _YargsInstance_shim, "f").findUp(startDir, (dir, names) => {
@@ -4691,6 +5191,7 @@ class YargsInstance {
4691
5191
  return __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.relative(base, dir);
4692
5192
  }
4693
5193
  [kRunYargsParserAndExecuteCommands](args, shortCircuit, calledFromCommand, commandIndex = 0, helpOnly = false) {
5194
+ var _a2, _b2, _c2, _d;
4694
5195
  let skipValidation = !!calledFromCommand || helpOnly;
4695
5196
  args = args || __classPrivateFieldGet(this, _YargsInstance_processArgs, "f");
4696
5197
  __classPrivateFieldGet(this, _YargsInstance_options, "f").__ = __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__;
@@ -4733,7 +5234,10 @@ class YargsInstance {
4733
5234
  }
4734
5235
  __classPrivateFieldSet(this, _YargsInstance_isGlobalContext, false, "f");
4735
5236
  const handlerKeys = __classPrivateFieldGet(this, _YargsInstance_command, "f").getCommands();
4736
- const requestCompletions = __classPrivateFieldGet(this, _YargsInstance_completion, "f").completionKey in argv;
5237
+ const requestCompletions = ((_a2 = __classPrivateFieldGet(this, _YargsInstance_completion, "f")) === null || _a2 === undefined ? undefined : _a2.completionKey) ? [
5238
+ (_b2 = __classPrivateFieldGet(this, _YargsInstance_completion, "f")) === null || _b2 === undefined ? undefined : _b2.completionKey,
5239
+ ...(_d = this.getAliases()[(_c2 = __classPrivateFieldGet(this, _YargsInstance_completion, "f")) === null || _c2 === undefined ? undefined : _c2.completionKey]) !== null && _d !== undefined ? _d : []
5240
+ ].some((key) => Object.prototype.hasOwnProperty.call(argv, key)) : false;
4737
5241
  const skipRecommendation = helpOptSet || requestCompletions || helpOnly;
4738
5242
  if (argv._.length) {
4739
5243
  if (handlerKeys.length) {
@@ -4783,8 +5287,10 @@ class YargsInstance {
4783
5287
  if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
4784
5288
  setBlocking(true);
4785
5289
  skipValidation = true;
4786
- this.showHelp("log");
4787
- this.exit(0);
5290
+ this.showHelp((message) => {
5291
+ __classPrivateFieldGet(this, _YargsInstance_logger, "f").log(message);
5292
+ this.exit(0);
5293
+ });
4788
5294
  } else if (versionOptSet) {
4789
5295
  if (__classPrivateFieldGet(this, _YargsInstance_exitProcess, "f"))
4790
5296
  setBlocking(true);
@@ -4916,5 +5422,5 @@ in your ${chalk.bold("package.json")} in ${chalk.bold("requence.accessToken")}`)
4916
5422
  console.info(chalk.green("types saved to", chalk.bold(path.relative(process.cwd(), file))));
4917
5423
  }).scriptName("requence-task").help("h").demandCommand(1, 1).strict().parse();
4918
5424
 
4919
- //# debugId=F3A972B39B5A133F64756E2164756E21
5425
+ //# debugId=240FFBF1B223CE4564756E2164756E21
4920
5426
  //# sourceMappingURL=cli.js.map