skilld 0.9.4 → 0.9.6
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/detect-imports.mjs +116 -73
- package/dist/_chunks/detect-imports.mjs.map +1 -1
- package/dist/_chunks/npm.mjs +19 -2
- package/dist/_chunks/npm.mjs.map +1 -1
- package/dist/_chunks/utils.d.mts +2 -0
- package/dist/_chunks/utils.d.mts.map +1 -1
- package/dist/_chunks/yaml.mjs +10 -22
- package/dist/_chunks/yaml.mjs.map +1 -1
- package/dist/agent/index.d.mts +1 -1
- package/dist/agent/index.d.mts.map +1 -1
- package/dist/cli.mjs +9 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/sources/index.mjs +1 -1
- package/package.json +1 -1
package/dist/_chunks/npm.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { i as getCacheDir } from "./config.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { a as getDocOverride, i as getBlogPreset, n as yamlParseKV } from "./yaml.mjs";
|
|
3
3
|
import { basename, dirname, join, resolve } from "pathe";
|
|
4
4
|
import { createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, unlinkSync } from "node:fs";
|
|
5
5
|
import { htmlToMarkdown } from "mdream";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
|
+
import { gt } from "semver";
|
|
7
8
|
import { ofetch } from "ofetch";
|
|
8
9
|
import { globby } from "globby";
|
|
9
10
|
import pLimit from "p-limit";
|
|
@@ -24,6 +25,22 @@ function buildFrontmatter(fields) {
|
|
|
24
25
|
lines.push("---");
|
|
25
26
|
return lines.join("\n");
|
|
26
27
|
}
|
|
28
|
+
function mapInsert(map, key, create) {
|
|
29
|
+
let val = map.get(key);
|
|
30
|
+
if (val === void 0) {
|
|
31
|
+
val = create();
|
|
32
|
+
map.set(key, val);
|
|
33
|
+
}
|
|
34
|
+
return val;
|
|
35
|
+
}
|
|
36
|
+
function semverGt(a, b) {
|
|
37
|
+
return gt(a, b, true);
|
|
38
|
+
}
|
|
39
|
+
const SHARED_SKILLS_DIR = ".skills";
|
|
40
|
+
function getSharedSkillsDir(cwd = process.cwd()) {
|
|
41
|
+
const dir = join(cwd, SHARED_SKILLS_DIR);
|
|
42
|
+
return existsSync(dir) ? dir : null;
|
|
43
|
+
}
|
|
27
44
|
let _ghAvailable;
|
|
28
45
|
function isGhAvailable() {
|
|
29
46
|
if (_ghAvailable !== void 0) return _ghAvailable;
|
|
@@ -1948,6 +1965,6 @@ function getInstalledSkillVersion(skillDir) {
|
|
|
1948
1965
|
if (!existsSync(skillPath)) return null;
|
|
1949
1966
|
return readFileSync(skillPath, "utf-8").match(/^version:\s*"?([^"\n]+)"?/m)?.[1] || null;
|
|
1950
1967
|
}
|
|
1951
|
-
export { resolveEntryFiles as A, $fetch as B, fetchReadme as C, fetchGitSkills as D, validateGitDocsWithLlms as E, compareSemver as F, parseGitHubUrl as G, fetchText as H, fetchReleaseNotes as I, formatIssueAsMarkdown as J, verifyUrl as K, generateReleaseIndex as L, formatDiscussionAsMarkdown as M, generateDiscussionIndex as N, parseGitSkillInput as O, fetchBlogReleases as P, isPrerelease as R, fetchGitHubRepoMeta as S, isShallowGitDocs as T, isGitHubRepoUrl as U, extractBranchHint as V, normalizeRepoUrl as W, isGhAvailable as X, generateIssueIndex as Y, fetchLlmsUrl as _, getInstalledSkillVersion as a, MIN_GIT_DOCS as b, readLocalPackageInfo as c, resolvePackageDocs as d, resolvePackageDocsWithAttempts as f, fetchLlmsTxt as g, extractSections as h, fetchPkgDist as i, fetchGitHubDiscussions as j, parseSkillFrontmatterName as k, resolveInstalledVersion as l, downloadLlmsDocs as m, fetchNpmPackage as n, parseVersionSpecifier as o, searchNpmPackages as p, fetchGitHubIssues as q, fetchNpmRegistryMeta as r, readLocalDependencies as s, fetchLatestVersion as t, resolveLocalPackageDocs as u, normalizeLlmsLinks as v, fetchReadmeContent as w, fetchGitDocs as x, parseMarkdownLinks as y, parseSemver as z };
|
|
1968
|
+
export { mapInsert as $, resolveEntryFiles as A, $fetch as B, fetchReadme as C, fetchGitSkills as D, validateGitDocsWithLlms as E, compareSemver as F, parseGitHubUrl as G, fetchText as H, fetchReleaseNotes as I, formatIssueAsMarkdown as J, verifyUrl as K, generateReleaseIndex as L, formatDiscussionAsMarkdown as M, generateDiscussionIndex as N, parseGitSkillInput as O, fetchBlogReleases as P, getSharedSkillsDir as Q, isPrerelease as R, fetchGitHubRepoMeta as S, isShallowGitDocs as T, isGitHubRepoUrl as U, extractBranchHint as V, normalizeRepoUrl as W, isGhAvailable as X, generateIssueIndex as Y, SHARED_SKILLS_DIR as Z, fetchLlmsUrl as _, getInstalledSkillVersion as a, MIN_GIT_DOCS as b, readLocalPackageInfo as c, resolvePackageDocs as d, semverGt as et, resolvePackageDocsWithAttempts as f, fetchLlmsTxt as g, extractSections as h, fetchPkgDist as i, fetchGitHubDiscussions as j, parseSkillFrontmatterName as k, resolveInstalledVersion as l, downloadLlmsDocs as m, fetchNpmPackage as n, parseVersionSpecifier as o, searchNpmPackages as p, fetchGitHubIssues as q, fetchNpmRegistryMeta as r, readLocalDependencies as s, fetchLatestVersion as t, resolveLocalPackageDocs as u, normalizeLlmsLinks as v, fetchReadmeContent as w, fetchGitDocs as x, parseMarkdownLinks as y, parseSemver as z };
|
|
1952
1969
|
|
|
1953
1970
|
//# sourceMappingURL=npm.mjs.map
|