@blaxel/vercel 0.2.35-preview.78 → 0.2.35-preview.79

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/tools.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ToolOptions } from "@blaxel/core/tools/mcpTool";
1
2
  import type { Tool } from "ai";
2
- export declare const blTool: (name: string, ms?: number) => Promise<Record<string, Tool>>;
3
- export declare const blTools: (names: string[], ms?: number) => Promise<Record<string, Tool>>;
3
+ export declare const blTool: (name: string, options?: ToolOptions | number) => Promise<Record<string, Tool>>;
4
+ export declare const blTools: (names: string[], options?: ToolOptions | number) => Promise<Record<string, Tool>>;
package/dist/tools.js CHANGED
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.blTools = exports.blTool = void 0;
4
4
  const core_1 = require("@blaxel/core");
5
5
  const ai_1 = require("ai");
6
- const blTool = async (name, ms) => {
6
+ const blTool = async (name, options) => {
7
7
  try {
8
8
  const toolFormated = {};
9
- const blaxelTool = await (0, core_1.getTool)(name, ms);
9
+ const blaxelTool = await (0, core_1.getTool)(name, options);
10
10
  for (const t of blaxelTool) {
11
11
  // @ts-ignore - Type instantiation depth issue with ai package in some environments
12
12
  const toolInstance = (0, ai_1.tool)({
@@ -24,8 +24,8 @@ const blTool = async (name, ms) => {
24
24
  }
25
25
  };
26
26
  exports.blTool = blTool;
27
- const blTools = async (names, ms) => {
28
- const toolArrays = await Promise.all(names.map((n) => (0, exports.blTool)(n, ms)));
27
+ const blTools = async (names, options) => {
28
+ const toolArrays = await Promise.all(names.map((n) => (0, exports.blTool)(n, options)));
29
29
  const toolFormated = {};
30
30
  for (const toolServer of toolArrays) {
31
31
  for (const toolName in toolServer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/vercel",
3
- "version": "0.2.35-preview.78",
3
+ "version": "0.2.35-preview.79",
4
4
  "description": "Blaxel SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",
@@ -60,7 +60,7 @@
60
60
  "@ai-sdk/groq": "^1.2.8",
61
61
  "@ai-sdk/openai": "^1.3.21",
62
62
  "ai": "^4.3.13",
63
- "@blaxel/core": "0.2.35-preview.78"
63
+ "@blaxel/core": "0.2.35-preview.79"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@eslint/js": "^9.26.0",