Skip to content

Commit e6aedad

Browse files
authored
Fix extrernal (#270)
* Install packages * fix: tag union field * reset sdk * doc * udpate lock * sdk
1 parent 2aaa248 commit e6aedad

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

bun.lock

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
},
9494
"sdk": {
9595
"name": "@fastgpt-sdk/plugin",
96-
"version": "0.2.6",
96+
"version": "0.2.13",
9797
"dependencies": {
9898
"@fortaine/fetch-event-source": "^3.0.6",
9999
"@ts-rest/core": "3.52.1",
@@ -102,9 +102,6 @@
102102
"devDependencies": {
103103
"bun-plugin-dts": "^0.3.0",
104104
},
105-
"peerDependencies": {
106-
"zod": "^3.25.76",
107-
},
108105
},
109106
},
110107
"packages": {
@@ -250,7 +247,7 @@
250247

251248
"@fastgpt/plugin-runtime": ["@fastgpt/plugin-runtime@workspace:runtime"],
252249

253-
"@fortaine/fetch-event-source": ["@fortaine/[email protected]", "", {}, "sha512-621GAuLMvKtyZQ3IA6nlDWhV1V/7PGOTNIGLUifxt0KzM+dZIweJ6F3XvQF3QnqeNfS1N7WQ0Kil1Di/lhChEw=="],
250+
"@fortaine/fetch-event-source": ["@fortaine/[email protected]", "https://registry.npmmirror.com/@fortaine/fetch-event-source/-/fetch-event-source-3.0.6.tgz", {}, "sha512-621GAuLMvKtyZQ3IA6nlDWhV1V/7PGOTNIGLUifxt0KzM+dZIweJ6F3XvQF3QnqeNfS1N7WQ0Kil1Di/lhChEw=="],
254251

255252
"@humanfs/core": ["@humanfs/[email protected]", "", {}, "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA=="],
256253

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastgpt-plugins",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"module": "index.ts",
55
"type": "module",
66
"scripts": {

sdk/client.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ export { ToolTagEnum, ToolTagsNameMap } from '@tool/type/tags';
1111
export { ModelProviders } from '@model/constants';
1212

1313
export type { ToolType, ToolSetType } from '@tool/type';
14-
export {
15-
ToolDetailSchema,
16-
ToolSimpleSchema,
17-
type ToolDetailType,
18-
type ToolSimpleType
19-
} from '@tool/type/api';
14+
15+
// Re-export schemas - separate statements to ensure proper type generation
16+
export { ToolDetailSchema } from '@tool/type/api';
17+
export { ToolSimpleSchema } from '@tool/type/api';
18+
export type { ToolDetailType, ToolSimpleType } from '@tool/type/api';

sdk/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fastgpt-sdk/plugin",
3-
"version": "0.2.7",
3+
"version": "0.2.13",
44
"description": "fastgpt-plugin sdk",
55
"main": "dist/client.js",
66
"types": "dist/client.d.ts",
@@ -12,17 +12,14 @@
1212
"fastgpt-tools",
1313
"sdk"
1414
],
15-
"author": "fastgpt",
16-
"license": "MIT",
1715
"dependencies": {
1816
"@fortaine/fetch-event-source": "^3.0.6",
1917
"@ts-rest/core": "3.52.1",
2018
"zod": "^3.25.76"
2119
},
20+
"author": "fastgpt",
21+
"license": "MIT",
2222
"devDependencies": {
2323
"bun-plugin-dts": "^0.3.0"
24-
},
25-
"peerDependencies": {
26-
"zod": "^3.25.76"
2724
}
2825
}

0 commit comments

Comments
 (0)