@gunshi/plugin-completion 0.29.5 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -19,12 +19,32 @@ declare const BUILT_IN_PREFIX = "_";
19
19
  declare const PLUGIN_PREFIX = "g";
20
20
  declare const BUILT_IN_KEY_SEPARATOR = ":";
21
21
  //#endregion
22
- //#region ../shared/src/types.d.ts
22
+ //#region ../plugin-i18n/src/types.d.ts
23
+
24
+ //#endregion
25
+ //#region ../plugin-i18n/src/helpers.d.ts
26
+
27
+ //#endregion
28
+ //#region ../plugin-i18n/src/translation.d.ts
29
+
30
+ //#endregion
31
+ //#region ../gunshi/src/index.d.ts
23
32
 
33
+ //#endregion
34
+ //#region ../shared/src/types.d.ts
24
35
  /**
25
36
  * Generate a namespaced key.
26
37
  */
27
38
  type GenerateNamespacedKey<Key extends string, Prefixed extends string = typeof BUILT_IN_PREFIX> = `${Prefixed}${typeof BUILT_IN_KEY_SEPARATOR}${Key}`;
39
+ //#endregion
40
+ //#region ../shared/src/localization.d.ts
41
+
42
+ //#endregion
43
+ //#region ../shared/src/utils.d.ts
44
+
45
+ //#endregion
46
+ //#region ../shared/src/index.d.ts
47
+
28
48
  //#endregion
29
49
  //#region src/types.d.ts
30
50
  /**
@@ -91,7 +111,6 @@ interface CompletionOptions {
91
111
  }
92
112
  //#endregion
93
113
  //#region src/index.d.ts
94
-
95
114
  /**
96
115
  * completion plugin
97
116
  *
package/lib/index.js CHANGED
@@ -28,6 +28,10 @@ function kebabnize(str) {
28
28
  //#endregion
29
29
  //#region ../gunshi/src/utils.ts
30
30
  /**
31
+ * @author kazuya kawaguchi (a.k.a. kazupon)
32
+ * @license MIT
33
+ */
34
+ /**
31
35
  * Check if the given command is a {@link LazyCommand}.
32
36
  *
33
37
  * @param cmd - A command to check
@@ -103,6 +107,10 @@ function deepFreeze(obj, ignores = []) {
103
107
  }
104
108
  return Object.freeze(obj);
105
109
  }
110
+ /**
111
+ * @author kazuya kawaguchi (a.k.a. kazupon)
112
+ * @license MIT
113
+ */
106
114
  const BUILD_IN_PREFIX_AND_KEY_SEPARATOR = `_:`;
107
115
  const ARG_PREFIX_AND_KEY_SEPARATOR = `arg:`;
108
116
  //#endregion
@@ -237,6 +245,12 @@ function localizable(ctx, cmd, translate) {
237
245
  return localize;
238
246
  }
239
247
  //#endregion
248
+ //#region ../shared/src/index.ts
249
+ /**
250
+ * @author kazuya kawaguchi (a.k.a. kazupon)
251
+ * @license MIT
252
+ */
253
+ //#endregion
240
254
  //#region src/types.ts
241
255
  /**
242
256
  * @author kazuya kawaguchi (a.k.a. kazupon)
@@ -383,6 +397,9 @@ function completion(options = {}) {
383
397
  }
384
398
  });
385
399
  },
400
+ /**
401
+ * setup bombshell completion with `onExtension` hook
402
+ */
386
403
  onExtension: async (ctx, cmd) => {
387
404
  const i18n = ctx.extensions[i18nPluginId];
388
405
  const subCommands = ctx.env.subCommands;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/plugin-completion",
3
3
  "description": "completion plugin for gunshi",
4
- "version": "0.29.5",
4
+ "version": "0.30.0",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "engines": {
29
- "node": ">= 20"
29
+ "node": ">= 22"
30
30
  },
31
31
  "type": "module",
32
32
  "files": [
@@ -52,24 +52,24 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
- "@bomb.sh/tab": "^0.0.14",
56
- "@gunshi/plugin": "0.29.5"
55
+ "@bomb.sh/tab": "^0.0.15",
56
+ "@gunshi/plugin": "0.30.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@gunshi/plugin-i18n": "0.29.5"
59
+ "@gunshi/plugin-i18n": "0.30.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@types/node": "^25.5.2",
63
- "deno": "^2.7.11",
62
+ "@types/node": "^25.6.2",
63
+ "deno": "^2.7.14",
64
64
  "jsr": "^0.14.3",
65
65
  "jsr-exports-lint": "^0.4.2",
66
- "publint": "^0.3.18",
66
+ "publint": "^0.3.20",
67
67
  "rollup-plugin-license": "^3.6.0",
68
- "tsdown": "0.15.12",
69
- "typedoc": "^0.28.18",
68
+ "tsdown": "0.21.0",
69
+ "typedoc": "^0.28.19",
70
70
  "typedoc-plugin-markdown": "^4.11.0",
71
- "@gunshi/plugin-i18n": "0.29.5",
72
- "@gunshi/shared": "0.29.5"
71
+ "@gunshi/shared": "0.30.0",
72
+ "@gunshi/plugin-i18n": "0.30.0"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsdown",