@voidagency/skills 1.0.0 → 1.0.1
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 +9 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -2117,7 +2117,7 @@ function createEmptyLocalLock() {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
//#endregion
|
|
2119
2119
|
//#region package.json
|
|
2120
|
-
var version$1 = "1.0.
|
|
2120
|
+
var version$1 = "1.0.1";
|
|
2121
2121
|
//#endregion
|
|
2122
2122
|
//#region src/add.ts
|
|
2123
2123
|
const isCancelled$1 = (value) => typeof value === "symbol";
|
|
@@ -3271,12 +3271,19 @@ async function runAddAgent(agentSource, options = {}) {
|
|
|
3271
3271
|
const slug = agentName ? `${baseSlug}-${slugFromSource(agentName)}` : baseSlug;
|
|
3272
3272
|
const skillsList = Array.isArray(manifest.skills) ? manifest.skills : [];
|
|
3273
3273
|
if (skillsList.length > 0) M.info(`Installing ${skillsList.length} skill(s) from agent manifest...`);
|
|
3274
|
+
const hasExplicitProvider = (s) => /^(bitbucket:|github:|gitlab:|https?:\/\/)/i.test(String(s).trim());
|
|
3275
|
+
const resolveSkillSource = (s) => {
|
|
3276
|
+
const t = String(s).trim();
|
|
3277
|
+
if (parsed.type === "bitbucket" && !hasExplicitProvider(t)) return `bitbucket:${t}`;
|
|
3278
|
+
return t;
|
|
3279
|
+
};
|
|
3274
3280
|
for (const skillSource of skillsList) {
|
|
3275
3281
|
const trimmed = String(skillSource).trim();
|
|
3276
3282
|
if (!trimmed) continue;
|
|
3283
|
+
const resolved = resolveSkillSource(trimmed);
|
|
3277
3284
|
spinner.start(`Installing skill: ${trimmed}`);
|
|
3278
3285
|
try {
|
|
3279
|
-
await runAdd([
|
|
3286
|
+
await runAdd([resolved], options);
|
|
3280
3287
|
spinner.stop(`Installed: ${trimmed}`);
|
|
3281
3288
|
} catch (err) {
|
|
3282
3289
|
spinner.stop(`Failed: ${trimmed}`);
|