@xsai/tool 0.0.28 → 0.0.30

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +17 -17
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ const tool = async (options) => ({
8
8
  name: options.name,
9
9
  parameters: await toJSONSchema(options.parameters).then((json) => clean({
10
10
  ...json,
11
- $schema: void 0
11
+ $schema: undefined
12
12
  })),
13
13
  strict: options.strict
14
14
  },
package/package.json CHANGED
@@ -1,25 +1,23 @@
1
1
  {
2
2
  "name": "@xsai/tool",
3
- "version": "0.0.28",
4
3
  "type": "module",
4
+ "version": "0.0.30",
5
+ "description": "extra-small AI SDK for Browser, Node.js, Deno, Bun or Edge Runtime.",
5
6
  "author": "Moeru AI",
6
7
  "license": "MIT",
7
8
  "homepage": "https://xsai.js.org",
8
- "description": "extra-small AI SDK for Browser, Node.js, Deno, Bun or Edge Runtime.",
9
- "keywords": [
10
- "xsai",
11
- "openai",
12
- "ai"
13
- ],
14
9
  "repository": {
15
10
  "type": "git",
16
11
  "url": "git+https://github.com/moeru-ai/xsai.git",
17
12
  "directory": "packages/tool"
18
13
  },
19
14
  "bugs": "https://github.com/moeru-ai/xsai/issues",
15
+ "keywords": [
16
+ "xsai",
17
+ "openai",
18
+ "ai"
19
+ ],
20
20
  "sideEffects": false,
21
- "main": "./dist/index.js",
22
- "types": "./dist/index.d.ts",
23
21
  "exports": {
24
22
  ".": {
25
23
  "types": "./dist/index.d.ts",
@@ -29,9 +27,19 @@
29
27
  "types": "./dist/generate-text.d.ts"
30
28
  }
31
29
  },
30
+ "main": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
32
  "files": [
33
33
  "dist"
34
34
  ],
35
+ "peerDependencies": {
36
+ "@xsai/generate-text": "0.0.30"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "@xsai/generate-text": {
40
+ "optional": true
41
+ }
42
+ },
35
43
  "dependencies": {
36
44
  "@typeschema/main": "^0.14.1",
37
45
  "@xsai/shared": ""
@@ -42,14 +50,6 @@
42
50
  "@xsai/providers": "",
43
51
  "valibot": "^0.42.1"
44
52
  },
45
- "peerDependencies": {
46
- "@xsai/generate-text": "0.0.28"
47
- },
48
- "peerDependenciesMeta": {
49
- "@xsai/generate-text": {
50
- "optional": true
51
- }
52
- },
53
53
  "scripts": {
54
54
  "build": "pkgroll",
55
55
  "build:watch": "pkgroll --watch",