sc-research 1.0.9 → 1.0.11
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.js +15 -2
- package/package.json +1 -1
- package/templates/platforms/agent.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -129,6 +129,14 @@ function renderClaudeWithRoot(template, rootDir) {
|
|
|
129
129
|
function normalizeBody2(body) {
|
|
130
130
|
return body.endsWith(`
|
|
131
131
|
`) ? body : `${body}
|
|
132
|
+
`;
|
|
133
|
+
}
|
|
134
|
+
function renderFrontmatter2(lines) {
|
|
135
|
+
return `---
|
|
136
|
+
${lines.join(`
|
|
137
|
+
`)}
|
|
138
|
+
---
|
|
139
|
+
|
|
132
140
|
`;
|
|
133
141
|
}
|
|
134
142
|
function renderMarkdownOnly(template, options) {
|
|
@@ -138,12 +146,17 @@ function renderMarkdownOnly(template, options) {
|
|
|
138
146
|
if (template.kind === "skill") {
|
|
139
147
|
return {
|
|
140
148
|
path: `${normalizedRoot}/${normalizedSkillDir}/${template.id}/${options.skillFileName}`,
|
|
141
|
-
content:
|
|
149
|
+
content: `${renderFrontmatter2([
|
|
150
|
+
`name: ${template.id}`,
|
|
151
|
+
`description: ${template.description}`
|
|
152
|
+
])}${normalizeBody2(template.body)}`
|
|
142
153
|
};
|
|
143
154
|
}
|
|
144
155
|
return {
|
|
145
156
|
path: `${normalizedRoot}/${normalizedCommandDir}/${template.id}.md`,
|
|
146
|
-
content:
|
|
157
|
+
content: `${renderFrontmatter2([
|
|
158
|
+
`description: ${template.description}`
|
|
159
|
+
])}${normalizeBody2(template.body)}`
|
|
147
160
|
};
|
|
148
161
|
}
|
|
149
162
|
// src/cli/platforms/config/load-platform-config.ts
|
package/package.json
CHANGED