install-agent-skill 1.2.7 → 1.2.8
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.
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import os from "os";
|
|
8
|
-
import {
|
|
8
|
+
import { exec } from "child_process";
|
|
9
|
+
import util from "util";
|
|
10
|
+
const execAsync = util.promisify(exec);
|
|
9
11
|
import prompts from "prompts";
|
|
10
12
|
|
|
11
13
|
import boxen from "boxen";
|
|
@@ -42,8 +44,8 @@ export async function run(spec) {
|
|
|
42
44
|
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "add-skill-"));
|
|
43
45
|
|
|
44
46
|
try {
|
|
45
|
-
|
|
46
|
-
if (ref)
|
|
47
|
+
await execAsync(`git clone --depth=1 ${url} "${tmp}"`);
|
|
48
|
+
if (ref) await execAsync(`git -C "${tmp}" checkout ${ref}`);
|
|
47
49
|
} catch {
|
|
48
50
|
s.stop("Failed to clone");
|
|
49
51
|
step(c.red("Failed to clone"), S.cross, "red");
|
|
@@ -118,6 +120,9 @@ export async function run(spec) {
|
|
|
118
120
|
selectedSkills = skillsR.skills;
|
|
119
121
|
}
|
|
120
122
|
|
|
123
|
+
// Ensure newline after prompt to fix tree alignment
|
|
124
|
+
console.log();
|
|
125
|
+
|
|
121
126
|
// Agent selection
|
|
122
127
|
stepLine();
|
|
123
128
|
step("Detected 5 agents", S.diamond);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "install-agent-skill",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "DataGuruIn <contact@dataguruin.com>",
|