@quercle/ai-sdk 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quercle/ai-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Quercle web tools for Vercel AI SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tools.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.test.d.ts","sourceRoot":"","sources":["../src/tools.test.ts"],"names":[],"mappings":""}
@@ -1,53 +0,0 @@
1
- import { describe, expect, it } from "bun:test";
2
- import { quercleSearch, quercleFetch, createQuercleTools } from "./tools.js";
3
- describe("quercleSearch", () => {
4
- it("should have a description", () => {
5
- expect(quercleSearch.description).toBeDefined();
6
- expect(typeof quercleSearch.description).toBe("string");
7
- expect(quercleSearch.description.length).toBeGreaterThan(0);
8
- });
9
- it("should have parameters schema", () => {
10
- expect(quercleSearch.parameters).toBeDefined();
11
- });
12
- it("should have execute function", () => {
13
- expect(typeof quercleSearch.execute).toBe("function");
14
- });
15
- });
16
- describe("quercleFetch", () => {
17
- it("should have a description", () => {
18
- expect(quercleFetch.description).toBeDefined();
19
- expect(typeof quercleFetch.description).toBe("string");
20
- expect(quercleFetch.description.length).toBeGreaterThan(0);
21
- });
22
- it("should have parameters schema", () => {
23
- expect(quercleFetch.parameters).toBeDefined();
24
- });
25
- it("should have execute function", () => {
26
- expect(typeof quercleFetch.execute).toBe("function");
27
- });
28
- });
29
- describe("createQuercleTools", () => {
30
- // All tests use a test API key since QuercleClient requires one
31
- const testConfig = { apiKey: "qk_test_key" };
32
- it("should return quercleSearch and quercleFetch tools", () => {
33
- const tools = createQuercleTools(testConfig);
34
- expect(tools.quercleSearch).toBeDefined();
35
- expect(tools.quercleFetch).toBeDefined();
36
- });
37
- it("should return tools with execute functions", () => {
38
- const tools = createQuercleTools(testConfig);
39
- expect(typeof tools.quercleSearch.execute).toBe("function");
40
- expect(typeof tools.quercleFetch.execute).toBe("function");
41
- });
42
- it("should return tools with descriptions", () => {
43
- const tools = createQuercleTools(testConfig);
44
- expect(tools.quercleSearch.description).toBeDefined();
45
- expect(tools.quercleFetch.description).toBeDefined();
46
- });
47
- it("should return tools with parameters", () => {
48
- const tools = createQuercleTools(testConfig);
49
- expect(tools.quercleSearch.parameters).toBeDefined();
50
- expect(tools.quercleFetch.parameters).toBeDefined();
51
- });
52
- });
53
- //# sourceMappingURL=tools.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.test.js","sourceRoot":"","sources":["../src/tools.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAE7E,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxD,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,U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