plugin-build-guide-block 1.0.10 → 1.0.12
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/client/UserGuideBlock.d.ts +2 -0
- package/dist/client/UserGuideBlockInitializer.d.ts +2 -0
- package/dist/client/UserGuideBlockProvider.d.ts +2 -0
- package/dist/client/UserGuideManager.d.ts +2 -0
- package/dist/client/components/BuildButton.d.ts +2 -0
- package/dist/client/components/LLMServiceSelect.d.ts +2 -0
- package/dist/client/components/ModelSelect.d.ts +2 -0
- package/dist/client/components/StatusTag.d.ts +2 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/locale.d.ts +3 -0
- package/dist/client/models/UserGuideBlockModel.d.ts +9 -0
- package/dist/client/models/index.d.ts +9 -0
- package/dist/client/plugin.d.ts +5 -0
- package/dist/client/schemaSettings.d.ts +2 -0
- package/dist/client/schemas/spacesSchema.d.ts +356 -0
- package/dist/externalVersion.js +8 -8
- package/dist/index.d.ts +2 -0
- package/dist/locale/en-US.json +3 -0
- package/dist/locale/namespace.d.ts +6 -0
- package/dist/locale/namespace.js +36 -0
- package/dist/locale/vi-VN.json +3 -0
- package/dist/locale/zh-CN.json +3 -0
- package/dist/node_modules/marked/bin/main.js +279 -0
- package/dist/node_modules/marked/bin/marked.js +15 -0
- package/dist/node_modules/marked/lib/marked.cjs +1 -0
- package/dist/node_modules/marked/lib/marked.d.cts +657 -0
- package/dist/node_modules/marked/lib/marked.d.ts +657 -0
- package/dist/node_modules/marked/lib/marked.esm.js +2432 -0
- package/dist/node_modules/marked/lib/marked.umd.js +2456 -0
- package/dist/node_modules/marked/man/marked.1 +111 -0
- package/dist/node_modules/marked/marked.min.js +6 -0
- package/dist/node_modules/marked/package.json +1 -0
- package/dist/node_modules/sanitize-html/index.js +2 -2
- package/dist/node_modules/sanitize-html/package.json +1 -1
- package/dist/server/actions/build.d.ts +2 -0
- package/dist/server/actions/build.js +66 -52
- package/dist/server/actions/getHtml.d.ts +2 -0
- package/dist/server/actions/getMarkdown.d.ts +2 -0
- package/dist/server/actions/getMarkdown.js +53 -0
- package/dist/server/collections/ai-build-guide-spaces.d.ts +2 -0
- package/dist/server/collections/ai-build-guide-spaces.js +9 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +3 -4
- package/dist/server/plugin.d.ts +12 -0
- package/dist/server/plugin.js +8 -1
- package/package.json +51 -31
- package/src/client/UserGuideManager.tsx +3 -2
- package/src/client/locale.ts +18 -0
- package/src/client/plugin.tsx +52 -30
- package/src/client/schemaSettings.ts +75 -0
- package/src/client/schemas/spacesSchema.ts +42 -1
- package/src/locale/en-US.json +3 -0
- package/src/locale/namespace.ts +6 -0
- package/src/locale/vi-VN.json +3 -0
- package/src/locale/zh-CN.json +3 -0
- package/src/server/actions/build.ts +46 -33
- package/src/server/actions/getMarkdown.ts +26 -0
- package/src/server/collections/ai-build-guide-spaces.ts +9 -0
- package/src/server/index.ts +1 -2
- package/src/server/plugin.ts +83 -76
- package/src/server/collections/.gitkeep +0 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
export declare const spacesSchema: {
|
|
2
|
+
type: string;
|
|
3
|
+
name: string;
|
|
4
|
+
properties: {
|
|
5
|
+
card: {
|
|
6
|
+
type: string;
|
|
7
|
+
'x-component': string;
|
|
8
|
+
'x-decorator': string;
|
|
9
|
+
'x-decorator-props': {
|
|
10
|
+
collection: string;
|
|
11
|
+
action: string;
|
|
12
|
+
rowKey: string;
|
|
13
|
+
params: {
|
|
14
|
+
appends: string[];
|
|
15
|
+
sort: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
properties: {
|
|
19
|
+
actions: {
|
|
20
|
+
type: string;
|
|
21
|
+
'x-component': string;
|
|
22
|
+
'x-component-props': {
|
|
23
|
+
style: {
|
|
24
|
+
marginBottom: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
properties: {
|
|
28
|
+
create: {
|
|
29
|
+
type: string;
|
|
30
|
+
'x-component': string;
|
|
31
|
+
'x-component-props': {
|
|
32
|
+
type: string;
|
|
33
|
+
title: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
};
|
|
36
|
+
properties: {
|
|
37
|
+
drawer: {
|
|
38
|
+
type: string;
|
|
39
|
+
'x-component': string;
|
|
40
|
+
'x-component-props': {
|
|
41
|
+
title: string;
|
|
42
|
+
};
|
|
43
|
+
properties: {
|
|
44
|
+
form: {
|
|
45
|
+
type: string;
|
|
46
|
+
'x-component': string;
|
|
47
|
+
'x-use-component-props': string;
|
|
48
|
+
properties: {
|
|
49
|
+
title: {
|
|
50
|
+
type: string;
|
|
51
|
+
title: string;
|
|
52
|
+
required: boolean;
|
|
53
|
+
'x-decorator': string;
|
|
54
|
+
'x-component': string;
|
|
55
|
+
};
|
|
56
|
+
llmService: {
|
|
57
|
+
type: string;
|
|
58
|
+
title: string;
|
|
59
|
+
required: boolean;
|
|
60
|
+
'x-decorator': string;
|
|
61
|
+
'x-component': string;
|
|
62
|
+
};
|
|
63
|
+
model: {
|
|
64
|
+
type: string;
|
|
65
|
+
title: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
'x-decorator': string;
|
|
68
|
+
'x-component': string;
|
|
69
|
+
'x-reactions': {
|
|
70
|
+
dependencies: string[];
|
|
71
|
+
fulfill: {
|
|
72
|
+
state: {
|
|
73
|
+
value: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
outputFormat: {
|
|
79
|
+
type: string;
|
|
80
|
+
title: string;
|
|
81
|
+
required: boolean;
|
|
82
|
+
default: string;
|
|
83
|
+
'x-decorator': string;
|
|
84
|
+
'x-component': string;
|
|
85
|
+
enum: {
|
|
86
|
+
label: string;
|
|
87
|
+
value: string;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
90
|
+
systemPrompt: {
|
|
91
|
+
type: string;
|
|
92
|
+
title: string;
|
|
93
|
+
'x-decorator': string;
|
|
94
|
+
'x-component': string;
|
|
95
|
+
'x-component-props': {
|
|
96
|
+
rows: number;
|
|
97
|
+
};
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
documents: {
|
|
101
|
+
type: string;
|
|
102
|
+
title: string;
|
|
103
|
+
'x-decorator': string;
|
|
104
|
+
'x-component': string;
|
|
105
|
+
'x-component-props': {
|
|
106
|
+
multiple: boolean;
|
|
107
|
+
action: string;
|
|
108
|
+
maxCount: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
footer: {
|
|
112
|
+
type: string;
|
|
113
|
+
'x-component': string;
|
|
114
|
+
properties: {
|
|
115
|
+
cancel: {
|
|
116
|
+
type: string;
|
|
117
|
+
title: string;
|
|
118
|
+
'x-component': string;
|
|
119
|
+
'x-use-component-props': string;
|
|
120
|
+
};
|
|
121
|
+
submit: {
|
|
122
|
+
type: string;
|
|
123
|
+
title: string;
|
|
124
|
+
'x-component': string;
|
|
125
|
+
'x-use-component-props': string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
table: {
|
|
138
|
+
type: string;
|
|
139
|
+
'x-component': string;
|
|
140
|
+
'x-use-component-props': string;
|
|
141
|
+
'x-component-props': {
|
|
142
|
+
rowKey: string;
|
|
143
|
+
rowSelection: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
properties: {
|
|
148
|
+
title: {
|
|
149
|
+
type: string;
|
|
150
|
+
title: string;
|
|
151
|
+
'x-decorator': string;
|
|
152
|
+
'x-component': string;
|
|
153
|
+
properties: {
|
|
154
|
+
title: {
|
|
155
|
+
type: string;
|
|
156
|
+
'x-component': string;
|
|
157
|
+
'x-read-pretty': boolean;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
status: {
|
|
162
|
+
type: string;
|
|
163
|
+
title: string;
|
|
164
|
+
'x-decorator': string;
|
|
165
|
+
'x-component': string;
|
|
166
|
+
properties: {
|
|
167
|
+
status: {
|
|
168
|
+
type: string;
|
|
169
|
+
'x-component': string;
|
|
170
|
+
'x-read-pretty': boolean;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
buildLog: {
|
|
175
|
+
type: string;
|
|
176
|
+
title: string;
|
|
177
|
+
'x-decorator': string;
|
|
178
|
+
'x-component': string;
|
|
179
|
+
properties: {
|
|
180
|
+
buildLog: {
|
|
181
|
+
type: string;
|
|
182
|
+
'x-component': string;
|
|
183
|
+
'x-read-pretty': boolean;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
actions: {
|
|
188
|
+
type: string;
|
|
189
|
+
title: string;
|
|
190
|
+
'x-decorator': string;
|
|
191
|
+
'x-component': string;
|
|
192
|
+
properties: {
|
|
193
|
+
actions: {
|
|
194
|
+
type: string;
|
|
195
|
+
'x-component': string;
|
|
196
|
+
'x-component-props': {
|
|
197
|
+
split: string;
|
|
198
|
+
};
|
|
199
|
+
properties: {
|
|
200
|
+
build: {
|
|
201
|
+
type: string;
|
|
202
|
+
'x-component': string;
|
|
203
|
+
};
|
|
204
|
+
update: {
|
|
205
|
+
type: string;
|
|
206
|
+
title: string;
|
|
207
|
+
'x-component': string;
|
|
208
|
+
'x-component-props': {
|
|
209
|
+
type: string;
|
|
210
|
+
};
|
|
211
|
+
properties: {
|
|
212
|
+
drawer: {
|
|
213
|
+
type: string;
|
|
214
|
+
'x-component': string;
|
|
215
|
+
'x-component-props': {
|
|
216
|
+
title: string;
|
|
217
|
+
};
|
|
218
|
+
properties: {
|
|
219
|
+
form: {
|
|
220
|
+
type: string;
|
|
221
|
+
'x-component': string;
|
|
222
|
+
'x-use-component-props': string;
|
|
223
|
+
properties: {
|
|
224
|
+
title: {
|
|
225
|
+
type: string;
|
|
226
|
+
title: string;
|
|
227
|
+
required: boolean;
|
|
228
|
+
'x-decorator': string;
|
|
229
|
+
'x-component': string;
|
|
230
|
+
};
|
|
231
|
+
llmService: {
|
|
232
|
+
type: string;
|
|
233
|
+
title: string;
|
|
234
|
+
required: boolean;
|
|
235
|
+
'x-decorator': string;
|
|
236
|
+
'x-component': string;
|
|
237
|
+
};
|
|
238
|
+
model: {
|
|
239
|
+
type: string;
|
|
240
|
+
title: string;
|
|
241
|
+
required: boolean;
|
|
242
|
+
'x-decorator': string;
|
|
243
|
+
'x-component': string;
|
|
244
|
+
};
|
|
245
|
+
outputFormat: {
|
|
246
|
+
type: string;
|
|
247
|
+
title: string;
|
|
248
|
+
required: boolean;
|
|
249
|
+
'x-decorator': string;
|
|
250
|
+
'x-component': string;
|
|
251
|
+
enum: {
|
|
252
|
+
label: string;
|
|
253
|
+
value: string;
|
|
254
|
+
}[];
|
|
255
|
+
};
|
|
256
|
+
systemPrompt: {
|
|
257
|
+
type: string;
|
|
258
|
+
title: string;
|
|
259
|
+
'x-decorator': string;
|
|
260
|
+
'x-component': string;
|
|
261
|
+
'x-component-props': {
|
|
262
|
+
rows: number;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
documents: {
|
|
266
|
+
type: string;
|
|
267
|
+
title: string;
|
|
268
|
+
'x-decorator': string;
|
|
269
|
+
'x-component': string;
|
|
270
|
+
'x-component-props': {
|
|
271
|
+
multiple: boolean;
|
|
272
|
+
action: string;
|
|
273
|
+
maxCount: number;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
generatedHtml: {
|
|
277
|
+
type: string;
|
|
278
|
+
title: string;
|
|
279
|
+
'x-decorator': string;
|
|
280
|
+
'x-component': string;
|
|
281
|
+
'x-component-props': {
|
|
282
|
+
rows: number;
|
|
283
|
+
};
|
|
284
|
+
'x-read-pretty': boolean;
|
|
285
|
+
};
|
|
286
|
+
generatedMarkdown: {
|
|
287
|
+
type: string;
|
|
288
|
+
title: string;
|
|
289
|
+
'x-decorator': string;
|
|
290
|
+
'x-component': string;
|
|
291
|
+
'x-component-props': {
|
|
292
|
+
rows: number;
|
|
293
|
+
};
|
|
294
|
+
'x-read-pretty': boolean;
|
|
295
|
+
'x-reactions': {
|
|
296
|
+
dependencies: string[];
|
|
297
|
+
fulfill: {
|
|
298
|
+
state: {
|
|
299
|
+
visible: string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
buildLog: {
|
|
305
|
+
type: string;
|
|
306
|
+
title: string;
|
|
307
|
+
'x-decorator': string;
|
|
308
|
+
'x-component': string;
|
|
309
|
+
'x-read-pretty': boolean;
|
|
310
|
+
};
|
|
311
|
+
footer: {
|
|
312
|
+
type: string;
|
|
313
|
+
'x-component': string;
|
|
314
|
+
properties: {
|
|
315
|
+
cancel: {
|
|
316
|
+
type: string;
|
|
317
|
+
title: string;
|
|
318
|
+
'x-component': string;
|
|
319
|
+
'x-use-component-props': string;
|
|
320
|
+
};
|
|
321
|
+
submit: {
|
|
322
|
+
type: string;
|
|
323
|
+
title: string;
|
|
324
|
+
'x-component': string;
|
|
325
|
+
'x-use-component-props': string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
delete: {
|
|
336
|
+
type: string;
|
|
337
|
+
title: string;
|
|
338
|
+
'x-component': string;
|
|
339
|
+
'x-use-component-props': string;
|
|
340
|
+
'x-component-props': {
|
|
341
|
+
confirm: {
|
|
342
|
+
title: string;
|
|
343
|
+
content: string;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.0.
|
|
11
|
+
"@nocobase/client": "2.0.41",
|
|
12
12
|
"react": "18.2.0",
|
|
13
|
-
"antd": "5.24.2",
|
|
14
13
|
"@formily/react": "2.3.7",
|
|
14
|
+
"antd": "5.24.2",
|
|
15
15
|
"react-i18next": "11.18.6",
|
|
16
16
|
"@ant-design/icons": "5.6.1",
|
|
17
17
|
"@formily/core": "2.3.7",
|
|
18
|
-
"@nocobase/server": "2.0.
|
|
19
|
-
"@nocobase/flow-engine": "2.0.
|
|
20
|
-
"@nocobase/actions": "2.0.
|
|
21
|
-
"@nocobase/database": "2.0.
|
|
22
|
-
"@nocobase/plugin-ai": "2.0.
|
|
23
|
-
"@nocobase/plugin-file-manager": "2.0.
|
|
18
|
+
"@nocobase/server": "2.0.41",
|
|
19
|
+
"@nocobase/flow-engine": "2.0.41",
|
|
20
|
+
"@nocobase/actions": "2.0.41",
|
|
21
|
+
"@nocobase/database": "2.0.41",
|
|
22
|
+
"@nocobase/plugin-ai": "2.0.41",
|
|
23
|
+
"@nocobase/plugin-file-manager": "2.0.41",
|
|
24
24
|
"@langchain/core": "1.1.24",
|
|
25
25
|
"axios": "1.7.7"
|
|
26
26
|
};
|
package/dist/index.d.ts
ADDED
package/dist/locale/en-US.json
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Edit": "Edit",
|
|
17
17
|
"Edit space": "Edit space",
|
|
18
18
|
"Generated HTML": "Generated HTML",
|
|
19
|
+
"Generated Markdown": "Generated Markdown",
|
|
20
|
+
"Output format": "Output format",
|
|
21
|
+
"Select Space": "Select Space",
|
|
19
22
|
"Build Log": "Build Log",
|
|
20
23
|
"Delete": "Delete",
|
|
21
24
|
"Saved successfully": "Saved successfully",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name2 in all)
|
|
16
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var namespace_exports = {};
|
|
28
|
+
__export(namespace_exports, {
|
|
29
|
+
name: () => name
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(namespace_exports);
|
|
32
|
+
const name = "build-guide-block";
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
name
|
|
36
|
+
});
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Edit": "Sửa",
|
|
17
17
|
"Edit space": "Sửa Space",
|
|
18
18
|
"Generated HTML": "HTML Đã tạo",
|
|
19
|
+
"Generated Markdown": "Markdown Đã tạo",
|
|
20
|
+
"Output format": "Định dạng đầu ra",
|
|
21
|
+
"Select Space": "Chọn Space",
|
|
19
22
|
"Build Log": "Log quá trình Build",
|
|
20
23
|
"Delete": "Xóa",
|
|
21
24
|
"Saved successfully": "Lưu thành công",
|
package/dist/locale/zh-CN.json
CHANGED