@somecat/ai-assist-sdk 1.3.7 → 2.0.1
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 -1
- package/dist/chunks/{index-BND0wsLs.mjs → engine-Cu-2TgJb.mjs} +2329 -2243
- package/dist/chunks/index-DNWBsXlO.mjs +98 -0
- package/dist/core/services/mode.d.ts +49 -0
- package/dist/core/types/index.d.ts +184 -0
- package/dist/core/utils/index.d.ts +1 -1
- package/dist/core/utils/markdown.d.ts +11 -0
- package/dist/core/utils/structured.d.ts +25 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +51 -29
- package/dist/react/index.d.ts +6 -1
- package/dist/react/index.mjs +708 -692
- package/dist/vue/components/answer/composables/useChatActions.d.ts +1 -0
- package/dist/vue/components/answer/composables/useChatSessions.d.ts +5 -0
- package/dist/vue/components/generated/icons.d.ts +76 -0
- package/dist/vue/index.d.ts +3 -1
- package/dist/vue/index.mjs +2445 -1685
- package/package.json +116 -113
package/package.json
CHANGED
|
@@ -1,113 +1,116 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@somecat/ai-assist-sdk",
|
|
3
|
-
"version": "
|
|
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": {
|
|
23
|
-
"types": "./styles.d.ts",
|
|
24
|
-
"default": "./dist/ai-assist-sdk.css"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "https://github.com/zzzttt1017/ai-assist-sdk.git"
|
|
31
|
-
},
|
|
32
|
-
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
34
|
-
},
|
|
35
|
-
"files": [
|
|
36
|
-
"dist",
|
|
37
|
-
"styles.d.ts"
|
|
38
|
-
],
|
|
39
|
-
"scripts": {
|
|
40
|
-
"dev": "vite --host --open /",
|
|
41
|
-
"dev:vue": "vite --host --open /index-vue.html",
|
|
42
|
-
"build": "vite build",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@ant-design/icons
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"markdown-it
|
|
57
|
-
"markdown-it-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"@iconify/
|
|
62
|
-
"react": ">=17.0.0",
|
|
63
|
-
"react-dom": ">=17.0.0",
|
|
64
|
-
"react-markdown": ">=9.0.0",
|
|
65
|
-
"rehype-highlight": ">=7.0.0",
|
|
66
|
-
"remark-gfm": ">=4.0.0",
|
|
67
|
-
"vue": ">=3.0.0"
|
|
68
|
-
},
|
|
69
|
-
"peerDependenciesMeta": {
|
|
70
|
-
"@iconify/react": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"react": {
|
|
77
|
-
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"
|
|
80
|
-
"optional": true
|
|
81
|
-
},
|
|
82
|
-
"
|
|
83
|
-
"optional": true
|
|
84
|
-
},
|
|
85
|
-
"
|
|
86
|
-
"optional": true
|
|
87
|
-
},
|
|
88
|
-
"
|
|
89
|
-
"optional": true
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"@iconify/
|
|
97
|
-
"@iconify/
|
|
98
|
-
"@
|
|
99
|
-
"@
|
|
100
|
-
"@
|
|
101
|
-
"@types/
|
|
102
|
-
"@types/
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"
|
|
106
|
-
"react": "^
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@somecat/ai-assist-sdk",
|
|
3
|
+
"version": "2.0.1",
|
|
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": {
|
|
23
|
+
"types": "./styles.d.ts",
|
|
24
|
+
"default": "./dist/ai-assist-sdk.css"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/zzzttt1017/ai-assist-sdk.git"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"styles.d.ts"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"dev": "vite --host --open /",
|
|
41
|
+
"dev:vue": "vite --host --open /index-vue.html",
|
|
42
|
+
"build": "vite build",
|
|
43
|
+
"gen:icons": "node scripts/gen-icons.mjs",
|
|
44
|
+
"build:lib": "pnpm gen:icons && vite build --mode lib",
|
|
45
|
+
"preview": "vite preview",
|
|
46
|
+
"prepublishOnly": "pnpm build:lib"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@ant-design/icons": "^5.6.1",
|
|
50
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
51
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
52
|
+
"antd": "^5.24.0",
|
|
53
|
+
"axios": "^1.9.0",
|
|
54
|
+
"dompurify": "^3.2.6",
|
|
55
|
+
"highlight.js": "^11.11.1",
|
|
56
|
+
"markdown-it": "^14.1.0",
|
|
57
|
+
"markdown-it-highlightjs": "^4.2.0",
|
|
58
|
+
"markdown-it-multimd-table": "^4.2.3"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@iconify/react": ">=5.0.0",
|
|
62
|
+
"react": ">=17.0.0",
|
|
63
|
+
"react-dom": ">=17.0.0",
|
|
64
|
+
"react-markdown": ">=9.0.0",
|
|
65
|
+
"rehype-highlight": ">=7.0.0",
|
|
66
|
+
"remark-gfm": ">=4.0.0",
|
|
67
|
+
"vue": ">=3.0.0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@iconify/react": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"react": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"react-dom": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"vue": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"react-markdown": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"remark-gfm": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"rehype-highlight": {
|
|
89
|
+
"optional": true
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"devDependencies": {
|
|
93
|
+
"@iconify-json/boxicons": "^1.2.0",
|
|
94
|
+
"@iconify-json/ep": "^1.2.4",
|
|
95
|
+
"@iconify-json/fluent-color": "^1.2.21",
|
|
96
|
+
"@iconify-json/heroicons-solid": "^1.2.1",
|
|
97
|
+
"@iconify-json/ic": "^1.2.4",
|
|
98
|
+
"@iconify-json/material-symbols": "^1.2.101",
|
|
99
|
+
"@iconify-json/mingcute": "^1.2.10",
|
|
100
|
+
"@iconify/react": "^6.0.2",
|
|
101
|
+
"@types/dompurify": "^3.2.0",
|
|
102
|
+
"@types/markdown-it": "^14.1.2",
|
|
103
|
+
"@types/node": "^25.9.1",
|
|
104
|
+
"@types/react": "^19.1.0",
|
|
105
|
+
"@types/react-dom": "^19.1.0",
|
|
106
|
+
"@vitejs/plugin-react": "^4.4.0",
|
|
107
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
108
|
+
"less": "^4.3.0",
|
|
109
|
+
"react": "^19.1.0",
|
|
110
|
+
"react-dom": "^19.1.0",
|
|
111
|
+
"typescript": "^5.8.0",
|
|
112
|
+
"vite": "^6.3.0",
|
|
113
|
+
"vite-plugin-dts": "^4.5.0",
|
|
114
|
+
"vue": "^3.4.0"
|
|
115
|
+
}
|
|
116
|
+
}
|