bip-skills 1.4.6 → 1.4.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.
package/README.md CHANGED
@@ -33,20 +33,20 @@ npx bip-skills add yonyou/agent-skills
33
33
  ### Source Formats
34
34
 
35
35
  ```bash
36
- # Default repo shorthand (owner/repo -> git.yonyou.com)
36
+ # Default repo shorthand (owner/repo -> git.yyrd.com)
37
37
  npx bip-skills add yonyou/agent-skills
38
38
 
39
39
  # Full default Git URL
40
- npx bip-skills add https://git.yonyou.com/yonyou/agent-skills
40
+ npx bip-skills add https://git.yyrd.com/yonyou/agent-skills
41
41
 
42
42
  # Direct path to a skill in a repo
43
- npx bip-skills add https://git.yonyou.com/yonyou/agent-skills/tree/main/skills/web-design-guidelines
43
+ npx bip-skills add https://git.yyrd.com/yonyou/agent-skills/tree/main/skills/web-design-guidelines
44
44
 
45
45
  # GitLab URL
46
46
  npx bip-skills add https://gitlab.com/org/repo
47
47
 
48
48
  # Any git URL
49
- npx bip-skills add https://git.yonyou.com/yonyou/agent-skills.git
49
+ npx bip-skills add https://git.yyrd.com/yonyou/agent-skills.git
50
50
 
51
51
  # Local path
52
52
  npx bip-skills add ./my-local-skills
@@ -485,7 +485,7 @@ The repository also includes [`.github/workflows/publish.yml`](.github/workflows
485
485
  - [Replit Skills Documentation](https://docs.replit.com/replitai/skills)
486
486
  - [Roo Code Skills Documentation](https://docs.roocode.com/features/skills)
487
487
  - [Trae Skills Documentation](https://docs.trae.ai/ide/skills)
488
- - [YonYou Agent Skills Repository](https://git.yonyou.com/yonyou/agent-skills)
488
+ - [YonYou Agent Skills Repository](https://git.yyrd.com/yonyou/agent-skills)
489
489
 
490
490
  ## License
491
491
 
package/dist/cli.mjs CHANGED
@@ -27,7 +27,7 @@ const CLI_NPX_COMMAND = `npx ${CLI_PACKAGE_NAME}`;
27
27
  const DEFAULT_WELL_KNOWN_BASE_URL = "https://sun.yyuap.com";
28
28
  const DEFAULT_DISCOVERY_SITE_URL = DEFAULT_WELL_KNOWN_BASE_URL;
29
29
  const DEFAULT_SEARCH_API_BASE = DEFAULT_WELL_KNOWN_BASE_URL;
30
- const DEFAULT_GIT_HOST = "git.yonyou.com";
30
+ const DEFAULT_GIT_HOST = "git.yyrd.com";
31
31
  const DEFAULT_GIT_BASE_URL = `https://${DEFAULT_GIT_HOST}`;
32
32
  const DEFAULT_GIT_FALLBACK_SSH_HOST = "git.yyrd.com";
33
33
  const DEFAULT_INSTALL_REPORT_URL = "https://sun.yyuap.com/api/install-report";
@@ -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.8";
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.8",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {