@yeyuan98/opencode-bioresearcher-plugin 1.5.2-alpha.4 → 1.5.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.
|
@@ -33,10 +33,10 @@ function getPluginSkillsDir() {
|
|
|
33
33
|
const isDist = currentDir.includes(`${pathSep}dist${pathSep}`);
|
|
34
34
|
const isSrc = currentDir.includes(`${pathSep}src${pathSep}`);
|
|
35
35
|
if (isDist) {
|
|
36
|
-
return path.join(currentDir, "..", "..", "
|
|
36
|
+
return path.join(currentDir, "..", "..", "skills");
|
|
37
37
|
}
|
|
38
38
|
else if (isSrc) {
|
|
39
|
-
return path.join(currentDir, "..", "..", "..", "
|
|
39
|
+
return path.join(currentDir, "..", "..", "..", "skills");
|
|
40
40
|
}
|
|
41
41
|
let searchDir = currentDir;
|
|
42
42
|
for (let i = 0; i < 6; i++) {
|
package/dist/tools/skill/tool.js
CHANGED
|
@@ -109,7 +109,12 @@ export const SkillTool = tool({
|
|
|
109
109
|
},
|
|
110
110
|
});
|
|
111
111
|
// Set description dynamically based on available skills
|
|
112
|
-
getAllSkills()
|
|
112
|
+
getAllSkills()
|
|
113
|
+
.then((skills) => {
|
|
113
114
|
;
|
|
114
115
|
SkillTool.description = formatDescription(skills);
|
|
116
|
+
})
|
|
117
|
+
.catch((err) => {
|
|
118
|
+
console.error("[bioresearcher-plugin] Failed to load skills for tool description:", err);
|
|
119
|
+
SkillTool.description = formatDescription([]);
|
|
115
120
|
});
|