@saber2pr/ai-agent 0.0.13 → 0.0.14

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.
@@ -24,8 +24,8 @@ function createTool(options) {
24
24
  if (((_a = options.validateParams) === null || _a === void 0 ? void 0 : _a.length) > 0) {
25
25
  for (const arg in args) {
26
26
  if (options.validateParams.includes(arg)) {
27
- if (typeof args[arg] !== "string" || args[arg].trim() === "") {
28
- return `Error: 参数 '${arg}' 无效。收到的是: ${JSON.stringify(args[arg])}`;
27
+ if (typeof args[arg] === 'undefined') {
28
+ return `Error: 参数 '${arg}' 缺失`;
29
29
  }
30
30
  }
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saber2pr/ai-agent",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "AI Assistant CLI.",
5
5
  "author": "saber2pr",
6
6
  "license": "ISC",