bfi-cli 0.1.16 → 0.1.18
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 +6 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import { parse } from "yaml";
|
|
|
26
26
|
import { createHash as createHash$1 } from "crypto";
|
|
27
27
|
import { determineAgent } from "@vercel/detect-agent";
|
|
28
28
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
29
|
-
const GIT_HOST = process.env.BFI_GIT_HOST || "
|
|
29
|
+
const GIT_HOST = process.env.BFI_GIT_HOST || "git.yyrd.com";
|
|
30
30
|
const GIT_URL = `https://${GIT_HOST}`;
|
|
31
31
|
function getOwnerRepo(parsed) {
|
|
32
32
|
if (parsed.type === "local") return null;
|
|
@@ -233,6 +233,11 @@ function parseSource(input) {
|
|
|
233
233
|
type: "well-known",
|
|
234
234
|
url: input
|
|
235
235
|
};
|
|
236
|
+
if (!input.includes(":") && !input.includes("/") && !input.startsWith("@") && !input.includes("--")) return {
|
|
237
|
+
type: "skillhub",
|
|
238
|
+
url: `skillhub:${input}`,
|
|
239
|
+
subpath: void 0
|
|
240
|
+
};
|
|
236
241
|
return {
|
|
237
242
|
type: "git",
|
|
238
243
|
url: input,
|