skilld 0.12.0 → 0.12.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/detect-imports.mjs +6 -1
- package/dist/_chunks/detect-imports.mjs.map +1 -1
- package/dist/_chunks/npm.mjs +32 -2
- package/dist/_chunks/npm.mjs.map +1 -1
- package/dist/_chunks/package-registry.mjs +7 -0
- package/dist/_chunks/package-registry.mjs.map +1 -1
- package/dist/_chunks/utils.d.mts.map +1 -1
- package/package.json +1 -1
|
@@ -963,7 +963,11 @@ function unlinkSkillFromAgents(skillName, cwd) {
|
|
|
963
963
|
function generateSkillMd(opts) {
|
|
964
964
|
const header = generatePackageHeader(opts);
|
|
965
965
|
const search = !opts.eject && opts.features?.search !== false ? generateSearchBlock(opts.name, opts.hasIssues, opts.hasReleases) : "";
|
|
966
|
-
|
|
966
|
+
let body = opts.body;
|
|
967
|
+
if (body && opts.eject) {
|
|
968
|
+
body = body.replace(/\.\/\.skilld\//g, "./references/");
|
|
969
|
+
body = body.replace(/\s*\[source\]\(\.\/references\/pkg\/[^)]*\)/gi, "");
|
|
970
|
+
}
|
|
967
971
|
const content = body ? search ? `${header}\n\n${search}\n\n${body}` : `${header}\n\n${body}` : search ? `${header}\n\n${search}` : header;
|
|
968
972
|
const footer = generateFooter(opts.relatedSkills);
|
|
969
973
|
return sanitizeMarkdown(repairMarkdown(`${generateFrontmatter(opts)}${content}\n${footer}`));
|
|
@@ -1083,6 +1087,7 @@ function generateFrontmatter({ name, version, description: pkgDescription, globs
|
|
|
1083
1087
|
const metaEntries = [];
|
|
1084
1088
|
if (version) metaEntries.push(` version: ${yamlEscape(version)}`);
|
|
1085
1089
|
if (body && generatedBy) metaEntries.push(` generated_by: ${yamlEscape(generatedBy)}`);
|
|
1090
|
+
metaEntries.push(` generated_at: ${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`);
|
|
1086
1091
|
if (metaEntries.length) {
|
|
1087
1092
|
lines.push("metadata:");
|
|
1088
1093
|
lines.push(...metaEntries);
|