@socketsecurity/lib 5.6.0 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +92 -2
  2. package/README.md +190 -18
  3. package/dist/archives.d.ts +58 -0
  4. package/dist/archives.js +313 -0
  5. package/dist/arrays.js +2 -3
  6. package/dist/cache-with-ttl.js +25 -6
  7. package/dist/constants/node.js +2 -1
  8. package/dist/cover/formatters.js +5 -3
  9. package/dist/dlx/binary.d.ts +20 -0
  10. package/dist/dlx/binary.js +115 -99
  11. package/dist/dlx/detect.d.ts +8 -8
  12. package/dist/dlx/detect.js +18 -18
  13. package/dist/dlx/manifest.d.ts +32 -31
  14. package/dist/dlx/manifest.js +114 -112
  15. package/dist/dlx/package.d.ts +55 -0
  16. package/dist/dlx/package.js +90 -80
  17. package/dist/env/ci.js +1 -2
  18. package/dist/env/rewire.d.ts +33 -22
  19. package/dist/env/rewire.js +20 -7
  20. package/dist/env/socket-cli.d.ts +24 -24
  21. package/dist/env/socket-cli.js +12 -12
  22. package/dist/env/temp-dir.d.ts +6 -6
  23. package/dist/env/temp-dir.js +4 -4
  24. package/dist/env/windows.d.ts +6 -6
  25. package/dist/env/windows.js +4 -4
  26. package/dist/external/@npmcli/package-json.js +352 -824
  27. package/dist/external/adm-zip.js +2695 -0
  28. package/dist/external/debug.js +183 -7
  29. package/dist/external/external-pack.js +19 -1409
  30. package/dist/external/libnpmexec.js +2 -2
  31. package/dist/external/npm-pack.js +18777 -19997
  32. package/dist/external/pico-pack.js +29 -5
  33. package/dist/external/spdx-pack.js +41 -263
  34. package/dist/external/tar-fs.js +3053 -0
  35. package/dist/git.js +22 -4
  36. package/dist/github.js +17 -9
  37. package/dist/globs.js +20 -1
  38. package/dist/http-request.js +1 -1
  39. package/dist/memoization.js +22 -13
  40. package/dist/package-extensions.js +4 -2
  41. package/dist/packages/normalize.js +3 -0
  42. package/dist/packages/specs.js +1 -1
  43. package/dist/process-lock.js +4 -2
  44. package/dist/releases/github.d.ts +55 -4
  45. package/dist/releases/github.js +203 -101
  46. package/dist/spawn.js +1 -1
  47. package/dist/spinner.js +1 -1
  48. package/dist/stdio/progress.js +2 -2
  49. package/package.json +38 -15
@@ -2701,1402 +2701,12 @@ var require_commonjs4 = __commonJS({
2701
2701
  }
2702
2702
  });
2703
2703
 
2704
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js
2705
- var require_key2 = __commonJS({
2706
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/key.js"(exports2) {
2707
- "use strict";
2708
- Object.defineProperty(exports2, "__esModule", { value: true });
2709
- exports2.isEnterKey = exports2.isNumberKey = exports2.isTabKey = exports2.isBackspaceKey = exports2.isSpaceKey = exports2.isDownKey = exports2.isUpKey = void 0;
2710
- var isUpKey = /* @__PURE__ */ __name((key, keybindings = []) => (
2711
- // The up key
2712
- key.name === "up" || // Vim keybinding: hjkl keys map to left/down/up/right
2713
- keybindings.includes("vim") && key.name === "k" || // Emacs keybinding: Ctrl+P means "previous" in Emacs navigation conventions
2714
- keybindings.includes("emacs") && key.ctrl && key.name === "p"
2715
- ), "isUpKey");
2716
- exports2.isUpKey = isUpKey;
2717
- var isDownKey = /* @__PURE__ */ __name((key, keybindings = []) => (
2718
- // The down key
2719
- key.name === "down" || // Vim keybinding: hjkl keys map to left/down/up/right
2720
- keybindings.includes("vim") && key.name === "j" || // Emacs keybinding: Ctrl+N means "next" in Emacs navigation conventions
2721
- keybindings.includes("emacs") && key.ctrl && key.name === "n"
2722
- ), "isDownKey");
2723
- exports2.isDownKey = isDownKey;
2724
- var isSpaceKey = /* @__PURE__ */ __name((key) => key.name === "space", "isSpaceKey");
2725
- exports2.isSpaceKey = isSpaceKey;
2726
- var isBackspaceKey = /* @__PURE__ */ __name((key) => key.name === "backspace", "isBackspaceKey");
2727
- exports2.isBackspaceKey = isBackspaceKey;
2728
- var isTabKey = /* @__PURE__ */ __name((key) => key.name === "tab", "isTabKey");
2729
- exports2.isTabKey = isTabKey;
2730
- var isNumberKey = /* @__PURE__ */ __name((key) => "1234567890".includes(key.name), "isNumberKey");
2731
- exports2.isNumberKey = isNumberKey;
2732
- var isEnterKey = /* @__PURE__ */ __name((key) => key.name === "enter" || key.name === "return", "isEnterKey");
2733
- exports2.isEnterKey = isEnterKey;
2734
- }
2735
- });
2736
-
2737
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/errors.js
2738
- var require_errors2 = __commonJS({
2739
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/errors.js"(exports2) {
2740
- "use strict";
2741
- Object.defineProperty(exports2, "__esModule", { value: true });
2742
- exports2.ValidationError = exports2.HookError = exports2.ExitPromptError = exports2.CancelPromptError = exports2.AbortPromptError = void 0;
2743
- var AbortPromptError = class extends Error {
2744
- static {
2745
- __name(this, "AbortPromptError");
2746
- }
2747
- name = "AbortPromptError";
2748
- message = "Prompt was aborted";
2749
- constructor(options) {
2750
- super();
2751
- this.cause = options?.cause;
2752
- }
2753
- };
2754
- exports2.AbortPromptError = AbortPromptError;
2755
- var CancelPromptError = class extends Error {
2756
- static {
2757
- __name(this, "CancelPromptError");
2758
- }
2759
- name = "CancelPromptError";
2760
- message = "Prompt was canceled";
2761
- };
2762
- exports2.CancelPromptError = CancelPromptError;
2763
- var ExitPromptError = class extends Error {
2764
- static {
2765
- __name(this, "ExitPromptError");
2766
- }
2767
- name = "ExitPromptError";
2768
- };
2769
- exports2.ExitPromptError = ExitPromptError;
2770
- var HookError = class extends Error {
2771
- static {
2772
- __name(this, "HookError");
2773
- }
2774
- name = "HookError";
2775
- };
2776
- exports2.HookError = HookError;
2777
- var ValidationError = class extends Error {
2778
- static {
2779
- __name(this, "ValidationError");
2780
- }
2781
- name = "ValidationError";
2782
- };
2783
- exports2.ValidationError = ValidationError;
2784
- }
2785
- });
2786
-
2787
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js
2788
- var require_hook_engine2 = __commonJS({
2789
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js"(exports2) {
2790
- "use strict";
2791
- Object.defineProperty(exports2, "__esModule", { value: true });
2792
- exports2.effectScheduler = void 0;
2793
- exports2.withHooks = withHooks;
2794
- exports2.readline = readline;
2795
- exports2.withUpdates = withUpdates;
2796
- exports2.withPointer = withPointer;
2797
- exports2.handleChange = handleChange;
2798
- var node_async_hooks_1 = require("node:async_hooks");
2799
- var errors_ts_1 = require_errors2();
2800
- var hookStorage = new node_async_hooks_1.AsyncLocalStorage();
2801
- function createStore(rl) {
2802
- const store = {
2803
- rl,
2804
- hooks: [],
2805
- hooksCleanup: [],
2806
- hooksEffect: [],
2807
- index: 0,
2808
- handleChange() {
2809
- }
2810
- };
2811
- return store;
2812
- }
2813
- __name(createStore, "createStore");
2814
- function withHooks(rl, cb) {
2815
- const store = createStore(rl);
2816
- return hookStorage.run(store, () => {
2817
- function cycle(render) {
2818
- store.handleChange = () => {
2819
- store.index = 0;
2820
- render();
2821
- };
2822
- store.handleChange();
2823
- }
2824
- __name(cycle, "cycle");
2825
- return cb(cycle);
2826
- });
2827
- }
2828
- __name(withHooks, "withHooks");
2829
- function getStore() {
2830
- const store = hookStorage.getStore();
2831
- if (!store) {
2832
- throw new errors_ts_1.HookError("[Inquirer] Hook functions can only be called from within a prompt");
2833
- }
2834
- return store;
2835
- }
2836
- __name(getStore, "getStore");
2837
- function readline() {
2838
- return getStore().rl;
2839
- }
2840
- __name(readline, "readline");
2841
- function withUpdates(fn) {
2842
- const wrapped = /* @__PURE__ */ __name((...args) => {
2843
- const store = getStore();
2844
- let shouldUpdate = false;
2845
- const oldHandleChange = store.handleChange;
2846
- store.handleChange = () => {
2847
- shouldUpdate = true;
2848
- };
2849
- const returnValue = fn(...args);
2850
- if (shouldUpdate) {
2851
- oldHandleChange();
2852
- }
2853
- store.handleChange = oldHandleChange;
2854
- return returnValue;
2855
- }, "wrapped");
2856
- return node_async_hooks_1.AsyncResource.bind(wrapped);
2857
- }
2858
- __name(withUpdates, "withUpdates");
2859
- function withPointer(cb) {
2860
- const store = getStore();
2861
- const { index } = store;
2862
- const pointer = {
2863
- get() {
2864
- return store.hooks[index];
2865
- },
2866
- set(value) {
2867
- store.hooks[index] = value;
2868
- },
2869
- initialized: index in store.hooks
2870
- };
2871
- const returnValue = cb(pointer);
2872
- store.index++;
2873
- return returnValue;
2874
- }
2875
- __name(withPointer, "withPointer");
2876
- function handleChange() {
2877
- getStore().handleChange();
2878
- }
2879
- __name(handleChange, "handleChange");
2880
- exports2.effectScheduler = {
2881
- queue(cb) {
2882
- const store = getStore();
2883
- const { index } = store;
2884
- store.hooksEffect.push(() => {
2885
- store.hooksCleanup[index]?.();
2886
- const cleanFn = cb(readline());
2887
- if (cleanFn != null && typeof cleanFn !== "function") {
2888
- throw new errors_ts_1.ValidationError("useEffect return value must be a cleanup function or nothing.");
2889
- }
2890
- store.hooksCleanup[index] = cleanFn;
2891
- });
2892
- },
2893
- run() {
2894
- const store = getStore();
2895
- withUpdates(() => {
2896
- store.hooksEffect.forEach((effect) => {
2897
- effect();
2898
- });
2899
- store.hooksEffect.length = 0;
2900
- })();
2901
- },
2902
- clearAll() {
2903
- const store = getStore();
2904
- store.hooksCleanup.forEach((cleanFn) => {
2905
- cleanFn?.();
2906
- });
2907
- store.hooksEffect.length = 0;
2908
- store.hooksCleanup.length = 0;
2909
- }
2910
- };
2911
- }
2912
- });
2913
-
2914
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js
2915
- var require_use_state2 = __commonJS({
2916
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js"(exports2) {
2917
- "use strict";
2918
- Object.defineProperty(exports2, "__esModule", { value: true });
2919
- exports2.useState = useState;
2920
- var node_async_hooks_1 = require("node:async_hooks");
2921
- var hook_engine_ts_1 = require_hook_engine2();
2922
- function useState(defaultValue) {
2923
- return (0, hook_engine_ts_1.withPointer)((pointer) => {
2924
- const setState = node_async_hooks_1.AsyncResource.bind(/* @__PURE__ */ __name(function setState2(newValue) {
2925
- if (pointer.get() !== newValue) {
2926
- pointer.set(newValue);
2927
- (0, hook_engine_ts_1.handleChange)();
2928
- }
2929
- }, "setState"));
2930
- if (pointer.initialized) {
2931
- return [pointer.get(), setState];
2932
- }
2933
- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
2934
- pointer.set(value);
2935
- return [value, setState];
2936
- });
2937
- }
2938
- __name(useState, "useState");
2939
- }
2940
- });
2941
-
2942
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js
2943
- var require_use_effect2 = __commonJS({
2944
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js"(exports2) {
2945
- "use strict";
2946
- Object.defineProperty(exports2, "__esModule", { value: true });
2947
- exports2.useEffect = useEffect;
2948
- var hook_engine_ts_1 = require_hook_engine2();
2949
- function useEffect(cb, depArray) {
2950
- (0, hook_engine_ts_1.withPointer)((pointer) => {
2951
- const oldDeps = pointer.get();
2952
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
2953
- if (hasChanged) {
2954
- hook_engine_ts_1.effectScheduler.queue(cb);
2955
- }
2956
- pointer.set(depArray);
2957
- });
2958
- }
2959
- __name(useEffect, "useEffect");
2960
- }
2961
- });
2962
-
2963
- // node_modules/.pnpm/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/commonjs/index.js
2964
- var require_commonjs5 = __commonJS({
2965
- "node_modules/.pnpm/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/commonjs/index.js"(exports2) {
2966
- "use strict";
2967
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
2968
- return mod && mod.__esModule ? mod : { "default": mod };
2969
- };
2970
- Object.defineProperty(exports2, "__esModule", { value: true });
2971
- exports2.replaceSymbols = exports2.fallbackSymbols = exports2.mainSymbols = void 0;
2972
- var node_process_1 = __importDefault(require("node:process"));
2973
- function isUnicodeSupported() {
2974
- if (node_process_1.default.platform !== "win32") {
2975
- return node_process_1.default.env["TERM"] !== "linux";
2976
- }
2977
- return Boolean(node_process_1.default.env["WT_SESSION"]) || // Windows Terminal
2978
- Boolean(node_process_1.default.env["TERMINUS_SUBLIME"]) || // Terminus (<0.2.27)
2979
- node_process_1.default.env["ConEmuTask"] === "{cmd::Cmder}" || // ConEmu and cmder
2980
- node_process_1.default.env["TERM_PROGRAM"] === "Terminus-Sublime" || node_process_1.default.env["TERM_PROGRAM"] === "vscode" || node_process_1.default.env["TERM"] === "xterm-256color" || node_process_1.default.env["TERM"] === "alacritty" || node_process_1.default.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
2981
- }
2982
- __name(isUnicodeSupported, "isUnicodeSupported");
2983
- var common = {
2984
- circleQuestionMark: "(?)",
2985
- questionMarkPrefix: "(?)",
2986
- square: "█",
2987
- squareDarkShade: "▓",
2988
- squareMediumShade: "▒",
2989
- squareLightShade: "░",
2990
- squareTop: "▀",
2991
- squareBottom: "▄",
2992
- squareLeft: "▌",
2993
- squareRight: "▐",
2994
- squareCenter: "■",
2995
- bullet: "●",
2996
- dot: "․",
2997
- ellipsis: "…",
2998
- pointerSmall: "›",
2999
- triangleUp: "▲",
3000
- triangleUpSmall: "▴",
3001
- triangleDown: "▼",
3002
- triangleDownSmall: "▾",
3003
- triangleLeftSmall: "◂",
3004
- triangleRightSmall: "▸",
3005
- home: "⌂",
3006
- heart: "♥",
3007
- musicNote: "♪",
3008
- musicNoteBeamed: "♫",
3009
- arrowUp: "↑",
3010
- arrowDown: "↓",
3011
- arrowLeft: "←",
3012
- arrowRight: "→",
3013
- arrowLeftRight: "↔",
3014
- arrowUpDown: "↕",
3015
- almostEqual: "≈",
3016
- notEqual: "≠",
3017
- lessOrEqual: "≤",
3018
- greaterOrEqual: "≥",
3019
- identical: "≡",
3020
- infinity: "∞",
3021
- subscriptZero: "₀",
3022
- subscriptOne: "₁",
3023
- subscriptTwo: "₂",
3024
- subscriptThree: "₃",
3025
- subscriptFour: "₄",
3026
- subscriptFive: "₅",
3027
- subscriptSix: "₆",
3028
- subscriptSeven: "₇",
3029
- subscriptEight: "₈",
3030
- subscriptNine: "₉",
3031
- oneHalf: "½",
3032
- oneThird: "⅓",
3033
- oneQuarter: "¼",
3034
- oneFifth: "⅕",
3035
- oneSixth: "⅙",
3036
- oneEighth: "⅛",
3037
- twoThirds: "⅔",
3038
- twoFifths: "⅖",
3039
- threeQuarters: "¾",
3040
- threeFifths: "⅗",
3041
- threeEighths: "⅜",
3042
- fourFifths: "⅘",
3043
- fiveSixths: "⅚",
3044
- fiveEighths: "⅝",
3045
- sevenEighths: "⅞",
3046
- line: "─",
3047
- lineBold: "━",
3048
- lineDouble: "═",
3049
- lineDashed0: "┄",
3050
- lineDashed1: "┅",
3051
- lineDashed2: "┈",
3052
- lineDashed3: "┉",
3053
- lineDashed4: "╌",
3054
- lineDashed5: "╍",
3055
- lineDashed6: "╴",
3056
- lineDashed7: "╶",
3057
- lineDashed8: "╸",
3058
- lineDashed9: "╺",
3059
- lineDashed10: "╼",
3060
- lineDashed11: "╾",
3061
- lineDashed12: "−",
3062
- lineDashed13: "–",
3063
- lineDashed14: "‐",
3064
- lineDashed15: "⁃",
3065
- lineVertical: "│",
3066
- lineVerticalBold: "┃",
3067
- lineVerticalDouble: "║",
3068
- lineVerticalDashed0: "┆",
3069
- lineVerticalDashed1: "┇",
3070
- lineVerticalDashed2: "┊",
3071
- lineVerticalDashed3: "┋",
3072
- lineVerticalDashed4: "╎",
3073
- lineVerticalDashed5: "╏",
3074
- lineVerticalDashed6: "╵",
3075
- lineVerticalDashed7: "╷",
3076
- lineVerticalDashed8: "╹",
3077
- lineVerticalDashed9: "╻",
3078
- lineVerticalDashed10: "╽",
3079
- lineVerticalDashed11: "╿",
3080
- lineDownLeft: "┐",
3081
- lineDownLeftArc: "╮",
3082
- lineDownBoldLeftBold: "┓",
3083
- lineDownBoldLeft: "┒",
3084
- lineDownLeftBold: "┑",
3085
- lineDownDoubleLeftDouble: "╗",
3086
- lineDownDoubleLeft: "╖",
3087
- lineDownLeftDouble: "╕",
3088
- lineDownRight: "┌",
3089
- lineDownRightArc: "╭",
3090
- lineDownBoldRightBold: "┏",
3091
- lineDownBoldRight: "┎",
3092
- lineDownRightBold: "┍",
3093
- lineDownDoubleRightDouble: "╔",
3094
- lineDownDoubleRight: "╓",
3095
- lineDownRightDouble: "╒",
3096
- lineUpLeft: "┘",
3097
- lineUpLeftArc: "╯",
3098
- lineUpBoldLeftBold: "┛",
3099
- lineUpBoldLeft: "┚",
3100
- lineUpLeftBold: "┙",
3101
- lineUpDoubleLeftDouble: "╝",
3102
- lineUpDoubleLeft: "╜",
3103
- lineUpLeftDouble: "╛",
3104
- lineUpRight: "└",
3105
- lineUpRightArc: "╰",
3106
- lineUpBoldRightBold: "┗",
3107
- lineUpBoldRight: "┖",
3108
- lineUpRightBold: "┕",
3109
- lineUpDoubleRightDouble: "╚",
3110
- lineUpDoubleRight: "╙",
3111
- lineUpRightDouble: "╘",
3112
- lineUpDownLeft: "┤",
3113
- lineUpBoldDownBoldLeftBold: "┫",
3114
- lineUpBoldDownBoldLeft: "┨",
3115
- lineUpDownLeftBold: "┥",
3116
- lineUpBoldDownLeftBold: "┩",
3117
- lineUpDownBoldLeftBold: "┪",
3118
- lineUpDownBoldLeft: "┧",
3119
- lineUpBoldDownLeft: "┦",
3120
- lineUpDoubleDownDoubleLeftDouble: "╣",
3121
- lineUpDoubleDownDoubleLeft: "╢",
3122
- lineUpDownLeftDouble: "╡",
3123
- lineUpDownRight: "├",
3124
- lineUpBoldDownBoldRightBold: "┣",
3125
- lineUpBoldDownBoldRight: "┠",
3126
- lineUpDownRightBold: "┝",
3127
- lineUpBoldDownRightBold: "┡",
3128
- lineUpDownBoldRightBold: "┢",
3129
- lineUpDownBoldRight: "┟",
3130
- lineUpBoldDownRight: "┞",
3131
- lineUpDoubleDownDoubleRightDouble: "╠",
3132
- lineUpDoubleDownDoubleRight: "╟",
3133
- lineUpDownRightDouble: "╞",
3134
- lineDownLeftRight: "┬",
3135
- lineDownBoldLeftBoldRightBold: "┳",
3136
- lineDownLeftBoldRightBold: "┯",
3137
- lineDownBoldLeftRight: "┰",
3138
- lineDownBoldLeftBoldRight: "┱",
3139
- lineDownBoldLeftRightBold: "┲",
3140
- lineDownLeftRightBold: "┮",
3141
- lineDownLeftBoldRight: "┭",
3142
- lineDownDoubleLeftDoubleRightDouble: "╦",
3143
- lineDownDoubleLeftRight: "╥",
3144
- lineDownLeftDoubleRightDouble: "╤",
3145
- lineUpLeftRight: "┴",
3146
- lineUpBoldLeftBoldRightBold: "┻",
3147
- lineUpLeftBoldRightBold: "┷",
3148
- lineUpBoldLeftRight: "┸",
3149
- lineUpBoldLeftBoldRight: "┹",
3150
- lineUpBoldLeftRightBold: "┺",
3151
- lineUpLeftRightBold: "┶",
3152
- lineUpLeftBoldRight: "┵",
3153
- lineUpDoubleLeftDoubleRightDouble: "╩",
3154
- lineUpDoubleLeftRight: "╨",
3155
- lineUpLeftDoubleRightDouble: "╧",
3156
- lineUpDownLeftRight: "┼",
3157
- lineUpBoldDownBoldLeftBoldRightBold: "╋",
3158
- lineUpDownBoldLeftBoldRightBold: "╈",
3159
- lineUpBoldDownLeftBoldRightBold: "╇",
3160
- lineUpBoldDownBoldLeftRightBold: "╊",
3161
- lineUpBoldDownBoldLeftBoldRight: "╉",
3162
- lineUpBoldDownLeftRight: "╀",
3163
- lineUpDownBoldLeftRight: "╁",
3164
- lineUpDownLeftBoldRight: "┽",
3165
- lineUpDownLeftRightBold: "┾",
3166
- lineUpBoldDownBoldLeftRight: "╂",
3167
- lineUpDownLeftBoldRightBold: "┿",
3168
- lineUpBoldDownLeftBoldRight: "╃",
3169
- lineUpBoldDownLeftRightBold: "╄",
3170
- lineUpDownBoldLeftBoldRight: "╅",
3171
- lineUpDownBoldLeftRightBold: "╆",
3172
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
3173
- lineUpDoubleDownDoubleLeftRight: "╫",
3174
- lineUpDownLeftDoubleRightDouble: "╪",
3175
- lineCross: "╳",
3176
- lineBackslash: "╲",
3177
- lineSlash: "╱"
3178
- };
3179
- var specialMainSymbols = {
3180
- tick: "✔",
3181
- info: "ℹ",
3182
- warning: "⚠",
3183
- cross: "✘",
3184
- squareSmall: "◻",
3185
- squareSmallFilled: "◼",
3186
- circle: "◯",
3187
- circleFilled: "◉",
3188
- circleDotted: "◌",
3189
- circleDouble: "◎",
3190
- circleCircle: "ⓞ",
3191
- circleCross: "ⓧ",
3192
- circlePipe: "Ⓘ",
3193
- radioOn: "◉",
3194
- radioOff: "◯",
3195
- checkboxOn: "☒",
3196
- checkboxOff: "☐",
3197
- checkboxCircleOn: "ⓧ",
3198
- checkboxCircleOff: "Ⓘ",
3199
- pointer: "❯",
3200
- triangleUpOutline: "△",
3201
- triangleLeft: "◀",
3202
- triangleRight: "▶",
3203
- lozenge: "◆",
3204
- lozengeOutline: "◇",
3205
- hamburger: "☰",
3206
- smiley: "㋡",
3207
- mustache: "෴",
3208
- star: "★",
3209
- play: "▶",
3210
- nodejs: "⬢",
3211
- oneSeventh: "⅐",
3212
- oneNinth: "⅑",
3213
- oneTenth: "⅒"
3214
- };
3215
- var specialFallbackSymbols = {
3216
- tick: "√",
3217
- info: "i",
3218
- warning: "‼",
3219
- cross: "×",
3220
- squareSmall: "□",
3221
- squareSmallFilled: "■",
3222
- circle: "( )",
3223
- circleFilled: "(*)",
3224
- circleDotted: "( )",
3225
- circleDouble: "( )",
3226
- circleCircle: "(○)",
3227
- circleCross: "(×)",
3228
- circlePipe: "(│)",
3229
- radioOn: "(*)",
3230
- radioOff: "( )",
3231
- checkboxOn: "[×]",
3232
- checkboxOff: "[ ]",
3233
- checkboxCircleOn: "(×)",
3234
- checkboxCircleOff: "( )",
3235
- pointer: ">",
3236
- triangleUpOutline: "∆",
3237
- triangleLeft: "◄",
3238
- triangleRight: "►",
3239
- lozenge: "♦",
3240
- lozengeOutline: "◊",
3241
- hamburger: "≡",
3242
- smiley: "☺",
3243
- mustache: "┌─┐",
3244
- star: "✶",
3245
- play: "►",
3246
- nodejs: "♦",
3247
- oneSeventh: "1/7",
3248
- oneNinth: "1/9",
3249
- oneTenth: "1/10"
3250
- };
3251
- exports2.mainSymbols = { ...common, ...specialMainSymbols };
3252
- exports2.fallbackSymbols = {
3253
- ...common,
3254
- ...specialFallbackSymbols
3255
- };
3256
- var shouldUseMain = isUnicodeSupported();
3257
- var figures = shouldUseMain ? exports2.mainSymbols : exports2.fallbackSymbols;
3258
- exports2.default = figures;
3259
- var replacements = Object.entries(specialMainSymbols);
3260
- var replaceSymbols = /* @__PURE__ */ __name((string, { useFallback = !shouldUseMain } = {}) => {
3261
- if (useFallback) {
3262
- for (const [key, mainSymbol] of replacements) {
3263
- const fallbackSymbol = exports2.fallbackSymbols[key];
3264
- if (!fallbackSymbol) {
3265
- throw new Error(`Unable to find fallback for ${key}`);
3266
- }
3267
- string = string.replaceAll(mainSymbol, fallbackSymbol);
3268
- }
3269
- }
3270
- return string;
3271
- }, "replaceSymbols");
3272
- exports2.replaceSymbols = replaceSymbols;
3273
- }
3274
- });
3275
-
3276
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/theme.js
3277
- var require_theme2 = __commonJS({
3278
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/theme.js"(exports2) {
3279
- "use strict";
3280
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3281
- return mod && mod.__esModule ? mod : { "default": mod };
3282
- };
3283
- Object.defineProperty(exports2, "__esModule", { value: true });
3284
- exports2.defaultTheme = void 0;
3285
- var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
3286
- var figures_1 = __importDefault(require_commonjs5());
3287
- exports2.defaultTheme = {
3288
- prefix: {
3289
- idle: yoctocolors_cjs_1.default.blue("?"),
3290
- // TODO: use figure
3291
- done: yoctocolors_cjs_1.default.green(figures_1.default.tick)
3292
- },
3293
- spinner: {
3294
- interval: 80,
3295
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => yoctocolors_cjs_1.default.yellow(frame))
3296
- },
3297
- style: {
3298
- answer: yoctocolors_cjs_1.default.cyan,
3299
- message: yoctocolors_cjs_1.default.bold,
3300
- error: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.red(`> ${text}`), "error"),
3301
- defaultAnswer: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.dim(`(${text})`), "defaultAnswer"),
3302
- help: yoctocolors_cjs_1.default.dim,
3303
- highlight: yoctocolors_cjs_1.default.cyan,
3304
- key: /* @__PURE__ */ __name((text) => yoctocolors_cjs_1.default.cyan(yoctocolors_cjs_1.default.bold(`<${text}>`)), "key")
3305
- }
3306
- };
3307
- }
3308
- });
3309
-
3310
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js
3311
- var require_make_theme2 = __commonJS({
3312
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js"(exports2) {
3313
- "use strict";
3314
- Object.defineProperty(exports2, "__esModule", { value: true });
3315
- exports2.makeTheme = makeTheme;
3316
- var theme_ts_1 = require_theme2();
3317
- function isPlainObject(value) {
3318
- if (typeof value !== "object" || value === null)
3319
- return false;
3320
- let proto = value;
3321
- while (Object.getPrototypeOf(proto) !== null) {
3322
- proto = Object.getPrototypeOf(proto);
3323
- }
3324
- return Object.getPrototypeOf(value) === proto;
3325
- }
3326
- __name(isPlainObject, "isPlainObject");
3327
- function deepMerge(...objects) {
3328
- const output = {};
3329
- for (const obj of objects) {
3330
- for (const [key, value] of Object.entries(obj)) {
3331
- const prevValue = output[key];
3332
- output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
3333
- }
3334
- }
3335
- return output;
3336
- }
3337
- __name(deepMerge, "deepMerge");
3338
- function makeTheme(...themes) {
3339
- const themesToMerge = [
3340
- theme_ts_1.defaultTheme,
3341
- ...themes.filter((theme) => theme != null)
3342
- ];
3343
- return deepMerge(...themesToMerge);
3344
- }
3345
- __name(makeTheme, "makeTheme");
3346
- }
3347
- });
3348
-
3349
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js
3350
- var require_use_prefix2 = __commonJS({
3351
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js"(exports2) {
3352
- "use strict";
3353
- Object.defineProperty(exports2, "__esModule", { value: true });
3354
- exports2.usePrefix = usePrefix;
3355
- var use_state_ts_1 = require_use_state2();
3356
- var use_effect_ts_1 = require_use_effect2();
3357
- var make_theme_ts_1 = require_make_theme2();
3358
- function usePrefix({ status = "idle", theme }) {
3359
- const [showLoader, setShowLoader] = (0, use_state_ts_1.useState)(false);
3360
- const [tick, setTick] = (0, use_state_ts_1.useState)(0);
3361
- const { prefix, spinner } = (0, make_theme_ts_1.makeTheme)(theme);
3362
- (0, use_effect_ts_1.useEffect)(() => {
3363
- if (status === "loading") {
3364
- let tickInterval;
3365
- let inc = -1;
3366
- const delayTimeout = setTimeout(() => {
3367
- setShowLoader(true);
3368
- tickInterval = setInterval(() => {
3369
- inc = inc + 1;
3370
- setTick(inc % spinner.frames.length);
3371
- }, spinner.interval);
3372
- }, 300);
3373
- return () => {
3374
- clearTimeout(delayTimeout);
3375
- clearInterval(tickInterval);
3376
- };
3377
- } else {
3378
- setShowLoader(false);
3379
- }
3380
- }, [status]);
3381
- if (showLoader) {
3382
- return spinner.frames[tick];
3383
- }
3384
- const iconName = status === "loading" ? "idle" : status;
3385
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
3386
- }
3387
- __name(usePrefix, "usePrefix");
3388
- }
3389
- });
3390
-
3391
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js
3392
- var require_use_memo2 = __commonJS({
3393
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js"(exports2) {
3394
- "use strict";
3395
- Object.defineProperty(exports2, "__esModule", { value: true });
3396
- exports2.useMemo = useMemo;
3397
- var hook_engine_ts_1 = require_hook_engine2();
3398
- function useMemo(fn, dependencies) {
3399
- return (0, hook_engine_ts_1.withPointer)((pointer) => {
3400
- const prev = pointer.get();
3401
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
3402
- const value = fn();
3403
- pointer.set({ value, dependencies });
3404
- return value;
3405
- }
3406
- return prev.value;
3407
- });
3408
- }
3409
- __name(useMemo, "useMemo");
3410
- }
3411
- });
3412
-
3413
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js
3414
- var require_use_ref2 = __commonJS({
3415
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js"(exports2) {
3416
- "use strict";
3417
- Object.defineProperty(exports2, "__esModule", { value: true });
3418
- exports2.useRef = useRef;
3419
- var use_state_ts_1 = require_use_state2();
3420
- function useRef(val) {
3421
- return (0, use_state_ts_1.useState)({ current: val })[0];
3422
- }
3423
- __name(useRef, "useRef");
3424
- }
3425
- });
3426
-
3427
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js
3428
- var require_use_keypress2 = __commonJS({
3429
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js"(exports2) {
3430
- "use strict";
3431
- Object.defineProperty(exports2, "__esModule", { value: true });
3432
- exports2.useKeypress = useKeypress;
3433
- var use_ref_ts_1 = require_use_ref2();
3434
- var use_effect_ts_1 = require_use_effect2();
3435
- var hook_engine_ts_1 = require_hook_engine2();
3436
- function useKeypress(userHandler) {
3437
- const signal = (0, use_ref_ts_1.useRef)(userHandler);
3438
- signal.current = userHandler;
3439
- (0, use_effect_ts_1.useEffect)((rl) => {
3440
- let ignore = false;
3441
- const handler = (0, hook_engine_ts_1.withUpdates)((_input, event) => {
3442
- if (ignore)
3443
- return;
3444
- void signal.current(event, rl);
3445
- });
3446
- rl.input.on("keypress", handler);
3447
- return () => {
3448
- ignore = true;
3449
- rl.input.removeListener("keypress", handler);
3450
- };
3451
- }, []);
3452
- }
3453
- __name(useKeypress, "useKeypress");
3454
- }
3455
- });
3456
-
3457
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/utils.js
3458
- var require_utils2 = __commonJS({
3459
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/utils.js"(exports2) {
3460
- "use strict";
3461
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3462
- return mod && mod.__esModule ? mod : { "default": mod };
3463
- };
3464
- Object.defineProperty(exports2, "__esModule", { value: true });
3465
- exports2.breakLines = breakLines;
3466
- exports2.readlineWidth = readlineWidth;
3467
- var cli_width_1 = __importDefault(require_cli_width());
3468
- var wrap_ansi_1 = __importDefault((init_wrap_ansi(), __toCommonJS(wrap_ansi_exports)));
3469
- var hook_engine_ts_1 = require_hook_engine2();
3470
- function breakLines(content, width) {
3471
- return content.split("\n").flatMap((line) => (0, wrap_ansi_1.default)(line, width, { trim: false, hard: true }).split("\n").map((str) => str.trimEnd())).join("\n");
3472
- }
3473
- __name(breakLines, "breakLines");
3474
- function readlineWidth() {
3475
- return (0, cli_width_1.default)({ defaultWidth: 80, output: (0, hook_engine_ts_1.readline)().output });
3476
- }
3477
- __name(readlineWidth, "readlineWidth");
3478
- }
3479
- });
3480
-
3481
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js
3482
- var require_use_pagination2 = __commonJS({
3483
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js"(exports2) {
3484
- "use strict";
3485
- Object.defineProperty(exports2, "__esModule", { value: true });
3486
- exports2.usePagination = usePagination;
3487
- var use_ref_ts_1 = require_use_ref2();
3488
- var utils_ts_1 = require_utils2();
3489
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
3490
- const state = (0, use_ref_ts_1.useRef)({
3491
- lastPointer: active,
3492
- lastActive: void 0
3493
- });
3494
- const { lastPointer, lastActive } = state.current;
3495
- const middle = Math.floor(pageSize / 2);
3496
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
3497
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
3498
- let pointer = defaultPointerPosition;
3499
- if (renderedLength > pageSize) {
3500
- if (loop) {
3501
- pointer = lastPointer;
3502
- if (
3503
- // First render, skip this logic.
3504
- lastActive != null && // Only move the pointer down when the user moves down.
3505
- lastActive < active && // Check user didn't move up across page boundary.
3506
- active - lastActive < pageSize
3507
- ) {
3508
- pointer = Math.min(
3509
- // Furthest allowed position for the pointer is the middle of the list
3510
- middle,
3511
- Math.abs(active - lastActive) === 1 ? Math.min(
3512
- // Move the pointer at most the height of the last active item.
3513
- lastPointer + (renderedItems[lastActive]?.length ?? 0),
3514
- // If the user moved by one item, move the pointer to the natural position of the active item as
3515
- // long as it doesn't move the cursor up.
3516
- Math.max(defaultPointerPosition, lastPointer)
3517
- ) : (
3518
- // Otherwise, move the pointer down by the difference between the active and last active item.
3519
- lastPointer + active - lastActive
3520
- )
3521
- );
3522
- }
3523
- } else {
3524
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
3525
- pointer = spaceUnderActive < pageSize - middle ? (
3526
- // If the active item is near the end of the list, progressively move the cursor towards the end.
3527
- pageSize - spaceUnderActive
3528
- ) : (
3529
- // Otherwise, progressively move the pointer to the middle of the list.
3530
- Math.min(defaultPointerPosition, middle)
3531
- );
3532
- }
3533
- }
3534
- state.current.lastPointer = pointer;
3535
- state.current.lastActive = active;
3536
- return pointer;
3537
- }
3538
- __name(usePointerPosition, "usePointerPosition");
3539
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
3540
- const width = (0, utils_ts_1.readlineWidth)();
3541
- const bound = /* @__PURE__ */ __name((num) => (num % items.length + items.length) % items.length, "bound");
3542
- const renderedItems = items.map((item, index) => {
3543
- if (item == null)
3544
- return [];
3545
- return (0, utils_ts_1.breakLines)(renderItem({ item, index, isActive: index === active }), width).split("\n");
3546
- });
3547
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
3548
- const renderItemAtIndex = /* @__PURE__ */ __name((index) => renderedItems[index] ?? [], "renderItemAtIndex");
3549
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
3550
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
3551
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
3552
- const pageBuffer = Array.from({ length: pageSize });
3553
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
3554
- const itemVisited = /* @__PURE__ */ new Set([active]);
3555
- let bufferPointer = activeItemPosition + activeItem.length;
3556
- let itemPointer = bound(active + 1);
3557
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
3558
- const lines = renderItemAtIndex(itemPointer);
3559
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
3560
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
3561
- itemVisited.add(itemPointer);
3562
- bufferPointer += linesToAdd.length;
3563
- itemPointer = bound(itemPointer + 1);
3564
- }
3565
- bufferPointer = activeItemPosition - 1;
3566
- itemPointer = bound(active - 1);
3567
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
3568
- const lines = renderItemAtIndex(itemPointer);
3569
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
3570
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
3571
- itemVisited.add(itemPointer);
3572
- bufferPointer -= linesToAdd.length;
3573
- itemPointer = bound(itemPointer - 1);
3574
- }
3575
- return pageBuffer.filter((line) => typeof line === "string").join("\n");
3576
- }
3577
- __name(usePagination, "usePagination");
3578
- }
3579
- });
3580
-
3581
- // node_modules/.pnpm/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
3582
- var require_lib2 = __commonJS({
3583
- "node_modules/.pnpm/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js"(exports2, module2) {
3584
- var Stream = require("stream");
3585
- var MuteStream = class extends Stream {
3586
- static {
3587
- __name(this, "MuteStream");
3588
- }
3589
- #isTTY = null;
3590
- constructor(opts = {}) {
3591
- super(opts);
3592
- this.writable = this.readable = true;
3593
- this.muted = false;
3594
- this.on("pipe", this._onpipe);
3595
- this.replace = opts.replace;
3596
- this._prompt = opts.prompt || null;
3597
- this._hadControl = false;
3598
- }
3599
- #destSrc(key, def) {
3600
- if (this._dest) {
3601
- return this._dest[key];
3602
- }
3603
- if (this._src) {
3604
- return this._src[key];
3605
- }
3606
- return def;
3607
- }
3608
- #proxy(method, ...args) {
3609
- if (typeof this._dest?.[method] === "function") {
3610
- this._dest[method](...args);
3611
- }
3612
- if (typeof this._src?.[method] === "function") {
3613
- this._src[method](...args);
3614
- }
3615
- }
3616
- get isTTY() {
3617
- if (this.#isTTY !== null) {
3618
- return this.#isTTY;
3619
- }
3620
- return this.#destSrc("isTTY", false);
3621
- }
3622
- // basically just get replace the getter/setter with a regular value
3623
- set isTTY(val) {
3624
- this.#isTTY = val;
3625
- }
3626
- get rows() {
3627
- return this.#destSrc("rows");
3628
- }
3629
- get columns() {
3630
- return this.#destSrc("columns");
3631
- }
3632
- mute() {
3633
- this.muted = true;
3634
- }
3635
- unmute() {
3636
- this.muted = false;
3637
- }
3638
- _onpipe(src) {
3639
- this._src = src;
3640
- }
3641
- pipe(dest, options) {
3642
- this._dest = dest;
3643
- return super.pipe(dest, options);
3644
- }
3645
- pause() {
3646
- if (this._src) {
3647
- return this._src.pause();
3648
- }
3649
- }
3650
- resume() {
3651
- if (this._src) {
3652
- return this._src.resume();
3653
- }
3654
- }
3655
- write(c) {
3656
- if (this.muted) {
3657
- if (!this.replace) {
3658
- return true;
3659
- }
3660
- if (c.match(/^\u001b/)) {
3661
- if (c.indexOf(this._prompt) === 0) {
3662
- c = c.slice(this._prompt.length);
3663
- c = c.replace(/./g, this.replace);
3664
- c = this._prompt + c;
3665
- }
3666
- this._hadControl = true;
3667
- return this.emit("data", c);
3668
- } else {
3669
- if (this._prompt && this._hadControl && c.indexOf(this._prompt) === 0) {
3670
- this._hadControl = false;
3671
- this.emit("data", this._prompt);
3672
- c = c.slice(this._prompt.length);
3673
- }
3674
- c = c.toString().replace(/./g, this.replace);
3675
- }
3676
- }
3677
- this.emit("data", c);
3678
- }
3679
- end(c) {
3680
- if (this.muted) {
3681
- if (c && this.replace) {
3682
- c = c.toString().replace(/./g, this.replace);
3683
- } else {
3684
- c = null;
3685
- }
3686
- }
3687
- if (c) {
3688
- this.emit("data", c);
3689
- }
3690
- this.emit("end");
3691
- }
3692
- destroy(...args) {
3693
- return this.#proxy("destroy", ...args);
3694
- }
3695
- destroySoon(...args) {
3696
- return this.#proxy("destroySoon", ...args);
3697
- }
3698
- close(...args) {
3699
- return this.#proxy("close", ...args);
3700
- }
3701
- };
3702
- module2.exports = MuteStream;
3703
- }
3704
- });
3705
-
3706
- // node_modules/.pnpm/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/commonjs/index.js
3707
- var require_commonjs6 = __commonJS({
3708
- "node_modules/.pnpm/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/commonjs/index.js"(exports2) {
3709
- "use strict";
3710
- Object.defineProperty(exports2, "__esModule", { value: true });
3711
- exports2.eraseLines = exports2.cursorTo = exports2.cursorDown = exports2.cursorUp = exports2.cursorShow = exports2.cursorHide = exports2.cursorLeft = void 0;
3712
- var ESC = "\x1B[";
3713
- exports2.cursorLeft = ESC + "G";
3714
- exports2.cursorHide = ESC + "?25l";
3715
- exports2.cursorShow = ESC + "?25h";
3716
- var cursorUp = /* @__PURE__ */ __name((rows = 1) => rows > 0 ? `${ESC}${rows}A` : "", "cursorUp");
3717
- exports2.cursorUp = cursorUp;
3718
- var cursorDown = /* @__PURE__ */ __name((rows = 1) => rows > 0 ? `${ESC}${rows}B` : "", "cursorDown");
3719
- exports2.cursorDown = cursorDown;
3720
- var cursorTo = /* @__PURE__ */ __name((x, y) => {
3721
- if (typeof y === "number" && !Number.isNaN(y)) {
3722
- return `${ESC}${y + 1};${x + 1}H`;
3723
- }
3724
- return `${ESC}${x + 1}G`;
3725
- }, "cursorTo");
3726
- exports2.cursorTo = cursorTo;
3727
- var eraseLine = ESC + "2K";
3728
- var eraseLines = /* @__PURE__ */ __name((lines) => lines > 0 ? (eraseLine + (0, exports2.cursorUp)(1)).repeat(lines - 1) + eraseLine + exports2.cursorLeft : "", "eraseLines");
3729
- exports2.eraseLines = eraseLines;
3730
- }
3731
- });
3732
-
3733
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js
3734
- var require_screen_manager2 = __commonJS({
3735
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js"(exports2) {
3736
- "use strict";
3737
- Object.defineProperty(exports2, "__esModule", { value: true });
3738
- var node_util_1 = require("node:util");
3739
- var utils_ts_1 = require_utils2();
3740
- var ansi_1 = require_commonjs6();
3741
- var height = /* @__PURE__ */ __name((content) => content.split("\n").length, "height");
3742
- var lastLine = /* @__PURE__ */ __name((content) => content.split("\n").pop() ?? "", "lastLine");
3743
- var ScreenManager = class {
3744
- static {
3745
- __name(this, "ScreenManager");
3746
- }
3747
- // These variables are keeping information to allow correct prompt re-rendering
3748
- height = 0;
3749
- extraLinesUnderPrompt = 0;
3750
- cursorPos;
3751
- rl;
3752
- constructor(rl) {
3753
- this.rl = rl;
3754
- this.cursorPos = rl.getCursorPos();
3755
- }
3756
- write(content) {
3757
- this.rl.output.unmute();
3758
- this.rl.output.write(content);
3759
- this.rl.output.mute();
3760
- }
3761
- render(content, bottomContent = "") {
3762
- const promptLine = lastLine(content);
3763
- const rawPromptLine = (0, node_util_1.stripVTControlCharacters)(promptLine);
3764
- let prompt = rawPromptLine;
3765
- if (this.rl.line.length > 0) {
3766
- prompt = prompt.slice(0, -this.rl.line.length);
3767
- }
3768
- this.rl.setPrompt(prompt);
3769
- this.cursorPos = this.rl.getCursorPos();
3770
- const width = (0, utils_ts_1.readlineWidth)();
3771
- content = (0, utils_ts_1.breakLines)(content, width);
3772
- bottomContent = (0, utils_ts_1.breakLines)(bottomContent, width);
3773
- if (rawPromptLine.length % width === 0) {
3774
- content += "\n";
3775
- }
3776
- let output = content + (bottomContent ? "\n" + bottomContent : "");
3777
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
3778
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
3779
- if (bottomContentHeight > 0)
3780
- output += (0, ansi_1.cursorUp)(bottomContentHeight);
3781
- output += (0, ansi_1.cursorTo)(this.cursorPos.cols);
3782
- this.write((0, ansi_1.cursorDown)(this.extraLinesUnderPrompt) + (0, ansi_1.eraseLines)(this.height) + output);
3783
- this.extraLinesUnderPrompt = bottomContentHeight;
3784
- this.height = height(output);
3785
- }
3786
- checkCursorPos() {
3787
- const cursorPos = this.rl.getCursorPos();
3788
- if (cursorPos.cols !== this.cursorPos.cols) {
3789
- this.write((0, ansi_1.cursorTo)(cursorPos.cols));
3790
- this.cursorPos = cursorPos;
3791
- }
3792
- }
3793
- done({ clearContent }) {
3794
- this.rl.setPrompt("");
3795
- let output = (0, ansi_1.cursorDown)(this.extraLinesUnderPrompt);
3796
- output += clearContent ? (0, ansi_1.eraseLines)(this.height) : "\n";
3797
- output += ansi_1.cursorShow;
3798
- this.write(output);
3799
- this.rl.close();
3800
- }
3801
- };
3802
- exports2.default = ScreenManager;
3803
- }
3804
- });
3805
-
3806
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js
3807
- var require_promise_polyfill2 = __commonJS({
3808
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js"(exports2) {
3809
- "use strict";
3810
- Object.defineProperty(exports2, "__esModule", { value: true });
3811
- exports2.PromisePolyfill = void 0;
3812
- var PromisePolyfill = class extends Promise {
3813
- static {
3814
- __name(this, "PromisePolyfill");
3815
- }
3816
- // Available starting from Node 22
3817
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
3818
- static withResolver() {
3819
- let resolve;
3820
- let reject;
3821
- const promise = new Promise((res, rej) => {
3822
- resolve = res;
3823
- reject = rej;
3824
- });
3825
- return { promise, resolve, reject };
3826
- }
3827
- };
3828
- exports2.PromisePolyfill = PromisePolyfill;
3829
- }
3830
- });
3831
-
3832
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js
3833
- var require_create_prompt2 = __commonJS({
3834
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js"(exports2) {
3835
- "use strict";
3836
- var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
3837
- if (k2 === void 0) k2 = k;
3838
- var desc = Object.getOwnPropertyDescriptor(m, k);
3839
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3840
- desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
3841
- return m[k];
3842
- }, "get") };
3843
- }
3844
- Object.defineProperty(o, k2, desc);
3845
- }) : (function(o, m, k, k2) {
3846
- if (k2 === void 0) k2 = k;
3847
- o[k2] = m[k];
3848
- }));
3849
- var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
3850
- Object.defineProperty(o, "default", { enumerable: true, value: v });
3851
- }) : function(o, v) {
3852
- o["default"] = v;
3853
- });
3854
- var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
3855
- var ownKeys = /* @__PURE__ */ __name(function(o) {
3856
- ownKeys = Object.getOwnPropertyNames || function(o2) {
3857
- var ar = [];
3858
- for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
3859
- return ar;
3860
- };
3861
- return ownKeys(o);
3862
- }, "ownKeys");
3863
- return function(mod) {
3864
- if (mod && mod.__esModule) return mod;
3865
- var result = {};
3866
- if (mod != null) {
3867
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
3868
- }
3869
- __setModuleDefault(result, mod);
3870
- return result;
3871
- };
3872
- })();
3873
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3874
- return mod && mod.__esModule ? mod : { "default": mod };
3875
- };
3876
- Object.defineProperty(exports2, "__esModule", { value: true });
3877
- exports2.createPrompt = createPrompt;
3878
- var readline = __importStar(require("node:readline"));
3879
- var node_async_hooks_1 = require("node:async_hooks");
3880
- var mute_stream_1 = __importDefault(require_lib2());
3881
- var signal_exit_1 = require_cjs();
3882
- var screen_manager_ts_1 = __importDefault(require_screen_manager2());
3883
- var promise_polyfill_ts_1 = require_promise_polyfill2();
3884
- var hook_engine_ts_1 = require_hook_engine2();
3885
- var errors_ts_1 = require_errors2();
3886
- function getCallSites() {
3887
- const _prepareStackTrace = Error.prepareStackTrace;
3888
- let result = [];
3889
- try {
3890
- Error.prepareStackTrace = (_, callSites) => {
3891
- const callSitesWithoutCurrent = callSites.slice(1);
3892
- result = callSitesWithoutCurrent;
3893
- return callSitesWithoutCurrent;
3894
- };
3895
- new Error().stack;
3896
- } catch {
3897
- return result;
3898
- }
3899
- Error.prepareStackTrace = _prepareStackTrace;
3900
- return result;
3901
- }
3902
- __name(getCallSites, "getCallSites");
3903
- function createPrompt(view) {
3904
- const callSites = getCallSites();
3905
- const prompt = /* @__PURE__ */ __name((config, context = {}) => {
3906
- const { input: input2 = process.stdin, signal } = context;
3907
- const cleanups = /* @__PURE__ */ new Set();
3908
- const output = new mute_stream_1.default();
3909
- output.pipe(context.output ?? process.stdout);
3910
- const rl = readline.createInterface({
3911
- terminal: true,
3912
- input: input2,
3913
- output
3914
- });
3915
- const screen = new screen_manager_ts_1.default(rl);
3916
- const { promise, resolve, reject } = promise_polyfill_ts_1.PromisePolyfill.withResolver();
3917
- const cancel = /* @__PURE__ */ __name(() => reject(new errors_ts_1.CancelPromptError()), "cancel");
3918
- if (signal) {
3919
- const abort = /* @__PURE__ */ __name(() => reject(new errors_ts_1.AbortPromptError({ cause: signal.reason })), "abort");
3920
- if (signal.aborted) {
3921
- abort();
3922
- return Object.assign(promise, { cancel });
3923
- }
3924
- signal.addEventListener("abort", abort);
3925
- cleanups.add(() => signal.removeEventListener("abort", abort));
3926
- }
3927
- cleanups.add((0, signal_exit_1.onExit)((code, signal2) => {
3928
- reject(new errors_ts_1.ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
3929
- }));
3930
- const sigint = /* @__PURE__ */ __name(() => reject(new errors_ts_1.ExitPromptError(`User force closed the prompt with SIGINT`)), "sigint");
3931
- rl.on("SIGINT", sigint);
3932
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
3933
- const checkCursorPos = /* @__PURE__ */ __name(() => screen.checkCursorPos(), "checkCursorPos");
3934
- rl.input.on("keypress", checkCursorPos);
3935
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
3936
- return (0, hook_engine_ts_1.withHooks)(rl, (cycle) => {
3937
- const hooksCleanup = node_async_hooks_1.AsyncResource.bind(() => hook_engine_ts_1.effectScheduler.clearAll());
3938
- rl.on("close", hooksCleanup);
3939
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
3940
- cycle(() => {
3941
- try {
3942
- const nextView = view(config, (value) => {
3943
- setImmediate(() => resolve(value));
3944
- });
3945
- if (nextView === void 0) {
3946
- const callerFilename = callSites[1]?.getFileName();
3947
- throw new Error(`Prompt functions must return a string.
3948
- at ${callerFilename}`);
3949
- }
3950
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
3951
- screen.render(content, bottomContent);
3952
- hook_engine_ts_1.effectScheduler.run();
3953
- } catch (error) {
3954
- reject(error);
3955
- }
3956
- });
3957
- return Object.assign(promise.then((answer) => {
3958
- hook_engine_ts_1.effectScheduler.clearAll();
3959
- return answer;
3960
- }, (error) => {
3961
- hook_engine_ts_1.effectScheduler.clearAll();
3962
- throw error;
3963
- }).finally(() => {
3964
- cleanups.forEach((cleanup) => cleanup());
3965
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
3966
- output.end();
3967
- }).then(() => promise), { cancel });
3968
- });
3969
- }, "prompt");
3970
- return prompt;
3971
- }
3972
- __name(createPrompt, "createPrompt");
3973
- }
3974
- });
3975
-
3976
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js
3977
- var require_Separator2 = __commonJS({
3978
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js"(exports2) {
3979
- "use strict";
3980
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
3981
- return mod && mod.__esModule ? mod : { "default": mod };
3982
- };
3983
- Object.defineProperty(exports2, "__esModule", { value: true });
3984
- exports2.Separator = void 0;
3985
- var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
3986
- var figures_1 = __importDefault(require_commonjs5());
3987
- var Separator = class {
3988
- static {
3989
- __name(this, "Separator");
3990
- }
3991
- separator = yoctocolors_cjs_1.default.dim(Array.from({ length: 15 }).join(figures_1.default.line));
3992
- type = "separator";
3993
- constructor(separator) {
3994
- if (separator) {
3995
- this.separator = separator;
3996
- }
3997
- }
3998
- static isSeparator(choice) {
3999
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
4000
- }
4001
- };
4002
- exports2.Separator = Separator;
4003
- }
4004
- });
4005
-
4006
- // node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/index.js
4007
- var require_commonjs7 = __commonJS({
4008
- "node_modules/.pnpm/@inquirer+core@10.3.0_@types+node@24.9.2/node_modules/@inquirer/core/dist/commonjs/index.js"(exports2) {
4009
- "use strict";
4010
- var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
4011
- if (k2 === void 0) k2 = k;
4012
- var desc = Object.getOwnPropertyDescriptor(m, k);
4013
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
4014
- desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
4015
- return m[k];
4016
- }, "get") };
4017
- }
4018
- Object.defineProperty(o, k2, desc);
4019
- }) : (function(o, m, k, k2) {
4020
- if (k2 === void 0) k2 = k;
4021
- o[k2] = m[k];
4022
- }));
4023
- var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
4024
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
4025
- };
4026
- Object.defineProperty(exports2, "__esModule", { value: true });
4027
- exports2.Separator = exports2.createPrompt = exports2.usePagination = exports2.makeTheme = exports2.useKeypress = exports2.useRef = exports2.useMemo = exports2.useEffect = exports2.useState = exports2.usePrefix = exports2.isEnterKey = exports2.isNumberKey = exports2.isTabKey = exports2.isBackspaceKey = exports2.isSpaceKey = exports2.isDownKey = exports2.isUpKey = void 0;
4028
- var key_ts_1 = require_key2();
4029
- Object.defineProperty(exports2, "isUpKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4030
- return key_ts_1.isUpKey;
4031
- }, "get") });
4032
- Object.defineProperty(exports2, "isDownKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4033
- return key_ts_1.isDownKey;
4034
- }, "get") });
4035
- Object.defineProperty(exports2, "isSpaceKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4036
- return key_ts_1.isSpaceKey;
4037
- }, "get") });
4038
- Object.defineProperty(exports2, "isBackspaceKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4039
- return key_ts_1.isBackspaceKey;
4040
- }, "get") });
4041
- Object.defineProperty(exports2, "isTabKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4042
- return key_ts_1.isTabKey;
4043
- }, "get") });
4044
- Object.defineProperty(exports2, "isNumberKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4045
- return key_ts_1.isNumberKey;
4046
- }, "get") });
4047
- Object.defineProperty(exports2, "isEnterKey", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4048
- return key_ts_1.isEnterKey;
4049
- }, "get") });
4050
- __exportStar(require_errors2(), exports2);
4051
- var use_prefix_ts_1 = require_use_prefix2();
4052
- Object.defineProperty(exports2, "usePrefix", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4053
- return use_prefix_ts_1.usePrefix;
4054
- }, "get") });
4055
- var use_state_ts_1 = require_use_state2();
4056
- Object.defineProperty(exports2, "useState", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4057
- return use_state_ts_1.useState;
4058
- }, "get") });
4059
- var use_effect_ts_1 = require_use_effect2();
4060
- Object.defineProperty(exports2, "useEffect", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4061
- return use_effect_ts_1.useEffect;
4062
- }, "get") });
4063
- var use_memo_ts_1 = require_use_memo2();
4064
- Object.defineProperty(exports2, "useMemo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4065
- return use_memo_ts_1.useMemo;
4066
- }, "get") });
4067
- var use_ref_ts_1 = require_use_ref2();
4068
- Object.defineProperty(exports2, "useRef", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4069
- return use_ref_ts_1.useRef;
4070
- }, "get") });
4071
- var use_keypress_ts_1 = require_use_keypress2();
4072
- Object.defineProperty(exports2, "useKeypress", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4073
- return use_keypress_ts_1.useKeypress;
4074
- }, "get") });
4075
- var make_theme_ts_1 = require_make_theme2();
4076
- Object.defineProperty(exports2, "makeTheme", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4077
- return make_theme_ts_1.makeTheme;
4078
- }, "get") });
4079
- var use_pagination_ts_1 = require_use_pagination2();
4080
- Object.defineProperty(exports2, "usePagination", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4081
- return use_pagination_ts_1.usePagination;
4082
- }, "get") });
4083
- var create_prompt_ts_1 = require_create_prompt2();
4084
- Object.defineProperty(exports2, "createPrompt", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4085
- return create_prompt_ts_1.createPrompt;
4086
- }, "get") });
4087
- var Separator_ts_1 = require_Separator2();
4088
- Object.defineProperty(exports2, "Separator", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4089
- return Separator_ts_1.Separator;
4090
- }, "get") });
4091
- }
4092
- });
4093
-
4094
2704
  // node_modules/.pnpm/@inquirer+confirm@5.1.16_@types+node@24.9.2/node_modules/@inquirer/confirm/dist/commonjs/index.js
4095
- var require_commonjs8 = __commonJS({
2705
+ var require_commonjs5 = __commonJS({
4096
2706
  "node_modules/.pnpm/@inquirer+confirm@5.1.16_@types+node@24.9.2/node_modules/@inquirer/confirm/dist/commonjs/index.js"(exports2) {
4097
2707
  "use strict";
4098
2708
  Object.defineProperty(exports2, "__esModule", { value: true });
4099
- var core_1 = require_commonjs7();
2709
+ var core_1 = require_commonjs3();
4100
2710
  function getBooleanValue(value, defaultValue) {
4101
2711
  let answer = defaultValue !== false;
4102
2712
  if (/^(y|yes)/i.test(value))
@@ -4147,11 +2757,11 @@ var require_commonjs8 = __commonJS({
4147
2757
  });
4148
2758
 
4149
2759
  // node_modules/.pnpm/@inquirer+input@4.2.2_@types+node@24.9.2/node_modules/@inquirer/input/dist/commonjs/index.js
4150
- var require_commonjs9 = __commonJS({
2760
+ var require_commonjs6 = __commonJS({
4151
2761
  "node_modules/.pnpm/@inquirer+input@4.2.2_@types+node@24.9.2/node_modules/@inquirer/input/dist/commonjs/index.js"(exports2) {
4152
2762
  "use strict";
4153
2763
  Object.defineProperty(exports2, "__esModule", { value: true });
4154
- var core_1 = require_commonjs7();
2764
+ var core_1 = require_commonjs3();
4155
2765
  var inputTheme = {
4156
2766
  validationFailureMode: "keep"
4157
2767
  };
@@ -4353,14 +2963,14 @@ var require_ansi_escapes = __commonJS({
4353
2963
  });
4354
2964
 
4355
2965
  // node_modules/.pnpm/@inquirer+password@4.0.18_@types+node@24.9.2/node_modules/@inquirer/password/dist/commonjs/index.js
4356
- var require_commonjs10 = __commonJS({
2966
+ var require_commonjs7 = __commonJS({
4357
2967
  "node_modules/.pnpm/@inquirer+password@4.0.18_@types+node@24.9.2/node_modules/@inquirer/password/dist/commonjs/index.js"(exports2) {
4358
2968
  "use strict";
4359
2969
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
4360
2970
  return mod && mod.__esModule ? mod : { "default": mod };
4361
2971
  };
4362
2972
  Object.defineProperty(exports2, "__esModule", { value: true });
4363
- var core_1 = require_commonjs7();
2973
+ var core_1 = require_commonjs3();
4364
2974
  var ansi_escapes_1 = __importDefault(require_ansi_escapes());
4365
2975
  exports2.default = (0, core_1.createPrompt)((config, done) => {
4366
2976
  const { validate: validate2 = /* @__PURE__ */ __name(() => true, "validate") } = config;
@@ -4413,7 +3023,7 @@ var require_commonjs10 = __commonJS({
4413
3023
  });
4414
3024
 
4415
3025
  // node_modules/.pnpm/@inquirer+search@3.1.1_@types+node@24.9.2/node_modules/@inquirer/search/dist/commonjs/index.js
4416
- var require_commonjs11 = __commonJS({
3026
+ var require_commonjs8 = __commonJS({
4417
3027
  "node_modules/.pnpm/@inquirer+search@3.1.1_@types+node@24.9.2/node_modules/@inquirer/search/dist/commonjs/index.js"(exports2) {
4418
3028
  "use strict";
4419
3029
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
@@ -4421,9 +3031,9 @@ var require_commonjs11 = __commonJS({
4421
3031
  };
4422
3032
  Object.defineProperty(exports2, "__esModule", { value: true });
4423
3033
  exports2.Separator = void 0;
4424
- var core_1 = require_commonjs7();
3034
+ var core_1 = require_commonjs3();
4425
3035
  var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
4426
- var figures_1 = __importDefault(require_commonjs5());
3036
+ var figures_1 = __importDefault(require_commonjs());
4427
3037
  var searchTheme = {
4428
3038
  icon: { cursor: figures_1.default.pointer },
4429
3039
  style: {
@@ -4589,7 +3199,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
4589
3199
  `${error ?? page}${helpTip}${choiceDescription}`
4590
3200
  ];
4591
3201
  });
4592
- var core_2 = require_commonjs7();
3202
+ var core_2 = require_commonjs3();
4593
3203
  Object.defineProperty(exports2, "Separator", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4594
3204
  return core_2.Separator;
4595
3205
  }, "get") });
@@ -4597,7 +3207,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
4597
3207
  });
4598
3208
 
4599
3209
  // node_modules/.pnpm/@inquirer+select@4.3.2_@types+node@24.9.2/node_modules/@inquirer/select/dist/commonjs/index.js
4600
- var require_commonjs12 = __commonJS({
3210
+ var require_commonjs9 = __commonJS({
4601
3211
  "node_modules/.pnpm/@inquirer+select@4.3.2_@types+node@24.9.2/node_modules/@inquirer/select/dist/commonjs/index.js"(exports2) {
4602
3212
  "use strict";
4603
3213
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
@@ -4605,9 +3215,9 @@ var require_commonjs12 = __commonJS({
4605
3215
  };
4606
3216
  Object.defineProperty(exports2, "__esModule", { value: true });
4607
3217
  exports2.Separator = void 0;
4608
- var core_1 = require_commonjs7();
3218
+ var core_1 = require_commonjs3();
4609
3219
  var yoctocolors_cjs_1 = __importDefault(require_yoctocolors_cjs());
4610
- var figures_1 = __importDefault(require_commonjs5());
3220
+ var figures_1 = __importDefault(require_commonjs());
4611
3221
  var ansi_escapes_1 = __importDefault(require_ansi_escapes());
4612
3222
  var selectTheme = {
4613
3223
  icon: { cursor: figures_1.default.pointer },
@@ -4763,7 +3373,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
4763
3373
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
4764
3374
  ${page}${helpTipBottom}${choiceDescription}${ansi_escapes_1.default.cursorHide}`;
4765
3375
  });
4766
- var core_2 = require_commonjs7();
3376
+ var core_2 = require_commonjs3();
4767
3377
  Object.defineProperty(exports2, "Separator", { enumerable: true, get: /* @__PURE__ */ __name(function() {
4768
3378
  return core_2.Separator;
4769
3379
  }, "get") });
@@ -4776,11 +3386,11 @@ var supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports
4776
3386
  var hasFlag3 = (init_has_flag(), __toCommonJS(has_flag_exports));
4777
3387
  var yoctocolorsCjs = require_yoctocolors_cjs();
4778
3388
  var checkbox = require_commonjs4();
4779
- var confirm = require_commonjs8();
4780
- var input = require_commonjs9();
4781
- var password = require_commonjs10();
4782
- var search = require_commonjs11();
4783
- var select = require_commonjs12();
3389
+ var confirm = require_commonjs5();
3390
+ var input = require_commonjs6();
3391
+ var password = require_commonjs7();
3392
+ var search = require_commonjs8();
3393
+ var select = require_commonjs9();
4784
3394
  module.exports = {
4785
3395
  checkbox,
4786
3396
  confirm,