@xsai/tool 0.0.7 → 0.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.
@@ -0,0 +1,8 @@
1
+ import { Schema } from '@typeschema/main';
2
+ import { ToolResult } from './index.js';
3
+
4
+ declare module '@xsai/generate-text' {
5
+ interface GenerateTextOptions {
6
+ tools?: ToolResult<Schema>[];
7
+ }
8
+ }
package/dist/index.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  import { Schema, InferIn } from '@typeschema/main';
2
2
 
3
- declare module '@xsai/generate-text' {
4
- interface GenerateTextOptions {
5
- tools?: ToolResult<Schema>[];
6
- }
7
- }
8
3
  interface ToolOptions<T extends Schema> {
9
4
  description?: string;
10
5
  execute: (input: InferIn<T>) => Promise<string> | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsai/tool",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "author": "藍+85CD",
6
6
  "license": "MIT",
@@ -17,6 +17,9 @@
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
19
  "default": "./dist/index.js"
20
+ },
21
+ "./generate-text": {
22
+ "types": "./dist/generate-text.d.ts"
20
23
  }
21
24
  },
22
25
  "files": [
@@ -24,15 +27,20 @@
24
27
  ],
25
28
  "dependencies": {
26
29
  "@typeschema/main": "^0.14.1",
27
- "@xsai/shared": "^0.0.7"
30
+ "@xsai/shared": "^0.0.9"
28
31
  },
29
32
  "devDependencies": {
30
33
  "@gcornut/valibot-json-schema": "^0.42.0",
31
34
  "valibot": "1.0.0-beta.8",
32
- "@xsai/generate-text": "^0.0.7"
35
+ "@xsai/generate-text": "^0.0.9"
33
36
  },
34
37
  "peerDependencies": {
35
- "@xsai/generate-text": "^0.0.7"
38
+ "@xsai/generate-text": "^0.0.9"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "@xsai/generate-text": {
42
+ "optional": true
43
+ }
36
44
  },
37
45
  "scripts": {
38
46
  "build": "pkgroll",