@shell-shock/preset-cli 0.9.12 → 0.9.14

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 (77) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +1 -4
  2. package/dist/components/banner-builtin.cjs +3 -3
  3. package/dist/components/banner-builtin.mjs +3 -3
  4. package/dist/components/banner-builtin.mjs.map +1 -1
  5. package/dist/components/command-entry.cjs +1 -0
  6. package/dist/components/command-entry.mjs +1 -0
  7. package/dist/components/command-entry.mjs.map +1 -1
  8. package/dist/components/virtual-command-entry.cjs +1 -0
  9. package/dist/components/virtual-command-entry.mjs +1 -0
  10. package/dist/components/virtual-command-entry.mjs.map +1 -1
  11. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.cjs +8 -0
  12. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +8 -0
  13. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs.map +1 -0
  14. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.cjs +14 -0
  15. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +15 -0
  16. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs.map +1 -0
  17. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.cjs +655 -0
  18. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +651 -0
  19. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs.map +1 -0
  20. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.cjs +48 -0
  21. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +47 -0
  22. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs.map +1 -0
  23. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.cjs +24 -0
  24. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +24 -0
  25. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs.map +1 -0
  26. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.cjs +65 -0
  27. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs +66 -0
  28. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs.map +1 -0
  29. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.cjs +12 -0
  30. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +13 -0
  31. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs.map +1 -0
  32. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +290 -3
  33. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +287 -1
  34. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -1
  35. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +4 -4
  36. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -4
  37. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  38. package/dist/packages/unified/dist/html-Dw6VvFHa.cjs +612 -0
  39. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs +613 -0
  40. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs.map +1 -0
  41. package/dist/packages/unified/dist/markdown/index.cjs +1 -1
  42. package/dist/packages/unified/dist/markdown/index.mjs +1 -1
  43. package/dist/packages/unified/dist/{markdown-OuY_JOk0.cjs → markdown-BGGlzivq.cjs} +14 -50
  44. package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs → markdown-BGGlzivq.mjs} +16 -52
  45. package/dist/packages/unified/dist/markdown-BGGlzivq.mjs.map +1 -0
  46. package/package.json +19 -19
  47. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +0 -36
  48. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +0 -36
  49. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +0 -1
  50. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +0 -32
  51. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +0 -33
  52. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +0 -133
  54. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +0 -134
  55. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +0 -1
  56. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +0 -32
  57. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +0 -31
  58. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +0 -169
  60. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +0 -167
  61. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +0 -1
  62. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +0 -98
  63. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +0 -95
  64. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +0 -23
  66. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +0 -23
  67. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +0 -1
  68. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +0 -36
  69. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +0 -36
  70. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +0 -10
  72. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +0 -10
  73. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +0 -1
  74. package/dist/packages/unified/dist/html-Di3_LwV3.cjs +0 -337
  75. package/dist/packages/unified/dist/html-Di3_LwV3.mjs +0 -338
  76. package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +0 -1
  77. package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs.map +0 -1
@@ -1,98 +0,0 @@
1
- const require_runtime = require('../../../../../../../../_virtual/_rolldown/runtime.cjs');
2
- let node_tty = require("node:tty");
3
- node_tty = require_runtime.__toESM(node_tty);
4
- let node_process = require("node:process");
5
- node_process = require_runtime.__toESM(node_process);
6
- let node_os = require("node:os");
7
- node_os = require_runtime.__toESM(node_os);
8
-
9
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
10
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process.default.argv) {
11
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
12
- const position = argv.indexOf(prefix + flag);
13
- const terminatorPosition = argv.indexOf("--");
14
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
15
- }
16
- const { env } = node_process.default;
17
- let flagForceColor;
18
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
19
- else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
20
- function envForceColor() {
21
- if ("FORCE_COLOR" in env) {
22
- if (env.FORCE_COLOR === "true") return 1;
23
- if (env.FORCE_COLOR === "false") return 0;
24
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
25
- }
26
- }
27
- function translateLevel(level) {
28
- if (level === 0) return false;
29
- return {
30
- level,
31
- hasBasic: true,
32
- has256: level >= 2,
33
- has16m: level >= 3
34
- };
35
- }
36
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
37
- const noFlagForceColor = envForceColor();
38
- if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
39
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
40
- if (forceColor === 0) return 0;
41
- if (sniffFlags) {
42
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
43
- if (hasFlag("color=256")) return 2;
44
- }
45
- if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
46
- if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
47
- const min = forceColor || 0;
48
- if (env.TERM === "dumb") return min;
49
- if (node_process.default.platform === "win32") {
50
- const osRelease = node_os.default.release().split(".");
51
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
52
- return 1;
53
- }
54
- if ("CI" in env) {
55
- if ([
56
- "GITHUB_ACTIONS",
57
- "GITEA_ACTIONS",
58
- "CIRCLECI"
59
- ].some((key) => key in env)) return 3;
60
- if ([
61
- "TRAVIS",
62
- "APPVEYOR",
63
- "GITLAB_CI",
64
- "BUILDKITE",
65
- "DRONE"
66
- ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
67
- return min;
68
- }
69
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
70
- if (env.COLORTERM === "truecolor") return 3;
71
- if (env.TERM === "xterm-kitty") return 3;
72
- if (env.TERM === "xterm-ghostty") return 3;
73
- if (env.TERM === "wezterm") return 3;
74
- if ("TERM_PROGRAM" in env) {
75
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
76
- switch (env.TERM_PROGRAM) {
77
- case "iTerm.app": return version >= 3 ? 3 : 2;
78
- case "Apple_Terminal": return 2;
79
- }
80
- }
81
- if (/-256(color)?$/i.test(env.TERM)) return 2;
82
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
83
- if ("COLORTERM" in env) return 1;
84
- return min;
85
- }
86
- function createSupportsColor(stream, options = {}) {
87
- return translateLevel(_supportsColor(stream, {
88
- streamIsTTY: stream && stream.isTTY,
89
- ...options
90
- }));
91
- }
92
- const supportsColor = {
93
- stdout: createSupportsColor({ isTTY: node_tty.default.isatty(1) }),
94
- stderr: createSupportsColor({ isTTY: node_tty.default.isatty(2) })
95
- };
96
-
97
- //#endregion
98
- exports.default = supportsColor;
@@ -1,95 +0,0 @@
1
- import tty from "node:tty";
2
- import process from "node:process";
3
- import os from "node:os";
4
-
5
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
6
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
7
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
8
- const position = argv.indexOf(prefix + flag);
9
- const terminatorPosition = argv.indexOf("--");
10
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
11
- }
12
- const { env } = process;
13
- let flagForceColor;
14
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
15
- else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
16
- function envForceColor() {
17
- if ("FORCE_COLOR" in env) {
18
- if (env.FORCE_COLOR === "true") return 1;
19
- if (env.FORCE_COLOR === "false") return 0;
20
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
21
- }
22
- }
23
- function translateLevel(level) {
24
- if (level === 0) return false;
25
- return {
26
- level,
27
- hasBasic: true,
28
- has256: level >= 2,
29
- has16m: level >= 3
30
- };
31
- }
32
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
33
- const noFlagForceColor = envForceColor();
34
- if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
35
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
36
- if (forceColor === 0) return 0;
37
- if (sniffFlags) {
38
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
39
- if (hasFlag("color=256")) return 2;
40
- }
41
- if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
42
- if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
43
- const min = forceColor || 0;
44
- if (env.TERM === "dumb") return min;
45
- if (process.platform === "win32") {
46
- const osRelease = os.release().split(".");
47
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
48
- return 1;
49
- }
50
- if ("CI" in env) {
51
- if ([
52
- "GITHUB_ACTIONS",
53
- "GITEA_ACTIONS",
54
- "CIRCLECI"
55
- ].some((key) => key in env)) return 3;
56
- if ([
57
- "TRAVIS",
58
- "APPVEYOR",
59
- "GITLAB_CI",
60
- "BUILDKITE",
61
- "DRONE"
62
- ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
63
- return min;
64
- }
65
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
66
- if (env.COLORTERM === "truecolor") return 3;
67
- if (env.TERM === "xterm-kitty") return 3;
68
- if (env.TERM === "xterm-ghostty") return 3;
69
- if (env.TERM === "wezterm") return 3;
70
- if ("TERM_PROGRAM" in env) {
71
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
72
- switch (env.TERM_PROGRAM) {
73
- case "iTerm.app": return version >= 3 ? 3 : 2;
74
- case "Apple_Terminal": return 2;
75
- }
76
- }
77
- if (/-256(color)?$/i.test(env.TERM)) return 2;
78
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
79
- if ("COLORTERM" in env) return 1;
80
- return min;
81
- }
82
- function createSupportsColor(stream, options = {}) {
83
- return translateLevel(_supportsColor(stream, {
84
- streamIsTTY: stream && stream.isTTY,
85
- ...options
86
- }));
87
- }
88
- const supportsColor = {
89
- stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
90
- stderr: createSupportsColor({ isTTY: tty.isatty(2) })
91
- };
92
-
93
- //#endregion
94
- export { supportsColor as default };
95
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js"],"sourcesContent":["import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-ghostty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'wezterm') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,23 +0,0 @@
1
- const require_runtime = require('../../../../../../../_virtual/_rolldown/runtime.cjs');
2
- const require_index = require('../../../../../chalk@5.6.2/node_modules/chalk/source/index.cjs');
3
- const require_options = require('./options.cjs');
4
- let node_tty = require("node:tty");
5
-
6
- //#region ../../node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.js
7
- const colorsOption = (opts) => {
8
- const { stream, colors = stream.isTTY && stream.getColorDepth() !== 1, level: levelOption = DEPTH_TO_LEVEL[node_tty.WriteStream.prototype.getColorDepth()], chalkOpts } = require_options.getOpts(opts);
9
- const level = colors ? levelOption : 0;
10
- return new require_index.Chalk({
11
- ...chalkOpts,
12
- level
13
- });
14
- };
15
- const DEPTH_TO_LEVEL = {
16
- 1: 1,
17
- 4: 1,
18
- 8: 2,
19
- 24: 3
20
- };
21
-
22
- //#endregion
23
- exports.default = colorsOption;
@@ -1,23 +0,0 @@
1
- import { Chalk } from "../../../../../chalk@5.6.2/node_modules/chalk/source/index.mjs";
2
- import { getOpts } from "./options.mjs";
3
- import { WriteStream } from "node:tty";
4
-
5
- //#region ../../node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.js
6
- const colorsOption = (opts) => {
7
- const { stream, colors = stream.isTTY && stream.getColorDepth() !== 1, level: levelOption = DEPTH_TO_LEVEL[WriteStream.prototype.getColorDepth()], chalkOpts } = getOpts(opts);
8
- const level = colors ? levelOption : 0;
9
- return new Chalk({
10
- ...chalkOpts,
11
- level
12
- });
13
- };
14
- const DEPTH_TO_LEVEL = {
15
- 1: 1,
16
- 4: 1,
17
- 8: 2,
18
- 24: 3
19
- };
20
-
21
- //#endregion
22
- export { colorsOption as default };
23
- //# sourceMappingURL=main.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.js"],"sourcesContent":["import{WriteStream}from\"node:tty\";\n\nimport{Chalk}from\"chalk\";\n\nimport{getOpts}from\"./options.js\";\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst colorsOption=(opts)=>{\nconst{\nstream,\ncolors=stream.isTTY&&stream.getColorDepth()!==1,\nlevel:levelOption=DEPTH_TO_LEVEL[WriteStream.prototype.getColorDepth()],\nchalkOpts\n}=getOpts(opts);\nconst level=colors?levelOption:0;\nreturn new Chalk({...chalkOpts,level})\n};\n\nexport default colorsOption;\n\n\n\n\n\nconst DEPTH_TO_LEVEL={1:1,4:1,8:2,24:3};"],"x_google_ignoreList":[0],"mappings":";;;;;AAkBA,MAAM,gBAAc,SAAO;CAC3B,MAAK,EACL,QACA,SAAO,OAAO,SAAO,OAAO,eAAe,KAAG,GAC9C,OAAM,cAAY,eAAe,YAAY,UAAU,eAAe,GACtE,cACE,QAAQ,KAAK;CACf,MAAM,QAAM,SAAO,cAAY;AAC/B,QAAO,IAAI,MAAM;EAAC,GAAG;EAAU;EAAM,CAAC;;AAStC,MAAM,iBAAe;CAAC,GAAE;CAAE,GAAE;CAAE,GAAE;CAAE,IAAG;CAAE"}
@@ -1,36 +0,0 @@
1
- const require_runtime = require('../../../../../../../_virtual/_rolldown/runtime.cjs');
2
- const require_index = require('../../../../../is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs');
3
- let node_process = require("node:process");
4
- let node_stream = require("node:stream");
5
-
6
- //#region ../../node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.js
7
- const getOpts = (opts = {}) => {
8
- validateBasicOpts(opts);
9
- const { colors, stream = node_process.stdout, level, ...chalkOpts } = opts;
10
- validateColors(colors);
11
- validateStream(stream);
12
- validateLevel(level);
13
- return {
14
- colors,
15
- stream,
16
- level,
17
- chalkOpts
18
- };
19
- };
20
- const validateBasicOpts = (opts) => {
21
- if (!require_index.default(opts)) throw new TypeError(`Options must be a plain object: ${opts}`);
22
- };
23
- const validateColors = (colors) => {
24
- if (colors !== void 0 && typeof colors !== "boolean") throw new TypeError(`"colors" option must be a boolean: ${colors}`);
25
- };
26
- const validateStream = (stream) => {
27
- if (!(stream instanceof node_stream.Stream)) throw new TypeError(`"stream" option must be a stream: ${stream}`);
28
- };
29
- const validateLevel = (level) => {
30
- if (level === void 0) return;
31
- if (level === 0) throw new TypeError("\"level\" option must not be 0. Please use \"colors: false\" instead.");
32
- if (!Number.isInteger(level) || level < 1 || level > 3) throw new TypeError(`"level" option must be 1, 2 or 3, not: ${level}`);
33
- };
34
-
35
- //#endregion
36
- exports.getOpts = getOpts;
@@ -1,36 +0,0 @@
1
- import isPlainObject from "../../../../../is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs";
2
- import { stdout } from "node:process";
3
- import { Stream } from "node:stream";
4
-
5
- //#region ../../node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.js
6
- const getOpts = (opts = {}) => {
7
- validateBasicOpts(opts);
8
- const { colors, stream = stdout, level, ...chalkOpts } = opts;
9
- validateColors(colors);
10
- validateStream(stream);
11
- validateLevel(level);
12
- return {
13
- colors,
14
- stream,
15
- level,
16
- chalkOpts
17
- };
18
- };
19
- const validateBasicOpts = (opts) => {
20
- if (!isPlainObject(opts)) throw new TypeError(`Options must be a plain object: ${opts}`);
21
- };
22
- const validateColors = (colors) => {
23
- if (colors !== void 0 && typeof colors !== "boolean") throw new TypeError(`"colors" option must be a boolean: ${colors}`);
24
- };
25
- const validateStream = (stream) => {
26
- if (!(stream instanceof Stream)) throw new TypeError(`"stream" option must be a stream: ${stream}`);
27
- };
28
- const validateLevel = (level) => {
29
- if (level === void 0) return;
30
- if (level === 0) throw new TypeError("\"level\" option must not be 0. Please use \"colors: false\" instead.");
31
- if (!Number.isInteger(level) || level < 1 || level > 3) throw new TypeError(`"level" option must be 1, 2 or 3, not: ${level}`);
32
- };
33
-
34
- //#endregion
35
- export { getOpts };
36
- //# sourceMappingURL=options.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.mjs","names":["isPlainObj"],"sources":["../../../../../../../../../../node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.js"],"sourcesContent":["import{stdout}from\"node:process\";\nimport{Stream}from\"node:stream\";\n\nimport isPlainObj from\"is-plain-obj\";\n\n\nexport const getOpts=(opts={})=>{\nvalidateBasicOpts(opts);\nconst{colors,stream=stdout,level,...chalkOpts}=opts;\nvalidateColors(colors);\nvalidateStream(stream);\nvalidateLevel(level);\nreturn{colors,stream,level,chalkOpts}\n};\n\nconst validateBasicOpts=(opts)=>{\nif(!isPlainObj(opts)){\nthrow new TypeError(`Options must be a plain object: ${opts}`)\n}\n};\n\nconst validateColors=(colors)=>{\nif(colors!==undefined&&typeof colors!==\"boolean\"){\nthrow new TypeError(`\"colors\" option must be a boolean: ${colors}`)\n}\n};\n\nconst validateStream=(stream)=>{\nif(!(stream instanceof Stream)){\nthrow new TypeError(`\"stream\" option must be a stream: ${stream}`)\n}\n};\n\nconst validateLevel=(level)=>{\nif(level===undefined){\nreturn\n}\n\nif(level===0){\nthrow new TypeError(\n\"\\\"level\\\" option must not be 0. Please use \\\"colors: false\\\" instead.\"\n)\n}\n\nif(!Number.isInteger(level)||level<1||level>3){\nthrow new TypeError(`\"level\" option must be 1, 2 or 3, not: ${level}`)\n}\n};"],"x_google_ignoreList":[0],"mappings":";;;;;AAMA,MAAa,WAAS,OAAK,EAAE,KAAG;AAChC,mBAAkB,KAAK;CACvB,MAAK,EAAC,QAAO,SAAO,QAAO,OAAM,GAAG,cAAW;AAC/C,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,eAAc,MAAM;AACpB,QAAM;EAAC;EAAO;EAAO;EAAM;EAAU;;AAGrC,MAAM,qBAAmB,SAAO;AAChC,KAAG,CAACA,cAAW,KAAK,CACpB,OAAM,IAAI,UAAU,mCAAmC,OAAO;;AAI9D,MAAM,kBAAgB,WAAS;AAC/B,KAAG,WAAS,UAAW,OAAO,WAAS,UACvC,OAAM,IAAI,UAAU,sCAAsC,SAAS;;AAInE,MAAM,kBAAgB,WAAS;AAC/B,KAAG,EAAE,kBAAkB,QACvB,OAAM,IAAI,UAAU,qCAAqC,SAAS;;AAIlE,MAAM,iBAAe,UAAQ;AAC7B,KAAG,UAAQ,OACX;AAGA,KAAG,UAAQ,EACX,OAAM,IAAI,UACV,wEACC;AAGD,KAAG,CAAC,OAAO,UAAU,MAAM,IAAE,QAAM,KAAG,QAAM,EAC5C,OAAM,IAAI,UAAU,0CAA0C,QAAQ"}
@@ -1,10 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
3
- function isPlainObject(value) {
4
- if (typeof value !== "object" || value === null) return false;
5
- const prototype = Object.getPrototypeOf(value);
6
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
7
- }
8
-
9
- //#endregion
10
- exports.default = isPlainObject;
@@ -1,10 +0,0 @@
1
- //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
2
- function isPlainObject(value) {
3
- if (typeof value !== "object" || value === null) return false;
4
- const prototype = Object.getPrototypeOf(value);
5
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
6
- }
7
-
8
- //#endregion
9
- export { isPlainObject as default };
10
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js"],"sourcesContent":["export default function isPlainObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,cAAc,OAAO;AAC5C,KAAI,OAAO,UAAU,YAAY,UAAU,KAC1C,QAAO;CAGR,MAAM,YAAY,OAAO,eAAe,MAAM;AAC9C,SAAQ,cAAc,QAAQ,cAAc,OAAO,aAAa,OAAO,eAAe,UAAU,KAAK,SAAS,EAAE,OAAO,eAAe,UAAU,EAAE,OAAO,YAAY"}