@yamada-ui/cli 2.0.3-dev-20251022085720 → 2.0.3-dev-20251022091013

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 +195 -125
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1797,7 +1797,7 @@ const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1797
1797
  var source_default = chalk;
1798
1798
 
1799
1799
  //#endregion
1800
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/HTTPError.js
1800
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/errors/HTTPError.js
1801
1801
  var HTTPError = class extends Error {
1802
1802
  response;
1803
1803
  request;
@@ -1814,18 +1814,7 @@ var HTTPError = class extends Error {
1814
1814
  };
1815
1815
 
1816
1816
  //#endregion
1817
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/TimeoutError.js
1818
- var TimeoutError = class extends Error {
1819
- request;
1820
- constructor(request) {
1821
- super(`Request timed out: ${request.method} ${request.url}`);
1822
- this.name = "TimeoutError";
1823
- this.request = request;
1824
- }
1825
- };
1826
-
1827
- //#endregion
1828
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/constants.js
1817
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/core/constants.js
1829
1818
  const supportsRequestStreams = (() => {
1830
1819
  let duplexAccessed = false;
1831
1820
  let hasContentType = false;
@@ -1899,13 +1888,11 @@ const requestOptionsRegistry = {
1899
1888
  keepalive: true,
1900
1889
  signal: true,
1901
1890
  window: true,
1902
- dispatcher: true,
1903
- duplex: true,
1904
- priority: true
1891
+ duplex: true
1905
1892
  };
1906
1893
 
1907
1894
  //#endregion
1908
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/body.js
1895
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/body.js
1909
1896
  const getBodySize = (body) => {
1910
1897
  if (!body) return 0;
1911
1898
  if (body instanceof FormData) {
@@ -1984,11 +1971,11 @@ const streamRequest = (request, onUploadProgress, originalBody) => {
1984
1971
  };
1985
1972
 
1986
1973
  //#endregion
1987
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/is.js
1974
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/is.js
1988
1975
  const isObject$1 = (value) => value !== null && typeof value === "object";
1989
1976
 
1990
1977
  //#endregion
1991
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/merge.js
1978
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/merge.js
1992
1979
  const validateAndMerge = (...sources) => {
1993
1980
  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");
1994
1981
  return deepMerge({}, ...sources);
@@ -2010,15 +1997,44 @@ const mergeHooks = (original = {}, incoming = {}) => ({
2010
1997
  afterResponse: newHookValue(original, incoming, "afterResponse"),
2011
1998
  beforeError: newHookValue(original, incoming, "beforeError")
2012
1999
  });
2000
+ const appendSearchParameters = (target, source) => {
2001
+ const result = new URLSearchParams();
2002
+ for (const input of [target, source]) {
2003
+ if (input === void 0) continue;
2004
+ if (input instanceof URLSearchParams) for (const [key, value] of input.entries()) result.append(key, value);
2005
+ else if (Array.isArray(input)) for (const pair of input) {
2006
+ if (!Array.isArray(pair) || pair.length !== 2) throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");
2007
+ result.append(String(pair[0]), String(pair[1]));
2008
+ }
2009
+ else if (isObject$1(input)) {
2010
+ for (const [key, value] of Object.entries(input)) if (value !== void 0) result.append(key, String(value));
2011
+ } else {
2012
+ const parameters = new URLSearchParams(input);
2013
+ for (const [key, value] of parameters.entries()) result.append(key, value);
2014
+ }
2015
+ }
2016
+ return result;
2017
+ };
2013
2018
  const deepMerge = (...sources) => {
2014
2019
  let returnValue = {};
2015
2020
  let headers = {};
2016
2021
  let hooks = {};
2022
+ let searchParameters;
2023
+ const signals = [];
2017
2024
  for (const source of sources) if (Array.isArray(source)) {
2018
2025
  if (!Array.isArray(returnValue)) returnValue = [];
2019
2026
  returnValue = [...returnValue, ...source];
2020
2027
  } else if (isObject$1(source)) {
2021
2028
  for (let [key, value] of Object.entries(source)) {
2029
+ if (key === "signal" && value instanceof globalThis.AbortSignal) {
2030
+ signals.push(value);
2031
+ continue;
2032
+ }
2033
+ if (key === "searchParams") {
2034
+ if (value === void 0 || value === null) searchParameters = void 0;
2035
+ else searchParameters = searchParameters === void 0 ? value : appendSearchParameters(searchParameters, value);
2036
+ continue;
2037
+ }
2022
2038
  if (isObject$1(value) && key in returnValue) value = deepMerge(returnValue[key], value);
2023
2039
  returnValue = {
2024
2040
  ...returnValue,
@@ -2034,11 +2050,15 @@ const deepMerge = (...sources) => {
2034
2050
  returnValue.headers = headers;
2035
2051
  }
2036
2052
  }
2053
+ if (searchParameters !== void 0) returnValue.searchParams = searchParameters;
2054
+ if (signals.length > 0) if (signals.length === 1) returnValue.signal = signals[0];
2055
+ else if (supportsAbortSignal) returnValue.signal = AbortSignal.any(signals);
2056
+ else returnValue.signal = signals.at(-1);
2037
2057
  return returnValue;
2038
2058
  };
2039
2059
 
2040
2060
  //#endregion
2041
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/normalize.js
2061
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/normalize.js
2042
2062
  const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
2043
2063
  const defaultRetryOptions = {
2044
2064
  limit: 2,
@@ -2082,7 +2102,18 @@ const normalizeRetryOptions = (retry$2 = {}) => {
2082
2102
  };
2083
2103
 
2084
2104
  //#endregion
2085
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/timeout.js
2105
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/errors/TimeoutError.js
2106
+ var TimeoutError = class extends Error {
2107
+ request;
2108
+ constructor(request) {
2109
+ super(`Request timed out: ${request.method} ${request.url}`);
2110
+ this.name = "TimeoutError";
2111
+ this.request = request;
2112
+ }
2113
+ };
2114
+
2115
+ //#endregion
2116
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/timeout.js
2086
2117
  async function timeout(request, init$1, abortController, options) {
2087
2118
  return new Promise((resolve, reject) => {
2088
2119
  const timeoutId = setTimeout(() => {
@@ -2096,7 +2127,7 @@ async function timeout(request, init$1, abortController, options) {
2096
2127
  }
2097
2128
 
2098
2129
  //#endregion
2099
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/delay.js
2130
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/delay.js
2100
2131
  async function delay(ms, { signal }) {
2101
2132
  return new Promise((resolve, reject) => {
2102
2133
  if (signal) {
@@ -2115,7 +2146,7 @@ async function delay(ms, { signal }) {
2115
2146
  }
2116
2147
 
2117
2148
  //#endregion
2118
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/options.js
2149
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/options.js
2119
2150
  const findUnknownOptions = (request, options) => {
2120
2151
  const unknownOptions = {};
2121
2152
  for (const key in options) if (!(key in requestOptionsRegistry) && !(key in kyOptionKeys) && !(key in request)) unknownOptions[key] = options[key];
@@ -2131,7 +2162,52 @@ const hasSearchParameters = (search) => {
2131
2162
  };
2132
2163
 
2133
2164
  //#endregion
2134
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/Ky.js
2165
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/type-guards.js
2166
+ /**
2167
+ * Type guard to check if an error is an HTTPError.
2168
+ *
2169
+ * @param error - The error to check
2170
+ * @returns `true` if the error is an HTTPError, `false` otherwise
2171
+ *
2172
+ * @example
2173
+ * ```
2174
+ * import ky, {isHTTPError} from 'ky';
2175
+ * try {
2176
+ * const response = await ky.get('/api/data');
2177
+ * } catch (error) {
2178
+ * if (isHTTPError(error)) {
2179
+ * console.log('HTTP error status:', error.response.status);
2180
+ * }
2181
+ * }
2182
+ * ```
2183
+ */
2184
+ function isHTTPError(error) {
2185
+ return error instanceof HTTPError || error?.name === HTTPError.name;
2186
+ }
2187
+ /**
2188
+ * Type guard to check if an error is a TimeoutError.
2189
+ *
2190
+ * @param error - The error to check
2191
+ * @returns `true` if the error is a TimeoutError, `false` otherwise
2192
+ *
2193
+ * @example
2194
+ * ```
2195
+ * import ky, {isTimeoutError} from 'ky';
2196
+ * try {
2197
+ * const response = await ky.get('/api/data', { timeout: 1000 });
2198
+ * } catch (error) {
2199
+ * if (isTimeoutError(error)) {
2200
+ * console.log('Request timed out:', error.request.url);
2201
+ * }
2202
+ * }
2203
+ * ```
2204
+ */
2205
+ function isTimeoutError(error) {
2206
+ return error instanceof TimeoutError || error?.name === TimeoutError.name;
2207
+ }
2208
+
2209
+ //#endregion
2210
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/core/Ky.js
2135
2211
  var Ky = class Ky {
2136
2212
  static create(input, options) {
2137
2213
  const ky$1 = new Ky(input, options);
@@ -2140,13 +2216,13 @@ var Ky = class Ky {
2140
2216
  await Promise.resolve();
2141
2217
  let response = await ky$1._fetch();
2142
2218
  for (const hook of ky$1._options.hooks.afterResponse) {
2143
- const modifiedResponse = await hook(ky$1.request, ky$1._options, ky$1._decorateResponse(response.clone()));
2219
+ const modifiedResponse = await hook(ky$1.request, ky$1.#getNormalizedOptions(), ky$1._decorateResponse(response.clone()), { retryCount: ky$1._retryCount });
2144
2220
  if (modifiedResponse instanceof globalThis.Response) response = modifiedResponse;
2145
2221
  }
2146
2222
  ky$1._decorateResponse(response);
2147
2223
  if (!response.ok && ky$1._options.throwHttpErrors) {
2148
- let error = new HTTPError(response, ky$1.request, ky$1._options);
2149
- for (const hook of ky$1._options.hooks.beforeError) error = await hook(error);
2224
+ let error = new HTTPError(response, ky$1.request, ky$1.#getNormalizedOptions());
2225
+ for (const hook of ky$1._options.hooks.beforeError) error = await hook(error, { retryCount: ky$1._retryCount });
2150
2226
  throw error;
2151
2227
  }
2152
2228
  if (ky$1._options.onDownloadProgress) {
@@ -2190,6 +2266,7 @@ var Ky = class Ky {
2190
2266
  _input;
2191
2267
  _options;
2192
2268
  _originalRequest;
2269
+ #cachedNormalizedOptions;
2193
2270
  constructor(input, options = {}) {
2194
2271
  this._input = input;
2195
2272
  this._options = {
@@ -2224,11 +2301,12 @@ var Ky = class Ky {
2224
2301
  this._options.body = this._options.stringifyJson?.(this._options.json) ?? JSON.stringify(this._options.json);
2225
2302
  this._options.headers.set("content-type", this._options.headers.get("content-type") ?? "application/json");
2226
2303
  }
2304
+ const userProvidedContentType = options.headers && new globalThis.Headers(options.headers).has("content-type");
2305
+ if (this._input instanceof globalThis.Request && (supportsFormData && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !userProvidedContentType) this._options.headers.delete("content-type");
2227
2306
  this.request = new globalThis.Request(this._input, this._options);
2228
2307
  if (hasSearchParameters(this._options.searchParams)) {
2229
2308
  const searchParams = "?" + (typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(Ky.#normalizeSearchParams(this._options.searchParams)).toString());
2230
2309
  const url$2 = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
2231
- if ((supportsFormData && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers["content-type"])) this.request.headers.delete("content-type");
2232
2310
  this.request = new globalThis.Request(new globalThis.Request(url$2, { ...this.request }), this._options);
2233
2311
  }
2234
2312
  if (this._options.onUploadProgress) {
@@ -2239,8 +2317,8 @@ var Ky = class Ky {
2239
2317
  }
2240
2318
  _calculateRetryDelay(error) {
2241
2319
  this._retryCount++;
2242
- if (this._retryCount > this._options.retry.limit || error instanceof TimeoutError) throw error;
2243
- if (error instanceof HTTPError) {
2320
+ if (this._retryCount > this._options.retry.limit || isTimeoutError(error)) throw error;
2321
+ if (isHTTPError(error)) {
2244
2322
  if (!this._options.retry.statusCodes.includes(error.response.status)) throw error;
2245
2323
  const retryAfter = error.response.headers.get("Retry-After") ?? error.response.headers.get("RateLimit-Reset") ?? error.response.headers.get("X-RateLimit-Reset") ?? error.response.headers.get("X-Rate-Limit-Reset");
2246
2324
  if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
@@ -2268,7 +2346,7 @@ var Ky = class Ky {
2268
2346
  await delay(ms, { signal: this._options.signal });
2269
2347
  for (const hook of this._options.hooks.beforeRetry) if (await hook({
2270
2348
  request: this.request,
2271
- options: this._options,
2349
+ options: this.#getNormalizedOptions(),
2272
2350
  error,
2273
2351
  retryCount: this._retryCount
2274
2352
  }) === stop) return;
@@ -2277,7 +2355,7 @@ var Ky = class Ky {
2277
2355
  }
2278
2356
  async _fetch() {
2279
2357
  for (const hook of this._options.hooks.beforeRequest) {
2280
- const result = await hook(this.request, this._options);
2358
+ const result = await hook(this.request, this.#getNormalizedOptions(), { retryCount: this._retryCount });
2281
2359
  if (result instanceof Request) {
2282
2360
  this.request = result;
2283
2361
  break;
@@ -2290,10 +2368,17 @@ var Ky = class Ky {
2290
2368
  if (this._options.timeout === false) return this._options.fetch(this._originalRequest, nonRequestOptions);
2291
2369
  return timeout(this._originalRequest, nonRequestOptions, this.abortController, this._options);
2292
2370
  }
2371
+ #getNormalizedOptions() {
2372
+ if (!this.#cachedNormalizedOptions) {
2373
+ const { hooks,...normalizedOptions } = this._options;
2374
+ this.#cachedNormalizedOptions = Object.freeze(normalizedOptions);
2375
+ }
2376
+ return this.#cachedNormalizedOptions;
2377
+ }
2293
2378
  };
2294
2379
 
2295
2380
  //#endregion
2296
- //#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/index.js
2381
+ //#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/index.js
2297
2382
  const createInstance = (defaults$1) => {
2298
2383
  const ky$1 = (input, options) => Ky.create(input, validateAndMerge(defaults$1, options));
2299
2384
  for (const method of requestMethods) ky$1[method] = (input, options) => Ky.create(input, validateAndMerge(defaults$1, options, { method }));
@@ -3624,9 +3709,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@pnp
3624
3709
  }) });
3625
3710
 
3626
3711
  //#endregion
3627
- //#region ../../node_modules/.pnpm/tsdown@0.15.6_typescript@5.9.3/node_modules/tsdown/esm-shims.js
3712
+ //#region ../../node_modules/.pnpm/tsdown@0.15.9_typescript@5.9.3/node_modules/tsdown/esm-shims.js
3628
3713
  var getFilename, getDirname, __dirname$2;
3629
- var init_esm_shims = __esm({ "../../node_modules/.pnpm/tsdown@0.15.6_typescript@5.9.3/node_modules/tsdown/esm-shims.js": (() => {
3714
+ var init_esm_shims = __esm({ "../../node_modules/.pnpm/tsdown@0.15.9_typescript@5.9.3/node_modules/tsdown/esm-shims.js": (() => {
3630
3715
  getFilename = () => fileURLToPath(import.meta.url);
3631
3716
  getDirname = () => path.dirname(getFilename());
3632
3717
  __dirname$2 = /* @__PURE__ */ getDirname();
@@ -5188,96 +5273,81 @@ function updateNotifier(options) {
5188
5273
  //#endregion
5189
5274
  //#region package.json
5190
5275
  var name = "@yamada-ui/cli";
5191
- var type = "module";
5192
5276
  var version = "2.0.2";
5193
5277
  var description = "The official CLI for Yamada UI projects";
5194
- var keywords = [
5195
- "theme",
5196
- "theming",
5197
- "typings",
5198
- "generator",
5199
- "yamada ui",
5200
- "yamada",
5201
- "ui mode",
5202
- "ui"
5203
- ];
5204
- var author = "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>";
5205
- var license = "MIT";
5206
- var main = "dist/index.js";
5207
- var files = ["dist"];
5208
- var sideEffects = false;
5209
- var publishConfig = { "access": "public" };
5210
- var homepage = "https://yamada-ui.com";
5211
- var repository = {
5212
- "type": "git",
5213
- "url": "https://github.com/yamada-ui/yamada-ui",
5214
- "directory": "packages/cli"
5215
- };
5216
- var bugs = { "url": "https://github.com/yamada-ui/yamada-ui/issues" };
5217
- var bin = { "yamada-cli": "dist/index.js" };
5218
- var scripts = {
5219
- "clean": "rimraf node_modules dist trace coverage .turbo .eslintcache",
5220
- "dev": "tsx src/index.ts",
5221
- "build": "tsdown",
5222
- "typecheck": " tsc --noEmit",
5223
- "typetrace": "tsc --noEmit --generateTrace ./trace --incremental false",
5224
- "typeanalyze": "npx analyze-trace ./trace --expandTypes=false",
5225
- "lint": "eslint . --max-warnings=0 --cache",
5226
- "format": "prettier . --ignore-path ../../.prettierignore --check --cache"
5227
- };
5228
- var dependencies = {
5229
- "@yamada-ui/utils": "workspace:*",
5230
- "boxen": "^8.0.1",
5231
- "cli-check-node": "^1.3.4",
5232
- "commander": "^14.0.1",
5233
- "diff": "^8.0.2",
5234
- "esbuild": "^0.25.10",
5235
- "eslint": "^9.37.0",
5236
- "execa": "9.3.1",
5237
- "glob": "^11.0.3",
5238
- "https-proxy-agent": "^7.0.6",
5239
- "listr2": "^9.0.4",
5240
- "node-eval": "^2.0.0",
5241
- "node-fetch": "^3.3.2",
5242
- "ora": "^9.0.0",
5243
- "picocolors": "^1.1.1",
5244
- "prettier": "^3.6.2",
5245
- "prompts": "^2.4.2",
5246
- "rimraf": "^6.0.1",
5247
- "semver": "^7.7.2",
5248
- "sucrase": "^3.35.0",
5249
- "validate-npm-package-name": "^6.0.2",
5250
- "yamljs": "^0.3.0"
5251
- };
5252
- var devDependencies = {
5253
- "@types/prompts": "^2.4.9",
5254
- "@types/semver": "^7.7.1",
5255
- "@types/update-notifier": "6.0.8",
5256
- "@types/validate-npm-package-name": "^4.0.2",
5257
- "@types/yamljs": "^0.2.34",
5258
- "tsx": "^4.20.6",
5259
- "typescript": "^5.9.3",
5260
- "update-notifier": "^7.3.1"
5261
- };
5262
5278
  var package_default = {
5263
5279
  name,
5264
- type,
5280
+ type: "module",
5265
5281
  version,
5266
5282
  description,
5267
- keywords,
5268
- author,
5269
- license,
5270
- main,
5271
- files,
5272
- sideEffects,
5273
- publishConfig,
5274
- homepage,
5275
- repository,
5276
- bugs,
5277
- bin,
5278
- scripts,
5279
- dependencies,
5280
- devDependencies
5283
+ keywords: [
5284
+ "theme",
5285
+ "theming",
5286
+ "typings",
5287
+ "generator",
5288
+ "yamada ui",
5289
+ "yamada",
5290
+ "ui mode",
5291
+ "ui"
5292
+ ],
5293
+ author: "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",
5294
+ license: "MIT",
5295
+ main: "dist/index.js",
5296
+ files: ["dist"],
5297
+ sideEffects: false,
5298
+ publishConfig: { "access": "public" },
5299
+ homepage: "https://yamada-ui.com",
5300
+ repository: {
5301
+ "type": "git",
5302
+ "url": "https://github.com/yamada-ui/yamada-ui",
5303
+ "directory": "packages/cli"
5304
+ },
5305
+ bugs: { "url": "https://github.com/yamada-ui/yamada-ui/issues" },
5306
+ bin: { "yamada-cli": "dist/index.js" },
5307
+ scripts: {
5308
+ "clean": "rimraf node_modules dist trace coverage .turbo .eslintcache",
5309
+ "dev": "tsx src/index.ts",
5310
+ "build": "tsdown",
5311
+ "typecheck": " tsc --noEmit",
5312
+ "typetrace": "tsc --noEmit --generateTrace ./trace --incremental false",
5313
+ "typeanalyze": "npx analyze-trace ./trace --expandTypes=false",
5314
+ "lint": "eslint . --max-warnings=0 --cache",
5315
+ "format": "prettier . --ignore-path ../../.prettierignore --check --cache"
5316
+ },
5317
+ dependencies: {
5318
+ "@yamada-ui/utils": "workspace:*",
5319
+ "boxen": "^8.0.1",
5320
+ "cli-check-node": "^1.3.4",
5321
+ "commander": "^14.0.1",
5322
+ "diff": "^8.0.2",
5323
+ "esbuild": "^0.25.11",
5324
+ "eslint": "^9.38.0",
5325
+ "execa": "9.3.1",
5326
+ "glob": "^11.0.3",
5327
+ "https-proxy-agent": "^7.0.6",
5328
+ "listr2": "^9.0.5",
5329
+ "node-eval": "^2.0.0",
5330
+ "node-fetch": "^3.3.2",
5331
+ "ora": "^9.0.0",
5332
+ "picocolors": "^1.1.1",
5333
+ "prettier": "^3.6.2",
5334
+ "prompts": "^2.4.2",
5335
+ "rimraf": "^6.0.1",
5336
+ "semver": "^7.7.3",
5337
+ "sucrase": "^3.35.0",
5338
+ "validate-npm-package-name": "^6.0.2",
5339
+ "yamljs": "^0.3.0"
5340
+ },
5341
+ devDependencies: {
5342
+ "@types/prompts": "^2.4.9",
5343
+ "@types/semver": "^7.7.1",
5344
+ "@types/update-notifier": "6.0.8",
5345
+ "@types/validate-npm-package-name": "^4.0.2",
5346
+ "@types/yamljs": "^0.2.34",
5347
+ "tsx": "^4.20.6",
5348
+ "typescript": "^5.9.3",
5349
+ "update-notifier": "^7.3.1"
5350
+ }
5281
5351
  };
5282
5352
 
5283
5353
  //#endregion
@@ -5724,7 +5794,7 @@ async function getConfig(cwd$3, configPath, { format: format$2, jsx, lint } = {}
5724
5794
  } catch {
5725
5795
  const { args, command } = packageExecuteCommands(getPackageManager());
5726
5796
  const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
5727
- throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${package_default.name}@latest init`)}.`);
5797
+ throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${name}@latest init`)}.`);
5728
5798
  }
5729
5799
  }
5730
5800
 
@@ -6537,7 +6607,7 @@ const diff = new Command("diff").description("check for updates against the regi
6537
6607
  const { end } = timer();
6538
6608
  const { args, command } = packageExecuteCommands(getPackageManager());
6539
6609
  const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
6540
- const getCommand = (command$1) => c.cyan(`${prefix} ${package_default.name}@latest ${command$1}`);
6610
+ const getCommand = (command$1) => c.cyan(`${prefix} ${name}@latest ${command$1}`);
6541
6611
  spinner.start("Validating directory");
6542
6612
  await validateDir(cwd$3);
6543
6613
  spinner.succeed("Validated directory");
@@ -7248,7 +7318,7 @@ const update = new Command("update").description("update components in your proj
7248
7318
  const { end } = timer();
7249
7319
  const { args, command } = packageExecuteCommands(getPackageManager());
7250
7320
  const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
7251
- const getCommand = (command$1) => c.cyan(`${prefix} ${package_default.name}@latest ${command$1}`);
7321
+ const getCommand = (command$1) => c.cyan(`${prefix} ${name}@latest ${command$1}`);
7252
7322
  spinner.start("Validating directory");
7253
7323
  await validateDir(cwd$3);
7254
7324
  spinner.succeed("Validated directory");
@@ -7322,9 +7392,9 @@ function run() {
7322
7392
  shouldNotifyInNpmScript: true,
7323
7393
  updateCheckInterval: 1e3 * 60 * 60 * 24 * 3
7324
7394
  }).notify({ isGlobal: true });
7325
- console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${package_default.version} ${c.dim("by Yamada UI")}`);
7326
- console.log(`${c.dim(package_default.description)}\n`);
7327
- const program = new Command("Yamada UI CLI").version(package_default.version, "-v, --version", "display the version number").usage(`${c.green("<command>")} [options]`);
7395
+ console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${version} ${c.dim("by Yamada UI")}`);
7396
+ console.log(`${c.dim(description)}\n`);
7397
+ const program = new Command("Yamada UI CLI").version(version, "-v, --version", "display the version number").usage(`${c.green("<command>")} [options]`);
7328
7398
  program.addCommand(init);
7329
7399
  program.addCommand(add);
7330
7400
  program.addCommand(update);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
3
  "type": "module",
4
- "version": "2.0.3-dev-20251022085720",
4
+ "version": "2.0.3-dev-20251022091013",
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.1",
42
42
  "diff": "^8.0.2",
43
- "esbuild": "^0.25.10",
44
- "eslint": "^9.37.0",
43
+ "esbuild": "^0.25.11",
44
+ "eslint": "^9.38.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.4",
48
+ "listr2": "^9.0.5",
49
49
  "node-eval": "^2.0.0",
50
50
  "node-fetch": "^3.3.2",
51
51
  "ora": "^9.0.0",
@@ -53,11 +53,11 @@
53
53
  "prettier": "^3.6.2",
54
54
  "prompts": "^2.4.2",
55
55
  "rimraf": "^6.0.1",
56
- "semver": "^7.7.2",
56
+ "semver": "^7.7.3",
57
57
  "sucrase": "^3.35.0",
58
58
  "validate-npm-package-name": "^6.0.2",
59
59
  "yamljs": "^0.3.0",
60
- "@yamada-ui/utils": "2.0.2-dev-20251022085720"
60
+ "@yamada-ui/utils": "2.0.2-dev-20251022091013"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/prompts": "^2.4.9",