skild 0.4.0 → 0.4.1
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/dist/index.js +2 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createRequire } from "module";
|
|
|
9
9
|
import fs2 from "fs";
|
|
10
10
|
import path2 from "path";
|
|
11
11
|
import chalk2 from "chalk";
|
|
12
|
-
import { fetchWithTimeout, installRegistrySkill, installSkill, isValidAlias, loadRegistryAuth, materializeSourceToTemp, resolveRegistryAlias, resolveRegistryUrl, SkildError, PLATFORMS } from "@skild/core";
|
|
12
|
+
import { deriveChildSource, fetchWithTimeout, installRegistrySkill, installSkill, isValidAlias, loadRegistryAuth, materializeSourceToTemp, resolveRegistryAlias, resolveRegistryUrl, SkildError, PLATFORMS } from "@skild/core";
|
|
13
13
|
|
|
14
14
|
// src/utils/logger.ts
|
|
15
15
|
import chalk from "chalk";
|
|
@@ -217,12 +217,6 @@ function discoverSkillDirsWithHeuristics(rootDir, options) {
|
|
|
217
217
|
}
|
|
218
218
|
return discoverSkillDirs(root, options);
|
|
219
219
|
}
|
|
220
|
-
function deriveRemoteChildSource(baseSource, relPath) {
|
|
221
|
-
const [pathPart, ref] = baseSource.split("#", 2);
|
|
222
|
-
const clean = normalizeRelPath(relPath);
|
|
223
|
-
const joined = clean ? `${pathPart.replace(/\/+$/, "")}/${clean}` : pathPart;
|
|
224
|
-
return ref ? `${joined}#${ref}` : joined;
|
|
225
|
-
}
|
|
226
220
|
|
|
227
221
|
// src/commands/install.ts
|
|
228
222
|
function looksLikeAlias(input) {
|
|
@@ -406,7 +400,7 @@ ${previewDiscovered(found)}
|
|
|
406
400
|
}
|
|
407
401
|
const found = asDiscoveredSkills(
|
|
408
402
|
discovered,
|
|
409
|
-
(d) =>
|
|
403
|
+
(d) => deriveChildSource(resolvedSource, d.relPath),
|
|
410
404
|
(d) => d.absDir
|
|
411
405
|
);
|
|
412
406
|
const didReturn = await maybeEnableRecursiveAndInstall(found);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skild",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The npm for Agent Skills — Discover, install, manage, and publish AI Agent Skills with ease.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"commander": "^12.1.0",
|
|
38
38
|
"ora": "^8.0.1",
|
|
39
39
|
"tar": "^7.4.3",
|
|
40
|
-
"@skild/core": "^0.4.
|
|
40
|
+
"@skild/core": "^0.4.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^20.10.0",
|