@somecat/ai-assist-sdk 1.0.0
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/dist/ai-assist-sdk.css +1 -0
- package/dist/chunks/index-CGfAEdrA.mjs +55640 -0
- package/dist/chunks/index-Dlj6re41.mjs +142 -0
- package/dist/core/services/api.d.ts +19 -0
- package/dist/core/services/request.d.ts +11 -0
- package/dist/core/services/version.d.ts +8 -0
- package/dist/core/types/index.d.ts +83 -0
- package/dist/core/utils/index.d.ts +13 -0
- package/dist/core/utils/markdown.d.ts +8 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +26 -0
- package/dist/react/components/AiAssist.d.ts +3 -0
- package/dist/react/components/Answer.d.ts +14 -0
- package/dist/react/components/History.d.ts +8 -0
- package/dist/react/components/Info.d.ts +3 -0
- package/dist/react/demo/main.d.ts +1 -0
- package/dist/react/index.d.ts +15 -0
- package/dist/react/index.mjs +28374 -0
- package/dist/vue/demo/main.d.ts +1 -0
- package/dist/vue/index.d.ts +22 -0
- package/dist/vue/index.mjs +962 -0
- package/package.json +98 -0
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@somecat/ai-assist-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "AI助手 SDK — 支持 React 和 Vue3 的可嵌入AI对话组件",
|
|
6
|
+
"main": "./dist/index.mjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"types": "./dist/react/index.d.ts",
|
|
16
|
+
"import": "./dist/react/index.mjs"
|
|
17
|
+
},
|
|
18
|
+
"./vue": {
|
|
19
|
+
"types": "./dist/vue/index.d.ts",
|
|
20
|
+
"import": "./dist/vue/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./styles": "./dist/ai-assist-sdk.css"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/zzzttt1017/ai-assist-sdk.git"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "vite --host --open /",
|
|
37
|
+
"dev:vue": "vite --host --open /index-vue.html",
|
|
38
|
+
"build": "vite build",
|
|
39
|
+
"build:lib": "vite build --mode lib",
|
|
40
|
+
"preview": "vite preview",
|
|
41
|
+
"prepublishOnly": "pnpm build:lib"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@ant-design/icons": "^5.6.1",
|
|
45
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
46
|
+
"antd": "^5.24.0",
|
|
47
|
+
"axios": "^1.9.0",
|
|
48
|
+
"dompurify": "^3.2.6",
|
|
49
|
+
"highlight.js": "^11.11.1",
|
|
50
|
+
"markdown-it": "^14.1.0",
|
|
51
|
+
"markdown-it-highlightjs": "^4.2.0",
|
|
52
|
+
"markdown-it-multimd-table": "^4.2.3"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": ">=17.0.0",
|
|
56
|
+
"react-dom": ">=17.0.0",
|
|
57
|
+
"vue": ">=3.0.0",
|
|
58
|
+
"react-markdown": ">=9.0.0",
|
|
59
|
+
"remark-gfm": ">=4.0.0",
|
|
60
|
+
"rehype-highlight": ">=7.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependenciesMeta": {
|
|
63
|
+
"react": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"react-dom": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
69
|
+
"vue": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"react-markdown": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"remark-gfm": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"rehype-highlight": {
|
|
79
|
+
"optional": true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@types/dompurify": "^3.2.0",
|
|
84
|
+
"@types/markdown-it": "^14.1.2",
|
|
85
|
+
"@types/node": "^25.9.1",
|
|
86
|
+
"@types/react": "^19.1.0",
|
|
87
|
+
"@types/react-dom": "^19.1.0",
|
|
88
|
+
"@vitejs/plugin-react": "^4.4.0",
|
|
89
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
90
|
+
"less": "^4.3.0",
|
|
91
|
+
"react": "^19.1.0",
|
|
92
|
+
"react-dom": "^19.1.0",
|
|
93
|
+
"typescript": "^5.8.0",
|
|
94
|
+
"vite": "^6.3.0",
|
|
95
|
+
"vite-plugin-dts": "^4.5.0",
|
|
96
|
+
"vue": "^3.4.0"
|
|
97
|
+
}
|
|
98
|
+
}
|