@fastgpt-plugin/cli 0.1.0-alpha.2 → 0.1.0-alpha.3

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": "@fastgpt-plugin/cli",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -30,10 +30,10 @@
30
30
  "@inquirer/prompts": "^8.2.0",
31
31
  "commander": "^14.0.3",
32
32
  "consola": "^3.4.2",
33
+ "es-toolkit": "^1.44.0",
33
34
  "tsdown": "^0.20.1"
34
35
  },
35
36
  "devDependencies": {
36
- "@types/bun": "latest",
37
37
  "typescript": "^5",
38
38
  "vite-tsconfig-paths": "^6.0.5",
39
39
  "vitest": "^4.0.18"
@@ -1,6 +1,7 @@
1
1
  import { exportTool } from '@fastgpt-plugin/helpers/tools/helper';
2
- import config from './config.js';
3
- import { InputType, OutputType, tool as toolCb } from './src/tool.js';
2
+ import config from './config';
3
+ import { tool as toolCb } from './src/tool';
4
+ import { InputType, OutputType } from './src/schemas';
4
5
 
5
6
  export default exportTool({
6
7
  toolCb,
@@ -5,4 +5,3 @@ export const InputType = z.object({});
5
5
  export const OutputType = z.object({
6
6
  message: z.string()
7
7
  });
8
-
@@ -1,6 +1,7 @@
1
1
  import { exportTool } from '@fastgpt-plugin/helpers/tools/helper';
2
- import config from './config.js';
3
- import { InputType, OutputType, tool as toolCb } from './src/tool.js';
2
+ import config from './config';
3
+ import { tool as toolCb } from './src/tool';
4
+ import { InputType, OutputType } from './src/schemas';
4
5
 
5
6
  export default exportTool({
6
7
  toolCb,
@@ -5,4 +5,3 @@ export const InputType = z.object({});
5
5
  export const OutputType = z.object({
6
6
  message: z.string()
7
7
  });
8
-
@@ -1,2 +1,2 @@
1
- export { default as config } from './config.js';
2
- export { tool as toolFromChild } from './children/tool/src/index.js';
1
+ export { default as config } from './config';
2
+ export { default as toolFromChild } from './children/tool/index';