@fro.bot/systematic 2.0.1 → 2.0.2
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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import path2 from "path";
|
|
|
72
72
|
var SKILL_PREFIX = "systematic:";
|
|
73
73
|
var SKILL_DESCRIPTION_PREFIX = "(Systematic - Skill) ";
|
|
74
74
|
function formatSkillCommandName(name) {
|
|
75
|
-
if (name.
|
|
75
|
+
if (name.includes(":")) {
|
|
76
76
|
return name;
|
|
77
77
|
}
|
|
78
78
|
return `${SKILL_PREFIX}${name}`;
|
|
@@ -306,7 +306,7 @@ function formatSkillsXml(skills) {
|
|
|
306
306
|
return "";
|
|
307
307
|
const skillLines = skills.flatMap((skill) => [
|
|
308
308
|
" <skill>",
|
|
309
|
-
` <name
|
|
309
|
+
` <name>${formatSkillCommandName(skill.name)}</name>`,
|
|
310
310
|
` <description>${skill.description}</description>`,
|
|
311
311
|
` <location>${pathToFileURL(skill.path).href}</location>`,
|
|
312
312
|
" </skill>"
|
|
@@ -384,7 +384,7 @@ function createSkillTool(options) {
|
|
|
384
384
|
};
|
|
385
385
|
const buildParameterHint = () => {
|
|
386
386
|
const skills = getDiscoverableSkills();
|
|
387
|
-
const examples = skills.slice(0, 3).map((s) => `'
|
|
387
|
+
const examples = skills.slice(0, 3).map((s) => `'${s.prefixedName}'`).join(", ");
|
|
388
388
|
const hint = examples.length > 0 ? ` (e.g., ${examples}, ...)` : "";
|
|
389
389
|
return `The name of the skill from available_skills${hint}`;
|
|
390
390
|
};
|