skilld 0.13.0 → 0.13.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/_chunks/npm.mjs +3 -5
- package/dist/_chunks/npm.mjs.map +1 -1
- package/dist/_chunks/prompts.mjs +11 -11
- package/dist/_chunks/prompts.mjs.map +1 -1
- package/dist/_chunks/utils.d.mts +8 -1
- package/dist/_chunks/utils.d.mts.map +1 -1
- package/dist/cli.mjs +9 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/sources/index.d.mts +2 -2
- package/dist/sources/index.mjs +2 -2
- package/dist/types.d.mts +1 -1
- package/package.json +1 -1
package/dist/_chunks/npm.mjs
CHANGED
|
@@ -1331,7 +1331,7 @@ async function downloadLlmsDocs(llmsContent, baseUrl, onProgress) {
|
|
|
1331
1331
|
onProgress?.(link.url, completed++, llmsContent.links.length);
|
|
1332
1332
|
const content = await fetchText(url);
|
|
1333
1333
|
if (content && content.length > 100) return {
|
|
1334
|
-
url: link.url,
|
|
1334
|
+
url: link.url.startsWith("http") ? new URL(link.url).pathname : link.url,
|
|
1335
1335
|
title: link.title,
|
|
1336
1336
|
content
|
|
1337
1337
|
};
|
|
@@ -1421,10 +1421,8 @@ function filterFrameworkDocs(files, packageName) {
|
|
|
1421
1421
|
const shortName = packageName.replace(/^@.*\//, "");
|
|
1422
1422
|
const targetFramework = [...FRAMEWORK_NAMES].find((fw) => shortName.includes(fw));
|
|
1423
1423
|
if (!targetFramework) return files;
|
|
1424
|
-
const frameworkPattern = new RegExp(`(?:^|/)(?:framework/)?(?:${[...FRAMEWORK_NAMES].join("|")})/`);
|
|
1425
|
-
if (!files.some((f) => frameworkPattern.test(f))) return files;
|
|
1426
1424
|
const otherFrameworks = [...FRAMEWORK_NAMES].filter((fw) => fw !== targetFramework);
|
|
1427
|
-
const excludePattern = new RegExp(
|
|
1425
|
+
const excludePattern = new RegExp(`\\b(?:${otherFrameworks.join("|")})\\b`);
|
|
1428
1426
|
return files.filter((f) => !excludePattern.test(f));
|
|
1429
1427
|
}
|
|
1430
1428
|
const NOISE_PATTERNS = [
|
|
@@ -2170,6 +2168,6 @@ function getInstalledSkillVersion(skillDir) {
|
|
|
2170
2168
|
if (!existsSync(skillPath)) return null;
|
|
2171
2169
|
return readFileSync(skillPath, "utf-8").match(/^version:\s*"?([^"\n]+)"?/m)?.[1] || null;
|
|
2172
2170
|
}
|
|
2173
|
-
export {
|
|
2171
|
+
export { fetchGitHubIssues as $, parseGitSkillInput as A, compareSemver as B, downloadLlmsDocs as C, normalizeLlmsLinks as D, fetchLlmsUrl as E, formatDiscussionAsMarkdown as F, $fetch as G, generateReleaseIndex as H, generateDiscussionIndex as I, isGitHubRepoUrl as J, extractBranchHint as K, fetchCrawledDocs as L, resolveEntryFiles as M, generateDocsIndex as N, parseMarkdownLinks as O, fetchGitHubDiscussions as P, verifyUrl as Q, toCrawlPattern as R, validateGitDocsWithLlms as S, fetchLlmsTxt as T, isPrerelease as U, fetchReleaseNotes as V, parseSemver as W, parseGitHubUrl as X, normalizeRepoUrl as Y, parsePackageSpec as Z, fetchReadme as _, getInstalledSkillVersion as a, mapInsert as at, isShallowGitDocs as b, readLocalPackageInfo as c, resolvePackageDocs as d, formatIssueAsMarkdown as et, resolvePackageDocsWithAttempts as f, fetchGitHubRepoMeta as g, fetchGitDocs as h, fetchPkgDist as i, getSharedSkillsDir as it, parseSkillFrontmatterName as j, fetchGitSkills as k, resolveInstalledVersion as l, MIN_GIT_DOCS as m, fetchNpmPackage as n, isGhAvailable as nt, parseVersionSpecifier as o, semverGt as ot, searchNpmPackages as p, fetchText as q, fetchNpmRegistryMeta as r, SHARED_SKILLS_DIR as rt, readLocalDependencies as s, fetchLatestVersion as t, generateIssueIndex as tt, resolveLocalPackageDocs as u, fetchReadmeContent as v, extractSections as w, resolveGitHubRepo as x, filterFrameworkDocs as y, fetchBlogReleases as z };
|
|
2174
2172
|
|
|
2175
2173
|
//# sourceMappingURL=npm.mjs.map
|