gunshi 0.14.0 → 0.14.3

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.
@@ -246,14 +246,17 @@ async function showValidationErrors(ctx, error) {
246
246
  async function resolveCommand(sub, entry, options) {
247
247
  const omitted = !sub;
248
248
  if (typeof entry === "function") return [void 0, { run: entry }];
249
- else if (omitted) return typeof entry === "object" ? [entry.name, await resolveLazyCommand(entry)] : [void 0, void 0];
249
+ else if (omitted) return typeof entry === "object" ? [resolveEntryName(entry), await resolveLazyCommand(entry)] : [void 0, void 0];
250
250
  else {
251
- if (options.subCommands == null) return [sub, void 0];
251
+ if (options.subCommands == null || options.subCommands.size === 0) return [resolveEntryName(entry), await resolveLazyCommand(entry)];
252
252
  const cmd = options.subCommands?.get(sub);
253
253
  if (cmd == null) return [sub, void 0];
254
254
  return [sub, await resolveLazyCommand(cmd, sub)];
255
255
  }
256
256
  }
257
+ function resolveEntryName(entry) {
258
+ return entry.name || "(anonymous)";
259
+ }
257
260
 
258
261
  //#endregion
259
262
  export { DefaultTranslation, cli };
@@ -1,4 +1,21 @@
1
- import "./types.d-CftFdhAF.js";
2
- import { ArgOptionSchema, ArgOptions, ArgValues, define } from "./definition.d-CFbYyc6i.js";
1
+ import { ArgOptions } from 'args-tokens';
2
+ export { ArgOptionSchema, ArgOptions, ArgValues } from 'args-tokens';
3
+ import { C as Command } from './types.d-Dw5e-IT1.js';
3
4
 
4
- export { ArgOptionSchema, ArgOptions, ArgValues, define };
5
+ /**
6
+ * The entry for command deifinition.
7
+ * @example
8
+ * ```js
9
+ * import { define } from 'gunshi/definition'
10
+ * ```
11
+ * @module
12
+ */
13
+
14
+ /**
15
+ * Define a {@link Command | command} with type inference
16
+ * @param definition A {@link Command | command} definition
17
+ * @returns A {@link Command | command} definition with type inference
18
+ */
19
+ declare function define<Options extends ArgOptions = ArgOptions>(definition: Command<Options>): Command<Options>;
20
+
21
+ export { define };
@@ -1,8 +1,13 @@
1
- import { Command, CommandOptions } from "./types.d-CftFdhAF.js";
2
- import { ArgOptions } from "args-tokens";
1
+ import { ArgOptions } from 'args-tokens';
2
+ import { C as Command, a as CommandOptions } from './types.d-Dw5e-IT1.js';
3
3
 
4
- //#region lib/.tsdown-types-es/generator.d.ts
4
+ /**
5
+ * Generate the command usage.
6
+ * @param command - usage generate command, if you want to generate the usage of the default command where there are target commands and sub-commands, specify `null`.
7
+ * @param entry - A {@link Command | entry command}
8
+ * @param opts - A {@link CommandOptions | command options}
9
+ * @returns A rendered usage.
10
+ */
5
11
  declare function generate<Options extends ArgOptions = ArgOptions>(command: string | null, entry: Command<Options>, opts?: CommandOptions<Options>): Promise<string>;
6
12
 
7
- //#endregion
8
- export { generate };
13
+ export { generate };
package/lib/generator.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { create } from "./renderer-B2JVfepJ.js";
2
- import { cli } from "./cli-DsMmOiVc.js";
2
+ import { cli } from "./cli-BlZyQHmk.js";
3
3
 
4
4
  //#region src/generator.ts
5
5
  async function generate(command, entry, opts = {}) {
package/lib/index.d.ts CHANGED
@@ -1,12 +1,18 @@
1
- import { Command, CommandBuiltinKeys, CommandBuiltinOptionsKeys, CommandBuiltinResourceKeys, CommandContext, CommandEnvironment, CommandOptionKeys, CommandOptions, CommandResource, CommandResourceFetcher, CommandRunner, Commandable, DEFAULT_LOCALE, GenerateNamespacedKey, LazyCommand, RemovedIndex, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions } from "./types.d-CftFdhAF.js";
2
- import { define } from "./definition.d-CFbYyc6i.js";
3
- import { ArgOptionSchema, ArgOptions, ArgOptions as ArgOptions$1, ArgValues, parseArgs, resolveArgs } from "args-tokens";
1
+ import { ArgOptions } from 'args-tokens';
2
+ export { ArgOptionSchema, ArgOptions, ArgValues, parseArgs, resolveArgs } from 'args-tokens';
3
+ import { C as Command, b as CommandRunner, a as CommandOptions, T as TranslationAdapter, c as TranslationAdapterFactoryOptions } from './types.d-Dw5e-IT1.js';
4
+ export { f as CommandBuiltinKeys, d as CommandBuiltinOptionsKeys, e as CommandBuiltinResourceKeys, i as CommandContext, h as CommandEnvironment, g as CommandOptionKeys, j as CommandResource, k as CommandResourceFetcher, m as Commandable, D as DEFAULT_LOCALE, G as GenerateNamespacedKey, L as LazyCommand, R as RemovedIndex, l as TranslationAdapterFactory } from './types.d-Dw5e-IT1.js';
5
+ export { define } from './definition.js';
4
6
 
5
- //#region lib/.tsdown-types-es/cli.d.ts
6
- declare function cli<Options extends ArgOptions$1 = ArgOptions$1>(args: string[], entry: Command<Options> | CommandRunner<Options>, opts?: CommandOptions<Options>): Promise<string | undefined>;
7
+ /**
8
+ * Run the command.
9
+ * @param args Command line arguments
10
+ * @param entry A {@link Command | entry command} or an {@link CommandRunner | inline command runner}
11
+ * @param opts A {@link CommandOptions | command options}
12
+ * @returns A rendered usage or undefined. if you will use {@link CommandOptions.usageSilent} option, it will return rendered usage string.
13
+ */
14
+ declare function cli<Options extends ArgOptions = ArgOptions>(args: string[], entry: Command<Options> | CommandRunner<Options>, opts?: CommandOptions<Options>): Promise<string | undefined>;
7
15
 
8
- //#endregion
9
- //#region lib/.tsdown-types-es/translation.d.ts
10
16
  declare class DefaultTranslation implements TranslationAdapter {
11
17
  #private;
12
18
  constructor(options: TranslationAdapterFactoryOptions);
@@ -16,5 +22,4 @@ declare class DefaultTranslation implements TranslationAdapter {
16
22
  translate(locale: string, key: string, values?: Record<string, unknown>): string | undefined;
17
23
  }
18
24
 
19
- //#endregion
20
- export { ArgOptionSchema, ArgOptions, ArgValues, Command, CommandBuiltinKeys, CommandBuiltinOptionsKeys, CommandBuiltinResourceKeys, CommandContext, CommandEnvironment, CommandOptionKeys, CommandOptions, CommandResource, CommandResourceFetcher, CommandRunner, Commandable, DEFAULT_LOCALE, DefaultTranslation, GenerateNamespacedKey, LazyCommand, RemovedIndex, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions, cli, define, parseArgs, resolveArgs };
25
+ export { Command, CommandOptions, CommandRunner, DefaultTranslation, TranslationAdapter, TranslationAdapterFactoryOptions, cli };
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { define } from "./definition-by5EpPkZ.js";
2
2
  import { DEFAULT_LOCALE } from "./renderer-B2JVfepJ.js";
3
- import { DefaultTranslation, cli } from "./cli-DsMmOiVc.js";
3
+ import { DefaultTranslation, cli } from "./cli-BlZyQHmk.js";
4
4
  import { parseArgs, resolveArgs } from "args-tokens";
5
5
 
6
6
  export { DEFAULT_LOCALE, DefaultTranslation, cli, define, parseArgs, resolveArgs };
@@ -0,0 +1,26 @@
1
+ import { ArgOptions } from 'args-tokens';
2
+ import { i as CommandContext } from './types.d-Dw5e-IT1.js';
3
+
4
+ /**
5
+ * Render the header.
6
+ * @param ctx A {@link CommandContext | command context}
7
+ * @returns A rendered header.
8
+ */
9
+ declare function renderHeader<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
10
+
11
+ /**
12
+ * Render the usage.
13
+ * @param ctx A {@link CommandContext | command context}
14
+ * @returns A rendered usage.
15
+ */
16
+ declare function renderUsage<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
17
+
18
+ /**
19
+ * Render the validation errors.
20
+ * @param ctx A {@link CommandContext | command context}
21
+ * @param error An {@link AggregateError} of option in `args-token` validation
22
+ * @returns A rendered validation error.
23
+ */
24
+ declare function renderValidationErrors<Options extends ArgOptions = ArgOptions>(_ctx: CommandContext<Options>, error: AggregateError): Promise<string>;
25
+
26
+ export { renderHeader, renderUsage, renderValidationErrors };
@@ -0,0 +1,3 @@
1
+ import { renderHeader, renderUsage, renderValidationErrors } from "./renderer-B2JVfepJ.js";
2
+
3
+ export { renderHeader, renderUsage, renderValidationErrors };
@@ -1,24 +1,84 @@
1
- import { ArgOptions, ArgToken, ArgValues } from "args-tokens";
1
+ import { ArgOptions, ArgValues, ArgToken } from 'args-tokens';
2
2
 
3
- //#region lib/.tsdown-types-es/constants.d.ts
3
+ /**
4
+ * The default locale string, which format is BCP 47 language tag.
5
+ */
4
6
  declare const DEFAULT_LOCALE = "en-US";
5
7
  declare const BUILT_IN_PREFIX = "_";
6
8
  declare const OPTION_PREFIX = "Option";
7
9
  declare const BUILT_IN_KEY_SEPARATOR = ":";
10
+ declare const NOOP: () => void;
11
+ type CommonOptionType = {
12
+ readonly help: {
13
+ readonly type: "boolean"
14
+ readonly short: "h"
15
+ readonly description: string
16
+ }
17
+ readonly version: {
18
+ readonly type: "boolean"
19
+ readonly short: "v"
20
+ readonly description: string
21
+ }
22
+ };
23
+ declare const COMMON_OPTIONS: CommonOptionType;
24
+ declare const COMMAND_OPTIONS_DEFAULT: CommandOptions<ArgOptions>;
25
+ declare const COMMAND_BUILTIN_RESOURCE_KEYS: readonly ["USAGE", "COMMAND", "SUBCOMMAND", "COMMANDS", "OPTIONS", "EXAMPLES", "FORMORE"];
26
+
27
+ declare const __constants_ts_BUILT_IN_KEY_SEPARATOR: typeof BUILT_IN_KEY_SEPARATOR;
28
+ declare const __constants_ts_BUILT_IN_PREFIX: typeof BUILT_IN_PREFIX;
29
+ declare const __constants_ts_COMMAND_BUILTIN_RESOURCE_KEYS: typeof COMMAND_BUILTIN_RESOURCE_KEYS;
30
+ declare const __constants_ts_COMMAND_OPTIONS_DEFAULT: typeof COMMAND_OPTIONS_DEFAULT;
31
+ declare const __constants_ts_COMMON_OPTIONS: typeof COMMON_OPTIONS;
32
+ declare const __constants_ts_DEFAULT_LOCALE: typeof DEFAULT_LOCALE;
33
+ declare const __constants_ts_NOOP: typeof NOOP;
34
+ declare const __constants_ts_OPTION_PREFIX: typeof OPTION_PREFIX;
35
+ declare namespace __constants_ts {
36
+ export {
37
+ __constants_ts_BUILT_IN_KEY_SEPARATOR as BUILT_IN_KEY_SEPARATOR,
38
+ __constants_ts_BUILT_IN_PREFIX as BUILT_IN_PREFIX,
39
+ __constants_ts_COMMAND_BUILTIN_RESOURCE_KEYS as COMMAND_BUILTIN_RESOURCE_KEYS,
40
+ __constants_ts_COMMAND_OPTIONS_DEFAULT as COMMAND_OPTIONS_DEFAULT,
41
+ __constants_ts_COMMON_OPTIONS as COMMON_OPTIONS,
42
+ __constants_ts_DEFAULT_LOCALE as DEFAULT_LOCALE,
43
+ __constants_ts_NOOP as NOOP,
44
+ __constants_ts_OPTION_PREFIX as OPTION_PREFIX,
45
+ };
46
+ }
8
47
 
9
- //#endregion
10
- //#region lib/.tsdown-types-es/types.d.ts
11
48
  type Awaitable<T> = T | Promise<T>;
12
49
  type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : K] : T[K] };
50
+ /**
51
+ * Remove index signature from object or record type.
52
+ */
13
53
  type RemovedIndex<T> = RemoveIndexSignature<{ [K in keyof T] : T[K] }>;
54
+ /**
55
+ * Generate a namespaced key.
56
+ */
14
57
  type GenerateNamespacedKey<
15
58
  Key extends string,
16
59
  Prefixed extends string = typeof BUILT_IN_PREFIX
17
60
  > = `${Prefixed}${typeof BUILT_IN_KEY_SEPARATOR}${Key}`;
18
- type CommandBuiltinOptionsKeys = keyof (typeof import("./constants.ts"))["COMMON_OPTIONS"];
19
- type CommandBuiltinResourceKeys = (typeof import("./constants.ts"))["COMMAND_BUILTIN_RESOURCE_KEYS"][number];
61
+ /**
62
+ * Command i18n built-in options keys.
63
+ */
64
+ type CommandBuiltinOptionsKeys = keyof (typeof __constants_ts)["COMMON_OPTIONS"];
65
+ /**
66
+ * Command i18n built-in resource keys.
67
+ */
68
+ type CommandBuiltinResourceKeys = (typeof __constants_ts)["COMMAND_BUILTIN_RESOURCE_KEYS"][number];
69
+ /**
70
+ * Command i18n built-in keys.
71
+ * The command i18n built-in keys are used to {@link CommandContext.translate | translate} function.
72
+ */
20
73
  type CommandBuiltinKeys = GenerateNamespacedKey<CommandBuiltinOptionsKeys> | GenerateNamespacedKey<CommandBuiltinResourceKeys> | "description" | "examples";
74
+ /**
75
+ * Command i18n option keys.
76
+ * The command i18n option keys are used to {@link CommandContext.translate | translate} function.
77
+ */
21
78
  type CommandOptionKeys<Options extends ArgOptions> = GenerateNamespacedKey<keyof RemovedIndex<Options>, typeof OPTION_PREFIX>;
79
+ /**
80
+ * Command environment.
81
+ */
22
82
  interface CommandEnvironment<Options extends ArgOptions = ArgOptions> {
23
83
  /**
24
84
  * Current working directory.
@@ -83,6 +143,9 @@ interface CommandEnvironment<Options extends ArgOptions = ArgOptions> {
83
143
  */
84
144
  renderValidationErrors: ((ctx: CommandContext<Options>, error: AggregateError) => Promise<string>) | null | undefined;
85
145
  }
146
+ /**
147
+ * Command options.
148
+ */
86
149
  interface CommandOptions<Options extends ArgOptions = ArgOptions> {
87
150
  /**
88
151
  * Current working directory.
@@ -142,6 +205,10 @@ interface CommandOptions<Options extends ArgOptions = ArgOptions> {
142
205
  */
143
206
  translationAdapterFactory?: TranslationAdapterFactory;
144
207
  }
208
+ /**
209
+ * Command context.
210
+ * Command context is the context of the command execution.
211
+ */
145
212
  interface CommandContext<
146
213
  Options extends ArgOptions = ArgOptions,
147
214
  Values = ArgValues<Options>
@@ -218,6 +285,9 @@ interface CommandContext<
218
285
  Key = CommandBuiltinKeys | O | T
219
286
  >(key: Key, values?: Record<string, unknown>) => string;
220
287
  }
288
+ /**
289
+ * Command interface.
290
+ */
221
291
  interface Command<Options extends ArgOptions = ArgOptions> {
222
292
  /**
223
293
  * Command name.
@@ -248,6 +318,9 @@ interface Command<Options extends ArgOptions = ArgOptions> {
248
318
  */
249
319
  resource?: CommandResourceFetcher<Options>;
250
320
  }
321
+ /**
322
+ * Command resource.
323
+ */
251
324
  type CommandResource<Options extends ArgOptions = ArgOptions> = {
252
325
  /**
253
326
  * Command description.
@@ -260,11 +333,22 @@ type CommandResource<Options extends ArgOptions = ArgOptions> = {
260
333
  } & { [Option in GenerateNamespacedKey<keyof RemovedIndex<Options>, typeof OPTION_PREFIX>] : string } & {
261
334
  [key: string]: string
262
335
  };
336
+ /**
337
+ * Command resource fetcher.
338
+ * @param ctx A {@link CommandContext | command context}
339
+ * @returns A fetched {@link CommandResource | command resource}.
340
+ */
263
341
  type CommandResourceFetcher<
264
342
  Options extends ArgOptions = ArgOptions,
265
343
  Values = ArgValues<Options>
266
344
  > = (ctx: Readonly<CommandContext<Options, Values>>) => Promise<CommandResource<Options>>;
345
+ /**
346
+ * Translation adapter factory.
347
+ */
267
348
  type TranslationAdapterFactory = (options: TranslationAdapterFactoryOptions) => TranslationAdapter;
349
+ /**
350
+ * Translation adapter factory options.
351
+ */
268
352
  interface TranslationAdapterFactoryOptions {
269
353
  /**
270
354
  * A locale.
@@ -275,6 +359,11 @@ interface TranslationAdapterFactoryOptions {
275
359
  */
276
360
  fallbackLocale: string;
277
361
  }
362
+ /**
363
+ * Translation adapter.
364
+ * This adapter is used to custom message formatter like {@link https://github.com/intlify/vue-i18n/blob/master/spec/syntax.ebnf | Intlify message format}, {@link https://github.com/tc39/proposal-intl-messageformat | `Intl.MessageFormat` (MF2)}, and etc.
365
+ * This adapter will support localization with your preferred message format.
366
+ */
278
367
  interface TranslationAdapter<MessageResource = string> {
279
368
  /**
280
369
  * Get a resource of locale.
@@ -304,9 +393,20 @@ interface TranslationAdapter<MessageResource = string> {
304
393
  */
305
394
  translate(locale: string, key: string, values?: Record<string, unknown>): string | undefined;
306
395
  }
396
+ /**
397
+ * Command runner.
398
+ * @param ctx A {@link CommandContext | command context}
399
+ */
307
400
  type CommandRunner<Options extends ArgOptions = ArgOptions> = (ctx: Readonly<CommandContext<Options>>) => Awaitable<void>;
401
+ /**
402
+ * Lazy command interface.
403
+ * Lazy command that's not loaded until it is executed.
404
+ */
308
405
  type LazyCommand<Options extends ArgOptions = ArgOptions> = () => Awaitable<Command<Options>>;
406
+ /**
407
+ * Define a command type.
408
+ */
309
409
  type Commandable<Options extends ArgOptions> = Command<Options> | LazyCommand<Options>;
310
410
 
311
- //#endregion
312
- export { Command, CommandBuiltinKeys, CommandBuiltinOptionsKeys, CommandBuiltinResourceKeys, CommandContext, CommandEnvironment, CommandOptionKeys, CommandOptions, CommandResource, CommandResourceFetcher, CommandRunner, Commandable, DEFAULT_LOCALE, GenerateNamespacedKey, LazyCommand, RemovedIndex, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions };
411
+ export { DEFAULT_LOCALE as D };
412
+ export type { Command as C, GenerateNamespacedKey as G, LazyCommand as L, RemovedIndex as R, TranslationAdapter as T, CommandOptions as a, CommandRunner as b, TranslationAdapterFactoryOptions as c, CommandBuiltinOptionsKeys as d, CommandBuiltinResourceKeys as e, CommandBuiltinKeys as f, CommandOptionKeys as g, CommandEnvironment as h, CommandContext as i, CommandResource as j, CommandResourceFetcher as k, TranslationAdapterFactory as l, Commandable as m };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gunshi",
3
3
  "description": "Modern javascript command-line library",
4
- "version": "0.14.0",
4
+ "version": "0.14.3",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -48,10 +48,10 @@
48
48
  "default": "./lib/definition.js"
49
49
  },
50
50
  "./renderer": {
51
- "types": "./lib/renderer/index.d.ts",
52
- "import": "./lib/renderer/index.js",
53
- "require": "./lib/renderer/index.js",
54
- "default": "./lib/renderer/index.js"
51
+ "types": "./lib/renderer.d.ts",
52
+ "import": "./lib/renderer.js",
53
+ "require": "./lib/renderer.js",
54
+ "default": "./lib/renderer.js"
55
55
  },
56
56
  "./generator": {
57
57
  "types": "./lib/generator.d.ts",
@@ -59,8 +59,7 @@
59
59
  "require": "./lib/generator.js",
60
60
  "default": "./lib/generator.js"
61
61
  },
62
- "./package.json": "./package.json",
63
- "./*": "./*"
62
+ "./package.json": "./package.json"
64
63
  },
65
64
  "types": "lib/index.d.ts",
66
65
  "typesVersions": {
@@ -77,18 +76,18 @@
77
76
  "devDependencies": {
78
77
  "@eslint/markdown": "^6.3.0",
79
78
  "@intlify/core": "next",
80
- "@kazupon/eslint-config": "^0.26.1",
79
+ "@kazupon/eslint-config": "^0.27.0",
81
80
  "@kazupon/prettier-config": "^0.1.1",
82
- "@types/node": "^22.13.14",
83
- "@vitest/eslint-plugin": "^1.1.38",
81
+ "@types/node": "^22.14.0",
82
+ "@vitest/eslint-plugin": "^1.1.42",
84
83
  "bumpp": "^10.1.0",
85
- "deno": "^2.2.6",
86
- "eslint": "^9.23.0",
87
- "eslint-config-prettier": "^10.1.1",
88
- "eslint-import-resolver-typescript": "^4.2.7",
84
+ "deno": "^2.2.8",
85
+ "eslint": "^9.24.0",
86
+ "eslint-config-prettier": "^10.1.2",
87
+ "eslint-import-resolver-typescript": "^4.3.2",
89
88
  "eslint-plugin-import": "^2.31.0",
90
89
  "eslint-plugin-jsonc": "^2.20.0",
91
- "eslint-plugin-module-interop": "^0.3.0",
90
+ "eslint-plugin-module-interop": "^0.3.1",
92
91
  "eslint-plugin-promise": "^7.2.1",
93
92
  "eslint-plugin-regexp": "^2.7.0",
94
93
  "eslint-plugin-unicorn": "^58.0.0",
@@ -98,21 +97,22 @@
98
97
  "eslint-plugin-yml": "^1.17.0",
99
98
  "gh-changelogen": "^0.2.8",
100
99
  "jsr": "^0.13.4",
101
- "knip": "^5.46.3",
100
+ "knip": "^5.50.2",
102
101
  "lint-staged": "^15.5.0",
103
102
  "messageformat": "4.0.0-10",
104
103
  "pkg-pr-new": "^0.0.42",
105
104
  "prettier": "^3.5.3",
106
- "tsdown": "^0.7.0",
107
- "typedoc": "^0.28.1",
108
- "typedoc-plugin-markdown": "^4.6.0",
105
+ "publint": "^0.3.11",
106
+ "tsdown": "0.6.10",
107
+ "typedoc": "^0.28.2",
108
+ "typedoc-plugin-markdown": "^4.6.2",
109
109
  "typedoc-vitepress-theme": "^1.1.2",
110
- "typescript": "^5.8.2",
111
- "typescript-eslint": "^8.28.0",
110
+ "typescript": "^5.8.3",
111
+ "typescript-eslint": "^8.29.1",
112
112
  "vitepress": "^1.6.3",
113
- "vitepress-plugin-group-icons": "^1.3.8",
113
+ "vitepress-plugin-group-icons": "^1.4.1",
114
114
  "vitepress-plugin-llms": "^0.0.22",
115
- "vitest": "^3.0.9",
115
+ "vitest": "^3.1.1",
116
116
  "vue": "^3.5.13"
117
117
  },
118
118
  "prettier": "@kazupon/prettier-config",
@@ -1,8 +0,0 @@
1
- import { Command } from "./types.d-CftFdhAF.js";
2
- import { ArgOptionSchema, ArgOptions, ArgOptions as ArgOptions$1, ArgValues as ArgValues$1 } from "args-tokens";
3
-
4
- //#region lib/.tsdown-types-es/definition.d.ts
5
- declare function define<Options extends ArgOptions = ArgOptions>(definition: Command<Options>): Command<Options>;
6
-
7
- //#endregion
8
- export { ArgOptionSchema, ArgOptions$1 as ArgOptions, ArgValues$1 as ArgValues, define };
@@ -1,16 +0,0 @@
1
- import { CommandContext } from "../types.d-CftFdhAF.js";
2
- import { ArgOptions } from "args-tokens";
3
-
4
- //#region lib/.tsdown-types-es/renderer/header.d.ts
5
- declare function renderHeader<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
6
-
7
- //#endregion
8
- //#region lib/.tsdown-types-es/renderer/usage.d.ts
9
- declare function renderUsage<Options extends ArgOptions = ArgOptions>(ctx: Readonly<CommandContext<Options>>): Promise<string>;
10
-
11
- //#endregion
12
- //#region lib/.tsdown-types-es/renderer/validation.d.ts
13
- declare function renderValidationErrors<Options extends ArgOptions = ArgOptions>(_ctx: CommandContext<Options>, error: AggregateError): Promise<string>;
14
-
15
- //#endregion
16
- export { renderHeader, renderUsage, renderValidationErrors };
@@ -1,3 +0,0 @@
1
- import { renderHeader, renderUsage, renderValidationErrors } from "../renderer-B2JVfepJ.js";
2
-
3
- export { renderHeader, renderUsage, renderValidationErrors };