skills 1.3.8 → 1.3.9

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.
@@ -8,23 +8,6 @@ are set forth below. These licenses and notices are provided for informational p
8
8
  Third Party Code Components
9
9
  --------------------------------------------
10
10
 
11
- ================================================================================
12
- Package: @clack/core@0.4.1
13
- License: MIT
14
- Repository: https://github.com/natemoo-re/clack
15
- --------------------------------------------------------------------------------
16
-
17
- MIT License
18
-
19
- Copyright (c) Nate Moore
20
-
21
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
22
-
23
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
24
-
25
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
-
27
-
28
11
  ================================================================================
29
12
  Package: @clack/prompts@0.11.0
30
13
  License: MIT
@@ -121,35 +104,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
121
104
  SOFTWARE.
122
105
 
123
106
 
124
- ================================================================================
125
- Package: sisteransi@1.0.5
126
- License: MIT
127
- Repository: https://github.com/terkelg/sisteransi
128
- --------------------------------------------------------------------------------
129
-
130
- MIT License
131
-
132
- Copyright (c) 2018 Terkel Gjervig Nielsen
133
-
134
- Permission is hereby granted, free of charge, to any person obtaining a copy
135
- of this software and associated documentation files (the "Software"), to deal
136
- in the Software without restriction, including without limitation the rights
137
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
138
- copies of the Software, and to permit persons to whom the Software is
139
- furnished to do so, subject to the following conditions:
140
-
141
- The above copyright notice and this permission notice shall be included in all
142
- copies or substantial portions of the Software.
143
-
144
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
145
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
146
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
147
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
148
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
149
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
150
- SOFTWARE.
151
-
152
-
153
107
  ================================================================================
154
108
  Package: xdg-basedir@5.1.0
155
109
  License: MIT
package/dist/cli.mjs CHANGED
@@ -58,7 +58,10 @@ function isDirectSkillUrl(input) {
58
58
  if (input.includes("gitlab.com/") && !input.includes("/-/raw/")) return false;
59
59
  return true;
60
60
  }
61
+ const SOURCE_ALIASES = { "coinbase/agentWallet": "coinbase/agentic-wallet-skills" };
61
62
  function parseSource(input) {
63
+ const alias = SOURCE_ALIASES[input];
64
+ if (alias) input = alias;
62
65
  if (isLocalPath(input)) {
63
66
  const resolvedPath = resolve(input);
64
67
  return {
@@ -1796,7 +1799,7 @@ async function saveSelectedAgents(agents) {
1796
1799
  lock.lastSelectedAgents = agents;
1797
1800
  await writeSkillLock(lock);
1798
1801
  }
1799
- var version$1 = "1.3.8";
1802
+ var version$1 = "1.3.9";
1800
1803
  const isCancelled = (value) => typeof value === "symbol";
1801
1804
  async function isSourcePrivate(source) {
1802
1805
  const ownerRepo = parseOwnerRepo(source);
@@ -3043,7 +3046,14 @@ const RESET$2 = "\x1B[0m";
3043
3046
  const BOLD$2 = "\x1B[1m";
3044
3047
  const DIM$2 = "\x1B[38;5;102m";
3045
3048
  const TEXT$1 = "\x1B[38;5;145m";
3049
+ const CYAN$1 = "\x1B[36m";
3046
3050
  const SEARCH_API_BASE = process.env.SKILLS_API_URL || "https://skills.sh";
3051
+ function formatInstalls(count) {
3052
+ if (!count || count <= 0) return "";
3053
+ if (count >= 1e6) return `${(count / 1e6).toFixed(1).replace(/\.0$/, "")}M installs`;
3054
+ if (count >= 1e3) return `${(count / 1e3).toFixed(1).replace(/\.0$/, "")}K installs`;
3055
+ return `${count} install${count === 1 ? "" : "s"}`;
3056
+ }
3047
3057
  async function searchSkillsAPI(query) {
3048
3058
  try {
3049
3059
  const url = `${SEARCH_API_BASE}/api/search?q=${encodeURIComponent(query)}&limit=10`;
@@ -3093,8 +3103,10 @@ async function runSearchPrompt(initialQuery = "") {
3093
3103
  const arrow = isSelected ? `${BOLD$2}>${RESET$2}` : " ";
3094
3104
  const name = isSelected ? `${BOLD$2}${skill.name}${RESET$2}` : `${TEXT$1}${skill.name}${RESET$2}`;
3095
3105
  const source = skill.source ? ` ${DIM$2}${skill.source}${RESET$2}` : "";
3106
+ const installs = formatInstalls(skill.installs);
3107
+ const installsBadge = installs ? ` ${CYAN$1}${installs}${RESET$2}` : "";
3096
3108
  const loadingIndicator = loading && i === 0 ? ` ${DIM$2}...${RESET$2}` : "";
3097
- lines.push(` ${arrow} ${name}${source}${loadingIndicator}`);
3109
+ lines.push(` ${arrow} ${name}${source}${installsBadge}${loadingIndicator}`);
3098
3110
  }
3099
3111
  }
3100
3112
  lines.push("");
@@ -3212,7 +3224,8 @@ ${DIM$2} 2) npx skills add <owner/repo@skill>${RESET$2}`;
3212
3224
  console.log();
3213
3225
  for (const skill of results.slice(0, 6)) {
3214
3226
  const pkg = skill.source || skill.slug;
3215
- console.log(`${TEXT$1}${pkg}@${skill.name}${RESET$2}`);
3227
+ const installs = formatInstalls(skill.installs);
3228
+ console.log(`${TEXT$1}${pkg}@${skill.name}${RESET$2}${installs ? ` ${CYAN$1}${installs}${RESET$2}` : ""}`);
3216
3229
  console.log(`${DIM$2}└ https://skills.sh/${skill.slug}${RESET$2}`);
3217
3230
  console.log();
3218
3231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skills",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {