eskill 1.3.3 → 1.3.4
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/cli.js +1 -1
- package/lib/completion.js +16 -0
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ const program = new Command();
|
|
|
13
13
|
program
|
|
14
14
|
.name('eskill')
|
|
15
15
|
.description('Unified AI Agent Skills Management - Install skills from Git URLs')
|
|
16
|
-
.version('1.3.
|
|
16
|
+
.version('1.3.4')
|
|
17
17
|
.option('-g, --global', '使用全局技能目录(~/.eskill/skills/),否则使用当前目录(./.claude/skills/)', false);
|
|
18
18
|
|
|
19
19
|
// 安装命令
|
package/lib/completion.js
CHANGED
|
@@ -52,6 +52,20 @@ export function bashCompletionScript() {
|
|
|
52
52
|
' ;;\n' +
|
|
53
53
|
' esac\n' +
|
|
54
54
|
' done\n\n' +
|
|
55
|
+
' # 如果还没有输入命令,提供命令补全(支持前缀匹配)\n' +
|
|
56
|
+
' if [[ -z "${cmd}" ]] && [[ $cword -gt 0 ]]; then\n' +
|
|
57
|
+
' local commands="install add remove rm uninstall update list ls link upload search cleanup config agents completion help"\n' +
|
|
58
|
+
' local matching_cmds=""\n' +
|
|
59
|
+
' for c in ${commands}; do\n' +
|
|
60
|
+
' if [[ "$c" == "${cur}"* ]]; then\n' +
|
|
61
|
+
' matching_cmds="$matching_cmds $c"\n' +
|
|
62
|
+
' fi\n' +
|
|
63
|
+
' done\n' +
|
|
64
|
+
' if [[ -n "$matching_cmds" ]]; then\n' +
|
|
65
|
+
' COMPREPLY=($(compgen -W "${matching_cmds}" -- "${cur}"))\n' +
|
|
66
|
+
' return\n' +
|
|
67
|
+
' fi\n' +
|
|
68
|
+
' fi\n\n' +
|
|
55
69
|
' case ${prev} in\n' +
|
|
56
70
|
' install|add)\n' +
|
|
57
71
|
' COMPREPLY=($(compgen -W "-a --agent -l --link -f --force" -- "${cur}"))\n' +
|
|
@@ -163,6 +177,8 @@ export function zshCompletionScript() {
|
|
|
163
177
|
' \'completion:生成自动补全脚本\'\n' +
|
|
164
178
|
' \'help:显示帮助信息\'\n' +
|
|
165
179
|
' )\n\n' +
|
|
180
|
+
' # 启用前缀匹配\n' +
|
|
181
|
+
' zstyle \':completion:*\' matcher-list \'m:{a-zA-Z}={A-Za-z}\' \'r:|[._-]=* r:|=*\' \'l:|=*\'\n\n' +
|
|
166
182
|
' local -a install_options\n' +
|
|
167
183
|
' install_options=(\n' +
|
|
168
184
|
' \'--agent[目标 agent]\'\n' +
|