zcw-shared 2.10.0 → 2.11.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/assets/materialFileIconMaps.json +3256 -0
- package/dist/functions/ai/aiLlmModelCapabilities.d.ts +13 -0
- package/dist/functions/ai/aiLlmModelCapabilities.js +80 -0
- package/dist/functions/ai/aiLlmModelCapabilities.js.map +1 -0
- package/dist/functions/browser/shortcutModKeyHint.d.ts +7 -0
- package/dist/functions/browser/shortcutModKeyHint.js +21 -0
- package/dist/functions/browser/shortcutModKeyHint.js.map +1 -0
- package/dist/functions/chat/chatShellTabConfig.d.ts +31 -0
- package/dist/functions/chat/chatShellTabConfig.js +219 -0
- package/dist/functions/chat/chatShellTabConfig.js.map +1 -0
- package/dist/functions/chat/chatShellTabEditor.d.ts +7 -0
- package/dist/functions/chat/chatShellTabEditor.js +42 -0
- package/dist/functions/chat/chatShellTabEditor.js.map +1 -0
- package/dist/functions/code/getLanguageFromExtension.d.ts +5 -0
- package/dist/functions/code/getLanguageFromExtension.js +90 -0
- package/dist/functions/code/getLanguageFromExtension.js.map +1 -0
- package/dist/functions/code/index.d.ts +1 -0
- package/dist/functions/code/index.js +2 -0
- package/dist/functions/code/index.js.map +1 -0
- package/dist/functions/dom/copyTextToClipboard.d.ts +1 -0
- package/dist/functions/dom/copyTextToClipboard.js +36 -0
- package/dist/functions/dom/copyTextToClipboard.js.map +1 -0
- package/dist/functions/file/extractVideoCover.d.ts +6 -0
- package/dist/functions/file/extractVideoCover.js +57 -0
- package/dist/functions/file/extractVideoCover.js.map +1 -0
- package/dist/functions/file/index.d.ts +4 -0
- package/dist/functions/file/index.js +5 -0
- package/dist/functions/file/index.js.map +1 -0
- package/dist/functions/file/inferMediaType.d.ts +8 -0
- package/dist/functions/file/inferMediaType.js +24 -0
- package/dist/functions/file/inferMediaType.js.map +1 -0
- package/dist/functions/file/materialFileIcon.d.ts +10 -0
- package/dist/functions/file/materialFileIcon.js +36 -0
- package/dist/functions/file/materialFileIcon.js.map +1 -0
- package/dist/functions/im/parseImMentionSegments.js +7 -1
- package/dist/functions/im/parseImMentionSegments.js.map +1 -1
- package/dist/functions/path/index.d.ts +4 -0
- package/dist/functions/path/index.js +5 -0
- package/dist/functions/path/index.js.map +1 -0
- package/dist/functions/path/pathBasename.d.ts +1 -0
- package/dist/functions/path/pathBasename.js +11 -0
- package/dist/functions/path/pathBasename.js.map +1 -0
- package/dist/functions/path/pathDirname.d.ts +1 -0
- package/dist/functions/path/pathDirname.js +19 -0
- package/dist/functions/path/pathDirname.js.map +1 -0
- package/dist/functions/path/pathExtname.d.ts +4 -0
- package/dist/functions/path/pathExtname.js +15 -0
- package/dist/functions/path/pathExtname.js.map +1 -0
- package/dist/functions/path/pathLastSegment.d.ts +1 -0
- package/dist/functions/path/pathLastSegment.js +11 -0
- package/dist/functions/path/pathLastSegment.js.map +1 -0
- package/dist/functions/qiankun/createQiankunVueApp.js +94 -18
- package/dist/functions/qiankun/createQiankunVueApp.js.map +1 -1
- package/dist/functions/tree/index.d.ts +1 -0
- package/dist/functions/tree/index.js +2 -0
- package/dist/functions/tree/index.js.map +1 -0
- package/dist/functions/tree/pathsToTreeNodes.d.ts +26 -0
- package/dist/functions/tree/pathsToTreeNodes.js +102 -0
- package/dist/functions/tree/pathsToTreeNodes.js.map +1 -0
- package/dist/schemas/video.schema.d.ts +39 -39
- package/dist/schemas/video.schema.js +3 -3
- package/dist/schemas/video.schema.js.map +1 -1
- package/package.json +30 -14
- package/types/ai-llm-model-capabilities.d.ts +25 -0
- package/types/assets.d.ts +12 -0
- package/types/chat-shell-tab-config.d.ts +63 -0
- package/types/im-chat.d.ts +9 -0
- package/types/video.d.ts +8 -4
|
@@ -22,9 +22,9 @@ export declare const VideoSchema: z.ZodObject<{
|
|
|
22
22
|
id: z.ZodString;
|
|
23
23
|
title: z.ZodString;
|
|
24
24
|
description: z.ZodOptional<z.ZodString>;
|
|
25
|
-
cover_url: z.
|
|
26
|
-
video_url: z.
|
|
27
|
-
|
|
25
|
+
cover_url: z.ZodString;
|
|
26
|
+
video_url: z.ZodString;
|
|
27
|
+
author_id: z.ZodOptional<z.ZodString>;
|
|
28
28
|
category_id: z.ZodOptional<z.ZodString>;
|
|
29
29
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
views: z.ZodOptional<z.ZodNumber>;
|
|
@@ -38,13 +38,13 @@ export declare const VideoSchema: z.ZodObject<{
|
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
title: string;
|
|
40
40
|
id: string;
|
|
41
|
+
cover_url: string;
|
|
42
|
+
video_url: string;
|
|
41
43
|
description?: string | undefined;
|
|
42
44
|
duration?: number | undefined;
|
|
43
45
|
status?: string | undefined;
|
|
44
46
|
created_at?: string | undefined;
|
|
45
|
-
|
|
46
|
-
video_url?: string | undefined;
|
|
47
|
-
author?: string | undefined;
|
|
47
|
+
author_id?: string | undefined;
|
|
48
48
|
category_id?: string | undefined;
|
|
49
49
|
views?: number | undefined;
|
|
50
50
|
like_count?: number | undefined;
|
|
@@ -55,13 +55,13 @@ export declare const VideoSchema: z.ZodObject<{
|
|
|
55
55
|
}, {
|
|
56
56
|
title: string;
|
|
57
57
|
id: string;
|
|
58
|
+
cover_url: string;
|
|
59
|
+
video_url: string;
|
|
58
60
|
description?: string | undefined;
|
|
59
61
|
duration?: number | undefined;
|
|
60
62
|
status?: string | undefined;
|
|
61
63
|
created_at?: string | undefined;
|
|
62
|
-
|
|
63
|
-
video_url?: string | undefined;
|
|
64
|
-
author?: string | undefined;
|
|
64
|
+
author_id?: string | undefined;
|
|
65
65
|
category_id?: string | undefined;
|
|
66
66
|
views?: number | undefined;
|
|
67
67
|
like_count?: number | undefined;
|
|
@@ -75,9 +75,9 @@ export declare const VideoListResponseSchema: z.ZodObject<{
|
|
|
75
75
|
id: z.ZodString;
|
|
76
76
|
title: z.ZodString;
|
|
77
77
|
description: z.ZodOptional<z.ZodString>;
|
|
78
|
-
cover_url: z.
|
|
79
|
-
video_url: z.
|
|
80
|
-
|
|
78
|
+
cover_url: z.ZodString;
|
|
79
|
+
video_url: z.ZodString;
|
|
80
|
+
author_id: z.ZodOptional<z.ZodString>;
|
|
81
81
|
category_id: z.ZodOptional<z.ZodString>;
|
|
82
82
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
83
83
|
views: z.ZodOptional<z.ZodNumber>;
|
|
@@ -91,13 +91,13 @@ export declare const VideoListResponseSchema: z.ZodObject<{
|
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
title: string;
|
|
93
93
|
id: string;
|
|
94
|
+
cover_url: string;
|
|
95
|
+
video_url: string;
|
|
94
96
|
description?: string | undefined;
|
|
95
97
|
duration?: number | undefined;
|
|
96
98
|
status?: string | undefined;
|
|
97
99
|
created_at?: string | undefined;
|
|
98
|
-
|
|
99
|
-
video_url?: string | undefined;
|
|
100
|
-
author?: string | undefined;
|
|
100
|
+
author_id?: string | undefined;
|
|
101
101
|
category_id?: string | undefined;
|
|
102
102
|
views?: number | undefined;
|
|
103
103
|
like_count?: number | undefined;
|
|
@@ -108,13 +108,13 @@ export declare const VideoListResponseSchema: z.ZodObject<{
|
|
|
108
108
|
}, {
|
|
109
109
|
title: string;
|
|
110
110
|
id: string;
|
|
111
|
+
cover_url: string;
|
|
112
|
+
video_url: string;
|
|
111
113
|
description?: string | undefined;
|
|
112
114
|
duration?: number | undefined;
|
|
113
115
|
status?: string | undefined;
|
|
114
116
|
created_at?: string | undefined;
|
|
115
|
-
|
|
116
|
-
video_url?: string | undefined;
|
|
117
|
-
author?: string | undefined;
|
|
117
|
+
author_id?: string | undefined;
|
|
118
118
|
category_id?: string | undefined;
|
|
119
119
|
views?: number | undefined;
|
|
120
120
|
like_count?: number | undefined;
|
|
@@ -130,13 +130,13 @@ export declare const VideoListResponseSchema: z.ZodObject<{
|
|
|
130
130
|
data: {
|
|
131
131
|
title: string;
|
|
132
132
|
id: string;
|
|
133
|
+
cover_url: string;
|
|
134
|
+
video_url: string;
|
|
133
135
|
description?: string | undefined;
|
|
134
136
|
duration?: number | undefined;
|
|
135
137
|
status?: string | undefined;
|
|
136
138
|
created_at?: string | undefined;
|
|
137
|
-
|
|
138
|
-
video_url?: string | undefined;
|
|
139
|
-
author?: string | undefined;
|
|
139
|
+
author_id?: string | undefined;
|
|
140
140
|
category_id?: string | undefined;
|
|
141
141
|
views?: number | undefined;
|
|
142
142
|
like_count?: number | undefined;
|
|
@@ -152,13 +152,13 @@ export declare const VideoListResponseSchema: z.ZodObject<{
|
|
|
152
152
|
data: {
|
|
153
153
|
title: string;
|
|
154
154
|
id: string;
|
|
155
|
+
cover_url: string;
|
|
156
|
+
video_url: string;
|
|
155
157
|
description?: string | undefined;
|
|
156
158
|
duration?: number | undefined;
|
|
157
159
|
status?: string | undefined;
|
|
158
160
|
created_at?: string | undefined;
|
|
159
|
-
|
|
160
|
-
video_url?: string | undefined;
|
|
161
|
-
author?: string | undefined;
|
|
161
|
+
author_id?: string | undefined;
|
|
162
162
|
category_id?: string | undefined;
|
|
163
163
|
views?: number | undefined;
|
|
164
164
|
like_count?: number | undefined;
|
|
@@ -176,9 +176,9 @@ export declare const VideoDetailResponseSchema: z.ZodObject<{
|
|
|
176
176
|
id: z.ZodString;
|
|
177
177
|
title: z.ZodString;
|
|
178
178
|
description: z.ZodOptional<z.ZodString>;
|
|
179
|
-
cover_url: z.
|
|
180
|
-
video_url: z.
|
|
181
|
-
|
|
179
|
+
cover_url: z.ZodString;
|
|
180
|
+
video_url: z.ZodString;
|
|
181
|
+
author_id: z.ZodOptional<z.ZodString>;
|
|
182
182
|
category_id: z.ZodOptional<z.ZodString>;
|
|
183
183
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
184
184
|
views: z.ZodOptional<z.ZodNumber>;
|
|
@@ -192,13 +192,13 @@ export declare const VideoDetailResponseSchema: z.ZodObject<{
|
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
title: string;
|
|
194
194
|
id: string;
|
|
195
|
+
cover_url: string;
|
|
196
|
+
video_url: string;
|
|
195
197
|
description?: string | undefined;
|
|
196
198
|
duration?: number | undefined;
|
|
197
199
|
status?: string | undefined;
|
|
198
200
|
created_at?: string | undefined;
|
|
199
|
-
|
|
200
|
-
video_url?: string | undefined;
|
|
201
|
-
author?: string | undefined;
|
|
201
|
+
author_id?: string | undefined;
|
|
202
202
|
category_id?: string | undefined;
|
|
203
203
|
views?: number | undefined;
|
|
204
204
|
like_count?: number | undefined;
|
|
@@ -209,13 +209,13 @@ export declare const VideoDetailResponseSchema: z.ZodObject<{
|
|
|
209
209
|
}, {
|
|
210
210
|
title: string;
|
|
211
211
|
id: string;
|
|
212
|
+
cover_url: string;
|
|
213
|
+
video_url: string;
|
|
212
214
|
description?: string | undefined;
|
|
213
215
|
duration?: number | undefined;
|
|
214
216
|
status?: string | undefined;
|
|
215
217
|
created_at?: string | undefined;
|
|
216
|
-
|
|
217
|
-
video_url?: string | undefined;
|
|
218
|
-
author?: string | undefined;
|
|
218
|
+
author_id?: string | undefined;
|
|
219
219
|
category_id?: string | undefined;
|
|
220
220
|
views?: number | undefined;
|
|
221
221
|
like_count?: number | undefined;
|
|
@@ -228,13 +228,13 @@ export declare const VideoDetailResponseSchema: z.ZodObject<{
|
|
|
228
228
|
data: {
|
|
229
229
|
title: string;
|
|
230
230
|
id: string;
|
|
231
|
+
cover_url: string;
|
|
232
|
+
video_url: string;
|
|
231
233
|
description?: string | undefined;
|
|
232
234
|
duration?: number | undefined;
|
|
233
235
|
status?: string | undefined;
|
|
234
236
|
created_at?: string | undefined;
|
|
235
|
-
|
|
236
|
-
video_url?: string | undefined;
|
|
237
|
-
author?: string | undefined;
|
|
237
|
+
author_id?: string | undefined;
|
|
238
238
|
category_id?: string | undefined;
|
|
239
239
|
views?: number | undefined;
|
|
240
240
|
like_count?: number | undefined;
|
|
@@ -247,13 +247,13 @@ export declare const VideoDetailResponseSchema: z.ZodObject<{
|
|
|
247
247
|
data: {
|
|
248
248
|
title: string;
|
|
249
249
|
id: string;
|
|
250
|
+
cover_url: string;
|
|
251
|
+
video_url: string;
|
|
250
252
|
description?: string | undefined;
|
|
251
253
|
duration?: number | undefined;
|
|
252
254
|
status?: string | undefined;
|
|
253
255
|
created_at?: string | undefined;
|
|
254
|
-
|
|
255
|
-
video_url?: string | undefined;
|
|
256
|
-
author?: string | undefined;
|
|
256
|
+
author_id?: string | undefined;
|
|
257
257
|
category_id?: string | undefined;
|
|
258
258
|
views?: number | undefined;
|
|
259
259
|
like_count?: number | undefined;
|
|
@@ -10,9 +10,9 @@ export const VideoSchema = z.object({
|
|
|
10
10
|
id: z.string(),
|
|
11
11
|
title: z.string(),
|
|
12
12
|
description: z.string().optional(),
|
|
13
|
-
cover_url: z.string()
|
|
14
|
-
video_url: z.string()
|
|
15
|
-
|
|
13
|
+
cover_url: z.string(),
|
|
14
|
+
video_url: z.string(),
|
|
15
|
+
author_id: z.string().optional(),
|
|
16
16
|
category_id: z.string().optional(),
|
|
17
17
|
duration: z.number().optional(),
|
|
18
18
|
views: z.number().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.schema.js","sourceRoot":"","sources":["../../src/schemas/video.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgBvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAoC,CAAA;AAErC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAA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,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAmC,CAAA;AAEpC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAA4C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcw-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"references",
|
|
6
6
|
"dist",
|
|
@@ -12,6 +12,19 @@
|
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"description": "",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc -p tsconfig.build.json && tsx scripts/generate-exports.ts",
|
|
17
|
+
"publish:patch": "npx tsx scripts/publish.ts patch",
|
|
18
|
+
"publish:minor": "npx tsx scripts/publish.ts minor",
|
|
19
|
+
"publish:major": "npx tsx scripts/publish.ts major",
|
|
20
|
+
"publish:prerelease": "npx tsx scripts/publish.ts prerelease",
|
|
21
|
+
"docs:dev": "vitepress dev docs",
|
|
22
|
+
"docs:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
23
|
+
"docs:preview": "vitepress preview docs",
|
|
24
|
+
"deploy:cos:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
25
|
+
"deploy:tcb": "npx tsx scripts/deploy-tcb.ts",
|
|
26
|
+
"deploy:cos": "npx tsx scripts/deploy-cos.ts"
|
|
27
|
+
},
|
|
15
28
|
"dependencies": {
|
|
16
29
|
"zod": "^3.23.8"
|
|
17
30
|
},
|
|
@@ -43,6 +56,7 @@
|
|
|
43
56
|
"./constants/namedColors": "./dist/constants/namedColors.js",
|
|
44
57
|
"./constants/softwareConfigs": "./dist/constants/softwareConfigs.js",
|
|
45
58
|
"./functions/ag-grid/generateLicense": "./dist/functions/ag-grid/generateLicense.js",
|
|
59
|
+
"./functions/ai/aiLlmModelCapabilities": "./dist/functions/ai/aiLlmModelCapabilities.js",
|
|
46
60
|
"./functions/algorithm/binarySearch": "./dist/functions/algorithm/binarySearch.js",
|
|
47
61
|
"./functions/algorithm/canJump": "./dist/functions/algorithm/canJump.js",
|
|
48
62
|
"./functions/algorithm/climbStairs": "./dist/functions/algorithm/climbStairs.js",
|
|
@@ -113,6 +127,10 @@
|
|
|
113
127
|
"./functions/browser/isElectron": "./dist/functions/browser/isElectron.js",
|
|
114
128
|
"./functions/browser/isMobile": "./dist/functions/browser/isMobile.js",
|
|
115
129
|
"./functions/browser/isWeChat": "./dist/functions/browser/isWeChat.js",
|
|
130
|
+
"./functions/browser/shortcutModKeyHint": "./dist/functions/browser/shortcutModKeyHint.js",
|
|
131
|
+
"./functions/chat/chatShellTabConfig": "./dist/functions/chat/chatShellTabConfig.js",
|
|
132
|
+
"./functions/chat/chatShellTabEditor": "./dist/functions/chat/chatShellTabEditor.js",
|
|
133
|
+
"./functions/code/getLanguageFromExtension": "./dist/functions/code/getLanguageFromExtension.js",
|
|
116
134
|
"./functions/color/colorValidation": "./dist/functions/color/colorValidation.js",
|
|
117
135
|
"./functions/color/convertColor": "./dist/functions/color/convertColor.js",
|
|
118
136
|
"./functions/color/deduplicateColors": "./dist/functions/color/deduplicateColors.js",
|
|
@@ -141,6 +159,7 @@
|
|
|
141
159
|
"./functions/design-tokens/mixColors": "./dist/functions/design-tokens/mixColors.js",
|
|
142
160
|
"./functions/design-tokens/parseDesignTokens": "./dist/functions/design-tokens/parseDesignTokens.js",
|
|
143
161
|
"./functions/dom/computePosition": "./dist/functions/dom/computePosition.js",
|
|
162
|
+
"./functions/dom/copyTextToClipboard": "./dist/functions/dom/copyTextToClipboard.js",
|
|
144
163
|
"./functions/dom/createSharedKeyboardCenter": "./dist/functions/dom/createSharedKeyboardCenter.js",
|
|
145
164
|
"./functions/dom/createThrottledEventListener": "./dist/functions/dom/createThrottledEventListener.js",
|
|
146
165
|
"./functions/dom/demonstrateResourceLoading": "./dist/functions/dom/demonstrateResourceLoading.js",
|
|
@@ -165,6 +184,8 @@
|
|
|
165
184
|
"./functions/file/formatFileSize": "./dist/functions/file/formatFileSize.js",
|
|
166
185
|
"./functions/file/getFileExtension": "./dist/functions/file/getFileExtension.js",
|
|
167
186
|
"./functions/file/getIconfontNameByExtension": "./dist/functions/file/getIconfontNameByExtension.js",
|
|
187
|
+
"./functions/file/inferMediaType": "./dist/functions/file/inferMediaType.js",
|
|
188
|
+
"./functions/file/materialFileIcon": "./dist/functions/file/materialFileIcon.js",
|
|
168
189
|
"./functions/functional/compose": "./dist/functions/functional/compose.js",
|
|
169
190
|
"./functions/functional/cond": "./dist/functions/functional/cond.js",
|
|
170
191
|
"./functions/functional/curry": "./dist/functions/functional/curry.js",
|
|
@@ -217,6 +238,10 @@
|
|
|
217
238
|
"./functions/number/formatNumber": "./dist/functions/number/formatNumber.js",
|
|
218
239
|
"./functions/number/random": "./dist/functions/number/random.js",
|
|
219
240
|
"./functions/number/range": "./dist/functions/number/range.js",
|
|
241
|
+
"./functions/path/pathBasename": "./dist/functions/path/pathBasename.js",
|
|
242
|
+
"./functions/path/pathDirname": "./dist/functions/path/pathDirname.js",
|
|
243
|
+
"./functions/path/pathExtname": "./dist/functions/path/pathExtname.js",
|
|
244
|
+
"./functions/path/pathLastSegment": "./dist/functions/path/pathLastSegment.js",
|
|
220
245
|
"./functions/patterns/EventEmitter": "./dist/functions/patterns/EventEmitter.js",
|
|
221
246
|
"./functions/patterns/adapter": "./dist/functions/patterns/adapter.js",
|
|
222
247
|
"./functions/patterns/builder": "./dist/functions/patterns/builder.js",
|
|
@@ -268,6 +293,7 @@
|
|
|
268
293
|
"./functions/tree/filterTree": "./dist/functions/tree/filterTree.js",
|
|
269
294
|
"./functions/tree/findNode": "./dist/functions/tree/findNode.js",
|
|
270
295
|
"./functions/tree/flattenTree": "./dist/functions/tree/flattenTree.js",
|
|
296
|
+
"./functions/tree/pathsToTreeNodes": "./dist/functions/tree/pathsToTreeNodes.js",
|
|
271
297
|
"./functions/uniapp/api/audio": "./dist/functions/uniapp/api/audio.js",
|
|
272
298
|
"./functions/uniapp/api/auth": "./dist/functions/uniapp/api/auth.js",
|
|
273
299
|
"./functions/uniapp/api/dom": "./dist/functions/uniapp/api/dom.js",
|
|
@@ -403,11 +429,14 @@
|
|
|
403
429
|
"./vue-hooks/worker/useWorkerFunction": "./dist/vue-hooks/worker/useWorkerFunction.js",
|
|
404
430
|
"./vue-hooks/worker/useWorkerPool": "./dist/vue-hooks/worker/useWorkerPool.js",
|
|
405
431
|
"./types/address": "./types/address.d.ts",
|
|
432
|
+
"./types/ai-llm-model-capabilities": "./types/ai-llm-model-capabilities.d.ts",
|
|
406
433
|
"./types/algorithm-visual": "./types/algorithm-visual.d.ts",
|
|
407
434
|
"./types/algorithm": "./types/algorithm.d.ts",
|
|
408
435
|
"./types/altool": "./types/altool.d.ts",
|
|
409
436
|
"./types/android-build": "./types/android-build.d.ts",
|
|
437
|
+
"./types/assets": "./types/assets.d.ts",
|
|
410
438
|
"./types/auth": "./types/auth.d.ts",
|
|
439
|
+
"./types/chat-shell-tab-config": "./types/chat-shell-tab-config.d.ts",
|
|
411
440
|
"./types/checkin-config": "./types/checkin-config.d.ts",
|
|
412
441
|
"./types/cloud-disk-config": "./types/cloud-disk-config.d.ts",
|
|
413
442
|
"./types/color": "./types/color.d.ts",
|
|
@@ -445,18 +474,5 @@
|
|
|
445
474
|
"./types/video": "./types/video.d.ts",
|
|
446
475
|
"./types/vue": "./types/vue.d.ts",
|
|
447
476
|
"./types/worker": "./types/worker.d.ts"
|
|
448
|
-
},
|
|
449
|
-
"scripts": {
|
|
450
|
-
"build": "tsc -p tsconfig.build.json && tsx scripts/generate-exports.ts",
|
|
451
|
-
"publish:patch": "npx tsx scripts/publish.ts patch",
|
|
452
|
-
"publish:minor": "npx tsx scripts/publish.ts minor",
|
|
453
|
-
"publish:major": "npx tsx scripts/publish.ts major",
|
|
454
|
-
"publish:prerelease": "npx tsx scripts/publish.ts prerelease",
|
|
455
|
-
"docs:dev": "vitepress dev docs",
|
|
456
|
-
"docs:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
457
|
-
"docs:preview": "vitepress preview docs",
|
|
458
|
-
"deploy:cos:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
459
|
-
"deploy:tcb": "npx tsx scripts/deploy-tcb.ts",
|
|
460
|
-
"deploy:cos": "npx tsx scripts/deploy-cos.ts"
|
|
461
477
|
}
|
|
462
478
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type AiLlmModelParameterSpec = {
|
|
2
|
+
enabled: boolean
|
|
3
|
+
min?: number
|
|
4
|
+
max?: number
|
|
5
|
+
default?: number
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type AiLlmModelCapabilities = {
|
|
9
|
+
attachments: boolean
|
|
10
|
+
imageInput: boolean
|
|
11
|
+
streaming: boolean
|
|
12
|
+
parameters: {
|
|
13
|
+
temperature?: AiLlmModelParameterSpec
|
|
14
|
+
maxTokens?: AiLlmModelParameterSpec
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Admin 模型表单 capabilities 勾选态 */
|
|
19
|
+
export type AiLlmModelCapabilitiesFormFlags = {
|
|
20
|
+
attachments: boolean
|
|
21
|
+
imageInput: boolean
|
|
22
|
+
temperature: boolean
|
|
23
|
+
/** true = 上游 SSE 流式;false = HTTP 同步 */
|
|
24
|
+
streaming: boolean
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 资源文件类型声明
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Material File Icon 映射数据
|
|
5
|
+
*
|
|
6
|
+
* 包含 vscode-material-icon-theme 的图标映射规则
|
|
7
|
+
*/
|
|
8
|
+
declare module 'zcw-shared/assets/materialFileIconMaps.json' {
|
|
9
|
+
import type { MaterialFileIconMaps } from '../src/functions/file/materialFileIcon'
|
|
10
|
+
const value: MaterialFileIconMaps
|
|
11
|
+
export default value
|
|
12
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** Chat 壳层 Tab(page-config displays.chatShell.tabs) */
|
|
2
|
+
export interface ChatShellTabConfig {
|
|
3
|
+
/** 唯一标识,用于 Tabbar v-model */
|
|
4
|
+
key: string
|
|
5
|
+
label: string
|
|
6
|
+
/** iconfont 名(不含 icon- 前缀) */
|
|
7
|
+
icon?: string
|
|
8
|
+
iconActive?: string
|
|
9
|
+
/** 路由 path,如 /messages */
|
|
10
|
+
route?: string
|
|
11
|
+
/** Vue Router name,优先用于跳转与高亮匹配 */
|
|
12
|
+
routeName?: string
|
|
13
|
+
/** 路由 name 前缀匹配(如 chat-doc 匹配 chat-docs-home、chat-doc-editor) */
|
|
14
|
+
routeNamePrefix?: string
|
|
15
|
+
/** 额外视为当前 Tab 高亮的路由 name(如钱包页 chat-wallet 归属「我的」) */
|
|
16
|
+
relatedRouteNames?: string[]
|
|
17
|
+
/** 移动端底栏隐藏文案(仅图标);默认 false 显示文案 */
|
|
18
|
+
hideLabel?: boolean
|
|
19
|
+
/**
|
|
20
|
+
* 宽屏侧栏隐藏文案(仅图标,悬停 tooltip)。
|
|
21
|
+
* 默认未设置等同 true;设为 false 时在侧栏显示 label。
|
|
22
|
+
*/
|
|
23
|
+
desktopHideLabel?: boolean
|
|
24
|
+
/** 仅 Electron 壳展示 */
|
|
25
|
+
electronOnly?: boolean
|
|
26
|
+
/** 宽屏左侧 Tabbar(默认 true,mine 为 false) */
|
|
27
|
+
desktopNav?: boolean
|
|
28
|
+
/** 宽屏底部头像入口(mine) */
|
|
29
|
+
desktopFooter?: boolean
|
|
30
|
+
/** 移动端底部 Tabbar(默认 true) */
|
|
31
|
+
mobile?: boolean
|
|
32
|
+
/** 使用「我的」头像而非 icon */
|
|
33
|
+
useMineAvatar?: boolean
|
|
34
|
+
/**
|
|
35
|
+
* 该 Tab 激活时切换整应用为深色主题(`html[data-theme="dark"]`),Dialog 等与主界面一致。
|
|
36
|
+
* 默认仅 AI Tab 开启;其它 Tab 可在 page-config「更多」里勾选。
|
|
37
|
+
*/
|
|
38
|
+
shellDark?: boolean
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ChatShellDisplaysConfig {
|
|
42
|
+
tabs?: ChatShellTabConfig[]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** page-config `displays` 中与 Chat 壳层相关的字段 */
|
|
46
|
+
export interface ChatAppDisplaysConfig {
|
|
47
|
+
chatShell?: ChatShellDisplaysConfig
|
|
48
|
+
/** @deprecated 使用 chatShell.tabs */
|
|
49
|
+
mobileTabbar?: {
|
|
50
|
+
enabledTabs?: string[]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface ChatShellTabbarItem {
|
|
55
|
+
key: string
|
|
56
|
+
label: string
|
|
57
|
+
icon: string
|
|
58
|
+
iconName?: string
|
|
59
|
+
iconActiveName?: string
|
|
60
|
+
hideLabel?: boolean
|
|
61
|
+
ariaLabel?: string
|
|
62
|
+
useMineAvatar?: boolean
|
|
63
|
+
}
|
package/types/im-chat.d.ts
CHANGED
|
@@ -57,6 +57,15 @@ export interface ChatMessage {
|
|
|
57
57
|
inlineAttachmentCount?: number
|
|
58
58
|
/** 与 `extra_data.attachments` 同步的只读列表(用于附件列表弹窗等) */
|
|
59
59
|
inlineAttachments?: ChatInlineAttachmentListItem[]
|
|
60
|
+
/**
|
|
61
|
+
* 正文同条「内联附件」正在本地上传(`extra_data.inline_uploading`)。
|
|
62
|
+
* 进度用 {@link inlineUploadUploadedCount} / {@link inlineUploadTotalCount},勿往 `content` 拼接文案。
|
|
63
|
+
*/
|
|
64
|
+
inlineUploading?: boolean
|
|
65
|
+
/** 已完成上传的附件个数(`extra_data.inline_upload_uploaded_count`) */
|
|
66
|
+
inlineUploadUploadedCount?: number
|
|
67
|
+
/** 附件总数(`extra_data.inline_upload_total_count`) */
|
|
68
|
+
inlineUploadTotalCount?: number
|
|
60
69
|
/**
|
|
61
70
|
* `extra_data.im_display`:多段气泡(图文混排等);存在时气泡层优先按块渲染。
|
|
62
71
|
*/
|
package/types/video.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export interface Video {
|
|
|
10
10
|
id: string
|
|
11
11
|
title: string
|
|
12
12
|
description?: string
|
|
13
|
-
cover_url
|
|
14
|
-
video_url
|
|
15
|
-
|
|
13
|
+
cover_url: string
|
|
14
|
+
video_url: string
|
|
15
|
+
author_id?: string
|
|
16
16
|
category_id?: string
|
|
17
17
|
duration?: number
|
|
18
18
|
views?: number
|
|
@@ -59,7 +59,11 @@ export interface VideoCommentsResponse {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export interface CreateVideoPayload
|
|
62
|
-
extends Omit<Video, 'id' | 'created_at' | 'updated_at' | 'publish_time'> {
|
|
62
|
+
extends Omit<Video, 'id' | 'created_at' | 'updated_at' | 'publish_time' | 'cover_url' | 'video_url' | 'author_id'> {
|
|
63
|
+
cover_url: string
|
|
64
|
+
video_url: string
|
|
65
|
+
author_id: string
|
|
66
|
+
}
|
|
63
67
|
|
|
64
68
|
export interface UpdateVideoPayload
|
|
65
69
|
extends Partial<Omit<Video, 'id' | 'created_at' | 'updated_at' | 'publish_time'>> {}
|