ai-client-sdk 4.1.1 → 4.1.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": "ai-client-sdk",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "用于开发 AI 应用,适配任意前端框架,兼容多种大模型,提供对话界面、Function Calling、Agent、工作流等",
5
5
  "author": {
6
6
  "name": "Hughe5",
@@ -20,13 +20,13 @@
20
20
  "url": "https://github.com/shichzh/ai-client-sdk.git"
21
21
  },
22
22
  "types": "dist/index.d.ts",
23
- "main": "./dist/ai-client-sdk.umd.js",
24
- "module": "./dist/ai-client-sdk.mjs",
23
+ "main": "./dist/umd/ai-client-sdk.umd.js",
24
+ "module": "./dist/es/ai-client-sdk.mjs",
25
25
  "exports": {
26
26
  ".": {
27
27
  "types": "./dist/index.d.ts",
28
- "import": "./dist/ai-client-sdk.mjs",
29
- "require": "./dist/ai-client-sdk.umd.js"
28
+ "import": "./dist/es/ai-client-sdk.mjs",
29
+ "require": "./dist/umd/ai-client-sdk.umd.js"
30
30
  }
31
31
  },
32
32
  "files": [
@@ -77,6 +77,7 @@
77
77
  "@vitest/coverage-v8": "^4.1.6",
78
78
  "eslint": "^10.3.0",
79
79
  "globals": "^17.6.0",
80
+ "husky": "^9.1.7",
80
81
  "jiti": "^2.7.0",
81
82
  "prettier": "^3.8.3",
82
83
  "typescript": "^6.0.3",
@@ -86,7 +87,7 @@
86
87
  },
87
88
  "scripts": {
88
89
  "dev": "vite",
89
- "build": "vite build && tsc -p tsconfig.build.json",
90
+ "build": "vite build --config vite.config.es.ts && vite build --config vite.config.umd.ts && tsc -p tsconfig.build.json",
90
91
  "lint": "eslint . --ext .js,.mjs,.cjs,.ts,.tsx --fix",
91
92
  "lint:check": "eslint . --ext .js,.mjs,.cjs,.ts,.tsx",
92
93
  "format": "prettier . --write",
@@ -94,6 +95,6 @@
94
95
  "test": "vitest",
95
96
  "test:run": "vitest run",
96
97
  "test:coverage": "vitest run --coverage",
97
- "check-license": "addlicense -check -c \"Copyright\" -l apache \"examples\" \"src\""
98
+ "license:check": "addlicense -check -c \"Copyright\" -l apache \"examples\" \"src\""
98
99
  }
99
100
  }