sdd-toolkit 2.0.0 → 2.0.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/package.json +1 -1
- package/src/lib/transformers.js +5 -1
package/package.json
CHANGED
package/src/lib/transformers.js
CHANGED
|
@@ -78,6 +78,7 @@ function toRooConfig(agent, slug, options = {}) {
|
|
|
78
78
|
|
|
79
79
|
const allRules = [languageRule, ...(agent.rules || [])];
|
|
80
80
|
|
|
81
|
+
if (allRules.length > 0) {
|
|
81
82
|
parts.push(`## Rules & Guidelines`);
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -90,6 +91,7 @@ function toRooConfig(agent, slug, options = {}) {
|
|
|
90
91
|
|
|
91
92
|
/**
|
|
92
93
|
* Converte para Markdown do Kilo Code
|
|
94
|
+
*/
|
|
93
95
|
function toKiloMarkdown(agent, options = {}) {
|
|
94
96
|
const languageRule = getLanguageRule(options.locale);
|
|
95
97
|
const parts = [
|
|
@@ -307,6 +309,7 @@ function toTraeRules(agent, options = {}) {
|
|
|
307
309
|
${agent.systemPrompt.trim()}
|
|
308
310
|
|
|
309
311
|
${allRules.length > 0 ? '## Constraints\n' + allRules.map(r => `- ${r}`).join('\n') : ''}
|
|
312
|
+
`;
|
|
310
313
|
}
|
|
311
314
|
|
|
312
315
|
module.exports = {
|
|
@@ -318,5 +321,6 @@ module.exports = {
|
|
|
318
321
|
toWindsurfRules,
|
|
319
322
|
toClaudeCommand,
|
|
320
323
|
toPlainSystemPrompt,
|
|
321
|
-
toOpenCodeAgent
|
|
324
|
+
toOpenCodeAgent,
|
|
325
|
+
toTraeRules
|
|
322
326
|
};
|