eskill 1.0.29 → 1.0.30
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/installer.js +10 -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.0.
|
|
16
|
+
.version('1.0.30')
|
|
17
17
|
.option('-g, --global', '使用全局技能目录(~/.eskill/skills/),否则使用当前目录(./.claude/skills/)', false);
|
|
18
18
|
|
|
19
19
|
// 安装命令
|
package/lib/installer.js
CHANGED
|
@@ -319,6 +319,16 @@ function confirmAction(message) {
|
|
|
319
319
|
export async function installFromGitUrl(gitUrl, options = {}) {
|
|
320
320
|
const { agent = 'claude', link = false, force = false, global = false } = options;
|
|
321
321
|
|
|
322
|
+
// 本地模式:询问是否在当前目录安装
|
|
323
|
+
if (!global) {
|
|
324
|
+
const currentDir = process.cwd();
|
|
325
|
+
const confirmed = await confirmAction(`是否在【${currentDir}】下安装此技能?`);
|
|
326
|
+
if (!confirmed) {
|
|
327
|
+
console.log('\n已取消安装\n');
|
|
328
|
+
return { success: false, cancelled: true };
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
322
332
|
// 检测并处理 name@author 格式
|
|
323
333
|
let actualUrl = await handleSkillAtAuthorFormat(gitUrl);
|
|
324
334
|
|