stpr 1.0.8 → 1.0.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/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -118,7 +118,7 @@ var StepperClient = class {
|
|
|
118
118
|
throw new Error(`tools/list failed: ${res.error.message}`);
|
|
119
119
|
}
|
|
120
120
|
const tools = res.result.tools;
|
|
121
|
-
allTools = tools.map(
|
|
121
|
+
allTools = tools.filter((tool) => !tool.name.startsWith("__")).map(
|
|
122
122
|
(tool) => ({
|
|
123
123
|
service: tool.name.split("__")[0],
|
|
124
124
|
action: tool.name.split("__")[1],
|
|
@@ -128,7 +128,7 @@ var StepperClient = class {
|
|
|
128
128
|
);
|
|
129
129
|
writeCache(cacheKey, allTools);
|
|
130
130
|
return allTools.filter(
|
|
131
|
-
(tool) => service ? tool.service === service :
|
|
131
|
+
(tool) => service ? tool.service === service : true
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
async callTool(name, args) {
|