bip-skills 1.4.10 → 1.4.11

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 +12 -4
  2. package/package.json +4 -4
package/dist/cli.mjs CHANGED
@@ -103,7 +103,12 @@ function isInternalSkillSourceUrl(sourceUrl) {
103
103
  return hostname ? isInternalSkillSourceHost(hostname) : false;
104
104
  }
105
105
  function isLocalPath(input) {
106
- return isAbsolute(input) || input.startsWith("./") || input.startsWith("../") || input === "." || input === ".." || /^[a-zA-Z]:[/\\]/.test(input);
106
+ return isAbsolute(input) || input === "~" || input.startsWith("~/") || input.startsWith("~\\") || input.startsWith("./") || input.startsWith("../") || input === "." || input === ".." || /^[a-zA-Z]:[/\\]/.test(input);
107
+ }
108
+ function expandLocalPath(input) {
109
+ if (input === "~") return homedir();
110
+ if (input.startsWith("~/") || input.startsWith("~\\")) return resolve(homedir(), input.slice(2));
111
+ return input;
107
112
  }
108
113
  const SOURCE_ALIASES = { "coinbase/agentWallet": "coinbase/agentic-wallet-skills" };
109
114
  function buildDefaultGitUrl(repoPath) {
@@ -113,7 +118,7 @@ function parseSource(input) {
113
118
  const alias = SOURCE_ALIASES[input];
114
119
  if (alias) input = alias;
115
120
  if (isLocalPath(input)) {
116
- const resolvedPath = resolve(input);
121
+ const resolvedPath = resolve(expandLocalPath(input));
117
122
  return {
118
123
  type: "local",
119
124
  url: resolvedPath,
@@ -2070,7 +2075,7 @@ function createEmptyLocalLock() {
2070
2075
  skills: {}
2071
2076
  };
2072
2077
  }
2073
- var version$1 = "1.4.10";
2078
+ var version$1 = "1.4.11";
2074
2079
  const isCancelled$1 = (value) => typeof value === "symbol";
2075
2080
  async function isSourcePrivate(source) {
2076
2081
  const ownerRepo = parseOwnerRepo(source);
@@ -2312,8 +2317,11 @@ function reportInstallToSunIfNeeded(params) {
2312
2317
  function isBareSkillNameSource(source) {
2313
2318
  return /^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$/.test(source);
2314
2319
  }
2320
+ function isFilesystemPathLike(source) {
2321
+ return isAbsolute(source) || source === "~" || source.startsWith("~/") || source.startsWith("~\\") || source.startsWith("./") || source.startsWith("../") || source === "." || source === ".." || /^[a-zA-Z]:[/\\]/.test(source);
2322
+ }
2315
2323
  function shouldProbeDefaultWellKnownPath(source) {
2316
- return source.includes("/") && !source.includes("@") && !source.startsWith("http://") && !source.startsWith("https://") && !source.startsWith("git@") && !source.startsWith("ssh://") && !source.startsWith("./") && !source.startsWith("../") && source !== "." && source !== "..";
2324
+ return source.includes("/") && !source.includes("@") && !source.startsWith("http://") && !source.startsWith("https://") && !source.startsWith("git@") && !source.startsWith("ssh://") && !isFilesystemPathLike(source);
2317
2325
  }
2318
2326
  function buildFallbackGitSshUrl(source) {
2319
2327
  return `git@${DEFAULT_GIT_FALLBACK_SSH_HOST}:${source.replace(/\.git$/, "")}.git`;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "bip-skills",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {
7
- "bip-skills": "./bin/cli.mjs",
8
- "skills": "./bin/cli.mjs",
9
- "add-skill": "./bin/cli.mjs"
7
+ "bip-skills": "bin/cli.mjs",
8
+ "skills": "bin/cli.mjs",
9
+ "add-skill": "bin/cli.mjs"
10
10
  },
11
11
  "files": [
12
12
  "dist",