bip-skills 1.4.6 → 1.4.7
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/cli.mjs +7 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1926,7 +1926,7 @@ function createEmptyLocalLock() {
|
|
|
1926
1926
|
skills: {}
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
|
-
var version$1 = "1.4.
|
|
1929
|
+
var version$1 = "1.4.7";
|
|
1930
1930
|
const isCancelled$1 = (value) => typeof value === "symbol";
|
|
1931
1931
|
async function isSourcePrivate(source) {
|
|
1932
1932
|
const ownerRepo = parseOwnerRepo(source);
|
|
@@ -1952,11 +1952,15 @@ async function prepareRepositoryBackedWellKnownSkill(skill) {
|
|
|
1952
1952
|
if (skill.installTarget.type !== "repository") throw new Error("Skill is not repository-backed");
|
|
1953
1953
|
const tempDir = await cloneRepo(skill.installTarget.repositoryUrl);
|
|
1954
1954
|
try {
|
|
1955
|
-
const
|
|
1955
|
+
const exactMatches = skill.installTarget.subpath ? await discoverSkills(tempDir, skill.installTarget.subpath, {
|
|
1956
|
+
includeInternal: true,
|
|
1957
|
+
fullDepth: true
|
|
1958
|
+
}) : [];
|
|
1959
|
+
const repoWideMatches = exactMatches.length > 0 ? exactMatches : await discoverSkills(tempDir, void 0, {
|
|
1956
1960
|
includeInternal: true,
|
|
1957
1961
|
fullDepth: true
|
|
1958
1962
|
});
|
|
1959
|
-
const matched =
|
|
1963
|
+
const matched = repoWideMatches.find((candidate) => candidate.name.toLowerCase() === skill.installName.toLowerCase()) || exactMatches[0] || repoWideMatches[0];
|
|
1960
1964
|
if (!matched) throw new Error(`No skill found at ${skill.installTarget.repositoryUrl}${skill.installTarget.subpath ? ` (${skill.installTarget.subpath})` : ""}`);
|
|
1961
1965
|
return {
|
|
1962
1966
|
preparedSkill: {
|