skillmds 1.3.7 → 1.3.9
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/CHANGELOG.md +12 -0
- package/assets/skillmd-banner.jpg +0 -0
- package/dist/cli.js +875 -317
- package/dist/mcp.js +16 -17
- package/package.json +2 -2
package/dist/mcp.js
CHANGED
|
@@ -205,24 +205,23 @@ async function installFromRegistry(args, ctx, deps = {}) {
|
|
|
205
205
|
if (bad) return bad;
|
|
206
206
|
let files = [{ path: "SKILL.md", contents: raw }];
|
|
207
207
|
let note = "";
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
} catch (e) {
|
|
223
|
-
if (e instanceof IntegrityError) return notice(`Refused: ${owner}/${name} failed integrity verification \u2014 ${e.message}. Not installed.`);
|
|
224
|
-
note = `pack assets could not be fetched (${e instanceof Error ? e.message : String(e)}) \u2014 only SKILL.md was written`;
|
|
208
|
+
const pack = skill.type === "pack";
|
|
209
|
+
try {
|
|
210
|
+
const missing = [];
|
|
211
|
+
const bundle = await getBundle(ctx.base, `${owner}/${name}`, ctx.token, { missing });
|
|
212
|
+
if (bundle?.length) {
|
|
213
|
+
files = bundle.some((f) => f.path === "SKILL.md") ? bundle : [...bundle, { path: "SKILL.md", contents: raw }];
|
|
214
|
+
if (missing.length) note = missingFilesNote(missing);
|
|
215
|
+
} else if (pack) {
|
|
216
|
+
const fromGitHub = await getPackFiles(skill);
|
|
217
|
+
if (fromGitHub) {
|
|
218
|
+
files = fromGitHub.files;
|
|
219
|
+
if (fromGitHub.pinMiss) note = "pinned commit unavailable upstream \u2014 fetched the source repo's default branch instead";
|
|
220
|
+
} else note = "pack assets could not be fetched \u2014 only SKILL.md was written";
|
|
225
221
|
}
|
|
222
|
+
} catch (e) {
|
|
223
|
+
if (e instanceof IntegrityError) return notice(`Refused: ${owner}/${name} failed integrity verification \u2014 ${e.message}. Not installed.`);
|
|
224
|
+
if (pack) note = `pack assets could not be fetched (${e instanceof Error ? e.message : String(e)}) \u2014 only SKILL.md was written`;
|
|
226
225
|
}
|
|
227
226
|
const written = skillMdOf(files);
|
|
228
227
|
if (written === null) files = [...files, { path: "SKILL.md", contents: raw }];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillmds",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Find, install, lint and publish Agent Skills (SKILL.md) from skillmd.com: the get-skill CLI and MCP server.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SkillMD",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"prepublishOnly": "npm run build"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@clack/
|
|
60
|
+
"@clack/core": "^0.3.5",
|
|
61
61
|
"@modelcontextprotocol/sdk": "^1.13.0",
|
|
62
62
|
"@skillmds/core": "^1.0.0",
|
|
63
63
|
"commander": "^12.1.0",
|