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.
Files changed (2) hide show
  1. package/dist/cli.mjs +7 -3
  2. 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.6";
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 discovered = await discoverSkills(tempDir, skill.installTarget.subpath, {
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 = discovered.find((candidate) => candidate.name.toLowerCase() === skill.installName.toLowerCase()) || discovered[0];
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bip-skills",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {