@yamada-ui/cli 2.0.0-dev-20250831064434 → 2.0.0-dev-20250831154348

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 (2) hide show
  1. package/dist/index.js +54 -40
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -789,6 +789,7 @@ var require_graceful_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
789
789
 
790
790
  //#endregion
791
791
  //#region ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
792
+ var import_graceful_fs = /* @__PURE__ */ __toESM(require_graceful_fs$1(), 1);
792
793
  const homeDirectory = os$1.homedir();
793
794
  const { env: env$2 } = process;
794
795
  const xdgData = env$2.XDG_DATA_HOME || (homeDirectory ? path$1.join(homeDirectory, ".local", "share") : void 0);
@@ -1316,7 +1317,6 @@ function hasProperty(object, path$9) {
1316
1317
 
1317
1318
  //#endregion
1318
1319
  //#region ../../node_modules/.pnpm/configstore@7.0.0/node_modules/configstore/index.js
1319
- var import_graceful_fs = /* @__PURE__ */ __toESM(require_graceful_fs$1(), 1);
1320
1320
  function getConfigDirectory(id, globalConfigPath) {
1321
1321
  const pathPrefix = globalConfigPath ? path.join(id, "config.json") : path.join("configstore", `${id}.json`);
1322
1322
  const configDirectory = xdgConfig ?? import_graceful_fs.default.mkdtempSync(import_graceful_fs.default.realpathSync(os.tmpdir()) + path.sep);
@@ -1387,7 +1387,7 @@ var Configstore = class {
1387
1387
  };
1388
1388
 
1389
1389
  //#endregion
1390
- //#region ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
1390
+ //#region ../../node_modules/.pnpm/chalk@5.6.0/node_modules/chalk/source/vendor/ansi-styles/index.js
1391
1391
  const ANSI_BACKGROUND_OFFSET = 10;
1392
1392
  const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
1393
1393
  const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
@@ -1553,7 +1553,7 @@ const ansiStyles = assembleStyles();
1553
1553
  var ansi_styles_default = ansiStyles;
1554
1554
 
1555
1555
  //#endregion
1556
- //#region ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
1556
+ //#region ../../node_modules/.pnpm/chalk@5.6.0/node_modules/chalk/source/vendor/supports-color/index.js
1557
1557
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
1558
1558
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1559
1559
  const position = argv.indexOf(prefix + flag);
@@ -1616,6 +1616,8 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1616
1616
  if ("TEAMCITY_VERSION" in env$1) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION) ? 1 : 0;
1617
1617
  if (env$1.COLORTERM === "truecolor") return 3;
1618
1618
  if (env$1.TERM === "xterm-kitty") return 3;
1619
+ if (env$1.TERM === "xterm-ghostty") return 3;
1620
+ if (env$1.TERM === "wezterm") return 3;
1619
1621
  if ("TERM_PROGRAM" in env$1) {
1620
1622
  const version$1 = Number.parseInt((env$1.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1621
1623
  switch (env$1.TERM_PROGRAM) {
@@ -1642,7 +1644,7 @@ const supportsColor = {
1642
1644
  var supports_color_default = supportsColor;
1643
1645
 
1644
1646
  //#endregion
1645
- //#region ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
1647
+ //#region ../../node_modules/.pnpm/chalk@5.6.0/node_modules/chalk/source/utilities.js
1646
1648
  function stringReplaceAll(string, substring, replacer) {
1647
1649
  let index = string.indexOf(substring);
1648
1650
  if (index === -1) return string;
@@ -1671,7 +1673,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
1671
1673
  }
1672
1674
 
1673
1675
  //#endregion
1674
- //#region ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
1676
+ //#region ../../node_modules/.pnpm/chalk@5.6.0/node_modules/chalk/source/index.js
1675
1677
  const { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
1676
1678
  const GENERATOR = Symbol("GENERATOR");
1677
1679
  const STYLER = Symbol("STYLER");
@@ -1796,7 +1798,7 @@ const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1796
1798
  var source_default = chalk;
1797
1799
 
1798
1800
  //#endregion
1799
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/errors/HTTPError.js
1801
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/errors/HTTPError.js
1800
1802
  var HTTPError = class extends Error {
1801
1803
  response;
1802
1804
  request;
@@ -1815,7 +1817,7 @@ var HTTPError = class extends Error {
1815
1817
  };
1816
1818
 
1817
1819
  //#endregion
1818
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/errors/TimeoutError.js
1820
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/errors/TimeoutError.js
1819
1821
  var TimeoutError = class extends Error {
1820
1822
  request;
1821
1823
  constructor(request) {
@@ -1826,7 +1828,7 @@ var TimeoutError = class extends Error {
1826
1828
  };
1827
1829
 
1828
1830
  //#endregion
1829
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/core/constants.js
1831
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/constants.js
1830
1832
  const supportsRequestStreams = (() => {
1831
1833
  let duplexAccessed = false;
1832
1834
  let hasContentType = false;
@@ -1866,7 +1868,8 @@ const responseTypes = {
1866
1868
  text: "text/*",
1867
1869
  formData: "multipart/form-data",
1868
1870
  arrayBuffer: "*/*",
1869
- blob: "*/*"
1871
+ blob: "*/*",
1872
+ bytes: "*/*"
1870
1873
  };
1871
1874
  const maxSafeTimeout = 2147483647;
1872
1875
  const usualFormBoundarySize = new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length;
@@ -1905,7 +1908,7 @@ const requestOptionsRegistry = {
1905
1908
  };
1906
1909
 
1907
1910
  //#endregion
1908
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/body.js
1911
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/body.js
1909
1912
  const getBodySize = (body) => {
1910
1913
  if (!body) return 0;
1911
1914
  if (body instanceof FormData) {
@@ -1977,8 +1980,8 @@ const streamResponse = (response, onDownloadProgress) => {
1977
1980
  headers: response.headers
1978
1981
  });
1979
1982
  };
1980
- const streamRequest = (request, onUploadProgress) => {
1981
- const totalBytes = getBodySize(request.body);
1983
+ const streamRequest = (request, onUploadProgress, originalBody) => {
1984
+ const totalBytes = getBodySize(originalBody ?? request.body);
1982
1985
  let transferredBytes = 0;
1983
1986
  return new Request(request, {
1984
1987
  duplex: "half",
@@ -2012,11 +2015,11 @@ const streamRequest = (request, onUploadProgress) => {
2012
2015
  };
2013
2016
 
2014
2017
  //#endregion
2015
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/is.js
2018
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/is.js
2016
2019
  const isObject$1 = (value) => value !== null && typeof value === "object";
2017
2020
 
2018
2021
  //#endregion
2019
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/merge.js
2022
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/merge.js
2020
2023
  const validateAndMerge = (...sources) => {
2021
2024
  for (const source of sources) if ((!isObject$1(source) || Array.isArray(source)) && source !== void 0) throw new TypeError("The `options` argument must be an object");
2022
2025
  return deepMerge({}, ...sources);
@@ -2066,7 +2069,7 @@ const deepMerge = (...sources) => {
2066
2069
  };
2067
2070
 
2068
2071
  //#endregion
2069
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/normalize.js
2072
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/normalize.js
2070
2073
  const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
2071
2074
  const retryMethods = [
2072
2075
  "get",
@@ -2113,7 +2116,7 @@ const normalizeRetryOptions = (retry$2 = {}) => {
2113
2116
  };
2114
2117
 
2115
2118
  //#endregion
2116
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/timeout.js
2119
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/timeout.js
2117
2120
  async function timeout(request, init$1, abortController, options) {
2118
2121
  return new Promise((resolve, reject) => {
2119
2122
  const timeoutId = setTimeout(() => {
@@ -2127,7 +2130,7 @@ async function timeout(request, init$1, abortController, options) {
2127
2130
  }
2128
2131
 
2129
2132
  //#endregion
2130
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/delay.js
2133
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/delay.js
2131
2134
  async function delay(ms, { signal }) {
2132
2135
  return new Promise((resolve, reject) => {
2133
2136
  if (signal) {
@@ -2146,15 +2149,23 @@ async function delay(ms, { signal }) {
2146
2149
  }
2147
2150
 
2148
2151
  //#endregion
2149
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/utils/options.js
2152
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/options.js
2150
2153
  const findUnknownOptions = (request, options) => {
2151
2154
  const unknownOptions = {};
2152
2155
  for (const key in options) if (!(key in requestOptionsRegistry) && !(key in kyOptionKeys) && !(key in request)) unknownOptions[key] = options[key];
2153
2156
  return unknownOptions;
2154
2157
  };
2158
+ const hasSearchParameters = (search) => {
2159
+ if (search === void 0) return false;
2160
+ if (Array.isArray(search)) return search.length > 0;
2161
+ if (search instanceof URLSearchParams) return search.size > 0;
2162
+ if (typeof search === "object") return Object.keys(search).length > 0;
2163
+ if (typeof search === "string") return search.trim().length > 0;
2164
+ return Boolean(search);
2165
+ };
2155
2166
 
2156
2167
  //#endregion
2157
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/core/Ky.js
2168
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/Ky.js
2158
2169
  var Ky = class Ky {
2159
2170
  static create(input, options) {
2160
2171
  const ky$1 = new Ky(input, options);
@@ -2183,18 +2194,21 @@ var Ky = class Ky {
2183
2194
  const result = (isRetriableMethod ? ky$1._retry(function_) : function_()).finally(async () => {
2184
2195
  if (!ky$1.request.bodyUsed) await ky$1.request.body?.cancel();
2185
2196
  });
2186
- for (const [type$1, mimeType] of Object.entries(responseTypes)) result[type$1] = async () => {
2187
- ky$1.request.headers.set("accept", ky$1.request.headers.get("accept") || mimeType);
2188
- const response = await result;
2189
- if (type$1 === "json") {
2190
- if (response.status === 204) return "";
2191
- const arrayBuffer = await response.clone().arrayBuffer();
2192
- const responseSize = arrayBuffer.byteLength;
2193
- if (responseSize === 0) return "";
2194
- if (options.parseJson) return options.parseJson(await response.text());
2195
- }
2196
- return response[type$1]();
2197
- };
2197
+ for (const [type$1, mimeType] of Object.entries(responseTypes)) {
2198
+ if (type$1 === "bytes" && typeof globalThis.Response?.prototype?.bytes !== "function") continue;
2199
+ result[type$1] = async () => {
2200
+ ky$1.request.headers.set("accept", ky$1.request.headers.get("accept") || mimeType);
2201
+ const response = await result;
2202
+ if (type$1 === "json") {
2203
+ if (response.status === 204) return "";
2204
+ const arrayBuffer = await response.clone().arrayBuffer();
2205
+ const responseSize = arrayBuffer.byteLength;
2206
+ if (responseSize === 0) return "";
2207
+ if (options.parseJson) return options.parseJson(await response.text());
2208
+ }
2209
+ return response[type$1]();
2210
+ };
2211
+ }
2198
2212
  return result;
2199
2213
  }
2200
2214
  request;
@@ -2237,7 +2251,7 @@ var Ky = class Ky {
2237
2251
  this._options.headers.set("content-type", this._options.headers.get("content-type") ?? "application/json");
2238
2252
  }
2239
2253
  this.request = new globalThis.Request(this._input, this._options);
2240
- if (this._options.searchParams) {
2254
+ if (hasSearchParameters(this._options.searchParams)) {
2241
2255
  const textSearchParams = typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(this._options.searchParams).toString();
2242
2256
  const searchParams = "?" + textSearchParams;
2243
2257
  const url$2 = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
@@ -2248,7 +2262,7 @@ var Ky = class Ky {
2248
2262
  if (typeof this._options.onUploadProgress !== "function") throw new TypeError("The `onUploadProgress` option must be a function");
2249
2263
  if (!supportsRequestStreams) throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");
2250
2264
  const originalBody = this.request.body;
2251
- if (originalBody) this.request = streamRequest(this.request, this._options.onUploadProgress);
2265
+ if (originalBody) this.request = streamRequest(this.request, this._options.onUploadProgress, this._options.body);
2252
2266
  }
2253
2267
  }
2254
2268
  _calculateRetryDelay(error) {
@@ -2310,7 +2324,7 @@ var Ky = class Ky {
2310
2324
  };
2311
2325
 
2312
2326
  //#endregion
2313
- //#region ../../node_modules/.pnpm/ky@1.8.2/node_modules/ky/distribution/index.js
2327
+ //#region ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/index.js
2314
2328
  const createInstance = (defaults$1) => {
2315
2329
  const ky$1 = (input, options) => Ky.create(input, validateAndMerge(defaults$1, options));
2316
2330
  for (const method of requestMethods) ky$1[method] = (input, options) => Ky.create(input, validateAndMerge(defaults$1, options, { method }));
@@ -3649,9 +3663,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@pnp
3649
3663
  }) });
3650
3664
 
3651
3665
  //#endregion
3652
- //#region ../../node_modules/.pnpm/tsdown@0.13.1_typescript@5.9.2/node_modules/tsdown/esm-shims.js
3666
+ //#region ../../node_modules/.pnpm/tsdown@0.14.2_typescript@5.9.2/node_modules/tsdown/esm-shims.js
3653
3667
  var getFilename, getDirname, __dirname$2;
3654
- var init_esm_shims = __esm({ "../../node_modules/.pnpm/tsdown@0.13.1_typescript@5.9.2/node_modules/tsdown/esm-shims.js": (() => {
3668
+ var init_esm_shims = __esm({ "../../node_modules/.pnpm/tsdown@0.14.2_typescript@5.9.2/node_modules/tsdown/esm-shims.js": (() => {
3655
3669
  getFilename = () => fileURLToPath(import.meta.url);
3656
3670
  getDirname = () => path.dirname(getFilename());
3657
3671
  __dirname$2 = /* @__PURE__ */ getDirname();
@@ -5232,12 +5246,12 @@ var dependencies = {
5232
5246
  "cli-check-node": "^1.3.4",
5233
5247
  "commander": "^14.0.0",
5234
5248
  "diff": "^8.0.2",
5235
- "esbuild": "^0.25.8",
5236
- "eslint": "^9.32.0",
5249
+ "esbuild": "^0.25.9",
5250
+ "eslint": "^9.34.0",
5237
5251
  "execa": "9.3.1",
5238
5252
  "glob": "^11.0.3",
5239
5253
  "https-proxy-agent": "^7.0.6",
5240
- "listr2": "^9.0.1",
5254
+ "listr2": "^9.0.3",
5241
5255
  "node-eval": "^2.0.0",
5242
5256
  "node-fetch": "^3.3.2",
5243
5257
  "ora": "^8.2.0",
@@ -5256,7 +5270,7 @@ var devDependencies = {
5256
5270
  "@types/update-notifier": "6.0.8",
5257
5271
  "@types/validate-npm-package-name": "^4.0.2",
5258
5272
  "@types/yamljs": "^0.2.34",
5259
- "tsx": "^4.20.3",
5273
+ "tsx": "^4.20.5",
5260
5274
  "typescript": "^5.9.2",
5261
5275
  "update-notifier": "^7.3.1"
5262
5276
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
3
  "type": "module",
4
- "version": "2.0.0-dev-20250831064434",
4
+ "version": "2.0.0-dev-20250831154348",
5
5
  "description": "The official CLI for Yamada UI projects",
6
6
  "keywords": [
7
7
  "theme",
@@ -40,12 +40,12 @@
40
40
  "cli-check-node": "^1.3.4",
41
41
  "commander": "^14.0.0",
42
42
  "diff": "^8.0.2",
43
- "esbuild": "^0.25.8",
44
- "eslint": "^9.32.0",
43
+ "esbuild": "^0.25.9",
44
+ "eslint": "^9.34.0",
45
45
  "execa": "9.3.1",
46
46
  "glob": "^11.0.3",
47
47
  "https-proxy-agent": "^7.0.6",
48
- "listr2": "^9.0.1",
48
+ "listr2": "^9.0.3",
49
49
  "node-eval": "^2.0.0",
50
50
  "node-fetch": "^3.3.2",
51
51
  "ora": "^8.2.0",
@@ -65,7 +65,7 @@
65
65
  "@types/update-notifier": "6.0.8",
66
66
  "@types/validate-npm-package-name": "^4.0.2",
67
67
  "@types/yamljs": "^0.2.34",
68
- "tsx": "^4.20.3",
68
+ "tsx": "^4.20.5",
69
69
  "typescript": "^5.9.2",
70
70
  "update-notifier": "^7.3.1"
71
71
  },