@robota-sdk/agent-cli 3.0.0-beta.8 → 3.0.0-beta.9
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/node/bin.cjs
CHANGED
|
@@ -171,7 +171,8 @@ function scanSkillsDir(skillsDir) {
|
|
|
171
171
|
commands.push({
|
|
172
172
|
name: frontmatter?.name ?? entry.name,
|
|
173
173
|
description: frontmatter?.description ?? `Skill: ${entry.name}`,
|
|
174
|
-
source: "skill"
|
|
174
|
+
source: "skill",
|
|
175
|
+
skillContent: content
|
|
175
176
|
});
|
|
176
177
|
}
|
|
177
178
|
return commands;
|
|
@@ -940,7 +941,15 @@ function buildSkillPrompt(input, registry) {
|
|
|
940
941
|
const skillCmd = registry.getCommands().find((c) => c.name === cmd && c.source === "skill");
|
|
941
942
|
if (!skillCmd) return null;
|
|
942
943
|
const args = parts.slice(1).join(" ").trim();
|
|
943
|
-
|
|
944
|
+
const userInstruction = args || skillCmd.description;
|
|
945
|
+
if (skillCmd.skillContent) {
|
|
946
|
+
return `<skill name="${cmd}">
|
|
947
|
+
${skillCmd.skillContent}
|
|
948
|
+
</skill>
|
|
949
|
+
|
|
950
|
+
Execute the "${cmd}" skill: ${userInstruction}`;
|
|
951
|
+
}
|
|
952
|
+
return `Use the "${cmd}" skill: ${userInstruction}`;
|
|
944
953
|
}
|
|
945
954
|
function useSubmitHandler(session, addMessage, handleSlashCommand, clearStreamingText, setIsThinking, setContextPercentage, registry) {
|
|
946
955
|
return (0, import_react5.useCallback)(
|
package/dist/node/bin.js
CHANGED
|
@@ -154,7 +154,8 @@ function scanSkillsDir(skillsDir) {
|
|
|
154
154
|
commands.push({
|
|
155
155
|
name: frontmatter?.name ?? entry.name,
|
|
156
156
|
description: frontmatter?.description ?? `Skill: ${entry.name}`,
|
|
157
|
-
source: "skill"
|
|
157
|
+
source: "skill",
|
|
158
|
+
skillContent: content
|
|
158
159
|
});
|
|
159
160
|
}
|
|
160
161
|
return commands;
|
|
@@ -923,7 +924,15 @@ function buildSkillPrompt(input, registry) {
|
|
|
923
924
|
const skillCmd = registry.getCommands().find((c) => c.name === cmd && c.source === "skill");
|
|
924
925
|
if (!skillCmd) return null;
|
|
925
926
|
const args = parts.slice(1).join(" ").trim();
|
|
926
|
-
|
|
927
|
+
const userInstruction = args || skillCmd.description;
|
|
928
|
+
if (skillCmd.skillContent) {
|
|
929
|
+
return `<skill name="${cmd}">
|
|
930
|
+
${skillCmd.skillContent}
|
|
931
|
+
</skill>
|
|
932
|
+
|
|
933
|
+
Execute the "${cmd}" skill: ${userInstruction}`;
|
|
934
|
+
}
|
|
935
|
+
return `Use the "${cmd}" skill: ${userInstruction}`;
|
|
927
936
|
}
|
|
928
937
|
function useSubmitHandler(session, addMessage, handleSlashCommand, clearStreamingText, setIsThinking, setContextPercentage, registry) {
|
|
929
938
|
return useCallback2(
|
package/dist/node/index.cjs
CHANGED
|
@@ -187,7 +187,8 @@ function scanSkillsDir(skillsDir) {
|
|
|
187
187
|
commands.push({
|
|
188
188
|
name: frontmatter?.name ?? entry.name,
|
|
189
189
|
description: frontmatter?.description ?? `Skill: ${entry.name}`,
|
|
190
|
-
source: "skill"
|
|
190
|
+
source: "skill",
|
|
191
|
+
skillContent: content
|
|
191
192
|
});
|
|
192
193
|
}
|
|
193
194
|
return commands;
|
|
@@ -956,7 +957,15 @@ function buildSkillPrompt(input, registry) {
|
|
|
956
957
|
const skillCmd = registry.getCommands().find((c) => c.name === cmd && c.source === "skill");
|
|
957
958
|
if (!skillCmd) return null;
|
|
958
959
|
const args = parts.slice(1).join(" ").trim();
|
|
959
|
-
|
|
960
|
+
const userInstruction = args || skillCmd.description;
|
|
961
|
+
if (skillCmd.skillContent) {
|
|
962
|
+
return `<skill name="${cmd}">
|
|
963
|
+
${skillCmd.skillContent}
|
|
964
|
+
</skill>
|
|
965
|
+
|
|
966
|
+
Execute the "${cmd}" skill: ${userInstruction}`;
|
|
967
|
+
}
|
|
968
|
+
return `Use the "${cmd}" skill: ${userInstruction}`;
|
|
960
969
|
}
|
|
961
970
|
function useSubmitHandler(session, addMessage, handleSlashCommand, clearStreamingText, setIsThinking, setContextPercentage, registry) {
|
|
962
971
|
return (0, import_react5.useCallback)(
|
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.9",
|
|
4
4
|
"description": "AI coding assistant CLI built on Robota SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"marked-terminal": "^7.3.0",
|
|
36
36
|
"react": "19.2.4",
|
|
37
37
|
"string-width": "^8.2.0",
|
|
38
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
39
|
-
"@robota-sdk/agent-sdk": "3.0.0-beta.
|
|
38
|
+
"@robota-sdk/agent-core": "3.0.0-beta.9",
|
|
39
|
+
"@robota-sdk/agent-sdk": "3.0.0-beta.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/marked": "^6.0.0",
|